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