]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/configure
* python/python.c (gdbpy_decode_line): Move cleanup creation out
[thirdparty/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"
e28b3332 555ac_config_libobj_dir=../gnulib
bec39cab
AC
556# Factoring default headers for most tests.
557ac_includes_default="\
558#include <stdio.h>
81ecdfbb 559#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
560# include <sys/types.h>
561#endif
81ecdfbb 562#ifdef HAVE_SYS_STAT_H
bec39cab
AC
563# include <sys/stat.h>
564#endif
81ecdfbb 565#ifdef STDC_HEADERS
bec39cab
AC
566# include <stdlib.h>
567# include <stddef.h>
568#else
81ecdfbb 569# ifdef HAVE_STDLIB_H
bec39cab
AC
570# include <stdlib.h>
571# endif
572#endif
81ecdfbb
RW
573#ifdef HAVE_STRING_H
574# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
575# include <memory.h>
576# endif
577# include <string.h>
578#endif
81ecdfbb 579#ifdef HAVE_STRINGS_H
bec39cab
AC
580# include <strings.h>
581#endif
81ecdfbb 582#ifdef HAVE_INTTYPES_H
bec39cab 583# include <inttypes.h>
bec39cab 584#endif
81ecdfbb
RW
585#ifdef HAVE_STDINT_H
586# include <stdint.h>
587#endif
588#ifdef HAVE_UNISTD_H
bec39cab
AC
589# include <unistd.h>
590#endif"
591
81ecdfbb 592ac_subst_vars='LTLIBOBJS
fa593d66
PA
593extra_libraries
594IPA_DEPFILES
81ecdfbb
RW
595srv_xmlfiles
596srv_xmlbuiltin
597USE_THREAD_DB
598GDBSERVER_LIBS
599GDBSERVER_DEPFILES
600RDYNAMIC
601REPORT_BUGS_TEXI
602REPORT_BUGS_TO
603PKGVERSION
d4596a3d
PA
604WERROR_CFLAGS
605WARN_CFLAGS
0fb4aa4b
PA
606ustinc
607ustlibs
81ecdfbb 608LIBOBJS
a1723c35 609ALLOCA
81ecdfbb
RW
610INSTALL_DATA
611INSTALL_SCRIPT
612INSTALL_PROGRAM
613target_os
614target_vendor
615target_cpu
616target
617host_os
618host_vendor
619host_cpu
620host
621build_os
622build_vendor
623build_cpu
624build
625EGREP
626GREP
627CPP
628OBJEXT
629EXEEXT
630ac_ct_CC
631CPPFLAGS
632LDFLAGS
633CFLAGS
634CC
635target_alias
636host_alias
637build_alias
638LIBS
639ECHO_T
640ECHO_N
641ECHO_C
642DEFS
643mandir
644localedir
645libdir
646psdir
647pdfdir
648dvidir
649htmldir
650infodir
651docdir
652oldincludedir
653includedir
654localstatedir
655sharedstatedir
656sysconfdir
657datadir
658datarootdir
659libexecdir
660sbindir
661bindir
662program_transform_name
663prefix
664exec_prefix
665PACKAGE_URL
666PACKAGE_BUGREPORT
667PACKAGE_STRING
668PACKAGE_VERSION
669PACKAGE_TARNAME
670PACKAGE_NAME
671PATH_SEPARATOR
672SHELL'
bec39cab 673ac_subst_files=''
81ecdfbb
RW
674ac_user_opts='
675enable_option_checking
0fb4aa4b
PA
676with_ust
677with_ust_include
678with_ust_lib
d4596a3d 679enable_werror
81ecdfbb
RW
680with_pkgversion
681with_bugurl
96f15937 682with_libthread_db
c2a66c29 683enable_inprocess_agent
81ecdfbb
RW
684'
685 ac_precious_vars='build_alias
686host_alias
687target_alias
688CC
689CFLAGS
690LDFLAGS
691LIBS
692CPPFLAGS
693CPP'
694
d6e9fb05
JK
695
696# Initialize some variables set by options.
bec39cab
AC
697ac_init_help=
698ac_init_version=false
81ecdfbb
RW
699ac_unrecognized_opts=
700ac_unrecognized_sep=
d6e9fb05
JK
701# The variables have the same names as the options, with
702# dashes changed to underlines.
bec39cab 703cache_file=/dev/null
d6e9fb05 704exec_prefix=NONE
d6e9fb05 705no_create=
d6e9fb05
JK
706no_recursion=
707prefix=NONE
708program_prefix=NONE
709program_suffix=NONE
710program_transform_name=s,x,x,
711silent=
712site=
713srcdir=
d6e9fb05
JK
714verbose=
715x_includes=NONE
716x_libraries=NONE
bec39cab
AC
717
718# Installation directory options.
719# These are left unexpanded so users can "make install exec_prefix=/foo"
720# and all the variables that are supposed to be based on exec_prefix
721# by default will actually change.
722# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 723# (The list follows the same order as the GNU Coding Standards.)
d6e9fb05
JK
724bindir='${exec_prefix}/bin'
725sbindir='${exec_prefix}/sbin'
726libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
727datarootdir='${prefix}/share'
728datadir='${datarootdir}'
d6e9fb05
JK
729sysconfdir='${prefix}/etc'
730sharedstatedir='${prefix}/com'
731localstatedir='${prefix}/var'
d6e9fb05
JK
732includedir='${prefix}/include'
733oldincludedir='/usr/include'
81ecdfbb
RW
734docdir='${datarootdir}/doc/${PACKAGE}'
735infodir='${datarootdir}/info'
736htmldir='${docdir}'
737dvidir='${docdir}'
738pdfdir='${docdir}'
739psdir='${docdir}'
740libdir='${exec_prefix}/lib'
741localedir='${datarootdir}/locale'
742mandir='${datarootdir}/man'
d6e9fb05 743
d6e9fb05 744ac_prev=
81ecdfbb 745ac_dashdash=
d6e9fb05
JK
746for ac_option
747do
d6e9fb05
JK
748 # If the previous option needs an argument, assign it.
749 if test -n "$ac_prev"; then
81ecdfbb 750 eval $ac_prev=\$ac_option
d6e9fb05
JK
751 ac_prev=
752 continue
753 fi
754
81ecdfbb
RW
755 case $ac_option in
756 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
757 *) ac_optarg=yes ;;
758 esac
d6e9fb05
JK
759
760 # Accept the important Cygnus configure options, so we can diagnose typos.
761
81ecdfbb
RW
762 case $ac_dashdash$ac_option in
763 --)
764 ac_dashdash=yes ;;
d6e9fb05
JK
765
766 -bindir | --bindir | --bindi | --bind | --bin | --bi)
767 ac_prev=bindir ;;
768 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 769 bindir=$ac_optarg ;;
d6e9fb05
JK
770
771 -build | --build | --buil | --bui | --bu)
bec39cab 772 ac_prev=build_alias ;;
d6e9fb05 773 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 774 build_alias=$ac_optarg ;;
d6e9fb05
JK
775
776 -cache-file | --cache-file | --cache-fil | --cache-fi \
777 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
778 ac_prev=cache_file ;;
779 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
780 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
781 cache_file=$ac_optarg ;;
782
783 --config-cache | -C)
784 cache_file=config.cache ;;
d6e9fb05 785
81ecdfbb 786 -datadir | --datadir | --datadi | --datad)
d6e9fb05 787 ac_prev=datadir ;;
81ecdfbb 788 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 789 datadir=$ac_optarg ;;
d6e9fb05 790
81ecdfbb
RW
791 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
792 | --dataroo | --dataro | --datar)
793 ac_prev=datarootdir ;;
794 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
795 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
796 datarootdir=$ac_optarg ;;
797
d6e9fb05 798 -disable-* | --disable-*)
81ecdfbb 799 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d6e9fb05 800 # Reject names that are not valid shell variable names.
81ecdfbb
RW
801 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
802 as_fn_error "invalid feature name: $ac_useropt"
803 ac_useropt_orig=$ac_useropt
804 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
805 case $ac_user_opts in
806 *"
807"enable_$ac_useropt"
808"*) ;;
809 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
810 ac_unrecognized_sep=', ';;
811 esac
812 eval enable_$ac_useropt=no ;;
813
814 -docdir | --docdir | --docdi | --doc | --do)
815 ac_prev=docdir ;;
816 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
817 docdir=$ac_optarg ;;
818
819 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
820 ac_prev=dvidir ;;
821 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
822 dvidir=$ac_optarg ;;
d6e9fb05
JK
823
824 -enable-* | --enable-*)
81ecdfbb 825 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d6e9fb05 826 # Reject names that are not valid shell variable names.
81ecdfbb
RW
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
832 *"
833"enable_$ac_useropt"
834"*) ;;
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
dae5f5cf 837 esac
81ecdfbb 838 eval enable_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
839
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
bec39cab 847 exec_prefix=$ac_optarg ;;
d6e9fb05
JK
848
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
851 with_gas=yes ;;
852
bec39cab
AC
853 -help | --help | --hel | --he | -h)
854 ac_init_help=long ;;
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
d6e9fb05
JK
859
860 -host | --host | --hos | --ho)
bec39cab 861 ac_prev=host_alias ;;
d6e9fb05 862 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 863 host_alias=$ac_optarg ;;
d6e9fb05 864
81ecdfbb
RW
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
866 ac_prev=htmldir ;;
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
868 | --ht=*)
869 htmldir=$ac_optarg ;;
870
d6e9fb05
JK
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 876 includedir=$ac_optarg ;;
d6e9fb05
JK
877
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
879 ac_prev=infodir ;;
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 881 infodir=$ac_optarg ;;
d6e9fb05
JK
882
883 -libdir | --libdir | --libdi | --libd)
884 ac_prev=libdir ;;
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 886 libdir=$ac_optarg ;;
d6e9fb05
JK
887
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
bec39cab 893 libexecdir=$ac_optarg ;;
d6e9fb05 894
81ecdfbb
RW
895 -localedir | --localedir | --localedi | --localed | --locale)
896 ac_prev=localedir ;;
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
899
d6e9fb05 900 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 901 | --localstate | --localstat | --localsta | --localst | --locals)
d6e9fb05
JK
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 905 localstatedir=$ac_optarg ;;
d6e9fb05
JK
906
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
908 ac_prev=mandir ;;
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 910 mandir=$ac_optarg ;;
d6e9fb05
JK
911
912 -nfp | --nfp | --nf)
913 # Obsolete; use --without-fp.
914 with_fp=no ;;
915
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 917 | --no-cr | --no-c | -n)
d6e9fb05
JK
918 no_create=yes ;;
919
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
922 no_recursion=yes ;;
923
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 931 oldincludedir=$ac_optarg ;;
d6e9fb05
JK
932
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
934 ac_prev=prefix ;;
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 936 prefix=$ac_optarg ;;
d6e9fb05
JK
937
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 943 program_prefix=$ac_optarg ;;
d6e9fb05
JK
944
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 950 program_suffix=$ac_optarg ;;
d6e9fb05
JK
951
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 967 program_transform_name=$ac_optarg ;;
d6e9fb05 968
81ecdfbb
RW
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
970 ac_prev=pdfdir ;;
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
972 pdfdir=$ac_optarg ;;
973
974 -psdir | --psdir | --psdi | --psd | --ps)
975 ac_prev=psdir ;;
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
977 psdir=$ac_optarg ;;
978
d6e9fb05
JK
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
981 silent=yes ;;
982
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
984 ac_prev=sbindir ;;
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
986 | --sbi=* | --sb=*)
bec39cab 987 sbindir=$ac_optarg ;;
d6e9fb05
JK
988
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
992 | --sha | --sh)
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
997 | --sha=* | --sh=*)
bec39cab 998 sharedstatedir=$ac_optarg ;;
d6e9fb05
JK
999
1000 -site | --site | --sit)
1001 ac_prev=site ;;
1002 -site=* | --site=* | --sit=*)
bec39cab 1003 site=$ac_optarg ;;
434c4c77 1004
d6e9fb05
JK
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006 ac_prev=srcdir ;;
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1008 srcdir=$ac_optarg ;;
d6e9fb05
JK
1009
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1015 sysconfdir=$ac_optarg ;;
d6e9fb05
JK
1016
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1018 ac_prev=target_alias ;;
d6e9fb05 1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1020 target_alias=$ac_optarg ;;
d6e9fb05
JK
1021
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1023 verbose=yes ;;
1024
bec39cab
AC
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
d6e9fb05
JK
1027
1028 -with-* | --with-*)
81ecdfbb 1029 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d6e9fb05 1030 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error "invalid package name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037"with_$ac_useropt"
1038"*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
dae5f5cf 1041 esac
81ecdfbb 1042 eval with_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
1043
1044 -without-* | --without-*)
81ecdfbb 1045 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d6e9fb05 1046 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid package name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053"with_$ac_useropt"
1054"*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval with_$ac_useropt=no ;;
d6e9fb05
JK
1059
1060 --x)
1061 # Obsolete; use --with-x.
1062 with_x=yes ;;
1063
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1069 x_includes=$ac_optarg ;;
d6e9fb05
JK
1070
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1076 x_libraries=$ac_optarg ;;
d6e9fb05 1077
81ecdfbb
RW
1078 -*) as_fn_error "unrecognized option: \`$ac_option'
1079Try \`$0 --help' for more information."
d6e9fb05
JK
1080 ;;
1081
bec39cab
AC
1082 *=*)
1083 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1085 case $ac_envvar in #(
1086 '' | [0-9]* | *[!_$as_cr_alnum]* )
1087 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1088 esac
1089 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1090 export $ac_envvar ;;
1091
d6e9fb05 1092 *)
bec39cab 1093 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1094 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1096 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d6e9fb05
JK
1098 ;;
1099
1100 esac
1101done
1102
1103if test -n "$ac_prev"; then
bec39cab 1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1105 as_fn_error "missing argument to $ac_option"
d6e9fb05 1106fi
d6e9fb05 1107
81ecdfbb
RW
1108if test -n "$ac_unrecognized_opts"; then
1109 case $enable_option_checking in
1110 no) ;;
1111 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1112 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
dae5f5cf 1113 esac
81ecdfbb 1114fi
dae5f5cf 1115
81ecdfbb
RW
1116# Check all directory arguments for consistency.
1117for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118 datadir sysconfdir sharedstatedir localstatedir includedir \
1119 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120 libdir localedir mandir
dae5f5cf 1121do
81ecdfbb
RW
1122 eval ac_val=\$$ac_var
1123 # Remove trailing slashes.
1124 case $ac_val in
1125 */ )
1126 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1127 eval $ac_var=\$ac_val;;
1128 esac
1129 # Be sure to have absolute directory names.
dae5f5cf 1130 case $ac_val in
81ecdfbb
RW
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d6e9fb05 1133 esac
81ecdfbb 1134 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
d6e9fb05
JK
1135done
1136
bec39cab
AC
1137# There might be people who depend on the old broken behavior: `$host'
1138# used to hold the argument of --host etc.
1139# FIXME: To remove some day.
1140build=$build_alias
1141host=$host_alias
1142target=$target_alias
1143
1144# FIXME: To remove some day.
1145if test "x$host_alias" != x; then
1146 if test "x$build_alias" = x; then
1147 cross_compiling=maybe
81ecdfbb 1148 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1149 If a cross compiler is detected then cross compile mode will be used." >&2
1150 elif test "x$build_alias" != "x$host_alias"; then
1151 cross_compiling=yes
1152 fi
1153fi
d6e9fb05 1154
bec39cab
AC
1155ac_tool_prefix=
1156test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157
1158test "$silent" = yes && exec 6>/dev/null
d6e9fb05 1159
d6e9fb05 1160
81ecdfbb
RW
1161ac_pwd=`pwd` && test -n "$ac_pwd" &&
1162ac_ls_di=`ls -di .` &&
1163ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164 as_fn_error "working directory cannot be determined"
1165test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 as_fn_error "pwd does not report name of working directory"
1167
1168
d6e9fb05
JK
1169# Find the source files, if location was not specified.
1170if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
81ecdfbb
RW
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$as_myself" ||
1174$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$as_myself" : 'X\(//\)[^/]' \| \
1176 X"$as_myself" : 'X\(//\)$' \| \
1177 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1178$as_echo X"$as_myself" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 s//\1/
1181 q
1182 }
1183 /^X\(\/\/\)[^/].*/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\).*/{
1192 s//\1/
1193 q
1194 }
1195 s/.*/./; q'`
d6e9fb05 1196 srcdir=$ac_confdir
81ecdfbb 1197 if test ! -r "$srcdir/$ac_unique_file"; then
d6e9fb05
JK
1198 srcdir=..
1199 fi
1200else
1201 ac_srcdir_defaulted=no
1202fi
81ecdfbb
RW
1203if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1206fi
1207ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208ac_abs_confdir=`(
1209 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1210 pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213 srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_${ac_var}_value=\$${ac_var}
1224 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
d6e9fb05 1227
bec39cab
AC
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1234 cat <<_ACEOF
1235\`configure' configures this package to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE. See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254
bec39cab
AC
1255Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1257 [$ac_default_prefix]
bec39cab 1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1259 [PREFIX]
bec39cab
AC
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
81ecdfbb
RW
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1288_ACEOF
1289
1290 cat <<\_ACEOF
1291
dcdb98d2
DJ
1292Program names:
1293 --program-prefix=PREFIX prepend PREFIX to installed program names
1294 --program-suffix=SUFFIX append SUFFIX to installed program names
1295 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1296
bec39cab
AC
1297System types:
1298 --build=BUILD configure for building on BUILD [guessed]
1299 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1300 --target=TARGET configure for building compilers for TARGET [HOST]
1301_ACEOF
1302fi
1303
1304if test -n "$ac_init_help"; then
1305
1306 cat <<\_ACEOF
1307
d4596a3d
PA
1308Optional Features:
1309 --disable-option-checking ignore unrecognized --enable/--with options
1310 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1311 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1312 --enable-werror treat compile warnings as errors
c2a66c29
NS
1313 --enable-inprocess-agent
1314 inprocess agent
d4596a3d 1315
c16158bc
JM
1316Optional Packages:
1317 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1318 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0fb4aa4b
PA
1319 --with-ust=PATH Specify prefix directory for the installed UST package
1320 Equivalent to --with-ust-include=PATH/include
1321 plus --with-ust-lib=PATH/lib
1322 --with-ust-include=PATH Specify directory for installed UST include files
1323 --with-ust-lib=PATH Specify the directory for the installed UST library
c16158bc
JM
1324 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1325 --with-bugurl=URL Direct users to URL to report a bug
96f15937
PP
1326 --with-libthread-db=PATH
1327 use given libthread_db directly
c16158bc 1328
bec39cab
AC
1329Some influential environment variables:
1330 CC C compiler command
1331 CFLAGS C compiler flags
1332 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1333 nonstandard directory <lib dir>
81ecdfbb
RW
1334 LIBS libraries to pass to the linker, e.g. -l<library>
1335 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1336 you have headers in a nonstandard directory <include dir>
bec39cab
AC
1337 CPP C preprocessor
1338
1339Use these variables to override the choices made by `configure' or to help
1340it to find libraries and programs with nonstandard names/locations.
1341
81ecdfbb 1342Report bugs to the package provider.
bec39cab 1343_ACEOF
81ecdfbb 1344ac_status=$?
bec39cab
AC
1345fi
1346
1347if test "$ac_init_help" = "recursive"; then
1348 # If there are subdirs, report their specific --help.
bec39cab 1349 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1350 test -d "$ac_dir" ||
1351 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1352 continue
bec39cab
AC
1353 ac_builddir=.
1354
81ecdfbb
RW
1355case "$ac_dir" in
1356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357*)
1358 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1359 # A ".." for each directory in $ac_dir_suffix.
1360 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1361 case $ac_top_builddir_sub in
1362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364 esac ;;
1365esac
1366ac_abs_top_builddir=$ac_pwd
1367ac_abs_builddir=$ac_pwd$ac_dir_suffix
1368# for backward compatibility:
1369ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1370
1371case $srcdir in
81ecdfbb 1372 .) # We are building in place.
bec39cab 1373 ac_srcdir=.
81ecdfbb
RW
1374 ac_top_srcdir=$ac_top_builddir_sub
1375 ac_abs_top_srcdir=$ac_pwd ;;
1376 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1377 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1378 ac_top_srcdir=$srcdir
1379 ac_abs_top_srcdir=$srcdir ;;
1380 *) # Relative name.
1381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1382 ac_top_srcdir=$ac_top_build_prefix$srcdir
1383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dae5f5cf 1384esac
81ecdfbb
RW
1385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1386
1387 cd "$ac_dir" || { ac_status=$?; continue; }
1388 # Check for guested configure.
1389 if test -f "$ac_srcdir/configure.gnu"; then
1390 echo &&
1391 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1392 elif test -f "$ac_srcdir/configure"; then
1393 echo &&
1394 $SHELL "$ac_srcdir/configure" --help=recursive
434c4c77 1395 else
81ecdfbb
RW
1396 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1397 fi || ac_status=$?
1398 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1399 done
1400fi
1401
81ecdfbb 1402test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1403if $ac_init_version; then
1404 cat <<\_ACEOF
81ecdfbb
RW
1405configure
1406generated by GNU Autoconf 2.64
bec39cab 1407
81ecdfbb 1408Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1409This configure script is free software; the Free Software Foundation
1410gives unlimited permission to copy, distribute and modify it.
1411_ACEOF
81ecdfbb 1412 exit
bec39cab 1413fi
bec39cab 1414
81ecdfbb
RW
1415## ------------------------ ##
1416## Autoconf initialization. ##
1417## ------------------------ ##
bec39cab 1418
81ecdfbb
RW
1419# ac_fn_c_try_compile LINENO
1420# --------------------------
1421# Try to compile conftest.$ac_ext, and return whether this succeeded.
1422ac_fn_c_try_compile ()
bec39cab 1423{
81ecdfbb
RW
1424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1425 rm -f conftest.$ac_objext
1426 if { { ac_try="$ac_compile"
1427case "(($ac_try" in
1428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1429 *) ac_try_echo=$ac_try;;
1430esac
1431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1432$as_echo "$ac_try_echo"; } >&5
1433 (eval "$ac_compile") 2>conftest.err
1434 ac_status=$?
1435 if test -s conftest.err; then
1436 grep -v '^ *+' conftest.err >conftest.er1
1437 cat conftest.er1 >&5
1438 mv -f conftest.er1 conftest.err
1439 fi
1440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1441 test $ac_status = 0; } && {
1442 test -z "$ac_c_werror_flag" ||
1443 test ! -s conftest.err
1444 } && test -s conftest.$ac_objext; then :
1445 ac_retval=0
1446else
1447 $as_echo "$as_me: failed program was:" >&5
1448sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1449
81ecdfbb
RW
1450 ac_retval=1
1451fi
1452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1453 return $ac_retval
bec39cab 1454
81ecdfbb 1455} # ac_fn_c_try_compile
bec39cab 1456
81ecdfbb
RW
1457# ac_fn_c_try_cpp LINENO
1458# ----------------------
1459# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1460ac_fn_c_try_cpp ()
1461{
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 if { { ac_try="$ac_cpp conftest.$ac_ext"
1464case "(($ac_try" in
1465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1466 *) ac_try_echo=$ac_try;;
1467esac
1468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1469$as_echo "$ac_try_echo"; } >&5
1470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1471 ac_status=$?
1472 if test -s conftest.err; then
1473 grep -v '^ *+' conftest.err >conftest.er1
1474 cat conftest.er1 >&5
1475 mv -f conftest.er1 conftest.err
1476 fi
1477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } >/dev/null && {
1479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1480 test ! -s conftest.err
1481 }; then :
1482 ac_retval=0
1483else
1484 $as_echo "$as_me: failed program was:" >&5
1485sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1486
81ecdfbb
RW
1487 ac_retval=1
1488fi
1489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1490 return $ac_retval
bec39cab 1491
81ecdfbb
RW
1492} # ac_fn_c_try_cpp
1493
1494# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1495# -------------------------------------------------------
1496# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1497# the include files in INCLUDES and setting the cache variable VAR
1498# accordingly.
1499ac_fn_c_check_header_mongrel ()
1500{
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1504$as_echo_n "checking for $2... " >&6; }
1505if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1506 $as_echo_n "(cached) " >&6
1507fi
1508eval ac_res=\$$3
1509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1510$as_echo "$ac_res" >&6; }
1511else
1512 # Is the header compilable?
1513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1514$as_echo_n "checking $2 usability... " >&6; }
1515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1516/* end confdefs.h. */
1517$4
1518#include <$2>
1519_ACEOF
1520if ac_fn_c_try_compile "$LINENO"; then :
1521 ac_header_compiler=yes
1522else
1523 ac_header_compiler=no
1524fi
1525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1527$as_echo "$ac_header_compiler" >&6; }
1528
1529# Is the header present?
1530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1531$as_echo_n "checking $2 presence... " >&6; }
1532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533/* end confdefs.h. */
1534#include <$2>
1535_ACEOF
1536if ac_fn_c_try_cpp "$LINENO"; then :
1537 ac_header_preproc=yes
1538else
1539 ac_header_preproc=no
1540fi
1541rm -f conftest.err conftest.$ac_ext
1542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1543$as_echo "$ac_header_preproc" >&6; }
1544
1545# So? What about this header?
1546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1547 yes:no: )
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1549$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1551$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1552 ;;
1553 no:yes:* )
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1555$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1557$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1559$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1561$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1563$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1564 ;;
1565esac
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1567$as_echo_n "checking for $2... " >&6; }
1568if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1569 $as_echo_n "(cached) " >&6
1570else
1571 eval "$3=\$ac_header_compiler"
1572fi
1573eval ac_res=\$$3
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1575$as_echo "$ac_res" >&6; }
1576fi
1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578
1579} # ac_fn_c_check_header_mongrel
1580
1581# ac_fn_c_try_run LINENO
1582# ----------------------
1583# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1584# that executables *can* be run.
1585ac_fn_c_try_run ()
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { { ac_try="$ac_link"
1589case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>&5
1596 ac_status=$?
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1599 { { case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_try") 2>&5
1606 ac_status=$?
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; }; }; then :
1609 ac_retval=0
1610else
1611 $as_echo "$as_me: program exited with status $ac_status" >&5
1612 $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=$ac_status
1616fi
1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1619 return $ac_retval
1620
1621} # ac_fn_c_try_run
1622
1623# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624# -------------------------------------------------------
1625# Tests whether HEADER exists and can be compiled using the include files in
1626# INCLUDES, setting the cache variable VAR accordingly.
1627ac_fn_c_check_header_compile ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631$as_echo_n "checking for $2... " >&6; }
1632if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1633 $as_echo_n "(cached) " >&6
1634else
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636/* end confdefs.h. */
1637$4
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
1641 eval "$3=yes"
1642else
1643 eval "$3=no"
1644fi
1645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646fi
1647eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649$as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651
1652} # ac_fn_c_check_header_compile
1653
1654# ac_fn_c_try_link LINENO
1655# -----------------------
1656# Try to link conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_link ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 $as_test_x conftest$ac_exeext
1682 }; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689fi
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 return $ac_retval
1697
1698} # ac_fn_c_try_link
1699
1700# ac_fn_c_check_func LINENO FUNC VAR
1701# ----------------------------------
1702# Tests whether FUNC exists, setting the cache variable VAR accordingly
1703ac_fn_c_check_func ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707$as_echo_n "checking for $2... " >&6; }
1708if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 $as_echo_n "(cached) " >&6
1710else
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h. */
1713/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1715#define $2 innocuous_$2
1716
1717/* System header to define __stub macros and hopefully few prototypes,
1718 which can conflict with char $2 (); below.
1719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1720 <limits.h> exists even on freestanding compilers. */
1721
1722#ifdef __STDC__
1723# include <limits.h>
1724#else
1725# include <assert.h>
1726#endif
1727
1728#undef $2
1729
1730/* Override any GCC internal prototype to avoid an error.
1731 Use char because int might match the return type of a GCC
1732 builtin and then its argument prototype would still apply. */
1733#ifdef __cplusplus
1734extern "C"
1735#endif
1736char $2 ();
1737/* The GNU C library defines this for functions which it implements
1738 to always fail with ENOSYS. Some functions are actually named
1739 something starting with __ and the normal name is an alias. */
1740#if defined __stub_$2 || defined __stub___$2
1741choke me
1742#endif
1743
1744int
1745main ()
1746{
1747return $2 ();
1748 ;
1749 return 0;
1750}
1751_ACEOF
1752if ac_fn_c_try_link "$LINENO"; then :
1753 eval "$3=yes"
1754else
1755 eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext \
1758 conftest$ac_exeext conftest.$ac_ext
1759fi
1760eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764
1765} # ac_fn_c_check_func
1766
1767# ac_fn_c_check_decl LINENO SYMBOL VAR
1768# ------------------------------------
1769# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1770ac_fn_c_check_decl ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0fb4aa4b
PA
1773 as_decl_name=`echo $2|sed 's/ *(.*//'`
1774 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1776$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1777if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1779else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h. */
1782$4
1783int
1784main ()
1785{
0fb4aa4b
PA
1786#ifndef $as_decl_name
1787#ifdef __cplusplus
1788 (void) $as_decl_use;
1789#else
1790 (void) $as_decl_name;
1791#endif
81ecdfbb
RW
1792#endif
1793
1794 ;
1795 return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$3=yes"
1800else
1801 eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_decl
1811
1812# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1813# -------------------------------------------
1814# Tests whether TYPE exists after having included INCLUDES, setting cache
1815# variable VAR accordingly.
1816ac_fn_c_check_type ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823else
1824 eval "$3=no"
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827$4
1828int
1829main ()
1830{
1831if (sizeof ($2))
1832 return 0;
1833 ;
1834 return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h. */
1840$4
1841int
1842main ()
1843{
1844if (sizeof (($2)))
1845 return 0;
1846 ;
1847 return 0;
1848}
1849_ACEOF
1850if ac_fn_c_try_compile "$LINENO"; then :
1851
1852else
1853 eval "$3=yes"
1854fi
1855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856fi
1857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858fi
1859eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864} # ac_fn_c_check_type
1865cat >config.log <<_ACEOF
1866This file contains any messages produced by compilers while
1867running configure, to aid debugging if configure makes a mistake.
1868
1869It was created by $as_me, which was
1870generated by GNU Autoconf 2.64. Invocation command line was
1871
1872 $ $0 $@
1873
1874_ACEOF
1875exec 5>>config.log
1876{
1877cat <<_ASUNAME
1878## --------- ##
1879## Platform. ##
1880## --------- ##
1881
1882hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1890
1891/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1892/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1893/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1895/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1896/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1897/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1898
1899_ASUNAME
1900
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904 IFS=$as_save_IFS
1905 test -z "$as_dir" && as_dir=.
1906 $as_echo "PATH: $as_dir"
1907 done
1908IFS=$as_save_IFS
1909
1910} >&5
1911
1912cat >&5 <<_ACEOF
1913
1914
1915## ----------- ##
1916## Core tests. ##
1917## ----------- ##
bec39cab
AC
1918
1919_ACEOF
1920
1921
1922# Keep a trace of the command line.
1923# Strip out --no-create and --no-recursion so they do not pile up.
1924# Strip out --silent because we don't want to record it for future runs.
1925# Also quote any args containing shell meta-characters.
1926# Make two passes to allow for proper duplicate-argument suppression.
1927ac_configure_args=
1928ac_configure_args0=
1929ac_configure_args1=
bec39cab
AC
1930ac_must_keep_next=false
1931for ac_pass in 1 2
1932do
1933 for ac_arg
1934 do
1935 case $ac_arg in
1936 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938 | -silent | --silent | --silen | --sile | --sil)
1939 continue ;;
81ecdfbb
RW
1940 *\'*)
1941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1942 esac
1943 case $ac_pass in
81ecdfbb 1944 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 1945 2)
81ecdfbb 1946 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
1947 if test $ac_must_keep_next = true; then
1948 ac_must_keep_next=false # Got value, back to normal.
1949 else
1950 case $ac_arg in
1951 *=* | --config-cache | -C | -disable-* | --disable-* \
1952 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1953 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1954 | -with-* | --with-* | -without-* | --without-* | --x)
1955 case "$ac_configure_args0 " in
1956 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957 esac
1958 ;;
1959 -* ) ac_must_keep_next=true ;;
1960 esac
1961 fi
81ecdfbb 1962 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
1963 ;;
1964 esac
1965 done
1966done
81ecdfbb
RW
1967{ ac_configure_args0=; unset ac_configure_args0;}
1968{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
1969
1970# When interrupted or exit'd, cleanup temporary files, and complete
1971# config.log. We remove comments because anyway the quotes in there
1972# would cause problems or look ugly.
81ecdfbb
RW
1973# WARNING: Use '\'' to represent an apostrophe within the trap.
1974# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
1975trap 'exit_status=$?
1976 # Save into config.log some information that might help in debugging.
1977 {
1978 echo
1979
1980 cat <<\_ASBOX
1981## ---------------- ##
1982## Cache variables. ##
1983## ---------------- ##
1984_ASBOX
1985 echo
1986 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1987(
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in #(
1991 *${as_nl}*)
1992 case $ac_var in #(
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995 esac
1996 case $ac_var in #(
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2000 esac ;;
2001 esac
2002 done
bec39cab 2003 (set) 2>&1 |
81ecdfbb
RW
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
bec39cab 2006 sed -n \
81ecdfbb
RW
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 ;; #(
bec39cab 2010 *)
81ecdfbb 2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 2012 ;;
81ecdfbb
RW
2013 esac |
2014 sort
2015)
bec39cab
AC
2016 echo
2017
2018 cat <<\_ASBOX
2019## ----------------- ##
2020## Output variables. ##
2021## ----------------- ##
2022_ASBOX
2023 echo
2024 for ac_var in $ac_subst_vars
2025 do
81ecdfbb
RW
2026 eval ac_val=\$$ac_var
2027 case $ac_val in
2028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 esac
2030 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2031 done | sort
2032 echo
2033
2034 if test -n "$ac_subst_files"; then
2035 cat <<\_ASBOX
81ecdfbb
RW
2036## ------------------- ##
2037## File substitutions. ##
2038## ------------------- ##
bec39cab
AC
2039_ASBOX
2040 echo
2041 for ac_var in $ac_subst_files
2042 do
81ecdfbb
RW
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2048 done | sort
2049 echo
434c4c77 2050 fi
bec39cab
AC
2051
2052 if test -s confdefs.h; then
2053 cat <<\_ASBOX
2054## ----------- ##
2055## confdefs.h. ##
2056## ----------- ##
2057_ASBOX
2058 echo
81ecdfbb 2059 cat confdefs.h
bec39cab
AC
2060 echo
2061 fi
2062 test "$ac_signal" != 0 &&
81ecdfbb
RW
2063 $as_echo "$as_me: caught signal $ac_signal"
2064 $as_echo "$as_me: exit $exit_status"
bec39cab 2065 } >&5
81ecdfbb
RW
2066 rm -f core *.core core.conftest.* &&
2067 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 2068 exit $exit_status
81ecdfbb 2069' 0
bec39cab 2070for ac_signal in 1 2 13 15; do
81ecdfbb 2071 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
2072done
2073ac_signal=0
2074
2075# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2076rm -f -r conftest* confdefs.h
2077
2078$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
2079
2080# Predefined preprocessor variables.
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_NAME "$PACKAGE_NAME"
2084_ACEOF
2085
bec39cab
AC
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2088_ACEOF
2089
bec39cab
AC
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_VERSION "$PACKAGE_VERSION"
2092_ACEOF
2093
bec39cab
AC
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_STRING "$PACKAGE_STRING"
2096_ACEOF
2097
bec39cab
AC
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100_ACEOF
2101
81ecdfbb
RW
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_URL "$PACKAGE_URL"
2104_ACEOF
2105
bec39cab
AC
2106
2107# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2108# Prefer an explicitly selected file to automatically selected ones.
2109ac_site_file1=NONE
2110ac_site_file2=NONE
2111if test -n "$CONFIG_SITE"; then
2112 ac_site_file1=$CONFIG_SITE
2113elif test "x$prefix" != xNONE; then
2114 ac_site_file1=$prefix/share/config.site
2115 ac_site_file2=$prefix/etc/config.site
2116else
2117 ac_site_file1=$ac_default_prefix/share/config.site
2118 ac_site_file2=$ac_default_prefix/etc/config.site
d6e9fb05 2119fi
81ecdfbb
RW
2120for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2121do
2122 test "x$ac_site_file" = xNONE && continue
d6e9fb05 2123 if test -r "$ac_site_file"; then
81ecdfbb
RW
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 2126 sed 's/^/| /' "$ac_site_file" >&5
d6e9fb05
JK
2127 . "$ac_site_file"
2128 fi
2129done
2130
2131if test -r "$cache_file"; then
bec39cab
AC
2132 # Some versions of bash will fail to source /dev/null (special
2133 # files actually), so we avoid doing that.
2134 if test -f "$cache_file"; then
81ecdfbb
RW
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2136$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 2137 case $cache_file in
81ecdfbb
RW
2138 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139 *) . "./$cache_file";;
bec39cab
AC
2140 esac
2141 fi
d6e9fb05 2142else
81ecdfbb
RW
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2144$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 2145 >$cache_file
d6e9fb05
JK
2146fi
2147
bec39cab
AC
2148# Check that the precious variables saved in the cache have kept the same
2149# value.
2150ac_cache_corrupted=false
81ecdfbb 2151for ac_var in $ac_precious_vars; do
bec39cab
AC
2152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2154 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
2156 case $ac_old_set,$ac_new_set in
2157 set,)
81ecdfbb
RW
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
2160 ac_cache_corrupted=: ;;
2161 ,set)
81ecdfbb
RW
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
2164 ac_cache_corrupted=: ;;
2165 ,);;
2166 *)
2167 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2168 # differences in whitespace do not lead to failure.
2169 ac_old_val_w=`echo x $ac_old_val`
2170 ac_new_val_w=`echo x $ac_new_val`
2171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174 ac_cache_corrupted=:
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178 eval $ac_var=\$ac_old_val
2179 fi
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2181$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2183$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
2184 fi;;
2185 esac
2186 # Pass precious variables to config.status.
2187 if test "$ac_new_set" = set; then
2188 case $ac_new_val in
81ecdfbb 2189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2190 *) ac_arg=$ac_var=$ac_new_val ;;
2191 esac
2192 case " $ac_configure_args " in
2193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2194 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 2195 esac
d6e9fb05 2196 fi
bec39cab
AC
2197done
2198if $ac_cache_corrupted; then
81ecdfbb
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d6e9fb05 2204fi
81ecdfbb
RW
2205## -------------------- ##
2206## Main body of script. ##
2207## -------------------- ##
d6e9fb05 2208
dae5f5cf
DJ
2209ac_ext=c
2210ac_cpp='$CPP $CPPFLAGS'
2211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214
d6e9fb05 2215
84563040 2216
bec39cab
AC
2217
2218
81ecdfbb 2219ac_config_headers="$ac_config_headers config.h:config.in"
bec39cab
AC
2220
2221
e28b3332 2222
bec39cab
AC
2223ac_ext=c
2224ac_cpp='$CPP $CPPFLAGS'
2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228if test -n "$ac_tool_prefix"; then
2229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2230set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2232$as_echo_n "checking for $ac_word... " >&6; }
2233if test "${ac_cv_prog_CC+set}" = set; then :
2234 $as_echo_n "(cached) " >&6
84563040
DJ
2235else
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2238else
bec39cab
AC
2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2248 break 2
2249 fi
2250done
81ecdfbb
RW
2251 done
2252IFS=$as_save_IFS
bec39cab 2253
84563040
DJ
2254fi
2255fi
bec39cab 2256CC=$ac_cv_prog_CC
84563040 2257if test -n "$CC"; then
81ecdfbb
RW
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2259$as_echo "$CC" >&6; }
84563040 2260else
81ecdfbb
RW
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2262$as_echo "no" >&6; }
84563040
DJ
2263fi
2264
81ecdfbb 2265
bec39cab
AC
2266fi
2267if test -z "$ac_cv_prog_CC"; then
2268 ac_ct_CC=$CC
2269 # Extract the first word of "gcc", so it can be a program name with args.
2270set dummy gcc; ac_word=$2
81ecdfbb
RW
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272$as_echo_n "checking for $ac_word... " >&6; }
2273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
84563040 2275else
bec39cab
AC
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
84563040 2278else
bec39cab
AC
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2286 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2288 break 2
2289 fi
2290done
81ecdfbb
RW
2291 done
2292IFS=$as_save_IFS
bec39cab
AC
2293
2294fi
2295fi
2296ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2299$as_echo "$ac_ct_CC" >&6; }
bec39cab 2300else
81ecdfbb
RW
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2302$as_echo "no" >&6; }
bec39cab
AC
2303fi
2304
81ecdfbb
RW
2305 if test "x$ac_ct_CC" = x; then
2306 CC=""
2307 else
2308 case $cross_compiling:$ac_tool_warned in
2309yes:)
2310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2312ac_tool_warned=yes ;;
2313esac
2314 CC=$ac_ct_CC
2315 fi
bec39cab
AC
2316else
2317 CC="$ac_cv_prog_CC"
2318fi
2319
2320if test -z "$CC"; then
81ecdfbb
RW
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2323set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2325$as_echo_n "checking for $ac_word... " >&6; }
2326if test "${ac_cv_prog_CC+set}" = set; then :
2327 $as_echo_n "(cached) " >&6
bec39cab
AC
2328else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331else
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2339 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2341 break 2
2342 fi
2343done
81ecdfbb
RW
2344 done
2345IFS=$as_save_IFS
bec39cab
AC
2346
2347fi
2348fi
2349CC=$ac_cv_prog_CC
2350if test -n "$CC"; then
81ecdfbb
RW
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2352$as_echo "$CC" >&6; }
bec39cab 2353else
81ecdfbb
RW
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2355$as_echo "no" >&6; }
bec39cab
AC
2356fi
2357
81ecdfbb
RW
2358
2359 fi
dae5f5cf 2360fi
81ecdfbb 2361if test -z "$CC"; then
dae5f5cf
DJ
2362 # Extract the first word of "cc", so it can be a program name with args.
2363set dummy cc; ac_word=$2
81ecdfbb
RW
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365$as_echo_n "checking for $ac_word... " >&6; }
2366if test "${ac_cv_prog_CC+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
dae5f5cf 2368else
81ecdfbb
RW
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
dae5f5cf 2371else
81ecdfbb 2372 ac_prog_rejected=no
dae5f5cf
DJ
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2381 ac_prog_rejected=yes
2382 continue
2383 fi
2384 ac_cv_prog_CC="cc"
2385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dae5f5cf 2386 break 2
b80864fb 2387 fi
dae5f5cf 2388done
81ecdfbb
RW
2389 done
2390IFS=$as_save_IFS
bec39cab 2391
84563040
DJ
2392if test $ac_prog_rejected = yes; then
2393 # We found a bogon in the path, so make sure we never use it.
2394 set dummy $ac_cv_prog_CC
2395 shift
bec39cab 2396 if test $# != 0; then
84563040
DJ
2397 # We chose a different compiler from the bogus one.
2398 # However, it has the same basename, so the bogon will be chosen
2399 # first if we set CC to just the basename; use the full file name.
2400 shift
bec39cab 2401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
84563040
DJ
2402 fi
2403fi
2404fi
2405fi
bec39cab 2406CC=$ac_cv_prog_CC
84563040 2407if test -n "$CC"; then
81ecdfbb
RW
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2409$as_echo "$CC" >&6; }
84563040 2410else
81ecdfbb
RW
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2412$as_echo "no" >&6; }
84563040
DJ
2413fi
2414
81ecdfbb 2415
bec39cab
AC
2416fi
2417if test -z "$CC"; then
2418 if test -n "$ac_tool_prefix"; then
81ecdfbb 2419 for ac_prog in cl.exe
bec39cab
AC
2420 do
2421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424$as_echo_n "checking for $ac_word... " >&6; }
2425if test "${ac_cv_prog_CC+set}" = set; then :
2426 $as_echo_n "(cached) " >&6
84563040
DJ
2427else
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC="$CC" # Let the user override the test.
2430else
bec39cab
AC
2431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432for as_dir in $PATH
2433do
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2440 break 2
2441 fi
2442done
81ecdfbb
RW
2443 done
2444IFS=$as_save_IFS
bec39cab 2445
84563040
DJ
2446fi
2447fi
bec39cab 2448CC=$ac_cv_prog_CC
84563040 2449if test -n "$CC"; then
81ecdfbb
RW
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2451$as_echo "$CC" >&6; }
84563040 2452else
81ecdfbb
RW
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454$as_echo "no" >&6; }
84563040 2455fi
bec39cab 2456
81ecdfbb 2457
bec39cab
AC
2458 test -n "$CC" && break
2459 done
2460fi
2461if test -z "$CC"; then
2462 ac_ct_CC=$CC
81ecdfbb 2463 for ac_prog in cl.exe
bec39cab
AC
2464do
2465 # Extract the first word of "$ac_prog", so it can be a program name with args.
2466set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468$as_echo_n "checking for $ac_word... " >&6; }
2469if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
bec39cab
AC
2471else
2472 if test -n "$ac_ct_CC"; then
2473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2474else
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2482 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab 2484 break 2
84563040 2485 fi
bec39cab 2486done
81ecdfbb
RW
2487 done
2488IFS=$as_save_IFS
bec39cab
AC
2489
2490fi
2491fi
2492ac_ct_CC=$ac_cv_prog_ac_ct_CC
2493if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2495$as_echo "$ac_ct_CC" >&6; }
bec39cab 2496else
81ecdfbb
RW
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498$as_echo "no" >&6; }
84563040
DJ
2499fi
2500
81ecdfbb 2501
bec39cab
AC
2502 test -n "$ac_ct_CC" && break
2503done
84563040 2504
81ecdfbb
RW
2505 if test "x$ac_ct_CC" = x; then
2506 CC=""
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509yes:)
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2512ac_tool_warned=yes ;;
2513esac
2514 CC=$ac_ct_CC
2515 fi
bec39cab
AC
2516fi
2517
2518fi
2519
2520
81ecdfbb
RW
2521test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523as_fn_error "no acceptable C compiler found in \$PATH
2524See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2525
2526# Provide some information about the compiler.
81ecdfbb
RW
2527$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2528set X $ac_compile
2529ac_compiler=$2
2530for ac_option in --version -v -V -qversion; do
2531 { { ac_try="$ac_compiler $ac_option >&5"
2532case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535esac
2536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537$as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2539 ac_status=$?
81ecdfbb
RW
2540 if test -s conftest.err; then
2541 sed '10a\
2542... rest of stderr output deleted ...
2543 10q' conftest.err >conftest.er1
2544 cat conftest.er1 >&5
2545 rm -f conftest.er1 conftest.err
2546 fi
2547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2548 test $ac_status = 0; }
2549done
bec39cab 2550
81ecdfbb 2551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2552/* end confdefs.h. */
2553
2554int
2555main ()
2556{
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562ac_clean_files_save=$ac_clean_files
81ecdfbb 2563ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
2564# Try to create an executable without -o first, disregard a.out.
2565# It will help us diagnose broken compilers, and finding out an intuition
2566# of exeext.
81ecdfbb
RW
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2568$as_echo_n "checking for C compiler default output file name... " >&6; }
2569ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2570
2571# The possible output files:
2572ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2573
2574ac_rmfiles=
2575for ac_file in $ac_files
2576do
2577 case $ac_file in
2578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2579 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2580 esac
2581done
2582rm -f $ac_rmfiles
2583
2584if { { ac_try="$ac_link_default"
2585case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588esac
2589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2590$as_echo "$ac_try_echo"; } >&5
2591 (eval "$ac_link_default") 2>&5
bec39cab 2592 ac_status=$?
81ecdfbb
RW
2593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2594 test $ac_status = 0; }; then :
2595 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2596# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2597# in a Makefile. We should not override ac_cv_exeext if it was cached,
2598# so that the user can short-circuit this test for compilers unknown to
2599# Autoconf.
2600for ac_file in $ac_files ''
bec39cab
AC
2601do
2602 test -f "$ac_file" || continue
2603 case $ac_file in
81ecdfbb 2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2605 ;;
2606 [ab].out )
2607 # We found the default executable, but exeext='' is most
2608 # certainly right.
2609 break;;
2610 *.* )
81ecdfbb
RW
2611 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2612 then :; else
2613 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2614 fi
2615 # We set ac_cv_exeext here because the later test for it is not
2616 # safe: cross compilers may not add the suffix if given an `-o'
2617 # argument, so we may need to know it at that point already.
2618 # Even if this section looks crufty: it has the advantage of
2619 # actually working.
bec39cab
AC
2620 break;;
2621 * )
2622 break;;
2623 esac
2624done
81ecdfbb
RW
2625test "$ac_cv_exeext" = no && ac_cv_exeext=
2626
bec39cab 2627else
81ecdfbb
RW
2628 ac_file=''
2629fi
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2631$as_echo "$ac_file" >&6; }
2632if test -z "$ac_file"; then :
2633 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
81ecdfbb
RW
2636{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638{ as_fn_set_status 77
2639as_fn_error "C compiler cannot create executables
2640See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 2641fi
bec39cab 2642ac_exeext=$ac_cv_exeext
bec39cab 2643
81ecdfbb 2644# Check that the compiler produces executables we can run. If not, either
bec39cab 2645# the compiler is broken, or we cross compile.
81ecdfbb
RW
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2647$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
2648# If not cross compiling, check that we can run a simple program.
2649if test "$cross_compiling" != yes; then
2650 if { ac_try='./$ac_file'
81ecdfbb
RW
2651 { { case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654esac
2655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2656$as_echo "$ac_try_echo"; } >&5
2657 (eval "$ac_try") 2>&5
bec39cab 2658 ac_status=$?
81ecdfbb
RW
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; }; }; then
bec39cab 2661 cross_compiling=no
84563040 2662 else
bec39cab
AC
2663 if test "$cross_compiling" = maybe; then
2664 cross_compiling=yes
2665 else
81ecdfbb
RW
2666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668as_fn_error "cannot run C compiled programs.
bec39cab 2669If you meant to cross compile, use \`--host'.
81ecdfbb 2670See \`config.log' for more details." "$LINENO" 5; }
bec39cab 2671 fi
84563040 2672 fi
84563040 2673fi
81ecdfbb
RW
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675$as_echo "yes" >&6; }
bec39cab 2676
81ecdfbb 2677rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
bec39cab 2678ac_clean_files=$ac_clean_files_save
81ecdfbb 2679# Check that the compiler produces executables we can run. If not, either
bec39cab 2680# the compiler is broken, or we cross compile.
81ecdfbb
RW
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2682$as_echo_n "checking whether we are cross compiling... " >&6; }
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2684$as_echo "$cross_compiling" >&6; }
2685
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2687$as_echo_n "checking for suffix of executables... " >&6; }
2688if { { ac_try="$ac_link"
2689case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692esac
2693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694$as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link") 2>&5
bec39cab 2696 ac_status=$?
81ecdfbb
RW
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; }; then :
bec39cab
AC
2699 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2700# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2701# work properly (i.e., refer to `conftest.exe'), while it won't with
2702# `rm'.
2703for ac_file in conftest.exe conftest conftest.*; do
2704 test -f "$ac_file" || continue
2705 case $ac_file in
81ecdfbb 2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 2707 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
2708 break;;
2709 * ) break;;
2710 esac
2711done
84563040 2712else
81ecdfbb
RW
2713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715as_fn_error "cannot compute suffix of executables: cannot compile and link
2716See \`config.log' for more details." "$LINENO" 5; }
84563040 2717fi
bec39cab 2718rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2720$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
2721
2722rm -f conftest.$ac_ext
2723EXEEXT=$ac_cv_exeext
2724ac_exeext=$EXEEXT
81ecdfbb
RW
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2726$as_echo_n "checking for suffix of object files... " >&6; }
2727if test "${ac_cv_objext+set}" = set; then :
2728 $as_echo_n "(cached) " >&6
bec39cab 2729else
81ecdfbb 2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2731/* end confdefs.h. */
2732
2733int
2734main ()
2735{
2736
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741rm -f conftest.o conftest.obj
81ecdfbb
RW
2742if { { ac_try="$ac_compile"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748$as_echo "$ac_try_echo"; } >&5
2749 (eval "$ac_compile") 2>&5
bec39cab 2750 ac_status=$?
81ecdfbb
RW
2751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2752 test $ac_status = 0; }; then :
2753 for ac_file in conftest.o conftest.obj conftest.*; do
2754 test -f "$ac_file" || continue;
bec39cab 2755 case $ac_file in
81ecdfbb 2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
2757 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2758 break;;
2759 esac
2760done
2761else
81ecdfbb 2762 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2763sed 's/^/| /' conftest.$ac_ext >&5
2764
81ecdfbb
RW
2765{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767as_fn_error "cannot compute suffix of object files: cannot compile
2768See \`config.log' for more details." "$LINENO" 5; }
84563040 2769fi
bec39cab
AC
2770rm -f conftest.$ac_cv_objext conftest.$ac_ext
2771fi
81ecdfbb
RW
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2773$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
2774OBJEXT=$ac_cv_objext
2775ac_objext=$OBJEXT
81ecdfbb
RW
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2777$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2778if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2779 $as_echo_n "(cached) " >&6
bec39cab 2780else
81ecdfbb 2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2782/* end confdefs.h. */
2783
2784int
2785main ()
2786{
2787#ifndef __GNUC__
2788 choke me
2789#endif
84563040 2790
bec39cab
AC
2791 ;
2792 return 0;
2793}
2794_ACEOF
81ecdfbb 2795if ac_fn_c_try_compile "$LINENO"; then :
bec39cab 2796 ac_compiler_gnu=yes
84563040 2797else
81ecdfbb 2798 ac_compiler_gnu=no
84563040 2799fi
81ecdfbb 2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2801ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 2802
bec39cab 2803fi
81ecdfbb
RW
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2805$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2806if test $ac_compiler_gnu = yes; then
2807 GCC=yes
2808else
2809 GCC=
2810fi
bec39cab
AC
2811ac_test_CFLAGS=${CFLAGS+set}
2812ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2814$as_echo_n "checking whether $CC accepts -g... " >&6; }
2815if test "${ac_cv_prog_cc_g+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817else
2818 ac_save_c_werror_flag=$ac_c_werror_flag
2819 ac_c_werror_flag=yes
2820 ac_cv_prog_cc_g=no
2821 CFLAGS="-g"
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2823/* end confdefs.h. */
2824
2825int
2826main ()
2827{
2828
2829 ;
2830 return 0;
2831}
2832_ACEOF
81ecdfbb 2833if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
2834 ac_cv_prog_cc_g=yes
2835else
81ecdfbb
RW
2836 CFLAGS=""
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848if ac_fn_c_try_compile "$LINENO"; then :
2849
2850else
2851 ac_c_werror_flag=$ac_save_c_werror_flag
2852 CFLAGS="-g"
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855
2856int
2857main ()
2858{
84563040 2859
81ecdfbb
RW
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_cv_prog_cc_g=yes
2866fi
2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040 2868fi
81ecdfbb 2869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2870fi
81ecdfbb
RW
2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 ac_c_werror_flag=$ac_save_c_werror_flag
2873fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2875$as_echo "$ac_cv_prog_cc_g" >&6; }
84563040 2876if test "$ac_test_CFLAGS" = set; then
bec39cab 2877 CFLAGS=$ac_save_CFLAGS
84563040
DJ
2878elif test $ac_cv_prog_cc_g = yes; then
2879 if test "$GCC" = yes; then
2880 CFLAGS="-g -O2"
2881 else
2882 CFLAGS="-g"
2883 fi
2884else
2885 if test "$GCC" = yes; then
2886 CFLAGS="-O2"
2887 else
2888 CFLAGS=
2889 fi
2890fi
81ecdfbb
RW
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2892$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2893if test "${ac_cv_prog_cc_c89+set}" = set; then :
2894 $as_echo_n "(cached) " >&6
bec39cab 2895else
81ecdfbb 2896 ac_cv_prog_cc_c89=no
bec39cab 2897ac_save_CC=$CC
81ecdfbb 2898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2899/* end confdefs.h. */
2900#include <stdarg.h>
2901#include <stdio.h>
2902#include <sys/types.h>
2903#include <sys/stat.h>
2904/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2905struct buf { int x; };
2906FILE * (*rcsopen) (struct buf *, struct stat *, int);
2907static char *e (p, i)
2908 char **p;
2909 int i;
2910{
2911 return p[i];
2912}
2913static char *f (char * (*g) (char **, int), char **p, ...)
2914{
2915 char *s;
2916 va_list v;
2917 va_start (v,p);
2918 s = g (p, va_arg (v,int));
2919 va_end (v);
2920 return s;
2921}
2922
2923/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2924 function prototypes and stuff, but not '\xHH' hex character constants.
2925 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2926 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
2927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2928 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2929 that's true only with -std. */
bec39cab
AC
2930int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2931
81ecdfbb
RW
2932/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2933 inside strings and character constants. */
2934#define FOO(x) 'x'
2935int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2936
bec39cab
AC
2937int test (int i, double x);
2938struct s1 {int (*f) (int a);};
2939struct s2 {int (*f) (double a);};
2940int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2941int argc;
2942char **argv;
2943int
2944main ()
2945{
2946return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2947 ;
2948 return 0;
2949}
2950_ACEOF
81ecdfbb
RW
2951for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2953do
2954 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
2955 if ac_fn_c_try_compile "$LINENO"; then :
2956 ac_cv_prog_cc_c89=$ac_arg
bec39cab 2957fi
81ecdfbb
RW
2958rm -f core conftest.err conftest.$ac_objext
2959 test "x$ac_cv_prog_cc_c89" != "xno" && break
bec39cab 2960done
81ecdfbb 2961rm -f conftest.$ac_ext
bec39cab
AC
2962CC=$ac_save_CC
2963
2964fi
81ecdfbb
RW
2965# AC_CACHE_VAL
2966case "x$ac_cv_prog_cc_c89" in
2967 x)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2969$as_echo "none needed" >&6; } ;;
2970 xno)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2972$as_echo "unsupported" >&6; } ;;
bec39cab 2973 *)
81ecdfbb
RW
2974 CC="$CC $ac_cv_prog_cc_c89"
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2976$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bec39cab 2977esac
81ecdfbb 2978if test "x$ac_cv_prog_cc_c89" != xno; then :
bec39cab 2979
dae5f5cf
DJ
2980fi
2981
dae5f5cf 2982ac_ext=c
bec39cab
AC
2983ac_cpp='$CPP $CPPFLAGS'
2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040
DJ
2987
2988
81ecdfbb
RW
2989ac_ext=c
2990ac_cpp='$CPP $CPPFLAGS'
2991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2995$as_echo_n "checking how to run the C preprocessor... " >&6; }
2996# On Suns, sometimes $CPP names a directory.
2997if test -n "$CPP" && test -d "$CPP"; then
2998 CPP=
2999fi
3000if test -z "$CPP"; then
3001 if test "${ac_cv_prog_CPP+set}" = set; then :
3002 $as_echo_n "(cached) " >&6
3003else
3004 # Double quotes because CPP needs to be expanded
3005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3006 do
3007 ac_preproc_ok=false
3008for ac_c_preproc_warn_flag in '' yes
3009do
3010 # Use a header file that comes with gcc, so configuring glibc
3011 # with a fresh cross-compiler works.
3012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3013 # <limits.h> exists even on freestanding compilers.
3014 # On the NeXT, cc -E runs the code through the compiler's parser,
3015 # not just through cpp. "Syntax error" is here to catch this case.
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017/* end confdefs.h. */
3018#ifdef __STDC__
3019# include <limits.h>
3020#else
3021# include <assert.h>
3022#endif
3023 Syntax error
fd462a61 3024_ACEOF
81ecdfbb 3025if ac_fn_c_try_cpp "$LINENO"; then :
fd462a61 3026
81ecdfbb
RW
3027else
3028 # Broken: fails on valid input.
3029continue
3030fi
3031rm -f conftest.err conftest.$ac_ext
fd462a61 3032
81ecdfbb
RW
3033 # OK, works on sane cases. Now check whether nonexistent headers
3034 # can be detected and how.
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036/* end confdefs.h. */
3037#include <ac_nonexistent.h>
3038_ACEOF
3039if ac_fn_c_try_cpp "$LINENO"; then :
3040 # Broken: success on invalid input.
3041continue
3042else
3043 # Passes both tests.
3044ac_preproc_ok=:
3045break
3046fi
3047rm -f conftest.err conftest.$ac_ext
fd462a61 3048
d6e9fb05 3049done
81ecdfbb
RW
3050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051rm -f conftest.err conftest.$ac_ext
3052if $ac_preproc_ok; then :
3053 break
d6e9fb05 3054fi
dae5f5cf 3055
81ecdfbb
RW
3056 done
3057 ac_cv_prog_CPP=$CPP
dae5f5cf 3058
81ecdfbb
RW
3059fi
3060 CPP=$ac_cv_prog_CPP
bec39cab 3061else
81ecdfbb 3062 ac_cv_prog_CPP=$CPP
bec39cab 3063fi
81ecdfbb
RW
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3065$as_echo "$CPP" >&6; }
3066ac_preproc_ok=false
3067for ac_c_preproc_warn_flag in '' yes
3068do
3069 # Use a header file that comes with gcc, so configuring glibc
3070 # with a fresh cross-compiler works.
3071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072 # <limits.h> exists even on freestanding compilers.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp. "Syntax error" is here to catch this case.
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h. */
3077#ifdef __STDC__
3078# include <limits.h>
3079#else
3080# include <assert.h>
3081#endif
3082 Syntax error
3083_ACEOF
3084if ac_fn_c_try_cpp "$LINENO"; then :
dae5f5cf 3085
bec39cab 3086else
81ecdfbb
RW
3087 # Broken: fails on valid input.
3088continue
bec39cab 3089fi
81ecdfbb 3090rm -f conftest.err conftest.$ac_ext
d6e9fb05 3091
81ecdfbb 3092 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3093 # can be detected and how.
81ecdfbb 3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3095/* end confdefs.h. */
3096#include <ac_nonexistent.h>
3097_ACEOF
81ecdfbb 3098if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3099 # Broken: success on invalid input.
3100continue
3101else
bec39cab
AC
3102 # Passes both tests.
3103ac_preproc_ok=:
3104break
3105fi
3106rm -f conftest.err conftest.$ac_ext
3107
3108done
3109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3110rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3111if $ac_preproc_ok; then :
3112
3113else
3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116as_fn_error "C preprocessor \"$CPP\" fails sanity check
3117See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3118fi
3119
81ecdfbb
RW
3120ac_ext=c
3121ac_cpp='$CPP $CPPFLAGS'
3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124ac_compiler_gnu=$ac_cv_c_compiler_gnu
bec39cab 3125
81ecdfbb
RW
3126
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3128$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3129if test "${ac_cv_path_GREP+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
bec39cab 3131else
81ecdfbb
RW
3132 if test -z "$GREP"; then
3133 ac_path_GREP_found=false
3134 # Loop through the user's path and test for each of PROGNAME-LIST
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
bec39cab 3137do
81ecdfbb
RW
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_prog in grep ggrep; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3143 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3144# Check for GNU ac_path_GREP and select it if it is found.
3145 # Check for GNU $ac_path_GREP
3146case `"$ac_path_GREP" --version 2>&1` in
3147*GNU*)
3148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3149*)
3150 ac_count=0
3151 $as_echo_n 0123456789 >"conftest.in"
3152 while :
3153 do
3154 cat "conftest.in" "conftest.in" >"conftest.tmp"
3155 mv "conftest.tmp" "conftest.in"
3156 cp "conftest.in" "conftest.nl"
3157 $as_echo 'GREP' >> "conftest.nl"
3158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3160 as_fn_arith $ac_count + 1 && ac_count=$as_val
3161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3162 # Best one so far, save it but keep looking for a better one
3163 ac_cv_path_GREP="$ac_path_GREP"
3164 ac_path_GREP_max=$ac_count
3165 fi
3166 # 10*(2^10) chars as input seems more than enough
3167 test $ac_count -gt 10 && break
3168 done
3169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3170esac
3171
3172 $ac_path_GREP_found && break 3
3173 done
3174 done
3175 done
3176IFS=$as_save_IFS
3177 if test -z "$ac_cv_path_GREP"; then
3178 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bec39cab
AC
3179 fi
3180else
81ecdfbb 3181 ac_cv_path_GREP=$GREP
bec39cab 3182fi
bec39cab 3183
84563040 3184fi
81ecdfbb
RW
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3186$as_echo "$ac_cv_path_GREP" >&6; }
3187 GREP="$ac_cv_path_GREP"
bec39cab 3188
bec39cab 3189
81ecdfbb
RW
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3191$as_echo_n "checking for egrep... " >&6; }
3192if test "${ac_cv_path_EGREP+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3194else
3195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3196 then ac_cv_path_EGREP="$GREP -E"
3197 else
3198 if test -z "$EGREP"; then
3199 ac_path_EGREP_found=false
3200 # Loop through the user's path and test for each of PROGNAME-LIST
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3203do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_prog in egrep; do
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3209 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3210# Check for GNU ac_path_EGREP and select it if it is found.
3211 # Check for GNU $ac_path_EGREP
3212case `"$ac_path_EGREP" --version 2>&1` in
3213*GNU*)
3214 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3215*)
3216 ac_count=0
3217 $as_echo_n 0123456789 >"conftest.in"
3218 while :
3219 do
3220 cat "conftest.in" "conftest.in" >"conftest.tmp"
3221 mv "conftest.tmp" "conftest.in"
3222 cp "conftest.in" "conftest.nl"
3223 $as_echo 'EGREP' >> "conftest.nl"
3224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3226 as_fn_arith $ac_count + 1 && ac_count=$as_val
3227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3228 # Best one so far, save it but keep looking for a better one
3229 ac_cv_path_EGREP="$ac_path_EGREP"
3230 ac_path_EGREP_max=$ac_count
3231 fi
3232 # 10*(2^10) chars as input seems more than enough
3233 test $ac_count -gt 10 && break
3234 done
3235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3236esac
bec39cab 3237
81ecdfbb
RW
3238 $ac_path_EGREP_found && break 3
3239 done
3240 done
3241 done
3242IFS=$as_save_IFS
3243 if test -z "$ac_cv_path_EGREP"; then
3244 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3245 fi
bec39cab 3246else
81ecdfbb 3247 ac_cv_path_EGREP=$EGREP
84563040 3248fi
bec39cab 3249
81ecdfbb 3250 fi
b80864fb 3251fi
81ecdfbb
RW
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3253$as_echo "$ac_cv_path_EGREP" >&6; }
3254 EGREP="$ac_cv_path_EGREP"
b80864fb
DJ
3255
3256
81ecdfbb
RW
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3258$as_echo_n "checking for ANSI C header files... " >&6; }
3259if test "${ac_cv_header_stdc+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
84563040 3261else
81ecdfbb 3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3263/* end confdefs.h. */
84563040
DJ
3264#include <stdlib.h>
3265#include <stdarg.h>
3266#include <string.h>
3267#include <float.h>
bec39cab
AC
3268
3269int
3270main ()
3271{
3272
3273 ;
3274 return 0;
3275}
3276_ACEOF
81ecdfbb 3277if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
3278 ac_cv_header_stdc=yes
3279else
81ecdfbb 3280 ac_cv_header_stdc=no
84563040 3281fi
81ecdfbb 3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040
DJ
3283
3284if test $ac_cv_header_stdc = yes; then
3285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3287/* end confdefs.h. */
84563040 3288#include <string.h>
bec39cab
AC
3289
3290_ACEOF
84563040 3291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3292 $EGREP "memchr" >/dev/null 2>&1; then :
3293
84563040 3294else
84563040
DJ
3295 ac_cv_header_stdc=no
3296fi
3297rm -f conftest*
3298
3299fi
3300
3301if test $ac_cv_header_stdc = yes; then
3302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3304/* end confdefs.h. */
84563040 3305#include <stdlib.h>
bec39cab
AC
3306
3307_ACEOF
84563040 3308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3309 $EGREP "free" >/dev/null 2>&1; then :
3310
84563040 3311else
84563040
DJ
3312 ac_cv_header_stdc=no
3313fi
3314rm -f conftest*
3315
3316fi
bec39cab
AC
3317
3318if test $ac_cv_header_stdc = yes; then
3319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3320 if test "$cross_compiling" = yes; then :
bec39cab
AC
3321 :
3322else
81ecdfbb 3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3324/* end confdefs.h. */
3325#include <ctype.h>
81ecdfbb 3326#include <stdlib.h>
bec39cab
AC
3327#if ((' ' & 0x0FF) == 0x020)
3328# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3329# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3330#else
3331# define ISLOWER(c) \
3332 (('a' <= (c) && (c) <= 'i') \
3333 || ('j' <= (c) && (c) <= 'r') \
3334 || ('s' <= (c) && (c) <= 'z'))
3335# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3336#endif
3337
3338#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3339int
3340main ()
3341{
3342 int i;
3343 for (i = 0; i < 256; i++)
3344 if (XOR (islower (i), ISLOWER (i))
3345 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
3346 return 2;
3347 return 0;
bec39cab
AC
3348}
3349_ACEOF
81ecdfbb 3350if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3351
81ecdfbb
RW
3352else
3353 ac_cv_header_stdc=no
bec39cab 3354fi
81ecdfbb
RW
3355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3356 conftest.$ac_objext conftest.beam conftest.$ac_ext
3357fi
3358
bec39cab
AC
3359fi
3360fi
81ecdfbb
RW
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3362$as_echo "$ac_cv_header_stdc" >&6; }
bec39cab
AC
3363if test $ac_cv_header_stdc = yes; then
3364
81ecdfbb 3365$as_echo "#define STDC_HEADERS 1" >>confdefs.h
bec39cab
AC
3366
3367fi
3368
bec39cab 3369# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bec39cab
AC
3370for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3371 inttypes.h stdint.h unistd.h
81ecdfbb
RW
3372do :
3373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3374ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3375"
3376eval as_val=\$$as_ac_Header
3377 if test "x$as_val" = x""yes; then :
bec39cab 3378 cat >>confdefs.h <<_ACEOF
81ecdfbb 3379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
3380_ACEOF
3381
3382fi
3383
3384done
3385
3386
3387
81ecdfbb
RW
3388 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3389if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3390 MINIX=yes
3391else
3392 MINIX=
3393fi
bec39cab
AC
3394
3395
81ecdfbb 3396 if test "$MINIX" = yes; then
bec39cab 3397
81ecdfbb 3398$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
bec39cab
AC
3399
3400
81ecdfbb 3401$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
bec39cab
AC
3402
3403
81ecdfbb 3404$as_echo "#define _MINIX 1" >>confdefs.h
bec39cab 3405
81ecdfbb 3406 fi
bec39cab
AC
3407
3408
81ecdfbb
RW
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3410$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3411if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3412 $as_echo_n "(cached) " >&6
3413else
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415/* end confdefs.h. */
b80864fb 3416
81ecdfbb
RW
3417# define __EXTENSIONS__ 1
3418 $ac_includes_default
3419int
3420main ()
3421{
b80864fb 3422
81ecdfbb
RW
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427if ac_fn_c_try_compile "$LINENO"; then :
3428 ac_cv_safe_to_define___extensions__=yes
3429else
3430 ac_cv_safe_to_define___extensions__=no
3431fi
3432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433fi
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3435$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3436 test $ac_cv_safe_to_define___extensions__ = yes &&
3437 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
b80864fb 3438
81ecdfbb 3439 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
b80864fb 3440
81ecdfbb 3441 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
b80864fb 3442
81ecdfbb 3443 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
b80864fb 3444
81ecdfbb 3445 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
b80864fb 3446
68070c10
PA
3447
3448
3449
81ecdfbb
RW
3450ac_aux_dir=
3451for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3452 for ac_t in install-sh install.sh shtool; do
3453 if test -f "$ac_dir/$ac_t"; then
3454 ac_aux_dir=$ac_dir
3455 ac_install_sh="$ac_aux_dir/$ac_t -c"
3456 break 2
3457 fi
3458 done
3459done
3460if test -z "$ac_aux_dir"; then
3461 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3462fi
68070c10 3463
81ecdfbb
RW
3464# These three variables are undocumented and unsupported,
3465# and are intended to be withdrawn in a future Autoconf release.
3466# They can cause serious problems if a builder's source tree is in a directory
3467# whose full name contains unusual characters.
3468ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3469ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3470ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
68070c10 3471
bec39cab 3472
81ecdfbb
RW
3473# Make sure we can run config.sub.
3474$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3475 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
bec39cab 3476
81ecdfbb
RW
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3478$as_echo_n "checking build system type... " >&6; }
3479if test "${ac_cv_build+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
bec39cab 3481else
81ecdfbb
RW
3482 ac_build_alias=$build_alias
3483test "x$ac_build_alias" = x &&
3484 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3485test "x$ac_build_alias" = x &&
3486 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3487ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3488 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3489
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3492$as_echo "$ac_cv_build" >&6; }
3493case $ac_cv_build in
3494*-*-*) ;;
3495*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3496esac
3497build=$ac_cv_build
3498ac_save_IFS=$IFS; IFS='-'
3499set x $ac_cv_build
3500shift
3501build_cpu=$1
3502build_vendor=$2
3503shift; shift
3504# Remember, the first character of IFS is used to create $*,
3505# except with old shells:
3506build_os=$*
3507IFS=$ac_save_IFS
3508case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3509
3510
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3512$as_echo_n "checking host system type... " >&6; }
3513if test "${ac_cv_host+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
bec39cab 3515else
81ecdfbb
RW
3516 if test "x$host_alias" = x; then
3517 ac_cv_host=$ac_cv_build
3518else
3519 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3520 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
84563040 3521fi
bec39cab 3522
81ecdfbb
RW
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3525$as_echo "$ac_cv_host" >&6; }
3526case $ac_cv_host in
3527*-*-*) ;;
3528*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
bec39cab 3529esac
81ecdfbb
RW
3530host=$ac_cv_host
3531ac_save_IFS=$IFS; IFS='-'
3532set x $ac_cv_host
3533shift
3534host_cpu=$1
3535host_vendor=$2
3536shift; shift
3537# Remember, the first character of IFS is used to create $*,
3538# except with old shells:
3539host_os=$*
3540IFS=$ac_save_IFS
3541case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3542
3543
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3545$as_echo_n "checking target system type... " >&6; }
3546if test "${ac_cv_target+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
bec39cab 3548else
81ecdfbb
RW
3549 if test "x$target_alias" = x; then
3550 ac_cv_target=$ac_cv_host
3551else
3552 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3553 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
84563040
DJ
3554fi
3555
84563040 3556fi
81ecdfbb
RW
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3558$as_echo "$ac_cv_target" >&6; }
3559case $ac_cv_target in
3560*-*-*) ;;
3561*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3562esac
3563target=$ac_cv_target
3564ac_save_IFS=$IFS; IFS='-'
3565set x $ac_cv_target
3566shift
3567target_cpu=$1
3568target_vendor=$2
3569shift; shift
3570# Remember, the first character of IFS is used to create $*,
3571# except with old shells:
3572target_os=$*
3573IFS=$ac_save_IFS
3574case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
84563040
DJ
3575
3576
81ecdfbb
RW
3577# The aliases save the names the user supplied, while $host etc.
3578# will get canonicalized.
3579test -n "$target_alias" &&
3580 test "$program_prefix$program_suffix$program_transform_name" = \
3581 NONENONEs,x,x, &&
3582 program_prefix=${target_alias}-
4e799345
DJ
3583
3584
81ecdfbb
RW
3585# Find a good install program. We prefer a C program (faster),
3586# so one script is as good as another. But avoid the broken or
3587# incompatible versions:
3588# SysV /etc/install, /usr/sbin/install
3589# SunOS /usr/etc/install
3590# IRIX /sbin/install
3591# AIX /bin/install
3592# AmigaOS /C/install, which installs bootblocks on floppy discs
3593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3594# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3596# OS/2's system install, which has a completely different semantic
3597# ./install, which can be erroneously created by make from ./install.sh.
3598# Reject install programs that cannot install multiple files.
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3600$as_echo_n "checking for a BSD-compatible install... " >&6; }
3601if test -z "$INSTALL"; then
3602if test "${ac_cv_path_install+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
fd462a61 3607do
81ecdfbb
RW
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 # Account for people who put trailing slashes in PATH elements.
3611case $as_dir/ in #((
3612 ./ | .// | /[cC]/* | \
3613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3614 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3615 /usr/ucb/* ) ;;
3616 *)
3617 # OSF1 and SCO ODT 3.0 have their own names for install.
3618 # Don't use installbsd from OSF since it installs stuff as root
3619 # by default.
3620 for ac_prog in ginstall scoinst install; do
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3623 if test $ac_prog = install &&
3624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3625 # AIX install. It has an incompatible calling convention.
3626 :
3627 elif test $ac_prog = install &&
3628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3629 # program-specific install script used by HP pwplus--don't use.
3630 :
3631 else
3632 rm -rf conftest.one conftest.two conftest.dir
3633 echo one > conftest.one
3634 echo two > conftest.two
3635 mkdir conftest.dir
3636 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3637 test -s conftest.one && test -s conftest.two &&
3638 test -s conftest.dir/conftest.one &&
3639 test -s conftest.dir/conftest.two
3640 then
3641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3642 break 3
3643 fi
3644 fi
3645 fi
3646 done
3647 done
3648 ;;
3649esac
fd462a61 3650
81ecdfbb
RW
3651 done
3652IFS=$as_save_IFS
fd462a61 3653
81ecdfbb 3654rm -rf conftest.one conftest.two conftest.dir
fd462a61 3655
fd462a61 3656fi
81ecdfbb
RW
3657 if test "${ac_cv_path_install+set}" = set; then
3658 INSTALL=$ac_cv_path_install
3659 else
3660 # As a last resort, use the slow shell script. Don't cache a
3661 # value for INSTALL within a source directory, because that will
3662 # break other packages using the cache if that directory is
3663 # removed, or if the value is a relative name.
3664 INSTALL=$ac_install_sh
3665 fi
fd462a61 3666fi
81ecdfbb
RW
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3668$as_echo "$INSTALL" >&6; }
fd462a61 3669
81ecdfbb
RW
3670# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3671# It thinks the first close brace ends the variable substitution.
3672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
fd462a61 3673
81ecdfbb 3674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fd462a61 3675
81ecdfbb 3676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
e28b3332 3677
e28b3332 3678
81ecdfbb
RW
3679test "$program_prefix" != NONE &&
3680 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3681# Use a double $ so make ignores it.
3682test "$program_suffix" != NONE &&
3683 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3684# Double any \ or $.
3685# By default was `s,x,x', remove it if useless.
3686ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3687program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
e28b3332 3688
e28b3332 3689
81ecdfbb
RW
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3691$as_echo_n "checking for ANSI C header files... " >&6; }
3692if test "${ac_cv_header_stdc+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697#include <stdlib.h>
3698#include <stdarg.h>
3699#include <string.h>
3700#include <float.h>
e28b3332
DJ
3701
3702int
3703main ()
3704{
81ecdfbb 3705
e28b3332
DJ
3706 ;
3707 return 0;
3708}
3709_ACEOF
81ecdfbb
RW
3710if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_header_stdc=yes
e28b3332 3712else
81ecdfbb 3713 ac_cv_header_stdc=no
e28b3332 3714fi
81ecdfbb 3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28b3332 3716
81ecdfbb
RW
3717if test $ac_cv_header_stdc = yes; then
3718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68070c10 3720/* end confdefs.h. */
81ecdfbb 3721#include <string.h>
68070c10 3722
68070c10 3723_ACEOF
81ecdfbb
RW
3724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725 $EGREP "memchr" >/dev/null 2>&1; then :
3726
68070c10 3727else
81ecdfbb
RW
3728 ac_cv_header_stdc=no
3729fi
3730rm -f conftest*
68070c10
PA
3731
3732fi
68070c10 3733
81ecdfbb
RW
3734if test $ac_cv_header_stdc = yes; then
3735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737/* end confdefs.h. */
3738#include <stdlib.h>
68070c10 3739
68070c10 3740_ACEOF
81ecdfbb
RW
3741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3742 $EGREP "free" >/dev/null 2>&1; then :
68070c10
PA
3743
3744else
81ecdfbb 3745 ac_cv_header_stdc=no
68070c10 3746fi
81ecdfbb
RW
3747rm -f conftest*
3748
68070c10
PA
3749fi
3750
81ecdfbb
RW
3751if test $ac_cv_header_stdc = yes; then
3752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3753 if test "$cross_compiling" = yes; then :
3754 :
43d5792c 3755else
81ecdfbb 3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3757/* end confdefs.h. */
81ecdfbb
RW
3758#include <ctype.h>
3759#include <stdlib.h>
3760#if ((' ' & 0x0FF) == 0x020)
3761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3763#else
3764# define ISLOWER(c) \
3765 (('a' <= (c) && (c) <= 'i') \
3766 || ('j' <= (c) && (c) <= 'r') \
3767 || ('s' <= (c) && (c) <= 'z'))
3768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3769#endif
3770
3771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
bec39cab
AC
3772int
3773main ()
3774{
81ecdfbb
RW
3775 int i;
3776 for (i = 0; i < 256; i++)
3777 if (XOR (islower (i), ISLOWER (i))
3778 || toupper (i) != TOUPPER (i))
3779 return 2;
bec39cab
AC
3780 return 0;
3781}
3782_ACEOF
81ecdfbb 3783if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3784
81ecdfbb
RW
3785else
3786 ac_cv_header_stdc=no
43d5792c 3787fi
81ecdfbb
RW
3788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3789 conftest.$ac_objext conftest.beam conftest.$ac_ext
43d5792c 3790fi
e122f1f5 3791
68070c10 3792fi
81ecdfbb
RW
3793fi
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3795$as_echo "$ac_cv_header_stdc" >&6; }
3796if test $ac_cv_header_stdc = yes; then
68070c10 3797
81ecdfbb 3798$as_echo "#define STDC_HEADERS 1" >>confdefs.h
68070c10 3799
68070c10 3800fi
68070c10 3801
d26e3629
KY
3802ac_header_dirent=no
3803for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3804 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3806$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
3808 $as_echo_n "(cached) " >&6
3809else
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h. */
3812#include <sys/types.h>
3813#include <$ac_hdr>
3814
3815int
3816main ()
3817{
3818if ((DIR *) 0)
3819return 0;
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824if ac_fn_c_try_compile "$LINENO"; then :
3825 eval "$as_ac_Header=yes"
3826else
3827 eval "$as_ac_Header=no"
3828fi
3829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830fi
3831eval ac_res=\$$as_ac_Header
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3833$as_echo "$ac_res" >&6; }
3834eval as_val=\$$as_ac_Header
3835 if test "x$as_val" = x""yes; then :
3836 cat >>confdefs.h <<_ACEOF
3837#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3838_ACEOF
3839
3840ac_header_dirent=$ac_hdr; break
3841fi
3842
3843done
3844# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3845if test $ac_header_dirent = dirent.h; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3847$as_echo_n "checking for library containing opendir... " >&6; }
3848if test "${ac_cv_search_opendir+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850else
3851 ac_func_search_save_LIBS=$LIBS
3852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h. */
3854
3855/* Override any GCC internal prototype to avoid an error.
3856 Use char because int might match the return type of a GCC
3857 builtin and then its argument prototype would still apply. */
3858#ifdef __cplusplus
3859extern "C"
3860#endif
3861char opendir ();
3862int
3863main ()
3864{
3865return opendir ();
3866 ;
3867 return 0;
3868}
3869_ACEOF
3870for ac_lib in '' dir; do
3871 if test -z "$ac_lib"; then
3872 ac_res="none required"
3873 else
3874 ac_res=-l$ac_lib
3875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3876 fi
3877 if ac_fn_c_try_link "$LINENO"; then :
3878 ac_cv_search_opendir=$ac_res
3879fi
3880rm -f core conftest.err conftest.$ac_objext \
3881 conftest$ac_exeext
3882 if test "${ac_cv_search_opendir+set}" = set; then :
3883 break
3884fi
3885done
3886if test "${ac_cv_search_opendir+set}" = set; then :
3887
3888else
3889 ac_cv_search_opendir=no
3890fi
3891rm conftest.$ac_ext
3892LIBS=$ac_func_search_save_LIBS
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3895$as_echo "$ac_cv_search_opendir" >&6; }
3896ac_res=$ac_cv_search_opendir
3897if test "$ac_res" != no; then :
3898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3899
3900fi
3901
3902else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3904$as_echo_n "checking for library containing opendir... " >&6; }
3905if test "${ac_cv_search_opendir+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
3907else
3908 ac_func_search_save_LIBS=$LIBS
3909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h. */
3911
3912/* Override any GCC internal prototype to avoid an error.
3913 Use char because int might match the return type of a GCC
3914 builtin and then its argument prototype would still apply. */
3915#ifdef __cplusplus
3916extern "C"
3917#endif
3918char opendir ();
3919int
3920main ()
3921{
3922return opendir ();
3923 ;
3924 return 0;
3925}
3926_ACEOF
3927for ac_lib in '' x; do
3928 if test -z "$ac_lib"; then
3929 ac_res="none required"
3930 else
3931 ac_res=-l$ac_lib
3932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3933 fi
3934 if ac_fn_c_try_link "$LINENO"; then :
3935 ac_cv_search_opendir=$ac_res
3936fi
3937rm -f core conftest.err conftest.$ac_objext \
3938 conftest$ac_exeext
3939 if test "${ac_cv_search_opendir+set}" = set; then :
3940 break
3941fi
3942done
3943if test "${ac_cv_search_opendir+set}" = set; then :
3944
3945else
3946 ac_cv_search_opendir=no
3947fi
3948rm conftest.$ac_ext
3949LIBS=$ac_func_search_save_LIBS
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3952$as_echo "$ac_cv_search_opendir" >&6; }
3953ac_res=$ac_cv_search_opendir
3954if test "$ac_res" != no; then :
3955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3956
3957fi
3958
3959fi
3960
68070c10 3961
a1723c35 3962# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3963# for constant arguments. Useless!
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
3965$as_echo_n "checking for working alloca.h... " >&6; }
3966if test "${ac_cv_working_alloca_h+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968else
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h. */
3971#include <alloca.h>
3972int
3973main ()
3974{
3975char *p = (char *) alloca (2 * sizeof (int));
3976 if (p) return 0;
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981if ac_fn_c_try_link "$LINENO"; then :
3982 ac_cv_working_alloca_h=yes
3983else
3984 ac_cv_working_alloca_h=no
3985fi
3986rm -f core conftest.err conftest.$ac_objext \
3987 conftest$ac_exeext conftest.$ac_ext
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
3990$as_echo "$ac_cv_working_alloca_h" >&6; }
3991if test $ac_cv_working_alloca_h = yes; then
3992
3993$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
3994
3995fi
3996
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
3998$as_echo_n "checking for alloca... " >&6; }
3999if test "${ac_cv_func_alloca_works+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h. */
4004#ifdef __GNUC__
4005# define alloca __builtin_alloca
4006#else
4007# ifdef _MSC_VER
4008# include <malloc.h>
4009# define alloca _alloca
4010# else
4011# ifdef HAVE_ALLOCA_H
4012# include <alloca.h>
4013# else
4014# ifdef _AIX
4015 #pragma alloca
4016# else
4017# ifndef alloca /* predefined by HP cc +Olibcalls */
4018char *alloca ();
4019# endif
4020# endif
4021# endif
4022# endif
4023#endif
4024
4025int
4026main ()
4027{
4028char *p = (char *) alloca (1);
4029 if (p) return 0;
4030 ;
4031 return 0;
4032}
4033_ACEOF
4034if ac_fn_c_try_link "$LINENO"; then :
4035 ac_cv_func_alloca_works=yes
4036else
4037 ac_cv_func_alloca_works=no
4038fi
4039rm -f core conftest.err conftest.$ac_objext \
4040 conftest$ac_exeext conftest.$ac_ext
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4043$as_echo "$ac_cv_func_alloca_works" >&6; }
4044
4045if test $ac_cv_func_alloca_works = yes; then
4046
4047$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4048
4049else
4050 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4051# that cause trouble. Some versions do not even contain alloca or
4052# contain a buggy version. If you still want to use their alloca,
4053# use ar to extract alloca.o from them instead of compiling alloca.c.
4054
4055ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4056
4057$as_echo "#define C_ALLOCA 1" >>confdefs.h
4058
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4061$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4062if test "${ac_cv_os_cray+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4064else
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h. */
4067#if defined CRAY && ! defined CRAY2
4068webecray
4069#else
4070wenotbecray
4071#endif
4072
4073_ACEOF
4074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 $EGREP "webecray" >/dev/null 2>&1; then :
4076 ac_cv_os_cray=yes
4077else
4078 ac_cv_os_cray=no
4079fi
4080rm -f conftest*
4081
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4084$as_echo "$ac_cv_os_cray" >&6; }
4085if test $ac_cv_os_cray = yes; then
4086 for ac_func in _getb67 GETB67 getb67; do
4087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4089eval as_val=\$$as_ac_var
4090 if test "x$as_val" = x""yes; then :
4091
4092cat >>confdefs.h <<_ACEOF
4093#define CRAY_STACKSEG_END $ac_func
4094_ACEOF
4095
4096 break
4097fi
4098
4099 done
4100fi
4101
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4103$as_echo_n "checking stack direction for C alloca... " >&6; }
4104if test "${ac_cv_c_stack_direction+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106else
4107 if test "$cross_compiling" = yes; then :
4108 ac_cv_c_stack_direction=0
4109else
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h. */
4112$ac_includes_default
4113int
4114find_stack_direction ()
4115{
4116 static char *addr = 0;
4117 auto char dummy;
4118 if (addr == 0)
4119 {
4120 addr = &dummy;
4121 return find_stack_direction ();
4122 }
4123 else
4124 return (&dummy > addr) ? 1 : -1;
4125}
4126
4127int
4128main ()
4129{
4130 return find_stack_direction () < 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_run "$LINENO"; then :
4134 ac_cv_c_stack_direction=1
4135else
4136 ac_cv_c_stack_direction=-1
4137fi
4138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4139 conftest.$ac_objext conftest.beam conftest.$ac_ext
4140fi
4141
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4144$as_echo "$ac_cv_c_stack_direction" >&6; }
4145cat >>confdefs.h <<_ACEOF
4146#define STACK_DIRECTION $ac_cv_c_stack_direction
4147_ACEOF
4148
4149
4150fi
4151
2fa291ac 4152for 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
4153do :
4154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4155ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4156eval as_val=\$$as_ac_Header
4157 if test "x$as_val" = x""yes; then :
68070c10 4158 cat >>confdefs.h <<_ACEOF
81ecdfbb 4159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68070c10
PA
4160_ACEOF
4161
ec56be1b 4162fi
ec56be1b 4163
81ecdfbb
RW
4164done
4165
f8255c2a 4166for ac_func in pread pwrite pread64 readlink
81ecdfbb
RW
4167do :
4168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4169ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4170eval as_val=\$$as_ac_var
4171 if test "x$as_val" = x""yes; then :
4172 cat >>confdefs.h <<_ACEOF
4173#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ec56be1b
PA
4174_ACEOF
4175
81ecdfbb
RW
4176fi
4177done
ec56be1b 4178
bb0116a4 4179for ac_func in memmem vasprintf vsnprintf
81ecdfbb 4180do :
bb0116a4
JB
4181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4182ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4183eval as_val=\$$as_ac_var
4184 if test "x$as_val" = x""yes; then :
ec56be1b 4185 cat >>confdefs.h <<_ACEOF
bb0116a4 4186#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ec56be1b
PA
4187_ACEOF
4188
81ecdfbb
RW
4189else
4190 case " $LIBOBJS " in
4191 *" $ac_func.$ac_objext "* ) ;;
4192 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4193 ;;
4194esac
ec56be1b 4195
43d5792c 4196fi
81ecdfbb 4197done
43d5792c
DJ
4198
4199
e122f1f5 4200
0fb4aa4b
PA
4201# Check for UST
4202ustlibs=""
4203ustinc=""
4204
4205
4206# Check whether --with-ust was given.
4207if test "${with_ust+set}" = set; then :
4208 withval=$with_ust;
4209fi
4210
4211
4212# Check whether --with-ust_include was given.
4213if test "${with_ust_include+set}" = set; then :
4214 withval=$with_ust_include;
4215fi
4216
4217
4218# Check whether --with-ust_lib was given.
4219if test "${with_ust_lib+set}" = set; then :
4220 withval=$with_ust_lib;
4221fi
4222
4223
4224case $with_ust in
4225 no)
4226 ustlibs=
4227 ustinc=
4228 ;;
4229 "" | yes)
4230 ustlibs=" -lust "
4231 ustinc=""
4232 ;;
4233 *)
4234 ustlibs="-L$with_ust/lib -lust"
4235 ustinc="-I$with_ust/include "
4236 ;;
4237esac
4238if test "x$with_ust_include" != x; then
4239 ustinc="-I$with_ust_include "
4240fi
4241if test "x$with_ust_lib" != x; then
4242 ustlibs="-L$with_ust_lib -lust"
4243fi
4244
4245if test "x$with_ust" != "xno"; then
4246 saved_CFLAGS="$CFLAGS"
4247 CFLAGS="$CFLAGS $ustinc"
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
4249$as_echo_n "checking for ust... " >&6; }
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251/* end confdefs.h. */
4252
4253#define CONFIG_UST_GDB_INTEGRATION
4254#include <ust/ust.h>
4255
4256int
4257main ()
4258{
4259
4260 ;
4261 return 0;
4262}
4263_ACEOF
4264if ac_fn_c_try_compile "$LINENO"; then :
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266$as_echo "yes" >&6; };
4267$as_echo "#define HAVE_UST 1" >>confdefs.h
4268
4269else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271$as_echo "no" >&6; }; ustlibs= ; ustinc=
4272fi
4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 CFLAGS="$saved_CFLAGS"
4275fi
4276
4277# Flags needed for UST
4278
4279
4280
d4596a3d
PA
4281# Check whether --enable-werror was given.
4282if test "${enable_werror+set}" = set; then :
4283 enableval=$enable_werror; case "${enableval}" in
4284 yes | y) ERROR_ON_WARNING="yes" ;;
4285 no | n) ERROR_ON_WARNING="no" ;;
4286 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4287 esac
4288fi
4289
4290
4291# Enable -Werror by default when using gcc
4292if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4293 ERROR_ON_WARNING=yes
4294fi
4295
4296WERROR_CFLAGS=""
4297if test "${ERROR_ON_WARNING}" = yes ; then
4298 WERROR_CFLAGS="-Werror"
4299fi
4300
4301build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
854d88f0 4302-Wformat-nonliteral -Wno-char-subscripts"
d4596a3d
PA
4303
4304WARN_CFLAGS=""
4305if test "x$GCC" = xyes
4306then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4308$as_echo_n "checking compiler warning flags... " >&6; }
4309 # Separate out the -Werror flag as some files just cannot be
4310 # compiled with it enabled.
4311 for w in ${build_warnings}; do
4312 case $w in
4313 -Werr*) WERROR_CFLAGS=-Werror ;;
4314 *) # Check that GCC accepts it
4315 saved_CFLAGS="$CFLAGS"
4316 CFLAGS="$CFLAGS $w"
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h. */
4319
4320int
4321main ()
4322{
4323
4324 ;
4325 return 0;
4326}
4327_ACEOF
4328if ac_fn_c_try_compile "$LINENO"; then :
4329 WARN_CFLAGS="${WARN_CFLAGS} $w"
4330fi
4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 CFLAGS="$saved_CFLAGS"
4333 esac
4334 done
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4336$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4337fi
4338
4339
4340
10e86dd7
DE
4341old_LIBS="$LIBS"
4342LIBS="$LIBS -ldl"
4343for ac_func in dladdr
4344do :
4345 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
4346if test "x$ac_cv_func_dladdr" = x""yes; then :
4347 cat >>confdefs.h <<_ACEOF
4348#define HAVE_DLADDR 1
4349_ACEOF
4350
4351fi
4352done
4353
4354LIBS="$old_LIBS"
4355
81ecdfbb
RW
4356have_errno=no
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4358$as_echo_n "checking for errno... " >&6; }
4359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f450004a 4360/* end confdefs.h. */
ccbd4912 4361
81ecdfbb
RW
4362#if HAVE_ERRNO_H
4363#include <errno.h>
4364#endif
f450004a
DJ
4365int
4366main ()
4367{
81ecdfbb
RW
4368static int x; x = errno;
4369 ;
f450004a 4370 return 0;
81ecdfbb
RW
4371}
4372_ACEOF
4373if ac_fn_c_try_link "$LINENO"; then :
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4375$as_echo "yes - in errno.h" >&6; };
4376$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4377 have_errno=yes
4378fi
4379rm -f core conftest.err conftest.$ac_objext \
4380 conftest$ac_exeext conftest.$ac_ext
4381if test $have_errno = no; then
4382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h. */
4384
4385#if HAVE_ERRNO_H
4386#include <errno.h>
4387#endif
4388int
4389main ()
4390{
4391extern int errno; static int x; x = errno;
f450004a
DJ
4392 ;
4393 return 0;
4394}
4395_ACEOF
81ecdfbb
RW
4396if ac_fn_c_try_link "$LINENO"; then :
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
4398$as_echo "yes - must define" >&6; };
4399$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4400
4401$as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
4402
f450004a 4403else
81ecdfbb
RW
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
4406fi
4407rm -f core conftest.err conftest.$ac_objext \
4408 conftest$ac_exeext conftest.$ac_ext
4409fi
4410
4411ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
4412if test "x$ac_cv_have_decl_strerror" = x""yes; then :
4413 ac_have_decl=1
4414else
4415 ac_have_decl=0
4416fi
f450004a 4417
81ecdfbb
RW
4418cat >>confdefs.h <<_ACEOF
4419#define HAVE_DECL_STRERROR $ac_have_decl
4420_ACEOF
4421ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
4422if test "x$ac_cv_have_decl_perror" = x""yes; then :
4423 ac_have_decl=1
4424else
4425 ac_have_decl=0
f450004a 4426fi
81ecdfbb
RW
4427
4428cat >>confdefs.h <<_ACEOF
4429#define HAVE_DECL_PERROR $ac_have_decl
4430_ACEOF
4431ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4432if test "x$ac_cv_have_decl_memmem" = x""yes; then :
4433 ac_have_decl=1
4434else
4435 ac_have_decl=0
f450004a 4436fi
81ecdfbb
RW
4437
4438cat >>confdefs.h <<_ACEOF
4439#define HAVE_DECL_MEMMEM $ac_have_decl
4440_ACEOF
bb0116a4
JB
4441ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
4442if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
4443 ac_have_decl=1
4444else
4445 ac_have_decl=0
4446fi
4447
4448cat >>confdefs.h <<_ACEOF
4449#define HAVE_DECL_VASPRINTF $ac_have_decl
4450_ACEOF
4451ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
4452if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
4453 ac_have_decl=1
4454else
4455 ac_have_decl=0
4456fi
4457
4458cat >>confdefs.h <<_ACEOF
4459#define HAVE_DECL_VSNPRINTF $ac_have_decl
4460_ACEOF
81ecdfbb
RW
4461
4462
4463ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4464#include <sys/socket.h>
4465
4466"
4467if test "x$ac_cv_type_socklen_t" = x""yes; then :
f450004a 4468
ccbd4912 4469cat >>confdefs.h <<_ACEOF
f450004a
DJ
4470#define HAVE_SOCKLEN_T 1
4471_ACEOF
4472
f450004a 4473
ccbd4912 4474fi
f450004a 4475
fb1e4ffc 4476
c16158bc
JM
4477
4478
81ecdfbb
RW
4479# Check whether --with-pkgversion was given.
4480if test "${with_pkgversion+set}" = set; then :
4481 withval=$with_pkgversion; case "$withval" in
4482 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
c16158bc
JM
4483 no) PKGVERSION= ;;
4484 *) PKGVERSION="($withval) " ;;
4485 esac
4486else
4487 PKGVERSION="(GDB) "
4488
81ecdfbb
RW
4489fi
4490
c16158bc
JM
4491
4492
4493
4494
81ecdfbb
RW
4495# Check whether --with-bugurl was given.
4496if test "${with_bugurl+set}" = set; then :
4497 withval=$with_bugurl; case "$withval" in
4498 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
c16158bc
JM
4499 no) BUGURL=
4500 ;;
4501 *) BUGURL="$withval"
4502 ;;
4503 esac
4504else
4505 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4506
81ecdfbb
RW
4507fi
4508
c16158bc
JM
4509 case ${BUGURL} in
4510 "")
4511 REPORT_BUGS_TO=
4512 REPORT_BUGS_TEXI=
4513 ;;
4514 *)
4515 REPORT_BUGS_TO="<$BUGURL>"
4516 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4517 ;;
4518 esac;
4519
4520
4521
4522
4523cat >>confdefs.h <<_ACEOF
4524#define PKGVERSION "$PKGVERSION"
4525_ACEOF
4526
4527
4528cat >>confdefs.h <<_ACEOF
4529#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4530_ACEOF
4531
4532
8838b45e
NS
4533# Check for various supplementary target information (beyond the
4534# triplet) which might affect the choices in configure.srv.
4535case "${target}" in
4536 i[34567]86-*-linux*)
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
4538$as_echo_n "checking if building for x86-64... " >&6; }
4539if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541else
4542 save_CPPFLAGS="$CPPFLAGS"
4543 CPPFLAGS="$CPPFLAGS $CFLAGS"
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h. */
4546
4547#if __x86_64__
4548got it
4549#endif
4550
4551_ACEOF
4552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4553 $EGREP "got it" >/dev/null 2>&1; then :
4554 gdb_cv_i386_is_x86_64=yes
4555else
4556 gdb_cv_i386_is_x86_64=no
4557fi
4558rm -f conftest*
4559
4560 CPPFLAGS="$save_CPPFLAGS"
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
4563$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
4564 ;;
9ac544ce
MK
4565 m68k-*-*)
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
4567$as_echo_n "checking if building for Coldfire... " >&6; }
4568if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570else
4571 save_CPPFLAGS="$CPPFLAGS"
4572 CPPFLAGS="$CPPFLAGS $CFLAGS"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h. */
4575
4576#ifdef __mcoldfire__
4577got it
4578#endif
4579
4580_ACEOF
4581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4582 $EGREP "got it" >/dev/null 2>&1; then :
4583 gdb_cv_m68k_is_coldfire=yes
4584else
4585 gdb_cv_m68k_is_coldfire=no
4586fi
4587rm -f conftest*
4588
4589 CPPFLAGS="$save_CPPFLAGS"
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
4592$as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
4593 ;;
8838b45e
NS
4594esac
4595
7ea81414 4596. ${srcdir}/configure.srv
d6e9fb05 4597
68070c10
PA
4598if test "${srv_mingwce}" = "yes"; then
4599 LIBS="$LIBS -lws2"
4600elif test "${srv_mingw}" = "yes"; then
12ea4b69 4601 LIBS="$LIBS -lws2_32"
ac8c974e
AR
4602elif test "${srv_qnx}" = "yes"; then
4603 LIBS="$LIBS -lsocket"
8ed54b31
JB
4604elif test "${srv_lynxos}" = "yes"; then
4605 LIBS="$LIBS -lnetinet"
68070c10
PA
4606fi
4607
4608if test "${srv_mingw}" = "yes"; then
b80864fb 4609
81ecdfbb 4610$as_echo "#define USE_WIN32API 1" >>confdefs.h
b80864fb
DJ
4611
4612fi
4613
58caa3dc 4614if test "${srv_linux_usrregs}" = "yes"; then
f450004a 4615
81ecdfbb 4616$as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
58caa3dc
DJ
4617
4618fi
4619
4620if test "${srv_linux_regsets}" = "yes"; then
e9d25b98 4621
81ecdfbb 4622$as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
e9d25b98
DJ
4623
4624
81ecdfbb
RW
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
4626$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
4627 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
bec39cab 4629else
81ecdfbb 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4631/* end confdefs.h. */
58caa3dc 4632#include <sys/ptrace.h>
bec39cab
AC
4633int
4634main ()
4635{
58caa3dc 4636PTRACE_GETREGS;
bec39cab
AC
4637 ;
4638 return 0;
4639}
4640_ACEOF
81ecdfbb 4641if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
4642 gdbsrv_cv_have_ptrace_getregs=yes
4643else
81ecdfbb 4644 gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 4645fi
81ecdfbb 4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
4647fi
4648
81ecdfbb
RW
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
4650$as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
58caa3dc 4651 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a 4652
81ecdfbb 4653$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
58caa3dc
DJ
4654
4655 fi
4656
81ecdfbb
RW
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
4658$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
4659 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
58caa3dc 4661else
81ecdfbb 4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4663/* end confdefs.h. */
58caa3dc 4664#include <sys/ptrace.h>
bec39cab
AC
4665int
4666main ()
4667{
58caa3dc 4668PTRACE_GETFPXREGS;
bec39cab
AC
4669 ;
4670 return 0;
4671}
4672_ACEOF
81ecdfbb 4673if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
4674 gdbsrv_cv_have_ptrace_getfpxregs=yes
4675else
81ecdfbb 4676 gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 4677fi
81ecdfbb 4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
4679fi
4680
81ecdfbb
RW
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
4682$as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
58caa3dc 4683 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a 4684
81ecdfbb 4685$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
58caa3dc
DJ
4686
4687 fi
4688fi
4689
0d62e5e8 4690if test "$ac_cv_header_sys_procfs_h" = yes; then
81ecdfbb
RW
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
4692$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
4693 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
0d62e5e8 4695else
81ecdfbb 4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4697/* end confdefs.h. */
0d62e5e8
DJ
4698
4699#define _SYSCALL32
8e642873
PM
4700/* Needed for new procfs interface on sparc-solaris. */
4701#define _STRUCTURED_PROC 1
0d62e5e8 4702#include <sys/procfs.h>
bec39cab
AC
4703int
4704main ()
4705{
0d62e5e8 4706lwpid_t avar
bec39cab
AC
4707 ;
4708 return 0;
4709}
4710_ACEOF
81ecdfbb 4711if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4712 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4713else
81ecdfbb 4714 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 4715
0d62e5e8 4716fi
81ecdfbb 4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4718fi
4719
4720 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab 4721
81ecdfbb 4722$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
0d62e5e8
DJ
4723
4724 fi
81ecdfbb
RW
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4726$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
0d62e5e8 4727
81ecdfbb
RW
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
4729$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
4730 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
0d62e5e8 4732else
81ecdfbb 4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4734/* end confdefs.h. */
0d62e5e8
DJ
4735
4736#define _SYSCALL32
8e642873
PM
4737/* Needed for new procfs interface on sparc-solaris. */
4738#define _STRUCTURED_PROC 1
0d62e5e8 4739#include <sys/procfs.h>
bec39cab
AC
4740int
4741main ()
4742{
0d62e5e8 4743psaddr_t avar
bec39cab
AC
4744 ;
4745 return 0;
4746}
4747_ACEOF
81ecdfbb 4748if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4749 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4750else
81ecdfbb 4751 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 4752
0d62e5e8 4753fi
81ecdfbb 4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4755fi
4756
4757 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab 4758
81ecdfbb 4759$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
0d62e5e8
DJ
4760
4761 fi
81ecdfbb
RW
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4763$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
0d62e5e8 4764
81ecdfbb
RW
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
4766$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
4767 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
0d62e5e8 4769else
81ecdfbb 4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4771/* end confdefs.h. */
0d62e5e8
DJ
4772
4773#define _SYSCALL32
8e642873
PM
4774/* Needed for new procfs interface on sparc-solaris. */
4775#define _STRUCTURED_PROC 1
0d62e5e8 4776#include <sys/procfs.h>
bec39cab
AC
4777int
4778main ()
4779{
0d62e5e8 4780prgregset_t avar
bec39cab
AC
4781 ;
4782 return 0;
4783}
4784_ACEOF
81ecdfbb 4785if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4786 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4787else
81ecdfbb 4788 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 4789
0d62e5e8 4790fi
81ecdfbb 4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4792fi
4793
4794 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab 4795
81ecdfbb 4796$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
4797
4798 fi
81ecdfbb
RW
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4800$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
0d62e5e8 4801
81ecdfbb
RW
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
4803$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
4804 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
0d62e5e8 4806else
81ecdfbb 4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4808/* end confdefs.h. */
0d62e5e8
DJ
4809
4810#define _SYSCALL32
8e642873
PM
4811/* Needed for new procfs interface on sparc-solaris. */
4812#define _STRUCTURED_PROC 1
0d62e5e8 4813#include <sys/procfs.h>
bec39cab
AC
4814int
4815main ()
4816{
0d62e5e8 4817elf_fpregset_t avar
bec39cab
AC
4818 ;
4819 return 0;
4820}
4821_ACEOF
81ecdfbb 4822if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4823 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4824else
81ecdfbb 4825 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
bec39cab 4826
0d62e5e8 4827fi
81ecdfbb 4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4829fi
4830
4831 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab 4832
81ecdfbb 4833$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
4834
4835 fi
81ecdfbb
RW
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4837$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
0d62e5e8
DJ
4838
4839fi
4840
193f13e6
MK
4841old_LIBS="$LIBS"
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4843$as_echo_n "checking for dlopen in -ldl... " >&6; }
4844if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846else
4847 ac_check_lib_save_LIBS=$LIBS
4848LIBS="-ldl $LIBS"
4849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850/* end confdefs.h. */
4851
4852/* Override any GCC internal prototype to avoid an error.
4853 Use char because int might match the return type of a GCC
4854 builtin and then its argument prototype would still apply. */
4855#ifdef __cplusplus
4856extern "C"
4857#endif
4858char dlopen ();
4859int
4860main ()
4861{
4862return dlopen ();
4863 ;
4864 return 0;
4865}
4866_ACEOF
4867if ac_fn_c_try_link "$LINENO"; then :
4868 ac_cv_lib_dl_dlopen=yes
4869else
4870 ac_cv_lib_dl_dlopen=no
4871fi
4872rm -f core conftest.err conftest.$ac_objext \
4873 conftest$ac_exeext conftest.$ac_ext
4874LIBS=$ac_check_lib_save_LIBS
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4877$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4878if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
4879 cat >>confdefs.h <<_ACEOF
4880#define HAVE_LIBDL 1
4881_ACEOF
4882
4883 LIBS="-ldl $LIBS"
4884
4885fi
4886
4887LIBS="$old_LIBS"
4888
0d62e5e8
DJ
4889srv_thread_depfiles=
4890srv_libs=
4891USE_THREAD_DB=
4892
4893if test "$srv_linux_thread_db" = "yes"; then
193f13e6
MK
4894 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4895 srv_libs="-ldl"
f6528abd
JK
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
4897$as_echo_n "checking for the dynamic export flag... " >&6; }
193f13e6 4898 old_LDFLAGS="$LDFLAGS"
f6528abd
JK
4899 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
4900 # supported there.
4901 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
4902 LDFLAGS="$LDFLAGS $RDYNAMIC"
193f13e6 4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
4904/* end confdefs.h. */
4905
4906int
4907main ()
4908{
4909
4910 ;
4911 return 0;
4912}
4913_ACEOF
81ecdfbb 4914if ac_fn_c_try_link "$LINENO"; then :
f6528abd
JK
4915 found="-Wl,--dynamic-list"
4916 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
f6de3c42 4917else
f6528abd
JK
4918 RDYNAMIC="-rdynamic"
4919 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h. */
4922
4923int
4924main ()
4925{
4926
4927 ;
4928 return 0;
4929}
4930_ACEOF
4931if ac_fn_c_try_link "$LINENO"; then :
4932 found="-rdynamic"
4933else
4934 found="no"
4935 RDYNAMIC=""
4936fi
4937rm -f core conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
f6de3c42 4939fi
81ecdfbb
RW
4940rm -f core conftest.err conftest.$ac_objext \
4941 conftest$ac_exeext conftest.$ac_ext
bec39cab 4942
193f13e6 4943 LDFLAGS="$old_LDFLAGS"
f6528abd
JK
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
4945$as_echo "$found" >&6; }
193f13e6
MK
4946 else
4947 srv_libs="-lthread_db"
4948 fi
0d62e5e8 4949
0d62e5e8
DJ
4950 srv_thread_depfiles="thread-db.o proc-service.o"
4951 USE_THREAD_DB="-DUSE_THREAD_DB"
81ecdfbb
RW
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
4953$as_echo_n "checking for TD_VERSION... " >&6; }
4954if test "${gdbsrv_cv_have_td_version+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
3db0444b 4956else
81ecdfbb 4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3db0444b
DJ
4958/* end confdefs.h. */
4959#include <thread_db.h>
4960int
4961main ()
4962{
4963TD_VERSION;
4964 ;
4965 return 0;
4966}
4967_ACEOF
81ecdfbb 4968if ac_fn_c_try_compile "$LINENO"; then :
3db0444b
DJ
4969 gdbsrv_cv_have_td_version=yes
4970else
81ecdfbb 4971 gdbsrv_cv_have_td_version=no
3db0444b 4972fi
81ecdfbb 4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3db0444b 4974fi
81ecdfbb
RW
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
4976$as_echo "$gdbsrv_cv_have_td_version" >&6; }
3db0444b
DJ
4977 if test $gdbsrv_cv_have_td_version = yes; then
4978
81ecdfbb 4979$as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
dae5f5cf
DJ
4980
4981 fi
0d62e5e8
DJ
4982fi
4983
96f15937
PP
4984
4985# Check whether --with-libthread-db was given.
4986if test "${with_libthread_db+set}" = set; then :
4987 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
96f15937
PP
4988 srv_libs="$srv_libthread_db_path"
4989
4990fi
4991
4992
193f13e6
MK
4993if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
4994
4995$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
4996
4997fi
4998
9b4b61c8 4999if test "$srv_xmlfiles" != ""; then
fb1e4ffc
DJ
5000 srv_xmlbuiltin="xml-builtin.o"
5001
81ecdfbb 5002$as_echo "#define USE_XML 1" >>confdefs.h
fb1e4ffc
DJ
5003
5004
5005 tmp_xmlfiles=$srv_xmlfiles
9b4b61c8 5006 srv_xmlfiles=""
fb1e4ffc
DJ
5007 for f in $tmp_xmlfiles; do
5008 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
5009 done
5010fi
5011
59a016f0 5012GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
0d62e5e8
DJ
5013GDBSERVER_LIBS="$srv_libs"
5014
fa593d66
PA
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
5016$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
5017if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020
5021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022/* end confdefs.h. */
5023
5024int
5025main ()
5026{
5027int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032if ac_fn_c_try_link "$LINENO"; then :
5033 gdbsrv_cv_have_sync_builtins=yes
5034else
5035 gdbsrv_cv_have_sync_builtins=no
5036fi
5037rm -f core conftest.err conftest.$ac_objext \
5038 conftest$ac_exeext conftest.$ac_ext
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
5041$as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
5042if test $gdbsrv_cv_have_sync_builtins = yes; then
5043
5044$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
5045
5046fi
5047
5048saved_cflags="$CFLAGS"
5049CFLAGS="$CFLAGS -fvisibility=hidden"
5050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h. */
5052
5053int
5054main ()
5055{
5056
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061if ac_fn_c_try_compile "$LINENO"; then :
5062 gdbsrv_cv_have_visibility_hidden=yes
5063else
5064 gdbsrv_cv_have_visibility_hidden=no
5065fi
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067CFLAGS="$saved_cflags"
5068
03583c20
UW
5069ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
5070"
5071if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
5072 ac_have_decl=1
5073else
5074 ac_have_decl=0
5075fi
5076
5077cat >>confdefs.h <<_ACEOF
5078#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
5079_ACEOF
5080
5081
5082if test "$cross_compiling" = yes; then :
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h. */
5085#include <sys/personality.h>
5086int
5087main ()
5088{
5089
5090# if !HAVE_DECL_ADDR_NO_RANDOMIZE
5091# define ADDR_NO_RANDOMIZE 0x0040000
5092# endif
5093 /* Test the flag could be set and stays set. */
5094 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5095 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5096 return 1
5097 ;
5098 return 0;
5099}
5100_ACEOF
5101if ac_fn_c_try_link "$LINENO"; then :
5102 gdbsrv_cv_have_personality=true
5103else
5104 gdbsrv_cv_have_personality=false
5105fi
5106rm -f core conftest.err conftest.$ac_objext \
5107 conftest$ac_exeext conftest.$ac_ext
5108else
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h. */
5111#include <sys/personality.h>
5112int
5113main ()
5114{
5115
5116# if !HAVE_DECL_ADDR_NO_RANDOMIZE
5117# define ADDR_NO_RANDOMIZE 0x0040000
5118# endif
5119 /* Test the flag could be set and stays set. */
5120 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5121 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5122 return 1
5123 ;
5124 return 0;
5125}
5126_ACEOF
5127if ac_fn_c_try_run "$LINENO"; then :
5128 gdbsrv_cv_have_personality=true
5129else
5130 gdbsrv_cv_have_personality=false
5131fi
5132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5133 conftest.$ac_objext conftest.beam conftest.$ac_ext
5134fi
5135
5136if $gdbsrv_cv_have_personality
5137then
5138
5139$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
5140
5141fi
5142
c2a66c29 5143
fa593d66 5144IPA_DEPFILES=""
c2a66c29 5145extra_libraries=""
fa593d66 5146
c2a66c29 5147# check whether to enable the inprocess agent
fa593d66
PA
5148if test "$ipa_obj" != "" \
5149 -a "$gdbsrv_cv_have_sync_builtins" = yes \
5150 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
c2a66c29
NS
5151 have_ipa=true
5152else
5153 have_ipa=false
5154fi
5155
5156# Check whether --enable-inprocess-agent was given.
5157if test "${enable_inprocess_agent+set}" = set; then :
5158 enableval=$enable_inprocess_agent; case "$enableval" in
5159 yes) want_ipa=true ;;
5160 no) want_ipa=false ;;
5161 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
5162esac
5163else
5164 want_ipa=$have_ipa
5165fi
5166
5167
5168if $want_ipa ; then
5169 if $have_ipa ; then
5170 IPA_DEPFILES="$ipa_obj"
5171 extra_libraries="$extra_libraries libinproctrace.so"
5172 else
5173 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
5174 fi
fa593d66
PA
5175fi
5176
5177
5178
0d62e5e8 5179
d6e9fb05
JK
5180
5181
5182
fb1e4ffc
DJ
5183
5184
81ecdfbb
RW
5185ac_config_files="$ac_config_files Makefile"
5186
5187ac_config_commands="$ac_config_commands default"
5188
bec39cab 5189cat >confcache <<\_ACEOF
d6e9fb05
JK
5190# This file is a shell script that caches the results of configure
5191# tests run on this system so they can be shared between configure
bec39cab
AC
5192# scripts and configure runs, see configure's option --config-cache.
5193# It is not useful on other systems. If it contains results you don't
5194# want to keep, you may remove or edit it.
d6e9fb05 5195#
bec39cab
AC
5196# config.status only pays attention to the cache file if you give it
5197# the --recheck option to rerun configure.
d6e9fb05 5198#
bec39cab
AC
5199# `ac_cv_env_foo' variables (set or unset) will be overridden when
5200# loading this file, other *unset* `ac_cv_foo' will be assigned the
5201# following values.
5202
5203_ACEOF
5204
d6e9fb05
JK
5205# The following way of writing the cache mishandles newlines in values,
5206# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 5207# So, we kill variables containing newlines.
d6e9fb05
JK
5208# Ultrix sh set writes to stderr and can't be redirected directly,
5209# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
5210(
5211 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5212 eval ac_val=\$$ac_var
5213 case $ac_val in #(
5214 *${as_nl}*)
5215 case $ac_var in #(
5216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5217$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5218 esac
5219 case $ac_var in #(
5220 _ | IFS | as_nl) ;; #(
5221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5222 *) { eval $ac_var=; unset $ac_var;} ;;
5223 esac ;;
5224 esac
5225 done
5226
bec39cab 5227 (set) 2>&1 |
81ecdfbb
RW
5228 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5229 *${as_nl}ac_space=\ *)
5230 # `set' does not quote correctly, so add quotes: double-quote
5231 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
5232 sed -n \
5233 "s/'/'\\\\''/g;
5234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5235 ;; #(
bec39cab
AC
5236 *)
5237 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 5239 ;;
81ecdfbb
RW
5240 esac |
5241 sort
5242) |
bec39cab 5243 sed '
81ecdfbb 5244 /^ac_cv_env_/b end
bec39cab 5245 t clear
81ecdfbb 5246 :clear
bec39cab
AC
5247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5248 t end
81ecdfbb
RW
5249 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5250 :end' >>confcache
5251if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5252 if test -w "$cache_file"; then
5253 test "x$cache_file" != "x/dev/null" &&
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5255$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab 5256 cat confcache >$cache_file
d6e9fb05 5257 else
81ecdfbb
RW
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5259$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d6e9fb05
JK
5260 fi
5261fi
5262rm -f confcache
5263
d6e9fb05
JK
5264test "x$prefix" = xNONE && prefix=$ac_default_prefix
5265# Let make expand exec_prefix.
5266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5267
84563040 5268DEFS=-DHAVE_CONFIG_H
d6e9fb05 5269
bec39cab
AC
5270ac_libobjs=
5271ac_ltlibobjs=
5272for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5273 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
5274 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5275 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5276 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5277 # will be set to the directory where LIBOBJS objects are built.
5278 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5279 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
5280done
5281LIBOBJS=$ac_libobjs
d6e9fb05 5282
bec39cab
AC
5283LTLIBOBJS=$ac_ltlibobjs
5284
5285
5286
5287: ${CONFIG_STATUS=./config.status}
81ecdfbb 5288ac_write_fail=0
bec39cab
AC
5289ac_clean_files_save=$ac_clean_files
5290ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5292$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5293as_write_fail=0
5294cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
5295#! $SHELL
5296# Generated by $as_me.
d6e9fb05 5297# Run this file to recreate the current configuration.
d6e9fb05 5298# Compiler output produced by configure, useful for debugging
bec39cab
AC
5299# configure, is in config.log if it exists.
5300
5301debug=false
5302ac_cs_recheck=false
5303ac_cs_silent=false
bec39cab 5304
81ecdfbb
RW
5305SHELL=\${CONFIG_SHELL-$SHELL}
5306export SHELL
5307_ASEOF
5308cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5309## -------------------- ##
5310## M4sh Initialization. ##
5311## -------------------- ##
5312
5313# Be more Bourne compatible
5314DUALCASE=1; export DUALCASE # for MKS sh
5315if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
5316 emulate sh
5317 NULLCMD=:
81ecdfbb 5318 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
5319 # is contrary to our usage. Disable this feature.
5320 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
5321 setopt NO_GLOB_SUBST
5322else
5323 case `(set -o) 2>/dev/null` in #(
5324 *posix*) :
5325 set -o posix ;; #(
5326 *) :
5327 ;;
5328esac
bec39cab 5329fi
d6e9fb05 5330
81ecdfbb
RW
5331
5332as_nl='
5333'
5334export as_nl
5335# Printing a long string crashes Solaris 7 /usr/bin/printf.
5336as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5337as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5338as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5339# Prefer a ksh shell builtin over an external printf program on Solaris,
5340# but without wasting forks for bash or zsh.
5341if test -z "$BASH_VERSION$ZSH_VERSION" \
5342 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5343 as_echo='print -r --'
5344 as_echo_n='print -rn --'
5345elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5346 as_echo='printf %s\n'
5347 as_echo_n='printf %s'
bec39cab 5348else
81ecdfbb
RW
5349 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5350 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5351 as_echo_n='/usr/ucb/echo -n'
5352 else
5353 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5354 as_echo_n_body='eval
5355 arg=$1;
5356 case $arg in #(
5357 *"$as_nl"*)
5358 expr "X$arg" : "X\\(.*\\)$as_nl";
5359 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5360 esac;
5361 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5362 '
5363 export as_echo_n_body
5364 as_echo_n='sh -c $as_echo_n_body as_echo'
5365 fi
5366 export as_echo_body
5367 as_echo='sh -c $as_echo_body as_echo'
5368fi
5369
5370# The user is always right.
5371if test "${PATH_SEPARATOR+set}" != set; then
5372 PATH_SEPARATOR=:
5373 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5374 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5375 PATH_SEPARATOR=';'
5376 }
bec39cab
AC
5377fi
5378
5379
81ecdfbb
RW
5380# IFS
5381# We need space, tab and new line, in precisely that order. Quoting is
5382# there to prevent editors from complaining about space-tab.
5383# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5384# splitting by setting IFS to empty value.)
5385IFS=" "" $as_nl"
5386
5387# Find who we are. Look in the path if we contain no directory separator.
5388case $0 in #((
5389 *[\\/]* ) as_myself=$0 ;;
5390 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5396 done
5397IFS=$as_save_IFS
5398
5399 ;;
5400esac
5401# We did not find ourselves, most probably we were run as `sh COMMAND'
5402# in which case we are not to be found in the path.
5403if test "x$as_myself" = x; then
5404 as_myself=$0
5405fi
5406if test ! -f "$as_myself"; then
5407 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5408 exit 1
5409fi
5410
5411# Unset variables that we do not need and which cause bugs (e.g. in
5412# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5413# suppresses any "Segmentation fault" message there. '((' could
5414# trigger a bug in pdksh 5.2.14.
5415for as_var in BASH_ENV ENV MAIL MAILPATH
5416do eval test x\${$as_var+set} = xset \
5417 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5418done
bec39cab
AC
5419PS1='$ '
5420PS2='> '
5421PS4='+ '
5422
5423# NLS nuisances.
81ecdfbb
RW
5424LC_ALL=C
5425export LC_ALL
5426LANGUAGE=C
5427export LANGUAGE
5428
5429# CDPATH.
5430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5431
5432
5433# as_fn_error ERROR [LINENO LOG_FD]
5434# ---------------------------------
5435# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5436# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5437# script with status $?, using 1 if that was 0.
5438as_fn_error ()
5439{
5440 as_status=$?; test $as_status -eq 0 && as_status=1
5441 if test "$3"; then
5442 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bec39cab 5444 fi
81ecdfbb
RW
5445 $as_echo "$as_me: error: $1" >&2
5446 as_fn_exit $as_status
5447} # as_fn_error
5448
5449
5450# as_fn_set_status STATUS
5451# -----------------------
5452# Set $? to STATUS, without forking.
5453as_fn_set_status ()
5454{
5455 return $1
5456} # as_fn_set_status
5457
5458# as_fn_exit STATUS
5459# -----------------
5460# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5461as_fn_exit ()
5462{
5463 set +e
5464 as_fn_set_status $1
5465 exit $1
5466} # as_fn_exit
5467
5468# as_fn_unset VAR
5469# ---------------
5470# Portably unset VAR.
5471as_fn_unset ()
5472{
5473 { eval $1=; unset $1;}
5474}
5475as_unset=as_fn_unset
5476# as_fn_append VAR VALUE
5477# ----------------------
5478# Append the text in VALUE to the end of the definition contained in VAR. Take
5479# advantage of any shell optimizations that allow amortized linear growth over
5480# repeated appends, instead of the typical quadratic growth present in naive
5481# implementations.
5482if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5483 eval 'as_fn_append ()
5484 {
5485 eval $1+=\$2
5486 }'
5487else
5488 as_fn_append ()
5489 {
5490 eval $1=\$$1\$2
5491 }
5492fi # as_fn_append
5493
5494# as_fn_arith ARG...
5495# ------------------
5496# Perform arithmetic evaluation on the ARGs, and store the result in the
5497# global $as_val. Take advantage of shells that can avoid forks. The arguments
5498# must be portable across $(()) and expr.
5499if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5500 eval 'as_fn_arith ()
5501 {
5502 as_val=$(( $* ))
5503 }'
5504else
5505 as_fn_arith ()
5506 {
5507 as_val=`expr "$@" || test $? -eq 1`
5508 }
5509fi # as_fn_arith
5510
d6e9fb05 5511
81ecdfbb
RW
5512if expr a : '\(a\)' >/dev/null 2>&1 &&
5513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
5514 as_expr=expr
5515else
5516 as_expr=false
5517fi
d6e9fb05 5518
81ecdfbb 5519if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
5520 as_basename=basename
5521else
5522 as_basename=false
5523fi
d6e9fb05 5524
81ecdfbb
RW
5525if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5526 as_dirname=dirname
5527else
5528 as_dirname=false
5529fi
d6e9fb05 5530
81ecdfbb 5531as_me=`$as_basename -- "$0" ||
bec39cab
AC
5532$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5533 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
5534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5535$as_echo X/"$0" |
5536 sed '/^.*\/\([^/][^/]*\)\/*$/{
5537 s//\1/
5538 q
5539 }
5540 /^X\/\(\/\/\)$/{
5541 s//\1/
5542 q
5543 }
5544 /^X\/\(\/\).*/{
5545 s//\1/
5546 q
5547 }
5548 s/.*/./; q'`
bec39cab 5549
dae5f5cf
DJ
5550# Avoid depending upon Character Ranges.
5551as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5552as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5553as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5554as_cr_digits='0123456789'
5555as_cr_alnum=$as_cr_Letters$as_cr_digits
5556
81ecdfbb
RW
5557ECHO_C= ECHO_N= ECHO_T=
5558case `echo -n x` in #(((((
5559-n*)
5560 case `echo 'xy\c'` in
5561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5562 xy) ECHO_C='\c';;
5563 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5564 ECHO_T=' ';;
5565 esac;;
5566*)
5567 ECHO_N='-n';;
bec39cab
AC
5568esac
5569
81ecdfbb
RW
5570rm -f conf$$ conf$$.exe conf$$.file
5571if test -d conf$$.dir; then
5572 rm -f conf$$.dir/conf$$.file
bec39cab 5573else
81ecdfbb
RW
5574 rm -f conf$$.dir
5575 mkdir conf$$.dir 2>/dev/null
bec39cab 5576fi
81ecdfbb
RW
5577if (echo >conf$$.file) 2>/dev/null; then
5578 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 5579 as_ln_s='ln -s'
81ecdfbb
RW
5580 # ... but there are two gotchas:
5581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5583 # In both cases, we have to default to `cp -p'.
5584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5585 as_ln_s='cp -p'
5586 elif ln conf$$.file conf$$ 2>/dev/null; then
5587 as_ln_s=ln
5588 else
5589 as_ln_s='cp -p'
dae5f5cf 5590 fi
bec39cab
AC
5591else
5592 as_ln_s='cp -p'
5593fi
81ecdfbb
RW
5594rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5595rmdir conf$$.dir 2>/dev/null
5596
5597
5598# as_fn_mkdir_p
5599# -------------
5600# Create "$as_dir" as a directory, including parents if necessary.
5601as_fn_mkdir_p ()
5602{
5603
5604 case $as_dir in #(
5605 -*) as_dir=./$as_dir;;
5606 esac
5607 test -d "$as_dir" || eval $as_mkdir_p || {
5608 as_dirs=
5609 while :; do
5610 case $as_dir in #(
5611 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5612 *) as_qdir=$as_dir;;
5613 esac
5614 as_dirs="'$as_qdir' $as_dirs"
5615 as_dir=`$as_dirname -- "$as_dir" ||
5616$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5617 X"$as_dir" : 'X\(//\)[^/]' \| \
5618 X"$as_dir" : 'X\(//\)$' \| \
5619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5620$as_echo X"$as_dir" |
5621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5622 s//\1/
5623 q
5624 }
5625 /^X\(\/\/\)[^/].*/{
5626 s//\1/
5627 q
5628 }
5629 /^X\(\/\/\)$/{
5630 s//\1/
5631 q
5632 }
5633 /^X\(\/\).*/{
5634 s//\1/
5635 q
5636 }
5637 s/.*/./; q'`
5638 test -d "$as_dir" && break
5639 done
5640 test -z "$as_dirs" || eval "mkdir $as_dirs"
5641 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
bec39cab 5642
81ecdfbb
RW
5643
5644} # as_fn_mkdir_p
bec39cab 5645if mkdir -p . 2>/dev/null; then
81ecdfbb 5646 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
5647else
5648 test -d ./-p && rmdir ./-p
5649 as_mkdir_p=false
5650fi
5651
81ecdfbb
RW
5652if test -x / >/dev/null 2>&1; then
5653 as_test_x='test -x'
5654else
5655 if ls -dL / >/dev/null 2>&1; then
5656 as_ls_L_option=L
5657 else
5658 as_ls_L_option=
5659 fi
5660 as_test_x='
5661 eval sh -c '\''
5662 if test -d "$1"; then
5663 test -d "$1/.";
5664 else
5665 case $1 in #(
5666 -*)set "./$1";;
5667 esac;
5668 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5669 ???[sx]*):;;*)false;;esac;fi
5670 '\'' sh
5671 '
5672fi
5673as_executable_p=$as_test_x
bec39cab
AC
5674
5675# Sed expression to map a string onto a valid CPP name.
5676as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5677
5678# Sed expression to map a string onto a valid variable name.
5679as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5680
5681
bec39cab 5682exec 6>&1
81ecdfbb
RW
5683## ----------------------------------- ##
5684## Main body of $CONFIG_STATUS script. ##
5685## ----------------------------------- ##
5686_ASEOF
5687test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5688
5689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5690# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 5691# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
5692# values after options handling.
5693ac_log="
bec39cab 5694This file was extended by $as_me, which was
81ecdfbb 5695generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
5696
5697 CONFIG_FILES = $CONFIG_FILES
5698 CONFIG_HEADERS = $CONFIG_HEADERS
5699 CONFIG_LINKS = $CONFIG_LINKS
5700 CONFIG_COMMANDS = $CONFIG_COMMANDS
5701 $ $0 $@
5702
81ecdfbb
RW
5703on `(hostname || uname -n) 2>/dev/null | sed 1q`
5704"
5705
bec39cab
AC
5706_ACEOF
5707
81ecdfbb
RW
5708case $ac_config_files in *"
5709"*) set x $ac_config_files; shift; ac_config_files=$*;;
5710esac
bec39cab 5711
81ecdfbb
RW
5712case $ac_config_headers in *"
5713"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5714esac
dae5f5cf 5715
dae5f5cf 5716
81ecdfbb
RW
5717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5718# Files that config.status was made for.
5719config_files="$ac_config_files"
5720config_headers="$ac_config_headers"
5721config_commands="$ac_config_commands"
bec39cab 5722
81ecdfbb 5723_ACEOF
dae5f5cf 5724
81ecdfbb 5725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 5726ac_cs_usage="\
81ecdfbb
RW
5727\`$as_me' instantiates files and other configuration actions
5728from templates according to the current configuration. Unless the files
5729and actions are specified as TAGs, all are instantiated by default.
bec39cab 5730
81ecdfbb 5731Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
5732
5733 -h, --help print this help, then exit
81ecdfbb
RW
5734 -V, --version print version number and configuration settings, then exit
5735 -q, --quiet, --silent
5736 do not print progress messages
bec39cab
AC
5737 -d, --debug don't remove temporary files
5738 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
5739 --file=FILE[:TEMPLATE]
5740 instantiate the configuration file FILE
5741 --header=FILE[:TEMPLATE]
5742 instantiate the configuration header FILE
bec39cab
AC
5743
5744Configuration files:
5745$config_files
5746
5747Configuration headers:
5748$config_headers
5749
5750Configuration commands:
5751$config_commands
5752
81ecdfbb 5753Report bugs to the package provider."
dae5f5cf 5754
81ecdfbb
RW
5755_ACEOF
5756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
5757ac_cs_version="\\
5758config.status
81ecdfbb
RW
5759configured by $0, generated by GNU Autoconf 2.64,
5760 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 5761
81ecdfbb 5762Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
5763This config.status script is free software; the Free Software Foundation
5764gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
5765
5766ac_pwd='$ac_pwd'
5767srcdir='$srcdir'
5768INSTALL='$INSTALL'
5769test -n "\$AWK" || AWK=awk
bec39cab
AC
5770_ACEOF
5771
81ecdfbb
RW
5772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5773# The default lists apply if the user does not specify any file.
bec39cab
AC
5774ac_need_defaults=:
5775while test $# != 0
5776do
5777 case $1 in
5778 --*=*)
81ecdfbb
RW
5779 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5780 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
5781 ac_shift=:
5782 ;;
81ecdfbb 5783 *)
bec39cab
AC
5784 ac_option=$1
5785 ac_optarg=$2
5786 ac_shift=shift
5787 ;;
bec39cab
AC
5788 esac
5789
5790 case $ac_option in
5791 # Handling of the options.
bec39cab
AC
5792 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5793 ac_cs_recheck=: ;;
81ecdfbb
RW
5794 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5795 $as_echo "$ac_cs_version"; exit ;;
5796 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
5797 debug=: ;;
5798 --file | --fil | --fi | --f )
5799 $ac_shift
81ecdfbb
RW
5800 case $ac_optarg in
5801 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5802 esac
5803 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab
AC
5804 ac_need_defaults=false;;
5805 --header | --heade | --head | --hea )
5806 $ac_shift
81ecdfbb
RW
5807 case $ac_optarg in
5808 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5809 esac
5810 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bec39cab 5811 ac_need_defaults=false;;
81ecdfbb
RW
5812 --he | --h)
5813 # Conflict between --help and --header
5814 as_fn_error "ambiguous option: \`$1'
5815Try \`$0 --help' for more information.";;
5816 --help | --hel | -h )
5817 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
5818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5819 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5820 ac_cs_silent=: ;;
5821
5822 # This is an error.
81ecdfbb
RW
5823 -*) as_fn_error "unrecognized option: \`$1'
5824Try \`$0 --help' for more information." ;;
bec39cab 5825
81ecdfbb
RW
5826 *) as_fn_append ac_config_targets " $1"
5827 ac_need_defaults=false ;;
bec39cab
AC
5828
5829 esac
5830 shift
d6e9fb05 5831done
bec39cab
AC
5832
5833ac_configure_extra_args=
5834
5835if $ac_cs_silent; then
5836 exec 6>/dev/null
5837 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 5838fi
d6e9fb05 5839
bec39cab 5840_ACEOF
81ecdfbb 5841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 5842if \$ac_cs_recheck; then
81ecdfbb
RW
5843 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5844 shift
5845 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5846 CONFIG_SHELL='$SHELL'
5847 export CONFIG_SHELL
5848 exec "\$@"
bec39cab 5849fi
d6e9fb05 5850
bec39cab 5851_ACEOF
81ecdfbb
RW
5852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5853exec 5>>config.log
5854{
5855 echo
5856 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5857## Running $as_me. ##
5858_ASBOX
5859 $as_echo "$ac_log"
5860} >&5
bec39cab 5861
81ecdfbb
RW
5862_ACEOF
5863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5864_ACEOF
bec39cab 5865
81ecdfbb 5866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80864fb 5867
81ecdfbb 5868# Handling of arguments.
bec39cab
AC
5869for ac_config_target in $ac_config_targets
5870do
81ecdfbb
RW
5871 case $ac_config_target in
5872 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5873 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5874 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5875
5876 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d6e9fb05 5877 esac
bec39cab
AC
5878done
5879
81ecdfbb 5880
bec39cab
AC
5881# If the user did not use the arguments to specify the items to instantiate,
5882# then the envvar interface is used. Set only those that are not.
5883# We use the long form for the default assignment because of an extremely
5884# bizarre bug on SunOS 4.1.3.
5885if $ac_need_defaults; then
5886 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5887 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5888 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5889fi
d6e9fb05 5890
bec39cab 5891# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 5892# simply because there is no reason against having it here, and in addition,
bec39cab 5893# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
5894# Hook for its removal unless debugging.
5895# Note that there is a small window in which the directory will not be cleaned:
5896# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
5897$debug ||
5898{
81ecdfbb
RW
5899 tmp=
5900 trap 'exit_status=$?
5901 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5902' 0
5903 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 5904}
bec39cab
AC
5905# Create a (secure) tmp directory for tmp files.
5906
5907{
81ecdfbb 5908 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
5909 test -n "$tmp" && test -d "$tmp"
5910} ||
5911{
81ecdfbb
RW
5912 tmp=./conf$$-$RANDOM
5913 (umask 077 && mkdir "$tmp")
5914} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5915
5916# Set up the scripts for CONFIG_FILES section.
5917# No need to generate them if there are no CONFIG_FILES.
5918# This happens for instance with `./config.status config.h'.
5919if test -n "$CONFIG_FILES"; then
5920
5921
5922ac_cr=`echo X | tr X '\015'`
5923# On cygwin, bash can eat \r inside `` if the user requested igncr.
5924# But we know of no other shell where ac_cr would be empty at this
5925# point, so we can use a bashism as a fallback.
5926if test "x$ac_cr" = x; then
5927 eval ac_cr=\$\'\\r\'
5928fi
5929ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5930if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5931 ac_cs_awk_cr='\r'
5932else
5933 ac_cs_awk_cr=$ac_cr
5934fi
5935
5936echo 'BEGIN {' >"$tmp/subs1.awk" &&
5937_ACEOF
5938
5939
5940{
5941 echo "cat >conf$$subs.awk <<_ACEOF" &&
5942 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5943 echo "_ACEOF"
5944} >conf$$subs.sh ||
5945 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5946ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5947ac_delim='%!_!# '
5948for ac_last_try in false false false false false :; do
5949 . ./conf$$subs.sh ||
5950 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5951
5952 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5953 if test $ac_delim_n = $ac_delim_num; then
5954 break
5955 elif $ac_last_try; then
5956 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5957 else
5958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5959 fi
5960done
5961rm -f conf$$subs.sh
5962
5963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5964cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5965_ACEOF
5966sed -n '
5967h
5968s/^/S["/; s/!.*/"]=/
5969p
5970g
5971s/^[^!]*!//
5972:repl
5973t repl
5974s/'"$ac_delim"'$//
5975t delim
5976:nl
5977h
5978s/\(.\{148\}\).*/\1/
5979t more1
5980s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5981p
5982n
5983b repl
5984:more1
5985s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5986p
5987g
5988s/.\{148\}//
5989t nl
5990:delim
5991h
5992s/\(.\{148\}\).*/\1/
5993t more2
5994s/["\\]/\\&/g; s/^/"/; s/$/"/
5995p
5996b
5997:more2
5998s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5999p
6000g
6001s/.\{148\}//
6002t delim
6003' <conf$$subs.awk | sed '
6004/^[^""]/{
6005 N
6006 s/\n//
6007}
6008' >>$CONFIG_STATUS || ac_write_fail=1
6009rm -f conf$$subs.awk
6010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6011_ACAWK
6012cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6013 for (key in S) S_is_set[key] = 1
6014 FS = "\a"
6015
6016}
bec39cab 6017{
81ecdfbb
RW
6018 line = $ 0
6019 nfields = split(line, field, "@")
6020 substed = 0
6021 len = length(field[1])
6022 for (i = 2; i < nfields; i++) {
6023 key = field[i]
6024 keylen = length(key)
6025 if (S_is_set[key]) {
6026 value = S[key]
6027 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6028 len += length(value) + length(field[++i])
6029 substed = 1
6030 } else
6031 len += 1 + keylen
6032 }
6033
6034 print line
bec39cab
AC
6035}
6036
81ecdfbb
RW
6037_ACAWK
6038_ACEOF
6039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6040if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6041 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6042else
6043 cat
6044fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6045 || as_fn_error "could not setup config files machinery" "$LINENO" 5
dae5f5cf
DJ
6046_ACEOF
6047
81ecdfbb
RW
6048# VPATH may cause trouble with some makes, so we remove $(srcdir),
6049# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6050# trailing colons and then remove the whole line if VPATH becomes empty
6051# (actually we leave an empty line to preserve line numbers).
6052if test "x$srcdir" = x.; then
6053 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6054s/:*\$(srcdir):*/:/
6055s/:*\${srcdir}:*/:/
6056s/:*@srcdir@:*/:/
6057s/^\([^=]*=[ ]*\):*/\1/
6058s/:*$//
6059s/^[^=]*=[ ]*$//
6060}'
6061fi
bec39cab 6062
81ecdfbb
RW
6063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6064fi # test -n "$CONFIG_FILES"
bec39cab 6065
81ecdfbb
RW
6066# Set up the scripts for CONFIG_HEADERS section.
6067# No need to generate them if there are no CONFIG_HEADERS.
6068# This happens for instance with `./config.status Makefile'.
6069if test -n "$CONFIG_HEADERS"; then
6070cat >"$tmp/defines.awk" <<\_ACAWK ||
6071BEGIN {
b80864fb
DJ
6072_ACEOF
6073
81ecdfbb
RW
6074# Transform confdefs.h into an awk script `defines.awk', embedded as
6075# here-document in config.status, that substitutes the proper values into
6076# config.h.in to produce config.h.
6077
6078# Create a delimiter string that does not exist in confdefs.h, to ease
6079# handling of long lines.
6080ac_delim='%!_!# '
6081for ac_last_try in false false :; do
6082 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6083 if test -z "$ac_t"; then
6084 break
6085 elif $ac_last_try; then
6086 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6087 else
6088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d6e9fb05 6089 fi
81ecdfbb 6090done
d6e9fb05 6091
81ecdfbb
RW
6092# For the awk script, D is an array of macro values keyed by name,
6093# likewise P contains macro parameters if any. Preserve backslash
6094# newline sequences.
6095
6096ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6097sed -n '
6098s/.\{148\}/&'"$ac_delim"'/g
6099t rset
6100:rset
6101s/^[ ]*#[ ]*define[ ][ ]*/ /
6102t def
6103d
6104:def
6105s/\\$//
6106t bsnl
6107s/["\\]/\\&/g
6108s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6109D["\1"]=" \3"/p
6110s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6111d
6112:bsnl
6113s/["\\]/\\&/g
6114s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6115D["\1"]=" \3\\\\\\n"\\/p
6116t cont
6117s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6118t cont
6119d
6120:cont
6121n
6122s/.\{148\}/&'"$ac_delim"'/g
6123t clear
6124:clear
6125s/\\$//
6126t bsnlc
6127s/["\\]/\\&/g; s/^/"/; s/$/"/p
6128d
6129:bsnlc
6130s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6131b cont
6132' <confdefs.h | sed '
6133s/'"$ac_delim"'/"\\\
6134"/g' >>$CONFIG_STATUS || ac_write_fail=1
6135
6136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6137 for (key in D) D_is_set[key] = 1
6138 FS = "\a"
6139}
6140/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6141 line = \$ 0
6142 split(line, arg, " ")
6143 if (arg[1] == "#") {
6144 defundef = arg[2]
6145 mac1 = arg[3]
6146 } else {
6147 defundef = substr(arg[1], 2)
6148 mac1 = arg[2]
6149 }
6150 split(mac1, mac2, "(") #)
6151 macro = mac2[1]
6152 prefix = substr(line, 1, index(line, defundef) - 1)
6153 if (D_is_set[macro]) {
6154 # Preserve the white space surrounding the "#".
6155 print prefix "define", macro P[macro] D[macro]
6156 next
6157 } else {
6158 # Replace #undef with comments. This is necessary, for example,
6159 # in the case of _POSIX_SOURCE, which is predefined and required
6160 # on some systems where configure will not decide to define it.
6161 if (defundef == "undef") {
6162 print "/*", prefix defundef, macro, "*/"
6163 next
6164 }
6165 }
6166}
6167{ print }
6168_ACAWK
bec39cab 6169_ACEOF
81ecdfbb
RW
6170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6171 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6172fi # test -n "$CONFIG_HEADERS"
6173
6174
6175eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6176shift
6177for ac_tag
6178do
6179 case $ac_tag in
6180 :[FHLC]) ac_mode=$ac_tag; continue;;
6181 esac
6182 case $ac_mode$ac_tag in
6183 :[FHL]*:*);;
6184 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6185 :[FH]-) ac_tag=-:-;;
6186 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6187 esac
6188 ac_save_IFS=$IFS
6189 IFS=:
6190 set x $ac_tag
6191 IFS=$ac_save_IFS
6192 shift
6193 ac_file=$1
6194 shift
6195
6196 case $ac_mode in
6197 :L) ac_source=$1;;
6198 :[FH])
6199 ac_file_inputs=
6200 for ac_f
6201 do
6202 case $ac_f in
6203 -) ac_f="$tmp/stdin";;
6204 *) # Look for the file first in the build tree, then in the source tree
6205 # (if the path is not absolute). The absolute path cannot be DOS-style,
6206 # because $ac_f cannot contain `:'.
6207 test -f "$ac_f" ||
6208 case $ac_f in
6209 [\\/$]*) false;;
6210 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6211 esac ||
6212 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6213 esac
6214 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6215 as_fn_append ac_file_inputs " '$ac_f'"
6216 done
6217
6218 # Let's still pretend it is `configure' which instantiates (i.e., don't
6219 # use $as_me), people would be surprised to read:
6220 # /* config.h. Generated by config.status. */
6221 configure_input='Generated from '`
6222 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6223 `' by configure.'
6224 if test x"$ac_file" != x-; then
6225 configure_input="$ac_file. $configure_input"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6227$as_echo "$as_me: creating $ac_file" >&6;}
6228 fi
6229 # Neutralize special characters interpreted by sed in replacement strings.
6230 case $configure_input in #(
6231 *\&* | *\|* | *\\* )
6232 ac_sed_conf_input=`$as_echo "$configure_input" |
6233 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6234 *) ac_sed_conf_input=$configure_input;;
6235 esac
6236
6237 case $ac_tag in
6238 *:-:* | *:-) cat >"$tmp/stdin" \
6239 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6240 esac
6241 ;;
d6e9fb05
JK
6242 esac
6243
81ecdfbb 6244 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
6245$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6246 X"$ac_file" : 'X\(//\)[^/]' \| \
6247 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6248 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6249$as_echo X"$ac_file" |
6250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6251 s//\1/
6252 q
6253 }
6254 /^X\(\/\/\)[^/].*/{
6255 s//\1/
6256 q
6257 }
6258 /^X\(\/\/\)$/{
6259 s//\1/
6260 q
6261 }
6262 /^X\(\/\).*/{
6263 s//\1/
6264 q
6265 }
6266 s/.*/./; q'`
6267 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
6268 ac_builddir=.
6269
81ecdfbb
RW
6270case "$ac_dir" in
6271.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6272*)
6273 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6274 # A ".." for each directory in $ac_dir_suffix.
6275 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6276 case $ac_top_builddir_sub in
6277 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6278 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6279 esac ;;
6280esac
6281ac_abs_top_builddir=$ac_pwd
6282ac_abs_builddir=$ac_pwd$ac_dir_suffix
6283# for backward compatibility:
6284ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
6285
6286case $srcdir in
81ecdfbb 6287 .) # We are building in place.
bec39cab 6288 ac_srcdir=.
81ecdfbb
RW
6289 ac_top_srcdir=$ac_top_builddir_sub
6290 ac_abs_top_srcdir=$ac_pwd ;;
6291 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 6292 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6293 ac_top_srcdir=$srcdir
6294 ac_abs_top_srcdir=$srcdir ;;
6295 *) # Relative name.
6296 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6297 ac_top_srcdir=$ac_top_build_prefix$srcdir
6298 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 6299esac
81ecdfbb 6300ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 6301
bec39cab 6302
81ecdfbb
RW
6303 case $ac_mode in
6304 :F)
6305 #
6306 # CONFIG_FILE
6307 #
d6e9fb05 6308
bec39cab
AC
6309 case $INSTALL in
6310 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 6311 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d6e9fb05 6312 esac
81ecdfbb 6313_ACEOF
3db0444b 6314
81ecdfbb
RW
6315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6316# If the template does not know about datarootdir, expand it.
6317# FIXME: This hack should be removed a few years after 2.60.
6318ac_datarootdir_hack=; ac_datarootdir_seen=
6319ac_sed_dataroot='
6320/datarootdir/ {
6321 p
6322 q
6323}
6324/@datadir@/p
6325/@docdir@/p
6326/@infodir@/p
6327/@localedir@/p
6328/@mandir@/p'
6329case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6330*datarootdir*) ac_datarootdir_seen=yes;;
6331*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6333$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6334_ACEOF
6335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6336 ac_datarootdir_hack='
6337 s&@datadir@&$datadir&g
6338 s&@docdir@&$docdir&g
6339 s&@infodir@&$infodir&g
6340 s&@localedir@&$localedir&g
6341 s&@mandir@&$mandir&g
6342 s&\\\${datarootdir}&$datarootdir&g' ;;
6343esac
bec39cab 6344_ACEOF
81ecdfbb
RW
6345
6346# Neutralize VPATH when `$srcdir' = `.'.
6347# Shell code in configure.ac might set extrasub.
6348# FIXME: do we really want to maintain this feature?
6349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6350ac_sed_extra="$ac_vpsub
bec39cab
AC
6351$extrasub
6352_ACEOF
81ecdfbb 6353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
6354:t
6355/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
6356s|@configure_input@|$ac_sed_conf_input|;t t
6357s&@top_builddir@&$ac_top_builddir_sub&;t t
6358s&@top_build_prefix@&$ac_top_build_prefix&;t t
6359s&@srcdir@&$ac_srcdir&;t t
6360s&@abs_srcdir@&$ac_abs_srcdir&;t t
6361s&@top_srcdir@&$ac_top_srcdir&;t t
6362s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6363s&@builddir@&$ac_builddir&;t t
6364s&@abs_builddir@&$ac_abs_builddir&;t t
6365s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6366s&@INSTALL@&$ac_INSTALL&;t t
6367$ac_datarootdir_hack
6368"
6369eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6370 || as_fn_error "could not create $ac_file" "$LINENO" 5
6371
6372test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6376which seems to be undefined. Please make sure it is defined." >&5
6377$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6378which seems to be undefined. Please make sure it is defined." >&2;}
6379
6380 rm -f "$tmp/stdin"
bec39cab 6381 case $ac_file in
81ecdfbb
RW
6382 -) cat "$tmp/out" && rm -f "$tmp/out";;
6383 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6384 esac \
6385 || as_fn_error "could not create $ac_file" "$LINENO" 5
6386 ;;
6387 :H)
6388 #
6389 # CONFIG_HEADER
6390 #
bec39cab 6391 if test x"$ac_file" != x-; then
81ecdfbb
RW
6392 {
6393 $as_echo "/* $configure_input */" \
6394 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6395 } >"$tmp/config.h" \
6396 || as_fn_error "could not create $ac_file" "$LINENO" 5
6397 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6399$as_echo "$as_me: $ac_file is unchanged" >&6;}
bec39cab 6400 else
81ecdfbb
RW
6401 rm -f "$ac_file"
6402 mv "$tmp/config.h" "$ac_file" \
6403 || as_fn_error "could not create $ac_file" "$LINENO" 5
84563040 6404 fi
bec39cab 6405 else
81ecdfbb
RW
6406 $as_echo "/* $configure_input */" \
6407 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6408 || as_fn_error "could not create -" "$LINENO" 5
d6e9fb05 6409 fi
81ecdfbb 6410 ;;
dae5f5cf 6411
81ecdfbb
RW
6412 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6413$as_echo "$as_me: executing $ac_file commands" >&6;}
6414 ;;
6415 esac
dae5f5cf
DJ
6416
6417
81ecdfbb
RW
6418 case $ac_file$ac_mode in
6419 "default":C) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
6420xconfig.h:config.in)
6421echo > stamp-h ;;
6422esac
bec39cab 6423 ;;
81ecdfbb 6424
bec39cab 6425 esac
81ecdfbb 6426done # for ac_tag
d6e9fb05 6427
bec39cab 6428
81ecdfbb 6429as_fn_exit 0
bec39cab 6430_ACEOF
bec39cab
AC
6431ac_clean_files=$ac_clean_files_save
6432
81ecdfbb
RW
6433test $ac_write_fail = 0 ||
6434 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6435
bec39cab
AC
6436
6437# configure is writing to config.log, and then calls config.status.
6438# config.status does its own redirection, appending to config.log.
6439# Unfortunately, on DOS this fails, as config.log is still kept open
6440# by configure, so config.status won't be able to write to it; its
6441# output is simply discarded. So we exec the FD to /dev/null,
6442# effectively closing config.log, so it can be properly (re)opened and
6443# appended to by config.status. When coming back to configure, we
6444# need to make the FD available again.
6445if test "$no_create" != yes; then
6446 ac_cs_success=:
6447 ac_config_status_args=
6448 test "$silent" = yes &&
6449 ac_config_status_args="$ac_config_status_args --quiet"
6450 exec 5>/dev/null
6451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6452 exec 5>>config.log
6453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6454 # would make configure fail if this is the last instruction.
81ecdfbb
RW
6455 $ac_cs_success || as_fn_exit $?
6456fi
6457if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6459$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bec39cab 6460fi
d6e9fb05 6461