2012-04-18 Pedro Alves <palves@redhat.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure
CommitLineData
d6e9fb05 1#! /bin/sh
d6e9fb05 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
d6e9fb05
JK
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bec39cab 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bec39cab 31fi
bec39cab 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
bec39cab 50else
81ecdfbb
RW
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
bec39cab
AC
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
bec39cab
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
bec39cab 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
bec39cab 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
bec39cab 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
bec39cab 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
bec39cab
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
bec39cab 410
dae5f5cf
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
b80864fb 417
bec39cab 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
bec39cab 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
bec39cab 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 436 t loop
81ecdfbb 437 s/-\n.*//
bec39cab 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
bec39cab
AC
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
bec39cab
AC
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
bec39cab
AC
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
bec39cab 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
bec39cab 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
dae5f5cf 483 fi
bec39cab
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
bec39cab
AC
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
d6e9fb05 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
bec39cab
AC
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
bec39cab
AC
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
bec39cab
AC
534#
535# Initializations.
536#
d6e9fb05 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
dae5f5cf 545
bec39cab
AC
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="server.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
bec39cab
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
bec39cab
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
bec39cab
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
bec39cab
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
bec39cab 582# include <inttypes.h>
bec39cab 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
bec39cab
AC
588# include <unistd.h>
589#endif"
590
c9a1864a
YQ
591gl_header_list=
592gl_func_list=
593ac_subst_vars='am__EXEEXT_FALSE
594am__EXEEXT_TRUE
595gltests_LTLIBOBJS
596gltests_LIBOBJS
597gl_LTLIBOBJS
598gl_LIBOBJS
599LTLIBOBJS
600GNULIB_STDINT_H
601am__fastdepCC_FALSE
602am__fastdepCC_TRUE
603CCDEPMODE
604AMDEPBACKSLASH
605AMDEP_FALSE
606AMDEP_TRUE
607am__quote
608am__include
609DEPDIR
610am__untar
611am__tar
612AMTAR
613am__leading_dot
614SET_MAKE
615AWK
616mkdir_p
617MKDIR_P
618INSTALL_STRIP_PROGRAM
619STRIP
620install_sh
621MAKEINFO
622AUTOHEADER
623AUTOMAKE
624AUTOCONF
625ACLOCAL
626VERSION
627PACKAGE
628CYGPATH_W
629am__isrc
630LIBGNU_LTLIBDEPS
631LIBGNU_LIBDEPS
632gltests_WITNESS
c9a1864a
YQ
633NEXT_AS_FIRST_DIRECTIVE_STRING_H
634NEXT_STRING_H
c9a1864a
YQ
635NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
636NEXT_STDDEF_H
770d76d7
PA
637GL_GENERATE_STDDEF_H_FALSE
638GL_GENERATE_STDDEF_H_TRUE
c9a1864a
YQ
639STDDEF_H
640HAVE_WCHAR_T
641REPLACE_NULL
c9a1864a
YQ
642UNDEFINE_STRTOK_R
643REPLACE_STRTOK_R
644REPLACE_STRSIGNAL
645REPLACE_STRNLEN
646REPLACE_STRNDUP
647REPLACE_STRNCAT
770d76d7 648REPLACE_STRERROR_R
c9a1864a 649REPLACE_STRERROR
770d76d7 650REPLACE_STRCHRNUL
c9a1864a
YQ
651REPLACE_STRCASESTR
652REPLACE_STRSTR
653REPLACE_STRDUP
654REPLACE_STPNCPY
655REPLACE_MEMMEM
656REPLACE_MEMCHR
657HAVE_STRVERSCMP
658HAVE_DECL_STRSIGNAL
770d76d7 659HAVE_DECL_STRERROR_R
c9a1864a
YQ
660HAVE_DECL_STRTOK_R
661HAVE_STRCASESTR
662HAVE_STRSEP
663HAVE_STRPBRK
664HAVE_DECL_STRNLEN
665HAVE_DECL_STRNDUP
666HAVE_DECL_STRDUP
667HAVE_STRCHRNUL
668HAVE_STPNCPY
669HAVE_STPCPY
670HAVE_RAWMEMCHR
671HAVE_DECL_MEMRCHR
672HAVE_MEMPCPY
673HAVE_DECL_MEMMEM
674HAVE_MEMCHR
770d76d7
PA
675HAVE_FFSLL
676HAVE_FFSL
c9a1864a
YQ
677HAVE_MBSLEN
678GNULIB_STRVERSCMP
679GNULIB_STRSIGNAL
770d76d7 680GNULIB_STRERROR_R
c9a1864a
YQ
681GNULIB_STRERROR
682GNULIB_MBSTOK_R
683GNULIB_MBSSEP
684GNULIB_MBSSPN
685GNULIB_MBSPBRK
686GNULIB_MBSCSPN
687GNULIB_MBSCASESTR
688GNULIB_MBSPCASECMP
689GNULIB_MBSNCASECMP
690GNULIB_MBSCASECMP
691GNULIB_MBSSTR
692GNULIB_MBSRCHR
693GNULIB_MBSCHR
694GNULIB_MBSNLEN
695GNULIB_MBSLEN
696GNULIB_STRTOK_R
697GNULIB_STRCASESTR
698GNULIB_STRSTR
699GNULIB_STRSEP
700GNULIB_STRPBRK
701GNULIB_STRNLEN
702GNULIB_STRNDUP
703GNULIB_STRNCAT
704GNULIB_STRDUP
705GNULIB_STRCHRNUL
706GNULIB_STPNCPY
707GNULIB_STPCPY
708GNULIB_RAWMEMCHR
709GNULIB_MEMRCHR
710GNULIB_MEMPCPY
711GNULIB_MEMMEM
712GNULIB_MEMCHR
770d76d7
PA
713GNULIB_FFSLL
714GNULIB_FFSL
715NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
716NEXT_INTTYPES_H
55a8c076
YQ
717UINT64_MAX_EQ_ULONG_MAX
718UINT32_MAX_LT_UINTMAX_MAX
770d76d7
PA
719PRIPTR_PREFIX
720PRI_MACROS_BROKEN
55a8c076
YQ
721INT64_MAX_EQ_LONG_MAX
722INT32_MAX_LT_INTMAX_MAX
770d76d7 723REPLACE_STRTOIMAX
55a8c076
YQ
724HAVE_DECL_STRTOUMAX
725HAVE_DECL_STRTOIMAX
726HAVE_DECL_IMAXDIV
727HAVE_DECL_IMAXABS
728GNULIB_STRTOUMAX
729GNULIB_STRTOIMAX
730GNULIB_IMAXDIV
731GNULIB_IMAXABS
770d76d7
PA
732GL_GENERATE_STDINT_H_FALSE
733GL_GENERATE_STDINT_H_TRUE
55a8c076
YQ
734STDINT_H
735WINT_T_SUFFIX
736WCHAR_T_SUFFIX
737SIG_ATOMIC_T_SUFFIX
738SIZE_T_SUFFIX
739PTRDIFF_T_SUFFIX
740HAVE_SIGNED_WINT_T
741HAVE_SIGNED_WCHAR_T
742HAVE_SIGNED_SIG_ATOMIC_T
743BITSIZEOF_WINT_T
744BITSIZEOF_WCHAR_T
745BITSIZEOF_SIG_ATOMIC_T
746BITSIZEOF_SIZE_T
747BITSIZEOF_PTRDIFF_T
748APPLE_UNIVERSAL_BUILD
749HAVE_SYS_BITYPES_H
750HAVE_SYS_INTTYPES_H
751HAVE_STDINT_H
752NEXT_AS_FIRST_DIRECTIVE_STDINT_H
753NEXT_STDINT_H
770d76d7 754PRAGMA_COLUMNS
55a8c076
YQ
755PRAGMA_SYSTEM_HEADER
756INCLUDE_NEXT_AS_FIRST_DIRECTIVE
757INCLUDE_NEXT
758HAVE_SYS_TYPES_H
759HAVE_INTTYPES_H
770d76d7 760HAVE_WCHAR_H
55a8c076
YQ
761HAVE_UNSIGNED_LONG_LONG_INT
762HAVE_LONG_LONG_INT
c9a1864a
YQ
763GL_COND_LIBTOOL_FALSE
764GL_COND_LIBTOOL_TRUE
fa593d66
PA
765extra_libraries
766IPA_DEPFILES
81ecdfbb
RW
767srv_xmlfiles
768srv_xmlbuiltin
769USE_THREAD_DB
770GDBSERVER_LIBS
771GDBSERVER_DEPFILES
772RDYNAMIC
773REPORT_BUGS_TEXI
774REPORT_BUGS_TO
775PKGVERSION
d4596a3d
PA
776WERROR_CFLAGS
777WARN_CFLAGS
0fb4aa4b
PA
778ustinc
779ustlibs
81ecdfbb 780LIBOBJS
c9a1864a 781MAKE
a1723c35 782ALLOCA
81ecdfbb
RW
783INSTALL_DATA
784INSTALL_SCRIPT
785INSTALL_PROGRAM
786target_os
787target_vendor
788target_cpu
789target
790host_os
791host_vendor
792host_cpu
793host
794build_os
795build_vendor
796build_cpu
797build
c9a1864a 798RANLIB
770d76d7
PA
799ARFLAGS
800AR
801EGREP
802GREP
803CPP
81ecdfbb
RW
804OBJEXT
805EXEEXT
806ac_ct_CC
807CPPFLAGS
808LDFLAGS
809CFLAGS
810CC
c9a1864a
YQ
811MAINT
812MAINTAINER_MODE_FALSE
813MAINTAINER_MODE_TRUE
81ecdfbb
RW
814target_alias
815host_alias
816build_alias
817LIBS
818ECHO_T
819ECHO_N
820ECHO_C
821DEFS
822mandir
823localedir
824libdir
825psdir
826pdfdir
827dvidir
828htmldir
829infodir
830docdir
831oldincludedir
832includedir
833localstatedir
834sharedstatedir
835sysconfdir
836datadir
837datarootdir
838libexecdir
839sbindir
840bindir
841program_transform_name
842prefix
843exec_prefix
844PACKAGE_URL
845PACKAGE_BUGREPORT
846PACKAGE_STRING
847PACKAGE_VERSION
848PACKAGE_TARNAME
849PACKAGE_NAME
850PATH_SEPARATOR
851SHELL'
bec39cab 852ac_subst_files=''
81ecdfbb
RW
853ac_user_opts='
854enable_option_checking
c9a1864a 855enable_maintainer_mode
0fb4aa4b
PA
856with_ust
857with_ust_include
858with_ust_lib
d4596a3d 859enable_werror
81ecdfbb
RW
860with_pkgversion
861with_bugurl
96f15937 862with_libthread_db
c2a66c29 863enable_inprocess_agent
c9a1864a 864enable_dependency_tracking
81ecdfbb
RW
865'
866 ac_precious_vars='build_alias
867host_alias
868target_alias
869CC
870CFLAGS
871LDFLAGS
872LIBS
873CPPFLAGS
874CPP'
875
d6e9fb05
JK
876
877# Initialize some variables set by options.
bec39cab
AC
878ac_init_help=
879ac_init_version=false
81ecdfbb
RW
880ac_unrecognized_opts=
881ac_unrecognized_sep=
d6e9fb05
JK
882# The variables have the same names as the options, with
883# dashes changed to underlines.
bec39cab 884cache_file=/dev/null
d6e9fb05 885exec_prefix=NONE
d6e9fb05 886no_create=
d6e9fb05
JK
887no_recursion=
888prefix=NONE
889program_prefix=NONE
890program_suffix=NONE
891program_transform_name=s,x,x,
892silent=
893site=
894srcdir=
d6e9fb05
JK
895verbose=
896x_includes=NONE
897x_libraries=NONE
bec39cab
AC
898
899# Installation directory options.
900# These are left unexpanded so users can "make install exec_prefix=/foo"
901# and all the variables that are supposed to be based on exec_prefix
902# by default will actually change.
903# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 904# (The list follows the same order as the GNU Coding Standards.)
d6e9fb05
JK
905bindir='${exec_prefix}/bin'
906sbindir='${exec_prefix}/sbin'
907libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
908datarootdir='${prefix}/share'
909datadir='${datarootdir}'
d6e9fb05
JK
910sysconfdir='${prefix}/etc'
911sharedstatedir='${prefix}/com'
912localstatedir='${prefix}/var'
d6e9fb05
JK
913includedir='${prefix}/include'
914oldincludedir='/usr/include'
81ecdfbb
RW
915docdir='${datarootdir}/doc/${PACKAGE}'
916infodir='${datarootdir}/info'
917htmldir='${docdir}'
918dvidir='${docdir}'
919pdfdir='${docdir}'
920psdir='${docdir}'
921libdir='${exec_prefix}/lib'
922localedir='${datarootdir}/locale'
923mandir='${datarootdir}/man'
d6e9fb05 924
d6e9fb05 925ac_prev=
81ecdfbb 926ac_dashdash=
d6e9fb05
JK
927for ac_option
928do
d6e9fb05
JK
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
81ecdfbb 931 eval $ac_prev=\$ac_option
d6e9fb05
JK
932 ac_prev=
933 continue
934 fi
935
81ecdfbb
RW
936 case $ac_option in
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *) ac_optarg=yes ;;
939 esac
d6e9fb05
JK
940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
81ecdfbb
RW
943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
d6e9fb05
JK
946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 950 bindir=$ac_optarg ;;
d6e9fb05
JK
951
952 -build | --build | --buil | --bui | --bu)
bec39cab 953 ac_prev=build_alias ;;
d6e9fb05 954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 955 build_alias=$ac_optarg ;;
d6e9fb05
JK
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
d6e9fb05 966
81ecdfbb 967 -datadir | --datadir | --datadi | --datad)
d6e9fb05 968 ac_prev=datadir ;;
81ecdfbb 969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 970 datadir=$ac_optarg ;;
d6e9fb05 971
81ecdfbb
RW
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
d6e9fb05 979 -disable-* | --disable-*)
81ecdfbb 980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d6e9fb05 981 # Reject names that are not valid shell variable names.
81ecdfbb
RW
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988"enable_$ac_useropt"
989"*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=no ;;
994
995 -docdir | --docdir | --docdi | --doc | --do)
996 ac_prev=docdir ;;
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 docdir=$ac_optarg ;;
999
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 ac_prev=dvidir ;;
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
d6e9fb05
JK
1004
1005 -enable-* | --enable-*)
81ecdfbb 1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d6e9fb05 1007 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014"enable_$ac_useropt"
1015"*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
dae5f5cf 1018 esac
81ecdfbb 1019 eval enable_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
1020
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
bec39cab 1028 exec_prefix=$ac_optarg ;;
d6e9fb05
JK
1029
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1032 with_gas=yes ;;
1033
bec39cab
AC
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
d6e9fb05
JK
1040
1041 -host | --host | --hos | --ho)
bec39cab 1042 ac_prev=host_alias ;;
d6e9fb05 1043 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 1044 host_alias=$ac_optarg ;;
d6e9fb05 1045
81ecdfbb
RW
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 ac_prev=htmldir ;;
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 | --ht=*)
1050 htmldir=$ac_optarg ;;
1051
d6e9fb05
JK
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 1057 includedir=$ac_optarg ;;
d6e9fb05
JK
1058
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 ac_prev=infodir ;;
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 1062 infodir=$ac_optarg ;;
d6e9fb05
JK
1063
1064 -libdir | --libdir | --libdi | --libd)
1065 ac_prev=libdir ;;
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 1067 libdir=$ac_optarg ;;
d6e9fb05
JK
1068
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
bec39cab 1074 libexecdir=$ac_optarg ;;
d6e9fb05 1075
81ecdfbb
RW
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1080
d6e9fb05 1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1082 | --localstate | --localstat | --localsta | --localst | --locals)
d6e9fb05
JK
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 1086 localstatedir=$ac_optarg ;;
d6e9fb05
JK
1087
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 ac_prev=mandir ;;
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 1091 mandir=$ac_optarg ;;
d6e9fb05
JK
1092
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1095 with_fp=no ;;
1096
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 1098 | --no-cr | --no-c | -n)
d6e9fb05
JK
1099 no_create=yes ;;
1100
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 no_recursion=yes ;;
1104
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 1112 oldincludedir=$ac_optarg ;;
d6e9fb05
JK
1113
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 ac_prev=prefix ;;
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 1117 prefix=$ac_optarg ;;
d6e9fb05
JK
1118
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 1124 program_prefix=$ac_optarg ;;
d6e9fb05
JK
1125
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 1131 program_suffix=$ac_optarg ;;
d6e9fb05
JK
1132
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 1148 program_transform_name=$ac_optarg ;;
d6e9fb05 1149
81ecdfbb
RW
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 ac_prev=pdfdir ;;
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1154
1155 -psdir | --psdir | --psdi | --psd | --ps)
1156 ac_prev=psdir ;;
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 psdir=$ac_optarg ;;
1159
d6e9fb05
JK
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 silent=yes ;;
1163
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
bec39cab 1168 sbindir=$ac_optarg ;;
d6e9fb05
JK
1169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
bec39cab 1179 sharedstatedir=$ac_optarg ;;
d6e9fb05
JK
1180
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
bec39cab 1184 site=$ac_optarg ;;
434c4c77 1185
d6e9fb05
JK
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1189 srcdir=$ac_optarg ;;
d6e9fb05
JK
1190
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1196 sysconfdir=$ac_optarg ;;
d6e9fb05
JK
1197
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1199 ac_prev=target_alias ;;
d6e9fb05 1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1201 target_alias=$ac_optarg ;;
d6e9fb05
JK
1202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
bec39cab
AC
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
d6e9fb05
JK
1208
1209 -with-* | --with-*)
81ecdfbb 1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d6e9fb05 1211 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218"with_$ac_useropt"
1219"*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
dae5f5cf 1222 esac
81ecdfbb 1223 eval with_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
1224
1225 -without-* | --without-*)
81ecdfbb 1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d6e9fb05 1227 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234"with_$ac_useropt"
1235"*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
d6e9fb05
JK
1240
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1244
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1250 x_includes=$ac_optarg ;;
d6e9fb05
JK
1251
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1257 x_libraries=$ac_optarg ;;
d6e9fb05 1258
81ecdfbb
RW
1259 -*) as_fn_error "unrecognized option: \`$ac_option'
1260Try \`$0 --help' for more information."
d6e9fb05
JK
1261 ;;
1262
bec39cab
AC
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1269 esac
1270 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1271 export $ac_envvar ;;
1272
d6e9fb05 1273 *)
bec39cab 1274 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1278 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d6e9fb05
JK
1279 ;;
1280
1281 esac
1282done
1283
1284if test -n "$ac_prev"; then
bec39cab 1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1286 as_fn_error "missing argument to $ac_option"
d6e9fb05 1287fi
d6e9fb05 1288
81ecdfbb
RW
1289if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1291 no) ;;
1292 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
dae5f5cf 1294 esac
81ecdfbb 1295fi
dae5f5cf 1296
81ecdfbb
RW
1297# Check all directory arguments for consistency.
1298for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
dae5f5cf 1302do
81ecdfbb
RW
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1305 case $ac_val in
1306 */ )
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1309 esac
1310 # Be sure to have absolute directory names.
dae5f5cf 1311 case $ac_val in
81ecdfbb
RW
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d6e9fb05 1314 esac
81ecdfbb 1315 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
d6e9fb05
JK
1316done
1317
bec39cab
AC
1318# There might be people who depend on the old broken behavior: `$host'
1319# used to hold the argument of --host etc.
1320# FIXME: To remove some day.
1321build=$build_alias
1322host=$host_alias
1323target=$target_alias
1324
1325# FIXME: To remove some day.
1326if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
81ecdfbb 1329 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1330 If a cross compiler is detected then cross compile mode will be used." >&2
1331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334fi
d6e9fb05 1335
bec39cab
AC
1336ac_tool_prefix=
1337test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339test "$silent" = yes && exec 6>/dev/null
d6e9fb05 1340
d6e9fb05 1341
81ecdfbb
RW
1342ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343ac_ls_di=`ls -di .` &&
1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error "working directory cannot be determined"
1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error "pwd does not report name of working directory"
1348
1349
d6e9fb05
JK
1350# Find the source files, if location was not specified.
1351if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
81ecdfbb
RW
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359$as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
d6e9fb05 1377 srcdir=$ac_confdir
81ecdfbb 1378 if test ! -r "$srcdir/$ac_unique_file"; then
d6e9fb05
JK
1379 srcdir=..
1380 fi
1381else
1382 ac_srcdir_defaulted=no
1383fi
81ecdfbb
RW
1384if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1387fi
1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1391 pwd)`
1392# When building in place, set srcdir=.
1393if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395fi
1396# Remove unnecessary trailing slashes from srcdir.
1397# Double slashes in file names in object file debugging info
1398# mess up M-x gdb in Emacs.
1399case $srcdir in
1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401esac
1402for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407done
d6e9fb05 1408
bec39cab
AC
1409#
1410# Report the --help message.
1411#
1412if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416\`configure' configures this package to adapt to many kinds of systems.
1417
1418Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423Defaults for the options are specified in brackets.
1424
1425Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
bec39cab
AC
1436Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1438 [$ac_default_prefix]
bec39cab 1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1440 [PREFIX]
bec39cab
AC
1441
1442By default, \`make install' will install all the files in
1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445for instance \`--prefix=\$HOME'.
1446
1447For better control, use the options below.
1448
1449Fine tuning of the installation directories:
81ecdfbb
RW
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1469_ACEOF
1470
1471 cat <<\_ACEOF
1472
dcdb98d2
DJ
1473Program names:
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1477
bec39cab
AC
1478System types:
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 --target=TARGET configure for building compilers for TARGET [HOST]
1482_ACEOF
1483fi
1484
1485if test -n "$ac_init_help"; then
1486
1487 cat <<\_ACEOF
1488
d4596a3d
PA
1489Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c9a1864a
YQ
1493 --enable-maintainer-mode enable make rules and dependencies not useful
1494 (and sometimes confusing) to the casual installer
d4596a3d 1495 --enable-werror treat compile warnings as errors
c2a66c29
NS
1496 --enable-inprocess-agent
1497 inprocess agent
c9a1864a
YQ
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
d4596a3d 1500
c16158bc
JM
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0fb4aa4b
PA
1504 --with-ust=PATH Specify prefix directory for the installed UST package
1505 Equivalent to --with-ust-include=PATH/include
1506 plus --with-ust-lib=PATH/lib
1507 --with-ust-include=PATH Specify directory for installed UST include files
1508 --with-ust-lib=PATH Specify the directory for the installed UST library
c16158bc
JM
1509 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1510 --with-bugurl=URL Direct users to URL to report a bug
96f15937
PP
1511 --with-libthread-db=PATH
1512 use given libthread_db directly
c16158bc 1513
bec39cab
AC
1514Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
81ecdfbb
RW
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
bec39cab
AC
1522 CPP C preprocessor
1523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
81ecdfbb 1527Report bugs to the package provider.
bec39cab 1528_ACEOF
81ecdfbb 1529ac_status=$?
bec39cab
AC
1530fi
1531
1532if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
bec39cab 1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
bec39cab
AC
1538 ac_builddir=.
1539
81ecdfbb
RW
1540case "$ac_dir" in
1541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542*)
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550esac
1551ac_abs_top_builddir=$ac_pwd
1552ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553# for backward compatibility:
1554ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1555
1556case $srcdir in
81ecdfbb 1557 .) # We are building in place.
bec39cab 1558 ac_srcdir=.
81ecdfbb
RW
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1562 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dae5f5cf 1569esac
81ecdfbb
RW
1570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
434c4c77 1580 else
81ecdfbb
RW
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1584 done
1585fi
1586
81ecdfbb 1587test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1588if $ac_init_version; then
1589 cat <<\_ACEOF
81ecdfbb
RW
1590configure
1591generated by GNU Autoconf 2.64
bec39cab 1592
81ecdfbb 1593Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1594This configure script is free software; the Free Software Foundation
1595gives unlimited permission to copy, distribute and modify it.
1596_ACEOF
81ecdfbb 1597 exit
bec39cab 1598fi
bec39cab 1599
81ecdfbb
RW
1600## ------------------------ ##
1601## Autoconf initialization. ##
1602## ------------------------ ##
bec39cab 1603
81ecdfbb
RW
1604# ac_fn_c_try_compile LINENO
1605# --------------------------
1606# Try to compile conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_compile ()
bec39cab 1608{
81ecdfbb
RW
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631else
1632 $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1634
81ecdfbb
RW
1635 ac_retval=1
1636fi
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 return $ac_retval
bec39cab 1639
81ecdfbb 1640} # ac_fn_c_try_compile
bec39cab 1641
81ecdfbb
RW
1642# ac_fn_c_try_cpp LINENO
1643# ----------------------
1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_cpp ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } >/dev/null && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 }; then :
1667 ac_retval=0
1668else
1669 $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1671
81ecdfbb
RW
1672 ac_retval=1
1673fi
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 return $ac_retval
bec39cab 1676
81ecdfbb
RW
1677} # ac_fn_c_try_cpp
1678
1679# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1680# -------------------------------------------------------
1681# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1682# the include files in INCLUDES and setting the cache variable VAR
1683# accordingly.
1684ac_fn_c_check_header_mongrel ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689$as_echo_n "checking for $2... " >&6; }
1690if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1691 $as_echo_n "(cached) " >&6
1692fi
1693eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695$as_echo "$ac_res" >&6; }
1696else
1697 # Is the header compilable?
1698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1699$as_echo_n "checking $2 usability... " >&6; }
1700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701/* end confdefs.h. */
1702$4
1703#include <$2>
1704_ACEOF
1705if ac_fn_c_try_compile "$LINENO"; then :
1706 ac_header_compiler=yes
1707else
1708 ac_header_compiler=no
1709fi
1710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1712$as_echo "$ac_header_compiler" >&6; }
1713
1714# Is the header present?
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1716$as_echo_n "checking $2 presence... " >&6; }
1717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h. */
1719#include <$2>
1720_ACEOF
1721if ac_fn_c_try_cpp "$LINENO"; then :
1722 ac_header_preproc=yes
1723else
1724 ac_header_preproc=no
1725fi
1726rm -f conftest.err conftest.$ac_ext
1727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1728$as_echo "$ac_header_preproc" >&6; }
1729
1730# So? What about this header?
1731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1732 yes:no: )
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1734$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ;;
1738 no:yes:* )
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1740$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1742$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1744$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1746$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 ;;
1750esac
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754 $as_echo_n "(cached) " >&6
1755else
1756 eval "$3=\$ac_header_compiler"
1757fi
1758eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761fi
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763
1764} # ac_fn_c_check_header_mongrel
1765
1766# ac_fn_c_try_run LINENO
1767# ----------------------
1768# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1769# that executables *can* be run.
1770ac_fn_c_try_run ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_link"
1774case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1784 { { case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_try") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; }; }; then :
1794 ac_retval=0
1795else
1796 $as_echo "$as_me: program exited with status $ac_status" >&5
1797 $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=$ac_status
1801fi
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806} # ac_fn_c_try_run
1807
1808# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1809# -------------------------------------------------------
1810# Tests whether HEADER exists and can be compiled using the include files in
1811# INCLUDES, setting the cache variable VAR accordingly.
1812ac_fn_c_check_header_compile ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1819else
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h. */
1822$4
1823#include <$2>
1824_ACEOF
1825if ac_fn_c_try_compile "$LINENO"; then :
1826 eval "$3=yes"
1827else
1828 eval "$3=no"
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831fi
1832eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836
1837} # ac_fn_c_check_header_compile
1838
1839# ac_fn_c_try_link LINENO
1840# -----------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded.
1842ac_fn_c_try_link ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest$ac_exeext
1846 if { { ac_try="$ac_link"
1847case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest$ac_exeext && {
1865 test "$cross_compiling" = yes ||
1866 $as_test_x conftest$ac_exeext
1867 }; then :
1868 ac_retval=0
1869else
1870 $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=1
1874fi
1875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877 # interfere with the next link command; also delete a directory that is
1878 # left behind by Apple's compiler. We do this before executing the actions.
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 return $ac_retval
1882
1883} # ac_fn_c_try_link
1884
1885# ac_fn_c_check_func LINENO FUNC VAR
1886# ----------------------------------
1887# Tests whether FUNC exists, setting the cache variable VAR accordingly
1888ac_fn_c_check_func ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1895else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900#define $2 innocuous_$2
1901
1902/* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907#ifdef __STDC__
1908# include <limits.h>
1909#else
1910# include <assert.h>
1911#endif
1912
1913#undef $2
1914
1915/* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918#ifdef __cplusplus
1919extern "C"
1920#endif
1921char $2 ();
1922/* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925#if defined __stub_$2 || defined __stub___$2
1926choke me
1927#endif
1928
1929int
1930main ()
1931{
1932return $2 ();
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950} # ac_fn_c_check_func
1951
1952# ac_fn_c_check_decl LINENO SYMBOL VAR
1953# ------------------------------------
1954# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1955ac_fn_c_check_decl ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0fb4aa4b
PA
1958 as_decl_name=`echo $2|sed 's/ *(.*//'`
1959 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1961$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1962if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964else
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h. */
1967$4
1968int
1969main ()
1970{
0fb4aa4b
PA
1971#ifndef $as_decl_name
1972#ifdef __cplusplus
1973 (void) $as_decl_use;
1974#else
1975 (void) $as_decl_name;
1976#endif
81ecdfbb
RW
1977#endif
1978
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984 eval "$3=yes"
1985else
1986 eval "$3=no"
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989fi
1990eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994
1995} # ac_fn_c_check_decl
1996
1997# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998# -------------------------------------------
1999# Tests whether TYPE exists after having included INCLUDES, setting cache
2000# variable VAR accordingly.
2001ac_fn_c_check_type ()
2002{
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005$as_echo_n "checking for $2... " >&6; }
2006if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2007 $as_echo_n "(cached) " >&6
2008else
2009 eval "$3=no"
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013int
2014main ()
2015{
2016if (sizeof ($2))
2017 return 0;
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$4
2026int
2027main ()
2028{
2029if (sizeof (($2)))
2030 return 0;
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036
2037else
2038 eval "$3=yes"
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048
2049} # ac_fn_c_check_type
c9a1864a
YQ
2050
2051# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052# --------------------------------------------
2053# Tries to find the compile-time value of EXPR in a program that includes
2054# INCLUDES, setting VAR accordingly. Returns whether the value could be
2055# computed
2056ac_fn_c_compute_int ()
2057{
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if test "$cross_compiling" = yes; then
2060 # Depending upon the size, compute the lo and hi bounds.
2061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h. */
2063$4
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !(($2) >= 0)];
2068test_array [0] = 0
2069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_lo=0 ac_mid=0
2076 while :; do
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084test_array [0] = 0
2085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_hi=$ac_mid; break
2092else
2093 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2094 if test $ac_lo -le $ac_mid; then
2095 ac_lo= ac_hi=
2096 break
2097 fi
2098 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 done
2102else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105$4
2106int
2107main ()
2108{
2109static int test_array [1 - 2 * !(($2) < 0)];
2110test_array [0] = 0
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=-1 ac_mid=-1
2118 while :; do
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121$4
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126test_array [0] = 0
2127
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=$ac_mid; break
2134else
2135 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2136 if test $ac_mid -le $ac_hi; then
2137 ac_lo= ac_hi=
2138 break
2139 fi
2140 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2141fi
2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 done
2144else
2145 ac_lo= ac_hi=
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148fi
2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150# Binary search between lo and hi bounds.
2151while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h. */
2155$4
2156int
2157main ()
2158{
2159static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160test_array [0] = 0
2161
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_hi=$ac_mid
2168else
2169 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172done
2173case $ac_lo in #((
2174?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2175'') ac_retval=1 ;;
2176esac
2177 else
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h. */
2180$4
2181static long int longval () { return $2; }
2182static unsigned long int ulongval () { return $2; }
2183#include <stdio.h>
2184#include <stdlib.h>
2185int
2186main ()
2187{
2188
2189 FILE *f = fopen ("conftest.val", "w");
2190 if (! f)
2191 return 1;
2192 if (($2) < 0)
2193 {
2194 long int i = longval ();
2195 if (i != ($2))
2196 return 1;
2197 fprintf (f, "%ld", i);
2198 }
2199 else
2200 {
2201 unsigned long int i = ulongval ();
2202 if (i != ($2))
2203 return 1;
2204 fprintf (f, "%lu", i);
2205 }
2206 /* Do not output a trailing newline, as this causes \r\n confusion
2207 on some platforms. */
2208 return ferror (f) || fclose (f) != 0;
2209
2210 ;
2211 return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_run "$LINENO"; then :
2215 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2216else
2217 ac_retval=1
2218fi
2219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2220 conftest.$ac_objext conftest.beam conftest.$ac_ext
2221rm -f conftest.val
2222
2223 fi
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225 return $ac_retval
2226
2227} # ac_fn_c_compute_int
81ecdfbb
RW
2228cat >config.log <<_ACEOF
2229This file contains any messages produced by compilers while
2230running configure, to aid debugging if configure makes a mistake.
2231
2232It was created by $as_me, which was
2233generated by GNU Autoconf 2.64. Invocation command line was
2234
2235 $ $0 $@
2236
2237_ACEOF
2238exec 5>>config.log
2239{
2240cat <<_ASUNAME
2241## --------- ##
2242## Platform. ##
2243## --------- ##
2244
2245hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2246uname -m = `(uname -m) 2>/dev/null || echo unknown`
2247uname -r = `(uname -r) 2>/dev/null || echo unknown`
2248uname -s = `(uname -s) 2>/dev/null || echo unknown`
2249uname -v = `(uname -v) 2>/dev/null || echo unknown`
2250
2251/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2252/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2253
2254/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2255/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2256/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2257/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2258/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2259/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2260/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2261
2262_ASUNAME
2263
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 $as_echo "PATH: $as_dir"
2270 done
2271IFS=$as_save_IFS
2272
2273} >&5
2274
2275cat >&5 <<_ACEOF
2276
2277
2278## ----------- ##
2279## Core tests. ##
2280## ----------- ##
bec39cab
AC
2281
2282_ACEOF
2283
2284
2285# Keep a trace of the command line.
2286# Strip out --no-create and --no-recursion so they do not pile up.
2287# Strip out --silent because we don't want to record it for future runs.
2288# Also quote any args containing shell meta-characters.
2289# Make two passes to allow for proper duplicate-argument suppression.
2290ac_configure_args=
2291ac_configure_args0=
2292ac_configure_args1=
bec39cab
AC
2293ac_must_keep_next=false
2294for ac_pass in 1 2
2295do
2296 for ac_arg
2297 do
2298 case $ac_arg in
2299 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2301 | -silent | --silent | --silen | --sile | --sil)
2302 continue ;;
81ecdfbb
RW
2303 *\'*)
2304 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2305 esac
2306 case $ac_pass in
81ecdfbb 2307 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 2308 2)
81ecdfbb 2309 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
2310 if test $ac_must_keep_next = true; then
2311 ac_must_keep_next=false # Got value, back to normal.
2312 else
2313 case $ac_arg in
2314 *=* | --config-cache | -C | -disable-* | --disable-* \
2315 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2316 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2317 | -with-* | --with-* | -without-* | --without-* | --x)
2318 case "$ac_configure_args0 " in
2319 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2320 esac
2321 ;;
2322 -* ) ac_must_keep_next=true ;;
2323 esac
2324 fi
81ecdfbb 2325 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
2326 ;;
2327 esac
2328 done
2329done
81ecdfbb
RW
2330{ ac_configure_args0=; unset ac_configure_args0;}
2331{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
2332
2333# When interrupted or exit'd, cleanup temporary files, and complete
2334# config.log. We remove comments because anyway the quotes in there
2335# would cause problems or look ugly.
81ecdfbb
RW
2336# WARNING: Use '\'' to represent an apostrophe within the trap.
2337# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
2338trap 'exit_status=$?
2339 # Save into config.log some information that might help in debugging.
2340 {
2341 echo
2342
2343 cat <<\_ASBOX
2344## ---------------- ##
2345## Cache variables. ##
2346## ---------------- ##
2347_ASBOX
2348 echo
2349 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2350(
2351 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2352 eval ac_val=\$$ac_var
2353 case $ac_val in #(
2354 *${as_nl}*)
2355 case $ac_var in #(
2356 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2357$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2358 esac
2359 case $ac_var in #(
2360 _ | IFS | as_nl) ;; #(
2361 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2362 *) { eval $ac_var=; unset $ac_var;} ;;
2363 esac ;;
2364 esac
2365 done
bec39cab 2366 (set) 2>&1 |
81ecdfbb
RW
2367 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2368 *${as_nl}ac_space=\ *)
bec39cab 2369 sed -n \
81ecdfbb
RW
2370 "s/'\''/'\''\\\\'\'''\''/g;
2371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2372 ;; #(
bec39cab 2373 *)
81ecdfbb 2374 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 2375 ;;
81ecdfbb
RW
2376 esac |
2377 sort
2378)
bec39cab
AC
2379 echo
2380
2381 cat <<\_ASBOX
2382## ----------------- ##
2383## Output variables. ##
2384## ----------------- ##
2385_ASBOX
2386 echo
2387 for ac_var in $ac_subst_vars
2388 do
81ecdfbb
RW
2389 eval ac_val=\$$ac_var
2390 case $ac_val in
2391 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392 esac
2393 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2394 done | sort
2395 echo
2396
2397 if test -n "$ac_subst_files"; then
2398 cat <<\_ASBOX
81ecdfbb
RW
2399## ------------------- ##
2400## File substitutions. ##
2401## ------------------- ##
bec39cab
AC
2402_ASBOX
2403 echo
2404 for ac_var in $ac_subst_files
2405 do
81ecdfbb
RW
2406 eval ac_val=\$$ac_var
2407 case $ac_val in
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 esac
2410 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2411 done | sort
2412 echo
434c4c77 2413 fi
bec39cab
AC
2414
2415 if test -s confdefs.h; then
2416 cat <<\_ASBOX
2417## ----------- ##
2418## confdefs.h. ##
2419## ----------- ##
2420_ASBOX
2421 echo
81ecdfbb 2422 cat confdefs.h
bec39cab
AC
2423 echo
2424 fi
2425 test "$ac_signal" != 0 &&
81ecdfbb
RW
2426 $as_echo "$as_me: caught signal $ac_signal"
2427 $as_echo "$as_me: exit $exit_status"
bec39cab 2428 } >&5
81ecdfbb
RW
2429 rm -f core *.core core.conftest.* &&
2430 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 2431 exit $exit_status
81ecdfbb 2432' 0
bec39cab 2433for ac_signal in 1 2 13 15; do
81ecdfbb 2434 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
2435done
2436ac_signal=0
2437
2438# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2439rm -f -r conftest* confdefs.h
2440
2441$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
2442
2443# Predefined preprocessor variables.
2444
2445cat >>confdefs.h <<_ACEOF
2446#define PACKAGE_NAME "$PACKAGE_NAME"
2447_ACEOF
2448
bec39cab
AC
2449cat >>confdefs.h <<_ACEOF
2450#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2451_ACEOF
2452
bec39cab
AC
2453cat >>confdefs.h <<_ACEOF
2454#define PACKAGE_VERSION "$PACKAGE_VERSION"
2455_ACEOF
2456
bec39cab
AC
2457cat >>confdefs.h <<_ACEOF
2458#define PACKAGE_STRING "$PACKAGE_STRING"
2459_ACEOF
2460
bec39cab
AC
2461cat >>confdefs.h <<_ACEOF
2462#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2463_ACEOF
2464
81ecdfbb
RW
2465cat >>confdefs.h <<_ACEOF
2466#define PACKAGE_URL "$PACKAGE_URL"
2467_ACEOF
2468
bec39cab
AC
2469
2470# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2471# Prefer an explicitly selected file to automatically selected ones.
2472ac_site_file1=NONE
2473ac_site_file2=NONE
2474if test -n "$CONFIG_SITE"; then
2475 ac_site_file1=$CONFIG_SITE
2476elif test "x$prefix" != xNONE; then
2477 ac_site_file1=$prefix/share/config.site
2478 ac_site_file2=$prefix/etc/config.site
2479else
2480 ac_site_file1=$ac_default_prefix/share/config.site
2481 ac_site_file2=$ac_default_prefix/etc/config.site
d6e9fb05 2482fi
81ecdfbb
RW
2483for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2484do
2485 test "x$ac_site_file" = xNONE && continue
d6e9fb05 2486 if test -r "$ac_site_file"; then
81ecdfbb
RW
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2488$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 2489 sed 's/^/| /' "$ac_site_file" >&5
d6e9fb05
JK
2490 . "$ac_site_file"
2491 fi
2492done
2493
2494if test -r "$cache_file"; then
bec39cab
AC
2495 # Some versions of bash will fail to source /dev/null (special
2496 # files actually), so we avoid doing that.
2497 if test -f "$cache_file"; then
81ecdfbb
RW
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2499$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 2500 case $cache_file in
81ecdfbb
RW
2501 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2502 *) . "./$cache_file";;
bec39cab
AC
2503 esac
2504 fi
d6e9fb05 2505else
81ecdfbb
RW
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2507$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 2508 >$cache_file
d6e9fb05
JK
2509fi
2510
55a8c076 2511gl_header_list="$gl_header_list wchar.h"
770d76d7 2512gl_header_list="$gl_header_list stdint.h"
55a8c076 2513gl_header_list="$gl_header_list inttypes.h"
c9a1864a
YQ
2514gl_header_list="$gl_header_list sys/mman.h"
2515gl_func_list="$gl_func_list mprotect"
bec39cab
AC
2516# Check that the precious variables saved in the cache have kept the same
2517# value.
2518ac_cache_corrupted=false
81ecdfbb 2519for ac_var in $ac_precious_vars; do
bec39cab
AC
2520 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2521 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2522 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2523 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
2524 case $ac_old_set,$ac_new_set in
2525 set,)
81ecdfbb
RW
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2527$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
2528 ac_cache_corrupted=: ;;
2529 ,set)
81ecdfbb
RW
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2531$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
2532 ac_cache_corrupted=: ;;
2533 ,);;
2534 *)
2535 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2536 # differences in whitespace do not lead to failure.
2537 ac_old_val_w=`echo x $ac_old_val`
2538 ac_new_val_w=`echo x $ac_new_val`
2539 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2541$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2542 ac_cache_corrupted=:
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2545$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2546 eval $ac_var=\$ac_old_val
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2549$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2551$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
2552 fi;;
2553 esac
2554 # Pass precious variables to config.status.
2555 if test "$ac_new_set" = set; then
2556 case $ac_new_val in
81ecdfbb 2557 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2558 *) ac_arg=$ac_var=$ac_new_val ;;
2559 esac
2560 case " $ac_configure_args " in
2561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2562 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 2563 esac
d6e9fb05 2564 fi
bec39cab
AC
2565done
2566if $ac_cache_corrupted; then
81ecdfbb
RW
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2570$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2571 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d6e9fb05 2572fi
81ecdfbb
RW
2573## -------------------- ##
2574## Main body of script. ##
2575## -------------------- ##
d6e9fb05 2576
dae5f5cf
DJ
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
d6e9fb05 2583
84563040 2584
bec39cab
AC
2585
2586
81ecdfbb 2587ac_config_headers="$ac_config_headers config.h:config.in"
bec39cab
AC
2588
2589
e28b3332 2590
c9a1864a
YQ
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2592$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2593 # Check whether --enable-maintainer-mode was given.
2594if test "${enable_maintainer_mode+set}" = set; then :
2595 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2596else
2597 USE_MAINTAINER_MODE=no
2598fi
2599
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2601$as_echo "$USE_MAINTAINER_MODE" >&6; }
2602 if test $USE_MAINTAINER_MODE = yes; then
2603 MAINTAINER_MODE_TRUE=
2604 MAINTAINER_MODE_FALSE='#'
2605else
2606 MAINTAINER_MODE_TRUE='#'
2607 MAINTAINER_MODE_FALSE=
2608fi
2609
2610 MAINT=$MAINTAINER_MODE_TRUE
2611
2612
2613
bec39cab
AC
2614ac_ext=c
2615ac_cpp='$CPP $CPPFLAGS'
2616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2621set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623$as_echo_n "checking for $ac_word... " >&6; }
2624if test "${ac_cv_prog_CC+set}" = set; then :
2625 $as_echo_n "(cached) " >&6
84563040
DJ
2626else
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2629else
bec39cab
AC
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2639 break 2
2640 fi
2641done
81ecdfbb
RW
2642 done
2643IFS=$as_save_IFS
bec39cab 2644
84563040
DJ
2645fi
2646fi
bec39cab 2647CC=$ac_cv_prog_CC
84563040 2648if test -n "$CC"; then
81ecdfbb
RW
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650$as_echo "$CC" >&6; }
84563040 2651else
81ecdfbb
RW
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653$as_echo "no" >&6; }
84563040
DJ
2654fi
2655
81ecdfbb 2656
bec39cab
AC
2657fi
2658if test -z "$ac_cv_prog_CC"; then
2659 ac_ct_CC=$CC
2660 # Extract the first word of "gcc", so it can be a program name with args.
2661set dummy gcc; ac_word=$2
81ecdfbb
RW
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663$as_echo_n "checking for $ac_word... " >&6; }
2664if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
84563040 2666else
bec39cab
AC
2667 if test -n "$ac_ct_CC"; then
2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
84563040 2669else
bec39cab
AC
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2677 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2679 break 2
2680 fi
2681done
81ecdfbb
RW
2682 done
2683IFS=$as_save_IFS
bec39cab
AC
2684
2685fi
2686fi
2687ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2690$as_echo "$ac_ct_CC" >&6; }
bec39cab 2691else
81ecdfbb
RW
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693$as_echo "no" >&6; }
bec39cab
AC
2694fi
2695
81ecdfbb
RW
2696 if test "x$ac_ct_CC" = x; then
2697 CC=""
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700yes:)
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703ac_tool_warned=yes ;;
2704esac
2705 CC=$ac_ct_CC
2706 fi
bec39cab
AC
2707else
2708 CC="$ac_cv_prog_CC"
2709fi
2710
2711if test -z "$CC"; then
81ecdfbb
RW
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2714set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if test "${ac_cv_prog_CC+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
bec39cab
AC
2719else
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2730 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2732 break 2
2733 fi
2734done
81ecdfbb
RW
2735 done
2736IFS=$as_save_IFS
bec39cab
AC
2737
2738fi
2739fi
2740CC=$ac_cv_prog_CC
2741if test -n "$CC"; then
81ecdfbb
RW
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743$as_echo "$CC" >&6; }
bec39cab 2744else
81ecdfbb
RW
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; }
bec39cab
AC
2747fi
2748
81ecdfbb
RW
2749
2750 fi
dae5f5cf 2751fi
81ecdfbb 2752if test -z "$CC"; then
dae5f5cf
DJ
2753 # Extract the first word of "cc", so it can be a program name with args.
2754set dummy cc; ac_word=$2
81ecdfbb
RW
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if test "${ac_cv_prog_CC+set}" = set; then :
2758 $as_echo_n "(cached) " >&6
dae5f5cf 2759else
81ecdfbb
RW
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
dae5f5cf 2762else
81ecdfbb 2763 ac_prog_rejected=no
dae5f5cf
DJ
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2772 ac_prog_rejected=yes
2773 continue
2774 fi
2775 ac_cv_prog_CC="cc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dae5f5cf 2777 break 2
b80864fb 2778 fi
dae5f5cf 2779done
81ecdfbb
RW
2780 done
2781IFS=$as_save_IFS
bec39cab 2782
84563040
DJ
2783if test $ac_prog_rejected = yes; then
2784 # We found a bogon in the path, so make sure we never use it.
2785 set dummy $ac_cv_prog_CC
2786 shift
bec39cab 2787 if test $# != 0; then
84563040
DJ
2788 # We chose a different compiler from the bogus one.
2789 # However, it has the same basename, so the bogon will be chosen
2790 # first if we set CC to just the basename; use the full file name.
2791 shift
bec39cab 2792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
84563040
DJ
2793 fi
2794fi
2795fi
2796fi
bec39cab 2797CC=$ac_cv_prog_CC
84563040 2798if test -n "$CC"; then
81ecdfbb
RW
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800$as_echo "$CC" >&6; }
84563040 2801else
81ecdfbb
RW
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
84563040
DJ
2804fi
2805
81ecdfbb 2806
bec39cab
AC
2807fi
2808if test -z "$CC"; then
2809 if test -n "$ac_tool_prefix"; then
81ecdfbb 2810 for ac_prog in cl.exe
bec39cab
AC
2811 do
2812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815$as_echo_n "checking for $ac_word... " >&6; }
2816if test "${ac_cv_prog_CC+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
84563040
DJ
2818else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821else
bec39cab
AC
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2831 break 2
2832 fi
2833done
81ecdfbb
RW
2834 done
2835IFS=$as_save_IFS
bec39cab 2836
84563040
DJ
2837fi
2838fi
bec39cab 2839CC=$ac_cv_prog_CC
84563040 2840if test -n "$CC"; then
81ecdfbb
RW
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842$as_echo "$CC" >&6; }
84563040 2843else
81ecdfbb
RW
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845$as_echo "no" >&6; }
84563040 2846fi
bec39cab 2847
81ecdfbb 2848
bec39cab
AC
2849 test -n "$CC" && break
2850 done
2851fi
2852if test -z "$CC"; then
2853 ac_ct_CC=$CC
81ecdfbb 2854 for ac_prog in cl.exe
bec39cab
AC
2855do
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859$as_echo_n "checking for $ac_word... " >&6; }
2860if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
bec39cab
AC
2862else
2863 if test -n "$ac_ct_CC"; then
2864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2865else
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2873 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab 2875 break 2
84563040 2876 fi
bec39cab 2877done
81ecdfbb
RW
2878 done
2879IFS=$as_save_IFS
bec39cab
AC
2880
2881fi
2882fi
2883ac_ct_CC=$ac_cv_prog_ac_ct_CC
2884if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2886$as_echo "$ac_ct_CC" >&6; }
bec39cab 2887else
81ecdfbb
RW
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889$as_echo "no" >&6; }
84563040
DJ
2890fi
2891
81ecdfbb 2892
bec39cab
AC
2893 test -n "$ac_ct_CC" && break
2894done
84563040 2895
81ecdfbb
RW
2896 if test "x$ac_ct_CC" = x; then
2897 CC=""
2898 else
2899 case $cross_compiling:$ac_tool_warned in
2900yes:)
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2903ac_tool_warned=yes ;;
2904esac
2905 CC=$ac_ct_CC
2906 fi
bec39cab
AC
2907fi
2908
2909fi
2910
2911
81ecdfbb
RW
2912test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914as_fn_error "no acceptable C compiler found in \$PATH
2915See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2916
2917# Provide some information about the compiler.
81ecdfbb
RW
2918$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2919set X $ac_compile
2920ac_compiler=$2
2921for ac_option in --version -v -V -qversion; do
2922 { { ac_try="$ac_compiler $ac_option >&5"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928$as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2930 ac_status=$?
81ecdfbb
RW
2931 if test -s conftest.err; then
2932 sed '10a\
2933... rest of stderr output deleted ...
2934 10q' conftest.err >conftest.er1
2935 cat conftest.er1 >&5
2936 rm -f conftest.er1 conftest.err
2937 fi
2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }
2940done
bec39cab 2941
81ecdfbb 2942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2943/* end confdefs.h. */
2944
2945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953ac_clean_files_save=$ac_clean_files
81ecdfbb 2954ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
2955# Try to create an executable without -o first, disregard a.out.
2956# It will help us diagnose broken compilers, and finding out an intuition
2957# of exeext.
81ecdfbb
RW
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2959$as_echo_n "checking for C compiler default output file name... " >&6; }
2960ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961
2962# The possible output files:
2963ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2964
2965ac_rmfiles=
2966for ac_file in $ac_files
2967do
2968 case $ac_file in
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971 esac
2972done
2973rm -f $ac_rmfiles
2974
2975if { { ac_try="$ac_link_default"
2976case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
2980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981$as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_link_default") 2>&5
bec39cab 2983 ac_status=$?
81ecdfbb
RW
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }; then :
2986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2987# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2988# in a Makefile. We should not override ac_cv_exeext if it was cached,
2989# so that the user can short-circuit this test for compilers unknown to
2990# Autoconf.
2991for ac_file in $ac_files ''
bec39cab
AC
2992do
2993 test -f "$ac_file" || continue
2994 case $ac_file in
81ecdfbb 2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2996 ;;
2997 [ab].out )
2998 # We found the default executable, but exeext='' is most
2999 # certainly right.
3000 break;;
3001 *.* )
81ecdfbb
RW
3002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003 then :; else
3004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 fi
3006 # We set ac_cv_exeext here because the later test for it is not
3007 # safe: cross compilers may not add the suffix if given an `-o'
3008 # argument, so we may need to know it at that point already.
3009 # Even if this section looks crufty: it has the advantage of
3010 # actually working.
bec39cab
AC
3011 break;;
3012 * )
3013 break;;
3014 esac
3015done
81ecdfbb
RW
3016test "$ac_cv_exeext" = no && ac_cv_exeext=
3017
bec39cab 3018else
81ecdfbb
RW
3019 ac_file=''
3020fi
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3022$as_echo "$ac_file" >&6; }
3023if test -z "$ac_file"; then :
3024 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
81ecdfbb
RW
3027{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029{ as_fn_set_status 77
3030as_fn_error "C compiler cannot create executables
3031See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 3032fi
bec39cab 3033ac_exeext=$ac_cv_exeext
bec39cab 3034
81ecdfbb 3035# Check that the compiler produces executables we can run. If not, either
bec39cab 3036# the compiler is broken, or we cross compile.
81ecdfbb
RW
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3038$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
3039# If not cross compiling, check that we can run a simple program.
3040if test "$cross_compiling" != yes; then
3041 if { ac_try='./$ac_file'
81ecdfbb
RW
3042 { { case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047$as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_try") 2>&5
bec39cab 3049 ac_status=$?
81ecdfbb
RW
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }; }; then
bec39cab 3052 cross_compiling=no
84563040 3053 else
bec39cab
AC
3054 if test "$cross_compiling" = maybe; then
3055 cross_compiling=yes
3056 else
81ecdfbb
RW
3057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059as_fn_error "cannot run C compiled programs.
bec39cab 3060If you meant to cross compile, use \`--host'.
81ecdfbb 3061See \`config.log' for more details." "$LINENO" 5; }
bec39cab 3062 fi
84563040 3063 fi
84563040 3064fi
81ecdfbb
RW
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066$as_echo "yes" >&6; }
bec39cab 3067
81ecdfbb 3068rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
bec39cab 3069ac_clean_files=$ac_clean_files_save
81ecdfbb 3070# Check that the compiler produces executables we can run. If not, either
bec39cab 3071# the compiler is broken, or we cross compile.
81ecdfbb
RW
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3073$as_echo_n "checking whether we are cross compiling... " >&6; }
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3075$as_echo "$cross_compiling" >&6; }
3076
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3078$as_echo_n "checking for suffix of executables... " >&6; }
3079if { { ac_try="$ac_link"
3080case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085$as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_link") 2>&5
bec39cab 3087 ac_status=$?
81ecdfbb
RW
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; then :
bec39cab
AC
3090 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3091# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3092# work properly (i.e., refer to `conftest.exe'), while it won't with
3093# `rm'.
3094for ac_file in conftest.exe conftest conftest.*; do
3095 test -f "$ac_file" || continue
3096 case $ac_file in
81ecdfbb 3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 3098 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
3099 break;;
3100 * ) break;;
3101 esac
3102done
84563040 3103else
81ecdfbb
RW
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106as_fn_error "cannot compute suffix of executables: cannot compile and link
3107See \`config.log' for more details." "$LINENO" 5; }
84563040 3108fi
bec39cab 3109rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3111$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
3112
3113rm -f conftest.$ac_ext
3114EXEEXT=$ac_cv_exeext
3115ac_exeext=$EXEEXT
81ecdfbb
RW
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3117$as_echo_n "checking for suffix of object files... " >&6; }
3118if test "${ac_cv_objext+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
bec39cab 3120else
81ecdfbb 3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.o conftest.obj
81ecdfbb
RW
3133if { { ac_try="$ac_compile"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compile") 2>&5
bec39cab 3141 ac_status=$?
81ecdfbb
RW
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 for ac_file in conftest.o conftest.obj conftest.*; do
3145 test -f "$ac_file" || continue;
bec39cab 3146 case $ac_file in
81ecdfbb 3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
3148 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149 break;;
3150 esac
3151done
3152else
81ecdfbb 3153 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
81ecdfbb
RW
3156{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158as_fn_error "cannot compute suffix of object files: cannot compile
3159See \`config.log' for more details." "$LINENO" 5; }
84563040 3160fi
bec39cab
AC
3161rm -f conftest.$ac_cv_objext conftest.$ac_ext
3162fi
81ecdfbb
RW
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3164$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
3165OBJEXT=$ac_cv_objext
3166ac_objext=$OBJEXT
81ecdfbb
RW
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3168$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3169if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
bec39cab 3171else
81ecdfbb 3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178#ifndef __GNUC__
3179 choke me
3180#endif
84563040 3181
bec39cab
AC
3182 ;
3183 return 0;
3184}
3185_ACEOF
81ecdfbb 3186if ac_fn_c_try_compile "$LINENO"; then :
bec39cab 3187 ac_compiler_gnu=yes
84563040 3188else
81ecdfbb 3189 ac_compiler_gnu=no
84563040 3190fi
81ecdfbb 3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 3192ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 3193
bec39cab 3194fi
81ecdfbb
RW
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3196$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3197if test $ac_compiler_gnu = yes; then
3198 GCC=yes
3199else
3200 GCC=
3201fi
bec39cab
AC
3202ac_test_CFLAGS=${CFLAGS+set}
3203ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3205$as_echo_n "checking whether $CC accepts -g... " >&6; }
3206if test "${ac_cv_prog_cc_g+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208else
3209 ac_save_c_werror_flag=$ac_c_werror_flag
3210 ac_c_werror_flag=yes
3211 ac_cv_prog_cc_g=no
3212 CFLAGS="-g"
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3214/* end confdefs.h. */
3215
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
81ecdfbb 3224if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
3225 ac_cv_prog_cc_g=yes
3226else
81ecdfbb
RW
3227 CFLAGS=""
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */
3230
3231int
3232main ()
3233{
3234
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239if ac_fn_c_try_compile "$LINENO"; then :
3240
3241else
3242 ac_c_werror_flag=$ac_save_c_werror_flag
3243 CFLAGS="-g"
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
3246
3247int
3248main ()
3249{
84563040 3250
81ecdfbb
RW
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255if ac_fn_c_try_compile "$LINENO"; then :
3256 ac_cv_prog_cc_g=yes
3257fi
3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040 3259fi
81ecdfbb 3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 3261fi
81ecdfbb
RW
3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3264fi
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3266$as_echo "$ac_cv_prog_cc_g" >&6; }
84563040 3267if test "$ac_test_CFLAGS" = set; then
bec39cab 3268 CFLAGS=$ac_save_CFLAGS
84563040
DJ
3269elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3271 CFLAGS="-g -O2"
3272 else
3273 CFLAGS="-g"
3274 fi
3275else
3276 if test "$GCC" = yes; then
3277 CFLAGS="-O2"
3278 else
3279 CFLAGS=
3280 fi
3281fi
81ecdfbb
RW
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3283$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3284if test "${ac_cv_prog_cc_c89+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
bec39cab 3286else
81ecdfbb 3287 ac_cv_prog_cc_c89=no
bec39cab 3288ac_save_CC=$CC
81ecdfbb 3289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3290/* end confdefs.h. */
3291#include <stdarg.h>
3292#include <stdio.h>
3293#include <sys/types.h>
3294#include <sys/stat.h>
3295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296struct buf { int x; };
3297FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298static char *e (p, i)
3299 char **p;
3300 int i;
3301{
3302 return p[i];
3303}
3304static char *f (char * (*g) (char **, int), char **p, ...)
3305{
3306 char *s;
3307 va_list v;
3308 va_start (v,p);
3309 s = g (p, va_arg (v,int));
3310 va_end (v);
3311 return s;
3312}
3313
3314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3317 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
3318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3320 that's true only with -std. */
bec39cab
AC
3321int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
81ecdfbb
RW
3323/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3325#define FOO(x) 'x'
3326int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327
bec39cab
AC
3328int test (int i, double x);
3329struct s1 {int (*f) (int a);};
3330struct s2 {int (*f) (double a);};
3331int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332int argc;
3333char **argv;
3334int
3335main ()
3336{
3337return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 ;
3339 return 0;
3340}
3341_ACEOF
81ecdfbb
RW
3342for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
3344do
3345 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_cv_prog_cc_c89=$ac_arg
bec39cab 3348fi
81ecdfbb
RW
3349rm -f core conftest.err conftest.$ac_objext
3350 test "x$ac_cv_prog_cc_c89" != "xno" && break
bec39cab 3351done
81ecdfbb 3352rm -f conftest.$ac_ext
bec39cab
AC
3353CC=$ac_save_CC
3354
3355fi
81ecdfbb
RW
3356# AC_CACHE_VAL
3357case "x$ac_cv_prog_cc_c89" in
3358 x)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3360$as_echo "none needed" >&6; } ;;
3361 xno)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3363$as_echo "unsupported" >&6; } ;;
bec39cab 3364 *)
81ecdfbb
RW
3365 CC="$CC $ac_cv_prog_cc_c89"
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3367$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bec39cab 3368esac
81ecdfbb 3369if test "x$ac_cv_prog_cc_c89" != xno; then :
bec39cab 3370
dae5f5cf
DJ
3371fi
3372
dae5f5cf 3373ac_ext=c
bec39cab
AC
3374ac_cpp='$CPP $CPPFLAGS'
3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040 3378
c9a1864a
YQ
3379
3380ac_ext=c
3381ac_cpp='$CPP $CPPFLAGS'
3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3386$as_echo_n "checking how to run the C preprocessor... " >&6; }
3387# On Suns, sometimes $CPP names a directory.
3388if test -n "$CPP" && test -d "$CPP"; then
3389 CPP=
3390fi
3391if test -z "$CPP"; then
3392 if test "${ac_cv_prog_CPP+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394else
3395 # Double quotes because CPP needs to be expanded
3396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3397 do
3398 ac_preproc_ok=false
3399for ac_c_preproc_warn_flag in '' yes
3400do
3401 # Use a header file that comes with gcc, so configuring glibc
3402 # with a fresh cross-compiler works.
3403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3404 # <limits.h> exists even on freestanding compilers.
3405 # On the NeXT, cc -E runs the code through the compiler's parser,
3406 # not just through cpp. "Syntax error" is here to catch this case.
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h. */
3409#ifdef __STDC__
3410# include <limits.h>
3411#else
3412# include <assert.h>
3413#endif
3414 Syntax error
3415_ACEOF
3416if ac_fn_c_try_cpp "$LINENO"; then :
3417
3418else
3419 # Broken: fails on valid input.
3420continue
3421fi
3422rm -f conftest.err conftest.$ac_ext
3423
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h. */
3428#include <ac_nonexistent.h>
3429_ACEOF
3430if ac_fn_c_try_cpp "$LINENO"; then :
3431 # Broken: success on invalid input.
3432continue
3433else
3434 # Passes both tests.
3435ac_preproc_ok=:
3436break
3437fi
3438rm -f conftest.err conftest.$ac_ext
3439
3440done
3441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442rm -f conftest.err conftest.$ac_ext
3443if $ac_preproc_ok; then :
3444 break
3445fi
3446
3447 done
3448 ac_cv_prog_CPP=$CPP
3449
3450fi
3451 CPP=$ac_cv_prog_CPP
3452else
3453 ac_cv_prog_CPP=$CPP
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3456$as_echo "$CPP" >&6; }
3457ac_preproc_ok=false
3458for ac_c_preproc_warn_flag in '' yes
3459do
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h. */
3468#ifdef __STDC__
3469# include <limits.h>
3470#else
3471# include <assert.h>
3472#endif
3473 Syntax error
3474_ACEOF
3475if ac_fn_c_try_cpp "$LINENO"; then :
3476
3477else
3478 # Broken: fails on valid input.
3479continue
3480fi
3481rm -f conftest.err conftest.$ac_ext
3482
3483 # OK, works on sane cases. Now check whether nonexistent headers
3484 # can be detected and how.
81ecdfbb 3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3486/* end confdefs.h. */
3487#include <ac_nonexistent.h>
3488_ACEOF
81ecdfbb 3489if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3490 # Broken: success on invalid input.
3491continue
3492else
bec39cab
AC
3493 # Passes both tests.
3494ac_preproc_ok=:
3495break
3496fi
3497rm -f conftest.err conftest.$ac_ext
3498
3499done
3500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3501rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3502if $ac_preproc_ok; then :
3503
3504else
3505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507as_fn_error "C preprocessor \"$CPP\" fails sanity check
3508See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3509fi
3510
81ecdfbb
RW
3511ac_ext=c
3512ac_cpp='$CPP $CPPFLAGS'
3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_c_compiler_gnu
bec39cab 3516
81ecdfbb
RW
3517
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3519$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3520if test "${ac_cv_path_GREP+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
bec39cab 3522else
81ecdfbb
RW
3523 if test -z "$GREP"; then
3524 ac_path_GREP_found=false
3525 # Loop through the user's path and test for each of PROGNAME-LIST
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
bec39cab 3528do
81ecdfbb
RW
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_prog in grep ggrep; do
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3534 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3535# Check for GNU ac_path_GREP and select it if it is found.
3536 # Check for GNU $ac_path_GREP
3537case `"$ac_path_GREP" --version 2>&1` in
3538*GNU*)
3539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3540*)
3541 ac_count=0
3542 $as_echo_n 0123456789 >"conftest.in"
3543 while :
3544 do
3545 cat "conftest.in" "conftest.in" >"conftest.tmp"
3546 mv "conftest.tmp" "conftest.in"
3547 cp "conftest.in" "conftest.nl"
3548 $as_echo 'GREP' >> "conftest.nl"
3549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3551 as_fn_arith $ac_count + 1 && ac_count=$as_val
3552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3553 # Best one so far, save it but keep looking for a better one
3554 ac_cv_path_GREP="$ac_path_GREP"
3555 ac_path_GREP_max=$ac_count
3556 fi
3557 # 10*(2^10) chars as input seems more than enough
3558 test $ac_count -gt 10 && break
3559 done
3560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3561esac
3562
3563 $ac_path_GREP_found && break 3
3564 done
3565 done
3566 done
3567IFS=$as_save_IFS
3568 if test -z "$ac_cv_path_GREP"; then
3569 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bec39cab
AC
3570 fi
3571else
81ecdfbb 3572 ac_cv_path_GREP=$GREP
bec39cab 3573fi
bec39cab 3574
84563040 3575fi
81ecdfbb
RW
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3577$as_echo "$ac_cv_path_GREP" >&6; }
3578 GREP="$ac_cv_path_GREP"
bec39cab 3579
bec39cab 3580
81ecdfbb
RW
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3582$as_echo_n "checking for egrep... " >&6; }
3583if test "${ac_cv_path_EGREP+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3585else
3586 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3587 then ac_cv_path_EGREP="$GREP -E"
3588 else
3589 if test -z "$EGREP"; then
3590 ac_path_EGREP_found=false
3591 # Loop through the user's path and test for each of PROGNAME-LIST
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3594do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_prog in egrep; do
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3600 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3601# Check for GNU ac_path_EGREP and select it if it is found.
3602 # Check for GNU $ac_path_EGREP
3603case `"$ac_path_EGREP" --version 2>&1` in
3604*GNU*)
3605 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3606*)
3607 ac_count=0
3608 $as_echo_n 0123456789 >"conftest.in"
3609 while :
3610 do
3611 cat "conftest.in" "conftest.in" >"conftest.tmp"
3612 mv "conftest.tmp" "conftest.in"
3613 cp "conftest.in" "conftest.nl"
3614 $as_echo 'EGREP' >> "conftest.nl"
3615 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3617 as_fn_arith $ac_count + 1 && ac_count=$as_val
3618 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3619 # Best one so far, save it but keep looking for a better one
3620 ac_cv_path_EGREP="$ac_path_EGREP"
3621 ac_path_EGREP_max=$ac_count
3622 fi
3623 # 10*(2^10) chars as input seems more than enough
3624 test $ac_count -gt 10 && break
3625 done
3626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3627esac
bec39cab 3628
81ecdfbb
RW
3629 $ac_path_EGREP_found && break 3
3630 done
3631 done
3632 done
3633IFS=$as_save_IFS
3634 if test -z "$ac_cv_path_EGREP"; then
3635 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3636 fi
bec39cab 3637else
81ecdfbb 3638 ac_cv_path_EGREP=$EGREP
84563040 3639fi
bec39cab 3640
81ecdfbb 3641 fi
b80864fb 3642fi
81ecdfbb
RW
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3644$as_echo "$ac_cv_path_EGREP" >&6; }
3645 EGREP="$ac_cv_path_EGREP"
b80864fb
DJ
3646
3647
bec39cab 3648
bec39cab 3649
770d76d7
PA
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
3651$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
3652if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
84563040 3654else
84563040 3655
770d76d7 3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3657/* end confdefs.h. */
84563040 3658
770d76d7
PA
3659#ifdef __ACK__
3660Amsterdam
3661#endif
bec39cab
AC
3662
3663_ACEOF
84563040 3664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
770d76d7
PA
3665 $EGREP "Amsterdam" >/dev/null 2>&1; then :
3666 gl_cv_c_amsterdam_compiler=yes
84563040 3667else
770d76d7 3668 gl_cv_c_amsterdam_compiler=no
84563040
DJ
3669fi
3670rm -f conftest*
3671
bec39cab 3672
770d76d7
PA
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
3675$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
3676 if test -z "$AR"; then
3677 if test $gl_cv_c_amsterdam_compiler = yes; then
3678 AR='cc -c.a'
3679 if test -z "$ARFLAGS"; then
3680 ARFLAGS='-o'
3681 fi
3682 else
3683 if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3685set dummy ${ac_tool_prefix}ar; ac_word=$2
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687$as_echo_n "checking for $ac_word... " >&6; }
3688if test "${ac_cv_prog_AR+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
bec39cab 3690else
770d76d7
PA
3691 if test -n "$AR"; then
3692 ac_cv_prog_AR="$AR" # Let the user override the test.
81ecdfbb 3693else
770d76d7
PA
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_AR="${ac_tool_prefix}ar"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706 done
3707IFS=$as_save_IFS
81ecdfbb 3708
bec39cab
AC
3709fi
3710fi
770d76d7
PA
3711AR=$ac_cv_prog_AR
3712if test -n "$AR"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3714$as_echo "$AR" >&6; }
3715else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717$as_echo "no" >&6; }
bec39cab
AC
3718fi
3719
bec39cab
AC
3720
3721fi
770d76d7
PA
3722if test -z "$ac_cv_prog_AR"; then
3723 ac_ct_AR=$AR
3724 # Extract the first word of "ar", so it can be a program name with args.
3725set dummy ar; ac_word=$2
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727$as_echo_n "checking for $ac_word... " >&6; }
3728if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3730else
3731 if test -n "$ac_ct_AR"; then
3732 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3733else
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_AR="ar"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
bec39cab 3745done
770d76d7
PA
3746 done
3747IFS=$as_save_IFS
bec39cab 3748
770d76d7
PA
3749fi
3750fi
3751ac_ct_AR=$ac_cv_prog_ac_ct_AR
3752if test -n "$ac_ct_AR"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3754$as_echo "$ac_ct_AR" >&6; }
3755else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757$as_echo "no" >&6; }
3758fi
bec39cab 3759
770d76d7
PA
3760 if test "x$ac_ct_AR" = x; then
3761 AR="ar"
3762 else
3763 case $cross_compiling:$ac_tool_warned in
3764yes:)
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3767ac_tool_warned=yes ;;
3768esac
3769 AR=$ac_ct_AR
3770 fi
81ecdfbb 3771else
770d76d7 3772 AR="$ac_cv_prog_AR"
81ecdfbb 3773fi
bec39cab 3774
770d76d7
PA
3775 if test -z "$ARFLAGS"; then
3776 ARFLAGS='cru'
3777 fi
3778 fi
3779 else
3780 if test -z "$ARFLAGS"; then
3781 ARFLAGS='cru'
3782 fi
3783 fi
bec39cab
AC
3784
3785
770d76d7
PA
3786 if test -z "$RANLIB"; then
3787 if test $gl_cv_c_amsterdam_compiler = yes; then
3788 RANLIB=':'
3789 else
3790 if test -n "$ac_tool_prefix"; then
3791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3792set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794$as_echo_n "checking for $ac_word... " >&6; }
3795if test "${ac_cv_prog_RANLIB+set}" = set; then :
3796 $as_echo_n "(cached) " >&6
3797else
3798 if test -n "$RANLIB"; then
3799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812done
3813 done
3814IFS=$as_save_IFS
bec39cab 3815
770d76d7
PA
3816fi
3817fi
3818RANLIB=$ac_cv_prog_RANLIB
3819if test -n "$RANLIB"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3821$as_echo "$RANLIB" >&6; }
3822else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
bec39cab
AC
3826
3827
770d76d7
PA
3828fi
3829if test -z "$ac_cv_prog_RANLIB"; then
3830 ac_ct_RANLIB=$RANLIB
3831 # Extract the first word of "ranlib", so it can be a program name with args.
3832set dummy ranlib; ac_word=$2
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834$as_echo_n "checking for $ac_word... " >&6; }
3835if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837else
3838 if test -n "$ac_ct_RANLIB"; then
3839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3840else
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_ac_ct_RANLIB="ranlib"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852done
3853 done
3854IFS=$as_save_IFS
bec39cab 3855
770d76d7
PA
3856fi
3857fi
3858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3859if test -n "$ac_ct_RANLIB"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3861$as_echo "$ac_ct_RANLIB" >&6; }
3862else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864$as_echo "no" >&6; }
3865fi
bec39cab 3866
770d76d7
PA
3867 if test "x$ac_ct_RANLIB" = x; then
3868 RANLIB=":"
3869 else
3870 case $cross_compiling:$ac_tool_warned in
3871yes:)
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3874ac_tool_warned=yes ;;
3875esac
3876 RANLIB=$ac_ct_RANLIB
81ecdfbb 3877 fi
770d76d7
PA
3878else
3879 RANLIB="$ac_cv_prog_RANLIB"
3880fi
bec39cab 3881
770d76d7
PA
3882 fi
3883 fi
c9a1864a 3884
c9a1864a 3885
770d76d7
PA
3886ac_aux_dir=
3887for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3888 for ac_t in install-sh install.sh shtool; do
3889 if test -f "$ac_dir/$ac_t"; then
3890 ac_aux_dir=$ac_dir
3891 ac_install_sh="$ac_aux_dir/$ac_t -c"
3892 break 2
3893 fi
3894 done
3895done
3896if test -z "$ac_aux_dir"; then
3897 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3898fi
3899
3900# These three variables are undocumented and unsupported,
3901# and are intended to be withdrawn in a future Autoconf release.
3902# They can cause serious problems if a builder's source tree is in a directory
3903# whose full name contains unusual characters.
3904ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3905ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3906ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
c9a1864a 3907
bec39cab 3908
770d76d7
PA
3909# Make sure we can run config.sub.
3910$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3911 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3912
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3914$as_echo_n "checking build system type... " >&6; }
3915if test "${ac_cv_build+set}" = set; then :
81ecdfbb
RW
3916 $as_echo_n "(cached) " >&6
3917else
770d76d7
PA
3918 ac_build_alias=$build_alias
3919test "x$ac_build_alias" = x &&
3920 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3921test "x$ac_build_alias" = x &&
3922 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3923ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3924 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3925
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3928$as_echo "$ac_cv_build" >&6; }
3929case $ac_cv_build in
3930*-*-*) ;;
3931*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3932esac
3933build=$ac_cv_build
3934ac_save_IFS=$IFS; IFS='-'
3935set x $ac_cv_build
3936shift
3937build_cpu=$1
3938build_vendor=$2
3939shift; shift
3940# Remember, the first character of IFS is used to create $*,
3941# except with old shells:
3942build_os=$*
3943IFS=$ac_save_IFS
3944case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3945
3946
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3948$as_echo_n "checking host system type... " >&6; }
3949if test "${ac_cv_host+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3951else
3952 if test "x$host_alias" = x; then
3953 ac_cv_host=$ac_cv_build
3954else
3955 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3956 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3957fi
3958
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3961$as_echo "$ac_cv_host" >&6; }
3962case $ac_cv_host in
3963*-*-*) ;;
3964*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3965esac
3966host=$ac_cv_host
3967ac_save_IFS=$IFS; IFS='-'
3968set x $ac_cv_host
3969shift
3970host_cpu=$1
3971host_vendor=$2
3972shift; shift
3973# Remember, the first character of IFS is used to create $*,
3974# except with old shells:
3975host_os=$*
3976IFS=$ac_save_IFS
3977case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3978
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3981$as_echo_n "checking for ANSI C header files... " >&6; }
3982if test "${ac_cv_header_stdc+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h. */
3987#include <stdlib.h>
3988#include <stdarg.h>
3989#include <string.h>
3990#include <float.h>
3991
3992int
3993main ()
3994{
3995
3996 ;
3997 return 0;
3998}
3999_ACEOF
4000if ac_fn_c_try_compile "$LINENO"; then :
4001 ac_cv_header_stdc=yes
4002else
4003 ac_cv_header_stdc=no
4004fi
4005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006
4007if test $ac_cv_header_stdc = yes; then
4008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010/* end confdefs.h. */
4011#include <string.h>
4012
4013_ACEOF
4014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4015 $EGREP "memchr" >/dev/null 2>&1; then :
4016
4017else
4018 ac_cv_header_stdc=no
4019fi
4020rm -f conftest*
4021
4022fi
4023
4024if test $ac_cv_header_stdc = yes; then
4025 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028#include <stdlib.h>
4029
4030_ACEOF
4031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4032 $EGREP "free" >/dev/null 2>&1; then :
4033
4034else
4035 ac_cv_header_stdc=no
4036fi
4037rm -f conftest*
4038
4039fi
4040
4041if test $ac_cv_header_stdc = yes; then
4042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4043 if test "$cross_compiling" = yes; then :
4044 :
4045else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h. */
4048#include <ctype.h>
4049#include <stdlib.h>
4050#if ((' ' & 0x0FF) == 0x020)
4051# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4052# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4053#else
4054# define ISLOWER(c) \
4055 (('a' <= (c) && (c) <= 'i') \
4056 || ('j' <= (c) && (c) <= 'r') \
4057 || ('s' <= (c) && (c) <= 'z'))
4058# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4059#endif
4060
4061#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4062int
4063main ()
4064{
4065 int i;
4066 for (i = 0; i < 256; i++)
4067 if (XOR (islower (i), ISLOWER (i))
4068 || toupper (i) != TOUPPER (i))
4069 return 2;
4070 return 0;
4071}
4072_ACEOF
4073if ac_fn_c_try_run "$LINENO"; then :
4074
4075else
4076 ac_cv_header_stdc=no
4077fi
4078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4079 conftest.$ac_objext conftest.beam conftest.$ac_ext
4080fi
4081
4082fi
4083fi
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4085$as_echo "$ac_cv_header_stdc" >&6; }
4086if test $ac_cv_header_stdc = yes; then
4087
4088$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4089
4090fi
4091
4092# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4093for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4094 inttypes.h stdint.h unistd.h
4095do :
4096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4097ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4098"
4099eval as_val=\$$as_ac_Header
4100 if test "x$as_val" = x""yes; then :
4101 cat >>confdefs.h <<_ACEOF
4102#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103_ACEOF
4104
4105fi
4106
4107done
4108
4109
4110
4111
4112
4113 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4114if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4115 MINIX=yes
4116else
4117 MINIX=
4118fi
4119
4120
4121 if test "$MINIX" = yes; then
4122
4123$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4124
4125
4126$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4127
4128
4129$as_echo "#define _MINIX 1" >>confdefs.h
4130
4131 fi
4132
4133 case "$host_os" in
4134 hpux*)
4135
4136$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4137
4138 ;;
4139 esac
4140
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4143$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4144if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h. */
b80864fb 4149
c9a1864a
YQ
4150# define __EXTENSIONS__ 1
4151 $ac_includes_default
81ecdfbb
RW
4152int
4153main ()
4154{
b80864fb 4155
81ecdfbb
RW
4156 ;
4157 return 0;
4158}
4159_ACEOF
4160if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_safe_to_define___extensions__=yes
4162else
4163 ac_cv_safe_to_define___extensions__=no
4164fi
4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4168$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4169 test $ac_cv_safe_to_define___extensions__ = yes &&
4170 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
b80864fb 4171
81ecdfbb 4172 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
b80864fb 4173
770d76d7
PA
4174 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4175
81ecdfbb 4176 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
b80864fb 4177
81ecdfbb 4178 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
b80864fb 4179
81ecdfbb 4180 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
b80864fb 4181
68070c10
PA
4182
4183
4184
4185
4186
bec39cab 4187
bec39cab 4188
c9a1864a
YQ
4189
4190
c9a1864a
YQ
4191 # Code from module extensions:
4192
4193 # Code from module include_next:
55a8c076 4194 # Code from module inttypes:
770d76d7 4195 # Code from module inttypes-incomplete:
c9a1864a
YQ
4196 # Code from module memchr:
4197 # Code from module memmem:
4198 # Code from module memmem-simple:
4199 # Code from module multiarch:
770d76d7
PA
4200 # Code from module snippet/arg-nonnull:
4201 # Code from module snippet/c++defs:
4202 # Code from module snippet/warn-on-use:
c9a1864a
YQ
4203 # Code from module stddef:
4204 # Code from module stdint:
4205 # Code from module string:
770d76d7 4206 # Code from module update-copyright:
c9a1864a
YQ
4207
4208
4209
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4211$as_echo_n "checking target system type... " >&6; }
4212if test "${ac_cv_target+set}" = set; then :
81ecdfbb 4213 $as_echo_n "(cached) " >&6
bec39cab 4214else
81ecdfbb
RW
4215 if test "x$target_alias" = x; then
4216 ac_cv_target=$ac_cv_host
4217else
4218 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4219 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
84563040
DJ
4220fi
4221
84563040 4222fi
81ecdfbb
RW
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4224$as_echo "$ac_cv_target" >&6; }
4225case $ac_cv_target in
4226*-*-*) ;;
4227*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4228esac
4229target=$ac_cv_target
4230ac_save_IFS=$IFS; IFS='-'
4231set x $ac_cv_target
4232shift
4233target_cpu=$1
4234target_vendor=$2
4235shift; shift
4236# Remember, the first character of IFS is used to create $*,
4237# except with old shells:
4238target_os=$*
4239IFS=$ac_save_IFS
4240case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
84563040
DJ
4241
4242
81ecdfbb
RW
4243# The aliases save the names the user supplied, while $host etc.
4244# will get canonicalized.
4245test -n "$target_alias" &&
4246 test "$program_prefix$program_suffix$program_transform_name" = \
4247 NONENONEs,x,x, &&
4248 program_prefix=${target_alias}-
4e799345
DJ
4249
4250
81ecdfbb
RW
4251# Find a good install program. We prefer a C program (faster),
4252# so one script is as good as another. But avoid the broken or
4253# incompatible versions:
4254# SysV /etc/install, /usr/sbin/install
4255# SunOS /usr/etc/install
4256# IRIX /sbin/install
4257# AIX /bin/install
4258# AmigaOS /C/install, which installs bootblocks on floppy discs
4259# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4260# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4261# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4262# OS/2's system install, which has a completely different semantic
4263# ./install, which can be erroneously created by make from ./install.sh.
4264# Reject install programs that cannot install multiple files.
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4266$as_echo_n "checking for a BSD-compatible install... " >&6; }
4267if test -z "$INSTALL"; then
4268if test "${ac_cv_path_install+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
fd462a61 4273do
81ecdfbb
RW
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 # Account for people who put trailing slashes in PATH elements.
4277case $as_dir/ in #((
4278 ./ | .// | /[cC]/* | \
4279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4281 /usr/ucb/* ) ;;
4282 *)
4283 # OSF1 and SCO ODT 3.0 have their own names for install.
4284 # Don't use installbsd from OSF since it installs stuff as root
4285 # by default.
4286 for ac_prog in ginstall scoinst install; do
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4289 if test $ac_prog = install &&
4290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4291 # AIX install. It has an incompatible calling convention.
4292 :
4293 elif test $ac_prog = install &&
4294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4295 # program-specific install script used by HP pwplus--don't use.
4296 :
4297 else
4298 rm -rf conftest.one conftest.two conftest.dir
4299 echo one > conftest.one
4300 echo two > conftest.two
4301 mkdir conftest.dir
4302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4303 test -s conftest.one && test -s conftest.two &&
4304 test -s conftest.dir/conftest.one &&
4305 test -s conftest.dir/conftest.two
4306 then
4307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4308 break 3
4309 fi
4310 fi
4311 fi
4312 done
4313 done
4314 ;;
4315esac
fd462a61 4316
81ecdfbb
RW
4317 done
4318IFS=$as_save_IFS
fd462a61 4319
81ecdfbb 4320rm -rf conftest.one conftest.two conftest.dir
fd462a61 4321
fd462a61 4322fi
81ecdfbb
RW
4323 if test "${ac_cv_path_install+set}" = set; then
4324 INSTALL=$ac_cv_path_install
4325 else
4326 # As a last resort, use the slow shell script. Don't cache a
4327 # value for INSTALL within a source directory, because that will
4328 # break other packages using the cache if that directory is
4329 # removed, or if the value is a relative name.
4330 INSTALL=$ac_install_sh
4331 fi
fd462a61 4332fi
81ecdfbb
RW
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4334$as_echo "$INSTALL" >&6; }
fd462a61 4335
81ecdfbb
RW
4336# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4337# It thinks the first close brace ends the variable substitution.
4338test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
fd462a61 4339
81ecdfbb 4340test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fd462a61 4341
81ecdfbb 4342test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
e28b3332 4343
e28b3332 4344
81ecdfbb
RW
4345test "$program_prefix" != NONE &&
4346 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4347# Use a double $ so make ignores it.
4348test "$program_suffix" != NONE &&
4349 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4350# Double any \ or $.
4351# By default was `s,x,x', remove it if useless.
4352ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4353program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
e28b3332 4354
e28b3332 4355
81ecdfbb
RW
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4357$as_echo_n "checking for ANSI C header files... " >&6; }
4358if test "${ac_cv_header_stdc+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360else
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h. */
4363#include <stdlib.h>
4364#include <stdarg.h>
4365#include <string.h>
4366#include <float.h>
e28b3332
DJ
4367
4368int
4369main ()
4370{
81ecdfbb 4371
e28b3332
DJ
4372 ;
4373 return 0;
4374}
4375_ACEOF
81ecdfbb
RW
4376if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_cv_header_stdc=yes
e28b3332 4378else
81ecdfbb 4379 ac_cv_header_stdc=no
e28b3332 4380fi
81ecdfbb 4381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28b3332 4382
81ecdfbb
RW
4383if test $ac_cv_header_stdc = yes; then
4384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68070c10 4386/* end confdefs.h. */
81ecdfbb 4387#include <string.h>
68070c10 4388
68070c10 4389_ACEOF
81ecdfbb
RW
4390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "memchr" >/dev/null 2>&1; then :
4392
68070c10 4393else
81ecdfbb
RW
4394 ac_cv_header_stdc=no
4395fi
4396rm -f conftest*
68070c10
PA
4397
4398fi
68070c10 4399
81ecdfbb
RW
4400if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h. */
4404#include <stdlib.h>
68070c10 4405
68070c10 4406_ACEOF
81ecdfbb
RW
4407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4408 $EGREP "free" >/dev/null 2>&1; then :
68070c10
PA
4409
4410else
81ecdfbb 4411 ac_cv_header_stdc=no
68070c10 4412fi
81ecdfbb
RW
4413rm -f conftest*
4414
68070c10
PA
4415fi
4416
81ecdfbb
RW
4417if test $ac_cv_header_stdc = yes; then
4418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4419 if test "$cross_compiling" = yes; then :
4420 :
43d5792c 4421else
81ecdfbb 4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4423/* end confdefs.h. */
81ecdfbb
RW
4424#include <ctype.h>
4425#include <stdlib.h>
4426#if ((' ' & 0x0FF) == 0x020)
4427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4429#else
4430# define ISLOWER(c) \
4431 (('a' <= (c) && (c) <= 'i') \
4432 || ('j' <= (c) && (c) <= 'r') \
4433 || ('s' <= (c) && (c) <= 'z'))
4434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4435#endif
4436
4437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
bec39cab
AC
4438int
4439main ()
4440{
81ecdfbb
RW
4441 int i;
4442 for (i = 0; i < 256; i++)
4443 if (XOR (islower (i), ISLOWER (i))
4444 || toupper (i) != TOUPPER (i))
4445 return 2;
bec39cab
AC
4446 return 0;
4447}
4448_ACEOF
81ecdfbb 4449if ac_fn_c_try_run "$LINENO"; then :
bec39cab 4450
81ecdfbb
RW
4451else
4452 ac_cv_header_stdc=no
43d5792c 4453fi
81ecdfbb
RW
4454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4455 conftest.$ac_objext conftest.beam conftest.$ac_ext
43d5792c 4456fi
e122f1f5 4457
68070c10 4458fi
81ecdfbb
RW
4459fi
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4461$as_echo "$ac_cv_header_stdc" >&6; }
4462if test $ac_cv_header_stdc = yes; then
68070c10 4463
81ecdfbb 4464$as_echo "#define STDC_HEADERS 1" >>confdefs.h
68070c10 4465
68070c10 4466fi
68070c10 4467
d26e3629
KY
4468ac_header_dirent=no
4469for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4470 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4472$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4474 $as_echo_n "(cached) " >&6
4475else
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477/* end confdefs.h. */
4478#include <sys/types.h>
4479#include <$ac_hdr>
4480
4481int
4482main ()
4483{
4484if ((DIR *) 0)
4485return 0;
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_compile "$LINENO"; then :
4491 eval "$as_ac_Header=yes"
4492else
4493 eval "$as_ac_Header=no"
4494fi
4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496fi
4497eval ac_res=\$$as_ac_Header
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4499$as_echo "$ac_res" >&6; }
4500eval as_val=\$$as_ac_Header
4501 if test "x$as_val" = x""yes; then :
4502 cat >>confdefs.h <<_ACEOF
4503#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4504_ACEOF
4505
4506ac_header_dirent=$ac_hdr; break
4507fi
4508
4509done
4510# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4511if test $ac_header_dirent = dirent.h; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4513$as_echo_n "checking for library containing opendir... " >&6; }
4514if test "${ac_cv_search_opendir+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 ac_func_search_save_LIBS=$LIBS
4518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h. */
4520
4521/* Override any GCC internal prototype to avoid an error.
4522 Use char because int might match the return type of a GCC
4523 builtin and then its argument prototype would still apply. */
4524#ifdef __cplusplus
4525extern "C"
4526#endif
4527char opendir ();
4528int
4529main ()
4530{
4531return opendir ();
4532 ;
4533 return 0;
4534}
4535_ACEOF
4536for ac_lib in '' dir; do
4537 if test -z "$ac_lib"; then
4538 ac_res="none required"
4539 else
4540 ac_res=-l$ac_lib
4541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4542 fi
4543 if ac_fn_c_try_link "$LINENO"; then :
4544 ac_cv_search_opendir=$ac_res
4545fi
4546rm -f core conftest.err conftest.$ac_objext \
4547 conftest$ac_exeext
4548 if test "${ac_cv_search_opendir+set}" = set; then :
4549 break
4550fi
4551done
4552if test "${ac_cv_search_opendir+set}" = set; then :
4553
4554else
4555 ac_cv_search_opendir=no
4556fi
4557rm conftest.$ac_ext
4558LIBS=$ac_func_search_save_LIBS
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4561$as_echo "$ac_cv_search_opendir" >&6; }
4562ac_res=$ac_cv_search_opendir
4563if test "$ac_res" != no; then :
4564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4565
4566fi
4567
4568else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4570$as_echo_n "checking for library containing opendir... " >&6; }
4571if test "${ac_cv_search_opendir+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573else
4574 ac_func_search_save_LIBS=$LIBS
4575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576/* end confdefs.h. */
4577
4578/* Override any GCC internal prototype to avoid an error.
4579 Use char because int might match the return type of a GCC
4580 builtin and then its argument prototype would still apply. */
4581#ifdef __cplusplus
4582extern "C"
4583#endif
4584char opendir ();
4585int
4586main ()
4587{
4588return opendir ();
4589 ;
4590 return 0;
4591}
4592_ACEOF
4593for ac_lib in '' x; do
4594 if test -z "$ac_lib"; then
4595 ac_res="none required"
4596 else
4597 ac_res=-l$ac_lib
4598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4599 fi
4600 if ac_fn_c_try_link "$LINENO"; then :
4601 ac_cv_search_opendir=$ac_res
4602fi
4603rm -f core conftest.err conftest.$ac_objext \
4604 conftest$ac_exeext
4605 if test "${ac_cv_search_opendir+set}" = set; then :
4606 break
4607fi
4608done
4609if test "${ac_cv_search_opendir+set}" = set; then :
4610
4611else
4612 ac_cv_search_opendir=no
4613fi
4614rm conftest.$ac_ext
4615LIBS=$ac_func_search_save_LIBS
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4618$as_echo "$ac_cv_search_opendir" >&6; }
4619ac_res=$ac_cv_search_opendir
4620if test "$ac_res" != no; then :
4621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4622
4623fi
4624
4625fi
4626
68070c10 4627
a1723c35 4628# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4629# for constant arguments. Useless!
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4631$as_echo_n "checking for working alloca.h... " >&6; }
4632if test "${ac_cv_working_alloca_h+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4634else
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h. */
4637#include <alloca.h>
4638int
4639main ()
4640{
4641char *p = (char *) alloca (2 * sizeof (int));
4642 if (p) return 0;
4643 ;
4644 return 0;
4645}
4646_ACEOF
4647if ac_fn_c_try_link "$LINENO"; then :
4648 ac_cv_working_alloca_h=yes
4649else
4650 ac_cv_working_alloca_h=no
4651fi
4652rm -f core conftest.err conftest.$ac_objext \
4653 conftest$ac_exeext conftest.$ac_ext
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4656$as_echo "$ac_cv_working_alloca_h" >&6; }
4657if test $ac_cv_working_alloca_h = yes; then
4658
4659$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4660
4661fi
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4664$as_echo_n "checking for alloca... " >&6; }
4665if test "${ac_cv_func_alloca_works+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4667else
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h. */
4670#ifdef __GNUC__
4671# define alloca __builtin_alloca
4672#else
4673# ifdef _MSC_VER
4674# include <malloc.h>
4675# define alloca _alloca
4676# else
4677# ifdef HAVE_ALLOCA_H
4678# include <alloca.h>
4679# else
4680# ifdef _AIX
4681 #pragma alloca
4682# else
4683# ifndef alloca /* predefined by HP cc +Olibcalls */
4684char *alloca ();
4685# endif
4686# endif
4687# endif
4688# endif
4689#endif
4690
4691int
4692main ()
4693{
4694char *p = (char *) alloca (1);
4695 if (p) return 0;
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700if ac_fn_c_try_link "$LINENO"; then :
4701 ac_cv_func_alloca_works=yes
4702else
4703 ac_cv_func_alloca_works=no
4704fi
4705rm -f core conftest.err conftest.$ac_objext \
4706 conftest$ac_exeext conftest.$ac_ext
4707fi
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4709$as_echo "$ac_cv_func_alloca_works" >&6; }
4710
4711if test $ac_cv_func_alloca_works = yes; then
4712
4713$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4714
4715else
4716 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4717# that cause trouble. Some versions do not even contain alloca or
4718# contain a buggy version. If you still want to use their alloca,
4719# use ar to extract alloca.o from them instead of compiling alloca.c.
4720
4721ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4722
4723$as_echo "#define C_ALLOCA 1" >>confdefs.h
4724
4725
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4727$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4728if test "${ac_cv_os_cray+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4730else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h. */
4733#if defined CRAY && ! defined CRAY2
4734webecray
4735#else
4736wenotbecray
4737#endif
4738
4739_ACEOF
4740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4741 $EGREP "webecray" >/dev/null 2>&1; then :
4742 ac_cv_os_cray=yes
4743else
4744 ac_cv_os_cray=no
4745fi
4746rm -f conftest*
4747
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4750$as_echo "$ac_cv_os_cray" >&6; }
4751if test $ac_cv_os_cray = yes; then
4752 for ac_func in _getb67 GETB67 getb67; do
4753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4754ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4755eval as_val=\$$as_ac_var
4756 if test "x$as_val" = x""yes; then :
4757
4758cat >>confdefs.h <<_ACEOF
4759#define CRAY_STACKSEG_END $ac_func
4760_ACEOF
4761
4762 break
4763fi
4764
4765 done
4766fi
4767
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4769$as_echo_n "checking stack direction for C alloca... " >&6; }
4770if test "${ac_cv_c_stack_direction+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772else
4773 if test "$cross_compiling" = yes; then :
4774 ac_cv_c_stack_direction=0
4775else
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h. */
4778$ac_includes_default
4779int
4780find_stack_direction ()
4781{
4782 static char *addr = 0;
4783 auto char dummy;
4784 if (addr == 0)
4785 {
4786 addr = &dummy;
4787 return find_stack_direction ();
4788 }
4789 else
4790 return (&dummy > addr) ? 1 : -1;
4791}
4792
4793int
4794main ()
4795{
4796 return find_stack_direction () < 0;
4797}
4798_ACEOF
4799if ac_fn_c_try_run "$LINENO"; then :
4800 ac_cv_c_stack_direction=1
4801else
4802 ac_cv_c_stack_direction=-1
4803fi
4804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4805 conftest.$ac_objext conftest.beam conftest.$ac_ext
4806fi
4807
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4810$as_echo "$ac_cv_c_stack_direction" >&6; }
4811cat >>confdefs.h <<_ACEOF
4812#define STACK_DIRECTION $ac_cv_c_stack_direction
4813_ACEOF
4814
4815
4816fi
4817
c9a1864a
YQ
4818
4819# Check for the 'make' the user wants to use.
4820for ac_prog in make
4821do
4822 # Extract the first word of "$ac_prog", so it can be a program name with args.
4823set dummy $ac_prog; ac_word=$2
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825$as_echo_n "checking for $ac_word... " >&6; }
4826if test "${ac_cv_prog_MAKE+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828else
4829 if test -n "$MAKE"; then
4830 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4831else
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_MAKE="$ac_prog"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843done
4844 done
4845IFS=$as_save_IFS
4846
4847fi
4848fi
4849MAKE=$ac_cv_prog_MAKE
4850if test -n "$MAKE"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4852$as_echo "$MAKE" >&6; }
4853else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
4856fi
4857
4858
4859 test -n "$MAKE" && break
4860done
4861
4862
2fa291ac 4863for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h sys/un.h
81ecdfbb
RW
4864do :
4865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4866ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4867eval as_val=\$$as_ac_Header
4868 if test "x$as_val" = x""yes; then :
68070c10 4869 cat >>confdefs.h <<_ACEOF
81ecdfbb 4870#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68070c10
PA
4871_ACEOF
4872
ec56be1b 4873fi
ec56be1b 4874
81ecdfbb
RW
4875done
4876
f8255c2a 4877for ac_func in pread pwrite pread64 readlink
81ecdfbb
RW
4878do :
4879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4880ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4881eval as_val=\$$as_ac_var
4882 if test "x$as_val" = x""yes; then :
4883 cat >>confdefs.h <<_ACEOF
4884#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ec56be1b
PA
4885_ACEOF
4886
81ecdfbb
RW
4887fi
4888done
ec56be1b 4889
c9a1864a 4890for ac_func in vasprintf vsnprintf
81ecdfbb 4891do :
bb0116a4
JB
4892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4893ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4894eval as_val=\$$as_ac_var
4895 if test "x$as_val" = x""yes; then :
ec56be1b 4896 cat >>confdefs.h <<_ACEOF
bb0116a4 4897#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ec56be1b
PA
4898_ACEOF
4899
81ecdfbb
RW
4900else
4901 case " $LIBOBJS " in
4902 *" $ac_func.$ac_objext "* ) ;;
4903 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4904 ;;
4905esac
ec56be1b 4906
43d5792c 4907fi
81ecdfbb 4908done
43d5792c
DJ
4909
4910
e122f1f5 4911
0fb4aa4b
PA
4912# Check for UST
4913ustlibs=""
4914ustinc=""
4915
4916
4917# Check whether --with-ust was given.
4918if test "${with_ust+set}" = set; then :
4919 withval=$with_ust;
4920fi
4921
4922
4923# Check whether --with-ust_include was given.
4924if test "${with_ust_include+set}" = set; then :
4925 withval=$with_ust_include;
4926fi
4927
4928
4929# Check whether --with-ust_lib was given.
4930if test "${with_ust_lib+set}" = set; then :
4931 withval=$with_ust_lib;
4932fi
4933
4934
4935case $with_ust in
4936 no)
4937 ustlibs=
4938 ustinc=
4939 ;;
4940 "" | yes)
4941 ustlibs=" -lust "
4942 ustinc=""
4943 ;;
4944 *)
4945 ustlibs="-L$with_ust/lib -lust"
4946 ustinc="-I$with_ust/include "
4947 ;;
4948esac
4949if test "x$with_ust_include" != x; then
4950 ustinc="-I$with_ust_include "
4951fi
4952if test "x$with_ust_lib" != x; then
4953 ustlibs="-L$with_ust_lib -lust"
4954fi
4955
4956if test "x$with_ust" != "xno"; then
4957 saved_CFLAGS="$CFLAGS"
4958 CFLAGS="$CFLAGS $ustinc"
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
4960$as_echo_n "checking for ust... " >&6; }
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h. */
4963
4964#define CONFIG_UST_GDB_INTEGRATION
4965#include <ust/ust.h>
4966
4967int
4968main ()
4969{
4970
4971 ;
4972 return 0;
4973}
4974_ACEOF
4975if ac_fn_c_try_compile "$LINENO"; then :
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4977$as_echo "yes" >&6; };
4978$as_echo "#define HAVE_UST 1" >>confdefs.h
4979
4980else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }; ustlibs= ; ustinc=
4983fi
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 CFLAGS="$saved_CFLAGS"
4986fi
4987
4988# Flags needed for UST
4989
4990
4991
d4596a3d
PA
4992# Check whether --enable-werror was given.
4993if test "${enable_werror+set}" = set; then :
4994 enableval=$enable_werror; case "${enableval}" in
4995 yes | y) ERROR_ON_WARNING="yes" ;;
4996 no | n) ERROR_ON_WARNING="no" ;;
4997 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4998 esac
4999fi
5000
5001
5002# Enable -Werror by default when using gcc
5003if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5004 ERROR_ON_WARNING=yes
5005fi
5006
5007WERROR_CFLAGS=""
5008if test "${ERROR_ON_WARNING}" = yes ; then
5009 WERROR_CFLAGS="-Werror"
5010fi
5011
5012build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
854d88f0 5013-Wformat-nonliteral -Wno-char-subscripts"
d4596a3d
PA
5014
5015WARN_CFLAGS=""
5016if test "x$GCC" = xyes
5017then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5019$as_echo_n "checking compiler warning flags... " >&6; }
5020 # Separate out the -Werror flag as some files just cannot be
5021 # compiled with it enabled.
5022 for w in ${build_warnings}; do
5023 case $w in
5024 -Werr*) WERROR_CFLAGS=-Werror ;;
5025 *) # Check that GCC accepts it
5026 saved_CFLAGS="$CFLAGS"
5027 CFLAGS="$CFLAGS $w"
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h. */
5030
5031int
5032main ()
5033{
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039if ac_fn_c_try_compile "$LINENO"; then :
5040 WARN_CFLAGS="${WARN_CFLAGS} $w"
5041fi
5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 CFLAGS="$saved_CFLAGS"
5044 esac
5045 done
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5047$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5048fi
5049
5050
5051
10e86dd7
DE
5052old_LIBS="$LIBS"
5053LIBS="$LIBS -ldl"
5054for ac_func in dladdr
5055do :
5056 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
5057if test "x$ac_cv_func_dladdr" = x""yes; then :
5058 cat >>confdefs.h <<_ACEOF
5059#define HAVE_DLADDR 1
5060_ACEOF
5061
5062fi
5063done
5064
5065LIBS="$old_LIBS"
5066
81ecdfbb
RW
5067have_errno=no
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
5069$as_echo_n "checking for errno... " >&6; }
5070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f450004a 5071/* end confdefs.h. */
ccbd4912 5072
81ecdfbb
RW
5073#if HAVE_ERRNO_H
5074#include <errno.h>
5075#endif
f450004a
DJ
5076int
5077main ()
5078{
81ecdfbb
RW
5079static int x; x = errno;
5080 ;
f450004a 5081 return 0;
81ecdfbb
RW
5082}
5083_ACEOF
5084if ac_fn_c_try_link "$LINENO"; then :
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
5086$as_echo "yes - in errno.h" >&6; };
5087$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5088 have_errno=yes
5089fi
5090rm -f core conftest.err conftest.$ac_objext \
5091 conftest$ac_exeext conftest.$ac_ext
5092if test $have_errno = no; then
5093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h. */
5095
5096#if HAVE_ERRNO_H
5097#include <errno.h>
5098#endif
5099int
5100main ()
5101{
5102extern int errno; static int x; x = errno;
f450004a
DJ
5103 ;
5104 return 0;
5105}
5106_ACEOF
81ecdfbb
RW
5107if ac_fn_c_try_link "$LINENO"; then :
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5109$as_echo "yes - must define" >&6; };
5110$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5111
5112$as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5113
f450004a 5114else
81ecdfbb
RW
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116$as_echo "no" >&6; }
5117fi
5118rm -f core conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5120fi
5121
5122ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5123if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5124 ac_have_decl=1
5125else
5126 ac_have_decl=0
5127fi
f450004a 5128
81ecdfbb
RW
5129cat >>confdefs.h <<_ACEOF
5130#define HAVE_DECL_STRERROR $ac_have_decl
5131_ACEOF
5132ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
5133if test "x$ac_cv_have_decl_perror" = x""yes; then :
5134 ac_have_decl=1
5135else
5136 ac_have_decl=0
f450004a 5137fi
81ecdfbb
RW
5138
5139cat >>confdefs.h <<_ACEOF
5140#define HAVE_DECL_PERROR $ac_have_decl
5141_ACEOF
5142ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5143if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5144 ac_have_decl=1
5145else
5146 ac_have_decl=0
f450004a 5147fi
81ecdfbb
RW
5148
5149cat >>confdefs.h <<_ACEOF
5150#define HAVE_DECL_MEMMEM $ac_have_decl
5151_ACEOF
bb0116a4
JB
5152ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5153if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5154 ac_have_decl=1
5155else
5156 ac_have_decl=0
5157fi
5158
5159cat >>confdefs.h <<_ACEOF
5160#define HAVE_DECL_VASPRINTF $ac_have_decl
5161_ACEOF
5162ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5163if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
5164 ac_have_decl=1
5165else
5166 ac_have_decl=0
5167fi
5168
5169cat >>confdefs.h <<_ACEOF
5170#define HAVE_DECL_VSNPRINTF $ac_have_decl
5171_ACEOF
81ecdfbb
RW
5172
5173
5174ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5175#include <sys/socket.h>
5176
5177"
5178if test "x$ac_cv_type_socklen_t" = x""yes; then :
f450004a 5179
ccbd4912 5180cat >>confdefs.h <<_ACEOF
f450004a
DJ
5181#define HAVE_SOCKLEN_T 1
5182_ACEOF
5183
f450004a 5184
ccbd4912 5185fi
f450004a 5186
fb1e4ffc 5187
8365dcf5
TJB
5188ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
5189
5190"
5191if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
5192
5193cat >>confdefs.h <<_ACEOF
5194#define HAVE_ELF32_AUXV_T 1
5195_ACEOF
5196
5197
5198fi
5199ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
5200
5201"
5202if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
5203
5204cat >>confdefs.h <<_ACEOF
5205#define HAVE_ELF64_AUXV_T 1
5206_ACEOF
5207
5208
5209fi
5210
5211
c16158bc
JM
5212
5213
81ecdfbb
RW
5214# Check whether --with-pkgversion was given.
5215if test "${with_pkgversion+set}" = set; then :
5216 withval=$with_pkgversion; case "$withval" in
5217 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
c16158bc
JM
5218 no) PKGVERSION= ;;
5219 *) PKGVERSION="($withval) " ;;
5220 esac
5221else
5222 PKGVERSION="(GDB) "
5223
81ecdfbb
RW
5224fi
5225
c16158bc
JM
5226
5227
5228
5229
81ecdfbb
RW
5230# Check whether --with-bugurl was given.
5231if test "${with_bugurl+set}" = set; then :
5232 withval=$with_bugurl; case "$withval" in
5233 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
c16158bc
JM
5234 no) BUGURL=
5235 ;;
5236 *) BUGURL="$withval"
5237 ;;
5238 esac
5239else
5240 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5241
81ecdfbb
RW
5242fi
5243
c16158bc
JM
5244 case ${BUGURL} in
5245 "")
5246 REPORT_BUGS_TO=
5247 REPORT_BUGS_TEXI=
5248 ;;
5249 *)
5250 REPORT_BUGS_TO="<$BUGURL>"
5251 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5252 ;;
5253 esac;
5254
5255
5256
5257
5258cat >>confdefs.h <<_ACEOF
5259#define PKGVERSION "$PKGVERSION"
5260_ACEOF
5261
5262
5263cat >>confdefs.h <<_ACEOF
5264#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5265_ACEOF
5266
5267
8838b45e
NS
5268# Check for various supplementary target information (beyond the
5269# triplet) which might affect the choices in configure.srv.
5270case "${target}" in
5271 i[34567]86-*-linux*)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
5273$as_echo_n "checking if building for x86-64... " >&6; }
5274if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276else
5277 save_CPPFLAGS="$CPPFLAGS"
5278 CPPFLAGS="$CPPFLAGS $CFLAGS"
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h. */
5281
5282#if __x86_64__
5283got it
5284#endif
5285
5286_ACEOF
5287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "got it" >/dev/null 2>&1; then :
5289 gdb_cv_i386_is_x86_64=yes
5290else
5291 gdb_cv_i386_is_x86_64=no
5292fi
5293rm -f conftest*
5294
5295 CPPFLAGS="$save_CPPFLAGS"
5296fi
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
5298$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
5299 ;;
9ac544ce
MK
5300 m68k-*-*)
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
5302$as_echo_n "checking if building for Coldfire... " >&6; }
5303if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305else
5306 save_CPPFLAGS="$CPPFLAGS"
5307 CPPFLAGS="$CPPFLAGS $CFLAGS"
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h. */
5310
5311#ifdef __mcoldfire__
5312got it
5313#endif
5314
5315_ACEOF
5316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "got it" >/dev/null 2>&1; then :
5318 gdb_cv_m68k_is_coldfire=yes
5319else
5320 gdb_cv_m68k_is_coldfire=no
5321fi
5322rm -f conftest*
5323
5324 CPPFLAGS="$save_CPPFLAGS"
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
5327$as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
5328 ;;
8838b45e
NS
5329esac
5330
7ea81414 5331. ${srcdir}/configure.srv
d6e9fb05 5332
68070c10
PA
5333if test "${srv_mingwce}" = "yes"; then
5334 LIBS="$LIBS -lws2"
5335elif test "${srv_mingw}" = "yes"; then
12ea4b69 5336 LIBS="$LIBS -lws2_32"
ac8c974e
AR
5337elif test "${srv_qnx}" = "yes"; then
5338 LIBS="$LIBS -lsocket"
8ed54b31
JB
5339elif test "${srv_lynxos}" = "yes"; then
5340 LIBS="$LIBS -lnetinet"
68070c10
PA
5341fi
5342
5343if test "${srv_mingw}" = "yes"; then
b80864fb 5344
81ecdfbb 5345$as_echo "#define USE_WIN32API 1" >>confdefs.h
b80864fb
DJ
5346
5347fi
5348
58caa3dc 5349if test "${srv_linux_usrregs}" = "yes"; then
f450004a 5350
81ecdfbb 5351$as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
58caa3dc
DJ
5352
5353fi
5354
5355if test "${srv_linux_regsets}" = "yes"; then
e9d25b98 5356
81ecdfbb 5357$as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
e9d25b98
DJ
5358
5359
81ecdfbb
RW
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
5361$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
5362 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
bec39cab 5364else
81ecdfbb 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 5366/* end confdefs.h. */
58caa3dc 5367#include <sys/ptrace.h>
bec39cab
AC
5368int
5369main ()
5370{
58caa3dc 5371PTRACE_GETREGS;
bec39cab
AC
5372 ;
5373 return 0;
5374}
5375_ACEOF
81ecdfbb 5376if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
5377 gdbsrv_cv_have_ptrace_getregs=yes
5378else
81ecdfbb 5379 gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 5380fi
81ecdfbb 5381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
5382fi
5383
81ecdfbb
RW
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
5385$as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
58caa3dc 5386 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a 5387
81ecdfbb 5388$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
58caa3dc
DJ
5389
5390 fi
5391
81ecdfbb
RW
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
5393$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
5394 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
58caa3dc 5396else
81ecdfbb 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 5398/* end confdefs.h. */
58caa3dc 5399#include <sys/ptrace.h>
bec39cab
AC
5400int
5401main ()
5402{
58caa3dc 5403PTRACE_GETFPXREGS;
bec39cab
AC
5404 ;
5405 return 0;
5406}
5407_ACEOF
81ecdfbb 5408if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
5409 gdbsrv_cv_have_ptrace_getfpxregs=yes
5410else
81ecdfbb 5411 gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 5412fi
81ecdfbb 5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
5414fi
5415
81ecdfbb
RW
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
5417$as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
58caa3dc 5418 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a 5419
81ecdfbb 5420$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
58caa3dc
DJ
5421
5422 fi
5423fi
5424
0d62e5e8 5425if test "$ac_cv_header_sys_procfs_h" = yes; then
81ecdfbb
RW
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
5427$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
5428 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
0d62e5e8 5430else
81ecdfbb 5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 5432/* end confdefs.h. */
0d62e5e8
DJ
5433
5434#define _SYSCALL32
8e642873
PM
5435/* Needed for new procfs interface on sparc-solaris. */
5436#define _STRUCTURED_PROC 1
0d62e5e8 5437#include <sys/procfs.h>
bec39cab
AC
5438int
5439main ()
5440{
0d62e5e8 5441lwpid_t avar
bec39cab
AC
5442 ;
5443 return 0;
5444}
5445_ACEOF
81ecdfbb 5446if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
5447 bfd_cv_have_sys_procfs_type_lwpid_t=yes
5448else
81ecdfbb 5449 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 5450
0d62e5e8 5451fi
81ecdfbb 5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
5453fi
5454
5455 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab 5456
81ecdfbb 5457$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
0d62e5e8
DJ
5458
5459 fi
81ecdfbb
RW
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
5461$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
0d62e5e8 5462
81ecdfbb
RW
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
5464$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
5465 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
0d62e5e8 5467else
81ecdfbb 5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 5469/* end confdefs.h. */
0d62e5e8
DJ
5470
5471#define _SYSCALL32
8e642873
PM
5472/* Needed for new procfs interface on sparc-solaris. */
5473#define _STRUCTURED_PROC 1
0d62e5e8 5474#include <sys/procfs.h>
bec39cab
AC
5475int
5476main ()
5477{
0d62e5e8 5478psaddr_t avar
bec39cab
AC
5479 ;
5480 return 0;
5481}
5482_ACEOF
81ecdfbb 5483if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
5484 bfd_cv_have_sys_procfs_type_psaddr_t=yes
5485else
81ecdfbb 5486 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 5487
0d62e5e8 5488fi
81ecdfbb 5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
5490fi
5491
5492 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab 5493
81ecdfbb 5494$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
0d62e5e8
DJ
5495
5496 fi
81ecdfbb
RW
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
5498$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
0d62e5e8 5499
81ecdfbb
RW
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
5501$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
5502 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
5503 $as_echo_n "(cached) " >&6
0d62e5e8 5504else
81ecdfbb 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 5506/* end confdefs.h. */
0d62e5e8
DJ
5507
5508#define _SYSCALL32
8e642873
PM
5509/* Needed for new procfs interface on sparc-solaris. */
5510#define _STRUCTURED_PROC 1
0d62e5e8 5511#include <sys/procfs.h>
bec39cab
AC
5512int
5513main ()
5514{
0d62e5e8 5515prgregset_t avar
bec39cab
AC
5516 ;
5517 return 0;
5518}
5519_ACEOF
81ecdfbb 5520if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
5521 bfd_cv_have_sys_procfs_type_prgregset_t=yes
5522else
81ecdfbb 5523 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 5524
0d62e5e8 5525fi
81ecdfbb 5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
5527fi
5528
5529 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab 5530
81ecdfbb 5531$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
5532
5533 fi
81ecdfbb
RW
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
5535$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
0d62e5e8 5536
81ecdfbb
RW
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
5538$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
5539 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
0d62e5e8 5541else
81ecdfbb 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 5543/* end confdefs.h. */
0d62e5e8
DJ
5544
5545#define _SYSCALL32
8e642873
PM
5546/* Needed for new procfs interface on sparc-solaris. */
5547#define _STRUCTURED_PROC 1
0d62e5e8 5548#include <sys/procfs.h>
bec39cab
AC
5549int
5550main ()
5551{
0d62e5e8 5552elf_fpregset_t avar
bec39cab
AC
5553 ;
5554 return 0;
5555}
5556_ACEOF
81ecdfbb 5557if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
5558 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
5559else
81ecdfbb 5560 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
bec39cab 5561
0d62e5e8 5562fi
81ecdfbb 5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
5564fi
5565
5566 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab 5567
81ecdfbb 5568$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
5569
5570 fi
81ecdfbb
RW
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
5572$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
0d62e5e8
DJ
5573
5574fi
5575
18f5fd81
TJB
5576if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
5578$as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
5579 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5581else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h. */
5584
5585#include <thread_db.h>
5586int
5587main ()
5588{
5589lwpid_t avar
5590 ;
5591 return 0;
5592}
5593_ACEOF
5594if ac_fn_c_try_compile "$LINENO"; then :
5595 gdbserver_cv_have_thread_db_type_lwpid_t=yes
5596else
5597 gdbserver_cv_have_thread_db_type_lwpid_t=no
5598
5599fi
5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601fi
5602
5603 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
5604
5605$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5606
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
5609$as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
5610
5611fi
5612
5613if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
5615$as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
5616 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5618else
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620/* end confdefs.h. */
5621
5622#include <thread_db.h>
5623int
5624main ()
5625{
5626psaddr_t avar
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631if ac_fn_c_try_compile "$LINENO"; then :
5632 gdbserver_cv_have_thread_db_type_psaddr_t=yes
5633else
5634 gdbserver_cv_have_thread_db_type_psaddr_t=no
5635
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638fi
5639
5640 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
5641
5642$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5643
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
5646$as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
5647
5648fi
5649
193f13e6
MK
5650old_LIBS="$LIBS"
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5652$as_echo_n "checking for dlopen in -ldl... " >&6; }
5653if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655else
5656 ac_check_lib_save_LIBS=$LIBS
5657LIBS="-ldl $LIBS"
5658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h. */
5660
5661/* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5664#ifdef __cplusplus
5665extern "C"
5666#endif
5667char dlopen ();
5668int
5669main ()
5670{
5671return dlopen ();
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676if ac_fn_c_try_link "$LINENO"; then :
5677 ac_cv_lib_dl_dlopen=yes
5678else
5679 ac_cv_lib_dl_dlopen=no
5680fi
5681rm -f core conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
5683LIBS=$ac_check_lib_save_LIBS
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5686$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5687if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5688 cat >>confdefs.h <<_ACEOF
5689#define HAVE_LIBDL 1
5690_ACEOF
5691
5692 LIBS="-ldl $LIBS"
5693
5694fi
5695
5696LIBS="$old_LIBS"
5697
0d62e5e8
DJ
5698srv_thread_depfiles=
5699srv_libs=
5700USE_THREAD_DB=
5701
5702if test "$srv_linux_thread_db" = "yes"; then
193f13e6
MK
5703 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5704 srv_libs="-ldl"
f6528abd
JK
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
5706$as_echo_n "checking for the dynamic export flag... " >&6; }
193f13e6 5707 old_LDFLAGS="$LDFLAGS"
f6528abd
JK
5708 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
5709 # supported there.
5710 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
5711 LDFLAGS="$LDFLAGS $RDYNAMIC"
193f13e6 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
5713/* end confdefs.h. */
5714
5715int
5716main ()
5717{
5718
5719 ;
5720 return 0;
5721}
5722_ACEOF
81ecdfbb 5723if ac_fn_c_try_link "$LINENO"; then :
f6528abd
JK
5724 found="-Wl,--dynamic-list"
5725 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
f6de3c42 5726else
f6528abd
JK
5727 RDYNAMIC="-rdynamic"
5728 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h. */
5731
5732int
5733main ()
5734{
5735
5736 ;
5737 return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_link "$LINENO"; then :
5741 found="-rdynamic"
5742else
5743 found="no"
5744 RDYNAMIC=""
770d76d7
PA
5745fi
5746rm -f core conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5748fi
5749rm -f core conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5751
5752 LDFLAGS="$old_LDFLAGS"
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
5754$as_echo "$found" >&6; }
5755 else
5756 srv_libs="-lthread_db"
5757 fi
55a8c076 5758
770d76d7
PA
5759 srv_thread_depfiles="thread-db.o proc-service.o"
5760 USE_THREAD_DB="-DUSE_THREAD_DB"
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
5762$as_echo_n "checking for TD_VERSION... " >&6; }
5763if test "${gdbsrv_cv_have_td_version+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765else
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h. */
5768#include <thread_db.h>
55a8c076
YQ
5769int
5770main ()
5771{
770d76d7 5772TD_VERSION;
c9a1864a
YQ
5773 ;
5774 return 0;
5775}
5776_ACEOF
55a8c076 5777if ac_fn_c_try_compile "$LINENO"; then :
770d76d7 5778 gdbsrv_cv_have_td_version=yes
c9a1864a 5779else
770d76d7
PA
5780 gdbsrv_cv_have_td_version=no
5781fi
5782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783fi
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
5785$as_echo "$gdbsrv_cv_have_td_version" >&6; }
5786 if test $gdbsrv_cv_have_td_version = yes; then
c9a1864a 5787
770d76d7 5788$as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
55a8c076 5789
770d76d7
PA
5790 fi
5791fi
c9a1864a
YQ
5792
5793
770d76d7
PA
5794# Check whether --with-libthread-db was given.
5795if test "${with_libthread_db+set}" = set; then :
5796 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
5797 srv_libs="$srv_libthread_db_path"
c9a1864a 5798
770d76d7 5799fi
c9a1864a
YQ
5800
5801
770d76d7 5802if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
c9a1864a 5803
770d76d7 5804$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
c9a1864a 5805
55a8c076 5806fi
c9a1864a 5807
770d76d7
PA
5808if test "$srv_xmlfiles" != ""; then
5809 srv_xmlbuiltin="xml-builtin.o"
c9a1864a 5810
770d76d7 5811$as_echo "#define USE_XML 1" >>confdefs.h
c9a1864a 5812
c9a1864a 5813
770d76d7
PA
5814 tmp_xmlfiles=$srv_xmlfiles
5815 srv_xmlfiles=""
5816 for f in $tmp_xmlfiles; do
5817 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
5818 done
c9a1864a
YQ
5819fi
5820
770d76d7
PA
5821GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
5822GDBSERVER_LIBS="$srv_libs"
c9a1864a 5823
770d76d7
PA
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
5825$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
5826if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828else
c9a1864a 5829
770d76d7
PA
5830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h. */
c9a1864a 5832
770d76d7
PA
5833int
5834main ()
5835{
5836int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"; then :
5842 gdbsrv_cv_have_sync_builtins=yes
5843else
5844 gdbsrv_cv_have_sync_builtins=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
5850$as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
5851if test $gdbsrv_cv_have_sync_builtins = yes; then
c9a1864a 5852
770d76d7 5853$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
c9a1864a 5854
770d76d7 5855fi
c9a1864a 5856
770d76d7
PA
5857saved_cflags="$CFLAGS"
5858CFLAGS="$CFLAGS -fvisibility=hidden"
5859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h. */
c9a1864a 5861
770d76d7
PA
5862int
5863main ()
5864{
c9a1864a 5865
770d76d7
PA
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_compile "$LINENO"; then :
5871 gdbsrv_cv_have_visibility_hidden=yes
5872else
5873 gdbsrv_cv_have_visibility_hidden=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876CFLAGS="$saved_cflags"
c9a1864a 5877
770d76d7
PA
5878ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
5879"
5880if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
5881 ac_have_decl=1
5882else
5883 ac_have_decl=0
5884fi
c9a1864a 5885
770d76d7
PA
5886cat >>confdefs.h <<_ACEOF
5887#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
5888_ACEOF
c9a1864a
YQ
5889
5890
770d76d7
PA
5891if test "$cross_compiling" = yes; then :
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893/* end confdefs.h. */
5894#include <sys/personality.h>
5895int
5896main ()
5897{
c9a1864a 5898
770d76d7
PA
5899# if !HAVE_DECL_ADDR_NO_RANDOMIZE
5900# define ADDR_NO_RANDOMIZE 0x0040000
5901# endif
5902 /* Test the flag could be set and stays set. */
5903 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5904 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5905 return 1
5906 ;
5907 return 0;
5908}
5909_ACEOF
5910if ac_fn_c_try_link "$LINENO"; then :
5911 gdbsrv_cv_have_personality=true
55a8c076 5912else
770d76d7
PA
5913 gdbsrv_cv_have_personality=false
5914fi
5915rm -f core conftest.err conftest.$ac_objext \
5916 conftest$ac_exeext conftest.$ac_ext
5917else
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h. */
5920#include <sys/personality.h>
5921int
5922main ()
5923{
c9a1864a 5924
770d76d7
PA
5925# if !HAVE_DECL_ADDR_NO_RANDOMIZE
5926# define ADDR_NO_RANDOMIZE 0x0040000
5927# endif
5928 /* Test the flag could be set and stays set. */
5929 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5930 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5931 return 1
5932 ;
5933 return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_run "$LINENO"; then :
5937 gdbsrv_cv_have_personality=true
55a8c076 5938else
770d76d7 5939 gdbsrv_cv_have_personality=false
55a8c076 5940fi
770d76d7
PA
5941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5942 conftest.$ac_objext conftest.beam conftest.$ac_ext
55a8c076 5943fi
c9a1864a 5944
770d76d7
PA
5945if $gdbsrv_cv_have_personality
5946then
c9a1864a 5947
770d76d7 5948$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
c9a1864a 5949
770d76d7 5950fi
c9a1864a
YQ
5951
5952
770d76d7
PA
5953IPA_DEPFILES=""
5954extra_libraries=""
c9a1864a 5955
770d76d7
PA
5956# check whether to enable the inprocess agent
5957if test "$ipa_obj" != "" \
5958 -a "$gdbsrv_cv_have_sync_builtins" = yes \
5959 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
5960 have_ipa=true
5961else
5962 have_ipa=false
5963fi
c9a1864a 5964
770d76d7
PA
5965# Check whether --enable-inprocess-agent was given.
5966if test "${enable_inprocess_agent+set}" = set; then :
5967 enableval=$enable_inprocess_agent; case "$enableval" in
5968 yes) want_ipa=true ;;
5969 no) want_ipa=false ;;
5970 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
5971esac
55a8c076 5972else
770d76d7 5973 want_ipa=$have_ipa
55a8c076 5974fi
c9a1864a
YQ
5975
5976
770d76d7
PA
5977if $want_ipa ; then
5978 if $have_ipa ; then
5979 IPA_DEPFILES="$ipa_obj"
5980 extra_libraries="$extra_libraries libinproctrace.so"
5981 else
5982 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
5983 fi
55a8c076 5984fi
c9a1864a
YQ
5985
5986
c9a1864a
YQ
5987
5988
55a8c076 5989
c9a1864a 5990
55a8c076 5991
55a8c076 5992
c9a1864a 5993
c9a1864a
YQ
5994
5995
5996
c9a1864a
YQ
5997
5998
770d76d7
PA
5999 LIBC_FATAL_STDERR_=1
6000 export LIBC_FATAL_STDERR_
6001
6002
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6004$as_echo_n "checking for unsigned long long int... " >&6; }
6005if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
c9a1864a
YQ
6006 $as_echo_n "(cached) " >&6
6007else
770d76d7
PA
6008 ac_cv_type_unsigned_long_long_int=yes
6009 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a 6011/* end confdefs.h. */
55a8c076 6012
770d76d7
PA
6013 /* For now, do not test the preprocessor; as of 2007 there are too many
6014 implementations with broken preprocessors. Perhaps this can
6015 be revisited in 2012. In the meantime, code should not expect
6016 #if to work with literals wider than 32 bits. */
6017 /* Test literals. */
6018 long long int ll = 9223372036854775807ll;
6019 long long int nll = -9223372036854775807LL;
6020 unsigned long long int ull = 18446744073709551615ULL;
6021 /* Test constant expressions. */
6022 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6023 ? 1 : -1)];
6024 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6025 ? 1 : -1)];
6026 int i = 63;
c9a1864a
YQ
6027int
6028main ()
6029{
770d76d7
PA
6030/* Test availability of runtime routines for shift and division. */
6031 long long int llmax = 9223372036854775807ll;
6032 unsigned long long int ullmax = 18446744073709551615ull;
6033 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6034 | (llmax / ll) | (llmax % ll)
6035 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6036 | (ullmax / ull) | (ullmax % ull));
c9a1864a
YQ
6037 ;
6038 return 0;
6039}
770d76d7 6040
c9a1864a 6041_ACEOF
770d76d7
PA
6042if ac_fn_c_try_link "$LINENO"; then :
6043
6044else
6045 ac_cv_type_unsigned_long_long_int=no
c9a1864a 6046fi
770d76d7
PA
6047rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6049 fi
c9a1864a 6050fi
770d76d7
PA
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6052$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6053 if test $ac_cv_type_unsigned_long_long_int = yes; then
c9a1864a 6054
770d76d7 6055$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
c9a1864a 6056
55a8c076 6057 fi
c9a1864a
YQ
6058
6059
770d76d7
PA
6060
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6062$as_echo_n "checking for long long int... " >&6; }
6063if test "${ac_cv_type_long_long_int+set}" = set; then :
55a8c076
YQ
6064 $as_echo_n "(cached) " >&6
6065else
770d76d7
PA
6066 ac_cv_type_long_long_int=yes
6067 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6068 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6069 if test $ac_cv_type_long_long_int = yes; then
6070 if test "$cross_compiling" = yes; then :
6071 :
6072else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55a8c076 6074/* end confdefs.h. */
770d76d7
PA
6075#include <limits.h>
6076 #ifndef LLONG_MAX
6077 # define HALF \
6078 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6079 # define LLONG_MAX (HALF - 1 + HALF)
6080 #endif
55a8c076
YQ
6081int
6082main ()
6083{
770d76d7
PA
6084long long int n = 1;
6085 int i;
6086 for (i = 0; ; i++)
6087 {
6088 long long int m = n << i;
6089 if (m >> i != n)
6090 return 1;
6091 if (LLONG_MAX / 2 < m)
6092 break;
6093 }
6094 return 0;
55a8c076
YQ
6095 ;
6096 return 0;
6097}
6098_ACEOF
770d76d7
PA
6099if ac_fn_c_try_run "$LINENO"; then :
6100
6101else
6102 ac_cv_type_long_long_int=no
55a8c076 6103fi
770d76d7
PA
6104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6105 conftest.$ac_objext conftest.beam conftest.$ac_ext
55a8c076 6106fi
55a8c076 6107
770d76d7
PA
6108 fi
6109 fi
6110fi
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6112$as_echo "$ac_cv_type_long_long_int" >&6; }
6113 if test $ac_cv_type_long_long_int = yes; then
55a8c076 6114
770d76d7 6115$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
55a8c076 6116
55a8c076
YQ
6117 fi
6118
6119
6120
770d76d7
PA
6121
6122
6123 for ac_header in $gl_header_list
55a8c076 6124do :
770d76d7
PA
6125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6126ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6127eval as_val=\$$as_ac_Header
6128 if test "x$as_val" = x""yes; then :
55a8c076 6129 cat >>confdefs.h <<_ACEOF
770d76d7 6130#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55a8c076
YQ
6131_ACEOF
6132
6133fi
6134
6135done
6136
770d76d7
PA
6137
6138
6139
6140
6141
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6144$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6145if test "${gl_cv_have_include_next+set}" = set; then :
55a8c076
YQ
6146 $as_echo_n "(cached) " >&6
6147else
770d76d7
PA
6148 rm -rf conftestd1a conftestd1b conftestd2
6149 mkdir conftestd1a conftestd1b conftestd2
6150 cat <<EOF > conftestd1a/conftest.h
6151#define DEFINED_IN_CONFTESTD1
6152#include_next <conftest.h>
6153#ifdef DEFINED_IN_CONFTESTD2
6154int foo;
6155#else
6156#error "include_next doesn't work"
6157#endif
6158EOF
6159 cat <<EOF > conftestd1b/conftest.h
6160#define DEFINED_IN_CONFTESTD1
6161#include <stdio.h>
6162#include_next <conftest.h>
6163#ifdef DEFINED_IN_CONFTESTD2
6164int foo;
6165#else
6166#error "include_next doesn't work"
6167#endif
6168EOF
6169 cat <<EOF > conftestd2/conftest.h
6170#ifndef DEFINED_IN_CONFTESTD1
6171#error "include_next test doesn't work"
6172#endif
6173#define DEFINED_IN_CONFTESTD2
6174EOF
6175 gl_save_CPPFLAGS="$CPPFLAGS"
6176 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178/* end confdefs.h. */
6179#include <conftest.h>
6180_ACEOF
6181if ac_fn_c_try_compile "$LINENO"; then :
6182 gl_cv_have_include_next=yes
6183else
6184 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
55a8c076
YQ
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h. */
770d76d7 6187#include <conftest.h>
55a8c076
YQ
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"; then :
770d76d7 6190 gl_cv_have_include_next=buggy
55a8c076 6191else
770d76d7 6192 gl_cv_have_include_next=no
55a8c076
YQ
6193fi
6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195
6196fi
770d76d7
PA
6197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 CPPFLAGS="$gl_save_CPPFLAGS"
6199 rm -rf conftestd1a conftestd1b conftestd2
6200
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6203$as_echo "$gl_cv_have_include_next" >&6; }
6204 PRAGMA_SYSTEM_HEADER=
6205 if test $gl_cv_have_include_next = yes; then
6206 INCLUDE_NEXT=include_next
6207 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6208 if test -n "$GCC"; then
6209 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6210 fi
6211 else
6212 if test $gl_cv_have_include_next = buggy; then
6213 INCLUDE_NEXT=include
6214 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6215 else
6216 INCLUDE_NEXT=include
6217 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6218 fi
55a8c076 6219 fi
55a8c076 6220
770d76d7
PA
6221
6222
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6224$as_echo_n "checking whether system header files limit the line length... " >&6; }
6225if test "${gl_cv_pragma_columns+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6227else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h. */
6230
6231#ifdef __TANDEM
6232choke me
6233#endif
6234
55a8c076 6235_ACEOF
770d76d7
PA
6236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6237 $EGREP "choke me" >/dev/null 2>&1; then :
6238 gl_cv_pragma_columns=yes
6239else
6240 gl_cv_pragma_columns=no
6241fi
6242rm -f conftest*
55a8c076 6243
770d76d7
PA
6244
6245fi
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6247$as_echo "$gl_cv_pragma_columns" >&6; }
6248 if test $gl_cv_pragma_columns = yes; then
6249 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
55a8c076 6250 else
770d76d7 6251 PRAGMA_COLUMNS=
55a8c076
YQ
6252 fi
6253
6254
6255
6256
6257
6258
6259
6260
770d76d7
PA
6261 gl_cv_c_multiarch=no
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263/* end confdefs.h. */
6264#ifndef __APPLE_CC__
6265 not a universal capable compiler
6266 #endif
6267 typedef int dummy;
55a8c076 6268
55a8c076 6269_ACEOF
770d76d7 6270if ac_fn_c_try_compile "$LINENO"; then :
55a8c076 6271
770d76d7
PA
6272 arch=
6273 prev=
6274 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6275 if test -n "$prev"; then
6276 case $word in
6277 i?86 | x86_64 | ppc | ppc64)
6278 if test -z "$arch" || test "$arch" = "$word"; then
6279 arch="$word"
6280 else
6281 gl_cv_c_multiarch=yes
6282 fi
6283 ;;
6284 esac
6285 prev=
6286 else
6287 if test "x$word" = "x-arch"; then
6288 prev=arch
6289 fi
6290 fi
6291 done
55a8c076 6292
55a8c076 6293fi
770d76d7
PA
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 if test $gl_cv_c_multiarch = yes; then
6296 APPLE_UNIVERSAL_BUILD=1
6297 else
6298 APPLE_UNIVERSAL_BUILD=0
6299 fi
55a8c076 6300
55a8c076
YQ
6301
6302
6303
55a8c076 6304
770d76d7
PA
6305 if test $ac_cv_type_long_long_int = yes; then
6306 HAVE_LONG_LONG_INT=1
6307 else
6308 HAVE_LONG_LONG_INT=0
6309 fi
6310
6311
6312 if test $ac_cv_type_unsigned_long_long_int = yes; then
6313 HAVE_UNSIGNED_LONG_LONG_INT=1
6314 else
6315 HAVE_UNSIGNED_LONG_LONG_INT=0
6316 fi
6317
55a8c076
YQ
6318
6319
770d76d7 6320 :
55a8c076 6321
55a8c076 6322
55a8c076
YQ
6323
6324
6325
770d76d7
PA
6326 if test $ac_cv_header_wchar_h = yes; then
6327 HAVE_WCHAR_H=1
6328 else
6329 HAVE_WCHAR_H=0
6330 fi
55a8c076
YQ
6331
6332
770d76d7
PA
6333 if test $ac_cv_header_inttypes_h = yes; then
6334 HAVE_INTTYPES_H=1
6335 else
6336 HAVE_INTTYPES_H=0
6337 fi
55a8c076
YQ
6338
6339
770d76d7
PA
6340 if test $ac_cv_header_sys_types_h = yes; then
6341 HAVE_SYS_TYPES_H=1
6342 else
6343 HAVE_SYS_TYPES_H=0
6344 fi
55a8c076
YQ
6345
6346
6347
6348
6349
6350
55a8c076 6351
770d76d7
PA
6352
6353 :
55a8c076
YQ
6354
6355
6356
6357
6358
6359
55a8c076
YQ
6360
6361
770d76d7
PA
6362 if test $gl_cv_have_include_next = yes; then
6363 gl_cv_next_stdint_h='<'stdint.h'>'
6364 else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6366$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6367if test "${gl_cv_next_stdint_h+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
6369else
55a8c076 6370
770d76d7 6371 if test $ac_cv_header_stdint_h = yes; then
55a8c076
YQ
6372
6373
770d76d7
PA
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375/* end confdefs.h. */
6376#include <stdint.h>
55a8c076 6377
770d76d7
PA
6378_ACEOF
6379 case "$host_os" in
6380 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6381 *) gl_absname_cpp="$ac_cpp" ;;
6382 esac
6383
6384 case "$host_os" in
6385 mingw*)
6386 gl_dirsep_regex='[/\\]'
6387 ;;
6388 *)
6389 gl_dirsep_regex='\/'
6390 ;;
6391 esac
6392 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6393
6394 gl_header_literal_regex=`echo 'stdint.h' \
6395 | sed -e "$gl_make_literal_regex_sed"`
6396 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6397 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6398 s|^/[^/]|//&|
6399 p
6400 q
6401 }'
6402 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6403 sed -n "$gl_absolute_header_sed"`'"'
6404 else
6405 gl_cv_next_stdint_h='<'stdint.h'>'
6406 fi
55a8c076
YQ
6407
6408
770d76d7
PA
6409fi
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6411$as_echo "$gl_cv_next_stdint_h" >&6; }
6412 fi
6413 NEXT_STDINT_H=$gl_cv_next_stdint_h
55a8c076 6414
770d76d7
PA
6415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6417 gl_next_as_first_directive='<'stdint.h'>'
6418 else
6419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6420 gl_next_as_first_directive=$gl_cv_next_stdint_h
6421 fi
6422 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
55a8c076
YQ
6423
6424
6425
6426
770d76d7
PA
6427 if test $ac_cv_header_stdint_h = yes; then
6428 HAVE_STDINT_H=1
6429 else
6430 HAVE_STDINT_H=0
6431 fi
55a8c076
YQ
6432
6433
770d76d7
PA
6434 if test $ac_cv_header_stdint_h = yes; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6436$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6437if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6438 $as_echo_n "(cached) " >&6
6439else
6440 gl_cv_header_working_stdint_h=no
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55a8c076
YQ
6442/* end confdefs.h. */
6443
770d76d7
PA
6444
6445#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6446#include <stdint.h>
6447/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6448#if !(defined WCHAR_MIN && defined WCHAR_MAX)
6449#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
55a8c076
YQ
6450#endif
6451
55a8c076 6452
770d76d7
PA
6453 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6454 included before <wchar.h>. */
6455 #include <stddef.h>
6456 #include <signal.h>
6457 #if HAVE_WCHAR_H
6458 # include <stdio.h>
6459 # include <time.h>
6460 # include <wchar.h>
6461 #endif
55a8c076 6462
770d76d7
PA
6463
6464#ifdef INT8_MAX
6465int8_t a1 = INT8_MAX;
6466int8_t a1min = INT8_MIN;
6467#endif
6468#ifdef INT16_MAX
6469int16_t a2 = INT16_MAX;
6470int16_t a2min = INT16_MIN;
6471#endif
6472#ifdef INT32_MAX
6473int32_t a3 = INT32_MAX;
6474int32_t a3min = INT32_MIN;
6475#endif
6476#ifdef INT64_MAX
6477int64_t a4 = INT64_MAX;
6478int64_t a4min = INT64_MIN;
6479#endif
6480#ifdef UINT8_MAX
6481uint8_t b1 = UINT8_MAX;
6482#else
6483typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6484#endif
6485#ifdef UINT16_MAX
6486uint16_t b2 = UINT16_MAX;
6487#endif
6488#ifdef UINT32_MAX
6489uint32_t b3 = UINT32_MAX;
6490#endif
6491#ifdef UINT64_MAX
6492uint64_t b4 = UINT64_MAX;
6493#endif
6494int_least8_t c1 = INT8_C (0x7f);
6495int_least8_t c1max = INT_LEAST8_MAX;
6496int_least8_t c1min = INT_LEAST8_MIN;
6497int_least16_t c2 = INT16_C (0x7fff);
6498int_least16_t c2max = INT_LEAST16_MAX;
6499int_least16_t c2min = INT_LEAST16_MIN;
6500int_least32_t c3 = INT32_C (0x7fffffff);
6501int_least32_t c3max = INT_LEAST32_MAX;
6502int_least32_t c3min = INT_LEAST32_MIN;
6503int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6504int_least64_t c4max = INT_LEAST64_MAX;
6505int_least64_t c4min = INT_LEAST64_MIN;
6506uint_least8_t d1 = UINT8_C (0xff);
6507uint_least8_t d1max = UINT_LEAST8_MAX;
6508uint_least16_t d2 = UINT16_C (0xffff);
6509uint_least16_t d2max = UINT_LEAST16_MAX;
6510uint_least32_t d3 = UINT32_C (0xffffffff);
6511uint_least32_t d3max = UINT_LEAST32_MAX;
6512uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6513uint_least64_t d4max = UINT_LEAST64_MAX;
6514int_fast8_t e1 = INT_FAST8_MAX;
6515int_fast8_t e1min = INT_FAST8_MIN;
6516int_fast16_t e2 = INT_FAST16_MAX;
6517int_fast16_t e2min = INT_FAST16_MIN;
6518int_fast32_t e3 = INT_FAST32_MAX;
6519int_fast32_t e3min = INT_FAST32_MIN;
6520int_fast64_t e4 = INT_FAST64_MAX;
6521int_fast64_t e4min = INT_FAST64_MIN;
6522uint_fast8_t f1 = UINT_FAST8_MAX;
6523uint_fast16_t f2 = UINT_FAST16_MAX;
6524uint_fast32_t f3 = UINT_FAST32_MAX;
6525uint_fast64_t f4 = UINT_FAST64_MAX;
6526#ifdef INTPTR_MAX
6527intptr_t g = INTPTR_MAX;
6528intptr_t gmin = INTPTR_MIN;
55a8c076 6529#endif
770d76d7
PA
6530#ifdef UINTPTR_MAX
6531uintptr_t h = UINTPTR_MAX;
6532#endif
6533intmax_t i = INTMAX_MAX;
6534uintmax_t j = UINTMAX_MAX;
55a8c076 6535
770d76d7
PA
6536#include <limits.h> /* for CHAR_BIT */
6537#define TYPE_MINIMUM(t) \
6538 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6539#define TYPE_MAXIMUM(t) \
6540 ((t) ((t) 0 < (t) -1 \
6541 ? (t) -1 \
6542 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6543struct s {
6544 int check_PTRDIFF:
6545 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6546 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6547 ? 1 : -1;
6548 /* Detect bug in FreeBSD 6.0 / ia64. */
6549 int check_SIG_ATOMIC:
6550 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6551 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6552 ? 1 : -1;
6553 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6554 int check_WCHAR:
6555 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6556 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6557 ? 1 : -1;
6558 /* Detect bug in mingw. */
6559 int check_WINT:
6560 WINT_MIN == TYPE_MINIMUM (wint_t)
6561 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6562 ? 1 : -1;
55a8c076 6563
770d76d7
PA
6564 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6565 int check_UINT8_C:
6566 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6567 int check_UINT16_C:
6568 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
55a8c076 6569
770d76d7
PA
6570 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6571#ifdef UINT8_MAX
6572 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6573#endif
6574#ifdef UINT16_MAX
6575 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6576#endif
6577#ifdef UINT32_MAX
6578 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6579#endif
6580#ifdef UINT64_MAX
6581 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6582#endif
6583 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6584 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6585 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6586 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6587 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6588 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6589 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6590 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6591 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6592 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6593 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6594};
55a8c076 6595
770d76d7
PA
6596int
6597main ()
6598{
55a8c076 6599
770d76d7
PA
6600 ;
6601 return 0;
6602}
6603_ACEOF
6604if ac_fn_c_try_compile "$LINENO"; then :
6605 if test "$cross_compiling" = yes; then :
6606 gl_cv_header_working_stdint_h=yes
55a8c076 6607
770d76d7
PA
6608else
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h. */
55a8c076
YQ
6611
6612
770d76d7
PA
6613#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6614#include <stdint.h>
55a8c076
YQ
6615
6616
770d76d7
PA
6617 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6618 included before <wchar.h>. */
6619 #include <stddef.h>
6620 #include <signal.h>
6621 #if HAVE_WCHAR_H
6622 # include <stdio.h>
6623 # include <time.h>
6624 # include <wchar.h>
6625 #endif
55a8c076 6626
55a8c076 6627
770d76d7 6628#include <stdio.h>
55a8c076 6629#include <string.h>
770d76d7
PA
6630#define MVAL(macro) MVAL1(macro)
6631#define MVAL1(expression) #expression
6632static const char *macro_values[] =
6633 {
6634#ifdef INT8_MAX
6635 MVAL (INT8_MAX),
6636#endif
6637#ifdef INT16_MAX
6638 MVAL (INT16_MAX),
6639#endif
6640#ifdef INT32_MAX
6641 MVAL (INT32_MAX),
6642#endif
6643#ifdef INT64_MAX
6644 MVAL (INT64_MAX),
6645#endif
6646#ifdef UINT8_MAX
6647 MVAL (UINT8_MAX),
6648#endif
6649#ifdef UINT16_MAX
6650 MVAL (UINT16_MAX),
6651#endif
6652#ifdef UINT32_MAX
6653 MVAL (UINT32_MAX),
6654#endif
6655#ifdef UINT64_MAX
6656 MVAL (UINT64_MAX),
c9a1864a 6657#endif
770d76d7
PA
6658 NULL
6659 };
55a8c076
YQ
6660
6661int
6662main ()
6663{
6664
770d76d7
PA
6665 const char **mv;
6666 for (mv = macro_values; *mv != NULL; mv++)
55a8c076 6667 {
770d76d7
PA
6668 const char *value = *mv;
6669 /* Test whether it looks like a cast expression. */
6670 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6671 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6672 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6673 || strncmp (value, "((int)"/*)*/, 6) == 0
6674 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6675 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6676 return mv - macro_values + 1;
55a8c076
YQ
6677 }
6678 return 0;
6679
6680 ;
6681 return 0;
6682}
6683_ACEOF
6684if ac_fn_c_try_run "$LINENO"; then :
770d76d7 6685 gl_cv_header_working_stdint_h=yes
55a8c076
YQ
6686fi
6687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6688 conftest.$ac_objext conftest.beam conftest.$ac_ext
6689fi
6690
55a8c076
YQ
6691
6692fi
770d76d7 6693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55a8c076 6694
55a8c076 6695fi
770d76d7
PA
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6697$as_echo "$gl_cv_header_working_stdint_h" >&6; }
6698 fi
6699 if test "$gl_cv_header_working_stdint_h" = yes; then
6700 STDINT_H=
6701 else
6702 for ac_header in sys/inttypes.h sys/bitypes.h
6703do :
6704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6705ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6706eval as_val=\$$as_ac_Header
6707 if test "x$as_val" = x""yes; then :
6708 cat >>confdefs.h <<_ACEOF
6709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55a8c076
YQ
6710_ACEOF
6711
770d76d7 6712fi
55a8c076 6713
770d76d7 6714done
55a8c076 6715
770d76d7
PA
6716 if test $ac_cv_header_sys_inttypes_h = yes; then
6717 HAVE_SYS_INTTYPES_H=1
6718 else
6719 HAVE_SYS_INTTYPES_H=0
6720 fi
55a8c076 6721
770d76d7
PA
6722 if test $ac_cv_header_sys_bitypes_h = yes; then
6723 HAVE_SYS_BITYPES_H=1
6724 else
6725 HAVE_SYS_BITYPES_H=0
6726 fi
55a8c076
YQ
6727
6728
6729
6730
770d76d7 6731 if test $APPLE_UNIVERSAL_BUILD = 0; then
55a8c076
YQ
6732
6733
770d76d7
PA
6734 for gltype in ptrdiff_t size_t ; do
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6736$as_echo_n "checking for bit size of $gltype... " >&6; }
6737if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6738 $as_echo_n "(cached) " >&6
55a8c076 6739else
770d76d7
PA
6740 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6741 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6742 included before <wchar.h>. */
6743 #include <stddef.h>
6744 #include <signal.h>
6745 #if HAVE_WCHAR_H
6746 # include <stdio.h>
6747 # include <time.h>
6748 # include <wchar.h>
6749 #endif
55a8c076 6750
770d76d7 6751#include <limits.h>"; then :
55a8c076 6752
770d76d7
PA
6753else
6754 result=unknown
55a8c076 6755fi
55a8c076 6756
770d76d7 6757 eval gl_cv_bitsizeof_${gltype}=\$result
55a8c076 6758
770d76d7
PA
6759fi
6760eval ac_res=\$gl_cv_bitsizeof_${gltype}
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6762$as_echo "$ac_res" >&6; }
6763 eval result=\$gl_cv_bitsizeof_${gltype}
6764 if test $result = unknown; then
6765 result=0
6766 fi
6767 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6768 cat >>confdefs.h <<_ACEOF
6769#define BITSIZEOF_${GLTYPE} $result
6770_ACEOF
55a8c076 6771
770d76d7
PA
6772 eval BITSIZEOF_${GLTYPE}=\$result
6773 done
55a8c076
YQ
6774
6775
55a8c076 6776 fi
55a8c076
YQ
6777
6778
770d76d7
PA
6779 for gltype in sig_atomic_t wchar_t wint_t ; do
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6781$as_echo_n "checking for bit size of $gltype... " >&6; }
6782if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
55a8c076
YQ
6783 $as_echo_n "(cached) " >&6
6784else
770d76d7
PA
6785 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6786 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6787 included before <wchar.h>. */
6788 #include <stddef.h>
6789 #include <signal.h>
6790 #if HAVE_WCHAR_H
6791 # include <stdio.h>
6792 # include <time.h>
6793 # include <wchar.h>
6794 #endif
6795
6796#include <limits.h>"; then :
55a8c076 6797
55a8c076 6798else
770d76d7 6799 result=unknown
55a8c076 6800fi
55a8c076 6801
770d76d7 6802 eval gl_cv_bitsizeof_${gltype}=\$result
55a8c076 6803
770d76d7
PA
6804fi
6805eval ac_res=\$gl_cv_bitsizeof_${gltype}
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6807$as_echo "$ac_res" >&6; }
6808 eval result=\$gl_cv_bitsizeof_${gltype}
6809 if test $result = unknown; then
6810 result=0
6811 fi
6812 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6813 cat >>confdefs.h <<_ACEOF
6814#define BITSIZEOF_${GLTYPE} $result
6815_ACEOF
55a8c076 6816
770d76d7
PA
6817 eval BITSIZEOF_${GLTYPE}=\$result
6818 done
55a8c076
YQ
6819
6820
6821
6822
770d76d7
PA
6823 for gltype in sig_atomic_t wchar_t wint_t ; do
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6825$as_echo_n "checking whether $gltype is signed... " >&6; }
6826if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
55a8c076 6827 $as_echo_n "(cached) " >&6
c9a1864a 6828else
770d76d7 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a 6830/* end confdefs.h. */
770d76d7
PA
6831
6832 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6833 included before <wchar.h>. */
6834 #include <stddef.h>
6835 #include <signal.h>
6836 #if HAVE_WCHAR_H
6837 # include <stdio.h>
6838 # include <time.h>
6839 # include <wchar.h>
6840 #endif
6841
6842 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
55a8c076
YQ
6843int
6844main ()
6845{
770d76d7 6846
55a8c076
YQ
6847 ;
6848 return 0;
6849}
c9a1864a
YQ
6850_ACEOF
6851if ac_fn_c_try_compile "$LINENO"; then :
770d76d7
PA
6852 result=yes
6853else
6854 result=no
c9a1864a
YQ
6855fi
6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
770d76d7 6857 eval gl_cv_type_${gltype}_signed=\$result
c9a1864a
YQ
6858
6859fi
770d76d7
PA
6860eval ac_res=\$gl_cv_type_${gltype}_signed
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6862$as_echo "$ac_res" >&6; }
6863 eval result=\$gl_cv_type_${gltype}_signed
6864 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6865 if test "$result" = yes; then
6866 cat >>confdefs.h <<_ACEOF
6867#define HAVE_SIGNED_${GLTYPE} 1
c9a1864a 6868_ACEOF
55a8c076 6869
770d76d7
PA
6870 eval HAVE_SIGNED_${GLTYPE}=1
6871 else
6872 eval HAVE_SIGNED_${GLTYPE}=0
6873 fi
6874 done
55a8c076
YQ
6875
6876
770d76d7
PA
6877 gl_cv_type_ptrdiff_t_signed=yes
6878 gl_cv_type_size_t_signed=no
6879 if test $APPLE_UNIVERSAL_BUILD = 0; then
6880
6881
6882 for gltype in ptrdiff_t size_t ; do
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6884$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6885if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
55a8c076 6886 $as_echo_n "(cached) " >&6
c9a1864a 6887else
770d76d7
PA
6888 eval gl_cv_type_${gltype}_suffix=no
6889 eval result=\$gl_cv_type_${gltype}_signed
6890 if test "$result" = yes; then
6891 glsufu=
6892 else
6893 glsufu=u
6894 fi
6895 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6896 case $glsuf in
6897 '') gltype1='int';;
6898 l) gltype1='long int';;
6899 ll) gltype1='long long int';;
6900 i64) gltype1='__int64';;
6901 u) gltype1='unsigned int';;
6902 ul) gltype1='unsigned long int';;
6903 ull) gltype1='unsigned long long int';;
6904 ui64)gltype1='unsigned __int64';;
6905 esac
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a 6907/* end confdefs.h. */
55a8c076 6908
770d76d7
PA
6909 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6910 included before <wchar.h>. */
6911 #include <stddef.h>
6912 #include <signal.h>
6913 #if HAVE_WCHAR_H
6914 # include <stdio.h>
6915 # include <time.h>
6916 # include <wchar.h>
6917 #endif
6918
6919 extern $gltype foo;
6920 extern $gltype1 foo;
c9a1864a
YQ
6921int
6922main ()
6923{
770d76d7 6924
c9a1864a
YQ
6925 ;
6926 return 0;
6927}
6928_ACEOF
55a8c076 6929if ac_fn_c_try_compile "$LINENO"; then :
770d76d7 6930 eval gl_cv_type_${gltype}_suffix=\$glsuf
55a8c076
YQ
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
770d76d7
PA
6933 eval result=\$gl_cv_type_${gltype}_suffix
6934 test "$result" != no && break
6935 done
55a8c076 6936fi
770d76d7 6937eval ac_res=\$gl_cv_type_${gltype}_suffix
55a8c076
YQ
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6939$as_echo "$ac_res" >&6; }
770d76d7
PA
6940 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6941 eval result=\$gl_cv_type_${gltype}_suffix
6942 test "$result" = no && result=
6943 eval ${GLTYPE}_SUFFIX=\$result
6944 cat >>confdefs.h <<_ACEOF
6945#define ${GLTYPE}_SUFFIX $result
55a8c076
YQ
6946_ACEOF
6947
770d76d7 6948 done
c9a1864a 6949
c9a1864a 6950
c9a1864a
YQ
6951 fi
6952
6953
770d76d7
PA
6954 for gltype in sig_atomic_t wchar_t wint_t ; do
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6956$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6957if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
c9a1864a
YQ
6958 $as_echo_n "(cached) " >&6
6959else
770d76d7
PA
6960 eval gl_cv_type_${gltype}_suffix=no
6961 eval result=\$gl_cv_type_${gltype}_signed
6962 if test "$result" = yes; then
6963 glsufu=
6964 else
6965 glsufu=u
6966 fi
6967 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6968 case $glsuf in
6969 '') gltype1='int';;
6970 l) gltype1='long int';;
6971 ll) gltype1='long long int';;
6972 i64) gltype1='__int64';;
6973 u) gltype1='unsigned int';;
6974 ul) gltype1='unsigned long int';;
6975 ull) gltype1='unsigned long long int';;
6976 ui64)gltype1='unsigned __int64';;
6977 esac
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a
YQ
6979/* end confdefs.h. */
6980
770d76d7
PA
6981 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6982 included before <wchar.h>. */
6983 #include <stddef.h>
6984 #include <signal.h>
6985 #if HAVE_WCHAR_H
6986 # include <stdio.h>
6987 # include <time.h>
6988 # include <wchar.h>
6989 #endif
6990
6991 extern $gltype foo;
6992 extern $gltype1 foo;
c9a1864a
YQ
6993int
6994main ()
6995{
55a8c076 6996
c9a1864a
YQ
6997 ;
6998 return 0;
6999}
c9a1864a 7000_ACEOF
55a8c076 7001if ac_fn_c_try_compile "$LINENO"; then :
770d76d7 7002 eval gl_cv_type_${gltype}_suffix=\$glsuf
c9a1864a 7003fi
55a8c076 7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
770d76d7
PA
7005 eval result=\$gl_cv_type_${gltype}_suffix
7006 test "$result" != no && break
7007 done
c9a1864a 7008fi
770d76d7
PA
7009eval ac_res=\$gl_cv_type_${gltype}_suffix
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7011$as_echo "$ac_res" >&6; }
7012 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7013 eval result=\$gl_cv_type_${gltype}_suffix
7014 test "$result" = no && result=
7015 eval ${GLTYPE}_SUFFIX=\$result
7016 cat >>confdefs.h <<_ACEOF
7017#define ${GLTYPE}_SUFFIX $result
7018_ACEOF
55a8c076 7019
770d76d7 7020 done
55a8c076 7021
770d76d7
PA
7022
7023
7024 if test $BITSIZEOF_WINT_T -lt 32; then
7025 BITSIZEOF_WINT_T=32
7026 fi
7027
7028 STDINT_H=stdint.h
7029 fi
7030
7031 if test -n "$STDINT_H"; then
7032 GL_GENERATE_STDINT_H_TRUE=
7033 GL_GENERATE_STDINT_H_FALSE='#'
7034else
7035 GL_GENERATE_STDINT_H_TRUE='#'
7036 GL_GENERATE_STDINT_H_FALSE=
c9a1864a 7037fi
770d76d7
PA
7038
7039
7040
7041
7042
7043
7044
7045
7046 GNULIB_IMAXABS=0;
7047 GNULIB_IMAXDIV=0;
7048 GNULIB_STRTOIMAX=0;
7049 GNULIB_STRTOUMAX=0;
7050 HAVE_DECL_IMAXABS=1;
7051 HAVE_DECL_IMAXDIV=1;
7052 HAVE_DECL_STRTOIMAX=1;
7053 HAVE_DECL_STRTOUMAX=1;
7054 REPLACE_STRTOIMAX=0;
7055 INT32_MAX_LT_INTMAX_MAX=1;
7056 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7057 PRI_MACROS_BROKEN=0;
7058 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7059 UINT32_MAX_LT_UINTMAX_MAX=1;
7060 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7061
7062
7063
7064
7065 :
7066
7067
7068
7069
7070
7071
7072
c9a1864a
YQ
7073
7074
7075
7076
7077
7078
7079 :
7080
7081
7082
7083
7084
7085
7086
770d76d7 7087
c9a1864a 7088 if test $gl_cv_have_include_next = yes; then
55a8c076 7089 gl_cv_next_inttypes_h='<'inttypes.h'>'
c9a1864a 7090 else
55a8c076
YQ
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7092$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7093if test "${gl_cv_next_inttypes_h+set}" = set; then :
c9a1864a
YQ
7094 $as_echo_n "(cached) " >&6
7095else
7096
770d76d7
PA
7097 if test $ac_cv_header_inttypes_h = yes; then
7098
7099
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a 7101/* end confdefs.h. */
55a8c076 7102#include <inttypes.h>
c9a1864a
YQ
7103
7104_ACEOF
770d76d7
PA
7105 case "$host_os" in
7106 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7107 *) gl_absname_cpp="$ac_cpp" ;;
7108 esac
7109
7110 case "$host_os" in
7111 mingw*)
7112 gl_dirsep_regex='[/\\]'
7113 ;;
7114 *)
7115 gl_dirsep_regex='\/'
7116 ;;
7117 esac
7118 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7119
7120 gl_header_literal_regex=`echo 'inttypes.h' \
7121 | sed -e "$gl_make_literal_regex_sed"`
7122 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7123 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7124 s|^/[^/]|//&|
7125 p
7126 q
7127 }'
7128 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7129 sed -n "$gl_absolute_header_sed"`'"'
c9a1864a 7130 else
770d76d7
PA
7131 gl_cv_next_inttypes_h='<'inttypes.h'>'
7132 fi
7133
c9a1864a
YQ
7134
7135fi
55a8c076
YQ
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7137$as_echo "$gl_cv_next_inttypes_h" >&6; }
c9a1864a 7138 fi
55a8c076 7139 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
c9a1864a
YQ
7140
7141 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7142 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
55a8c076 7143 gl_next_as_first_directive='<'inttypes.h'>'
c9a1864a
YQ
7144 else
7145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
55a8c076 7146 gl_next_as_first_directive=$gl_cv_next_inttypes_h
c9a1864a 7147 fi
55a8c076 7148 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
c9a1864a
YQ
7149
7150
7151
7152
7153
c9a1864a 7154
55a8c076 7155
55a8c076 7156
770d76d7
PA
7157 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7158 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7160$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7161if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7162 $as_echo_n "(cached) " >&6
7163else
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55a8c076 7165/* end confdefs.h. */
770d76d7
PA
7166#include <inttypes.h>
7167
c9a1864a
YQ
7168int
7169main ()
7170{
770d76d7
PA
7171#undef $gl_func
7172 (void) $gl_func;
c9a1864a
YQ
7173 ;
7174 return 0;
7175}
7176_ACEOF
7177if ac_fn_c_try_compile "$LINENO"; then :
770d76d7
PA
7178 eval "$as_gl_Symbol=yes"
7179else
7180 eval "$as_gl_Symbol=no"
c9a1864a
YQ
7181fi
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
770d76d7
PA
7183fi
7184eval ac_res=\$$as_gl_Symbol
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7186$as_echo "$ac_res" >&6; }
7187 eval as_val=\$$as_gl_Symbol
7188 if test "x$as_val" = x""yes; then :
7189 cat >>confdefs.h <<_ACEOF
7190#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7191_ACEOF
c9a1864a 7192
770d76d7
PA
7193 eval ac_cv_have_decl_$gl_func=yes
7194fi
7195 done
c9a1864a
YQ
7196
7197
7198
770d76d7
PA
7199 for ac_header in inttypes.h
7200do :
7201 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7202if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7203 cat >>confdefs.h <<_ACEOF
7204#define HAVE_INTTYPES_H 1
7205_ACEOF
c9a1864a 7206
770d76d7 7207fi
c9a1864a 7208
770d76d7 7209done
55a8c076 7210
770d76d7
PA
7211 if test $ac_cv_header_inttypes_h = yes; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7213$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7214if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
c9a1864a
YQ
7215 $as_echo_n "(cached) " >&6
7216else
55a8c076 7217
770d76d7
PA
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h. */
55a8c076 7220
770d76d7
PA
7221#include <inttypes.h>
7222#ifdef PRId32
7223char *p = PRId32;
7224#endif
55a8c076 7225
55a8c076
YQ
7226int
7227main ()
7228{
c9a1864a 7229
55a8c076
YQ
7230 ;
7231 return 0;
7232}
c9a1864a 7233_ACEOF
55a8c076 7234if ac_fn_c_try_compile "$LINENO"; then :
770d76d7 7235 gt_cv_inttypes_pri_broken=no
55a8c076 7236else
770d76d7 7237 gt_cv_inttypes_pri_broken=yes
c9a1864a 7238fi
55a8c076 7239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
770d76d7 7240
55a8c076 7241fi
770d76d7
PA
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7243$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7244 fi
7245 if test "$gt_cv_inttypes_pri_broken" = yes; then
7246
7247cat >>confdefs.h <<_ACEOF
7248#define PRI_MACROS_BROKEN 1
7249_ACEOF
7250
7251 PRI_MACROS_BROKEN=1
55a8c076 7252 else
770d76d7 7253 PRI_MACROS_BROKEN=0
c9a1864a
YQ
7254 fi
7255
7256
55a8c076 7257
770d76d7
PA
7258
7259
7260
7261
7262
7263
7264
7265
7266 for ac_func in $gl_func_list
7267do :
7268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7269ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7270eval as_val=\$$as_ac_var
7271 if test "x$as_val" = x""yes; then :
7272 cat >>confdefs.h <<_ACEOF
7273#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7274_ACEOF
7275
7276fi
7277done
7278
7279
7280
7281
7282
7283
7284 GNULIB_FFSL=0;
7285 GNULIB_FFSLL=0;
7286 GNULIB_MEMCHR=0;
7287 GNULIB_MEMMEM=0;
7288 GNULIB_MEMPCPY=0;
7289 GNULIB_MEMRCHR=0;
7290 GNULIB_RAWMEMCHR=0;
7291 GNULIB_STPCPY=0;
7292 GNULIB_STPNCPY=0;
7293 GNULIB_STRCHRNUL=0;
7294 GNULIB_STRDUP=0;
7295 GNULIB_STRNCAT=0;
7296 GNULIB_STRNDUP=0;
7297 GNULIB_STRNLEN=0;
7298 GNULIB_STRPBRK=0;
7299 GNULIB_STRSEP=0;
7300 GNULIB_STRSTR=0;
7301 GNULIB_STRCASESTR=0;
7302 GNULIB_STRTOK_R=0;
7303 GNULIB_MBSLEN=0;
7304 GNULIB_MBSNLEN=0;
7305 GNULIB_MBSCHR=0;
7306 GNULIB_MBSRCHR=0;
7307 GNULIB_MBSSTR=0;
7308 GNULIB_MBSCASECMP=0;
7309 GNULIB_MBSNCASECMP=0;
7310 GNULIB_MBSPCASECMP=0;
7311 GNULIB_MBSCASESTR=0;
7312 GNULIB_MBSCSPN=0;
7313 GNULIB_MBSPBRK=0;
7314 GNULIB_MBSSPN=0;
7315 GNULIB_MBSSEP=0;
7316 GNULIB_MBSTOK_R=0;
7317 GNULIB_STRERROR=0;
7318 GNULIB_STRERROR_R=0;
7319 GNULIB_STRSIGNAL=0;
7320 GNULIB_STRVERSCMP=0;
7321 HAVE_MBSLEN=0;
7322 HAVE_FFSL=1;
7323 HAVE_FFSLL=1;
7324 HAVE_MEMCHR=1;
7325 HAVE_DECL_MEMMEM=1;
7326 HAVE_MEMPCPY=1;
7327 HAVE_DECL_MEMRCHR=1;
7328 HAVE_RAWMEMCHR=1;
7329 HAVE_STPCPY=1;
7330 HAVE_STPNCPY=1;
7331 HAVE_STRCHRNUL=1;
7332 HAVE_DECL_STRDUP=1;
7333 HAVE_DECL_STRNDUP=1;
7334 HAVE_DECL_STRNLEN=1;
7335 HAVE_STRPBRK=1;
7336 HAVE_STRSEP=1;
7337 HAVE_STRCASESTR=1;
7338 HAVE_DECL_STRTOK_R=1;
7339 HAVE_DECL_STRERROR_R=1;
7340 HAVE_DECL_STRSIGNAL=1;
7341 HAVE_STRVERSCMP=1;
7342 REPLACE_MEMCHR=0;
7343 REPLACE_MEMMEM=0;
7344 REPLACE_STPNCPY=0;
7345 REPLACE_STRDUP=0;
7346 REPLACE_STRSTR=0;
7347 REPLACE_STRCASESTR=0;
7348 REPLACE_STRCHRNUL=0;
7349 REPLACE_STRERROR=0;
7350 REPLACE_STRERROR_R=0;
7351 REPLACE_STRNCAT=0;
7352 REPLACE_STRNDUP=0;
7353 REPLACE_STRNLEN=0;
7354 REPLACE_STRSIGNAL=0;
7355 REPLACE_STRTOK_R=0;
7356 UNDEFINE_STRTOK_R=0;
7357
7358
7359
7360
7361
7362 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
7363 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
7364 # irrelevant for anonymous mappings.
7365 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
7366if test "x$ac_cv_func_mmap" = x""yes; then :
7367 gl_have_mmap=yes
c9a1864a 7368else
770d76d7
PA
7369 gl_have_mmap=no
7370fi
55a8c076 7371
55a8c076 7372
770d76d7
PA
7373 # Try to allow MAP_ANONYMOUS.
7374 gl_have_mmap_anonymous=no
7375 if test $gl_have_mmap = yes; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
7377$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h. */
55a8c076 7380
770d76d7
PA
7381#include <sys/mman.h>
7382#ifdef MAP_ANONYMOUS
7383 I cant identify this map
7384#endif
c9a1864a 7385
c9a1864a 7386_ACEOF
770d76d7
PA
7387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
7389 gl_have_mmap_anonymous=yes
c9a1864a 7390fi
770d76d7
PA
7391rm -f conftest*
7392
7393 if test $gl_have_mmap_anonymous != yes; then
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h. */
7396
7397#include <sys/mman.h>
7398#ifdef MAP_ANON
7399 I cant identify this map
7400#endif
7401
7402_ACEOF
7403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
7405
7406$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
7407
7408 gl_have_mmap_anonymous=yes
c9a1864a 7409fi
770d76d7 7410rm -f conftest*
c9a1864a 7411
770d76d7
PA
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
7414$as_echo "$gl_have_mmap_anonymous" >&6; }
7415 if test $gl_have_mmap_anonymous = yes; then
c9a1864a 7416
770d76d7
PA
7417$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
7418
7419 fi
c9a1864a
YQ
7420 fi
7421
55a8c076 7422
770d76d7 7423 :
55a8c076 7424
55a8c076 7425
c9a1864a 7426
c9a1864a 7427
c9a1864a 7428
55a8c076 7429
770d76d7 7430 :
55a8c076 7431
55a8c076 7432
55a8c076 7433
55a8c076 7434
c9a1864a
YQ
7435
7436
7437
7438
770d76d7
PA
7439 if test $HAVE_MEMCHR = 1; then
7440 # Detect platform-specific bugs in some versions of glibc:
7441 # memchr should not dereference anything with length 0
7442 # http://bugzilla.redhat.com/499689
7443 # memchr should not dereference overestimated length after a match
7444 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
7445 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
7446 # Assume that memchr works on platforms that lack mprotect.
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
7448$as_echo_n "checking whether memchr works... " >&6; }
7449if test "${gl_cv_func_memchr_works+set}" = set; then :
55a8c076 7450 $as_echo_n "(cached) " >&6
770d76d7
PA
7451else
7452 if test "$cross_compiling" = yes; then :
7453 gl_cv_func_memchr_works="guessing no"
55a8c076
YQ
7454else
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h. */
770d76d7
PA
7457
7458#include <string.h>
7459#if HAVE_SYS_MMAN_H
7460# include <fcntl.h>
7461# include <unistd.h>
7462# include <sys/types.h>
7463# include <sys/mman.h>
7464# ifndef MAP_FILE
7465# define MAP_FILE 0
7466# endif
7467#endif
c9a1864a 7468
55a8c076
YQ
7469int
7470main ()
7471{
770d76d7
PA
7472
7473 int result = 0;
7474 char *fence = NULL;
7475#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
7476# if HAVE_MAP_ANONYMOUS
7477 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
7478 const int fd = -1;
7479# else /* !HAVE_MAP_ANONYMOUS */
7480 const int flags = MAP_FILE | MAP_PRIVATE;
7481 int fd = open ("/dev/zero", O_RDONLY, 0666);
7482 if (fd >= 0)
7483# endif
7484 {
7485 int pagesize = getpagesize ();
7486 char *two_pages =
7487 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
7488 flags, fd, 0);
7489 if (two_pages != (char *)(-1)
7490 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
7491 fence = two_pages + pagesize;
7492 }
7493#endif
7494 if (fence)
7495 {
7496 if (memchr (fence, 0, 0))
7497 result |= 1;
7498 strcpy (fence - 9, "12345678");
7499 if (memchr (fence - 9, 0, 79) != fence - 1)
7500 result |= 2;
7501 if (memchr (fence - 1, 0, 3) != fence - 1)
7502 result |= 4;
7503 }
7504 return result;
7505
55a8c076
YQ
7506 ;
7507 return 0;
7508}
770d76d7
PA
7509_ACEOF
7510if ac_fn_c_try_run "$LINENO"; then :
7511 gl_cv_func_memchr_works=yes
55a8c076 7512else
770d76d7 7513 gl_cv_func_memchr_works=no
55a8c076 7514fi
770d76d7
PA
7515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7516 conftest.$ac_objext conftest.beam conftest.$ac_ext
55a8c076 7517fi
c9a1864a 7518
55a8c076 7519fi
770d76d7
PA
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
7521$as_echo "$gl_cv_func_memchr_works" >&6; }
7522 if test "$gl_cv_func_memchr_works" != yes; then
7523 REPLACE_MEMCHR=1
7524 fi
7525 fi
c9a1864a
YQ
7526
7527
770d76d7
PA
7528 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7529if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7530 ac_have_decl=1
7531else
7532 ac_have_decl=0
7533fi
7534
7535cat >>confdefs.h <<_ACEOF
7536#define HAVE_DECL_MEMMEM $ac_have_decl
7537_ACEOF
c9a1864a
YQ
7538
7539
7540
7541
c9a1864a
YQ
7542
7543
770d76d7
PA
7544 for ac_func in memmem
7545do :
7546 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7547if test "x$ac_cv_func_memmem" = x""yes; then :
7548 cat >>confdefs.h <<_ACEOF
7549#define HAVE_MEMMEM 1
7550_ACEOF
c9a1864a 7551
770d76d7
PA
7552fi
7553done
c9a1864a 7554
770d76d7
PA
7555 if test $ac_cv_func_memmem = yes; then
7556 HAVE_MEMMEM=1
7557 else
7558 HAVE_MEMMEM=0
7559 fi
c9a1864a 7560
770d76d7 7561 :
c9a1864a 7562
c9a1864a
YQ
7563
7564
770d76d7
PA
7565
7566
7567 if test $ac_cv_have_decl_memmem = no; then
7568 HAVE_DECL_MEMMEM=0
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7571$as_echo_n "checking whether memmem works... " >&6; }
7572if test "${gl_cv_func_memmem_works_always+set}" = set; then :
c9a1864a
YQ
7573 $as_echo_n "(cached) " >&6
7574else
7575 if test "$cross_compiling" = yes; then :
770d76d7 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a
YQ
7577/* end confdefs.h. */
7578
c9a1864a 7579#ifdef __GNU_LIBRARY__
770d76d7
PA
7580 #include <features.h>
7581 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7582 || __GLIBC_MINOR__ > 12)) \
7583 || (__GLIBC__ > 2)) \
7584 || defined __UCLIBC__
c9a1864a
YQ
7585 Lucky user
7586 #endif
770d76d7 7587#elif defined __CYGWIN__
c9a1864a 7588 #include <cygwin/version.h>
770d76d7 7589 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
c9a1864a
YQ
7590 Lucky user
7591 #endif
770d76d7
PA
7592#else
7593 Lucky user
c9a1864a
YQ
7594#endif
7595
7596_ACEOF
7597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7598 $EGREP "Lucky user" >/dev/null 2>&1; then :
770d76d7 7599 gl_cv_func_memmem_works_always=yes
c9a1864a 7600else
770d76d7 7601 gl_cv_func_memmem_works_always="guessing no"
c9a1864a
YQ
7602fi
7603rm -f conftest*
7604
7605
7606else
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h. */
7609
c9a1864a 7610#include <string.h> /* for memmem */
770d76d7
PA
7611#define P "_EF_BF_BD"
7612#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7613#define NEEDLE P P P P P
c9a1864a
YQ
7614
7615int
7616main ()
7617{
770d76d7
PA
7618
7619 int result = 0;
7620 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7621 result |= 1;
c9a1864a 7622 /* Check for empty needle behavior. */
770d76d7
PA
7623 {
7624 const char *haystack = "AAA";
7625 if (memmem (haystack, 3, NULL, 0) != haystack)
7626 result |= 2;
7627 }
7628 return result;
7629
c9a1864a
YQ
7630 ;
7631 return 0;
7632}
7633_ACEOF
7634if ac_fn_c_try_run "$LINENO"; then :
770d76d7 7635 gl_cv_func_memmem_works_always=yes
c9a1864a 7636else
770d76d7 7637 gl_cv_func_memmem_works_always=no
c9a1864a
YQ
7638fi
7639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7640 conftest.$ac_objext conftest.beam conftest.$ac_ext
7641fi
7642
7643
7644fi
770d76d7
PA
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7646$as_echo "$gl_cv_func_memmem_works_always" >&6; }
7647 if test "$gl_cv_func_memmem_works_always" != yes; then
c9a1864a 7648 REPLACE_MEMMEM=1
c9a1864a
YQ
7649 fi
7650 fi
c9a1864a
YQ
7651 :
7652
7653
770d76d7
PA
7654 REPLACE_NULL=0;
7655 HAVE_WCHAR_T=1;
c9a1864a
YQ
7656
7657
770d76d7
PA
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7659$as_echo_n "checking for wchar_t... " >&6; }
7660if test "${gt_cv_c_wchar_t+set}" = set; then :
c9a1864a
YQ
7661 $as_echo_n "(cached) " >&6
7662else
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h. */
7665#include <stddef.h>
770d76d7 7666 wchar_t foo = (wchar_t)'\0';
c9a1864a
YQ
7667int
7668main ()
7669{
7670
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675if ac_fn_c_try_compile "$LINENO"; then :
770d76d7 7676 gt_cv_c_wchar_t=yes
c9a1864a 7677else
770d76d7 7678 gt_cv_c_wchar_t=no
c9a1864a
YQ
7679fi
7680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681fi
770d76d7
PA
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7683$as_echo "$gt_cv_c_wchar_t" >&6; }
7684 if test $gt_cv_c_wchar_t = yes; then
c9a1864a 7685
770d76d7 7686$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
c9a1864a 7687
770d76d7 7688 fi
c9a1864a 7689
770d76d7
PA
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7691$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7692if test "${ac_cv_c_restrict+set}" = set; then :
c9a1864a
YQ
7693 $as_echo_n "(cached) " >&6
7694else
770d76d7
PA
7695 ac_cv_c_restrict=no
7696 # The order here caters to the fact that C++ does not require restrict.
7697 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a 7699/* end confdefs.h. */
770d76d7
PA
7700typedef int * int_ptr;
7701 int foo (int_ptr $ac_kw ip) {
7702 return ip[0];
7703 }
7704int
7705main ()
7706{
7707int s[1];
7708 int * $ac_kw t = s;
7709 t[0] = 0;
7710 return foo(t)
7711 ;
7712 return 0;
7713}
7714_ACEOF
7715if ac_fn_c_try_compile "$LINENO"; then :
7716 ac_cv_c_restrict=$ac_kw
7717fi
7718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 test "$ac_cv_c_restrict" != no && break
7720 done
c9a1864a 7721
770d76d7
PA
7722fi
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7724$as_echo "$ac_cv_c_restrict" >&6; }
c9a1864a 7725
770d76d7
PA
7726 case $ac_cv_c_restrict in
7727 restrict) ;;
7728 no) $as_echo "#define restrict /**/" >>confdefs.h
7729 ;;
7730 *) cat >>confdefs.h <<_ACEOF
7731#define restrict $ac_cv_c_restrict
7732_ACEOF
7733 ;;
7734 esac
c9a1864a
YQ
7735
7736
7737
7738
7739
c9a1864a
YQ
7740
7741
7742
7743
7744
7745
7746
7747 if test $gl_cv_have_include_next = yes; then
770d76d7 7748 gl_cv_next_string_h='<'string.h'>'
c9a1864a 7749 else
770d76d7
PA
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
7751$as_echo_n "checking absolute name of <string.h>... " >&6; }
7752if test "${gl_cv_next_string_h+set}" = set; then :
c9a1864a
YQ
7753 $as_echo_n "(cached) " >&6
7754else
7755
770d76d7 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a 7757/* end confdefs.h. */
770d76d7 7758#include <string.h>
c9a1864a
YQ
7759
7760_ACEOF
770d76d7
PA
7761 case "$host_os" in
7762 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7763 *) gl_absname_cpp="$ac_cpp" ;;
7764 esac
7765
7766 case "$host_os" in
7767 mingw*)
7768 gl_dirsep_regex='[/\\]'
7769 ;;
7770 *)
7771 gl_dirsep_regex='\/'
7772 ;;
7773 esac
7774 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7775
7776 gl_header_literal_regex=`echo 'string.h' \
7777 | sed -e "$gl_make_literal_regex_sed"`
7778 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7779 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7780 s|^/[^/]|//&|
7781 p
7782 q
7783 }'
7784 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7785 sed -n "$gl_absolute_header_sed"`'"'
7786
c9a1864a
YQ
7787
7788fi
770d76d7
PA
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
7790$as_echo "$gl_cv_next_string_h" >&6; }
c9a1864a 7791 fi
770d76d7 7792 NEXT_STRING_H=$gl_cv_next_string_h
c9a1864a
YQ
7793
7794 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7795 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
770d76d7 7796 gl_next_as_first_directive='<'string.h'>'
c9a1864a
YQ
7797 else
7798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
770d76d7 7799 gl_next_as_first_directive=$gl_cv_next_string_h
c9a1864a 7800 fi
770d76d7 7801 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
c9a1864a
YQ
7802
7803
7804
c9a1864a
YQ
7805
7806
770d76d7
PA
7807
7808 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
7809 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7811$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7812if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c9a1864a
YQ
7813 $as_echo_n "(cached) " >&6
7814else
770d76d7 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a 7816/* end confdefs.h. */
770d76d7 7817#include <string.h>
c9a1864a 7818
770d76d7
PA
7819int
7820main ()
7821{
7822#undef $gl_func
7823 (void) $gl_func;
7824 ;
7825 return 0;
7826}
7827_ACEOF
7828if ac_fn_c_try_compile "$LINENO"; then :
7829 eval "$as_gl_Symbol=yes"
7830else
7831 eval "$as_gl_Symbol=no"
7832fi
7833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834fi
7835eval ac_res=\$$as_gl_Symbol
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7837$as_echo "$ac_res" >&6; }
7838 eval as_val=\$$as_gl_Symbol
7839 if test "x$as_val" = x""yes; then :
7840 cat >>confdefs.h <<_ACEOF
7841#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7842_ACEOF
c9a1864a 7843
770d76d7
PA
7844 eval ac_cv_have_decl_$gl_func=yes
7845fi
7846 done
c9a1864a
YQ
7847
7848
c9a1864a 7849
770d76d7
PA
7850 if false; then
7851 GL_COND_LIBTOOL_TRUE=
7852 GL_COND_LIBTOOL_FALSE='#'
7853else
7854 GL_COND_LIBTOOL_TRUE='#'
7855 GL_COND_LIBTOOL_FALSE=
7856fi
c9a1864a 7857
770d76d7
PA
7858 gl_cond_libtool=false
7859 gl_libdeps=
7860 gl_ltlibdeps=
7861 gl_m4_base='gnulib/m4'
c9a1864a 7862
c9a1864a 7863
c9a1864a 7864
c9a1864a 7865
770d76d7
PA
7866
7867
7868
7869
7870
7871 gl_source_base='gnulib'
7872
7873
7874
7875
7876
7877 PRIPTR_PREFIX=
7878 if test -n "$STDINT_H"; then
7879 PRIPTR_PREFIX='"l"'
7880 else
7881 for glpfx in '' l ll I64; do
7882 case $glpfx in
7883 '') gltype1='int';;
7884 l) gltype1='long int';;
7885 ll) gltype1='long long int';;
7886 I64) gltype1='__int64';;
7887 esac
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h. */
7890#include <stdint.h>
7891 extern intptr_t foo;
7892 extern $gltype1 foo;
c9a1864a
YQ
7893int
7894main ()
7895{
7896
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901if ac_fn_c_try_compile "$LINENO"; then :
770d76d7
PA
7902 PRIPTR_PREFIX='"'$glpfx'"'
7903fi
7904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 test -n "$PRIPTR_PREFIX" && break
7906 done
7907 fi
7908
7909
c9a1864a 7910
770d76d7
PA
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
7912$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
7913if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
c9a1864a
YQ
7915else
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h. */
770d76d7
PA
7918/* Work also in C++ mode. */
7919 #define __STDC_LIMIT_MACROS 1
c9a1864a 7920
770d76d7
PA
7921 /* Work if build is not clean. */
7922 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
c9a1864a 7923
770d76d7
PA
7924 #include <limits.h>
7925 #if HAVE_STDINT_H
7926 #include <stdint.h>
7927 #endif
c9a1864a 7928
770d76d7
PA
7929 #if defined INT32_MAX && defined INTMAX_MAX
7930 #define CONDITION (INT32_MAX < INTMAX_MAX)
7931 #elif HAVE_LONG_LONG_INT
7932 #define CONDITION (sizeof (int) < sizeof (long long int))
7933 #else
7934 #define CONDITION 0
7935 #endif
7936 int test[CONDITION ? 1 : -1];
7937int
7938main ()
7939{
c9a1864a 7940
770d76d7
PA
7941 ;
7942 return 0;
7943}
7944_ACEOF
7945if ac_fn_c_try_compile "$LINENO"; then :
7946 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
7947else
7948 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
7949fi
7950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
7953$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
7954 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
7955 INT32_MAX_LT_INTMAX_MAX=1;
7956 else
7957 INT32_MAX_LT_INTMAX_MAX=0;
7958 fi
c9a1864a
YQ
7959
7960
770d76d7
PA
7961 if test $APPLE_UNIVERSAL_BUILD = 0; then
7962
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
7964$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
7965if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967else
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h. */
7970/* Work also in C++ mode. */
7971 #define __STDC_LIMIT_MACROS 1
7972
7973 /* Work if build is not clean. */
7974 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7975
7976 #include <limits.h>
7977 #if HAVE_STDINT_H
7978 #include <stdint.h>
7979 #endif
c9a1864a 7980
770d76d7
PA
7981 #if defined INT64_MAX
7982 #define CONDITION (INT64_MAX == LONG_MAX)
7983 #elif HAVE_LONG_LONG_INT
7984 #define CONDITION (sizeof (long long int) == sizeof (long int))
7985 #else
7986 #define CONDITION 0
7987 #endif
7988 int test[CONDITION ? 1 : -1];
c9a1864a
YQ
7989int
7990main ()
7991{
7992
770d76d7 7993 ;
c9a1864a 7994 return 0;
770d76d7
PA
7995}
7996_ACEOF
7997if ac_fn_c_try_compile "$LINENO"; then :
7998 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
7999else
8000 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
8001fi
8002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
8005$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
8006 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
8007 INT64_MAX_EQ_LONG_MAX=1;
8008 else
8009 INT64_MAX_EQ_LONG_MAX=0;
8010 fi
8011
8012
8013 else
8014 INT64_MAX_EQ_LONG_MAX=-1
8015 fi
8016
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
8018$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
8019if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
8021else
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023/* end confdefs.h. */
8024/* Work also in C++ mode. */
8025 #define __STDC_LIMIT_MACROS 1
8026
8027 /* Work if build is not clean. */
8028 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8029
8030 #include <limits.h>
8031 #if HAVE_STDINT_H
8032 #include <stdint.h>
8033 #endif
8034
8035 #if defined UINT32_MAX && defined UINTMAX_MAX
8036 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
8037 #elif HAVE_LONG_LONG_INT
8038 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
8039 #else
8040 #define CONDITION 0
8041 #endif
8042 int test[CONDITION ? 1 : -1];
8043int
8044main ()
8045{
c9a1864a
YQ
8046
8047 ;
8048 return 0;
8049}
8050_ACEOF
770d76d7
PA
8051if ac_fn_c_try_compile "$LINENO"; then :
8052 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
8053else
8054 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
c9a1864a 8055fi
770d76d7 8056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c9a1864a 8057fi
770d76d7
PA
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
8059$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
8060 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
8061 UINT32_MAX_LT_UINTMAX_MAX=1;
8062 else
8063 UINT32_MAX_LT_UINTMAX_MAX=0;
8064 fi
8065
8066
8067 if test $APPLE_UNIVERSAL_BUILD = 0; then
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
8070$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
8071if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h. */
8076/* Work also in C++ mode. */
8077 #define __STDC_LIMIT_MACROS 1
8078
8079 /* Work if build is not clean. */
8080 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8081
8082 #include <limits.h>
8083 #if HAVE_STDINT_H
8084 #include <stdint.h>
8085 #endif
c9a1864a 8086
770d76d7
PA
8087 #if defined UINT64_MAX
8088 #define CONDITION (UINT64_MAX == ULONG_MAX)
8089 #elif HAVE_LONG_LONG_INT
8090 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
8091 #else
8092 #define CONDITION 0
8093 #endif
8094 int test[CONDITION ? 1 : -1];
8095int
8096main ()
8097{
c9a1864a 8098
770d76d7
PA
8099 ;
8100 return 0;
8101}
8102_ACEOF
8103if ac_fn_c_try_compile "$LINENO"; then :
8104 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
8105else
8106 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
c9a1864a
YQ
8107fi
8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c9a1864a 8109fi
770d76d7
PA
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
8111$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
8112 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
8113 UINT64_MAX_EQ_ULONG_MAX=1;
c9a1864a 8114 else
770d76d7
PA
8115 UINT64_MAX_EQ_ULONG_MAX=0;
8116 fi
c9a1864a 8117
c9a1864a 8118
770d76d7
PA
8119 else
8120 UINT64_MAX_EQ_ULONG_MAX=-1
8121 fi
c9a1864a
YQ
8122
8123
8124
c9a1864a 8125
770d76d7 8126if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c9a1864a
YQ
8127
8128
8129
8130
8131
8132
8133
c9a1864a 8134
770d76d7 8135 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
c9a1864a 8136
c9a1864a 8137
770d76d7
PA
8138 for ac_header in bp-sym.h
8139do :
8140 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
8141if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
8142 cat >>confdefs.h <<_ACEOF
8143#define HAVE_BP_SYM_H 1
8144_ACEOF
c9a1864a 8145
c9a1864a
YQ
8146fi
8147
770d76d7
PA
8148done
8149
c9a1864a
YQ
8150
8151fi
c9a1864a 8152
c9a1864a
YQ
8153
8154
c9a1864a
YQ
8155
8156
770d76d7 8157 GNULIB_MEMCHR=1
c9a1864a 8158
c9a1864a 8159
c9a1864a 8160
c9a1864a 8161
c9a1864a 8162
770d76d7 8163$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
c9a1864a
YQ
8164
8165
8166
8167
770d76d7
PA
8168
8169 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
8171$as_echo_n "checking whether memmem works in linear time... " >&6; }
8172if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
c9a1864a 8173 $as_echo_n "(cached) " >&6
770d76d7
PA
8174else
8175 if test "$cross_compiling" = yes; then :
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177/* end confdefs.h. */
8178
8179#include <features.h>
8180#ifdef __GNU_LIBRARY__
8181 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
8182 && !defined __UCLIBC__
8183 Lucky user
8184 #endif
8185#endif
8186#ifdef __CYGWIN__
8187 #include <cygwin/version.h>
8188 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
8189 Lucky user
8190 #endif
8191#endif
8192
8193_ACEOF
8194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195 $EGREP "Lucky user" >/dev/null 2>&1; then :
8196 gl_cv_func_memmem_works_fast=yes
8197else
8198 gl_cv_func_memmem_works_fast="guessing no"
8199fi
8200rm -f conftest*
8201
8202
c9a1864a
YQ
8203else
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h. */
8206
770d76d7
PA
8207#include <signal.h> /* for signal */
8208#include <string.h> /* for memmem */
8209#include <stdlib.h> /* for malloc */
8210#include <unistd.h> /* for alarm */
8211static void quit (int sig) { exit (sig + 128); }
c9a1864a 8212
c9a1864a
YQ
8213int
8214main ()
8215{
8216
770d76d7
PA
8217 int result = 0;
8218 size_t m = 1000000;
8219 char *haystack = (char *) malloc (2 * m + 1);
8220 char *needle = (char *) malloc (m + 1);
8221 /* Failure to compile this test due to missing alarm is okay,
8222 since all such platforms (mingw) also lack memmem. */
8223 signal (SIGALRM, quit);
8224 alarm (5);
8225 /* Check for quadratic performance. */
8226 if (haystack && needle)
8227 {
8228 memset (haystack, 'A', 2 * m);
8229 haystack[2 * m] = 'B';
8230 memset (needle, 'A', m);
8231 needle[m] = 'B';
8232 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
8233 result |= 1;
8234 }
8235 return result;
8236
c9a1864a
YQ
8237 ;
8238 return 0;
8239}
8240_ACEOF
770d76d7
PA
8241if ac_fn_c_try_run "$LINENO"; then :
8242 gl_cv_func_memmem_works_fast=yes
c9a1864a 8243else
770d76d7 8244 gl_cv_func_memmem_works_fast=no
c9a1864a 8245fi
770d76d7
PA
8246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8247 conftest.$ac_objext conftest.beam conftest.$ac_ext
8248fi
8249
c9a1864a
YQ
8250
8251fi
770d76d7
PA
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
8253$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
8254 if test "$gl_cv_func_memmem_works_fast" != yes; then
8255 REPLACE_MEMMEM=1
8256 fi
8257 fi
8258
8259if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
8260
8261
8262
8263
8264
8265
8266
8267
8268 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
8269
8270fi
8271
8272
8273
8274
8275 for ac_func in memmem
8276do :
8277 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8278if test "x$ac_cv_func_memmem" = x""yes; then :
8279 cat >>confdefs.h <<_ACEOF
8280#define HAVE_MEMMEM 1
c9a1864a
YQ
8281_ACEOF
8282
770d76d7
PA
8283fi
8284done
8285
8286 if test $ac_cv_func_memmem = yes; then
8287 HAVE_MEMMEM=1
8288 else
8289 HAVE_MEMMEM=0
8290 fi
8291
8292 :
8293
8294
8295
c9a1864a
YQ
8296
8297
770d76d7
PA
8298 if test $ac_cv_have_decl_memmem = no; then
8299 HAVE_DECL_MEMMEM=0
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8302$as_echo_n "checking whether memmem works... " >&6; }
8303if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305else
8306 if test "$cross_compiling" = yes; then :
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h. */
8309
8310#ifdef __GNU_LIBRARY__
8311 #include <features.h>
8312 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8313 || __GLIBC_MINOR__ > 12)) \
8314 || (__GLIBC__ > 2)) \
8315 || defined __UCLIBC__
8316 Lucky user
8317 #endif
8318#elif defined __CYGWIN__
8319 #include <cygwin/version.h>
8320 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8321 Lucky user
8322 #endif
8323#else
8324 Lucky user
8325#endif
8326
8327_ACEOF
8328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8329 $EGREP "Lucky user" >/dev/null 2>&1; then :
8330 gl_cv_func_memmem_works_always=yes
8331else
8332 gl_cv_func_memmem_works_always="guessing no"
8333fi
8334rm -f conftest*
c9a1864a
YQ
8335
8336
c9a1864a 8337else
770d76d7 8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a
YQ
8339/* end confdefs.h. */
8340
770d76d7
PA
8341#include <string.h> /* for memmem */
8342#define P "_EF_BF_BD"
8343#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8344#define NEEDLE P P P P P
c9a1864a 8345
c9a1864a
YQ
8346int
8347main ()
8348{
8349
770d76d7
PA
8350 int result = 0;
8351 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8352 result |= 1;
8353 /* Check for empty needle behavior. */
8354 {
8355 const char *haystack = "AAA";
8356 if (memmem (haystack, 3, NULL, 0) != haystack)
8357 result |= 2;
8358 }
8359 return result;
8360
c9a1864a
YQ
8361 ;
8362 return 0;
8363}
8364_ACEOF
770d76d7
PA
8365if ac_fn_c_try_run "$LINENO"; then :
8366 gl_cv_func_memmem_works_always=yes
8367else
8368 gl_cv_func_memmem_works_always=no
c9a1864a 8369fi
770d76d7
PA
8370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8371 conftest.$ac_objext conftest.beam conftest.$ac_ext
c9a1864a 8372fi
c9a1864a
YQ
8373
8374
770d76d7
PA
8375fi
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8377$as_echo "$gl_cv_func_memmem_works_always" >&6; }
8378 if test "$gl_cv_func_memmem_works_always" != yes; then
8379 REPLACE_MEMMEM=1
8380 fi
c9a1864a 8381 fi
770d76d7 8382 :
c9a1864a 8383
770d76d7 8384if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c9a1864a 8385
c9a1864a 8386
c9a1864a 8387
c9a1864a 8388
770d76d7
PA
8389
8390
8391
8392
8393 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
8394
c9a1864a 8395fi
c9a1864a 8396
c9a1864a
YQ
8397
8398
8399
c9a1864a 8400
770d76d7 8401 GNULIB_MEMMEM=1
c9a1864a 8402
c9a1864a
YQ
8403
8404
8405
c9a1864a 8406
770d76d7 8407$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
c9a1864a
YQ
8408
8409
8410
c9a1864a
YQ
8411
8412
8413
8414
770d76d7
PA
8415 STDDEF_H=
8416 if test $gt_cv_c_wchar_t = no; then
8417 HAVE_WCHAR_T=0
8418 STDDEF_H=stddef.h
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
8421$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
8422if test "${gl_cv_decl_null_works+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8424else
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h. */
8427#include <stddef.h>
8428 int test[2 * (sizeof NULL == sizeof (void *)) -1];
c9a1864a 8429
770d76d7
PA
8430int
8431main ()
8432{
c9a1864a 8433
770d76d7
PA
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438if ac_fn_c_try_compile "$LINENO"; then :
8439 gl_cv_decl_null_works=yes
8440else
8441 gl_cv_decl_null_works=no
8442fi
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444fi
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
8446$as_echo "$gl_cv_decl_null_works" >&6; }
8447 if test $gl_cv_decl_null_works = no; then
8448 REPLACE_NULL=1
8449 STDDEF_H=stddef.h
8450 fi
c9a1864a 8451
770d76d7
PA
8452 if test -n "$STDDEF_H"; then
8453 GL_GENERATE_STDDEF_H_TRUE=
8454 GL_GENERATE_STDDEF_H_FALSE='#'
8455else
8456 GL_GENERATE_STDDEF_H_TRUE='#'
8457 GL_GENERATE_STDDEF_H_FALSE=
8458fi
c9a1864a 8459
770d76d7 8460 if test -n "$STDDEF_H"; then
c9a1864a 8461
c9a1864a
YQ
8462
8463
8464
8465
8466
8467
8468
8469 if test $gl_cv_have_include_next = yes; then
770d76d7 8470 gl_cv_next_stddef_h='<'stddef.h'>'
c9a1864a 8471 else
770d76d7
PA
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
8473$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
8474if test "${gl_cv_next_stddef_h+set}" = set; then :
c9a1864a
YQ
8475 $as_echo_n "(cached) " >&6
8476else
8477
770d76d7 8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1864a 8479/* end confdefs.h. */
770d76d7
PA
8480#include <stddef.h>
8481
8482_ACEOF
8483 case "$host_os" in
8484 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8485 *) gl_absname_cpp="$ac_cpp" ;;
8486 esac
8487
8488 case "$host_os" in
8489 mingw*)
8490 gl_dirsep_regex='[/\\]'
8491 ;;
8492 *)
8493 gl_dirsep_regex='\/'
8494 ;;
8495 esac
8496 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8497
8498 gl_header_literal_regex=`echo 'stddef.h' \
8499 | sed -e "$gl_make_literal_regex_sed"`
8500 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8501 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8502 s|^/[^/]|//&|
8503 p
8504 q
8505 }'
8506 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8507 sed -n "$gl_absolute_header_sed"`'"'
8508
c9a1864a
YQ
8509
8510fi
770d76d7
PA
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
8512$as_echo "$gl_cv_next_stddef_h" >&6; }
c9a1864a 8513 fi
770d76d7 8514 NEXT_STDDEF_H=$gl_cv_next_stddef_h
c9a1864a
YQ
8515
8516 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
770d76d7 8518 gl_next_as_first_directive='<'stddef.h'>'
c9a1864a
YQ
8519 else
8520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
770d76d7 8521 gl_next_as_first_directive=$gl_cv_next_stddef_h
c9a1864a 8522 fi
770d76d7 8523 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
c9a1864a 8524
c9a1864a
YQ
8525
8526
8527
c9a1864a
YQ
8528 fi
8529
8530
8531
c9a1864a
YQ
8532
8533
c9a1864a
YQ
8534 # End of code from modules
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544 gltests_libdeps=
8545 gltests_ltlibdeps=
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555 gl_source_base='tests'
8556 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
8557
8558 gl_module_indicator_condition=$gltests_WITNESS
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568 LIBGNU_LIBDEPS="$gl_libdeps"
8569
8570 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
8571
8572
8573# GDBserver does not use automake, but gnulib does. This line lets
8574# us generate its Makefile.in.
8575am__api_version='1.11'
8576
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8578$as_echo_n "checking whether build environment is sane... " >&6; }
8579# Just in case
8580sleep 1
8581echo timestamp > conftest.file
8582# Reject unsafe characters in $srcdir or the absolute working directory
8583# name. Accept space and tab only in the latter.
8584am_lf='
8585'
8586case `pwd` in
8587 *[\\\"\#\$\&\'\`$am_lf]*)
8588 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
8589esac
8590case $srcdir in
8591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
8592 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
8593esac
8594
8595# Do `set' in a subshell so we don't clobber the current shell's
8596# arguments. Must try -L first in case configure is actually a
8597# symlink; some systems play weird games with the mod time of symlinks
8598# (eg FreeBSD returns the mod time of the symlink's containing
8599# directory).
8600if (
8601 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8602 if test "$*" = "X"; then
8603 # -L didn't work.
8604 set X `ls -t "$srcdir/configure" conftest.file`
8605 fi
8606 rm -f conftest.file
8607 if test "$*" != "X $srcdir/configure conftest.file" \
8608 && test "$*" != "X conftest.file $srcdir/configure"; then
8609
8610 # If neither matched, then we have a broken ls. This can happen
8611 # if, for instance, CONFIG_SHELL is bash and it inherits a
8612 # broken ls alias from the environment. This has actually
8613 # happened. Such a system could not be considered "sane".
8614 as_fn_error "ls -t appears to fail. Make sure there is not a broken
8615alias in your environment" "$LINENO" 5
8616 fi
8617
8618 test "$2" = conftest.file
8619 )
8620then
8621 # Ok.
8622 :
8623else
8624 as_fn_error "newly created file is older than distributed files!
8625Check your system clock" "$LINENO" 5
8626fi
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8628$as_echo "yes" >&6; }
8629# expand $ac_aux_dir to an absolute path
8630am_aux_dir=`cd $ac_aux_dir && pwd`
8631
8632if test x"${MISSING+set}" != xset; then
8633 case $am_aux_dir in
8634 *\ * | *\ *)
8635 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
8636 *)
8637 MISSING="\${SHELL} $am_aux_dir/missing" ;;
8638 esac
8639fi
8640# Use eval to expand $SHELL
8641if eval "$MISSING --run true"; then
8642 am_missing_run="$MISSING --run "
8643else
8644 am_missing_run=
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8646$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8647fi
8648
8649if test x"${install_sh}" != xset; then
8650 case $am_aux_dir in
8651 *\ * | *\ *)
8652 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
8653 *)
8654 install_sh="\${SHELL} $am_aux_dir/install-sh"
8655 esac
8656fi
8657
8658# Installed binaries are usually stripped using `strip' when the user
8659# run `make install-strip'. However `strip' might not be the right
8660# tool to use in cross-compilation environments, therefore Automake
8661# will honor the `STRIP' environment variable to overrule this program.
8662if test "$cross_compiling" != no; then
8663 if test -n "$ac_tool_prefix"; then
8664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8665set dummy ${ac_tool_prefix}strip; ac_word=$2
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667$as_echo_n "checking for $ac_word... " >&6; }
8668if test "${ac_cv_prog_STRIP+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8670else
8671 if test -n "$STRIP"; then
8672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8673else
8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685done
8686 done
8687IFS=$as_save_IFS
8688
8689fi
8690fi
8691STRIP=$ac_cv_prog_STRIP
8692if test -n "$STRIP"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8694$as_echo "$STRIP" >&6; }
8695else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697$as_echo "no" >&6; }
8698fi
8699
8700
8701fi
8702if test -z "$ac_cv_prog_STRIP"; then
8703 ac_ct_STRIP=$STRIP
8704 # Extract the first word of "strip", so it can be a program name with args.
8705set dummy strip; ac_word=$2
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707$as_echo_n "checking for $ac_word... " >&6; }
8708if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8710else
8711 if test -n "$ac_ct_STRIP"; then
8712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8713else
8714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715for as_dir in $PATH
8716do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721 ac_cv_prog_ac_ct_STRIP="strip"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8724 fi
8725done
8726 done
8727IFS=$as_save_IFS
8728
8729fi
8730fi
8731ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8732if test -n "$ac_ct_STRIP"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8734$as_echo "$ac_ct_STRIP" >&6; }
8735else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737$as_echo "no" >&6; }
8738fi
8739
8740 if test "x$ac_ct_STRIP" = x; then
8741 STRIP=":"
8742 else
8743 case $cross_compiling:$ac_tool_warned in
8744yes:)
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8747ac_tool_warned=yes ;;
8748esac
8749 STRIP=$ac_ct_STRIP
8750 fi
8751else
8752 STRIP="$ac_cv_prog_STRIP"
8753fi
8754
8755fi
8756INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8757
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8759$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
8760if test -z "$MKDIR_P"; then
8761 if test "${ac_cv_path_mkdir+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8763else
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8766do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_prog in mkdir gmkdir; do
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
8772 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
8773 'mkdir (GNU coreutils) '* | \
8774 'mkdir (coreutils) '* | \
8775 'mkdir (fileutils) '4.1*)
8776 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
8777 break 3;;
8778 esac
8779 done
8780 done
8781 done
8782IFS=$as_save_IFS
8783
8784fi
8785
8786 if test "${ac_cv_path_mkdir+set}" = set; then
8787 MKDIR_P="$ac_cv_path_mkdir -p"
8788 else
8789 # As a last resort, use the slow shell script. Don't cache a
8790 # value for MKDIR_P within a source directory, because that will
8791 # break other packages using the cache if that directory is
8792 # removed, or if the value is a relative name.
8793 test -d ./--version && rmdir ./--version
8794 MKDIR_P="$ac_install_sh -d"
8795 fi
8796fi
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8798$as_echo "$MKDIR_P" >&6; }
8799
8800
8801mkdir_p="$MKDIR_P"
8802case $mkdir_p in
8803 [\\/$]* | ?:[\\/]*) ;;
8804 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8805esac
8806
8807for ac_prog in gawk mawk nawk awk
8808do
8809 # Extract the first word of "$ac_prog", so it can be a program name with args.
8810set dummy $ac_prog; ac_word=$2
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812$as_echo_n "checking for $ac_word... " >&6; }
8813if test "${ac_cv_prog_AWK+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815else
8816 if test -n "$AWK"; then
8817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8818else
8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826 ac_cv_prog_AWK="$ac_prog"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830done
8831 done
8832IFS=$as_save_IFS
8833
8834fi
8835fi
8836AWK=$ac_cv_prog_AWK
8837if test -n "$AWK"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8839$as_echo "$AWK" >&6; }
8840else
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843fi
8844
8845
8846 test -n "$AWK" && break
8847done
8848
8849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8850$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8851set x ${MAKE-make}
8852ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8853if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8854 $as_echo_n "(cached) " >&6
8855else
8856 cat >conftest.make <<\_ACEOF
8857SHELL = /bin/sh
8858all:
8859 @echo '@@@%%%=$(MAKE)=@@@%%%'
8860_ACEOF
8861# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8862case `${MAKE-make} -f conftest.make 2>/dev/null` in
8863 *@@@%%%=?*=@@@%%%*)
8864 eval ac_cv_prog_make_${ac_make}_set=yes;;
8865 *)
8866 eval ac_cv_prog_make_${ac_make}_set=no;;
8867esac
8868rm -f conftest.make
8869fi
8870if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8872$as_echo "yes" >&6; }
8873 SET_MAKE=
8874else
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876$as_echo "no" >&6; }
8877 SET_MAKE="MAKE=${MAKE-make}"
8878fi
8879
8880rm -rf .tst 2>/dev/null
8881mkdir .tst 2>/dev/null
8882if test -d .tst; then
8883 am__leading_dot=.
8884else
8885 am__leading_dot=_
8886fi
8887rmdir .tst 2>/dev/null
8888
8889DEPDIR="${am__leading_dot}deps"
8890
8891ac_config_commands="$ac_config_commands depfiles"
8892
8893
8894am_make=${MAKE-make}
8895cat > confinc << 'END'
8896am__doit:
8897 @echo this is the am__doit target
8898.PHONY: am__doit
8899END
8900# If we don't find an include directive, just comment out the code.
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8902$as_echo_n "checking for style of include used by $am_make... " >&6; }
8903am__include="#"
8904am__quote=
8905_am_result=none
8906# First try GNU make style include.
8907echo "include confinc" > confmf
8908# Ignore all kinds of additional output from `make'.
8909case `$am_make -s -f confmf 2> /dev/null` in #(
8910*the\ am__doit\ target*)
8911 am__include=include
8912 am__quote=
8913 _am_result=GNU
8914 ;;
8915esac
8916# Now try BSD make style include.
8917if test "$am__include" = "#"; then
8918 echo '.include "confinc"' > confmf
8919 case `$am_make -s -f confmf 2> /dev/null` in #(
8920 *the\ am__doit\ target*)
8921 am__include=.include
8922 am__quote="\""
8923 _am_result=BSD
8924 ;;
8925 esac
8926fi
8927
8928
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8930$as_echo "$_am_result" >&6; }
8931rm -f confinc confmf
8932
8933# Check whether --enable-dependency-tracking was given.
8934if test "${enable_dependency_tracking+set}" = set; then :
8935 enableval=$enable_dependency_tracking;
fb1e4ffc
DJ
8936fi
8937
c9a1864a
YQ
8938if test "x$enable_dependency_tracking" != xno; then
8939 am_depcomp="$ac_aux_dir/depcomp"
8940 AMDEPBACKSLASH='\'
8941fi
8942 if test "x$enable_dependency_tracking" != xno; then
8943 AMDEP_TRUE=
8944 AMDEP_FALSE='#'
fa593d66 8945else
c9a1864a
YQ
8946 AMDEP_TRUE='#'
8947 AMDEP_FALSE=
8948fi
fa593d66 8949
fa593d66 8950
c9a1864a
YQ
8951if test "`cd $srcdir && pwd`" != "`pwd`"; then
8952 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8953 # is not polluted with repeated "-I."
8954 am__isrc=' -I$(srcdir)'
8955 # test to see if srcdir already configured
8956 if test -f $srcdir/config.status; then
8957 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8958 fi
fa593d66 8959fi
c9a1864a
YQ
8960
8961# test whether we have cygpath
8962if test -z "$CYGPATH_W"; then
8963 if (cygpath --version) >/dev/null 2>/dev/null; then
8964 CYGPATH_W='cygpath -w'
8965 else
8966 CYGPATH_W=echo
8967 fi
fa593d66 8968fi
fa593d66 8969
fa593d66 8970
c9a1864a
YQ
8971# Define the identity of the package.
8972 PACKAGE=gdbserver
8973 VERSION=UNUSED-VERSION
fa593d66 8974
fa593d66 8975
c9a1864a 8976# Some tools Automake needs.
fa593d66 8977
c9a1864a 8978ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
fa593d66 8979
03583c20 8980
c9a1864a 8981AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
03583c20
UW
8982
8983
c9a1864a 8984AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
03583c20 8985
03583c20 8986
c9a1864a 8987AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
03583c20 8988
03583c20 8989
c9a1864a 8990MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
03583c20 8991
c9a1864a
YQ
8992# We need awk for the "check" target. The system "awk" is bad on
8993# some platforms.
8994# Always define AMTAR for backward compatibility.
03583c20 8995
c9a1864a 8996AMTAR=${AMTAR-"${am_missing_run}tar"}
c2a66c29 8997
c9a1864a 8998am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
fa593d66 8999
c2a66c29 9000
c9a1864a
YQ
9001
9002
9003depcc="$CC" am_compiler_list=
9004
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9006$as_echo_n "checking dependency style of $depcc... " >&6; }
9007if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
c2a66c29 9009else
c9a1864a
YQ
9010 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9011 # We make a subdir and do the tests there. Otherwise we can end up
9012 # making bogus files that we don't know about and never remove. For
9013 # instance it was reported that on HP-UX the gcc test will end up
9014 # making a dummy file named `D' -- because `-MD' means `put the output
9015 # in D'.
9016 mkdir conftest.dir
9017 # Copy depcomp to subdir because otherwise we won't find it if we're
9018 # using a relative directory.
9019 cp "$am_depcomp" conftest.dir
9020 cd conftest.dir
9021 # We will build objects and dependencies in a subdirectory because
9022 # it helps to detect inapplicable dependency modes. For instance
9023 # both Tru64's cc and ICC support -MD to output dependencies as a
9024 # side effect of compilation, but ICC will put the dependencies in
9025 # the current directory while Tru64 will put them in the object
9026 # directory.
9027 mkdir sub
9028
9029 am_cv_CC_dependencies_compiler_type=none
9030 if test "$am_compiler_list" = ""; then
9031 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9032 fi
9033 am__universal=false
9034 case " $depcc " in #(
9035 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9036 esac
c2a66c29 9037
c9a1864a
YQ
9038 for depmode in $am_compiler_list; do
9039 # Setup a source with many dependencies, because some compilers
9040 # like to wrap large dependency lists on column 80 (with \), and
9041 # we should not choose a depcomp mode which is confused by this.
9042 #
9043 # We need to recreate these files for each test, as the compiler may
9044 # overwrite some of them when testing with obscure command lines.
9045 # This happens at least with the AIX C compiler.
9046 : > sub/conftest.c
9047 for i in 1 2 3 4 5 6; do
9048 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9049 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9050 # Solaris 8's {/usr,}/bin/sh.
9051 touch sub/conftst$i.h
9052 done
9053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9054
9055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9056 # mode. It turns out that the SunPro C++ compiler does not properly
9057 # handle `-M -o', and we need to detect this. Also, some Intel
9058 # versions had trouble with output in subdirs
9059 am__obj=sub/conftest.${OBJEXT-o}
9060 am__minus_obj="-o $am__obj"
9061 case $depmode in
9062 gcc)
9063 # This depmode causes a compiler race in universal mode.
9064 test "$am__universal" = false || continue
9065 ;;
9066 nosideeffect)
9067 # after this tag, mechanisms are not by side-effect, so they'll
9068 # only be used when explicitly requested
9069 if test "x$enable_dependency_tracking" = xyes; then
9070 continue
9071 else
9072 break
9073 fi
9074 ;;
9075 msvisualcpp | msvcmsys)
9076 # This compiler won't grok `-c -o', but also, the minuso test has
9077 # not run yet. These depmodes are late enough in the game, and
9078 # so weak that their functioning should not be impacted.
9079 am__obj=conftest.${OBJEXT-o}
9080 am__minus_obj=
9081 ;;
9082 none) break ;;
9083 esac
9084 if depmode=$depmode \
9085 source=sub/conftest.c object=$am__obj \
9086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9087 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9088 >/dev/null 2>conftest.err &&
9089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9091 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9093 # icc doesn't choke on unknown options, it will just issue warnings
9094 # or remarks (even with -Werror). So we grep stderr for any message
9095 # that says an option was ignored or not supported.
9096 # When given -MP, icc 7.0 and 7.1 complain thusly:
9097 # icc: Command line warning: ignoring option '-M'; no argument required
9098 # The diagnosis changed in icc 8.0:
9099 # icc: Command line remark: option '-MP' not supported
9100 if (grep 'ignoring option' conftest.err ||
9101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9102 am_cv_CC_dependencies_compiler_type=$depmode
9103 break
9104 fi
9105 fi
9106 done
c2a66c29 9107
c9a1864a
YQ
9108 cd ..
9109 rm -rf conftest.dir
9110else
9111 am_cv_CC_dependencies_compiler_type=none
fa593d66
PA
9112fi
9113
c9a1864a
YQ
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9116$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9117CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
fa593d66 9118
c9a1864a
YQ
9119 if
9120 test "x$enable_dependency_tracking" != xno \
9121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9122 am__fastdepCC_TRUE=
9123 am__fastdepCC_FALSE='#'
9124else
9125 am__fastdepCC_TRUE='#'
9126 am__fastdepCC_FALSE=
9127fi
fa593d66 9128
0d62e5e8 9129
d6e9fb05
JK
9130
9131
c9a1864a
YQ
9132GNULIB_STDINT_H=
9133if test x"$STDINT_H" != x; then
9134 GNULIB_STDINT_H=gnulib/$STDINT_H
9135fi
d6e9fb05 9136
fb1e4ffc 9137
c9a1864a 9138ac_config_files="$ac_config_files Makefile gnulib/Makefile:${srcdir}/../gnulib/Makefile.in"
81ecdfbb
RW
9139
9140ac_config_commands="$ac_config_commands default"
9141
bec39cab 9142cat >confcache <<\_ACEOF
d6e9fb05
JK
9143# This file is a shell script that caches the results of configure
9144# tests run on this system so they can be shared between configure
bec39cab
AC
9145# scripts and configure runs, see configure's option --config-cache.
9146# It is not useful on other systems. If it contains results you don't
9147# want to keep, you may remove or edit it.
d6e9fb05 9148#
bec39cab
AC
9149# config.status only pays attention to the cache file if you give it
9150# the --recheck option to rerun configure.
d6e9fb05 9151#
bec39cab
AC
9152# `ac_cv_env_foo' variables (set or unset) will be overridden when
9153# loading this file, other *unset* `ac_cv_foo' will be assigned the
9154# following values.
9155
9156_ACEOF
9157
d6e9fb05
JK
9158# The following way of writing the cache mishandles newlines in values,
9159# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 9160# So, we kill variables containing newlines.
d6e9fb05
JK
9161# Ultrix sh set writes to stderr and can't be redirected directly,
9162# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
9163(
9164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9165 eval ac_val=\$$ac_var
9166 case $ac_val in #(
9167 *${as_nl}*)
9168 case $ac_var in #(
9169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9171 esac
9172 case $ac_var in #(
9173 _ | IFS | as_nl) ;; #(
9174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9175 *) { eval $ac_var=; unset $ac_var;} ;;
9176 esac ;;
9177 esac
9178 done
9179
bec39cab 9180 (set) 2>&1 |
81ecdfbb
RW
9181 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9182 *${as_nl}ac_space=\ *)
9183 # `set' does not quote correctly, so add quotes: double-quote
9184 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
9185 sed -n \
9186 "s/'/'\\\\''/g;
9187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 9188 ;; #(
bec39cab
AC
9189 *)
9190 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 9191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 9192 ;;
81ecdfbb
RW
9193 esac |
9194 sort
9195) |
bec39cab 9196 sed '
81ecdfbb 9197 /^ac_cv_env_/b end
bec39cab 9198 t clear
81ecdfbb 9199 :clear
bec39cab
AC
9200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9201 t end
81ecdfbb
RW
9202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9203 :end' >>confcache
9204if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9205 if test -w "$cache_file"; then
9206 test "x$cache_file" != "x/dev/null" &&
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9208$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab 9209 cat confcache >$cache_file
d6e9fb05 9210 else
81ecdfbb
RW
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9212$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d6e9fb05
JK
9213 fi
9214fi
9215rm -f confcache
9216
d6e9fb05
JK
9217test "x$prefix" = xNONE && prefix=$ac_default_prefix
9218# Let make expand exec_prefix.
9219test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9220
84563040 9221DEFS=-DHAVE_CONFIG_H
d6e9fb05 9222
bec39cab
AC
9223ac_libobjs=
9224ac_ltlibobjs=
9225for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9226 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
9227 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9228 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9229 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9230 # will be set to the directory where LIBOBJS objects are built.
9231 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9232 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
9233done
9234LIBOBJS=$ac_libobjs
d6e9fb05 9235
bec39cab
AC
9236LTLIBOBJS=$ac_ltlibobjs
9237
9238
c9a1864a
YQ
9239if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9240 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
9241Usually this means the macro was only invoked conditionally." "$LINENO" 5
9242fi
9243if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
9244 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
9245Usually this means the macro was only invoked conditionally." "$LINENO" 5
770d76d7
PA
9246fi
9247if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
9248 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
9249Usually this means the macro was only invoked conditionally." "$LINENO" 5
9250fi
9251if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
9252 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
9253Usually this means the macro was only invoked conditionally." "$LINENO" 5
c9a1864a
YQ
9254fi
9255
9256 gl_libobjs=
9257 gl_ltlibobjs=
9258 if test -n "$gl_LIBOBJS"; then
9259 # Remove the extension.
9260 sed_drop_objext='s/\.o$//;s/\.obj$//'
9261 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
9262 gl_libobjs="$gl_libobjs $i.$ac_objext"
9263 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
9264 done
9265 fi
9266 gl_LIBOBJS=$gl_libobjs
9267
9268 gl_LTLIBOBJS=$gl_ltlibobjs
9269
9270
9271
9272 gltests_libobjs=
9273 gltests_ltlibobjs=
9274 if test -n "$gltests_LIBOBJS"; then
9275 # Remove the extension.
9276 sed_drop_objext='s/\.o$//;s/\.obj$//'
9277 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
9278 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
9279 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
9280 done
9281 fi
9282 gltests_LIBOBJS=$gltests_libobjs
9283
9284 gltests_LTLIBOBJS=$gltests_ltlibobjs
9285
9286
9287if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9288 as_fn_error "conditional \"AMDEP\" was never defined.
9289Usually this means the macro was only invoked conditionally." "$LINENO" 5
9290fi
9291if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9292 as_fn_error "conditional \"am__fastdepCC\" was never defined.
9293Usually this means the macro was only invoked conditionally." "$LINENO" 5
9294fi
9295 if test -n "$EXEEXT"; then
9296 am__EXEEXT_TRUE=
9297 am__EXEEXT_FALSE='#'
9298else
9299 am__EXEEXT_TRUE='#'
9300 am__EXEEXT_FALSE=
9301fi
9302
bec39cab
AC
9303
9304: ${CONFIG_STATUS=./config.status}
81ecdfbb 9305ac_write_fail=0
bec39cab
AC
9306ac_clean_files_save=$ac_clean_files
9307ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9309$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9310as_write_fail=0
9311cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
9312#! $SHELL
9313# Generated by $as_me.
d6e9fb05 9314# Run this file to recreate the current configuration.
d6e9fb05 9315# Compiler output produced by configure, useful for debugging
bec39cab
AC
9316# configure, is in config.log if it exists.
9317
9318debug=false
9319ac_cs_recheck=false
9320ac_cs_silent=false
bec39cab 9321
81ecdfbb
RW
9322SHELL=\${CONFIG_SHELL-$SHELL}
9323export SHELL
9324_ASEOF
9325cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9326## -------------------- ##
9327## M4sh Initialization. ##
9328## -------------------- ##
9329
9330# Be more Bourne compatible
9331DUALCASE=1; export DUALCASE # for MKS sh
9332if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
9333 emulate sh
9334 NULLCMD=:
81ecdfbb 9335 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
9336 # is contrary to our usage. Disable this feature.
9337 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
9338 setopt NO_GLOB_SUBST
9339else
9340 case `(set -o) 2>/dev/null` in #(
9341 *posix*) :
9342 set -o posix ;; #(
9343 *) :
9344 ;;
9345esac
bec39cab 9346fi
d6e9fb05 9347
81ecdfbb
RW
9348
9349as_nl='
9350'
9351export as_nl
9352# Printing a long string crashes Solaris 7 /usr/bin/printf.
9353as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9355as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9356# Prefer a ksh shell builtin over an external printf program on Solaris,
9357# but without wasting forks for bash or zsh.
9358if test -z "$BASH_VERSION$ZSH_VERSION" \
9359 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9360 as_echo='print -r --'
9361 as_echo_n='print -rn --'
9362elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9363 as_echo='printf %s\n'
9364 as_echo_n='printf %s'
bec39cab 9365else
81ecdfbb
RW
9366 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9367 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9368 as_echo_n='/usr/ucb/echo -n'
9369 else
9370 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9371 as_echo_n_body='eval
9372 arg=$1;
9373 case $arg in #(
9374 *"$as_nl"*)
9375 expr "X$arg" : "X\\(.*\\)$as_nl";
9376 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9377 esac;
9378 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9379 '
9380 export as_echo_n_body
9381 as_echo_n='sh -c $as_echo_n_body as_echo'
9382 fi
9383 export as_echo_body
9384 as_echo='sh -c $as_echo_body as_echo'
9385fi
9386
9387# The user is always right.
9388if test "${PATH_SEPARATOR+set}" != set; then
9389 PATH_SEPARATOR=:
9390 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9391 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9392 PATH_SEPARATOR=';'
9393 }
bec39cab
AC
9394fi
9395
9396
81ecdfbb
RW
9397# IFS
9398# We need space, tab and new line, in precisely that order. Quoting is
9399# there to prevent editors from complaining about space-tab.
9400# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9401# splitting by setting IFS to empty value.)
9402IFS=" "" $as_nl"
9403
9404# Find who we are. Look in the path if we contain no directory separator.
9405case $0 in #((
9406 *[\\/]* ) as_myself=$0 ;;
9407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408for as_dir in $PATH
9409do
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9413 done
9414IFS=$as_save_IFS
9415
9416 ;;
9417esac
9418# We did not find ourselves, most probably we were run as `sh COMMAND'
9419# in which case we are not to be found in the path.
9420if test "x$as_myself" = x; then
9421 as_myself=$0
9422fi
9423if test ! -f "$as_myself"; then
9424 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9425 exit 1
9426fi
9427
9428# Unset variables that we do not need and which cause bugs (e.g. in
9429# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9430# suppresses any "Segmentation fault" message there. '((' could
9431# trigger a bug in pdksh 5.2.14.
9432for as_var in BASH_ENV ENV MAIL MAILPATH
9433do eval test x\${$as_var+set} = xset \
9434 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9435done
bec39cab
AC
9436PS1='$ '
9437PS2='> '
9438PS4='+ '
9439
9440# NLS nuisances.
81ecdfbb
RW
9441LC_ALL=C
9442export LC_ALL
9443LANGUAGE=C
9444export LANGUAGE
9445
9446# CDPATH.
9447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9448
9449
9450# as_fn_error ERROR [LINENO LOG_FD]
9451# ---------------------------------
9452# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9453# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9454# script with status $?, using 1 if that was 0.
9455as_fn_error ()
9456{
9457 as_status=$?; test $as_status -eq 0 && as_status=1
9458 if test "$3"; then
9459 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9460 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bec39cab 9461 fi
81ecdfbb
RW
9462 $as_echo "$as_me: error: $1" >&2
9463 as_fn_exit $as_status
9464} # as_fn_error
9465
9466
9467# as_fn_set_status STATUS
9468# -----------------------
9469# Set $? to STATUS, without forking.
9470as_fn_set_status ()
9471{
9472 return $1
9473} # as_fn_set_status
9474
9475# as_fn_exit STATUS
9476# -----------------
9477# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9478as_fn_exit ()
9479{
9480 set +e
9481 as_fn_set_status $1
9482 exit $1
9483} # as_fn_exit
9484
9485# as_fn_unset VAR
9486# ---------------
9487# Portably unset VAR.
9488as_fn_unset ()
9489{
9490 { eval $1=; unset $1;}
9491}
9492as_unset=as_fn_unset
9493# as_fn_append VAR VALUE
9494# ----------------------
9495# Append the text in VALUE to the end of the definition contained in VAR. Take
9496# advantage of any shell optimizations that allow amortized linear growth over
9497# repeated appends, instead of the typical quadratic growth present in naive
9498# implementations.
9499if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9500 eval 'as_fn_append ()
9501 {
9502 eval $1+=\$2
9503 }'
9504else
9505 as_fn_append ()
9506 {
9507 eval $1=\$$1\$2
9508 }
9509fi # as_fn_append
9510
9511# as_fn_arith ARG...
9512# ------------------
9513# Perform arithmetic evaluation on the ARGs, and store the result in the
9514# global $as_val. Take advantage of shells that can avoid forks. The arguments
9515# must be portable across $(()) and expr.
9516if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9517 eval 'as_fn_arith ()
9518 {
9519 as_val=$(( $* ))
9520 }'
9521else
9522 as_fn_arith ()
9523 {
9524 as_val=`expr "$@" || test $? -eq 1`
9525 }
9526fi # as_fn_arith
9527
d6e9fb05 9528
81ecdfbb
RW
9529if expr a : '\(a\)' >/dev/null 2>&1 &&
9530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
9531 as_expr=expr
9532else
9533 as_expr=false
9534fi
d6e9fb05 9535
81ecdfbb 9536if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
9537 as_basename=basename
9538else
9539 as_basename=false
9540fi
d6e9fb05 9541
81ecdfbb
RW
9542if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9543 as_dirname=dirname
9544else
9545 as_dirname=false
9546fi
d6e9fb05 9547
81ecdfbb 9548as_me=`$as_basename -- "$0" ||
bec39cab
AC
9549$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9550 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
9551 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9552$as_echo X/"$0" |
9553 sed '/^.*\/\([^/][^/]*\)\/*$/{
9554 s//\1/
9555 q
9556 }
9557 /^X\/\(\/\/\)$/{
9558 s//\1/
9559 q
9560 }
9561 /^X\/\(\/\).*/{
9562 s//\1/
9563 q
9564 }
9565 s/.*/./; q'`
bec39cab 9566
dae5f5cf
DJ
9567# Avoid depending upon Character Ranges.
9568as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9569as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9570as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9571as_cr_digits='0123456789'
9572as_cr_alnum=$as_cr_Letters$as_cr_digits
9573
81ecdfbb
RW
9574ECHO_C= ECHO_N= ECHO_T=
9575case `echo -n x` in #(((((
9576-n*)
9577 case `echo 'xy\c'` in
9578 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9579 xy) ECHO_C='\c';;
9580 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9581 ECHO_T=' ';;
9582 esac;;
9583*)
9584 ECHO_N='-n';;
bec39cab
AC
9585esac
9586
81ecdfbb
RW
9587rm -f conf$$ conf$$.exe conf$$.file
9588if test -d conf$$.dir; then
9589 rm -f conf$$.dir/conf$$.file
bec39cab 9590else
81ecdfbb
RW
9591 rm -f conf$$.dir
9592 mkdir conf$$.dir 2>/dev/null
bec39cab 9593fi
81ecdfbb
RW
9594if (echo >conf$$.file) 2>/dev/null; then
9595 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 9596 as_ln_s='ln -s'
81ecdfbb
RW
9597 # ... but there are two gotchas:
9598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9600 # In both cases, we have to default to `cp -p'.
9601 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9602 as_ln_s='cp -p'
9603 elif ln conf$$.file conf$$ 2>/dev/null; then
9604 as_ln_s=ln
9605 else
9606 as_ln_s='cp -p'
dae5f5cf 9607 fi
bec39cab
AC
9608else
9609 as_ln_s='cp -p'
9610fi
81ecdfbb
RW
9611rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9612rmdir conf$$.dir 2>/dev/null
9613
9614
9615# as_fn_mkdir_p
9616# -------------
9617# Create "$as_dir" as a directory, including parents if necessary.
9618as_fn_mkdir_p ()
9619{
9620
9621 case $as_dir in #(
9622 -*) as_dir=./$as_dir;;
9623 esac
9624 test -d "$as_dir" || eval $as_mkdir_p || {
9625 as_dirs=
9626 while :; do
9627 case $as_dir in #(
9628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9629 *) as_qdir=$as_dir;;
9630 esac
9631 as_dirs="'$as_qdir' $as_dirs"
9632 as_dir=`$as_dirname -- "$as_dir" ||
9633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9634 X"$as_dir" : 'X\(//\)[^/]' \| \
9635 X"$as_dir" : 'X\(//\)$' \| \
9636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9637$as_echo X"$as_dir" |
9638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9639 s//\1/
9640 q
9641 }
9642 /^X\(\/\/\)[^/].*/{
9643 s//\1/
9644 q
9645 }
9646 /^X\(\/\/\)$/{
9647 s//\1/
9648 q
9649 }
9650 /^X\(\/\).*/{
9651 s//\1/
9652 q
9653 }
9654 s/.*/./; q'`
9655 test -d "$as_dir" && break
9656 done
9657 test -z "$as_dirs" || eval "mkdir $as_dirs"
9658 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
bec39cab 9659
81ecdfbb
RW
9660
9661} # as_fn_mkdir_p
bec39cab 9662if mkdir -p . 2>/dev/null; then
81ecdfbb 9663 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
9664else
9665 test -d ./-p && rmdir ./-p
9666 as_mkdir_p=false
9667fi
9668
81ecdfbb
RW
9669if test -x / >/dev/null 2>&1; then
9670 as_test_x='test -x'
9671else
9672 if ls -dL / >/dev/null 2>&1; then
9673 as_ls_L_option=L
9674 else
9675 as_ls_L_option=
9676 fi
9677 as_test_x='
9678 eval sh -c '\''
9679 if test -d "$1"; then
9680 test -d "$1/.";
9681 else
9682 case $1 in #(
9683 -*)set "./$1";;
9684 esac;
9685 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9686 ???[sx]*):;;*)false;;esac;fi
9687 '\'' sh
9688 '
9689fi
9690as_executable_p=$as_test_x
bec39cab
AC
9691
9692# Sed expression to map a string onto a valid CPP name.
9693as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9694
9695# Sed expression to map a string onto a valid variable name.
9696as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9697
9698
bec39cab 9699exec 6>&1
81ecdfbb
RW
9700## ----------------------------------- ##
9701## Main body of $CONFIG_STATUS script. ##
9702## ----------------------------------- ##
9703_ASEOF
9704test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9705
9706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9707# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 9708# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
9709# values after options handling.
9710ac_log="
bec39cab 9711This file was extended by $as_me, which was
81ecdfbb 9712generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
9713
9714 CONFIG_FILES = $CONFIG_FILES
9715 CONFIG_HEADERS = $CONFIG_HEADERS
9716 CONFIG_LINKS = $CONFIG_LINKS
9717 CONFIG_COMMANDS = $CONFIG_COMMANDS
9718 $ $0 $@
9719
81ecdfbb
RW
9720on `(hostname || uname -n) 2>/dev/null | sed 1q`
9721"
9722
bec39cab
AC
9723_ACEOF
9724
81ecdfbb
RW
9725case $ac_config_files in *"
9726"*) set x $ac_config_files; shift; ac_config_files=$*;;
9727esac
bec39cab 9728
81ecdfbb
RW
9729case $ac_config_headers in *"
9730"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9731esac
dae5f5cf 9732
dae5f5cf 9733
81ecdfbb
RW
9734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9735# Files that config.status was made for.
9736config_files="$ac_config_files"
9737config_headers="$ac_config_headers"
9738config_commands="$ac_config_commands"
bec39cab 9739
81ecdfbb 9740_ACEOF
dae5f5cf 9741
81ecdfbb 9742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 9743ac_cs_usage="\
81ecdfbb
RW
9744\`$as_me' instantiates files and other configuration actions
9745from templates according to the current configuration. Unless the files
9746and actions are specified as TAGs, all are instantiated by default.
bec39cab 9747
81ecdfbb 9748Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
9749
9750 -h, --help print this help, then exit
81ecdfbb
RW
9751 -V, --version print version number and configuration settings, then exit
9752 -q, --quiet, --silent
9753 do not print progress messages
bec39cab
AC
9754 -d, --debug don't remove temporary files
9755 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
9756 --file=FILE[:TEMPLATE]
9757 instantiate the configuration file FILE
9758 --header=FILE[:TEMPLATE]
9759 instantiate the configuration header FILE
bec39cab
AC
9760
9761Configuration files:
9762$config_files
9763
9764Configuration headers:
9765$config_headers
9766
9767Configuration commands:
9768$config_commands
9769
81ecdfbb 9770Report bugs to the package provider."
dae5f5cf 9771
81ecdfbb
RW
9772_ACEOF
9773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
9774ac_cs_version="\\
9775config.status
81ecdfbb
RW
9776configured by $0, generated by GNU Autoconf 2.64,
9777 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 9778
81ecdfbb 9779Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
9780This config.status script is free software; the Free Software Foundation
9781gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
9782
9783ac_pwd='$ac_pwd'
9784srcdir='$srcdir'
9785INSTALL='$INSTALL'
c9a1864a
YQ
9786MKDIR_P='$MKDIR_P'
9787AWK='$AWK'
81ecdfbb 9788test -n "\$AWK" || AWK=awk
bec39cab
AC
9789_ACEOF
9790
81ecdfbb
RW
9791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9792# The default lists apply if the user does not specify any file.
bec39cab
AC
9793ac_need_defaults=:
9794while test $# != 0
9795do
9796 case $1 in
9797 --*=*)
81ecdfbb
RW
9798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
9800 ac_shift=:
9801 ;;
81ecdfbb 9802 *)
bec39cab
AC
9803 ac_option=$1
9804 ac_optarg=$2
9805 ac_shift=shift
9806 ;;
bec39cab
AC
9807 esac
9808
9809 case $ac_option in
9810 # Handling of the options.
bec39cab
AC
9811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9812 ac_cs_recheck=: ;;
81ecdfbb
RW
9813 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9814 $as_echo "$ac_cs_version"; exit ;;
9815 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
9816 debug=: ;;
9817 --file | --fil | --fi | --f )
9818 $ac_shift
81ecdfbb
RW
9819 case $ac_optarg in
9820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9821 esac
9822 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab
AC
9823 ac_need_defaults=false;;
9824 --header | --heade | --head | --hea )
9825 $ac_shift
81ecdfbb
RW
9826 case $ac_optarg in
9827 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9828 esac
9829 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bec39cab 9830 ac_need_defaults=false;;
81ecdfbb
RW
9831 --he | --h)
9832 # Conflict between --help and --header
9833 as_fn_error "ambiguous option: \`$1'
9834Try \`$0 --help' for more information.";;
9835 --help | --hel | -h )
9836 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
9837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9839 ac_cs_silent=: ;;
9840
9841 # This is an error.
81ecdfbb
RW
9842 -*) as_fn_error "unrecognized option: \`$1'
9843Try \`$0 --help' for more information." ;;
bec39cab 9844
81ecdfbb
RW
9845 *) as_fn_append ac_config_targets " $1"
9846 ac_need_defaults=false ;;
bec39cab
AC
9847
9848 esac
9849 shift
d6e9fb05 9850done
bec39cab
AC
9851
9852ac_configure_extra_args=
9853
9854if $ac_cs_silent; then
9855 exec 6>/dev/null
9856 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 9857fi
d6e9fb05 9858
bec39cab 9859_ACEOF
81ecdfbb 9860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 9861if \$ac_cs_recheck; then
81ecdfbb
RW
9862 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9863 shift
9864 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9865 CONFIG_SHELL='$SHELL'
9866 export CONFIG_SHELL
9867 exec "\$@"
bec39cab 9868fi
d6e9fb05 9869
bec39cab 9870_ACEOF
81ecdfbb
RW
9871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9872exec 5>>config.log
9873{
9874 echo
9875 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9876## Running $as_me. ##
9877_ASBOX
9878 $as_echo "$ac_log"
9879} >&5
bec39cab 9880
81ecdfbb
RW
9881_ACEOF
9882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c9a1864a
YQ
9883#
9884# INIT-COMMANDS
9885#
9886AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9887
81ecdfbb 9888_ACEOF
bec39cab 9889
81ecdfbb 9890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80864fb 9891
81ecdfbb 9892# Handling of arguments.
bec39cab
AC
9893for ac_config_target in $ac_config_targets
9894do
81ecdfbb
RW
9895 case $ac_config_target in
9896 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
c9a1864a 9897 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 9898 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
c9a1864a 9899 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile:${srcdir}/../gnulib/Makefile.in" ;;
81ecdfbb
RW
9900 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9901
9902 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d6e9fb05 9903 esac
bec39cab
AC
9904done
9905
81ecdfbb 9906
bec39cab
AC
9907# If the user did not use the arguments to specify the items to instantiate,
9908# then the envvar interface is used. Set only those that are not.
9909# We use the long form for the default assignment because of an extremely
9910# bizarre bug on SunOS 4.1.3.
9911if $ac_need_defaults; then
9912 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9913 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9914 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9915fi
d6e9fb05 9916
bec39cab 9917# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 9918# simply because there is no reason against having it here, and in addition,
bec39cab 9919# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
9920# Hook for its removal unless debugging.
9921# Note that there is a small window in which the directory will not be cleaned:
9922# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
9923$debug ||
9924{
81ecdfbb
RW
9925 tmp=
9926 trap 'exit_status=$?
9927 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9928' 0
9929 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 9930}
bec39cab
AC
9931# Create a (secure) tmp directory for tmp files.
9932
9933{
81ecdfbb 9934 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
9935 test -n "$tmp" && test -d "$tmp"
9936} ||
9937{
81ecdfbb
RW
9938 tmp=./conf$$-$RANDOM
9939 (umask 077 && mkdir "$tmp")
9940} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9941
9942# Set up the scripts for CONFIG_FILES section.
9943# No need to generate them if there are no CONFIG_FILES.
9944# This happens for instance with `./config.status config.h'.
9945if test -n "$CONFIG_FILES"; then
9946
9947
9948ac_cr=`echo X | tr X '\015'`
9949# On cygwin, bash can eat \r inside `` if the user requested igncr.
9950# But we know of no other shell where ac_cr would be empty at this
9951# point, so we can use a bashism as a fallback.
9952if test "x$ac_cr" = x; then
9953 eval ac_cr=\$\'\\r\'
9954fi
9955ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9956if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9957 ac_cs_awk_cr='\r'
9958else
9959 ac_cs_awk_cr=$ac_cr
9960fi
9961
9962echo 'BEGIN {' >"$tmp/subs1.awk" &&
9963_ACEOF
9964
9965
9966{
9967 echo "cat >conf$$subs.awk <<_ACEOF" &&
9968 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9969 echo "_ACEOF"
9970} >conf$$subs.sh ||
9971 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9972ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9973ac_delim='%!_!# '
9974for ac_last_try in false false false false false :; do
9975 . ./conf$$subs.sh ||
9976 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9977
9978 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9979 if test $ac_delim_n = $ac_delim_num; then
9980 break
9981 elif $ac_last_try; then
9982 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9983 else
9984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9985 fi
9986done
9987rm -f conf$$subs.sh
9988
9989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9990cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9991_ACEOF
9992sed -n '
9993h
9994s/^/S["/; s/!.*/"]=/
9995p
9996g
9997s/^[^!]*!//
9998:repl
9999t repl
10000s/'"$ac_delim"'$//
10001t delim
10002:nl
10003h
10004s/\(.\{148\}\).*/\1/
10005t more1
10006s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10007p
10008n
10009b repl
10010:more1
10011s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10012p
10013g
10014s/.\{148\}//
10015t nl
10016:delim
10017h
10018s/\(.\{148\}\).*/\1/
10019t more2
10020s/["\\]/\\&/g; s/^/"/; s/$/"/
10021p
10022b
10023:more2
10024s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10025p
10026g
10027s/.\{148\}//
10028t delim
10029' <conf$$subs.awk | sed '
10030/^[^""]/{
10031 N
10032 s/\n//
10033}
10034' >>$CONFIG_STATUS || ac_write_fail=1
10035rm -f conf$$subs.awk
10036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10037_ACAWK
10038cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10039 for (key in S) S_is_set[key] = 1
10040 FS = "\a"
10041
10042}
bec39cab 10043{
81ecdfbb
RW
10044 line = $ 0
10045 nfields = split(line, field, "@")
10046 substed = 0
10047 len = length(field[1])
10048 for (i = 2; i < nfields; i++) {
10049 key = field[i]
10050 keylen = length(key)
10051 if (S_is_set[key]) {
10052 value = S[key]
10053 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10054 len += length(value) + length(field[++i])
10055 substed = 1
10056 } else
10057 len += 1 + keylen
10058 }
10059
10060 print line
bec39cab
AC
10061}
10062
81ecdfbb
RW
10063_ACAWK
10064_ACEOF
10065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10066if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10067 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10068else
10069 cat
10070fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10071 || as_fn_error "could not setup config files machinery" "$LINENO" 5
dae5f5cf
DJ
10072_ACEOF
10073
81ecdfbb
RW
10074# VPATH may cause trouble with some makes, so we remove $(srcdir),
10075# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10076# trailing colons and then remove the whole line if VPATH becomes empty
10077# (actually we leave an empty line to preserve line numbers).
10078if test "x$srcdir" = x.; then
10079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10080s/:*\$(srcdir):*/:/
10081s/:*\${srcdir}:*/:/
10082s/:*@srcdir@:*/:/
10083s/^\([^=]*=[ ]*\):*/\1/
10084s/:*$//
10085s/^[^=]*=[ ]*$//
10086}'
10087fi
bec39cab 10088
81ecdfbb
RW
10089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10090fi # test -n "$CONFIG_FILES"
bec39cab 10091
81ecdfbb
RW
10092# Set up the scripts for CONFIG_HEADERS section.
10093# No need to generate them if there are no CONFIG_HEADERS.
10094# This happens for instance with `./config.status Makefile'.
10095if test -n "$CONFIG_HEADERS"; then
10096cat >"$tmp/defines.awk" <<\_ACAWK ||
10097BEGIN {
b80864fb
DJ
10098_ACEOF
10099
81ecdfbb
RW
10100# Transform confdefs.h into an awk script `defines.awk', embedded as
10101# here-document in config.status, that substitutes the proper values into
10102# config.h.in to produce config.h.
10103
10104# Create a delimiter string that does not exist in confdefs.h, to ease
10105# handling of long lines.
10106ac_delim='%!_!# '
10107for ac_last_try in false false :; do
10108 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10109 if test -z "$ac_t"; then
10110 break
10111 elif $ac_last_try; then
10112 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10113 else
10114 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d6e9fb05 10115 fi
81ecdfbb 10116done
d6e9fb05 10117
81ecdfbb
RW
10118# For the awk script, D is an array of macro values keyed by name,
10119# likewise P contains macro parameters if any. Preserve backslash
10120# newline sequences.
10121
10122ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10123sed -n '
10124s/.\{148\}/&'"$ac_delim"'/g
10125t rset
10126:rset
10127s/^[ ]*#[ ]*define[ ][ ]*/ /
10128t def
10129d
10130:def
10131s/\\$//
10132t bsnl
10133s/["\\]/\\&/g
10134s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10135D["\1"]=" \3"/p
10136s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10137d
10138:bsnl
10139s/["\\]/\\&/g
10140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10141D["\1"]=" \3\\\\\\n"\\/p
10142t cont
10143s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10144t cont
10145d
10146:cont
10147n
10148s/.\{148\}/&'"$ac_delim"'/g
10149t clear
10150:clear
10151s/\\$//
10152t bsnlc
10153s/["\\]/\\&/g; s/^/"/; s/$/"/p
10154d
10155:bsnlc
10156s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10157b cont
10158' <confdefs.h | sed '
10159s/'"$ac_delim"'/"\\\
10160"/g' >>$CONFIG_STATUS || ac_write_fail=1
10161
10162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10163 for (key in D) D_is_set[key] = 1
10164 FS = "\a"
10165}
10166/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10167 line = \$ 0
10168 split(line, arg, " ")
10169 if (arg[1] == "#") {
10170 defundef = arg[2]
10171 mac1 = arg[3]
10172 } else {
10173 defundef = substr(arg[1], 2)
10174 mac1 = arg[2]
10175 }
10176 split(mac1, mac2, "(") #)
10177 macro = mac2[1]
10178 prefix = substr(line, 1, index(line, defundef) - 1)
10179 if (D_is_set[macro]) {
10180 # Preserve the white space surrounding the "#".
10181 print prefix "define", macro P[macro] D[macro]
10182 next
10183 } else {
10184 # Replace #undef with comments. This is necessary, for example,
10185 # in the case of _POSIX_SOURCE, which is predefined and required
10186 # on some systems where configure will not decide to define it.
10187 if (defundef == "undef") {
10188 print "/*", prefix defundef, macro, "*/"
10189 next
10190 }
10191 }
10192}
10193{ print }
10194_ACAWK
bec39cab 10195_ACEOF
81ecdfbb
RW
10196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10197 as_fn_error "could not setup config headers machinery" "$LINENO" 5
10198fi # test -n "$CONFIG_HEADERS"
10199
10200
10201eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10202shift
10203for ac_tag
10204do
10205 case $ac_tag in
10206 :[FHLC]) ac_mode=$ac_tag; continue;;
10207 esac
10208 case $ac_mode$ac_tag in
10209 :[FHL]*:*);;
10210 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10211 :[FH]-) ac_tag=-:-;;
10212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10213 esac
10214 ac_save_IFS=$IFS
10215 IFS=:
10216 set x $ac_tag
10217 IFS=$ac_save_IFS
10218 shift
10219 ac_file=$1
10220 shift
10221
10222 case $ac_mode in
10223 :L) ac_source=$1;;
10224 :[FH])
10225 ac_file_inputs=
10226 for ac_f
10227 do
10228 case $ac_f in
10229 -) ac_f="$tmp/stdin";;
10230 *) # Look for the file first in the build tree, then in the source tree
10231 # (if the path is not absolute). The absolute path cannot be DOS-style,
10232 # because $ac_f cannot contain `:'.
10233 test -f "$ac_f" ||
10234 case $ac_f in
10235 [\\/$]*) false;;
10236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10237 esac ||
10238 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10239 esac
10240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10241 as_fn_append ac_file_inputs " '$ac_f'"
10242 done
10243
10244 # Let's still pretend it is `configure' which instantiates (i.e., don't
10245 # use $as_me), people would be surprised to read:
10246 # /* config.h. Generated by config.status. */
10247 configure_input='Generated from '`
10248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10249 `' by configure.'
10250 if test x"$ac_file" != x-; then
10251 configure_input="$ac_file. $configure_input"
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10253$as_echo "$as_me: creating $ac_file" >&6;}
10254 fi
10255 # Neutralize special characters interpreted by sed in replacement strings.
10256 case $configure_input in #(
10257 *\&* | *\|* | *\\* )
10258 ac_sed_conf_input=`$as_echo "$configure_input" |
10259 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10260 *) ac_sed_conf_input=$configure_input;;
10261 esac
10262
10263 case $ac_tag in
10264 *:-:* | *:-) cat >"$tmp/stdin" \
10265 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10266 esac
10267 ;;
d6e9fb05
JK
10268 esac
10269
81ecdfbb 10270 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
10271$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10272 X"$ac_file" : 'X\(//\)[^/]' \| \
10273 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
10274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10275$as_echo X"$ac_file" |
10276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10277 s//\1/
10278 q
10279 }
10280 /^X\(\/\/\)[^/].*/{
10281 s//\1/
10282 q
10283 }
10284 /^X\(\/\/\)$/{
10285 s//\1/
10286 q
10287 }
10288 /^X\(\/\).*/{
10289 s//\1/
10290 q
10291 }
10292 s/.*/./; q'`
10293 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
10294 ac_builddir=.
10295
81ecdfbb
RW
10296case "$ac_dir" in
10297.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10298*)
10299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10300 # A ".." for each directory in $ac_dir_suffix.
10301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10302 case $ac_top_builddir_sub in
10303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10305 esac ;;
10306esac
10307ac_abs_top_builddir=$ac_pwd
10308ac_abs_builddir=$ac_pwd$ac_dir_suffix
10309# for backward compatibility:
10310ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
10311
10312case $srcdir in
81ecdfbb 10313 .) # We are building in place.
bec39cab 10314 ac_srcdir=.
81ecdfbb
RW
10315 ac_top_srcdir=$ac_top_builddir_sub
10316 ac_abs_top_srcdir=$ac_pwd ;;
10317 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 10318 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
10319 ac_top_srcdir=$srcdir
10320 ac_abs_top_srcdir=$srcdir ;;
10321 *) # Relative name.
10322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10323 ac_top_srcdir=$ac_top_build_prefix$srcdir
10324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 10325esac
81ecdfbb 10326ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 10327
bec39cab 10328
81ecdfbb
RW
10329 case $ac_mode in
10330 :F)
10331 #
10332 # CONFIG_FILE
10333 #
d6e9fb05 10334
bec39cab
AC
10335 case $INSTALL in
10336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 10337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d6e9fb05 10338 esac
c9a1864a
YQ
10339 ac_MKDIR_P=$MKDIR_P
10340 case $MKDIR_P in
10341 [\\/$]* | ?:[\\/]* ) ;;
10342 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10343 esac
81ecdfbb 10344_ACEOF
3db0444b 10345
81ecdfbb
RW
10346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10347# If the template does not know about datarootdir, expand it.
10348# FIXME: This hack should be removed a few years after 2.60.
10349ac_datarootdir_hack=; ac_datarootdir_seen=
10350ac_sed_dataroot='
10351/datarootdir/ {
10352 p
10353 q
10354}
10355/@datadir@/p
10356/@docdir@/p
10357/@infodir@/p
10358/@localedir@/p
10359/@mandir@/p'
10360case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10361*datarootdir*) ac_datarootdir_seen=yes;;
10362*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10364$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10365_ACEOF
10366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10367 ac_datarootdir_hack='
10368 s&@datadir@&$datadir&g
10369 s&@docdir@&$docdir&g
10370 s&@infodir@&$infodir&g
10371 s&@localedir@&$localedir&g
10372 s&@mandir@&$mandir&g
10373 s&\\\${datarootdir}&$datarootdir&g' ;;
10374esac
bec39cab 10375_ACEOF
81ecdfbb
RW
10376
10377# Neutralize VPATH when `$srcdir' = `.'.
10378# Shell code in configure.ac might set extrasub.
10379# FIXME: do we really want to maintain this feature?
10380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10381ac_sed_extra="$ac_vpsub
bec39cab
AC
10382$extrasub
10383_ACEOF
81ecdfbb 10384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
10385:t
10386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
10387s|@configure_input@|$ac_sed_conf_input|;t t
10388s&@top_builddir@&$ac_top_builddir_sub&;t t
10389s&@top_build_prefix@&$ac_top_build_prefix&;t t
10390s&@srcdir@&$ac_srcdir&;t t
10391s&@abs_srcdir@&$ac_abs_srcdir&;t t
10392s&@top_srcdir@&$ac_top_srcdir&;t t
10393s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10394s&@builddir@&$ac_builddir&;t t
10395s&@abs_builddir@&$ac_abs_builddir&;t t
10396s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10397s&@INSTALL@&$ac_INSTALL&;t t
c9a1864a 10398s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
10399$ac_datarootdir_hack
10400"
10401eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10402 || as_fn_error "could not create $ac_file" "$LINENO" 5
10403
10404test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10405 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10406 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10408which seems to be undefined. Please make sure it is defined." >&5
10409$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10410which seems to be undefined. Please make sure it is defined." >&2;}
10411
10412 rm -f "$tmp/stdin"
bec39cab 10413 case $ac_file in
81ecdfbb
RW
10414 -) cat "$tmp/out" && rm -f "$tmp/out";;
10415 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10416 esac \
10417 || as_fn_error "could not create $ac_file" "$LINENO" 5
10418 ;;
10419 :H)
10420 #
10421 # CONFIG_HEADER
10422 #
bec39cab 10423 if test x"$ac_file" != x-; then
81ecdfbb
RW
10424 {
10425 $as_echo "/* $configure_input */" \
10426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10427 } >"$tmp/config.h" \
10428 || as_fn_error "could not create $ac_file" "$LINENO" 5
10429 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10431$as_echo "$as_me: $ac_file is unchanged" >&6;}
bec39cab 10432 else
81ecdfbb
RW
10433 rm -f "$ac_file"
10434 mv "$tmp/config.h" "$ac_file" \
10435 || as_fn_error "could not create $ac_file" "$LINENO" 5
84563040 10436 fi
bec39cab 10437 else
81ecdfbb
RW
10438 $as_echo "/* $configure_input */" \
10439 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10440 || as_fn_error "could not create -" "$LINENO" 5
d6e9fb05 10441 fi
c9a1864a
YQ
10442# Compute "$ac_file"'s index in $config_headers.
10443_am_arg="$ac_file"
10444_am_stamp_count=1
10445for _am_header in $config_headers :; do
10446 case $_am_header in
10447 $_am_arg | $_am_arg:* )
10448 break ;;
10449 * )
10450 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10451 esac
10452done
10453echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10454$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10455 X"$_am_arg" : 'X\(//\)[^/]' \| \
10456 X"$_am_arg" : 'X\(//\)$' \| \
10457 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10458$as_echo X"$_am_arg" |
10459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10460 s//\1/
10461 q
10462 }
10463 /^X\(\/\/\)[^/].*/{
10464 s//\1/
10465 q
10466 }
10467 /^X\(\/\/\)$/{
10468 s//\1/
10469 q
10470 }
10471 /^X\(\/\).*/{
10472 s//\1/
10473 q
10474 }
10475 s/.*/./; q'`/stamp-h$_am_stamp_count
81ecdfbb 10476 ;;
dae5f5cf 10477
81ecdfbb
RW
10478 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10479$as_echo "$as_me: executing $ac_file commands" >&6;}
10480 ;;
10481 esac
dae5f5cf
DJ
10482
10483
81ecdfbb 10484 case $ac_file$ac_mode in
c9a1864a
YQ
10485 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10486 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10487 # are listed without --file. Let's play safe and only enable the eval
10488 # if we detect the quoting.
10489 case $CONFIG_FILES in
10490 *\'*) eval set x "$CONFIG_FILES" ;;
10491 *) set x $CONFIG_FILES ;;
10492 esac
10493 shift
10494 for mf
10495 do
10496 # Strip MF so we end up with the name of the file.
10497 mf=`echo "$mf" | sed -e 's/:.*$//'`
10498 # Check whether this is an Automake generated Makefile or not.
10499 # We used to match only the files named `Makefile.in', but
10500 # some people rename them; so instead we look at the file content.
10501 # Grep'ing the first line is not enough: some people post-process
10502 # each Makefile.in and add a new line on top of each file to say so.
10503 # Grep'ing the whole file is not good either: AIX grep has a line
10504 # limit of 2048, but all sed's we know have understand at least 4000.
10505 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10506 dirpart=`$as_dirname -- "$mf" ||
10507$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10508 X"$mf" : 'X\(//\)[^/]' \| \
10509 X"$mf" : 'X\(//\)$' \| \
10510 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10511$as_echo X"$mf" |
10512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10513 s//\1/
10514 q
10515 }
10516 /^X\(\/\/\)[^/].*/{
10517 s//\1/
10518 q
10519 }
10520 /^X\(\/\/\)$/{
10521 s//\1/
10522 q
10523 }
10524 /^X\(\/\).*/{
10525 s//\1/
10526 q
10527 }
10528 s/.*/./; q'`
10529 else
10530 continue
10531 fi
10532 # Extract the definition of DEPDIR, am__include, and am__quote
10533 # from the Makefile without running `make'.
10534 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10535 test -z "$DEPDIR" && continue
10536 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10537 test -z "am__include" && continue
10538 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10539 # When using ansi2knr, U may be empty or an underscore; expand it
10540 U=`sed -n 's/^U = //p' < "$mf"`
10541 # Find all dependency output files, they are included files with
10542 # $(DEPDIR) in their names. We invoke sed twice because it is the
10543 # simplest approach to changing $(DEPDIR) to its actual value in the
10544 # expansion.
10545 for file in `sed -n "
10546 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10547 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10548 # Make sure the directory exists.
10549 test -f "$dirpart/$file" && continue
10550 fdir=`$as_dirname -- "$file" ||
10551$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10552 X"$file" : 'X\(//\)[^/]' \| \
10553 X"$file" : 'X\(//\)$' \| \
10554 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10555$as_echo X"$file" |
10556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10557 s//\1/
10558 q
10559 }
10560 /^X\(\/\/\)[^/].*/{
10561 s//\1/
10562 q
10563 }
10564 /^X\(\/\/\)$/{
10565 s//\1/
10566 q
10567 }
10568 /^X\(\/\).*/{
10569 s//\1/
10570 q
10571 }
10572 s/.*/./; q'`
10573 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10574 # echo "creating $dirpart/$file"
10575 echo '# dummy' > "$dirpart/$file"
10576 done
10577 done
10578}
10579 ;;
81ecdfbb 10580 "default":C) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
10581xconfig.h:config.in)
10582echo > stamp-h ;;
10583esac
bec39cab 10584 ;;
81ecdfbb 10585
bec39cab 10586 esac
81ecdfbb 10587done # for ac_tag
d6e9fb05 10588
bec39cab 10589
81ecdfbb 10590as_fn_exit 0
bec39cab 10591_ACEOF
bec39cab
AC
10592ac_clean_files=$ac_clean_files_save
10593
81ecdfbb
RW
10594test $ac_write_fail = 0 ||
10595 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10596
bec39cab
AC
10597
10598# configure is writing to config.log, and then calls config.status.
10599# config.status does its own redirection, appending to config.log.
10600# Unfortunately, on DOS this fails, as config.log is still kept open
10601# by configure, so config.status won't be able to write to it; its
10602# output is simply discarded. So we exec the FD to /dev/null,
10603# effectively closing config.log, so it can be properly (re)opened and
10604# appended to by config.status. When coming back to configure, we
10605# need to make the FD available again.
10606if test "$no_create" != yes; then
10607 ac_cs_success=:
10608 ac_config_status_args=
10609 test "$silent" = yes &&
10610 ac_config_status_args="$ac_config_status_args --quiet"
10611 exec 5>/dev/null
10612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10613 exec 5>>config.log
10614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10615 # would make configure fail if this is the last instruction.
81ecdfbb
RW
10616 $ac_cs_success || as_fn_exit $?
10617fi
10618if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10620$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bec39cab 10621fi
d6e9fb05 10622
This page took 2.455954 seconds and 4 git commands to generate.