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