gdb:
[deliverable/binutils-gdb.git] / gdb / testsuite / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 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.
c906108c
SS
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
bec39cab 356
81ecdfbb
RW
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
372
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
bec39cab
AC
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
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
bec39cab 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'
bec39cab 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
c906108c 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#
c906108c 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
bec39cab
AC
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="gdb.base"
81ecdfbb 555enable_option_checking=no
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
RW
592ac_subst_vars='LTLIBOBJS
593LIBOBJS
594EGREP
595GREP
596CPP
597OBJEXT
598EXEEXT
599ac_ct_CC
600CPPFLAGS
601LDFLAGS
602CFLAGS
603CC
604RPATH_ENVVAR
605subdirs
606SET_MAKE
607GMAKE_FALSE
608GMAKE_TRUE
609MAKE
610target_noncanonical
611target_os
612target_vendor
613target_cpu
614target
615host_os
616host_vendor
617host_cpu
618host
619build_os
620build_vendor
621build_cpu
622build
623target_alias
624host_alias
625build_alias
626LIBS
627ECHO_T
628ECHO_N
629ECHO_C
630DEFS
631mandir
632localedir
633libdir
634psdir
635pdfdir
636dvidir
637htmldir
638infodir
639docdir
640oldincludedir
641includedir
642localstatedir
643sharedstatedir
644sysconfdir
645datadir
646datarootdir
647libexecdir
648sbindir
649bindir
650program_transform_name
651prefix
652exec_prefix
653PACKAGE_URL
654PACKAGE_BUGREPORT
655PACKAGE_STRING
656PACKAGE_VERSION
657PACKAGE_TARNAME
658PACKAGE_NAME
659PATH_SEPARATOR
660SHELL'
bec39cab 661ac_subst_files=''
81ecdfbb
RW
662ac_user_opts='
663enable_option_checking
664with_stabs
665enable_gdbtk
666enable_shared
667'
668 ac_precious_vars='build_alias
669host_alias
670target_alias
671CC
672CFLAGS
673LDFLAGS
674LIBS
675CPPFLAGS
676CPP'
677ac_subdirs_all='gdb.hp
678gdb.cell
679gdb.stabs
680gdb.gdbtk'
c906108c
SS
681
682# Initialize some variables set by options.
bec39cab
AC
683ac_init_help=
684ac_init_version=false
81ecdfbb
RW
685ac_unrecognized_opts=
686ac_unrecognized_sep=
c906108c
SS
687# The variables have the same names as the options, with
688# dashes changed to underlines.
bec39cab 689cache_file=/dev/null
c906108c 690exec_prefix=NONE
c906108c 691no_create=
c906108c
SS
692no_recursion=
693prefix=NONE
694program_prefix=NONE
695program_suffix=NONE
696program_transform_name=s,x,x,
697silent=
698site=
699srcdir=
c906108c
SS
700verbose=
701x_includes=NONE
702x_libraries=NONE
bec39cab
AC
703
704# Installation directory options.
705# These are left unexpanded so users can "make install exec_prefix=/foo"
706# and all the variables that are supposed to be based on exec_prefix
707# by default will actually change.
708# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 709# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
710bindir='${exec_prefix}/bin'
711sbindir='${exec_prefix}/sbin'
712libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
713datarootdir='${prefix}/share'
714datadir='${datarootdir}'
c906108c
SS
715sysconfdir='${prefix}/etc'
716sharedstatedir='${prefix}/com'
717localstatedir='${prefix}/var'
c906108c
SS
718includedir='${prefix}/include'
719oldincludedir='/usr/include'
81ecdfbb
RW
720docdir='${datarootdir}/doc/${PACKAGE}'
721infodir='${datarootdir}/info'
722htmldir='${docdir}'
723dvidir='${docdir}'
724pdfdir='${docdir}'
725psdir='${docdir}'
726libdir='${exec_prefix}/lib'
727localedir='${datarootdir}/locale'
728mandir='${datarootdir}/man'
c906108c 729
c906108c 730ac_prev=
81ecdfbb 731ac_dashdash=
c906108c
SS
732for ac_option
733do
c906108c
SS
734 # If the previous option needs an argument, assign it.
735 if test -n "$ac_prev"; then
81ecdfbb 736 eval $ac_prev=\$ac_option
c906108c
SS
737 ac_prev=
738 continue
739 fi
740
81ecdfbb
RW
741 case $ac_option in
742 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
743 *) ac_optarg=yes ;;
744 esac
c906108c
SS
745
746 # Accept the important Cygnus configure options, so we can diagnose typos.
747
81ecdfbb
RW
748 case $ac_dashdash$ac_option in
749 --)
750 ac_dashdash=yes ;;
c906108c
SS
751
752 -bindir | --bindir | --bindi | --bind | --bin | --bi)
753 ac_prev=bindir ;;
754 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 755 bindir=$ac_optarg ;;
c906108c
SS
756
757 -build | --build | --buil | --bui | --bu)
bec39cab 758 ac_prev=build_alias ;;
c906108c 759 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 760 build_alias=$ac_optarg ;;
c906108c
SS
761
762 -cache-file | --cache-file | --cache-fil | --cache-fi \
763 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
764 ac_prev=cache_file ;;
765 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
766 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
767 cache_file=$ac_optarg ;;
768
769 --config-cache | -C)
770 cache_file=config.cache ;;
c906108c 771
81ecdfbb 772 -datadir | --datadir | --datadi | --datad)
c906108c 773 ac_prev=datadir ;;
81ecdfbb 774 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 775 datadir=$ac_optarg ;;
c906108c 776
81ecdfbb
RW
777 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
778 | --dataroo | --dataro | --datar)
779 ac_prev=datarootdir ;;
780 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
781 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
782 datarootdir=$ac_optarg ;;
783
c906108c 784 -disable-* | --disable-*)
81ecdfbb 785 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 786 # Reject names that are not valid shell variable names.
81ecdfbb
RW
787 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
788 as_fn_error "invalid feature name: $ac_useropt"
789 ac_useropt_orig=$ac_useropt
790 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
791 case $ac_user_opts in
792 *"
793"enable_$ac_useropt"
794"*) ;;
795 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
796 ac_unrecognized_sep=', ';;
797 esac
798 eval enable_$ac_useropt=no ;;
799
800 -docdir | --docdir | --docdi | --doc | --do)
801 ac_prev=docdir ;;
802 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
803 docdir=$ac_optarg ;;
804
805 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
806 ac_prev=dvidir ;;
807 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
808 dvidir=$ac_optarg ;;
c906108c
SS
809
810 -enable-* | --enable-*)
81ecdfbb 811 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 812 # Reject names that are not valid shell variable names.
81ecdfbb
RW
813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814 as_fn_error "invalid feature name: $ac_useropt"
815 ac_useropt_orig=$ac_useropt
816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817 case $ac_user_opts in
818 *"
819"enable_$ac_useropt"
820"*) ;;
821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
822 ac_unrecognized_sep=', ';;
c906108c 823 esac
81ecdfbb 824 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
825
826 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
827 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
828 | --exec | --exe | --ex)
829 ac_prev=exec_prefix ;;
830 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
831 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
832 | --exec=* | --exe=* | --ex=*)
bec39cab 833 exec_prefix=$ac_optarg ;;
c906108c
SS
834
835 -gas | --gas | --ga | --g)
836 # Obsolete; use --with-gas.
837 with_gas=yes ;;
838
bec39cab
AC
839 -help | --help | --hel | --he | -h)
840 ac_init_help=long ;;
841 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
842 ac_init_help=recursive ;;
843 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
844 ac_init_help=short ;;
c906108c
SS
845
846 -host | --host | --hos | --ho)
bec39cab 847 ac_prev=host_alias ;;
c906108c 848 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 849 host_alias=$ac_optarg ;;
c906108c 850
81ecdfbb
RW
851 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
852 ac_prev=htmldir ;;
853 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
854 | --ht=*)
855 htmldir=$ac_optarg ;;
856
c906108c
SS
857 -includedir | --includedir | --includedi | --included | --include \
858 | --includ | --inclu | --incl | --inc)
859 ac_prev=includedir ;;
860 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
861 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 862 includedir=$ac_optarg ;;
c906108c
SS
863
864 -infodir | --infodir | --infodi | --infod | --info | --inf)
865 ac_prev=infodir ;;
866 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 867 infodir=$ac_optarg ;;
c906108c
SS
868
869 -libdir | --libdir | --libdi | --libd)
870 ac_prev=libdir ;;
871 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 872 libdir=$ac_optarg ;;
c906108c
SS
873
874 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
875 | --libexe | --libex | --libe)
876 ac_prev=libexecdir ;;
877 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
878 | --libexe=* | --libex=* | --libe=*)
bec39cab 879 libexecdir=$ac_optarg ;;
c906108c 880
81ecdfbb
RW
881 -localedir | --localedir | --localedi | --localed | --locale)
882 ac_prev=localedir ;;
883 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
884 localedir=$ac_optarg ;;
885
c906108c 886 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 887 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
888 ac_prev=localstatedir ;;
889 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 890 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 891 localstatedir=$ac_optarg ;;
c906108c
SS
892
893 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
894 ac_prev=mandir ;;
895 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 896 mandir=$ac_optarg ;;
c906108c
SS
897
898 -nfp | --nfp | --nf)
899 # Obsolete; use --without-fp.
900 with_fp=no ;;
901
902 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 903 | --no-cr | --no-c | -n)
c906108c
SS
904 no_create=yes ;;
905
906 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
907 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
908 no_recursion=yes ;;
909
910 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
911 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
912 | --oldin | --oldi | --old | --ol | --o)
913 ac_prev=oldincludedir ;;
914 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
915 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
916 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 917 oldincludedir=$ac_optarg ;;
c906108c
SS
918
919 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
920 ac_prev=prefix ;;
921 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 922 prefix=$ac_optarg ;;
c906108c
SS
923
924 -program-prefix | --program-prefix | --program-prefi | --program-pref \
925 | --program-pre | --program-pr | --program-p)
926 ac_prev=program_prefix ;;
927 -program-prefix=* | --program-prefix=* | --program-prefi=* \
928 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 929 program_prefix=$ac_optarg ;;
c906108c
SS
930
931 -program-suffix | --program-suffix | --program-suffi | --program-suff \
932 | --program-suf | --program-su | --program-s)
933 ac_prev=program_suffix ;;
934 -program-suffix=* | --program-suffix=* | --program-suffi=* \
935 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 936 program_suffix=$ac_optarg ;;
c906108c
SS
937
938 -program-transform-name | --program-transform-name \
939 | --program-transform-nam | --program-transform-na \
940 | --program-transform-n | --program-transform- \
941 | --program-transform | --program-transfor \
942 | --program-transfo | --program-transf \
943 | --program-trans | --program-tran \
944 | --progr-tra | --program-tr | --program-t)
945 ac_prev=program_transform_name ;;
946 -program-transform-name=* | --program-transform-name=* \
947 | --program-transform-nam=* | --program-transform-na=* \
948 | --program-transform-n=* | --program-transform-=* \
949 | --program-transform=* | --program-transfor=* \
950 | --program-transfo=* | --program-transf=* \
951 | --program-trans=* | --program-tran=* \
952 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 953 program_transform_name=$ac_optarg ;;
c906108c 954
81ecdfbb
RW
955 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
956 ac_prev=pdfdir ;;
957 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
958 pdfdir=$ac_optarg ;;
959
960 -psdir | --psdir | --psdi | --psd | --ps)
961 ac_prev=psdir ;;
962 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
963 psdir=$ac_optarg ;;
964
c906108c
SS
965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
966 | -silent | --silent | --silen | --sile | --sil)
967 silent=yes ;;
968
969 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
970 ac_prev=sbindir ;;
971 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
972 | --sbi=* | --sb=*)
bec39cab 973 sbindir=$ac_optarg ;;
c906108c
SS
974
975 -sharedstatedir | --sharedstatedir | --sharedstatedi \
976 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
977 | --sharedst | --shareds | --shared | --share | --shar \
978 | --sha | --sh)
979 ac_prev=sharedstatedir ;;
980 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
981 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
982 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
983 | --sha=* | --sh=*)
bec39cab 984 sharedstatedir=$ac_optarg ;;
c906108c
SS
985
986 -site | --site | --sit)
987 ac_prev=site ;;
988 -site=* | --site=* | --sit=*)
bec39cab 989 site=$ac_optarg ;;
5710a1af 990
c906108c
SS
991 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
992 ac_prev=srcdir ;;
993 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 994 srcdir=$ac_optarg ;;
c906108c
SS
995
996 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
997 | --syscon | --sysco | --sysc | --sys | --sy)
998 ac_prev=sysconfdir ;;
999 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1000 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1001 sysconfdir=$ac_optarg ;;
c906108c
SS
1002
1003 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1004 ac_prev=target_alias ;;
c906108c 1005 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1006 target_alias=$ac_optarg ;;
c906108c
SS
1007
1008 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1009 verbose=yes ;;
1010
bec39cab
AC
1011 -version | --version | --versio | --versi | --vers | -V)
1012 ac_init_version=: ;;
c906108c
SS
1013
1014 -with-* | --with-*)
81ecdfbb 1015 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1016 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error "invalid package name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023"with_$ac_useropt"
1024"*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
c906108c 1027 esac
81ecdfbb 1028 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1029
1030 -without-* | --without-*)
81ecdfbb 1031 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1032 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error "invalid package name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"with_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval with_$ac_useropt=no ;;
c906108c
SS
1045
1046 --x)
1047 # Obsolete; use --with-x.
1048 with_x=yes ;;
1049
1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051 | --x-incl | --x-inc | --x-in | --x-i)
1052 ac_prev=x_includes ;;
1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1055 x_includes=$ac_optarg ;;
c906108c
SS
1056
1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059 ac_prev=x_libraries ;;
1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1062 x_libraries=$ac_optarg ;;
c906108c 1063
81ecdfbb
RW
1064 -*) as_fn_error "unrecognized option: \`$ac_option'
1065Try \`$0 --help' for more information."
c906108c
SS
1066 ;;
1067
bec39cab
AC
1068 *=*)
1069 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1070 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1071 case $ac_envvar in #(
1072 '' | [0-9]* | *[!_$as_cr_alnum]* )
1073 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1074 esac
1075 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1076 export $ac_envvar ;;
1077
c906108c 1078 *)
bec39cab 1079 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1080 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1082 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1083 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1084 ;;
1085
1086 esac
1087done
1088
1089if test -n "$ac_prev"; then
bec39cab 1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1091 as_fn_error "missing argument to $ac_option"
c906108c
SS
1092fi
1093
81ecdfbb
RW
1094if test -n "$ac_unrecognized_opts"; then
1095 case $enable_option_checking in
1096 no) ;;
1097 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1098 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bec39cab 1099 esac
81ecdfbb 1100fi
c906108c 1101
81ecdfbb
RW
1102# Check all directory arguments for consistency.
1103for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
c906108c 1107do
81ecdfbb
RW
1108 eval ac_val=\$$ac_var
1109 # Remove trailing slashes.
bec39cab 1110 case $ac_val in
81ecdfbb
RW
1111 */ )
1112 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1113 eval $ac_var=\$ac_val;;
c906108c 1114 esac
81ecdfbb
RW
1115 # Be sure to have absolute directory names.
1116 case $ac_val in
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119 esac
1120 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1121done
1122
bec39cab
AC
1123# There might be people who depend on the old broken behavior: `$host'
1124# used to hold the argument of --host etc.
1125# FIXME: To remove some day.
1126build=$build_alias
1127host=$host_alias
1128target=$target_alias
1129
1130# FIXME: To remove some day.
1131if test "x$host_alias" != x; then
1132 if test "x$build_alias" = x; then
1133 cross_compiling=maybe
81ecdfbb 1134 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1135 If a cross compiler is detected then cross compile mode will be used." >&2
1136 elif test "x$build_alias" != "x$host_alias"; then
1137 cross_compiling=yes
1138 fi
1139fi
c906108c 1140
bec39cab
AC
1141ac_tool_prefix=
1142test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143
1144test "$silent" = yes && exec 6>/dev/null
c906108c 1145
c906108c 1146
81ecdfbb
RW
1147ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148ac_ls_di=`ls -di .` &&
1149ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150 as_fn_error "working directory cannot be determined"
1151test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 as_fn_error "pwd does not report name of working directory"
1153
1154
c906108c
SS
1155# Find the source files, if location was not specified.
1156if test -z "$srcdir"; then
1157 ac_srcdir_defaulted=yes
81ecdfbb
RW
1158 # Try the directory containing this script, then the parent directory.
1159 ac_confdir=`$as_dirname -- "$as_myself" ||
1160$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1161 X"$as_myself" : 'X\(//\)[^/]' \| \
1162 X"$as_myself" : 'X\(//\)$' \| \
1163 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1164$as_echo X"$as_myself" |
1165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1166 s//\1/
1167 q
1168 }
1169 /^X\(\/\/\)[^/].*/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\/\)$/{
1174 s//\1/
1175 q
1176 }
1177 /^X\(\/\).*/{
1178 s//\1/
1179 q
1180 }
1181 s/.*/./; q'`
c906108c 1182 srcdir=$ac_confdir
81ecdfbb 1183 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1184 srcdir=..
1185 fi
1186else
1187 ac_srcdir_defaulted=no
1188fi
81ecdfbb
RW
1189if test ! -r "$srcdir/$ac_unique_file"; then
1190 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1191 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1192fi
1193ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1194ac_abs_confdir=`(
1195 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1196 pwd)`
1197# When building in place, set srcdir=.
1198if test "$ac_abs_confdir" = "$ac_pwd"; then
1199 srcdir=.
1200fi
1201# Remove unnecessary trailing slashes from srcdir.
1202# Double slashes in file names in object file debugging info
1203# mess up M-x gdb in Emacs.
1204case $srcdir in
1205*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206esac
1207for ac_var in $ac_precious_vars; do
1208 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_env_${ac_var}_value=\$${ac_var}
1210 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1211 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1212done
c906108c 1213
bec39cab
AC
1214#
1215# Report the --help message.
1216#
1217if test "$ac_init_help" = "long"; then
1218 # Omit some internal or obsolete options to make the list less imposing.
1219 # This message is too long to be a string in the A/UX 3.1 sh.
1220 cat <<_ACEOF
1221\`configure' configures this package to adapt to many kinds of systems.
1222
1223Usage: $0 [OPTION]... [VAR=VALUE]...
1224
1225To assign environment variables (e.g., CC, CFLAGS...), specify them as
1226VAR=VALUE. See below for descriptions of some of the useful variables.
1227
1228Defaults for the options are specified in brackets.
1229
1230Configuration:
1231 -h, --help display this help and exit
1232 --help=short display options specific to this package
1233 --help=recursive display the short help of all the included packages
1234 -V, --version display version information and exit
1235 -q, --quiet, --silent do not print \`checking...' messages
1236 --cache-file=FILE cache test results in FILE [disabled]
1237 -C, --config-cache alias for \`--cache-file=config.cache'
1238 -n, --no-create do not create output files
1239 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240
bec39cab
AC
1241Installation directories:
1242 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1243 [$ac_default_prefix]
bec39cab 1244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1245 [PREFIX]
bec39cab
AC
1246
1247By default, \`make install' will install all the files in
1248\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1249an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1250for instance \`--prefix=\$HOME'.
1251
1252For better control, use the options below.
1253
1254Fine tuning of the installation directories:
81ecdfbb
RW
1255 --bindir=DIR user executables [EPREFIX/bin]
1256 --sbindir=DIR system admin executables [EPREFIX/sbin]
1257 --libexecdir=DIR program executables [EPREFIX/libexec]
1258 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1259 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1260 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1261 --libdir=DIR object code libraries [EPREFIX/lib]
1262 --includedir=DIR C header files [PREFIX/include]
1263 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1264 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1265 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1266 --infodir=DIR info documentation [DATAROOTDIR/info]
1267 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1268 --mandir=DIR man documentation [DATAROOTDIR/man]
1269 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1270 --htmldir=DIR html documentation [DOCDIR]
1271 --dvidir=DIR dvi documentation [DOCDIR]
1272 --pdfdir=DIR pdf documentation [DOCDIR]
1273 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1274_ACEOF
1275
1276 cat <<\_ACEOF
1277
1278System types:
1279 --build=BUILD configure for building on BUILD [guessed]
1280 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1281 --target=TARGET configure for building compilers for TARGET [HOST]
1282_ACEOF
1283fi
1284
1285if test -n "$ac_init_help"; then
1286
1287 cat <<\_ACEOF
1288
1289Optional Features:
81ecdfbb 1290 --disable-option-checking ignore unrecognized --enable/--with options
bec39cab
AC
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --enable-gtk enable gdbtk graphical user interface (GUI)
1294 --enable-shared build shared libraries deault=yes
1295
1296Optional Packages:
1297 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1298 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1299 --with-stabs arrange to use stabs instead of host debug format
1300
1301Some influential environment variables:
1302 CC C compiler command
1303 CFLAGS C compiler flags
1304 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1305 nonstandard directory <lib dir>
81ecdfbb
RW
1306 LIBS libraries to pass to the linker, e.g. -l<library>
1307 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1308 you have headers in a nonstandard directory <include dir>
bec39cab
AC
1309 CPP C preprocessor
1310
1311Use these variables to override the choices made by `configure' or to help
1312it to find libraries and programs with nonstandard names/locations.
1313
81ecdfbb 1314Report bugs to the package provider.
bec39cab 1315_ACEOF
81ecdfbb 1316ac_status=$?
bec39cab
AC
1317fi
1318
1319if test "$ac_init_help" = "recursive"; then
1320 # If there are subdirs, report their specific --help.
bec39cab 1321 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1322 test -d "$ac_dir" ||
1323 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1324 continue
bec39cab
AC
1325 ac_builddir=.
1326
81ecdfbb
RW
1327case "$ac_dir" in
1328.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329*)
1330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1331 # A ".." for each directory in $ac_dir_suffix.
1332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1333 case $ac_top_builddir_sub in
1334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1336 esac ;;
1337esac
1338ac_abs_top_builddir=$ac_pwd
1339ac_abs_builddir=$ac_pwd$ac_dir_suffix
1340# for backward compatibility:
1341ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1342
1343case $srcdir in
81ecdfbb 1344 .) # We are building in place.
bec39cab 1345 ac_srcdir=.
81ecdfbb
RW
1346 ac_top_srcdir=$ac_top_builddir_sub
1347 ac_abs_top_srcdir=$ac_pwd ;;
1348 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1349 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1350 ac_top_srcdir=$srcdir
1351 ac_abs_top_srcdir=$srcdir ;;
1352 *) # Relative name.
1353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1354 ac_top_srcdir=$ac_top_build_prefix$srcdir
1355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 1356esac
81ecdfbb 1357ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 1358
81ecdfbb
RW
1359 cd "$ac_dir" || { ac_status=$?; continue; }
1360 # Check for guested configure.
1361 if test -f "$ac_srcdir/configure.gnu"; then
1362 echo &&
1363 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1364 elif test -f "$ac_srcdir/configure"; then
1365 echo &&
1366 $SHELL "$ac_srcdir/configure" --help=recursive
bec39cab 1367 else
81ecdfbb
RW
1368 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369 fi || ac_status=$?
1370 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1371 done
1372fi
1373
81ecdfbb 1374test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1375if $ac_init_version; then
1376 cat <<\_ACEOF
81ecdfbb
RW
1377configure
1378generated by GNU Autoconf 2.64
bec39cab 1379
81ecdfbb 1380Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1381This configure script is free software; the Free Software Foundation
1382gives unlimited permission to copy, distribute and modify it.
1383_ACEOF
81ecdfbb 1384 exit
bec39cab 1385fi
bec39cab 1386
81ecdfbb
RW
1387## ------------------------ ##
1388## Autoconf initialization. ##
1389## ------------------------ ##
bec39cab 1390
81ecdfbb
RW
1391# ac_fn_c_try_compile LINENO
1392# --------------------------
1393# Try to compile conftest.$ac_ext, and return whether this succeeded.
1394ac_fn_c_try_compile ()
bec39cab 1395{
81ecdfbb
RW
1396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1397 rm -f conftest.$ac_objext
1398 if { { ac_try="$ac_compile"
1399case "(($ac_try" in
1400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1401 *) ac_try_echo=$ac_try;;
1402esac
1403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1404$as_echo "$ac_try_echo"; } >&5
1405 (eval "$ac_compile") 2>conftest.err
1406 ac_status=$?
1407 if test -s conftest.err; then
1408 grep -v '^ *+' conftest.err >conftest.er1
1409 cat conftest.er1 >&5
1410 mv -f conftest.er1 conftest.err
1411 fi
1412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1413 test $ac_status = 0; } && {
1414 test -z "$ac_c_werror_flag" ||
1415 test ! -s conftest.err
1416 } && test -s conftest.$ac_objext; then :
1417 ac_retval=0
1418else
1419 $as_echo "$as_me: failed program was:" >&5
1420sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1421
81ecdfbb
RW
1422 ac_retval=1
1423fi
1424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1425 return $ac_retval
bec39cab 1426
81ecdfbb 1427} # ac_fn_c_try_compile
bec39cab 1428
81ecdfbb
RW
1429# ac_fn_c_try_cpp LINENO
1430# ----------------------
1431# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1432ac_fn_c_try_cpp ()
1433{
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 if { { ac_try="$ac_cpp conftest.$ac_ext"
1436case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439esac
1440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441$as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } >/dev/null && {
1451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1452 test ! -s conftest.err
1453 }; then :
1454 ac_retval=0
1455else
1456 $as_echo "$as_me: failed program was:" >&5
1457sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1458
81ecdfbb
RW
1459 ac_retval=1
1460fi
1461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1462 return $ac_retval
bec39cab 1463
81ecdfbb 1464} # ac_fn_c_try_cpp
bec39cab 1465
81ecdfbb
RW
1466# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1467# -------------------------------------------------------
1468# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1469# the include files in INCLUDES and setting the cache variable VAR
1470# accordingly.
1471ac_fn_c_check_header_mongrel ()
1472{
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1476$as_echo_n "checking for $2... " >&6; }
1477if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1478 $as_echo_n "(cached) " >&6
1479fi
1480eval ac_res=\$$3
1481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1482$as_echo "$ac_res" >&6; }
1483else
1484 # Is the header compilable?
1485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1486$as_echo_n "checking $2 usability... " >&6; }
1487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1488/* end confdefs.h. */
1489$4
1490#include <$2>
1491_ACEOF
1492if ac_fn_c_try_compile "$LINENO"; then :
1493 ac_header_compiler=yes
1494else
1495 ac_header_compiler=no
1496fi
1497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1499$as_echo "$ac_header_compiler" >&6; }
1500
1501# Is the header present?
1502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1503$as_echo_n "checking $2 presence... " >&6; }
1504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1505/* end confdefs.h. */
1506#include <$2>
1507_ACEOF
1508if ac_fn_c_try_cpp "$LINENO"; then :
1509 ac_header_preproc=yes
1510else
1511 ac_header_preproc=no
1512fi
1513rm -f conftest.err conftest.$ac_ext
1514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1515$as_echo "$ac_header_preproc" >&6; }
1516
1517# So? What about this header?
1518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1519 yes:no: )
1520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1521$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1523$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1524 ;;
1525 no:yes:* )
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1527$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1529$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1531$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1533$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1535$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1536 ;;
1537esac
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1539$as_echo_n "checking for $2... " >&6; }
1540if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1541 $as_echo_n "(cached) " >&6
1542else
1543 eval "$3=\$ac_header_compiler"
1544fi
1545eval ac_res=\$$3
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547$as_echo "$ac_res" >&6; }
1548fi
1549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1550
1551} # ac_fn_c_check_header_mongrel
1552
1553# ac_fn_c_try_run LINENO
1554# ----------------------
1555# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1556# that executables *can* be run.
1557ac_fn_c_try_run ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { { ac_try="$ac_link"
1561case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566$as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>&5
1568 ac_status=$?
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1571 { { case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_try") 2>&5
1578 ac_status=$?
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; }; }; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: program exited with status $ac_status" >&5
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=$ac_status
1588fi
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 return $ac_retval
1592
1593} # ac_fn_c_try_run
1594
1595# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596# -------------------------------------------------------
1597# Tests whether HEADER exists and can be compiled using the include files in
1598# INCLUDES, setting the cache variable VAR accordingly.
1599ac_fn_c_check_header_compile ()
1600{
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603$as_echo_n "checking for $2... " >&6; }
1604if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605 $as_echo_n "(cached) " >&6
1606else
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h. */
1609$4
1610#include <$2>
1611_ACEOF
1612if ac_fn_c_try_compile "$LINENO"; then :
1613 eval "$3=yes"
1614else
1615 eval "$3=no"
1616fi
1617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618fi
1619eval ac_res=\$$3
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621$as_echo "$ac_res" >&6; }
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623
1624} # ac_fn_c_check_header_compile
1625cat >config.log <<_ACEOF
1626This file contains any messages produced by compilers while
1627running configure, to aid debugging if configure makes a mistake.
1628
1629It was created by $as_me, which was
1630generated by GNU Autoconf 2.64. Invocation command line was
1631
1632 $ $0 $@
1633
1634_ACEOF
1635exec 5>>config.log
1636{
1637cat <<_ASUNAME
1638## --------- ##
1639## Platform. ##
1640## --------- ##
1641
1642hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1643uname -m = `(uname -m) 2>/dev/null || echo unknown`
1644uname -r = `(uname -r) 2>/dev/null || echo unknown`
1645uname -s = `(uname -s) 2>/dev/null || echo unknown`
1646uname -v = `(uname -v) 2>/dev/null || echo unknown`
1647
1648/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1649/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1650
1651/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1652/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1653/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1654/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1655/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1656/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1657/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1658
1659_ASUNAME
1660
1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662for as_dir in $PATH
1663do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 $as_echo "PATH: $as_dir"
1667 done
1668IFS=$as_save_IFS
1669
1670} >&5
1671
1672cat >&5 <<_ACEOF
bec39cab
AC
1673
1674
1675## ----------- ##
1676## Core tests. ##
1677## ----------- ##
1678
1679_ACEOF
1680
1681
1682# Keep a trace of the command line.
1683# Strip out --no-create and --no-recursion so they do not pile up.
1684# Strip out --silent because we don't want to record it for future runs.
1685# Also quote any args containing shell meta-characters.
1686# Make two passes to allow for proper duplicate-argument suppression.
1687ac_configure_args=
1688ac_configure_args0=
1689ac_configure_args1=
bec39cab
AC
1690ac_must_keep_next=false
1691for ac_pass in 1 2
1692do
1693 for ac_arg
1694 do
1695 case $ac_arg in
1696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1698 | -silent | --silent | --silen | --sile | --sil)
1699 continue ;;
81ecdfbb
RW
1700 *\'*)
1701 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1702 esac
1703 case $ac_pass in
81ecdfbb 1704 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 1705 2)
81ecdfbb 1706 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
1707 if test $ac_must_keep_next = true; then
1708 ac_must_keep_next=false # Got value, back to normal.
1709 else
1710 case $ac_arg in
1711 *=* | --config-cache | -C | -disable-* | --disable-* \
1712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1714 | -with-* | --with-* | -without-* | --without-* | --x)
1715 case "$ac_configure_args0 " in
1716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1717 esac
1718 ;;
1719 -* ) ac_must_keep_next=true ;;
1720 esac
1721 fi
81ecdfbb 1722 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
1723 ;;
1724 esac
1725 done
1726done
81ecdfbb
RW
1727{ ac_configure_args0=; unset ac_configure_args0;}
1728{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
1729
1730# When interrupted or exit'd, cleanup temporary files, and complete
1731# config.log. We remove comments because anyway the quotes in there
1732# would cause problems or look ugly.
81ecdfbb
RW
1733# WARNING: Use '\'' to represent an apostrophe within the trap.
1734# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
1735trap 'exit_status=$?
1736 # Save into config.log some information that might help in debugging.
1737 {
1738 echo
1739
1740 cat <<\_ASBOX
1741## ---------------- ##
1742## Cache variables. ##
1743## ---------------- ##
1744_ASBOX
1745 echo
1746 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1747(
1748 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in #(
1751 *${as_nl}*)
1752 case $ac_var in #(
1753 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1754$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1755 esac
1756 case $ac_var in #(
1757 _ | IFS | as_nl) ;; #(
1758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1759 *) { eval $ac_var=; unset $ac_var;} ;;
1760 esac ;;
1761 esac
1762 done
bec39cab 1763 (set) 2>&1 |
81ecdfbb
RW
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
bec39cab 1766 sed -n \
81ecdfbb
RW
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769 ;; #(
bec39cab 1770 *)
81ecdfbb 1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 1772 ;;
81ecdfbb
RW
1773 esac |
1774 sort
1775)
bec39cab
AC
1776 echo
1777
1778 cat <<\_ASBOX
1779## ----------------- ##
1780## Output variables. ##
1781## ----------------- ##
1782_ASBOX
1783 echo
1784 for ac_var in $ac_subst_vars
1785 do
81ecdfbb
RW
1786 eval ac_val=\$$ac_var
1787 case $ac_val in
1788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 esac
1790 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
1791 done | sort
1792 echo
1793
1794 if test -n "$ac_subst_files"; then
1795 cat <<\_ASBOX
81ecdfbb
RW
1796## ------------------- ##
1797## File substitutions. ##
1798## ------------------- ##
bec39cab
AC
1799_ASBOX
1800 echo
1801 for ac_var in $ac_subst_files
1802 do
81ecdfbb
RW
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
1808 done | sort
1809 echo
1810 fi
1811
1812 if test -s confdefs.h; then
1813 cat <<\_ASBOX
1814## ----------- ##
1815## confdefs.h. ##
1816## ----------- ##
1817_ASBOX
1818 echo
81ecdfbb 1819 cat confdefs.h
bec39cab 1820 echo
5710a1af 1821 fi
bec39cab 1822 test "$ac_signal" != 0 &&
81ecdfbb
RW
1823 $as_echo "$as_me: caught signal $ac_signal"
1824 $as_echo "$as_me: exit $exit_status"
bec39cab 1825 } >&5
81ecdfbb
RW
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1828 exit $exit_status
81ecdfbb 1829' 0
bec39cab 1830for ac_signal in 1 2 13 15; do
81ecdfbb 1831 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
1832done
1833ac_signal=0
1834
1835# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1836rm -f -r conftest* confdefs.h
1837
1838$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
1839
1840# Predefined preprocessor variables.
1841
1842cat >>confdefs.h <<_ACEOF
1843#define PACKAGE_NAME "$PACKAGE_NAME"
1844_ACEOF
1845
bec39cab
AC
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848_ACEOF
1849
bec39cab
AC
1850cat >>confdefs.h <<_ACEOF
1851#define PACKAGE_VERSION "$PACKAGE_VERSION"
1852_ACEOF
1853
bec39cab
AC
1854cat >>confdefs.h <<_ACEOF
1855#define PACKAGE_STRING "$PACKAGE_STRING"
1856_ACEOF
1857
bec39cab
AC
1858cat >>confdefs.h <<_ACEOF
1859#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1860_ACEOF
1861
81ecdfbb
RW
1862cat >>confdefs.h <<_ACEOF
1863#define PACKAGE_URL "$PACKAGE_URL"
1864_ACEOF
1865
bec39cab
AC
1866
1867# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1868# Prefer an explicitly selected file to automatically selected ones.
1869ac_site_file1=NONE
1870ac_site_file2=NONE
1871if test -n "$CONFIG_SITE"; then
1872 ac_site_file1=$CONFIG_SITE
1873elif test "x$prefix" != xNONE; then
1874 ac_site_file1=$prefix/share/config.site
1875 ac_site_file2=$prefix/etc/config.site
1876else
1877 ac_site_file1=$ac_default_prefix/share/config.site
1878 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 1879fi
81ecdfbb
RW
1880for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1881do
1882 test "x$ac_site_file" = xNONE && continue
c906108c 1883 if test -r "$ac_site_file"; then
81ecdfbb
RW
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1885$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 1886 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1887 . "$ac_site_file"
1888 fi
1889done
1890
1891if test -r "$cache_file"; then
bec39cab
AC
1892 # Some versions of bash will fail to source /dev/null (special
1893 # files actually), so we avoid doing that.
1894 if test -f "$cache_file"; then
81ecdfbb
RW
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1896$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 1897 case $cache_file in
81ecdfbb
RW
1898 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1899 *) . "./$cache_file";;
bec39cab
AC
1900 esac
1901 fi
c906108c 1902else
81ecdfbb
RW
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1904$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 1905 >$cache_file
c906108c
SS
1906fi
1907
bec39cab
AC
1908# Check that the precious variables saved in the cache have kept the same
1909# value.
1910ac_cache_corrupted=false
81ecdfbb 1911for ac_var in $ac_precious_vars; do
bec39cab
AC
1912 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1913 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1914 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1915 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
1916 case $ac_old_set,$ac_new_set in
1917 set,)
81ecdfbb
RW
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1919$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
1920 ac_cache_corrupted=: ;;
1921 ,set)
81ecdfbb
RW
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1923$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
1924 ac_cache_corrupted=: ;;
1925 ,);;
1926 *)
1927 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1928 # differences in whitespace do not lead to failure.
1929 ac_old_val_w=`echo x $ac_old_val`
1930 ac_new_val_w=`echo x $ac_new_val`
1931 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1933$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1934 ac_cache_corrupted=:
1935 else
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1937$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1938 eval $ac_var=\$ac_old_val
1939 fi
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1941$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1943$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1944 fi;;
1945 esac
1946 # Pass precious variables to config.status.
1947 if test "$ac_new_set" = set; then
1948 case $ac_new_val in
81ecdfbb 1949 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1950 *) ac_arg=$ac_var=$ac_new_val ;;
1951 esac
1952 case " $ac_configure_args " in
1953 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 1954 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 1955 esac
c906108c 1956 fi
bec39cab
AC
1957done
1958if $ac_cache_corrupted; then
81ecdfbb
RW
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1962$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 1964fi
81ecdfbb
RW
1965## -------------------- ##
1966## Main body of script. ##
1967## -------------------- ##
c906108c 1968
bec39cab
AC
1969ac_ext=c
1970ac_cpp='$CPP $CPPFLAGS'
1971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974
1975
1976
bec39cab 1977
c906108c
SS
1978
1979
c906108c 1980ac_aux_dir=
81ecdfbb
RW
1981for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1982 for ac_t in install-sh install.sh shtool; do
1983 if test -f "$ac_dir/$ac_t"; then
1984 ac_aux_dir=$ac_dir
1985 ac_install_sh="$ac_aux_dir/$ac_t -c"
1986 break 2
1987 fi
1988 done
c906108c
SS
1989done
1990if test -z "$ac_aux_dir"; then
81ecdfbb 1991 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
bec39cab 1992fi
81ecdfbb
RW
1993
1994# These three variables are undocumented and unsupported,
1995# and are intended to be withdrawn in a future Autoconf release.
1996# They can cause serious problems if a builder's source tree is in a directory
1997# whose full name contains unusual characters.
1998ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1999ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2000ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2001
c906108c
SS
2002
2003# Make sure we can run config.sub.
81ecdfbb
RW
2004$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2005 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2006
2007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2008$as_echo_n "checking build system type... " >&6; }
2009if test "${ac_cv_build+set}" = set; then :
2010 $as_echo_n "(cached) " >&6
bec39cab 2011else
81ecdfbb
RW
2012 ac_build_alias=$build_alias
2013test "x$ac_build_alias" = x &&
2014 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2015test "x$ac_build_alias" = x &&
2016 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2017ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2019
2020fi
2021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2022$as_echo "$ac_cv_build" >&6; }
2023case $ac_cv_build in
2024*-*-*) ;;
2025*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2026esac
bec39cab 2027build=$ac_cv_build
81ecdfbb
RW
2028ac_save_IFS=$IFS; IFS='-'
2029set x $ac_cv_build
2030shift
2031build_cpu=$1
2032build_vendor=$2
2033shift; shift
2034# Remember, the first character of IFS is used to create $*,
2035# except with old shells:
2036build_os=$*
2037IFS=$ac_save_IFS
2038case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2039
2040
2041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2042$as_echo_n "checking host system type... " >&6; }
2043if test "${ac_cv_host+set}" = set; then :
2044 $as_echo_n "(cached) " >&6
2045else
2046 if test "x$host_alias" = x; then
2047 ac_cv_host=$ac_cv_build
bec39cab 2048else
81ecdfbb
RW
2049 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2051fi
c906108c 2052
bec39cab 2053fi
81ecdfbb
RW
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2055$as_echo "$ac_cv_host" >&6; }
2056case $ac_cv_host in
2057*-*-*) ;;
2058*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2059esac
bec39cab 2060host=$ac_cv_host
81ecdfbb
RW
2061ac_save_IFS=$IFS; IFS='-'
2062set x $ac_cv_host
2063shift
2064host_cpu=$1
2065host_vendor=$2
2066shift; shift
2067# Remember, the first character of IFS is used to create $*,
2068# except with old shells:
2069host_os=$*
2070IFS=$ac_save_IFS
2071case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2072
2073
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2075$as_echo_n "checking target system type... " >&6; }
2076if test "${ac_cv_target+set}" = set; then :
2077 $as_echo_n "(cached) " >&6
bec39cab 2078else
81ecdfbb
RW
2079 if test "x$target_alias" = x; then
2080 ac_cv_target=$ac_cv_host
2081else
2082 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2083 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2084fi
c906108c 2085
bec39cab 2086fi
81ecdfbb
RW
2087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2088$as_echo "$ac_cv_target" >&6; }
2089case $ac_cv_target in
2090*-*-*) ;;
2091*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2092esac
bec39cab 2093target=$ac_cv_target
81ecdfbb
RW
2094ac_save_IFS=$IFS; IFS='-'
2095set x $ac_cv_target
2096shift
2097target_cpu=$1
2098target_vendor=$2
2099shift; shift
2100# Remember, the first character of IFS is used to create $*,
2101# except with old shells:
2102target_os=$*
2103IFS=$ac_save_IFS
2104case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 2105
c906108c 2106
bec39cab
AC
2107# The aliases save the names the user supplied, while $host etc.
2108# will get canonicalized.
2109test -n "$target_alias" &&
2110 test "$program_prefix$program_suffix$program_transform_name" = \
2111 NONENONEs,x,x, &&
2112 program_prefix=${target_alias}-
c906108c 2113
be2a5f71
DJ
2114 case ${build_alias} in
2115 "") build_noncanonical=${build} ;;
2116 *) build_noncanonical=${build_alias} ;;
2117esac
2118
2119 case ${host_alias} in
2120 "") host_noncanonical=${build_noncanonical} ;;
2121 *) host_noncanonical=${host_alias} ;;
2122esac
2123
2124 case ${target_alias} in
2125 "") target_noncanonical=${host_noncanonical} ;;
2126 *) target_noncanonical=${target_alias} ;;
2127esac
2128
2129
2130
2131
6bc80edc
TT
2132# Check for the 'make' the user wants to use.
2133for ac_prog in make
2134do
2135 # Extract the first word of "$ac_prog", so it can be a program name with args.
2136set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2138$as_echo_n "checking for $ac_word... " >&6; }
2139if test "${ac_cv_prog_MAKE+set}" = set; then :
2140 $as_echo_n "(cached) " >&6
6bc80edc
TT
2141else
2142 if test -n "$MAKE"; then
2143 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2144else
2145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bc80edc 2152 ac_cv_prog_MAKE="$ac_prog"
81ecdfbb 2153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bc80edc
TT
2154 break 2
2155 fi
2156done
81ecdfbb
RW
2157 done
2158IFS=$as_save_IFS
6bc80edc
TT
2159
2160fi
2161fi
2162MAKE=$ac_cv_prog_MAKE
2163if test -n "$MAKE"; then
81ecdfbb
RW
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
2165$as_echo "$MAKE" >&6; }
6bc80edc 2166else
81ecdfbb
RW
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2168$as_echo "no" >&6; }
6bc80edc
TT
2169fi
2170
81ecdfbb 2171
6bc80edc
TT
2172 test -n "$MAKE" && break
2173done
2174
2175MAKE_IS_GNU=
2176case "`$MAKE --version 2>&1 | sed 1q`" in
2177 *GNU*)
2178 MAKE_IS_GNU=yes
2179 ;;
2180esac
2181
2182
2183if test "$MAKE_IS_GNU" = yes; then
2184 GMAKE_TRUE=
2185 GMAKE_FALSE='#'
2186else
2187 GMAKE_TRUE='#'
2188 GMAKE_FALSE=
2189fi
2190
81ecdfbb
RW
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2192$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2193set x ${MAKE-make}
2194ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2195if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2196 $as_echo_n "(cached) " >&6
6bc80edc
TT
2197else
2198 cat >conftest.make <<\_ACEOF
81ecdfbb 2199SHELL = /bin/sh
6bc80edc 2200all:
81ecdfbb 2201 @echo '@@@%%%=$(MAKE)=@@@%%%'
6bc80edc
TT
2202_ACEOF
2203# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
2204case `${MAKE-make} -f conftest.make 2>/dev/null` in
2205 *@@@%%%=?*=@@@%%%*)
2206 eval ac_cv_prog_make_${ac_make}_set=yes;;
2207 *)
2208 eval ac_cv_prog_make_${ac_make}_set=no;;
2209esac
6bc80edc
TT
2210rm -f conftest.make
2211fi
81ecdfbb
RW
2212if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2214$as_echo "yes" >&6; }
6bc80edc
TT
2215 SET_MAKE=
2216else
81ecdfbb
RW
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2218$as_echo "no" >&6; }
6bc80edc
TT
2219 SET_MAKE="MAKE=${MAKE-make}"
2220fi
2221
2222
b39c905e
MK
2223# Add HP-specific tests when appropriate.
2224case $target in
2225 hppa*-*-hpux*)
bec39cab
AC
2226
2227
2228subdirs="$subdirs gdb.hp"
3ace7edb 2229 ;;
c906108c
SS
2230esac
2231
1ea34204
UW
2232# Add Cell/B.E. specific tests when appropriate.
2233# We need support for both PowerPC and SPU targets configured in.
2234case $target in
2235 powerpc*-*-linux*)
2236 have_spu_target=no
2237 for targ in `echo $enable_targets | sed 's/,/ /g'`
2238 do
2239 case "${targ}" in
2240 spu*|all) have_spu_target=yes ;;
2241 esac
2242 done
2243 if test x$have_spu_target = xyes; then
81ecdfbb 2244 subdirs="$subdirs gdb.cell"
1ea34204
UW
2245
2246 fi
2247 ;;
2248esac
2249
b39c905e 2250# With stabs.
bec39cab 2251
81ecdfbb
RW
2252# Check whether --with-stabs was given.
2253if test "${with_stabs+set}" = set; then :
2254 withval=$with_stabs;
b39c905e
MK
2255else
2256 # We enable stabs tests by default on selected targets.
2257case $target in
2258 powerpc-*-aix* \
2259 | rs6000-*-aix* \
3224a706 2260 | *-*-*bsd* \
b39c905e
MK
2261 | *-*-go32* \
2262 | *-*-linux* \
2263 | *-*-lynxos* \
2264 | *-sun-* \
2265 | hppa*-*-* \
2266 | *-*-elf* \
3f213f78
PA
2267 | *-*-cygwin* \
2268 | *-*-mingw* \
b39c905e
MK
2269 )
2270 with_stabs=yes ;;
2271 *)
2272 with_stabs=no ;;
c906108c 2273esac
81ecdfbb
RW
2274fi
2275
b39c905e
MK
2276
2277# Add stabs tests when appropriate.
2278if test $with_stabs = yes; then
81ecdfbb 2279 subdirs="$subdirs gdb.stabs"
3ace7edb 2280
c906108c
SS
2281fi
2282
b39c905e 2283# Enable gdbtk.
81ecdfbb
RW
2284# Check whether --enable-gdbtk was given.
2285if test "${enable_gdbtk+set}" = set; then :
2286 enableval=$enable_gdbtk;
3fc11d3e 2287else
b39c905e
MK
2288 if test -d $srcdir/gdb.gdbtk; then
2289 enable_gdbtk=yes
2290 else
2291 enable_gdbtk=no
2292 fi
81ecdfbb
RW
2293fi
2294
b39c905e
MK
2295# We unconditionally disable gdbtk tests on selected platforms.
2296case $host_os in
2297 go32* | windows*)
2298 enable_gdbtk=no ;;
2299esac
2300
2301# Add gdbtk tests when appropriate.
2302if test $enable_gdbtk = yes; then
81ecdfbb 2303 subdirs="$subdirs gdb.gdbtk"
3ace7edb 2304
3fc11d3e
JM
2305fi
2306
b39c905e 2307# Enable shared libraries.
81ecdfbb
RW
2308# Check whether --enable-shared was given.
2309if test "${enable_shared+set}" = set; then :
2310 enableval=$enable_shared;
b39c905e
MK
2311else
2312 enable_shared=yes
81ecdfbb
RW
2313fi
2314
b39c905e
MK
2315
2316# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
2317# such that we can find the shared libraries in the build tree.
2318if test $enable_shared = no; then
2319 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
2320 # platform.
2321 RPATH_ENVVAR=RPATH_ENVVAR
2322else
2323 # The variable `LD_LIBRARY_PATH' is used on most platforms.
2324 RPATH_ENVVAR=LD_LIBRARY_PATH
2325 # The following exceptions are taken from Libtool 1.4.3.
2326 case $host_os in
2327 aix*)
2328 if test $host_cpu != ia64; then
2329 RPATH_ENVVAR=LIBPATH
2330 fi ;;
2331 darwin* | rhapsody*)
2332 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2333 hpux*)
2334 RPATH_ENVVAR=SHLIB_PATH ;;
2335 esac
3fc11d3e 2336fi
b39c905e 2337
c906108c 2338
bec39cab
AC
2339ac_ext=c
2340ac_cpp='$CPP $CPPFLAGS'
2341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2346set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2348$as_echo_n "checking for $ac_word... " >&6; }
2349if test "${ac_cv_prog_CC+set}" = set; then :
2350 $as_echo_n "(cached) " >&6
bec39cab
AC
2351else
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2364 break 2
2365 fi
2366done
81ecdfbb
RW
2367 done
2368IFS=$as_save_IFS
bec39cab
AC
2369
2370fi
2371fi
2372CC=$ac_cv_prog_CC
2373if test -n "$CC"; then
81ecdfbb
RW
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2375$as_echo "$CC" >&6; }
bec39cab 2376else
81ecdfbb
RW
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2378$as_echo "no" >&6; }
bec39cab
AC
2379fi
2380
81ecdfbb 2381
bec39cab
AC
2382fi
2383if test -z "$ac_cv_prog_CC"; then
2384 ac_ct_CC=$CC
2385 # Extract the first word of "gcc", so it can be a program name with args.
2386set dummy gcc; ac_word=$2
81ecdfbb
RW
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388$as_echo_n "checking for $ac_word... " >&6; }
2389if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
bec39cab
AC
2391else
2392 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394else
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2402 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2404 break 2
2405 fi
2406done
81ecdfbb
RW
2407 done
2408IFS=$as_save_IFS
bec39cab
AC
2409
2410fi
2411fi
2412ac_ct_CC=$ac_cv_prog_ac_ct_CC
2413if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2415$as_echo "$ac_ct_CC" >&6; }
bec39cab 2416else
81ecdfbb
RW
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418$as_echo "no" >&6; }
bec39cab
AC
2419fi
2420
81ecdfbb
RW
2421 if test "x$ac_ct_CC" = x; then
2422 CC=""
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425yes:)
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2428ac_tool_warned=yes ;;
2429esac
2430 CC=$ac_ct_CC
2431 fi
bec39cab
AC
2432else
2433 CC="$ac_cv_prog_CC"
2434fi
2435
2436if test -z "$CC"; then
81ecdfbb
RW
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2439set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441$as_echo_n "checking for $ac_word... " >&6; }
2442if test "${ac_cv_prog_CC+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
bec39cab
AC
2444else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2455 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2457 break 2
2458 fi
2459done
81ecdfbb
RW
2460 done
2461IFS=$as_save_IFS
bec39cab
AC
2462
2463fi
2464fi
2465CC=$ac_cv_prog_CC
2466if test -n "$CC"; then
81ecdfbb
RW
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468$as_echo "$CC" >&6; }
bec39cab 2469else
81ecdfbb
RW
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471$as_echo "no" >&6; }
bec39cab
AC
2472fi
2473
bec39cab 2474
81ecdfbb 2475 fi
bec39cab
AC
2476fi
2477if test -z "$CC"; then
2478 # Extract the first word of "cc", so it can be a program name with args.
2479set dummy cc; ac_word=$2
81ecdfbb
RW
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481$as_echo_n "checking for $ac_word... " >&6; }
2482if test "${ac_cv_prog_CC+set}" = set; then :
2483 $as_echo_n "(cached) " >&6
bec39cab
AC
2484else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487else
2488 ac_prog_rejected=no
2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH
2491do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
2496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2497 ac_prog_rejected=yes
2498 continue
2499 fi
2500 ac_cv_prog_CC="cc"
81ecdfbb 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2502 break 2
2503 fi
2504done
81ecdfbb
RW
2505 done
2506IFS=$as_save_IFS
bec39cab
AC
2507
2508if test $ac_prog_rejected = yes; then
2509 # We found a bogon in the path, so make sure we never use it.
2510 set dummy $ac_cv_prog_CC
2511 shift
2512 if test $# != 0; then
2513 # We chose a different compiler from the bogus one.
2514 # However, it has the same basename, so the bogon will be chosen
2515 # first if we set CC to just the basename; use the full file name.
2516 shift
2517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2518 fi
2519fi
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
81ecdfbb
RW
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2525$as_echo "$CC" >&6; }
bec39cab 2526else
81ecdfbb
RW
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528$as_echo "no" >&6; }
bec39cab
AC
2529fi
2530
81ecdfbb 2531
bec39cab
AC
2532fi
2533if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
81ecdfbb 2535 for ac_prog in cl.exe
bec39cab
AC
2536 do
2537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2538set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540$as_echo_n "checking for $ac_word... " >&6; }
2541if test "${ac_cv_prog_CC+set}" = set; then :
2542 $as_echo_n "(cached) " >&6
bec39cab
AC
2543else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2556 break 2
2557 fi
2558done
81ecdfbb
RW
2559 done
2560IFS=$as_save_IFS
bec39cab
AC
2561
2562fi
2563fi
2564CC=$ac_cv_prog_CC
2565if test -n "$CC"; then
81ecdfbb
RW
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2567$as_echo "$CC" >&6; }
bec39cab 2568else
81ecdfbb
RW
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570$as_echo "no" >&6; }
bec39cab
AC
2571fi
2572
81ecdfbb 2573
bec39cab
AC
2574 test -n "$CC" && break
2575 done
2576fi
2577if test -z "$CC"; then
2578 ac_ct_CC=$CC
81ecdfbb 2579 for ac_prog in cl.exe
bec39cab
AC
2580do
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584$as_echo_n "checking for $ac_word... " >&6; }
2585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
bec39cab
AC
2587else
2588 if test -n "$ac_ct_CC"; then
2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590else
2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2598 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2600 break 2
2601 fi
2602done
81ecdfbb
RW
2603 done
2604IFS=$as_save_IFS
bec39cab
AC
2605
2606fi
2607fi
2608ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2611$as_echo "$ac_ct_CC" >&6; }
bec39cab 2612else
81ecdfbb
RW
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614$as_echo "no" >&6; }
bec39cab
AC
2615fi
2616
81ecdfbb 2617
bec39cab
AC
2618 test -n "$ac_ct_CC" && break
2619done
2620
81ecdfbb
RW
2621 if test "x$ac_ct_CC" = x; then
2622 CC=""
2623 else
2624 case $cross_compiling:$ac_tool_warned in
2625yes:)
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2628ac_tool_warned=yes ;;
2629esac
2630 CC=$ac_ct_CC
2631 fi
bec39cab
AC
2632fi
2633
2634fi
2635
2636
81ecdfbb
RW
2637test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639as_fn_error "no acceptable C compiler found in \$PATH
2640See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2641
2642# Provide some information about the compiler.
81ecdfbb
RW
2643$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2644set X $ac_compile
2645ac_compiler=$2
2646for ac_option in --version -v -V -qversion; do
2647 { { ac_try="$ac_compiler $ac_option >&5"
2648case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651esac
2652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2653$as_echo "$ac_try_echo"; } >&5
2654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2655 ac_status=$?
81ecdfbb
RW
2656 if test -s conftest.err; then
2657 sed '10a\
2658... rest of stderr output deleted ...
2659 10q' conftest.err >conftest.er1
2660 cat conftest.er1 >&5
2661 rm -f conftest.er1 conftest.err
2662 fi
2663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2664 test $ac_status = 0; }
2665done
bec39cab 2666
81ecdfbb 2667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2668/* end confdefs.h. */
2669
2670int
2671main ()
2672{
2673
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678ac_clean_files_save=$ac_clean_files
81ecdfbb 2679ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
2680# Try to create an executable without -o first, disregard a.out.
2681# It will help us diagnose broken compilers, and finding out an intuition
2682# of exeext.
81ecdfbb
RW
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2684$as_echo_n "checking for C compiler default output file name... " >&6; }
2685ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2686
2687# The possible output files:
2688ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2689
2690ac_rmfiles=
2691for ac_file in $ac_files
2692do
2693 case $ac_file in
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2695 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2696 esac
2697done
2698rm -f $ac_rmfiles
2699
2700if { { ac_try="$ac_link_default"
2701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
2705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2706$as_echo "$ac_try_echo"; } >&5
2707 (eval "$ac_link_default") 2>&5
bec39cab 2708 ac_status=$?
81ecdfbb
RW
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; }; then :
2711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2712# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2713# in a Makefile. We should not override ac_cv_exeext if it was cached,
2714# so that the user can short-circuit this test for compilers unknown to
2715# Autoconf.
2716for ac_file in $ac_files ''
bec39cab
AC
2717do
2718 test -f "$ac_file" || continue
2719 case $ac_file in
81ecdfbb 2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2721 ;;
2722 [ab].out )
2723 # We found the default executable, but exeext='' is most
2724 # certainly right.
2725 break;;
2726 *.* )
81ecdfbb
RW
2727 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2728 then :; else
2729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2730 fi
2731 # We set ac_cv_exeext here because the later test for it is not
2732 # safe: cross compilers may not add the suffix if given an `-o'
2733 # argument, so we may need to know it at that point already.
2734 # Even if this section looks crufty: it has the advantage of
2735 # actually working.
bec39cab
AC
2736 break;;
2737 * )
2738 break;;
2739 esac
2740done
81ecdfbb
RW
2741test "$ac_cv_exeext" = no && ac_cv_exeext=
2742
bec39cab 2743else
81ecdfbb
RW
2744 ac_file=''
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2747$as_echo "$ac_file" >&6; }
2748if test -z "$ac_file"; then :
2749 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
81ecdfbb
RW
2752{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754{ as_fn_set_status 77
2755as_fn_error "C compiler cannot create executables
2756See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 2757fi
bec39cab 2758ac_exeext=$ac_cv_exeext
bec39cab 2759
81ecdfbb 2760# Check that the compiler produces executables we can run. If not, either
bec39cab 2761# the compiler is broken, or we cross compile.
81ecdfbb
RW
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2763$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
2764# If not cross compiling, check that we can run a simple program.
2765if test "$cross_compiling" != yes; then
2766 if { ac_try='./$ac_file'
81ecdfbb
RW
2767 { { case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770esac
2771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2772$as_echo "$ac_try_echo"; } >&5
2773 (eval "$ac_try") 2>&5
bec39cab 2774 ac_status=$?
81ecdfbb
RW
2775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2776 test $ac_status = 0; }; }; then
bec39cab
AC
2777 cross_compiling=no
2778 else
2779 if test "$cross_compiling" = maybe; then
2780 cross_compiling=yes
2781 else
81ecdfbb
RW
2782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2784as_fn_error "cannot run C compiled programs.
bec39cab 2785If you meant to cross compile, use \`--host'.
81ecdfbb 2786See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2787 fi
2788 fi
2789fi
81ecdfbb
RW
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2791$as_echo "yes" >&6; }
bec39cab 2792
81ecdfbb 2793rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
bec39cab 2794ac_clean_files=$ac_clean_files_save
81ecdfbb 2795# Check that the compiler produces executables we can run. If not, either
bec39cab 2796# the compiler is broken, or we cross compile.
81ecdfbb
RW
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2798$as_echo_n "checking whether we are cross compiling... " >&6; }
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2800$as_echo "$cross_compiling" >&6; }
2801
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2803$as_echo_n "checking for suffix of executables... " >&6; }
2804if { { ac_try="$ac_link"
2805case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
2809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810$as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_link") 2>&5
bec39cab 2812 ac_status=$?
81ecdfbb
RW
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }; then :
bec39cab
AC
2815 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2816# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2817# work properly (i.e., refer to `conftest.exe'), while it won't with
2818# `rm'.
2819for ac_file in conftest.exe conftest conftest.*; do
2820 test -f "$ac_file" || continue
2821 case $ac_file in
81ecdfbb 2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 2823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
2824 break;;
2825 * ) break;;
2826 esac
2827done
2828else
81ecdfbb
RW
2829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831as_fn_error "cannot compute suffix of executables: cannot compile and link
2832See \`config.log' for more details." "$LINENO" 5; }
bec39cab 2833fi
bec39cab 2834rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2836$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
2837
2838rm -f conftest.$ac_ext
2839EXEEXT=$ac_cv_exeext
2840ac_exeext=$EXEEXT
81ecdfbb
RW
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2842$as_echo_n "checking for suffix of object files... " >&6; }
2843if test "${ac_cv_objext+set}" = set; then :
2844 $as_echo_n "(cached) " >&6
bec39cab 2845else
81ecdfbb 2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2847/* end confdefs.h. */
2848
2849int
2850main ()
2851{
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857rm -f conftest.o conftest.obj
81ecdfbb
RW
2858if { { ac_try="$ac_compile"
2859case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
2863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864$as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_compile") 2>&5
bec39cab 2866 ac_status=$?
81ecdfbb
RW
2867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868 test $ac_status = 0; }; then :
2869 for ac_file in conftest.o conftest.obj conftest.*; do
2870 test -f "$ac_file" || continue;
bec39cab 2871 case $ac_file in
81ecdfbb 2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
2873 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2874 break;;
2875 esac
2876done
2877else
81ecdfbb 2878 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
81ecdfbb
RW
2881{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883as_fn_error "cannot compute suffix of object files: cannot compile
2884See \`config.log' for more details." "$LINENO" 5; }
bec39cab 2885fi
bec39cab
AC
2886rm -f conftest.$ac_cv_objext conftest.$ac_ext
2887fi
81ecdfbb
RW
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2889$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
2890OBJEXT=$ac_cv_objext
2891ac_objext=$OBJEXT
81ecdfbb
RW
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2893$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2894if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
bec39cab 2896else
81ecdfbb 2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2898/* end confdefs.h. */
2899
2900int
2901main ()
2902{
2903#ifndef __GNUC__
2904 choke me
2905#endif
2906
2907 ;
2908 return 0;
2909}
2910_ACEOF
81ecdfbb 2911if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
2912 ac_compiler_gnu=yes
2913else
81ecdfbb 2914 ac_compiler_gnu=no
bec39cab 2915fi
81ecdfbb 2916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2917ac_cv_c_compiler_gnu=$ac_compiler_gnu
2918
2919fi
81ecdfbb
RW
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2921$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2922if test $ac_compiler_gnu = yes; then
2923 GCC=yes
2924else
2925 GCC=
2926fi
bec39cab
AC
2927ac_test_CFLAGS=${CFLAGS+set}
2928ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2930$as_echo_n "checking whether $CC accepts -g... " >&6; }
2931if test "${ac_cv_prog_cc_g+set}" = set; then :
2932 $as_echo_n "(cached) " >&6
bec39cab 2933else
81ecdfbb
RW
2934 ac_save_c_werror_flag=$ac_c_werror_flag
2935 ac_c_werror_flag=yes
2936 ac_cv_prog_cc_g=no
2937 CFLAGS="-g"
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2939/* end confdefs.h. */
2940
2941int
2942main ()
2943{
2944
2945 ;
2946 return 0;
2947}
2948_ACEOF
81ecdfbb 2949if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
2950 ac_cv_prog_cc_g=yes
2951else
81ecdfbb
RW
2952 CFLAGS=""
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954/* end confdefs.h. */
bec39cab 2955
81ecdfbb
RW
2956int
2957main ()
2958{
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964if ac_fn_c_try_compile "$LINENO"; then :
2965
2966else
2967 ac_c_werror_flag=$ac_save_c_werror_flag
2968 CFLAGS="-g"
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970/* end confdefs.h. */
2971
2972int
2973main ()
2974{
2975
2976 ;
2977 return 0;
2978}
2979_ACEOF
2980if ac_fn_c_try_compile "$LINENO"; then :
2981 ac_cv_prog_cc_g=yes
2982fi
2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2984fi
81ecdfbb 2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2986fi
81ecdfbb
RW
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_c_werror_flag=$ac_save_c_werror_flag
2989fi
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2991$as_echo "$ac_cv_prog_cc_g" >&6; }
bec39cab
AC
2992if test "$ac_test_CFLAGS" = set; then
2993 CFLAGS=$ac_save_CFLAGS
2994elif test $ac_cv_prog_cc_g = yes; then
2995 if test "$GCC" = yes; then
2996 CFLAGS="-g -O2"
2997 else
2998 CFLAGS="-g"
2999 fi
3000else
3001 if test "$GCC" = yes; then
3002 CFLAGS="-O2"
3003 else
3004 CFLAGS=
3005 fi
3006fi
81ecdfbb
RW
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3008$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3009if test "${ac_cv_prog_cc_c89+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
bec39cab 3011else
81ecdfbb 3012 ac_cv_prog_cc_c89=no
bec39cab 3013ac_save_CC=$CC
81ecdfbb 3014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3015/* end confdefs.h. */
3016#include <stdarg.h>
3017#include <stdio.h>
3018#include <sys/types.h>
3019#include <sys/stat.h>
3020/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3021struct buf { int x; };
3022FILE * (*rcsopen) (struct buf *, struct stat *, int);
3023static char *e (p, i)
3024 char **p;
3025 int i;
3026{
3027 return p[i];
3028}
3029static char *f (char * (*g) (char **, int), char **p, ...)
3030{
3031 char *s;
3032 va_list v;
3033 va_start (v,p);
3034 s = g (p, va_arg (v,int));
3035 va_end (v);
3036 return s;
3037}
3038
3039/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3040 function prototypes and stuff, but not '\xHH' hex character constants.
3041 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3042 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
3043 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3044 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3045 that's true only with -std. */
bec39cab
AC
3046int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3047
81ecdfbb
RW
3048/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3049 inside strings and character constants. */
3050#define FOO(x) 'x'
3051int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3052
bec39cab
AC
3053int test (int i, double x);
3054struct s1 {int (*f) (int a);};
3055struct s2 {int (*f) (double a);};
3056int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3057int argc;
3058char **argv;
3059int
3060main ()
3061{
3062return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3063 ;
3064 return 0;
3065}
3066_ACEOF
81ecdfbb
RW
3067for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3068 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
3069do
3070 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3071 if ac_fn_c_try_compile "$LINENO"; then :
3072 ac_cv_prog_cc_c89=$ac_arg
bec39cab 3073fi
81ecdfbb
RW
3074rm -f core conftest.err conftest.$ac_objext
3075 test "x$ac_cv_prog_cc_c89" != "xno" && break
bec39cab 3076done
81ecdfbb 3077rm -f conftest.$ac_ext
bec39cab
AC
3078CC=$ac_save_CC
3079
3080fi
81ecdfbb
RW
3081# AC_CACHE_VAL
3082case "x$ac_cv_prog_cc_c89" in
3083 x)
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3085$as_echo "none needed" >&6; } ;;
3086 xno)
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3088$as_echo "unsupported" >&6; } ;;
bec39cab 3089 *)
81ecdfbb
RW
3090 CC="$CC $ac_cv_prog_cc_c89"
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3092$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bec39cab 3093esac
81ecdfbb 3094if test "x$ac_cv_prog_cc_c89" != xno; then :
bec39cab
AC
3095
3096fi
bec39cab 3097
bec39cab
AC
3098ac_ext=c
3099ac_cpp='$CPP $CPPFLAGS'
3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104
3105ac_ext=c
3106ac_cpp='$CPP $CPPFLAGS'
3107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3111$as_echo_n "checking how to run the C preprocessor... " >&6; }
dc62bfc2
MK
3112# On Suns, sometimes $CPP names a directory.
3113if test -n "$CPP" && test -d "$CPP"; then
3114 CPP=
3115fi
3116if test -z "$CPP"; then
81ecdfbb
RW
3117 if test "${ac_cv_prog_CPP+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
dc62bfc2 3119else
bec39cab
AC
3120 # Double quotes because CPP needs to be expanded
3121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3122 do
3123 ac_preproc_ok=false
3124for ac_c_preproc_warn_flag in '' yes
3125do
3126 # Use a header file that comes with gcc, so configuring glibc
3127 # with a fresh cross-compiler works.
3128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3129 # <limits.h> exists even on freestanding compilers.
dc62bfc2 3130 # On the NeXT, cc -E runs the code through the compiler's parser,
bec39cab 3131 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3133/* end confdefs.h. */
3134#ifdef __STDC__
3135# include <limits.h>
3136#else
3137# include <assert.h>
3138#endif
3139 Syntax error
3140_ACEOF
81ecdfbb 3141if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3142
81ecdfbb 3143else
bec39cab
AC
3144 # Broken: fails on valid input.
3145continue
3146fi
3147rm -f conftest.err conftest.$ac_ext
3148
81ecdfbb 3149 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3150 # can be detected and how.
81ecdfbb 3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3152/* end confdefs.h. */
3153#include <ac_nonexistent.h>
3154_ACEOF
81ecdfbb 3155if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3156 # Broken: success on invalid input.
3157continue
3158else
bec39cab
AC
3159 # Passes both tests.
3160ac_preproc_ok=:
3161break
dc62bfc2 3162fi
bec39cab
AC
3163rm -f conftest.err conftest.$ac_ext
3164
3165done
3166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3167rm -f conftest.err conftest.$ac_ext
81ecdfbb 3168if $ac_preproc_ok; then :
bec39cab 3169 break
dc62bfc2 3170fi
bec39cab
AC
3171
3172 done
3173 ac_cv_prog_CPP=$CPP
3174
dc62bfc2 3175fi
bec39cab 3176 CPP=$ac_cv_prog_CPP
dc62bfc2 3177else
bec39cab 3178 ac_cv_prog_CPP=$CPP
dc62bfc2 3179fi
81ecdfbb
RW
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3181$as_echo "$CPP" >&6; }
bec39cab
AC
3182ac_preproc_ok=false
3183for ac_c_preproc_warn_flag in '' yes
dc62bfc2 3184do
bec39cab
AC
3185 # Use a header file that comes with gcc, so configuring glibc
3186 # with a fresh cross-compiler works.
3187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3188 # <limits.h> exists even on freestanding compilers.
3189 # On the NeXT, cc -E runs the code through the compiler's parser,
3190 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3192/* end confdefs.h. */
3193#ifdef __STDC__
3194# include <limits.h>
3195#else
3196# include <assert.h>
3197#endif
3198 Syntax error
3199_ACEOF
81ecdfbb 3200if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3201
81ecdfbb 3202else
bec39cab
AC
3203 # Broken: fails on valid input.
3204continue
3205fi
3206rm -f conftest.err conftest.$ac_ext
3207
81ecdfbb 3208 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3209 # can be detected and how.
81ecdfbb 3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3211/* end confdefs.h. */
3212#include <ac_nonexistent.h>
3213_ACEOF
81ecdfbb 3214if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3215 # Broken: success on invalid input.
3216continue
dc62bfc2 3217else
bec39cab
AC
3218 # Passes both tests.
3219ac_preproc_ok=:
3220break
dc62bfc2 3221fi
bec39cab
AC
3222rm -f conftest.err conftest.$ac_ext
3223
dc62bfc2 3224done
bec39cab
AC
3225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3227if $ac_preproc_ok; then :
3228
bec39cab 3229else
81ecdfbb
RW
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232as_fn_error "C preprocessor \"$CPP\" fails sanity check
3233See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3234fi
3235
3236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
dc62bfc2
MK
3241
3242
81ecdfbb
RW
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3244$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3245if test "${ac_cv_path_GREP+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247else
3248 if test -z "$GREP"; then
3249 ac_path_GREP_found=false
3250 # Loop through the user's path and test for each of PROGNAME-LIST
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_prog in grep ggrep; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3259 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3260# Check for GNU ac_path_GREP and select it if it is found.
3261 # Check for GNU $ac_path_GREP
3262case `"$ac_path_GREP" --version 2>&1` in
3263*GNU*)
3264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3265*)
3266 ac_count=0
3267 $as_echo_n 0123456789 >"conftest.in"
3268 while :
3269 do
3270 cat "conftest.in" "conftest.in" >"conftest.tmp"
3271 mv "conftest.tmp" "conftest.in"
3272 cp "conftest.in" "conftest.nl"
3273 $as_echo 'GREP' >> "conftest.nl"
3274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3276 as_fn_arith $ac_count + 1 && ac_count=$as_val
3277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3278 # Best one so far, save it but keep looking for a better one
3279 ac_cv_path_GREP="$ac_path_GREP"
3280 ac_path_GREP_max=$ac_count
3281 fi
3282 # 10*(2^10) chars as input seems more than enough
3283 test $ac_count -gt 10 && break
3284 done
3285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3286esac
3287
3288 $ac_path_GREP_found && break 3
3289 done
3290 done
3291 done
3292IFS=$as_save_IFS
3293 if test -z "$ac_cv_path_GREP"; then
3294 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3295 fi
3296else
3297 ac_cv_path_GREP=$GREP
3298fi
3299
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3302$as_echo "$ac_cv_path_GREP" >&6; }
3303 GREP="$ac_cv_path_GREP"
3304
3305
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3307$as_echo_n "checking for egrep... " >&6; }
3308if test "${ac_cv_path_EGREP+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
93076499 3310else
81ecdfbb
RW
3311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3312 then ac_cv_path_EGREP="$GREP -E"
3313 else
3314 if test -z "$EGREP"; then
3315 ac_path_EGREP_found=false
3316 # Loop through the user's path and test for each of PROGNAME-LIST
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3319do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_prog in egrep; do
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3325 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3326# Check for GNU ac_path_EGREP and select it if it is found.
3327 # Check for GNU $ac_path_EGREP
3328case `"$ac_path_EGREP" --version 2>&1` in
3329*GNU*)
3330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3331*)
3332 ac_count=0
3333 $as_echo_n 0123456789 >"conftest.in"
3334 while :
3335 do
3336 cat "conftest.in" "conftest.in" >"conftest.tmp"
3337 mv "conftest.tmp" "conftest.in"
3338 cp "conftest.in" "conftest.nl"
3339 $as_echo 'EGREP' >> "conftest.nl"
3340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3342 as_fn_arith $ac_count + 1 && ac_count=$as_val
3343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3344 # Best one so far, save it but keep looking for a better one
3345 ac_cv_path_EGREP="$ac_path_EGREP"
3346 ac_path_EGREP_max=$ac_count
bec39cab 3347 fi
81ecdfbb
RW
3348 # 10*(2^10) chars as input seems more than enough
3349 test $ac_count -gt 10 && break
3350 done
3351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3352esac
3353
3354 $ac_path_EGREP_found && break 3
3355 done
3356 done
3357 done
3358IFS=$as_save_IFS
3359 if test -z "$ac_cv_path_EGREP"; then
3360 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3361 fi
3362else
3363 ac_cv_path_EGREP=$EGREP
3364fi
3365
3366 fi
bec39cab 3367fi
81ecdfbb
RW
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3369$as_echo "$ac_cv_path_EGREP" >&6; }
3370 EGREP="$ac_cv_path_EGREP"
93076499 3371
93076499 3372
81ecdfbb
RW
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3374$as_echo_n "checking for ANSI C header files... " >&6; }
3375if test "${ac_cv_header_stdc+set}" = set; then :
3376 $as_echo_n "(cached) " >&6
bec39cab 3377else
81ecdfbb 3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3379/* end confdefs.h. */
3380#include <stdlib.h>
3381#include <stdarg.h>
3382#include <string.h>
3383#include <float.h>
3384
3385int
3386main ()
3387{
3388
3389 ;
3390 return 0;
3391}
3392_ACEOF
81ecdfbb 3393if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
3394 ac_cv_header_stdc=yes
3395else
81ecdfbb 3396 ac_cv_header_stdc=no
bec39cab 3397fi
81ecdfbb 3398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
3399
3400if test $ac_cv_header_stdc = yes; then
3401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3403/* end confdefs.h. */
3404#include <string.h>
3405
3406_ACEOF
3407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3408 $EGREP "memchr" >/dev/null 2>&1; then :
3409
bec39cab
AC
3410else
3411 ac_cv_header_stdc=no
93076499
ND
3412fi
3413rm -f conftest*
bec39cab
AC
3414
3415fi
3416
3417if test $ac_cv_header_stdc = yes; then
3418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3420/* end confdefs.h. */
3421#include <stdlib.h>
3422
3423_ACEOF
3424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3425 $EGREP "free" >/dev/null 2>&1; then :
3426
bec39cab
AC
3427else
3428 ac_cv_header_stdc=no
3429fi
93076499 3430rm -f conftest*
bec39cab 3431
93076499
ND
3432fi
3433
bec39cab
AC
3434if test $ac_cv_header_stdc = yes; then
3435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3436 if test "$cross_compiling" = yes; then :
bec39cab 3437 :
93076499 3438else
81ecdfbb 3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3440/* end confdefs.h. */
3441#include <ctype.h>
81ecdfbb 3442#include <stdlib.h>
bec39cab
AC
3443#if ((' ' & 0x0FF) == 0x020)
3444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3446#else
3447# define ISLOWER(c) \
3448 (('a' <= (c) && (c) <= 'i') \
3449 || ('j' <= (c) && (c) <= 'r') \
3450 || ('s' <= (c) && (c) <= 'z'))
3451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3452#endif
93076499 3453
bec39cab
AC
3454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3455int
3456main ()
3457{
3458 int i;
3459 for (i = 0; i < 256; i++)
3460 if (XOR (islower (i), ISLOWER (i))
3461 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
3462 return 2;
3463 return 0;
bec39cab
AC
3464}
3465_ACEOF
81ecdfbb 3466if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3467
81ecdfbb
RW
3468else
3469 ac_cv_header_stdc=no
93076499 3470fi
81ecdfbb
RW
3471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3472 conftest.$ac_objext conftest.beam conftest.$ac_ext
bec39cab 3473fi
81ecdfbb 3474
bec39cab
AC
3475fi
3476fi
81ecdfbb
RW
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3478$as_echo "$ac_cv_header_stdc" >&6; }
bec39cab
AC
3479if test $ac_cv_header_stdc = yes; then
3480
81ecdfbb 3481$as_echo "#define STDC_HEADERS 1" >>confdefs.h
bec39cab
AC
3482
3483fi
3484
3485# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bec39cab
AC
3486for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3487 inttypes.h stdint.h unistd.h
81ecdfbb
RW
3488do :
3489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3490ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3491"
3492eval as_val=\$$as_ac_Header
3493 if test "x$as_val" = x""yes; then :
bec39cab 3494 cat >>confdefs.h <<_ACEOF
81ecdfbb 3495#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
3496_ACEOF
3497
93076499
ND
3498fi
3499
bec39cab
AC
3500done
3501
93076499 3502
bec39cab 3503for ac_header in pthread.h
81ecdfbb
RW
3504do :
3505 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
3506if test "x$ac_cv_header_pthread_h" = x""yes; then :
bec39cab 3507 cat >>confdefs.h <<_ACEOF
81ecdfbb 3508#define HAVE_PTHREAD_H 1
bec39cab 3509_ACEOF
93076499 3510
bec39cab 3511fi
93076499 3512
bec39cab
AC
3513done
3514
3515
3516
3517
f4b8a18d 3518ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.server/Makefile gdb.java/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile gdb.opencl/Makefile"
81ecdfbb 3519
bec39cab 3520cat >confcache <<\_ACEOF
c906108c
SS
3521# This file is a shell script that caches the results of configure
3522# tests run on this system so they can be shared between configure
bec39cab
AC
3523# scripts and configure runs, see configure's option --config-cache.
3524# It is not useful on other systems. If it contains results you don't
3525# want to keep, you may remove or edit it.
c906108c 3526#
bec39cab
AC
3527# config.status only pays attention to the cache file if you give it
3528# the --recheck option to rerun configure.
c906108c 3529#
bec39cab
AC
3530# `ac_cv_env_foo' variables (set or unset) will be overridden when
3531# loading this file, other *unset* `ac_cv_foo' will be assigned the
3532# following values.
3533
3534_ACEOF
3535
c906108c
SS
3536# The following way of writing the cache mishandles newlines in values,
3537# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 3538# So, we kill variables containing newlines.
c906108c
SS
3539# Ultrix sh set writes to stderr and can't be redirected directly,
3540# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
3541(
3542 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3543 eval ac_val=\$$ac_var
3544 case $ac_val in #(
3545 *${as_nl}*)
3546 case $ac_var in #(
3547 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3548$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3549 esac
3550 case $ac_var in #(
3551 _ | IFS | as_nl) ;; #(
3552 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3553 *) { eval $ac_var=; unset $ac_var;} ;;
3554 esac ;;
3555 esac
3556 done
3557
bec39cab 3558 (set) 2>&1 |
81ecdfbb
RW
3559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3560 *${as_nl}ac_space=\ *)
3561 # `set' does not quote correctly, so add quotes: double-quote
3562 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
3563 sed -n \
3564 "s/'/'\\\\''/g;
3565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 3566 ;; #(
bec39cab
AC
3567 *)
3568 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 3569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 3570 ;;
81ecdfbb
RW
3571 esac |
3572 sort
3573) |
bec39cab 3574 sed '
81ecdfbb 3575 /^ac_cv_env_/b end
bec39cab 3576 t clear
81ecdfbb 3577 :clear
bec39cab
AC
3578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3579 t end
81ecdfbb
RW
3580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3581 :end' >>confcache
3582if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3583 if test -w "$cache_file"; then
3584 test "x$cache_file" != "x/dev/null" &&
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3586$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab 3587 cat confcache >$cache_file
c906108c 3588 else
81ecdfbb
RW
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3590$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
3591 fi
3592fi
3593rm -f confcache
3594
c906108c
SS
3595test "x$prefix" = xNONE && prefix=$ac_default_prefix
3596# Let make expand exec_prefix.
3597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3598
5710a1af
EZ
3599# Transform confdefs.h into DEFS.
3600# Protect against shell expansion while executing Makefile rules.
3601# Protect against Makefile macro expansion.
bec39cab
AC
3602#
3603# If the first sed substitution is executed (which looks for macros that
81ecdfbb 3604# take arguments), then branch to the quote section. Otherwise,
bec39cab 3605# look for a macro that doesn't take arguments.
81ecdfbb
RW
3606ac_script='
3607:mline
3608/\\$/{
3609 N
3610 s,\\\n,,
3611 b mline
3612}
bec39cab 3613t clear
81ecdfbb
RW
3614:clear
3615s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
bec39cab 3616t quote
81ecdfbb 3617s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
bec39cab 3618t quote
81ecdfbb
RW
3619b any
3620:quote
3621s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3622s/\[/\\&/g
3623s/\]/\\&/g
3624s/\$/$$/g
3625H
3626:any
3627${
3628 g
3629 s/^\n//
3630 s/\n/ /g
3631 p
3632}
3633'
3634DEFS=`sed -n "$ac_script" confdefs.h`
bec39cab
AC
3635
3636
3637ac_libobjs=
3638ac_ltlibobjs=
3639for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3640 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
3641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3644 # will be set to the directory where LIBOBJS objects are built.
3645 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3646 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
3647done
3648LIBOBJS=$ac_libobjs
c906108c 3649
bec39cab
AC
3650LTLIBOBJS=$ac_ltlibobjs
3651
3652
6bc80edc 3653if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
81ecdfbb
RW
3654 as_fn_error "conditional \"GMAKE\" was never defined.
3655Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bc80edc 3656fi
bec39cab
AC
3657
3658: ${CONFIG_STATUS=./config.status}
81ecdfbb 3659ac_write_fail=0
bec39cab
AC
3660ac_clean_files_save=$ac_clean_files
3661ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3663$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3664as_write_fail=0
3665cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
3666#! $SHELL
3667# Generated by $as_me.
c906108c 3668# Run this file to recreate the current configuration.
c906108c 3669# Compiler output produced by configure, useful for debugging
bec39cab
AC
3670# configure, is in config.log if it exists.
3671
3672debug=false
3673ac_cs_recheck=false
3674ac_cs_silent=false
bec39cab 3675
81ecdfbb
RW
3676SHELL=\${CONFIG_SHELL-$SHELL}
3677export SHELL
3678_ASEOF
3679cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3680## -------------------- ##
3681## M4sh Initialization. ##
3682## -------------------- ##
3683
3684# Be more Bourne compatible
3685DUALCASE=1; export DUALCASE # for MKS sh
3686if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
3687 emulate sh
3688 NULLCMD=:
81ecdfbb 3689 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
3690 # is contrary to our usage. Disable this feature.
3691 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
3692 setopt NO_GLOB_SUBST
3693else
3694 case `(set -o) 2>/dev/null` in #(
3695 *posix*) :
3696 set -o posix ;; #(
3697 *) :
3698 ;;
3699esac
bec39cab 3700fi
c906108c 3701
81ecdfbb
RW
3702
3703as_nl='
3704'
3705export as_nl
3706# Printing a long string crashes Solaris 7 /usr/bin/printf.
3707as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3708as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3709as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3710# Prefer a ksh shell builtin over an external printf program on Solaris,
3711# but without wasting forks for bash or zsh.
3712if test -z "$BASH_VERSION$ZSH_VERSION" \
3713 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3714 as_echo='print -r --'
3715 as_echo_n='print -rn --'
3716elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3717 as_echo='printf %s\n'
3718 as_echo_n='printf %s'
bec39cab 3719else
81ecdfbb
RW
3720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3722 as_echo_n='/usr/ucb/echo -n'
3723 else
3724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3725 as_echo_n_body='eval
3726 arg=$1;
3727 case $arg in #(
3728 *"$as_nl"*)
3729 expr "X$arg" : "X\\(.*\\)$as_nl";
3730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3731 esac;
3732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3733 '
3734 export as_echo_n_body
3735 as_echo_n='sh -c $as_echo_n_body as_echo'
3736 fi
3737 export as_echo_body
3738 as_echo='sh -c $as_echo_body as_echo'
bec39cab
AC
3739fi
3740
81ecdfbb
RW
3741# The user is always right.
3742if test "${PATH_SEPARATOR+set}" != set; then
3743 PATH_SEPARATOR=:
3744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3746 PATH_SEPARATOR=';'
3747 }
3748fi
bec39cab 3749
81ecdfbb
RW
3750
3751# IFS
3752# We need space, tab and new line, in precisely that order. Quoting is
3753# there to prevent editors from complaining about space-tab.
3754# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3755# splitting by setting IFS to empty value.)
3756IFS=" "" $as_nl"
3757
3758# Find who we are. Look in the path if we contain no directory separator.
3759case $0 in #((
3760 *[\\/]* ) as_myself=$0 ;;
3761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3767 done
3768IFS=$as_save_IFS
3769
3770 ;;
3771esac
3772# We did not find ourselves, most probably we were run as `sh COMMAND'
3773# in which case we are not to be found in the path.
3774if test "x$as_myself" = x; then
3775 as_myself=$0
3776fi
3777if test ! -f "$as_myself"; then
3778 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3779 exit 1
3780fi
3781
3782# Unset variables that we do not need and which cause bugs (e.g. in
3783# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3784# suppresses any "Segmentation fault" message there. '((' could
3785# trigger a bug in pdksh 5.2.14.
3786for as_var in BASH_ENV ENV MAIL MAILPATH
3787do eval test x\${$as_var+set} = xset \
3788 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3789done
bec39cab
AC
3790PS1='$ '
3791PS2='> '
3792PS4='+ '
3793
3794# NLS nuisances.
81ecdfbb
RW
3795LC_ALL=C
3796export LC_ALL
3797LANGUAGE=C
3798export LANGUAGE
3799
3800# CDPATH.
3801(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3802
3803
3804# as_fn_error ERROR [LINENO LOG_FD]
3805# ---------------------------------
3806# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3807# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3808# script with status $?, using 1 if that was 0.
3809as_fn_error ()
3810{
3811 as_status=$?; test $as_status -eq 0 && as_status=1
3812 if test "$3"; then
3813 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3814 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bec39cab 3815 fi
81ecdfbb
RW
3816 $as_echo "$as_me: error: $1" >&2
3817 as_fn_exit $as_status
3818} # as_fn_error
3819
c906108c 3820
81ecdfbb
RW
3821# as_fn_set_status STATUS
3822# -----------------------
3823# Set $? to STATUS, without forking.
3824as_fn_set_status ()
3825{
3826 return $1
3827} # as_fn_set_status
3828
3829# as_fn_exit STATUS
3830# -----------------
3831# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3832as_fn_exit ()
3833{
3834 set +e
3835 as_fn_set_status $1
3836 exit $1
3837} # as_fn_exit
3838
3839# as_fn_unset VAR
3840# ---------------
3841# Portably unset VAR.
3842as_fn_unset ()
3843{
3844 { eval $1=; unset $1;}
3845}
3846as_unset=as_fn_unset
3847# as_fn_append VAR VALUE
3848# ----------------------
3849# Append the text in VALUE to the end of the definition contained in VAR. Take
3850# advantage of any shell optimizations that allow amortized linear growth over
3851# repeated appends, instead of the typical quadratic growth present in naive
3852# implementations.
3853if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3854 eval 'as_fn_append ()
3855 {
3856 eval $1+=\$2
3857 }'
3858else
3859 as_fn_append ()
3860 {
3861 eval $1=\$$1\$2
3862 }
3863fi # as_fn_append
3864
3865# as_fn_arith ARG...
3866# ------------------
3867# Perform arithmetic evaluation on the ARGs, and store the result in the
3868# global $as_val. Take advantage of shells that can avoid forks. The arguments
3869# must be portable across $(()) and expr.
3870if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3871 eval 'as_fn_arith ()
3872 {
3873 as_val=$(( $* ))
3874 }'
3875else
3876 as_fn_arith ()
3877 {
3878 as_val=`expr "$@" || test $? -eq 1`
3879 }
3880fi # as_fn_arith
3881
3882
3883if expr a : '\(a\)' >/dev/null 2>&1 &&
3884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
3885 as_expr=expr
3886else
3887 as_expr=false
3888fi
c906108c 3889
81ecdfbb 3890if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
3891 as_basename=basename
3892else
3893 as_basename=false
3894fi
3895
81ecdfbb
RW
3896if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3897 as_dirname=dirname
3898else
3899 as_dirname=false
3900fi
bec39cab 3901
81ecdfbb 3902as_me=`$as_basename -- "$0" ||
bec39cab
AC
3903$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3904 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
3905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3906$as_echo X/"$0" |
3907 sed '/^.*\/\([^/][^/]*\)\/*$/{
3908 s//\1/
3909 q
3910 }
3911 /^X\/\(\/\/\)$/{
3912 s//\1/
3913 q
3914 }
3915 /^X\/\(\/\).*/{
3916 s//\1/
3917 q
3918 }
3919 s/.*/./; q'`
bec39cab 3920
bec39cab
AC
3921# Avoid depending upon Character Ranges.
3922as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3923as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3924as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3925as_cr_digits='0123456789'
3926as_cr_alnum=$as_cr_Letters$as_cr_digits
3927
81ecdfbb
RW
3928ECHO_C= ECHO_N= ECHO_T=
3929case `echo -n x` in #(((((
3930-n*)
3931 case `echo 'xy\c'` in
3932 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3933 xy) ECHO_C='\c';;
3934 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3935 ECHO_T=' ';;
3936 esac;;
3937*)
3938 ECHO_N='-n';;
bec39cab
AC
3939esac
3940
81ecdfbb
RW
3941rm -f conf$$ conf$$.exe conf$$.file
3942if test -d conf$$.dir; then
3943 rm -f conf$$.dir/conf$$.file
bec39cab 3944else
81ecdfbb
RW
3945 rm -f conf$$.dir
3946 mkdir conf$$.dir 2>/dev/null
bec39cab 3947fi
81ecdfbb
RW
3948if (echo >conf$$.file) 2>/dev/null; then
3949 if ln -s conf$$.file conf$$ 2>/dev/null; then
bec39cab 3950 as_ln_s='ln -s'
81ecdfbb
RW
3951 # ... but there are two gotchas:
3952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3954 # In both cases, we have to default to `cp -p'.
3955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3956 as_ln_s='cp -p'
3957 elif ln conf$$.file conf$$ 2>/dev/null; then
3958 as_ln_s=ln
3959 else
3960 as_ln_s='cp -p'
c906108c 3961 fi
bec39cab
AC
3962else
3963 as_ln_s='cp -p'
3964fi
81ecdfbb
RW
3965rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3966rmdir conf$$.dir 2>/dev/null
3967
3968
3969# as_fn_mkdir_p
3970# -------------
3971# Create "$as_dir" as a directory, including parents if necessary.
3972as_fn_mkdir_p ()
3973{
3974
3975 case $as_dir in #(
3976 -*) as_dir=./$as_dir;;
3977 esac
3978 test -d "$as_dir" || eval $as_mkdir_p || {
3979 as_dirs=
3980 while :; do
3981 case $as_dir in #(
3982 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3983 *) as_qdir=$as_dir;;
3984 esac
3985 as_dirs="'$as_qdir' $as_dirs"
3986 as_dir=`$as_dirname -- "$as_dir" ||
3987$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3988 X"$as_dir" : 'X\(//\)[^/]' \| \
3989 X"$as_dir" : 'X\(//\)$' \| \
3990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3991$as_echo X"$as_dir" |
3992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3993 s//\1/
3994 q
3995 }
3996 /^X\(\/\/\)[^/].*/{
3997 s//\1/
3998 q
3999 }
4000 /^X\(\/\/\)$/{
4001 s//\1/
4002 q
4003 }
4004 /^X\(\/\).*/{
4005 s//\1/
4006 q
4007 }
4008 s/.*/./; q'`
4009 test -d "$as_dir" && break
4010 done
4011 test -z "$as_dirs" || eval "mkdir $as_dirs"
4012 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
bec39cab 4013
81ecdfbb
RW
4014
4015} # as_fn_mkdir_p
bec39cab 4016if mkdir -p . 2>/dev/null; then
81ecdfbb 4017 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
4018else
4019 test -d ./-p && rmdir ./-p
4020 as_mkdir_p=false
4021fi
4022
81ecdfbb
RW
4023if test -x / >/dev/null 2>&1; then
4024 as_test_x='test -x'
4025else
4026 if ls -dL / >/dev/null 2>&1; then
4027 as_ls_L_option=L
4028 else
4029 as_ls_L_option=
4030 fi
4031 as_test_x='
4032 eval sh -c '\''
4033 if test -d "$1"; then
4034 test -d "$1/.";
4035 else
4036 case $1 in #(
4037 -*)set "./$1";;
4038 esac;
4039 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4040 ???[sx]*):;;*)false;;esac;fi
4041 '\'' sh
4042 '
4043fi
4044as_executable_p=$as_test_x
bec39cab
AC
4045
4046# Sed expression to map a string onto a valid CPP name.
4047as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4048
4049# Sed expression to map a string onto a valid variable name.
4050as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4051
4052
bec39cab 4053exec 6>&1
81ecdfbb
RW
4054## ----------------------------------- ##
4055## Main body of $CONFIG_STATUS script. ##
4056## ----------------------------------- ##
4057_ASEOF
4058test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4059
4060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4061# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 4062# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
4063# values after options handling.
4064ac_log="
bec39cab 4065This file was extended by $as_me, which was
81ecdfbb 4066generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
4067
4068 CONFIG_FILES = $CONFIG_FILES
4069 CONFIG_HEADERS = $CONFIG_HEADERS
4070 CONFIG_LINKS = $CONFIG_LINKS
4071 CONFIG_COMMANDS = $CONFIG_COMMANDS
4072 $ $0 $@
4073
81ecdfbb
RW
4074on `(hostname || uname -n) 2>/dev/null | sed 1q`
4075"
4076
bec39cab
AC
4077_ACEOF
4078
81ecdfbb
RW
4079case $ac_config_files in *"
4080"*) set x $ac_config_files; shift; ac_config_files=$*;;
4081esac
bec39cab 4082
bec39cab 4083
bec39cab 4084
81ecdfbb
RW
4085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4086# Files that config.status was made for.
4087config_files="$ac_config_files"
bec39cab 4088
81ecdfbb 4089_ACEOF
bec39cab 4090
81ecdfbb 4091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 4092ac_cs_usage="\
81ecdfbb
RW
4093\`$as_me' instantiates files and other configuration actions
4094from templates according to the current configuration. Unless the files
4095and actions are specified as TAGs, all are instantiated by default.
bec39cab 4096
81ecdfbb 4097Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
4098
4099 -h, --help print this help, then exit
81ecdfbb
RW
4100 -V, --version print version number and configuration settings, then exit
4101 -q, --quiet, --silent
4102 do not print progress messages
bec39cab
AC
4103 -d, --debug don't remove temporary files
4104 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
4105 --file=FILE[:TEMPLATE]
4106 instantiate the configuration file FILE
bec39cab
AC
4107
4108Configuration files:
4109$config_files
4110
81ecdfbb 4111Report bugs to the package provider."
bec39cab 4112
81ecdfbb
RW
4113_ACEOF
4114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
4115ac_cs_version="\\
4116config.status
81ecdfbb
RW
4117configured by $0, generated by GNU Autoconf 2.64,
4118 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 4119
81ecdfbb 4120Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
4121This config.status script is free software; the Free Software Foundation
4122gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
4123
4124ac_pwd='$ac_pwd'
4125srcdir='$srcdir'
4126test -n "\$AWK" || AWK=awk
bec39cab
AC
4127_ACEOF
4128
81ecdfbb
RW
4129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4130# The default lists apply if the user does not specify any file.
bec39cab
AC
4131ac_need_defaults=:
4132while test $# != 0
4133do
4134 case $1 in
4135 --*=*)
81ecdfbb
RW
4136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4137 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
4138 ac_shift=:
4139 ;;
81ecdfbb 4140 *)
bec39cab
AC
4141 ac_option=$1
4142 ac_optarg=$2
4143 ac_shift=shift
4144 ;;
bec39cab
AC
4145 esac
4146
4147 case $ac_option in
4148 # Handling of the options.
bec39cab
AC
4149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4150 ac_cs_recheck=: ;;
81ecdfbb
RW
4151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4152 $as_echo "$ac_cs_version"; exit ;;
4153 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
4154 debug=: ;;
4155 --file | --fil | --fi | --f )
4156 $ac_shift
81ecdfbb
RW
4157 case $ac_optarg in
4158 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4159 esac
4160 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab 4161 ac_need_defaults=false;;
81ecdfbb
RW
4162 --he | --h | --help | --hel | -h )
4163 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
4164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4165 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4166 ac_cs_silent=: ;;
4167
4168 # This is an error.
81ecdfbb
RW
4169 -*) as_fn_error "unrecognized option: \`$1'
4170Try \`$0 --help' for more information." ;;
bec39cab 4171
81ecdfbb
RW
4172 *) as_fn_append ac_config_targets " $1"
4173 ac_need_defaults=false ;;
c906108c 4174
c906108c 4175 esac
bec39cab
AC
4176 shift
4177done
4178
4179ac_configure_extra_args=
4180
4181if $ac_cs_silent; then
4182 exec 6>/dev/null
4183 ac_configure_extra_args="$ac_configure_extra_args --silent"
4184fi
4185
4186_ACEOF
81ecdfbb 4187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 4188if \$ac_cs_recheck; then
81ecdfbb
RW
4189 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4190 shift
4191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4192 CONFIG_SHELL='$SHELL'
4193 export CONFIG_SHELL
4194 exec "\$@"
bec39cab
AC
4195fi
4196
4197_ACEOF
81ecdfbb
RW
4198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4199exec 5>>config.log
4200{
4201 echo
4202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4203## Running $as_me. ##
4204_ASBOX
4205 $as_echo "$ac_log"
4206} >&5
c906108c 4207
81ecdfbb
RW
4208_ACEOF
4209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4210_ACEOF
c906108c 4211
81ecdfbb 4212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 4213
81ecdfbb 4214# Handling of arguments.
bec39cab
AC
4215for ac_config_target in $ac_config_targets
4216do
81ecdfbb
RW
4217 case $ac_config_target in
4218 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4219 "gdb.ada/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.ada/Makefile" ;;
4220 "gdb.arch/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.arch/Makefile" ;;
4221 "gdb.asm/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.asm/Makefile" ;;
4222 "gdb.base/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.base/Makefile" ;;
4223 "gdb.cp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.cp/Makefile" ;;
4224 "gdb.disasm/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.disasm/Makefile" ;;
4225 "gdb.dwarf2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;;
4226 "gdb.fortran/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;;
4227 "gdb.server/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.server/Makefile" ;;
4228 "gdb.java/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;;
4229 "gdb.mi/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.mi/Makefile" ;;
4230 "gdb.modula2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.modula2/Makefile" ;;
57bb97a4 4231 "gdb.multi/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.multi/Makefile" ;;
81ecdfbb
RW
4232 "gdb.objc/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.objc/Makefile" ;;
4233 "gdb.opt/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;;
4234 "gdb.pascal/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pascal/Makefile" ;;
4235 "gdb.python/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.python/Makefile" ;;
4236 "gdb.reverse/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.reverse/Makefile" ;;
4237 "gdb.threads/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.threads/Makefile" ;;
4238 "gdb.trace/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.trace/Makefile" ;;
4239 "gdb.xml/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.xml/Makefile" ;;
f4b8a18d 4240 "gdb.opencl/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opencl/Makefile" ;;
81ecdfbb
RW
4241
4242 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 4243 esac
bec39cab
AC
4244done
4245
81ecdfbb 4246
bec39cab
AC
4247# If the user did not use the arguments to specify the items to instantiate,
4248# then the envvar interface is used. Set only those that are not.
4249# We use the long form for the default assignment because of an extremely
4250# bizarre bug on SunOS 4.1.3.
4251if $ac_need_defaults; then
4252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4253fi
4254
4255# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 4256# simply because there is no reason against having it here, and in addition,
bec39cab 4257# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
4258# Hook for its removal unless debugging.
4259# Note that there is a small window in which the directory will not be cleaned:
4260# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
4261$debug ||
4262{
81ecdfbb
RW
4263 tmp=
4264 trap 'exit_status=$?
4265 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4266' 0
4267 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 4268}
bec39cab
AC
4269# Create a (secure) tmp directory for tmp files.
4270
4271{
81ecdfbb 4272 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
4273 test -n "$tmp" && test -d "$tmp"
4274} ||
4275{
81ecdfbb
RW
4276 tmp=./conf$$-$RANDOM
4277 (umask 077 && mkdir "$tmp")
4278} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4279
4280# Set up the scripts for CONFIG_FILES section.
4281# No need to generate them if there are no CONFIG_FILES.
4282# This happens for instance with `./config.status config.h'.
4283if test -n "$CONFIG_FILES"; then
4284
4285
4286ac_cr=`echo X | tr X '\015'`
4287# On cygwin, bash can eat \r inside `` if the user requested igncr.
4288# But we know of no other shell where ac_cr would be empty at this
4289# point, so we can use a bashism as a fallback.
4290if test "x$ac_cr" = x; then
4291 eval ac_cr=\$\'\\r\'
4292fi
4293ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4294if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4295 ac_cs_awk_cr='\r'
4296else
4297 ac_cs_awk_cr=$ac_cr
4298fi
4299
4300echo 'BEGIN {' >"$tmp/subs1.awk" &&
4301_ACEOF
4302
4303
bec39cab 4304{
81ecdfbb
RW
4305 echo "cat >conf$$subs.awk <<_ACEOF" &&
4306 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4307 echo "_ACEOF"
4308} >conf$$subs.sh ||
4309 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4310ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4311ac_delim='%!_!# '
4312for ac_last_try in false false false false false :; do
4313 . ./conf$$subs.sh ||
4314 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4315
4316 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4317 if test $ac_delim_n = $ac_delim_num; then
4318 break
4319 elif $ac_last_try; then
4320 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4321 else
4322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4323 fi
4324done
4325rm -f conf$$subs.sh
4326
4327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4328cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4329_ACEOF
4330sed -n '
4331h
4332s/^/S["/; s/!.*/"]=/
4333p
4334g
4335s/^[^!]*!//
4336:repl
4337t repl
4338s/'"$ac_delim"'$//
4339t delim
4340:nl
4341h
4342s/\(.\{148\}\).*/\1/
4343t more1
4344s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4345p
4346n
4347b repl
4348:more1
4349s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4350p
4351g
4352s/.\{148\}//
4353t nl
4354:delim
4355h
4356s/\(.\{148\}\).*/\1/
4357t more2
4358s/["\\]/\\&/g; s/^/"/; s/$/"/
4359p
4360b
4361:more2
4362s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4363p
4364g
4365s/.\{148\}//
4366t delim
4367' <conf$$subs.awk | sed '
4368/^[^""]/{
4369 N
4370 s/\n//
4371}
4372' >>$CONFIG_STATUS || ac_write_fail=1
4373rm -f conf$$subs.awk
4374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4375_ACAWK
4376cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4377 for (key in S) S_is_set[key] = 1
4378 FS = "\a"
4379
4380}
4381{
4382 line = $ 0
4383 nfields = split(line, field, "@")
4384 substed = 0
4385 len = length(field[1])
4386 for (i = 2; i < nfields; i++) {
4387 key = field[i]
4388 keylen = length(key)
4389 if (S_is_set[key]) {
4390 value = S[key]
4391 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4392 len += length(value) + length(field[++i])
4393 substed = 1
4394 } else
4395 len += 1 + keylen
4396 }
4397
4398 print line
bec39cab
AC
4399}
4400
81ecdfbb
RW
4401_ACAWK
4402_ACEOF
4403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4404if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4405 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4406else
4407 cat
4408fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4409 || as_fn_error "could not setup config files machinery" "$LINENO" 5
bec39cab
AC
4410_ACEOF
4411
81ecdfbb
RW
4412# VPATH may cause trouble with some makes, so we remove $(srcdir),
4413# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4414# trailing colons and then remove the whole line if VPATH becomes empty
4415# (actually we leave an empty line to preserve line numbers).
4416if test "x$srcdir" = x.; then
4417 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4418s/:*\$(srcdir):*/:/
4419s/:*\${srcdir}:*/:/
4420s/:*@srcdir@:*/:/
4421s/^\([^=]*=[ ]*\):*/\1/
4422s/:*$//
4423s/^[^=]*=[ ]*$//
4424}'
4425fi
c906108c 4426
81ecdfbb
RW
4427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4428fi # test -n "$CONFIG_FILES"
c906108c 4429
c906108c 4430
81ecdfbb
RW
4431eval set X " :F $CONFIG_FILES "
4432shift
4433for ac_tag
4434do
4435 case $ac_tag in
4436 :[FHLC]) ac_mode=$ac_tag; continue;;
4437 esac
4438 case $ac_mode$ac_tag in
4439 :[FHL]*:*);;
4440 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4441 :[FH]-) ac_tag=-:-;;
4442 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4443 esac
4444 ac_save_IFS=$IFS
4445 IFS=:
4446 set x $ac_tag
4447 IFS=$ac_save_IFS
4448 shift
4449 ac_file=$1
4450 shift
bec39cab 4451
81ecdfbb
RW
4452 case $ac_mode in
4453 :L) ac_source=$1;;
4454 :[FH])
4455 ac_file_inputs=
4456 for ac_f
4457 do
4458 case $ac_f in
4459 -) ac_f="$tmp/stdin";;
4460 *) # Look for the file first in the build tree, then in the source tree
4461 # (if the path is not absolute). The absolute path cannot be DOS-style,
4462 # because $ac_f cannot contain `:'.
4463 test -f "$ac_f" ||
4464 case $ac_f in
4465 [\\/$]*) false;;
4466 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4467 esac ||
4468 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4469 esac
4470 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4471 as_fn_append ac_file_inputs " '$ac_f'"
4472 done
4473
4474 # Let's still pretend it is `configure' which instantiates (i.e., don't
4475 # use $as_me), people would be surprised to read:
4476 # /* config.h. Generated by config.status. */
4477 configure_input='Generated from '`
4478 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4479 `' by configure.'
4480 if test x"$ac_file" != x-; then
4481 configure_input="$ac_file. $configure_input"
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4483$as_echo "$as_me: creating $ac_file" >&6;}
bec39cab 4484 fi
81ecdfbb
RW
4485 # Neutralize special characters interpreted by sed in replacement strings.
4486 case $configure_input in #(
4487 *\&* | *\|* | *\\* )
4488 ac_sed_conf_input=`$as_echo "$configure_input" |
4489 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4490 *) ac_sed_conf_input=$configure_input;;
4491 esac
c906108c 4492
81ecdfbb
RW
4493 case $ac_tag in
4494 *:-:* | *:-) cat >"$tmp/stdin" \
4495 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4496 esac
4497 ;;
bec39cab
AC
4498 esac
4499
81ecdfbb 4500 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
4501$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4502 X"$ac_file" : 'X\(//\)[^/]' \| \
4503 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
4504 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4505$as_echo X"$ac_file" |
4506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4507 s//\1/
4508 q
4509 }
4510 /^X\(\/\/\)[^/].*/{
4511 s//\1/
4512 q
4513 }
4514 /^X\(\/\/\)$/{
4515 s//\1/
4516 q
4517 }
4518 /^X\(\/\).*/{
4519 s//\1/
4520 q
4521 }
4522 s/.*/./; q'`
4523 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
4524 ac_builddir=.
4525
81ecdfbb
RW
4526case "$ac_dir" in
4527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4528*)
4529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4530 # A ".." for each directory in $ac_dir_suffix.
4531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4532 case $ac_top_builddir_sub in
4533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4535 esac ;;
4536esac
4537ac_abs_top_builddir=$ac_pwd
4538ac_abs_builddir=$ac_pwd$ac_dir_suffix
4539# for backward compatibility:
4540ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
4541
4542case $srcdir in
81ecdfbb 4543 .) # We are building in place.
bec39cab 4544 ac_srcdir=.
81ecdfbb
RW
4545 ac_top_srcdir=$ac_top_builddir_sub
4546 ac_abs_top_srcdir=$ac_pwd ;;
4547 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 4548 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
4549 ac_top_srcdir=$srcdir
4550 ac_abs_top_srcdir=$srcdir ;;
4551 *) # Relative name.
4552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4553 ac_top_srcdir=$ac_top_build_prefix$srcdir
4554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 4555esac
81ecdfbb 4556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 4557
bec39cab 4558
81ecdfbb
RW
4559 case $ac_mode in
4560 :F)
4561 #
4562 # CONFIG_FILE
4563 #
bec39cab 4564
81ecdfbb 4565_ACEOF
bec39cab 4566
81ecdfbb
RW
4567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4568# If the template does not know about datarootdir, expand it.
4569# FIXME: This hack should be removed a few years after 2.60.
4570ac_datarootdir_hack=; ac_datarootdir_seen=
4571ac_sed_dataroot='
4572/datarootdir/ {
4573 p
4574 q
4575}
4576/@datadir@/p
4577/@docdir@/p
4578/@infodir@/p
4579/@localedir@/p
4580/@mandir@/p'
4581case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4582*datarootdir*) ac_datarootdir_seen=yes;;
4583*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4585$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
bec39cab 4586_ACEOF
81ecdfbb
RW
4587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4588 ac_datarootdir_hack='
4589 s&@datadir@&$datadir&g
4590 s&@docdir@&$docdir&g
4591 s&@infodir@&$infodir&g
4592 s&@localedir@&$localedir&g
4593 s&@mandir@&$mandir&g
4594 s&\\\${datarootdir}&$datarootdir&g' ;;
4595esac
4596_ACEOF
4597
4598# Neutralize VPATH when `$srcdir' = `.'.
4599# Shell code in configure.ac might set extrasub.
4600# FIXME: do we really want to maintain this feature?
4601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4602ac_sed_extra="$ac_vpsub
bec39cab
AC
4603$extrasub
4604_ACEOF
81ecdfbb 4605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
4606:t
4607/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
4608s|@configure_input@|$ac_sed_conf_input|;t t
4609s&@top_builddir@&$ac_top_builddir_sub&;t t
4610s&@top_build_prefix@&$ac_top_build_prefix&;t t
4611s&@srcdir@&$ac_srcdir&;t t
4612s&@abs_srcdir@&$ac_abs_srcdir&;t t
4613s&@top_srcdir@&$ac_top_srcdir&;t t
4614s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4615s&@builddir@&$ac_builddir&;t t
4616s&@abs_builddir@&$ac_abs_builddir&;t t
4617s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4618$ac_datarootdir_hack
4619"
4620eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4621 || as_fn_error "could not create $ac_file" "$LINENO" 5
4622
4623test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4624 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4625 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4627which seems to be undefined. Please make sure it is defined." >&5
4628$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4629which seems to be undefined. Please make sure it is defined." >&2;}
4630
4631 rm -f "$tmp/stdin"
4632 case $ac_file in
4633 -) cat "$tmp/out" && rm -f "$tmp/out";;
4634 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4635 esac \
4636 || as_fn_error "could not create $ac_file" "$LINENO" 5
4637 ;;
4638
bec39cab 4639
bec39cab 4640
81ecdfbb
RW
4641 esac
4642
4643done # for ac_tag
4644
bec39cab 4645
81ecdfbb 4646as_fn_exit 0
bec39cab 4647_ACEOF
bec39cab
AC
4648ac_clean_files=$ac_clean_files_save
4649
81ecdfbb
RW
4650test $ac_write_fail = 0 ||
4651 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4652
bec39cab
AC
4653
4654# configure is writing to config.log, and then calls config.status.
4655# config.status does its own redirection, appending to config.log.
4656# Unfortunately, on DOS this fails, as config.log is still kept open
4657# by configure, so config.status won't be able to write to it; its
4658# output is simply discarded. So we exec the FD to /dev/null,
4659# effectively closing config.log, so it can be properly (re)opened and
4660# appended to by config.status. When coming back to configure, we
4661# need to make the FD available again.
4662if test "$no_create" != yes; then
4663 ac_cs_success=:
4664 ac_config_status_args=
4665 test "$silent" = yes &&
4666 ac_config_status_args="$ac_config_status_args --quiet"
4667 exec 5>/dev/null
4668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4669 exec 5>>config.log
4670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4671 # would make configure fail if this is the last instruction.
81ecdfbb 4672 $ac_cs_success || as_fn_exit $?
bec39cab 4673fi
c906108c 4674
bec39cab 4675#
81ecdfbb 4676# CONFIG_SUBDIRS section.
bec39cab 4677#
c906108c
SS
4678if test "$no_recursion" != yes; then
4679
81ecdfbb
RW
4680 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4681 # so they do not pile up.
c906108c
SS
4682 ac_sub_configure_args=
4683 ac_prev=
fdc59709
PB
4684 eval "set x $ac_configure_args"
4685 shift
4686 for ac_arg
4687 do
c906108c
SS
4688 if test -n "$ac_prev"; then
4689 ac_prev=
4690 continue
4691 fi
bec39cab 4692 case $ac_arg in
c906108c
SS
4693 -cache-file | --cache-file | --cache-fil | --cache-fi \
4694 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4695 ac_prev=cache_file ;;
4696 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
4697 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4698 | --c=*)
4699 ;;
4700 --config-cache | -C)
c906108c
SS
4701 ;;
4702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4703 ac_prev=srcdir ;;
4704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4705 ;;
bec39cab
AC
4706 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4707 ac_prev=prefix ;;
4708 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4709 ;;
81ecdfbb
RW
4710 --disable-option-checking)
4711 ;;
fdc59709
PB
4712 *)
4713 case $ac_arg in
81ecdfbb 4714 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fdc59709 4715 esac
81ecdfbb 4716 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
4717 esac
4718 done
4719
bec39cab
AC
4720 # Always prepend --prefix to ensure using the same prefix
4721 # in subdir configurations.
fdc59709
PB
4722 ac_arg="--prefix=$prefix"
4723 case $ac_arg in
81ecdfbb 4724 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fdc59709 4725 esac
81ecdfbb
RW
4726 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4727
4728 # Pass --silent
4729 if test "$silent" = yes; then
4730 ac_sub_configure_args="--silent $ac_sub_configure_args"
4731 fi
4732
4733 # Always prepend --disable-option-checking to silence warnings, since
4734 # different subdirs can have different --enable and --with options.
4735 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
bec39cab
AC
4736
4737 ac_popdir=`pwd`
4738 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
4739
4740 # Do not complain, so a configure script can configure whichever
4741 # parts of a large source tree are present.
fdc59709 4742 test -d "$srcdir/$ac_dir" || continue
c906108c 4743
81ecdfbb
RW
4744 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4746 $as_echo "$ac_msg" >&6
4747 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab 4748 ac_builddir=.
c906108c 4749
81ecdfbb
RW
4750case "$ac_dir" in
4751.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4752*)
4753 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4754 # A ".." for each directory in $ac_dir_suffix.
4755 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4756 case $ac_top_builddir_sub in
4757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4759 esac ;;
4760esac
4761ac_abs_top_builddir=$ac_pwd
4762ac_abs_builddir=$ac_pwd$ac_dir_suffix
4763# for backward compatibility:
4764ac_top_builddir=$ac_top_build_prefix
c906108c 4765
bec39cab 4766case $srcdir in
81ecdfbb 4767 .) # We are building in place.
bec39cab 4768 ac_srcdir=.
81ecdfbb
RW
4769 ac_top_srcdir=$ac_top_builddir_sub
4770 ac_abs_top_srcdir=$ac_pwd ;;
4771 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 4772 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
4773 ac_top_srcdir=$srcdir
4774 ac_abs_top_srcdir=$srcdir ;;
4775 *) # Relative name.
4776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4777 ac_top_srcdir=$ac_top_build_prefix$srcdir
4778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 4779esac
81ecdfbb 4780ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab
AC
4781
4782
fdc59709 4783 cd "$ac_dir"
c906108c
SS
4784
4785 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
4786 if test -f "$ac_srcdir/configure.gnu"; then
4787 ac_sub_configure=$ac_srcdir/configure.gnu
4788 elif test -f "$ac_srcdir/configure"; then
4789 ac_sub_configure=$ac_srcdir/configure
4790 elif test -f "$ac_srcdir/configure.in"; then
4791 # This should be Cygnus configure.
4792 ac_sub_configure=$ac_aux_dir/configure
c906108c 4793 else
81ecdfbb
RW
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
4795$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
4796 ac_sub_configure=
4797 fi
4798
4799 # The recursion is here.
4800 if test -n "$ac_sub_configure"; then
c906108c 4801 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
4802 case $cache_file in
4803 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
4804 *) # Relative name.
4805 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c
SS
4806 esac
4807
81ecdfbb
RW
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4809$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 4810 # The eval makes quoting arguments work.
fdc59709
PB
4811 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4812 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
81ecdfbb 4813 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
4814 fi
4815
fdc59709 4816 cd "$ac_popdir"
c906108c
SS
4817 done
4818fi
81ecdfbb
RW
4819if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4821$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4822fi
c906108c 4823
This page took 1.302511 seconds and 4 git commands to generate.