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