* ada-lang.c (ada_value_cast): New function, extracted out from
[deliverable/binutils-gdb.git] / gold / configure
CommitLineData
bae7f79e
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8486ee48 3# Generated by GNU Autoconf 2.59 for gold 0.1.
bae7f79e
ILT
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
8486ee48
ILT
268PACKAGE_NAME='gold'
269PACKAGE_TARNAME='gold'
270PACKAGE_VERSION='0.1'
271PACKAGE_STRING='gold 0.1'
272PACKAGE_BUGREPORT=''
bae7f79e
ILT
273
274ac_unique_file="gold.cc"
54dc6425
ILT
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
9a0910c3 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar THREADS_TRUE THREADS_FALSE TARGETOBJS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE YACC RANLIB ac_ct_RANLIB LN_S USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE NATIVE_LINKER_TRUE NATIVE_LINKER_FALSE GCC_TRUE GCC_FALSE FN_PTRS_IN_SO_WITHOUT_PIC_TRUE FN_PTRS_IN_SO_WITHOUT_PIC_FALSE TLS_TRUE TLS_FALSE STATIC_TLS_TRUE STATIC_TLS_FALSE WARN_CFLAGS NO_WERROR WARN_CXXFLAGS LFS_CXXFLAGS LIBOBJS CPP EGREP CXXCPP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LTLIBOBJS'
bae7f79e
ILT
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a0910c3
ILT
777ac_env_CPP_set=${CPP+set}
778ac_env_CPP_value=$CPP
779ac_cv_env_CPP_set=${CPP+set}
780ac_cv_env_CPP_value=$CPP
54dc6425
ILT
781ac_env_CXXCPP_set=${CXXCPP+set}
782ac_env_CXXCPP_value=$CXXCPP
783ac_cv_env_CXXCPP_set=${CXXCPP+set}
784ac_cv_env_CXXCPP_value=$CXXCPP
bae7f79e
ILT
785
786#
787# Report the --help message.
788#
789if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
792 cat <<_ACEOF
8486ee48 793\`configure' configures gold 0.1 to adapt to many kinds of systems.
bae7f79e
ILT
794
795Usage: $0 [OPTION]... [VAR=VALUE]...
796
797To assign environment variables (e.g., CC, CFLAGS...), specify them as
798VAR=VALUE. See below for descriptions of some of the useful variables.
799
800Defaults for the options are specified in brackets.
801
802Configuration:
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812
813_ACEOF
814
815 cat <<_ACEOF
816Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
818 [$ac_default_prefix]
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 [PREFIX]
821
822By default, \`make install' will install all the files in
823\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825for instance \`--prefix=\$HOME'.
826
827For better control, use the options below.
828
829Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
842_ACEOF
843
844 cat <<\_ACEOF
845
846Program names:
847 --program-prefix=PREFIX prepend PREFIX to installed program names
848 --program-suffix=SUFFIX append SUFFIX to installed program names
849 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
850
851System types:
852 --build=BUILD configure for building on BUILD [guessed]
853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
854 --target=TARGET configure for building compilers for TARGET [HOST]
855_ACEOF
856fi
857
858if test -n "$ac_init_help"; then
8486ee48
ILT
859 case $ac_init_help in
860 short | recursive ) echo "Configuration of gold 0.1:";;
861 esac
bae7f79e
ILT
862 cat <<\_ACEOF
863
864Optional Features:
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
fe9a4c12 867 --enable-threads multi-threaded linking
193a53d9 868 --enable-targets alternative target configurations
bae7f79e
ILT
869 --disable-dependency-tracking speeds up one-time build
870 --enable-dependency-tracking do not reject slow dependency extractors
871 --disable-nls do not use Native Language Support
872 --enable-werror treat compile warnings as errors
873 --enable-build-warnings enable build-time compiler warnings
874 --enable-maintainer-mode enable make rules and dependencies not useful
875 (and sometimes confusing) to the casual installer
876
ad2d6943
ILT
877Optional Packages:
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-sysroot=DIR search for usr/lib et al within DIR
881
bae7f79e
ILT
882Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
889 CXX C++ compiler command
890 CXXFLAGS C++ compiler flags
9a0910c3 891 CPP C preprocessor
54dc6425 892 CXXCPP C++ preprocessor
bae7f79e
ILT
893
894Use these variables to override the choices made by `configure' or to help
895it to find libraries and programs with nonstandard names/locations.
896
897_ACEOF
898fi
899
900if test "$ac_init_help" = "recursive"; then
901 # If there are subdirs, report their specific --help.
902 ac_popdir=`pwd`
903 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904 test -d $ac_dir || continue
905 ac_builddir=.
906
907if test "$ac_dir" != .; then
908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909 # A "../" for each directory in $ac_dir_suffix.
910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911else
912 ac_dir_suffix= ac_top_builddir=
913fi
914
915case $srcdir in
916 .) # No --srcdir option. We are building in place.
917 ac_srcdir=.
918 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=.
920 else
921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 fi ;;
923 [\\/]* | ?:[\\/]* ) # Absolute path.
924 ac_srcdir=$srcdir$ac_dir_suffix;
925 ac_top_srcdir=$srcdir ;;
926 *) # Relative path.
927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929esac
930
931# Do not use `cd foo && pwd` to compute absolute paths, because
932# the directories may not exist.
933case `pwd` in
934.) ac_abs_builddir="$ac_dir";;
935*)
936 case "$ac_dir" in
937 .) ac_abs_builddir=`pwd`;;
938 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
939 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_top_builddir=${ac_top_builddir}.;;
944*)
945 case ${ac_top_builddir}. in
946 .) ac_abs_top_builddir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
948 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_srcdir=$ac_srcdir;;
953*)
954 case $ac_srcdir in
955 .) ac_abs_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
957 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_top_srcdir=$ac_top_srcdir;;
962*)
963 case $ac_top_srcdir in
964 .) ac_abs_top_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
966 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967 esac;;
968esac
969
970 cd $ac_dir
971 # Check for guested configure; otherwise get Cygnus style configure.
972 if test -f $ac_srcdir/configure.gnu; then
973 echo
974 $SHELL $ac_srcdir/configure.gnu --help=recursive
975 elif test -f $ac_srcdir/configure; then
976 echo
977 $SHELL $ac_srcdir/configure --help=recursive
978 elif test -f $ac_srcdir/configure.ac ||
979 test -f $ac_srcdir/configure.in; then
980 echo
981 $ac_configure --help
982 else
983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984 fi
985 cd $ac_popdir
986 done
987fi
988
989test -n "$ac_init_help" && exit 0
990if $ac_init_version; then
991 cat <<\_ACEOF
8486ee48
ILT
992gold configure 0.1
993generated by GNU Autoconf 2.59
bae7f79e
ILT
994
995Copyright (C) 2003 Free Software Foundation, Inc.
996This configure script is free software; the Free Software Foundation
997gives unlimited permission to copy, distribute and modify it.
998_ACEOF
999 exit 0
1000fi
1001exec 5>config.log
1002cat >&5 <<_ACEOF
1003This file contains any messages produced by compilers while
1004running configure, to aid debugging if configure makes a mistake.
1005
8486ee48 1006It was created by gold $as_me 0.1, which was
bae7f79e
ILT
1007generated by GNU Autoconf 2.59. Invocation command line was
1008
1009 $ $0 $@
1010
1011_ACEOF
1012{
1013cat <<_ASUNAME
1014## --------- ##
1015## Platform. ##
1016## --------- ##
1017
1018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
1035_ASUNAME
1036
1037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038for as_dir in $PATH
1039do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043done
1044
1045} >&5
1046
1047cat >&5 <<_ACEOF
1048
1049
1050## ----------- ##
1051## Core tests. ##
1052## ----------- ##
1053
1054_ACEOF
1055
1056
1057# Keep a trace of the command line.
1058# Strip out --no-create and --no-recursion so they do not pile up.
1059# Strip out --silent because we don't want to record it for future runs.
1060# Also quote any args containing shell meta-characters.
1061# Make two passes to allow for proper duplicate-argument suppression.
1062ac_configure_args=
1063ac_configure_args0=
1064ac_configure_args1=
1065ac_sep=
1066ac_must_keep_next=false
1067for ac_pass in 1 2
1068do
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
1104done
1105$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108# When interrupted or exit'd, cleanup temporary files, and complete
1109# config.log. We remove comments because anyway the quotes in there
1110# would cause problems or look ugly.
1111# WARNING: Be sure not to use single quotes in there, as some shells,
1112# such as our DU 5.0 friend, will then `close' the trap.
1113trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1115 {
1116 echo
1117
1118 cat <<\_ASBOX
1119## ---------------- ##
1120## Cache variables. ##
1121## ---------------- ##
1122_ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1125{
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 ;;
1133 *)
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ;;
1137 esac;
1138}
1139 echo
1140
1141 cat <<\_ASBOX
1142## ----------------- ##
1143## Output variables. ##
1144## ----------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156## ------------- ##
1157## Output files. ##
1158## ------------- ##
1159_ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1167 fi
1168
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171## ----------- ##
1172## confdefs.h. ##
1173## ----------- ##
1174_ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1186 ' 0
1187for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189done
1190ac_signal=0
1191
1192# confdefs.h avoids OS command line length limits that DEFS can exceed.
1193rm -rf conftest* confdefs.h
1194# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195echo >confdefs.h
1196
1197# Predefined preprocessor variables.
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_NAME "$PACKAGE_NAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_VERSION "$PACKAGE_VERSION"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_STRING "$PACKAGE_STRING"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221_ACEOF
1222
1223
1224# Let the site file select an alternate cache file if it wants to.
1225# Prefer explicitly selected file to automatically selected ones.
1226if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232fi
1233for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1239 fi
1240done
1241
1242if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
1253else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257fi
1258
1259# Check that the precious variables saved in the cache have kept the same
1260# value.
1261ac_cache_corrupted=false
1262for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1300 fi
1301done
1302if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1308fi
1309
1310ac_ext=c
1311ac_cpp='$CPP $CPPFLAGS'
1312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
8486ee48
ILT
1327
1328
1329
1330
1331
1332
1333
1334
bae7f79e
ILT
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344ac_aux_dir=
1345for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1346 if test -f $ac_dir/install-sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install-sh -c"
1349 break
1350 elif test -f $ac_dir/install.sh; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/install.sh -c"
1353 break
1354 elif test -f $ac_dir/shtool; then
1355 ac_aux_dir=$ac_dir
1356 ac_install_sh="$ac_aux_dir/shtool install -c"
1357 break
1358 fi
1359done
1360if test -z "$ac_aux_dir"; then
1361 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1362echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1363 { (exit 1); exit 1; }; }
1364fi
1365ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1366ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368
1369# Make sure we can run config.sub.
1370$ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1372echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1374
1375echo "$as_me:$LINENO: checking build system type" >&5
1376echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379else
1380 ac_cv_build_alias=$build_alias
1381test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1385echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1389echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1391
1392fi
1393echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1394echo "${ECHO_T}$ac_cv_build" >&6
1395build=$ac_cv_build
1396build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401echo "$as_me:$LINENO: checking host system type" >&5
1402echo $ECHO_N "checking host system type... $ECHO_C" >&6
1403if test "${ac_cv_host+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 ac_cv_host_alias=$host_alias
1407test -z "$ac_cv_host_alias" &&
1408 ac_cv_host_alias=$ac_cv_build_alias
1409ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1411echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1413
1414fi
1415echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1416echo "${ECHO_T}$ac_cv_host" >&6
1417host=$ac_cv_host
1418host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423echo "$as_me:$LINENO: checking target system type" >&5
1424echo $ECHO_N "checking target system type... $ECHO_C" >&6
1425if test "${ac_cv_target+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1427else
1428 ac_cv_target_alias=$target_alias
1429test "x$ac_cv_target_alias" = "x" &&
1430 ac_cv_target_alias=$ac_cv_host_alias
1431ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1433echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1435
1436fi
1437echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1438echo "${ECHO_T}$ac_cv_target" >&6
1439target=$ac_cv_target
1440target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1441target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1442target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443
1444
1445# The aliases save the names the user supplied, while $host etc.
1446# will get canonicalized.
1447test -n "$target_alias" &&
1448 test "$program_prefix$program_suffix$program_transform_name" = \
1449 NONENONEs,x,x, &&
1450 program_prefix=${target_alias}-
1451
1452am__api_version="1.9"
1453# Find a good install program. We prefer a C program (faster),
1454# so one script is as good as another. But avoid the broken or
1455# incompatible versions:
1456# SysV /etc/install, /usr/sbin/install
1457# SunOS /usr/etc/install
1458# IRIX /sbin/install
1459# AIX /bin/install
1460# AmigaOS /C/install, which installs bootblocks on floppy discs
1461# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1462# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1463# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1464# OS/2's system install, which has a completely different semantic
1465# ./install, which can be erroneously created by make from ./install.sh.
1466echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1467echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1468if test -z "$INSTALL"; then
1469if test "${ac_cv_path_install+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 # Account for people who put trailing slashes in PATH elements.
1478case $as_dir/ in
1479 ./ | .// | /cC/* | \
1480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1481 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1482 /usr/ucb/* ) ;;
1483 *)
1484 # OSF1 and SCO ODT 3.0 have their own names for install.
1485 # Don't use installbsd from OSF since it installs stuff as root
1486 # by default.
1487 for ac_prog in ginstall scoinst install; do
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1490 if test $ac_prog = install &&
1491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1492 # AIX install. It has an incompatible calling convention.
1493 :
1494 elif test $ac_prog = install &&
1495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1496 # program-specific install script used by HP pwplus--don't use.
1497 :
1498 else
1499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1500 break 3
1501 fi
1502 fi
1503 done
1504 done
1505 ;;
1506esac
1507done
1508
1509
1510fi
1511 if test "${ac_cv_path_install+set}" = set; then
1512 INSTALL=$ac_cv_path_install
1513 else
1514 # As a last resort, use the slow shell script. We don't cache a
1515 # path for INSTALL within a source directory, because that will
1516 # break other packages using the cache if that directory is
1517 # removed, or if the path is relative.
1518 INSTALL=$ac_install_sh
1519 fi
1520fi
1521echo "$as_me:$LINENO: result: $INSTALL" >&5
1522echo "${ECHO_T}$INSTALL" >&6
1523
1524# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1525# It thinks the first close brace ends the variable substitution.
1526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1527
1528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1529
1530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1531
1532echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1533echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1534# Just in case
1535sleep 1
1536echo timestamp > conftest.file
1537# Do `set' in a subshell so we don't clobber the current shell's
1538# arguments. Must try -L first in case configure is actually a
1539# symlink; some systems play weird games with the mod time of symlinks
1540# (eg FreeBSD returns the mod time of the symlink's containing
1541# directory).
1542if (
1543 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1544 if test "$*" = "X"; then
1545 # -L didn't work.
1546 set X `ls -t $srcdir/configure conftest.file`
1547 fi
1548 rm -f conftest.file
1549 if test "$*" != "X $srcdir/configure conftest.file" \
1550 && test "$*" != "X conftest.file $srcdir/configure"; then
1551
1552 # If neither matched, then we have a broken ls. This can happen
1553 # if, for instance, CONFIG_SHELL is bash and it inherits a
1554 # broken ls alias from the environment. This has actually
1555 # happened. Such a system could not be considered "sane".
1556 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1557alias in your environment" >&5
1558echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1559alias in your environment" >&2;}
1560 { (exit 1); exit 1; }; }
1561 fi
1562
1563 test "$2" = conftest.file
1564 )
1565then
1566 # Ok.
1567 :
1568else
1569 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1570Check your system clock" >&5
1571echo "$as_me: error: newly created file is older than distributed files!
1572Check your system clock" >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575echo "$as_me:$LINENO: result: yes" >&5
1576echo "${ECHO_T}yes" >&6
1577test "$program_prefix" != NONE &&
1578 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1579# Use a double $ so make ignores it.
1580test "$program_suffix" != NONE &&
1581 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1582# Double any \ or $. echo might interpret backslashes.
1583# By default was `s,x,x', remove it if useless.
1584cat <<\_ACEOF >conftest.sed
1585s/[\\$]/&&/g;s/;s,x,x,$//
1586_ACEOF
1587program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1588rm conftest.sed
1589
1590# expand $ac_aux_dir to an absolute path
1591am_aux_dir=`cd $ac_aux_dir && pwd`
1592
1593test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1594# Use eval to expand $SHELL
1595if eval "$MISSING --run true"; then
1596 am_missing_run="$MISSING --run "
1597else
1598 am_missing_run=
1599 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1600echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1601fi
1602
1603if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1604 # We used to keeping the `.' as first argument, in order to
1605 # allow $(mkdir_p) to be used without argument. As in
1606 # $(mkdir_p) $(somedir)
1607 # where $(somedir) is conditionally defined. However this is wrong
1608 # for two reasons:
1609 # 1. if the package is installed by a user who cannot write `.'
1610 # make install will fail,
1611 # 2. the above comment should most certainly read
1612 # $(mkdir_p) $(DESTDIR)$(somedir)
1613 # so it does not work when $(somedir) is undefined and
1614 # $(DESTDIR) is not.
1615 # To support the latter case, we have to write
1616 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1617 # so the `.' trick is pointless.
1618 mkdir_p='mkdir -p --'
1619else
1620 # On NextStep and OpenStep, the `mkdir' command does not
1621 # recognize any option. It will interpret all options as
1622 # directories to create, and then abort because `.' already
1623 # exists.
1624 for d in ./-p ./--version;
1625 do
1626 test -d $d && rmdir $d
1627 done
1628 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1629 if test -f "$ac_aux_dir/mkinstalldirs"; then
1630 mkdir_p='$(mkinstalldirs)'
1631 else
1632 mkdir_p='$(install_sh) -d'
1633 fi
1634fi
1635
1636for ac_prog in gawk mawk nawk awk
1637do
1638 # Extract the first word of "$ac_prog", so it can be a program name with args.
1639set dummy $ac_prog; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_AWK+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645 if test -n "$AWK"; then
1646 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1647else
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_AWK="$ac_prog"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2
1658 fi
1659done
1660done
1661
1662fi
1663fi
1664AWK=$ac_cv_prog_AWK
1665if test -n "$AWK"; then
1666 echo "$as_me:$LINENO: result: $AWK" >&5
1667echo "${ECHO_T}$AWK" >&6
1668else
1669 echo "$as_me:$LINENO: result: no" >&5
1670echo "${ECHO_T}no" >&6
1671fi
1672
1673 test -n "$AWK" && break
1674done
1675
1676echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1677echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1678set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1679if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682 cat >conftest.make <<\_ACEOF
1683all:
1684 @echo 'ac_maketemp="$(MAKE)"'
1685_ACEOF
1686# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1687eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1688if test -n "$ac_maketemp"; then
1689 eval ac_cv_prog_make_${ac_make}_set=yes
1690else
1691 eval ac_cv_prog_make_${ac_make}_set=no
1692fi
1693rm -f conftest.make
1694fi
1695if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1696 echo "$as_me:$LINENO: result: yes" >&5
1697echo "${ECHO_T}yes" >&6
1698 SET_MAKE=
1699else
1700 echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702 SET_MAKE="MAKE=${MAKE-make}"
1703fi
1704
1705rm -rf .tst 2>/dev/null
1706mkdir .tst 2>/dev/null
1707if test -d .tst; then
1708 am__leading_dot=.
1709else
1710 am__leading_dot=_
1711fi
1712rmdir .tst 2>/dev/null
1713
1714# test to see if srcdir already configured
1715if test "`cd $srcdir && pwd`" != "`pwd`" &&
1716 test -f $srcdir/config.status; then
1717 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1718echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1719 { (exit 1); exit 1; }; }
1720fi
1721
1722# test whether we have cygpath
1723if test -z "$CYGPATH_W"; then
1724 if (cygpath --version) >/dev/null 2>/dev/null; then
1725 CYGPATH_W='cygpath -w'
1726 else
1727 CYGPATH_W=echo
1728 fi
1729fi
1730
1731
1732# Define the identity of the package.
8486ee48
ILT
1733 PACKAGE='gold'
1734 VERSION='0.1'
bae7f79e
ILT
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define PACKAGE "$PACKAGE"
1739_ACEOF
1740
1741
1742cat >>confdefs.h <<_ACEOF
1743#define VERSION "$VERSION"
1744_ACEOF
1745
1746# Some tools Automake needs.
1747
1748ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1749
1750
1751AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1752
1753
1754AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1755
1756
1757AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1758
1759
1760MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1761
1762install_sh=${install_sh-"$am_aux_dir/install-sh"}
1763
1764# Installed binaries are usually stripped using `strip' when the user
1765# run `make install-strip'. However `strip' might not be the right
1766# tool to use in cross-compilation environments, therefore Automake
1767# will honor the `STRIP' environment variable to overrule this program.
1768if test "$cross_compiling" != no; then
1769 if test -n "$ac_tool_prefix"; then
1770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1771set dummy ${ac_tool_prefix}strip; ac_word=$2
1772echo "$as_me:$LINENO: checking for $ac_word" >&5
1773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774if test "${ac_cv_prog_STRIP+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 if test -n "$STRIP"; then
1778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1779else
1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781for as_dir in $PATH
1782do
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791done
1792done
1793
1794fi
1795fi
1796STRIP=$ac_cv_prog_STRIP
1797if test -n "$STRIP"; then
1798 echo "$as_me:$LINENO: result: $STRIP" >&5
1799echo "${ECHO_T}$STRIP" >&6
1800else
1801 echo "$as_me:$LINENO: result: no" >&5
1802echo "${ECHO_T}no" >&6
1803fi
1804
1805fi
1806if test -z "$ac_cv_prog_STRIP"; then
1807 ac_ct_STRIP=$STRIP
1808 # Extract the first word of "strip", so it can be a program name with args.
1809set dummy strip; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815 if test -n "$ac_ct_STRIP"; then
1816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1817else
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_ac_ct_STRIP="strip"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829done
1830done
1831
1832 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1833fi
1834fi
1835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1836if test -n "$ac_ct_STRIP"; then
1837 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1838echo "${ECHO_T}$ac_ct_STRIP" >&6
1839else
1840 echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842fi
1843
1844 STRIP=$ac_ct_STRIP
1845else
1846 STRIP="$ac_cv_prog_STRIP"
1847fi
1848
1849fi
1850INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1851
1852# We need awk for the "check" target. The system "awk" is bad on
1853# some platforms.
1854# Always define AMTAR for backward compatibility.
1855
1856AMTAR=${AMTAR-"${am_missing_run}tar"}
1857
1858am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1859
1860
1861
1862
1863
1864
1865 ac_config_headers="$ac_config_headers config.h:config.in"
1866
1867
ad2d6943
ILT
1868
1869# Check whether --with-sysroot or --without-sysroot was given.
1870if test "${with_sysroot+set}" = set; then
1871 withval="$with_sysroot"
1872 sysroot=$withval
1873else
1874 sysroot=no
1875fi;
1876
1877if test "$sysroot" = "yes"; then
1878 sysroot='${exec_prefix}/${target_alias}/sys-root'
1879elif test "$sysroot" = "no"; then
1880 sysroot=
1881fi
1882
1883sysroot_relocatable=0
1884if test -n "$sysroot"; then
1885 case "sysroot" in
1886 "${prefix}" | "${prefix}/"* | \
1887 "${exec_prefix}" | "${exec_prefix}/"* | \
1888 '${prefix}' | '${prefix}/'*| \
1889 '${exec_prefix}' | '${exec_prefix}/'*)
1890 sysroot_relocatable=1
1891 ;;
1892 esac
1893fi
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define TARGET_SYSTEM_ROOT "$sysroot"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
1903_ACEOF
1904
1905
fe9a4c12
ILT
1906# Check whether --enable-threads or --disable-threads was given.
1907if test "${enable_threads+set}" = set; then
1908 enableval="$enable_threads"
1909 case "${enableval}" in
1910 yes | "") threads=yes ;;
1911 no) threads=no ;;
1912 *) threads=yes ;;
1913 esac
1914else
1915 threads=no
1916fi;
1917if test "$threads" = "yes"; then
1918
1919cat >>confdefs.h <<\_ACEOF
1920#define ENABLE_THREADS 1
1921_ACEOF
1922
1923fi
1924
1925
1926if test "$threads" = "yes"; then
1927 THREADS_TRUE=
1928 THREADS_FALSE='#'
1929else
1930 THREADS_TRUE='#'
1931 THREADS_FALSE=
1932fi
1933
1934
193a53d9
ILT
1935# Check whether --enable-targets or --disable-targets was given.
1936if test "${enable_targets+set}" = set; then
1937 enableval="$enable_targets"
1938 case "${enableval}" in
1939 yes | "")
1940 { { echo "$as_me:$LINENO: error: --enable-targets option must specify target names or 'all'" >&5
1941echo "$as_me: error: --enable-targets option must specify target names or 'all'" >&2;}
1942 { (exit 1); exit 1; }; }
1943 ;;
1944 no)
1945 enable_targets=
1946 ;;
1947 *)
1948 enable_targets=$enableval
1949 ;;
1950esac
1951else
1952 # For now, enable all targets by default
1953 enable_targets=all
1954
1955fi;
1956
1957# Canonicalize the enabled targets.
1958if test -n "$enable_targets"; then
1959 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
1960 result=`$ac_config_sub $targ 2>/dev/null`
1961 if test -n "$result"; then
1962 canon_targets="$canon_targets $result"
1963 else
1964 # Permit unrecognized target names, like "all".
1965 canon_targets="$canon_targets $targ"
1966 fi
1967 done
1968fi
1969
1970# See which specific instantiations we need.
6df6da4a
ILT
1971targetobjs=
1972all_targets=
193a53d9
ILT
1973for targ in $target $canon_targets; do
1974 targ_32_little=
1975 targ_32_big=
1976 targ_64_little=
1977 targ_64_big=
1978 if test "$targ" = "all"; then
1979 targ_32_little=yes
1980 targ_32_big=yes
1981 targ_64_little=yes
1982 targ_64_big=yes
6df6da4a 1983 all_targets=yes
193a53d9
ILT
1984 else
1985 case "$targ" in
6df6da4a
ILT
1986 i?86-*)
1987 targ_32_little=yes
1988 targetobjs="$targetobjs i386.\$(OBJEXT)"
1989 ;;
1990 x86_64-*)
1991 targ_64_little=yes
1992 targetobjs="$targetobjs x86_64.\$(OBJEXT)"
1993 ;;
193a53d9 1994 *)
6df6da4a
ILT
1995 { { echo "$as_me:$LINENO: error: \"unsupported target $targ\"" >&5
1996echo "$as_me: error: \"unsupported target $targ\"" >&2;}
193a53d9
ILT
1997 { (exit 1); exit 1; }; }
1998 ;;
1999 esac
2000 fi
2001done
2002
2003if test -n "$targ_32_little"; then
2004
2005cat >>confdefs.h <<\_ACEOF
2006#define HAVE_TARGET_32_LITTLE 1
2007_ACEOF
2008
2009fi
2010if test -n "$targ_32_big"; then
2011
2012cat >>confdefs.h <<\_ACEOF
2013#define HAVE_TARGET_32_BIG 1
2014_ACEOF
2015
2016fi
2017if test -n "$targ_64_little"; then
2018
2019cat >>confdefs.h <<\_ACEOF
2020#define HAVE_TARGET_64_LITTLE 1
2021_ACEOF
2022
2023fi
2024if test -n "$targ_64_big"; then
2025
2026cat >>confdefs.h <<\_ACEOF
2027#define HAVE_TARGET_64_BIG 1
2028_ACEOF
2029
2030fi
2031
6df6da4a
ILT
2032if test -n "$all_targets"; then
2033 TARGETOBJS='$(ALL_TARGETOBJS)'
2034else
2035 TARGETOBJS="$targetobjs"
2036fi
2037
2038
bae7f79e
ILT
2039ac_ext=c
2040ac_cpp='$CPP $CPPFLAGS'
2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2046set dummy ${ac_tool_prefix}gcc; ac_word=$2
2047echo "$as_me:$LINENO: checking for $ac_word" >&5
2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2054else
2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056for as_dir in $PATH
2057do
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 break 2
2065 fi
2066done
2067done
2068
2069fi
2070fi
2071CC=$ac_cv_prog_CC
2072if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074echo "${ECHO_T}$CC" >&6
2075else
2076 echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6
2078fi
2079
2080fi
2081if test -z "$ac_cv_prog_CC"; then
2082 ac_ct_CC=$CC
2083 # Extract the first word of "gcc", so it can be a program name with args.
2084set dummy gcc; ac_word=$2
2085echo "$as_me:$LINENO: checking for $ac_word" >&5
2086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090 if test -n "$ac_ct_CC"; then
2091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092else
2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH
2095do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_ac_ct_CC="gcc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2103 fi
2104done
2105done
2106
2107fi
2108fi
2109ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110if test -n "$ac_ct_CC"; then
2111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112echo "${ECHO_T}$ac_ct_CC" >&6
2113else
2114 echo "$as_me:$LINENO: result: no" >&5
2115echo "${ECHO_T}no" >&6
2116fi
2117
2118 CC=$ac_ct_CC
2119else
2120 CC="$ac_cv_prog_CC"
2121fi
2122
2123if test -z "$CC"; then
2124 if test -n "$ac_tool_prefix"; then
2125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2126set dummy ${ac_tool_prefix}cc; ac_word=$2
2127echo "$as_me:$LINENO: checking for $ac_word" >&5
2128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129if test "${ac_cv_prog_CC+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2134else
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 for ac_exec_ext in '' $ac_executable_extensions; do
2141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2142 ac_cv_prog_CC="${ac_tool_prefix}cc"
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144 break 2
2145 fi
2146done
2147done
2148
2149fi
2150fi
2151CC=$ac_cv_prog_CC
2152if test -n "$CC"; then
2153 echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6
2155else
2156 echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6
2158fi
2159
2160fi
2161if test -z "$ac_cv_prog_CC"; then
2162 ac_ct_CC=$CC
2163 # Extract the first word of "cc", so it can be a program name with args.
2164set dummy cc; ac_word=$2
2165echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170 if test -n "$ac_ct_CC"; then
2171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172else
2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH
2175do
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180 ac_cv_prog_ac_ct_CC="cc"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2183 fi
2184done
2185done
2186
2187fi
2188fi
2189ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190if test -n "$ac_ct_CC"; then
2191 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192echo "${ECHO_T}$ac_ct_CC" >&6
2193else
2194 echo "$as_me:$LINENO: result: no" >&5
2195echo "${ECHO_T}no" >&6
2196fi
2197
2198 CC=$ac_ct_CC
2199else
2200 CC="$ac_cv_prog_CC"
2201fi
2202
2203fi
2204if test -z "$CC"; then
2205 # Extract the first word of "cc", so it can be a program name with args.
2206set dummy cc; ac_word=$2
2207echo "$as_me:$LINENO: checking for $ac_word" >&5
2208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214else
2215 ac_prog_rejected=no
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2224 ac_prog_rejected=yes
2225 continue
2226 fi
2227 ac_cv_prog_CC="cc"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2230 fi
2231done
2232done
2233
2234if test $ac_prog_rejected = yes; then
2235 # We found a bogon in the path, so make sure we never use it.
2236 set dummy $ac_cv_prog_CC
2237 shift
2238 if test $# != 0; then
2239 # We chose a different compiler from the bogus one.
2240 # However, it has the same basename, so the bogon will be chosen
2241 # first if we set CC to just the basename; use the full file name.
2242 shift
2243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2244 fi
2245fi
2246fi
2247fi
2248CC=$ac_cv_prog_CC
2249if test -n "$CC"; then
2250 echo "$as_me:$LINENO: result: $CC" >&5
2251echo "${ECHO_T}$CC" >&6
2252else
2253 echo "$as_me:$LINENO: result: no" >&5
2254echo "${ECHO_T}no" >&6
2255fi
2256
2257fi
2258if test -z "$CC"; then
2259 if test -n "$ac_tool_prefix"; then
2260 for ac_prog in cl
2261 do
2262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2264echo "$as_me:$LINENO: checking for $ac_word" >&5
2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283done
2284done
2285
2286fi
2287fi
2288CC=$ac_cv_prog_CC
2289if test -n "$CC"; then
2290 echo "$as_me:$LINENO: result: $CC" >&5
2291echo "${ECHO_T}$CC" >&6
2292else
2293 echo "$as_me:$LINENO: result: no" >&5
2294echo "${ECHO_T}no" >&6
2295fi
2296
2297 test -n "$CC" && break
2298 done
2299fi
2300if test -z "$CC"; then
2301 ac_ct_CC=$CC
2302 for ac_prog in cl
2303do
2304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2305set dummy $ac_prog; ac_word=$2
2306echo "$as_me:$LINENO: checking for $ac_word" >&5
2307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311 if test -n "$ac_ct_CC"; then
2312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313else
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321 ac_cv_prog_ac_ct_CC="$ac_prog"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325done
2326done
2327
2328fi
2329fi
2330ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331if test -n "$ac_ct_CC"; then
2332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2333echo "${ECHO_T}$ac_ct_CC" >&6
2334else
2335 echo "$as_me:$LINENO: result: no" >&5
2336echo "${ECHO_T}no" >&6
2337fi
2338
2339 test -n "$ac_ct_CC" && break
2340done
2341
2342 CC=$ac_ct_CC
2343fi
2344
2345fi
2346
2347
2348test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2349See \`config.log' for more details." >&5
2350echo "$as_me: error: no acceptable C compiler found in \$PATH
2351See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2353
2354# Provide some information about the compiler.
2355echo "$as_me:$LINENO:" \
2356 "checking for C compiler version" >&5
2357ac_compiler=`set X $ac_compile; echo $2`
2358{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2359 (eval $ac_compiler --version </dev/null >&5) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
2363{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2364 (eval $ac_compiler -v </dev/null >&5) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2368{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2369 (eval $ac_compiler -V </dev/null >&5) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373
2374cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
2380
2381int
2382main ()
2383{
2384
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389ac_clean_files_save=$ac_clean_files
2390ac_clean_files="$ac_clean_files a.out a.exe b.out"
2391# Try to create an executable without -o first, disregard a.out.
2392# It will help us diagnose broken compilers, and finding out an intuition
2393# of exeext.
2394echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2395echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2396ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2397if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2398 (eval $ac_link_default) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; then
2402 # Find the output, starting from the most likely. This scheme is
2403# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2404# resort.
2405
2406# Be careful to initialize this variable, since it used to be cached.
2407# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2408ac_cv_exeext=
2409# b.out is created by i960 compilers.
2410for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2411do
2412 test -f "$ac_file" || continue
2413 case $ac_file in
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2415 ;;
2416 conftest.$ac_ext )
2417 # This is the source file.
2418 ;;
2419 [ab].out )
2420 # We found the default executable, but exeext='' is most
2421 # certainly right.
2422 break;;
2423 *.* )
2424 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425 # FIXME: I believe we export ac_cv_exeext for Libtool,
2426 # but it would be cool to find out if it's true. Does anybody
2427 # maintain Libtool? --akim.
2428 export ac_cv_exeext
2429 break;;
2430 * )
2431 break;;
2432 esac
2433done
2434else
2435 echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2439See \`config.log' for more details." >&5
2440echo "$as_me: error: C compiler cannot create executables
2441See \`config.log' for more details." >&2;}
2442 { (exit 77); exit 77; }; }
2443fi
2444
2445ac_exeext=$ac_cv_exeext
2446echo "$as_me:$LINENO: result: $ac_file" >&5
2447echo "${ECHO_T}$ac_file" >&6
2448
2449# Check the compiler produces executables we can run. If not, either
2450# the compiler is broken, or we cross compile.
2451echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2452echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2453# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454# If not cross compiling, check that we can run a simple program.
2455if test "$cross_compiling" != yes; then
2456 if { ac_try='./$ac_file'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 cross_compiling=no
2463 else
2464 if test "$cross_compiling" = maybe; then
2465 cross_compiling=yes
2466 else
2467 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2468If you meant to cross compile, use \`--host'.
2469See \`config.log' for more details." >&5
2470echo "$as_me: error: cannot run C compiled programs.
2471If you meant to cross compile, use \`--host'.
2472See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2474 fi
2475 fi
2476fi
2477echo "$as_me:$LINENO: result: yes" >&5
2478echo "${ECHO_T}yes" >&6
2479
2480rm -f a.out a.exe conftest$ac_cv_exeext b.out
2481ac_clean_files=$ac_clean_files_save
2482# Check the compiler produces executables we can run. If not, either
2483# the compiler is broken, or we cross compile.
2484echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2485echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2486echo "$as_me:$LINENO: result: $cross_compiling" >&5
2487echo "${ECHO_T}$cross_compiling" >&6
2488
2489echo "$as_me:$LINENO: checking for suffix of executables" >&5
2490echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2492 (eval $ac_link) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; then
2496 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2497# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2498# work properly (i.e., refer to `conftest.exe'), while it won't with
2499# `rm'.
2500for ac_file in conftest.exe conftest conftest.*; do
2501 test -f "$ac_file" || continue
2502 case $ac_file in
2503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2505 export ac_cv_exeext
2506 break;;
2507 * ) break;;
2508 esac
2509done
2510else
2511 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2512See \`config.log' for more details." >&5
2513echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2514See \`config.log' for more details." >&2;}
2515 { (exit 1); exit 1; }; }
2516fi
2517
2518rm -f conftest$ac_cv_exeext
2519echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2520echo "${ECHO_T}$ac_cv_exeext" >&6
2521
2522rm -f conftest.$ac_ext
2523EXEEXT=$ac_cv_exeext
2524ac_exeext=$EXEEXT
2525echo "$as_me:$LINENO: checking for suffix of object files" >&5
2526echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2527if test "${ac_cv_objext+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
2536
2537int
2538main ()
2539{
2540
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545rm -f conftest.o conftest.obj
2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; then
2551 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2552 case $ac_file in
2553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2555 break;;
2556 esac
2557done
2558else
2559 echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2563See \`config.log' for more details." >&5
2564echo "$as_me: error: cannot compute suffix of object files: cannot compile
2565See \`config.log' for more details." >&2;}
2566 { (exit 1); exit 1; }; }
2567fi
2568
2569rm -f conftest.$ac_cv_objext conftest.$ac_ext
2570fi
2571echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2572echo "${ECHO_T}$ac_cv_objext" >&6
2573OBJEXT=$ac_cv_objext
2574ac_objext=$OBJEXT
2575echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2576echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2577if test "${ac_cv_c_compiler_gnu+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580 cat >conftest.$ac_ext <<_ACEOF
2581/* confdefs.h. */
2582_ACEOF
2583cat confdefs.h >>conftest.$ac_ext
2584cat >>conftest.$ac_ext <<_ACEOF
2585/* end confdefs.h. */
2586
2587int
2588main ()
2589{
2590#ifndef __GNUC__
2591 choke me
2592#endif
2593
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 ac_compiler_gnu=yes
2621else
2622 echo "$as_me: failed program was:" >&5
2623sed 's/^/| /' conftest.$ac_ext >&5
2624
2625ac_compiler_gnu=no
2626fi
2627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629
2630fi
2631echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2632echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2633GCC=`test $ac_compiler_gnu = yes && echo yes`
2634ac_test_CFLAGS=${CFLAGS+set}
2635ac_save_CFLAGS=$CFLAGS
2636CFLAGS="-g"
2637echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2638echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2639if test "${ac_cv_prog_cc_g+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641else
2642 cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h. */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
2647/* end confdefs.h. */
2648
2649int
2650main ()
2651{
2652
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 ac_cv_prog_cc_g=yes
2680else
2681 echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684ac_cv_prog_cc_g=no
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687fi
2688echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2690if test "$ac_test_CFLAGS" = set; then
2691 CFLAGS=$ac_save_CFLAGS
2692elif test $ac_cv_prog_cc_g = yes; then
2693 if test "$GCC" = yes; then
2694 CFLAGS="-g -O2"
2695 else
2696 CFLAGS="-g"
2697 fi
2698else
2699 if test "$GCC" = yes; then
2700 CFLAGS="-O2"
2701 else
2702 CFLAGS=
2703 fi
2704fi
2705echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2706echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2707if test "${ac_cv_prog_cc_stdc+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710 ac_cv_prog_cc_stdc=no
2711ac_save_CC=$CC
2712cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h. */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h. */
2718#include <stdarg.h>
2719#include <stdio.h>
2720#include <sys/types.h>
2721#include <sys/stat.h>
2722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723struct buf { int x; };
2724FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725static char *e (p, i)
2726 char **p;
2727 int i;
2728{
2729 return p[i];
2730}
2731static char *f (char * (*g) (char **, int), char **p, ...)
2732{
2733 char *s;
2734 va_list v;
2735 va_start (v,p);
2736 s = g (p, va_arg (v,int));
2737 va_end (v);
2738 return s;
2739}
2740
2741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not '\xHH' hex character constants.
2743 These don't provoke an error unfortunately, instead are silently treated
2744 as 'x'. The following induces an error, until -std1 is added to get
2745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 array size at least. It's necessary to write '\x00'==0 to get something
2747 that's true only with -std1. */
2748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2749
2750int test (int i, double x);
2751struct s1 {int (*f) (int a);};
2752struct s2 {int (*f) (double a);};
2753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2754int argc;
2755char **argv;
2756int
2757main ()
2758{
2759return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764# Don't try gcc -ansi; that turns off useful extensions and
2765# breaks some systems' header files.
2766# AIX -qlanglvl=ansi
2767# Ultrix and OSF/1 -std1
2768# HP-UX 10.20 and later -Ae
2769# HP-UX older versions -Aa -D_HPUX_SOURCE
2770# SVR4 -Xc -D__EXTENSIONS__
2771for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772do
2773 CC="$ac_save_CC $ac_arg"
2774 rm -f conftest.$ac_objext
2775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>conftest.er1
2777 ac_status=$?
2778 grep -v '^ *+' conftest.er1 >conftest.err
2779 rm -f conftest.er1
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_c_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2796 ac_cv_prog_cc_stdc=$ac_arg
2797break
2798else
2799 echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
2801
2802fi
2803rm -f conftest.err conftest.$ac_objext
2804done
2805rm -f conftest.$ac_ext conftest.$ac_objext
2806CC=$ac_save_CC
2807
2808fi
2809
2810case "x$ac_cv_prog_cc_stdc" in
2811 x|xno)
2812 echo "$as_me:$LINENO: result: none needed" >&5
2813echo "${ECHO_T}none needed" >&6 ;;
2814 *)
2815 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2816echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2817 CC="$CC $ac_cv_prog_cc_stdc" ;;
2818esac
2819
2820# Some people use a C++ compiler to compile C. Since we use `exit',
2821# in C++ we need to declare it. In case someone uses the same compiler
2822# for both compiling C and C++ we need to have the C++ compiler decide
2823# the declaration of exit, since it's the most demanding environment.
2824cat >conftest.$ac_ext <<_ACEOF
2825#ifndef __cplusplus
2826 choke me
2827#endif
2828_ACEOF
2829rm -f conftest.$ac_objext
2830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831 (eval $ac_compile) 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
2838 { ac_try='test -z "$ac_c_werror_flag"
2839 || test ! -s conftest.err'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 for ac_declaration in \
2852 '' \
2853 'extern "C" void std::exit (int) throw (); using std::exit;' \
2854 'extern "C" void std::exit (int); using std::exit;' \
2855 'extern "C" void exit (int) throw ();' \
2856 'extern "C" void exit (int);' \
2857 'void exit (int);'
2858do
2859 cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h. */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h. */
2865$ac_declaration
2866#include <stdlib.h>
2867int
2868main ()
2869{
2870exit (42);
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875rm -f conftest.$ac_objext
2876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2878 ac_status=$?
2879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_c_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2897 :
2898else
2899 echo "$as_me: failed program was:" >&5
2900sed 's/^/| /' conftest.$ac_ext >&5
2901
2902continue
2903fi
2904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 cat >conftest.$ac_ext <<_ACEOF
2906/* confdefs.h. */
2907_ACEOF
2908cat confdefs.h >>conftest.$ac_ext
2909cat >>conftest.$ac_ext <<_ACEOF
2910/* end confdefs.h. */
2911$ac_declaration
2912int
2913main ()
2914{
2915exit (42);
2916 ;
2917 return 0;
2918}
2919_ACEOF
2920rm -f conftest.$ac_objext
2921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2923 ac_status=$?
2924 grep -v '^ *+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 break
2943else
2944 echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947fi
2948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949done
2950rm -f conftest*
2951if test -n "$ac_declaration"; then
2952 echo '#ifdef __cplusplus' >>confdefs.h
2953 echo $ac_declaration >>confdefs.h
2954 echo '#endif' >>confdefs.h
2955fi
2956
2957else
2958 echo "$as_me: failed program was:" >&5
2959sed 's/^/| /' conftest.$ac_ext >&5
2960
2961fi
2962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963ac_ext=c
2964ac_cpp='$CPP $CPPFLAGS'
2965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968DEPDIR="${am__leading_dot}deps"
2969
2970 ac_config_commands="$ac_config_commands depfiles"
2971
2972
2973am_make=${MAKE-make}
2974cat > confinc << 'END'
2975am__doit:
2976 @echo done
2977.PHONY: am__doit
2978END
2979# If we don't find an include directive, just comment out the code.
2980echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2981echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2982am__include="#"
2983am__quote=
2984_am_result=none
2985# First try GNU make style include.
2986echo "include confinc" > confmf
2987# We grep out `Entering directory' and `Leaving directory'
2988# messages which can occur if `w' ends up in MAKEFLAGS.
2989# In particular we don't look at `^make:' because GNU make might
2990# be invoked under some other name (usually "gmake"), in which
2991# case it prints its new name instead of `make'.
2992if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2993 am__include=include
2994 am__quote=
2995 _am_result=GNU
2996fi
2997# Now try BSD make style include.
2998if test "$am__include" = "#"; then
2999 echo '.include "confinc"' > confmf
3000 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3001 am__include=.include
3002 am__quote="\""
3003 _am_result=BSD
3004 fi
3005fi
3006
3007
3008echo "$as_me:$LINENO: result: $_am_result" >&5
3009echo "${ECHO_T}$_am_result" >&6
3010rm -f confinc confmf
3011
3012# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3013if test "${enable_dependency_tracking+set}" = set; then
3014 enableval="$enable_dependency_tracking"
3015
3016fi;
3017if test "x$enable_dependency_tracking" != xno; then
3018 am_depcomp="$ac_aux_dir/depcomp"
3019 AMDEPBACKSLASH='\'
3020fi
3021
3022
3023if test "x$enable_dependency_tracking" != xno; then
3024 AMDEP_TRUE=
3025 AMDEP_FALSE='#'
3026else
3027 AMDEP_TRUE='#'
3028 AMDEP_FALSE=
3029fi
3030
3031
3032
3033
3034depcc="$CC" am_compiler_list=
3035
3036echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3037echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3038if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040else
3041 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3042 # We make a subdir and do the tests there. Otherwise we can end up
3043 # making bogus files that we don't know about and never remove. For
3044 # instance it was reported that on HP-UX the gcc test will end up
3045 # making a dummy file named `D' -- because `-MD' means `put the output
3046 # in D'.
3047 mkdir conftest.dir
3048 # Copy depcomp to subdir because otherwise we won't find it if we're
3049 # using a relative directory.
3050 cp "$am_depcomp" conftest.dir
3051 cd conftest.dir
3052 # We will build objects and dependencies in a subdirectory because
3053 # it helps to detect inapplicable dependency modes. For instance
3054 # both Tru64's cc and ICC support -MD to output dependencies as a
3055 # side effect of compilation, but ICC will put the dependencies in
3056 # the current directory while Tru64 will put them in the object
3057 # directory.
3058 mkdir sub
3059
3060 am_cv_CC_dependencies_compiler_type=none
3061 if test "$am_compiler_list" = ""; then
3062 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3063 fi
3064 for depmode in $am_compiler_list; do
3065 # Setup a source with many dependencies, because some compilers
3066 # like to wrap large dependency lists on column 80 (with \), and
3067 # we should not choose a depcomp mode which is confused by this.
3068 #
3069 # We need to recreate these files for each test, as the compiler may
3070 # overwrite some of them when testing with obscure command lines.
3071 # This happens at least with the AIX C compiler.
3072 : > sub/conftest.c
3073 for i in 1 2 3 4 5 6; do
3074 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3075 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3076 # Solaris 8's {/usr,}/bin/sh.
3077 touch sub/conftst$i.h
3078 done
3079 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3080
3081 case $depmode in
3082 nosideeffect)
3083 # after this tag, mechanisms are not by side-effect, so they'll
3084 # only be used when explicitly requested
3085 if test "x$enable_dependency_tracking" = xyes; then
3086 continue
3087 else
3088 break
3089 fi
3090 ;;
3091 none) break ;;
3092 esac
3093 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3094 # mode. It turns out that the SunPro C++ compiler does not properly
3095 # handle `-M -o', and we need to detect this.
3096 if depmode=$depmode \
3097 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3099 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3100 >/dev/null 2>conftest.err &&
3101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3102 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3104 # icc doesn't choke on unknown options, it will just issue warnings
3105 # or remarks (even with -Werror). So we grep stderr for any message
3106 # that says an option was ignored or not supported.
3107 # When given -MP, icc 7.0 and 7.1 complain thusly:
3108 # icc: Command line warning: ignoring option '-M'; no argument required
3109 # The diagnosis changed in icc 8.0:
3110 # icc: Command line remark: option '-MP' not supported
3111 if (grep 'ignoring option' conftest.err ||
3112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3113 am_cv_CC_dependencies_compiler_type=$depmode
3114 break
3115 fi
3116 fi
3117 done
3118
3119 cd ..
3120 rm -rf conftest.dir
3121else
3122 am_cv_CC_dependencies_compiler_type=none
3123fi
3124
3125fi
3126echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3127echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3128CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3129
3130
3131
3132if
3133 test "x$enable_dependency_tracking" != xno \
3134 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3135 am__fastdepCC_TRUE=
3136 am__fastdepCC_FALSE='#'
3137else
3138 am__fastdepCC_TRUE='#'
3139 am__fastdepCC_FALSE=
3140fi
3141
3142
3143ac_ext=cc
3144ac_cpp='$CXXCPP $CPPFLAGS'
3145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3148if test -n "$ac_tool_prefix"; then
3149 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3150 do
3151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153echo "$as_me:$LINENO: checking for $ac_word" >&5
3154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155if test "${ac_cv_prog_CXX+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157else
3158 if test -n "$CXX"; then
3159 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172done
3173done
3174
3175fi
3176fi
3177CXX=$ac_cv_prog_CXX
3178if test -n "$CXX"; then
3179 echo "$as_me:$LINENO: result: $CXX" >&5
3180echo "${ECHO_T}$CXX" >&6
3181else
3182 echo "$as_me:$LINENO: result: no" >&5
3183echo "${ECHO_T}no" >&6
3184fi
3185
3186 test -n "$CXX" && break
3187 done
3188fi
3189if test -z "$CXX"; then
3190 ac_ct_CXX=$CXX
3191 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3192do
3193 # Extract the first word of "$ac_prog", so it can be a program name with args.
3194set dummy $ac_prog; ac_word=$2
3195echo "$as_me:$LINENO: checking for $ac_word" >&5
3196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200 if test -n "$ac_ct_CXX"; then
3201 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3202else
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_ac_ct_CXX="$ac_prog"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3213 fi
3214done
3215done
3216
3217fi
3218fi
3219ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3220if test -n "$ac_ct_CXX"; then
3221 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3222echo "${ECHO_T}$ac_ct_CXX" >&6
3223else
3224 echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226fi
3227
3228 test -n "$ac_ct_CXX" && break
3229done
3230test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3231
3232 CXX=$ac_ct_CXX
3233fi
3234
3235
3236# Provide some information about the compiler.
3237echo "$as_me:$LINENO:" \
3238 "checking for C++ compiler version" >&5
3239ac_compiler=`set X $ac_compile; echo $2`
3240{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3241 (eval $ac_compiler --version </dev/null >&5) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }
3245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3246 (eval $ac_compiler -v </dev/null >&5) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }
3250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3251 (eval $ac_compiler -V </dev/null >&5) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }
3255
3256echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3257echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3258if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260else
3261 cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
3267
3268int
3269main ()
3270{
3271#ifndef __GNUC__
3272 choke me
3273#endif
3274
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext
3280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>conftest.er1
3282 ac_status=$?
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
3288 { ac_try='test -z "$ac_cxx_werror_flag"
3289 || test ! -s conftest.err'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 (eval $ac_try) 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 ac_compiler_gnu=yes
3302else
3303 echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306ac_compiler_gnu=no
3307fi
3308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3310
3311fi
3312echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3313echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3314GXX=`test $ac_compiler_gnu = yes && echo yes`
3315ac_test_CXXFLAGS=${CXXFLAGS+set}
3316ac_save_CXXFLAGS=$CXXFLAGS
3317CXXFLAGS="-g"
3318echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3319echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3320if test "${ac_cv_prog_cxx_g+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3322else
3323 cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h. */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h. */
3329
3330int
3331main ()
3332{
3333
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext
3339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_cxx_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_prog_cxx_g=yes
3361else
3362 echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365ac_cv_prog_cxx_g=no
3366fi
3367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368fi
3369echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3370echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3371if test "$ac_test_CXXFLAGS" = set; then
3372 CXXFLAGS=$ac_save_CXXFLAGS
3373elif test $ac_cv_prog_cxx_g = yes; then
3374 if test "$GXX" = yes; then
3375 CXXFLAGS="-g -O2"
3376 else
3377 CXXFLAGS="-g"
3378 fi
3379else
3380 if test "$GXX" = yes; then
3381 CXXFLAGS="-O2"
3382 else
3383 CXXFLAGS=
3384 fi
3385fi
3386for ac_declaration in \
3387 '' \
3388 'extern "C" void std::exit (int) throw (); using std::exit;' \
3389 'extern "C" void std::exit (int); using std::exit;' \
3390 'extern "C" void exit (int) throw ();' \
3391 'extern "C" void exit (int);' \
3392 'void exit (int);'
3393do
3394 cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h. */
3400$ac_declaration
3401#include <stdlib.h>
3402int
3403main ()
3404{
3405exit (42);
3406 ;
3407 return 0;
3408}
3409_ACEOF
3410rm -f conftest.$ac_objext
3411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_cxx_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 :
3433else
3434 echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437continue
3438fi
3439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3440 cat >conftest.$ac_ext <<_ACEOF
3441/* confdefs.h. */
3442_ACEOF
3443cat confdefs.h >>conftest.$ac_ext
3444cat >>conftest.$ac_ext <<_ACEOF
3445/* end confdefs.h. */
3446$ac_declaration
3447int
3448main ()
3449{
3450exit (42);
3451 ;
3452 return 0;
3453}
3454_ACEOF
3455rm -f conftest.$ac_objext
3456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457 (eval $ac_compile) 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
3464 { ac_try='test -z "$ac_cxx_werror_flag"
3465 || test ! -s conftest.err'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3477 break
3478else
3479 echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482fi
3483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3484done
3485rm -f conftest*
3486if test -n "$ac_declaration"; then
3487 echo '#ifdef __cplusplus' >>confdefs.h
3488 echo $ac_declaration >>confdefs.h
3489 echo '#endif' >>confdefs.h
3490fi
3491
3492ac_ext=c
3493ac_cpp='$CPP $CPPFLAGS'
3494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497
3498depcc="$CXX" am_compiler_list=
3499
3500echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3501echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3502if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3506 # We make a subdir and do the tests there. Otherwise we can end up
3507 # making bogus files that we don't know about and never remove. For
3508 # instance it was reported that on HP-UX the gcc test will end up
3509 # making a dummy file named `D' -- because `-MD' means `put the output
3510 # in D'.
3511 mkdir conftest.dir
3512 # Copy depcomp to subdir because otherwise we won't find it if we're
3513 # using a relative directory.
3514 cp "$am_depcomp" conftest.dir
3515 cd conftest.dir
3516 # We will build objects and dependencies in a subdirectory because
3517 # it helps to detect inapplicable dependency modes. For instance
3518 # both Tru64's cc and ICC support -MD to output dependencies as a
3519 # side effect of compilation, but ICC will put the dependencies in
3520 # the current directory while Tru64 will put them in the object
3521 # directory.
3522 mkdir sub
3523
3524 am_cv_CXX_dependencies_compiler_type=none
3525 if test "$am_compiler_list" = ""; then
3526 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3527 fi
3528 for depmode in $am_compiler_list; do
3529 # Setup a source with many dependencies, because some compilers
3530 # like to wrap large dependency lists on column 80 (with \), and
3531 # we should not choose a depcomp mode which is confused by this.
3532 #
3533 # We need to recreate these files for each test, as the compiler may
3534 # overwrite some of them when testing with obscure command lines.
3535 # This happens at least with the AIX C compiler.
3536 : > sub/conftest.c
3537 for i in 1 2 3 4 5 6; do
3538 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3539 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3540 # Solaris 8's {/usr,}/bin/sh.
3541 touch sub/conftst$i.h
3542 done
3543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3544
3545 case $depmode in
3546 nosideeffect)
3547 # after this tag, mechanisms are not by side-effect, so they'll
3548 # only be used when explicitly requested
3549 if test "x$enable_dependency_tracking" = xyes; then
3550 continue
3551 else
3552 break
3553 fi
3554 ;;
3555 none) break ;;
3556 esac
3557 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3558 # mode. It turns out that the SunPro C++ compiler does not properly
3559 # handle `-M -o', and we need to detect this.
3560 if depmode=$depmode \
3561 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3563 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3564 >/dev/null 2>conftest.err &&
3565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3566 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3568 # icc doesn't choke on unknown options, it will just issue warnings
3569 # or remarks (even with -Werror). So we grep stderr for any message
3570 # that says an option was ignored or not supported.
3571 # When given -MP, icc 7.0 and 7.1 complain thusly:
3572 # icc: Command line warning: ignoring option '-M'; no argument required
3573 # The diagnosis changed in icc 8.0:
3574 # icc: Command line remark: option '-MP' not supported
3575 if (grep 'ignoring option' conftest.err ||
3576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3577 am_cv_CXX_dependencies_compiler_type=$depmode
3578 break
3579 fi
3580 fi
3581 done
3582
3583 cd ..
3584 rm -rf conftest.dir
3585else
3586 am_cv_CXX_dependencies_compiler_type=none
3587fi
3588
3589fi
3590echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3591echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3592CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3593
3594
3595
3596if
3597 test "x$enable_dependency_tracking" != xno \
3598 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3599 am__fastdepCXX_TRUE=
3600 am__fastdepCXX_FALSE='#'
3601else
3602 am__fastdepCXX_TRUE='#'
3603 am__fastdepCXX_FALSE=
3604fi
3605
3606
dbe717ef
ILT
3607for ac_prog in 'bison -y' byacc
3608do
3609 # Extract the first word of "$ac_prog", so it can be a program name with args.
3610set dummy $ac_prog; ac_word=$2
3611echo "$as_me:$LINENO: checking for $ac_word" >&5
3612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613if test "${ac_cv_prog_YACC+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 if test -n "$YACC"; then
3617 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3618else
3619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620for as_dir in $PATH
3621do
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626 ac_cv_prog_YACC="$ac_prog"
3627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 break 2
3629 fi
3630done
3631done
3632
3633fi
3634fi
3635YACC=$ac_cv_prog_YACC
3636if test -n "$YACC"; then
3637 echo "$as_me:$LINENO: result: $YACC" >&5
3638echo "${ECHO_T}$YACC" >&6
3639else
3640 echo "$as_me:$LINENO: result: no" >&5
3641echo "${ECHO_T}no" >&6
3642fi
3643
3644 test -n "$YACC" && break
3645done
3646test -n "$YACC" || YACC="yacc"
3647
5a6f7e2d
ILT
3648if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3650set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3651echo "$as_me:$LINENO: checking for $ac_word" >&5
3652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653if test "${ac_cv_prog_RANLIB+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
3656 if test -n "$RANLIB"; then
3657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670done
3671done
3672
3673fi
3674fi
3675RANLIB=$ac_cv_prog_RANLIB
3676if test -n "$RANLIB"; then
3677 echo "$as_me:$LINENO: result: $RANLIB" >&5
3678echo "${ECHO_T}$RANLIB" >&6
3679else
3680 echo "$as_me:$LINENO: result: no" >&5
3681echo "${ECHO_T}no" >&6
3682fi
3683
3684fi
3685if test -z "$ac_cv_prog_RANLIB"; then
3686 ac_ct_RANLIB=$RANLIB
3687 # Extract the first word of "ranlib", so it can be a program name with args.
3688set dummy ranlib; ac_word=$2
3689echo "$as_me:$LINENO: checking for $ac_word" >&5
3690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
3694 if test -n "$ac_ct_RANLIB"; then
3695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3696else
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_RANLIB="ranlib"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708done
3709done
3710
3711 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3712fi
3713fi
3714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3715if test -n "$ac_ct_RANLIB"; then
3716 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3717echo "${ECHO_T}$ac_ct_RANLIB" >&6
3718else
3719 echo "$as_me:$LINENO: result: no" >&5
3720echo "${ECHO_T}no" >&6
3721fi
3722
3723 RANLIB=$ac_ct_RANLIB
3724else
3725 RANLIB="$ac_cv_prog_RANLIB"
3726fi
3727
bae7f79e
ILT
3728# Find a good install program. We prefer a C program (faster),
3729# so one script is as good as another. But avoid the broken or
3730# incompatible versions:
3731# SysV /etc/install, /usr/sbin/install
3732# SunOS /usr/etc/install
3733# IRIX /sbin/install
3734# AIX /bin/install
3735# AmigaOS /C/install, which installs bootblocks on floppy discs
3736# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3737# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3738# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3739# OS/2's system install, which has a completely different semantic
3740# ./install, which can be erroneously created by make from ./install.sh.
3741echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3742echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3743if test -z "$INSTALL"; then
3744if test "${ac_cv_path_install+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 # Account for people who put trailing slashes in PATH elements.
3753case $as_dir/ in
3754 ./ | .// | /cC/* | \
3755 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3756 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3757 /usr/ucb/* ) ;;
3758 *)
3759 # OSF1 and SCO ODT 3.0 have their own names for install.
3760 # Don't use installbsd from OSF since it installs stuff as root
3761 # by default.
3762 for ac_prog in ginstall scoinst install; do
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3765 if test $ac_prog = install &&
3766 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3767 # AIX install. It has an incompatible calling convention.
3768 :
3769 elif test $ac_prog = install &&
3770 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3771 # program-specific install script used by HP pwplus--don't use.
3772 :
3773 else
3774 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3775 break 3
3776 fi
3777 fi
3778 done
3779 done
3780 ;;
3781esac
3782done
3783
3784
3785fi
3786 if test "${ac_cv_path_install+set}" = set; then
3787 INSTALL=$ac_cv_path_install
3788 else
3789 # As a last resort, use the slow shell script. We don't cache a
3790 # path for INSTALL within a source directory, because that will
3791 # break other packages using the cache if that directory is
3792 # removed, or if the path is relative.
3793 INSTALL=$ac_install_sh
3794 fi
3795fi
3796echo "$as_me:$LINENO: result: $INSTALL" >&5
3797echo "${ECHO_T}$INSTALL" >&6
3798
3799# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3800# It thinks the first close brace ends the variable substitution.
3801test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3802
3803test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3804
3805test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3806
537b5f51
ILT
3807echo "$as_me:$LINENO: checking whether ln -s works" >&5
3808echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3809LN_S=$as_ln_s
3810if test "$LN_S" = "ln -s"; then
3811 echo "$as_me:$LINENO: result: yes" >&5
3812echo "${ECHO_T}yes" >&6
3813else
3814 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3815echo "${ECHO_T}no, using $LN_S" >&6
3816fi
3817
fa99aa09
ILT
3818
3819
3820cat >>confdefs.h <<\_ACEOF
3821#define _GNU_SOURCE 1
3822_ACEOF
3823
3824
3825
bae7f79e
ILT
3826# If we haven't got the data from the intl directory,
3827# assume NLS is disabled.
3828USE_NLS=no
3829LIBINTL=
3830LIBINTL_DEP=
3831INCINTL=
3832XGETTEXT=
3833GMSGFMT=
3834POSUB=
3835
3836if test -f ../intl/config.intl; then
3837 . ../intl/config.intl
3838fi
3839echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3840echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3841if test x"$USE_NLS" != xyes; then
3842 echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6
3844else
3845 echo "$as_me:$LINENO: result: yes" >&5
3846echo "${ECHO_T}yes" >&6
3847
3848cat >>confdefs.h <<\_ACEOF
3849#define ENABLE_NLS 1
3850_ACEOF
3851
3852
3853 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3854echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3855 # Look for .po and .gmo files in the source directory.
3856 CATALOGS=
3857 XLINGUAS=
3858 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3859 # If there aren't any .gmo files the shell will give us the
3860 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3861 # weeded out.
3862 case "$cat" in *\**)
3863 continue;;
3864 esac
3865 # The quadruple backslash is collapsed to a double backslash
3866 # by the backticks, then collapsed again by the double quotes,
3867 # leaving us with one backslash in the sed expression (right
3868 # before the dot that mustn't act as a wildcard).
3869 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3870 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3871 # The user is allowed to set LINGUAS to a list of languages to
3872 # install catalogs for. If it's empty that means "all of them."
3873 if test "x$LINGUAS" = x; then
3874 CATALOGS="$CATALOGS $cat"
3875 XLINGUAS="$XLINGUAS $lang"
3876 else
3877 case "$LINGUAS" in *$lang*)
3878 CATALOGS="$CATALOGS $cat"
3879 XLINGUAS="$XLINGUAS $lang"
3880 ;;
3881 esac
3882 fi
3883 done
3884 LINGUAS="$XLINGUAS"
3885 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3886echo "${ECHO_T}$LINGUAS" >&6
3887
3888
3889 DATADIRNAME=share
3890
3891 INSTOBJEXT=.mo
3892
3893 GENCAT=gencat
3894
3895 CATOBJEXT=.gmo
3896
3897fi
3898
3899 MKINSTALLDIRS=
3900 if test -n "$ac_aux_dir"; then
3901 case "$ac_aux_dir" in
3902 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3903 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3904 esac
3905 fi
3906 if test -z "$MKINSTALLDIRS"; then
3907 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3908 fi
3909
3910
3911
3912 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3913echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3914 # Check whether --enable-nls or --disable-nls was given.
3915if test "${enable_nls+set}" = set; then
3916 enableval="$enable_nls"
3917 USE_NLS=$enableval
3918else
3919 USE_NLS=yes
3920fi;
3921 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3922echo "${ECHO_T}$USE_NLS" >&6
3923
3924
3925
3926
3927
3928
3929# Prepare PATH_SEPARATOR.
3930# The user is always right.
3931if test "${PATH_SEPARATOR+set}" != set; then
3932 echo "#! /bin/sh" >conf$$.sh
3933 echo "exit 0" >>conf$$.sh
3934 chmod +x conf$$.sh
3935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3936 PATH_SEPARATOR=';'
3937 else
3938 PATH_SEPARATOR=:
3939 fi
3940 rm -f conf$$.sh
3941fi
3942
3943# Find out how to test for executable files. Don't use a zero-byte file,
3944# as systems may use methods other than mode bits to determine executability.
3945cat >conf$$.file <<_ASEOF
3946#! /bin/sh
3947exit 0
3948_ASEOF
3949chmod +x conf$$.file
3950if test -x conf$$.file >/dev/null 2>&1; then
3951 ac_executable_p="test -x"
3952else
3953 ac_executable_p="test -f"
3954fi
3955rm -f conf$$.file
3956
3957# Extract the first word of "msgfmt", so it can be a program name with args.
3958set dummy msgfmt; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_path_MSGFMT+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 case "$MSGFMT" in
3965 [\\/]* | ?:[\\/]*)
3966 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3967 ;;
3968 *)
3969 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3970 for ac_dir in $PATH; do
3971 IFS="$ac_save_IFS"
3972 test -z "$ac_dir" && ac_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3975 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3976 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3977 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3978 break 2
3979 fi
3980 fi
3981 done
3982 done
3983 IFS="$ac_save_IFS"
3984 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3985 ;;
3986esac
3987fi
3988MSGFMT="$ac_cv_path_MSGFMT"
3989if test "$MSGFMT" != ":"; then
3990 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3991echo "${ECHO_T}$MSGFMT" >&6
3992else
3993 echo "$as_me:$LINENO: result: no" >&5
3994echo "${ECHO_T}no" >&6
3995fi
3996
3997 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3998set dummy gmsgfmt; ac_word=$2
3999echo "$as_me:$LINENO: checking for $ac_word" >&5
4000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001if test "${ac_cv_path_GMSGFMT+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004 case $GMSGFMT in
4005 [\\/]* | ?:[\\/]*)
4006 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4007 ;;
4008 *)
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020done
4021done
4022
4023 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4024 ;;
4025esac
4026fi
4027GMSGFMT=$ac_cv_path_GMSGFMT
4028
4029if test -n "$GMSGFMT"; then
4030 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4031echo "${ECHO_T}$GMSGFMT" >&6
4032else
4033 echo "$as_me:$LINENO: result: no" >&5
4034echo "${ECHO_T}no" >&6
4035fi
4036
4037
4038
4039# Prepare PATH_SEPARATOR.
4040# The user is always right.
4041if test "${PATH_SEPARATOR+set}" != set; then
4042 echo "#! /bin/sh" >conf$$.sh
4043 echo "exit 0" >>conf$$.sh
4044 chmod +x conf$$.sh
4045 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4046 PATH_SEPARATOR=';'
4047 else
4048 PATH_SEPARATOR=:
4049 fi
4050 rm -f conf$$.sh
4051fi
4052
4053# Find out how to test for executable files. Don't use a zero-byte file,
4054# as systems may use methods other than mode bits to determine executability.
4055cat >conf$$.file <<_ASEOF
4056#! /bin/sh
4057exit 0
4058_ASEOF
4059chmod +x conf$$.file
4060if test -x conf$$.file >/dev/null 2>&1; then
4061 ac_executable_p="test -x"
4062else
4063 ac_executable_p="test -f"
4064fi
4065rm -f conf$$.file
4066
4067# Extract the first word of "xgettext", so it can be a program name with args.
4068set dummy xgettext; ac_word=$2
4069echo "$as_me:$LINENO: checking for $ac_word" >&5
4070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071if test "${ac_cv_path_XGETTEXT+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 case "$XGETTEXT" in
4075 [\\/]* | ?:[\\/]*)
4076 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4077 ;;
4078 *)
4079 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4080 for ac_dir in $PATH; do
4081 IFS="$ac_save_IFS"
4082 test -z "$ac_dir" && ac_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4085 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4086 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4087 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4088 break 2
4089 fi
4090 fi
4091 done
4092 done
4093 IFS="$ac_save_IFS"
4094 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4095 ;;
4096esac
4097fi
4098XGETTEXT="$ac_cv_path_XGETTEXT"
4099if test "$XGETTEXT" != ":"; then
4100 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4101echo "${ECHO_T}$XGETTEXT" >&6
4102else
4103 echo "$as_me:$LINENO: result: no" >&5
4104echo "${ECHO_T}no" >&6
4105fi
4106
4107 rm -f messages.po
4108
4109
4110# Prepare PATH_SEPARATOR.
4111# The user is always right.
4112if test "${PATH_SEPARATOR+set}" != set; then
4113 echo "#! /bin/sh" >conf$$.sh
4114 echo "exit 0" >>conf$$.sh
4115 chmod +x conf$$.sh
4116 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4117 PATH_SEPARATOR=';'
4118 else
4119 PATH_SEPARATOR=:
4120 fi
4121 rm -f conf$$.sh
4122fi
4123
4124# Find out how to test for executable files. Don't use a zero-byte file,
4125# as systems may use methods other than mode bits to determine executability.
4126cat >conf$$.file <<_ASEOF
4127#! /bin/sh
4128exit 0
4129_ASEOF
4130chmod +x conf$$.file
4131if test -x conf$$.file >/dev/null 2>&1; then
4132 ac_executable_p="test -x"
4133else
4134 ac_executable_p="test -f"
4135fi
4136rm -f conf$$.file
4137
4138# Extract the first word of "msgmerge", so it can be a program name with args.
4139set dummy msgmerge; ac_word=$2
4140echo "$as_me:$LINENO: checking for $ac_word" >&5
4141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142if test "${ac_cv_path_MSGMERGE+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145 case "$MSGMERGE" in
4146 [\\/]* | ?:[\\/]*)
4147 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4148 ;;
4149 *)
4150 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4151 for ac_dir in $PATH; do
4152 IFS="$ac_save_IFS"
4153 test -z "$ac_dir" && ac_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4156 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4157 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4158 break 2
4159 fi
4160 fi
4161 done
4162 done
4163 IFS="$ac_save_IFS"
4164 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4165 ;;
4166esac
4167fi
4168MSGMERGE="$ac_cv_path_MSGMERGE"
4169if test "$MSGMERGE" != ":"; then
4170 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4171echo "${ECHO_T}$MSGMERGE" >&6
4172else
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175fi
4176
4177
4178 if test "$GMSGFMT" != ":"; then
4179 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4180 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4181 : ;
4182 else
4183 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4184 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4185echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4186 GMSGFMT=":"
4187 fi
4188 fi
4189
4190 if test "$XGETTEXT" != ":"; then
4191 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4192 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4193 : ;
4194 else
4195 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4196echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4197 XGETTEXT=":"
4198 fi
4199 rm -f messages.po
4200 fi
4201
4202 ac_config_commands="$ac_config_commands default-1"
4203
4204
4205
4206
92e059d8
ILT
4207echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4208echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4209if test "${ac_cv_c_bigendian+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212 # See if sys/param.h defines the BYTE_ORDER macro.
4213cat >conftest.$ac_ext <<_ACEOF
4214/* confdefs.h. */
4215_ACEOF
4216cat confdefs.h >>conftest.$ac_ext
4217cat >>conftest.$ac_ext <<_ACEOF
4218/* end confdefs.h. */
4219#include <sys/types.h>
4220#include <sys/param.h>
4221
4222int
4223main ()
4224{
4225#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4226 bogus endian macros
4227#endif
4228
4229 ;
4230 return 0;
4231}
4232_ACEOF
4233rm -f conftest.$ac_objext
4234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag"
4243 || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 # It does; now see whether it defined to BIG_ENDIAN or not.
4256cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
4262#include <sys/types.h>
4263#include <sys/param.h>
4264
4265int
4266main ()
4267{
4268#if BYTE_ORDER != BIG_ENDIAN
4269 not big endian
4270#endif
4271
4272 ;
4273 return 0;
4274}
4275_ACEOF
4276rm -f conftest.$ac_objext
4277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278 (eval $ac_compile) 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -z "$ac_c_werror_flag"
4286 || test ! -s conftest.err'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_c_bigendian=yes
4299else
4300 echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303ac_cv_c_bigendian=no
4304fi
4305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4306else
4307 echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
4309
4310# It does not; compile a test program.
4311if test "$cross_compiling" = yes; then
4312 # try to guess the endianness by grepping values into an object file
4313 ac_cv_c_bigendian=unknown
4314 cat >conftest.$ac_ext <<_ACEOF
4315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h. */
4320short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4321short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4322void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4323short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4324short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4325void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4326int
4327main ()
4328{
4329 _ascii (); _ebcdic ();
4330 ;
4331 return 0;
4332}
4333_ACEOF
4334rm -f conftest.$ac_objext
4335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336 (eval $ac_compile) 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 (eval $ac_try) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest.$ac_objext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4357 ac_cv_c_bigendian=yes
4358fi
4359if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4360 if test "$ac_cv_c_bigendian" = unknown; then
4361 ac_cv_c_bigendian=no
4362 else
4363 # finding both strings is unlikely to happen, but who knows?
4364 ac_cv_c_bigendian=unknown
4365 fi
4366fi
4367else
4368 echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371fi
4372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373else
4374 cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h. */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h. */
4380int
4381main ()
4382{
4383 /* Are we little or big endian? From Harbison&Steele. */
4384 union
4385 {
4386 long l;
4387 char c[sizeof (long)];
4388 } u;
4389 u.l = 1;
4390 exit (u.c[sizeof (long) - 1] == 1);
4391}
4392_ACEOF
4393rm -f conftest$ac_exeext
4394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395 (eval $ac_link) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_c_bigendian=no
4405else
4406 echo "$as_me: program exited with status $ac_status" >&5
4407echo "$as_me: failed program was:" >&5
4408sed 's/^/| /' conftest.$ac_ext >&5
4409
4410( exit $ac_status )
4411ac_cv_c_bigendian=yes
4412fi
4413rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4414fi
4415fi
4416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417fi
4418echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4419echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4420case $ac_cv_c_bigendian in
4421 yes)
4422
4423cat >>confdefs.h <<\_ACEOF
4424#define WORDS_BIGENDIAN 1
4425_ACEOF
4426 ;;
4427 no)
4428 ;;
4429 *)
4430 { { echo "$as_me:$LINENO: error: unknown endianness
4431presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4432echo "$as_me: error: unknown endianness
4433presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4434 { (exit 1); exit 1; }; } ;;
4435esac
4436
4437
4438
bae7f79e
ILT
4439
4440
537b5f51
ILT
4441
4442if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
4443 NATIVE_LINKER_TRUE=
4444 NATIVE_LINKER_FALSE='#'
4445else
4446 NATIVE_LINKER_TRUE='#'
4447 NATIVE_LINKER_FALSE=
4448fi
4449
4450
4451
4452if test "$GCC" = yes; then
4453 GCC_TRUE=
4454 GCC_FALSE='#'
4455else
4456 GCC_TRUE='#'
4457 GCC_FALSE=
4458fi
4459
4460
4461
63402fe4
ILT
4462
4463if
4464 case $target_cpu in
4465 i?86) true;;
4466 x86_64) false;;
4467 *) true;;
4468 esac; then
4469 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
4470 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
4471else
4472 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
4473 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
4474fi
4475
4476
097ec620
ILT
4477echo "$as_me:$LINENO: checking for thread support" >&5
4478echo $ECHO_N "checking for thread support... $ECHO_C" >&6
4479if test "${gold_cv_c_thread+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482 cat >conftest.$ac_ext <<_ACEOF
6eee141f
ILT
4483__thread int i = 1;
4484_ACEOF
4485rm -f conftest.$ac_objext
4486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -z "$ac_c_werror_flag"
4495 || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
097ec620 4507 gold_cv_c_thread=yes
6eee141f
ILT
4508else
4509 echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
097ec620 4512gold_cv_c_thread=no
6eee141f
ILT
4513fi
4514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
097ec620
ILT
4515fi
4516echo "$as_me:$LINENO: result: $gold_cv_c_thread" >&5
4517echo "${ECHO_T}$gold_cv_c_thread" >&6
6eee141f
ILT
4518
4519
097ec620
ILT
4520
4521if test "$gold_cv_c_thread" = "yes"; then
6eee141f
ILT
4522 TLS_TRUE=
4523 TLS_FALSE='#'
4524else
4525 TLS_TRUE='#'
4526 TLS_FALSE=
4527fi
4528
4529
097ec620
ILT
4530echo "$as_me:$LINENO: checking for glibc >= 2.4" >&5
4531echo $ECHO_N "checking for glibc >= 2.4... $ECHO_C" >&6
4532if test "${gold_cv_lib_glibc24+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535 cat >conftest.$ac_ext <<_ACEOF
4536
4537#include <features.h>
4538#if !defined __GLIBC__
4539error
4540#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
4541error
4542#endif
4543
4544_ACEOF
4545rm -f conftest.$ac_objext
4546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag"
4555 || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 gold_cv_lib_glibc24=yes
4568else
4569 echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572gold_cv_lib_glibc24=no
4573fi
4574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4575fi
4576echo "$as_me:$LINENO: result: $gold_cv_lib_glibc24" >&5
4577echo "${ECHO_T}$gold_cv_lib_glibc24" >&6
4578
4579
4580
4581if test "$gold_cv_lib_glibc24" = "yes"; then
4582 STATIC_TLS_TRUE=
4583 STATIC_TLS_FALSE='#'
4584else
4585 STATIC_TLS_TRUE='#'
4586 STATIC_TLS_FALSE=
4587fi
4588
4589
63402fe4 4590
bae7f79e
ILT
4591GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4592
4593# Check whether --enable-werror or --disable-werror was given.
4594if test "${enable_werror+set}" = set; then
4595 enableval="$enable_werror"
4596 case "${enableval}" in
4597 yes | y) ERROR_ON_WARNING="yes" ;;
4598 no | n) ERROR_ON_WARNING="no" ;;
4599 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4600echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4601 { (exit 1); exit 1; }; } ;;
4602 esac
4603fi;
4604
4605# Enable -Werror by default when using gcc
4606if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4607 ERROR_ON_WARNING=yes
4608fi
4609
4610NO_WERROR=
4611if test "${ERROR_ON_WARNING}" = yes ; then
4612 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4613 NO_WERROR="-Wno-error"
4614fi
4615
4616if test "${GCC}" = yes ; then
4617 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4618fi
4619
4620# Check whether --enable-build-warnings or --disable-build-warnings was given.
4621if test "${enable_build_warnings+set}" = set; then
4622 enableval="$enable_build_warnings"
4623 case "${enableval}" in
4624 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4625 no) if test "${GCC}" = yes ; then
4626 WARN_CFLAGS="-w"
4627 fi;;
4628 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4629 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4630 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4631 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4632 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4633esac
4634fi;
4635
4636if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4637 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4638fi
4639
4640
4641
4642
4643
4644WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`
4645
4646
4647LFS_CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
4648
4649
82dcae9d
ILT
4650
4651for ac_func in pread
4652do
4653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4654echo "$as_me:$LINENO: checking for $ac_func" >&5
4655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4656if eval "test \"\${$as_ac_var+set}\" = set"; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659 cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h. */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h. */
4665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4667#define $ac_func innocuous_$ac_func
4668
4669/* System header to define __stub macros and hopefully few prototypes,
4670 which can conflict with char $ac_func (); below.
4671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4672 <limits.h> exists even on freestanding compilers. */
4673
4674#ifdef __STDC__
4675# include <limits.h>
4676#else
4677# include <assert.h>
4678#endif
4679
4680#undef $ac_func
4681
4682/* Override any gcc2 internal prototype to avoid an error. */
4683#ifdef __cplusplus
4684extern "C"
4685{
4686#endif
4687/* We use char because int might match the return type of a gcc2
4688 builtin and then its argument prototype would still apply. */
4689char $ac_func ();
4690/* The GNU C library defines this for functions which it implements
4691 to always fail with ENOSYS. Some functions are actually named
4692 something starting with __ and the normal name is an alias. */
4693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4694choke me
4695#else
4696char (*f) () = $ac_func;
4697#endif
4698#ifdef __cplusplus
4699}
4700#endif
4701
4702int
4703main ()
4704{
4705return f != $ac_func;
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710rm -f conftest.$ac_objext conftest$ac_exeext
4711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest$ac_exeext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 eval "$as_ac_var=yes"
4733else
4734 echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737eval "$as_ac_var=no"
4738fi
4739rm -f conftest.err conftest.$ac_objext \
4740 conftest$ac_exeext conftest.$ac_ext
4741fi
4742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4744if test `eval echo '${'$as_ac_var'}'` = yes; then
4745 cat >>confdefs.h <<_ACEOF
4746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4747_ACEOF
4748
4749else
4750 case $LIBOBJS in
4751 "$ac_func.$ac_objext" | \
4752 *" $ac_func.$ac_objext" | \
4753 "$ac_func.$ac_objext "* | \
4754 *" $ac_func.$ac_objext "* ) ;;
4755 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4756esac
4757
4758fi
4759done
4760
4761
4762
9a0910c3
ILT
4763# Link in zlib if we can. This allows us to write compressed sections.
4764ac_ext=c
4765ac_cpp='$CPP $CPPFLAGS'
4766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4770echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4771# On Suns, sometimes $CPP names a directory.
4772if test -n "$CPP" && test -d "$CPP"; then
4773 CPP=
4774fi
4775if test -z "$CPP"; then
4776 if test "${ac_cv_prog_CPP+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779 # Double quotes because CPP needs to be expanded
4780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4781 do
4782 ac_preproc_ok=false
4783for ac_c_preproc_warn_flag in '' yes
4784do
4785 # Use a header file that comes with gcc, so configuring glibc
4786 # with a fresh cross-compiler works.
4787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4788 # <limits.h> exists even on freestanding compilers.
4789 # On the NeXT, cc -E runs the code through the compiler's parser,
4790 # not just through cpp. "Syntax error" is here to catch this case.
4791 cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
4797#ifdef __STDC__
4798# include <limits.h>
4799#else
4800# include <assert.h>
4801#endif
4802 Syntax error
4803_ACEOF
4804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev/null; then
4812 if test -s conftest.err; then
4813 ac_cpp_err=$ac_c_preproc_warn_flag
4814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4815 else
4816 ac_cpp_err=
4817 fi
4818else
4819 ac_cpp_err=yes
4820fi
4821if test -z "$ac_cpp_err"; then
4822 :
4823else
4824 echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 # Broken: fails on valid input.
4828continue
4829fi
4830rm -f conftest.err conftest.$ac_ext
4831
4832 # OK, works on sane cases. Now check whether non-existent headers
4833 # can be detected and how.
4834 cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840#include <ac_nonexistent.h>
4841_ACEOF
4842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_c_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4853 else
4854 ac_cpp_err=
4855 fi
4856else
4857 ac_cpp_err=yes
4858fi
4859if test -z "$ac_cpp_err"; then
4860 # Broken: success on invalid input.
4861continue
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 # Passes both tests.
4867ac_preproc_ok=:
4868break
4869fi
4870rm -f conftest.err conftest.$ac_ext
4871
4872done
4873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874rm -f conftest.err conftest.$ac_ext
4875if $ac_preproc_ok; then
4876 break
4877fi
4878
4879 done
4880 ac_cv_prog_CPP=$CPP
4881
4882fi
4883 CPP=$ac_cv_prog_CPP
4884else
4885 ac_cv_prog_CPP=$CPP
4886fi
4887echo "$as_me:$LINENO: result: $CPP" >&5
4888echo "${ECHO_T}$CPP" >&6
4889ac_preproc_ok=false
4890for ac_c_preproc_warn_flag in '' yes
4891do
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#ifdef __STDC__
4905# include <limits.h>
4906#else
4907# include <assert.h>
4908#endif
4909 Syntax error
4910_ACEOF
4911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null; then
4919 if test -s conftest.err; then
4920 ac_cpp_err=$ac_c_preproc_warn_flag
4921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4922 else
4923 ac_cpp_err=
4924 fi
4925else
4926 ac_cpp_err=yes
4927fi
4928if test -z "$ac_cpp_err"; then
4929 :
4930else
4931 echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 # Broken: fails on valid input.
4935continue
4936fi
4937rm -f conftest.err conftest.$ac_ext
4938
4939 # OK, works on sane cases. Now check whether non-existent headers
4940 # can be detected and how.
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947#include <ac_nonexistent.h>
4948_ACEOF
4949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_c_preproc_warn_flag
4959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4960 else
4961 ac_cpp_err=
4962 fi
4963else
4964 ac_cpp_err=yes
4965fi
4966if test -z "$ac_cpp_err"; then
4967 # Broken: success on invalid input.
4968continue
4969else
4970 echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 # Passes both tests.
4974ac_preproc_ok=:
4975break
4976fi
4977rm -f conftest.err conftest.$ac_ext
4978
4979done
4980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4981rm -f conftest.err conftest.$ac_ext
4982if $ac_preproc_ok; then
4983 :
4984else
4985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4986See \`config.log' for more details." >&5
4987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4988See \`config.log' for more details." >&2;}
4989 { (exit 1); exit 1; }; }
4990fi
4991
4992ac_ext=c
4993ac_cpp='$CPP $CPPFLAGS'
4994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997
4998
4999echo "$as_me:$LINENO: checking for egrep" >&5
5000echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5001if test "${ac_cv_prog_egrep+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003else
5004 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5005 then ac_cv_prog_egrep='grep -E'
5006 else ac_cv_prog_egrep='egrep'
5007 fi
5008fi
5009echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5010echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5011 EGREP=$ac_cv_prog_egrep
5012
5013
5014echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5016if test "${ac_cv_header_stdc+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018else
5019 cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h. */
5025#include <stdlib.h>
5026#include <stdarg.h>
5027#include <string.h>
5028#include <float.h>
5029
5030int
5031main ()
5032{
5033
5034 ;
5035 return 0;
5036}
5037_ACEOF
5038rm -f conftest.$ac_objext
5039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_header_stdc=yes
5061else
5062 echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065ac_cv_header_stdc=no
5066fi
5067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068
5069if test $ac_cv_header_stdc = yes; then
5070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5071 cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077#include <string.h>
5078
5079_ACEOF
5080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "memchr" >/dev/null 2>&1; then
5082 :
5083else
5084 ac_cv_header_stdc=no
5085fi
5086rm -f conftest*
5087
5088fi
5089
5090if test $ac_cv_header_stdc = yes; then
5091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5092 cat >conftest.$ac_ext <<_ACEOF
5093/* confdefs.h. */
5094_ACEOF
5095cat confdefs.h >>conftest.$ac_ext
5096cat >>conftest.$ac_ext <<_ACEOF
5097/* end confdefs.h. */
5098#include <stdlib.h>
5099
5100_ACEOF
5101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5102 $EGREP "free" >/dev/null 2>&1; then
5103 :
5104else
5105 ac_cv_header_stdc=no
5106fi
5107rm -f conftest*
5108
5109fi
5110
5111if test $ac_cv_header_stdc = yes; then
5112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5113 if test "$cross_compiling" = yes; then
5114 :
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122#include <ctype.h>
5123#if ((' ' & 0x0FF) == 0x020)
5124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5126#else
5127# define ISLOWER(c) \
5128 (('a' <= (c) && (c) <= 'i') \
5129 || ('j' <= (c) && (c) <= 'r') \
5130 || ('s' <= (c) && (c) <= 'z'))
5131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5132#endif
5133
5134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5135int
5136main ()
5137{
5138 int i;
5139 for (i = 0; i < 256; i++)
5140 if (XOR (islower (i), ISLOWER (i))
5141 || toupper (i) != TOUPPER (i))
5142 exit(2);
5143 exit (0);
5144}
5145_ACEOF
5146rm -f conftest$ac_exeext
5147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5148 (eval $ac_link) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5157 :
5158else
5159 echo "$as_me: program exited with status $ac_status" >&5
5160echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163( exit $ac_status )
5164ac_cv_header_stdc=no
5165fi
5166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5167fi
5168fi
5169fi
5170echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5171echo "${ECHO_T}$ac_cv_header_stdc" >&6
5172if test $ac_cv_header_stdc = yes; then
5173
5174cat >>confdefs.h <<\_ACEOF
5175#define STDC_HEADERS 1
5176_ACEOF
5177
5178fi
5179
5180# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5191 inttypes.h stdint.h unistd.h
5192do
5193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5194echo "$as_me:$LINENO: checking for $ac_header" >&5
5195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5196if eval "test \"\${$as_ac_Header+set}\" = set"; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h. */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h. */
5205$ac_includes_default
5206
5207#include <$ac_header>
5208_ACEOF
5209rm -f conftest.$ac_objext
5210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211 (eval $ac_compile) 2>conftest.er1
5212 ac_status=$?
5213 grep -v '^ *+' conftest.er1 >conftest.err
5214 rm -f conftest.er1
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } &&
5218 { ac_try='test -z "$ac_c_werror_flag"
5219 || test ! -s conftest.err'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 (eval $ac_try) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; } &&
5225 { ac_try='test -s conftest.$ac_objext'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5231 eval "$as_ac_Header=yes"
5232else
5233 echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236eval "$as_ac_Header=no"
5237fi
5238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5239fi
5240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5242if test `eval echo '${'$as_ac_Header'}'` = yes; then
5243 cat >>confdefs.h <<_ACEOF
5244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5245_ACEOF
5246
5247fi
5248
5249done
5250
5251
5252echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
5253echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
5254if test "${ac_cv_search_zlibVersion+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256else
5257 ac_func_search_save_LIBS=$LIBS
5258ac_cv_search_zlibVersion=no
5259cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h. */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h. */
5265
5266/* Override any gcc2 internal prototype to avoid an error. */
5267#ifdef __cplusplus
5268extern "C"
5269#endif
5270/* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5272char zlibVersion ();
5273int
5274main ()
5275{
5276zlibVersion ();
5277 ;
5278 return 0;
5279}
5280_ACEOF
5281rm -f conftest.$ac_objext conftest$ac_exeext
5282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5283 (eval $ac_link) 2>conftest.er1
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest$ac_exeext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_search_zlibVersion="none required"
5304else
5305 echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308fi
5309rm -f conftest.err conftest.$ac_objext \
5310 conftest$ac_exeext conftest.$ac_ext
5311if test "$ac_cv_search_zlibVersion" = no; then
5312 for ac_lib in z; do
5313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5314 cat >conftest.$ac_ext <<_ACEOF
5315/* confdefs.h. */
5316_ACEOF
5317cat confdefs.h >>conftest.$ac_ext
5318cat >>conftest.$ac_ext <<_ACEOF
5319/* end confdefs.h. */
5320
5321/* Override any gcc2 internal prototype to avoid an error. */
5322#ifdef __cplusplus
5323extern "C"
5324#endif
5325/* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5327char zlibVersion ();
5328int
5329main ()
5330{
5331zlibVersion ();
5332 ;
5333 return 0;
5334}
5335_ACEOF
5336rm -f conftest.$ac_objext conftest$ac_exeext
5337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -z "$ac_c_werror_flag"
5346 || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 (eval $ac_try) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_search_zlibVersion="-l$ac_lib"
5359break
5360else
5361 echo "$as_me: failed program was:" >&5
5362sed 's/^/| /' conftest.$ac_ext >&5
5363
5364fi
5365rm -f conftest.err conftest.$ac_objext \
5366 conftest$ac_exeext conftest.$ac_ext
5367 done
5368fi
5369LIBS=$ac_func_search_save_LIBS
5370fi
5371echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
5372echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
5373if test "$ac_cv_search_zlibVersion" != no; then
5374 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
5375
5376for ac_header in zlib.h
5377do
5378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5379if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo "$as_me:$LINENO: checking for $ac_header" >&5
5381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5382if eval "test \"\${$as_ac_Header+set}\" = set"; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384fi
5385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387else
5388 # Is the header compilable?
5389echo "$as_me:$LINENO: checking $ac_header usability" >&5
5390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5391cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397$ac_includes_default
5398#include <$ac_header>
5399_ACEOF
5400rm -f conftest.$ac_objext
5401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -z "$ac_c_werror_flag"
5410 || test ! -s conftest.err'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; } &&
5416 { ac_try='test -s conftest.$ac_objext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_header_compiler=yes
5423else
5424 echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427ac_header_compiler=no
5428fi
5429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5431echo "${ECHO_T}$ac_header_compiler" >&6
5432
5433# Is the header present?
5434echo "$as_me:$LINENO: checking $ac_header presence" >&5
5435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5436cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h. */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h. */
5442#include <$ac_header>
5443_ACEOF
5444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } >/dev/null; then
5452 if test -s conftest.err; then
5453 ac_cpp_err=$ac_c_preproc_warn_flag
5454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5455 else
5456 ac_cpp_err=
5457 fi
5458else
5459 ac_cpp_err=yes
5460fi
5461if test -z "$ac_cpp_err"; then
5462 ac_header_preproc=yes
5463else
5464 echo "$as_me: failed program was:" >&5
5465sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 ac_header_preproc=no
5468fi
5469rm -f conftest.err conftest.$ac_ext
5470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5471echo "${ECHO_T}$ac_header_preproc" >&6
5472
5473# So? What about this header?
5474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5475 yes:no: )
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5480 ac_header_preproc=yes
5481 ;;
5482 no:yes:* )
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5495 (
5496 cat <<\_ASBOX
5497## ------------------------------- ##
5498## Report this to the gold lists. ##
5499## ------------------------------- ##
5500_ASBOX
5501 ) |
5502 sed "s/^/$as_me: WARNING: /" >&2
5503 ;;
5504esac
5505echo "$as_me:$LINENO: checking for $ac_header" >&5
5506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5507if eval "test \"\${$as_ac_Header+set}\" = set"; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 eval "$as_ac_Header=\$ac_header_preproc"
5511fi
5512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5514
5515fi
5516if test `eval echo '${'$as_ac_Header'}'` = yes; then
5517 cat >>confdefs.h <<_ACEOF
5518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5519_ACEOF
5520
5521fi
5522
5523done
5524
5525fi
5526
5527
54dc6425
ILT
5528ac_ext=cc
5529ac_cpp='$CXXCPP $CPPFLAGS'
5530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5533
5534
d288e464 5535
54dc6425
ILT
5536ac_ext=cc
5537ac_cpp='$CXXCPP $CPPFLAGS'
5538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5541echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5542echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5543if test -z "$CXXCPP"; then
5544 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547 # Double quotes because CXXCPP needs to be expanded
5548 for CXXCPP in "$CXX -E" "/lib/cpp"
5549 do
5550 ac_preproc_ok=false
5551for ac_cxx_preproc_warn_flag in '' yes
5552do
5553 # Use a header file that comes with gcc, so configuring glibc
5554 # with a fresh cross-compiler works.
5555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5556 # <limits.h> exists even on freestanding compilers.
5557 # On the NeXT, cc -E runs the code through the compiler's parser,
5558 # not just through cpp. "Syntax error" is here to catch this case.
5559 cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */
5565#ifdef __STDC__
5566# include <limits.h>
5567#else
5568# include <assert.h>
5569#endif
5570 Syntax error
5571_ACEOF
5572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } >/dev/null; then
5580 if test -s conftest.err; then
5581 ac_cpp_err=$ac_cxx_preproc_warn_flag
5582 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5583 else
5584 ac_cpp_err=
5585 fi
5586else
5587 ac_cpp_err=yes
5588fi
5589if test -z "$ac_cpp_err"; then
5590 :
5591else
5592 echo "$as_me: failed program was:" >&5
5593sed 's/^/| /' conftest.$ac_ext >&5
5594
5595 # Broken: fails on valid input.
5596continue
5597fi
5598rm -f conftest.err conftest.$ac_ext
5599
5600 # OK, works on sane cases. Now check whether non-existent headers
5601 # can be detected and how.
5602 cat >conftest.$ac_ext <<_ACEOF
5603/* confdefs.h. */
5604_ACEOF
5605cat confdefs.h >>conftest.$ac_ext
5606cat >>conftest.$ac_ext <<_ACEOF
5607/* end confdefs.h. */
5608#include <ac_nonexistent.h>
5609_ACEOF
5610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } >/dev/null; then
5618 if test -s conftest.err; then
5619 ac_cpp_err=$ac_cxx_preproc_warn_flag
5620 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5621 else
5622 ac_cpp_err=
5623 fi
5624else
5625 ac_cpp_err=yes
5626fi
5627if test -z "$ac_cpp_err"; then
5628 # Broken: success on invalid input.
5629continue
5630else
5631 echo "$as_me: failed program was:" >&5
5632sed 's/^/| /' conftest.$ac_ext >&5
5633
5634 # Passes both tests.
5635ac_preproc_ok=:
5636break
5637fi
5638rm -f conftest.err conftest.$ac_ext
5639
5640done
5641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5642rm -f conftest.err conftest.$ac_ext
5643if $ac_preproc_ok; then
5644 break
5645fi
5646
5647 done
5648 ac_cv_prog_CXXCPP=$CXXCPP
5649
5650fi
5651 CXXCPP=$ac_cv_prog_CXXCPP
5652else
5653 ac_cv_prog_CXXCPP=$CXXCPP
5654fi
5655echo "$as_me:$LINENO: result: $CXXCPP" >&5
5656echo "${ECHO_T}$CXXCPP" >&6
5657ac_preproc_ok=false
5658for ac_cxx_preproc_warn_flag in '' yes
5659do
5660 # Use a header file that comes with gcc, so configuring glibc
5661 # with a fresh cross-compiler works.
5662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5663 # <limits.h> exists even on freestanding compilers.
5664 # On the NeXT, cc -E runs the code through the compiler's parser,
5665 # not just through cpp. "Syntax error" is here to catch this case.
5666 cat >conftest.$ac_ext <<_ACEOF
5667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h. */
5672#ifdef __STDC__
5673# include <limits.h>
5674#else
5675# include <assert.h>
5676#endif
5677 Syntax error
5678_ACEOF
5679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5681 ac_status=$?
5682 grep -v '^ *+' conftest.er1 >conftest.err
5683 rm -f conftest.er1
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } >/dev/null; then
5687 if test -s conftest.err; then
5688 ac_cpp_err=$ac_cxx_preproc_warn_flag
5689 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5690 else
5691 ac_cpp_err=
5692 fi
5693else
5694 ac_cpp_err=yes
5695fi
5696if test -z "$ac_cpp_err"; then
5697 :
5698else
5699 echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702 # Broken: fails on valid input.
5703continue
5704fi
5705rm -f conftest.err conftest.$ac_ext
5706
5707 # OK, works on sane cases. Now check whether non-existent headers
5708 # can be detected and how.
5709 cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
5715#include <ac_nonexistent.h>
5716_ACEOF
5717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null; then
5725 if test -s conftest.err; then
5726 ac_cpp_err=$ac_cxx_preproc_warn_flag
5727 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5728 else
5729 ac_cpp_err=
5730 fi
5731else
5732 ac_cpp_err=yes
5733fi
5734if test -z "$ac_cpp_err"; then
5735 # Broken: success on invalid input.
5736continue
5737else
5738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 # Passes both tests.
5742ac_preproc_ok=:
5743break
5744fi
5745rm -f conftest.err conftest.$ac_ext
5746
5747done
5748# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5749rm -f conftest.err conftest.$ac_ext
5750if $ac_preproc_ok; then
5751 :
5752else
5753 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5754See \`config.log' for more details." >&5
5755echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5756See \`config.log' for more details." >&2;}
5757 { (exit 1); exit 1; }; }
5758fi
5759
5760ac_ext=cc
5761ac_cpp='$CXXCPP $CPPFLAGS'
5762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5765
5766
54dc6425
ILT
5767
5768
5769for ac_header in tr1/unordered_set tr1/unordered_map
5770do
5771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5772if eval "test \"\${$as_ac_Header+set}\" = set"; then
5773 echo "$as_me:$LINENO: checking for $ac_header" >&5
5774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5775if eval "test \"\${$as_ac_Header+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777fi
5778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5780else
5781 # Is the header compilable?
5782echo "$as_me:$LINENO: checking $ac_header usability" >&5
5783echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5784cat >conftest.$ac_ext <<_ACEOF
5785/* confdefs.h. */
5786_ACEOF
5787cat confdefs.h >>conftest.$ac_ext
5788cat >>conftest.$ac_ext <<_ACEOF
5789/* end confdefs.h. */
5790$ac_includes_default
5791#include <$ac_header>
5792_ACEOF
5793rm -f conftest.$ac_objext
5794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_cxx_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_header_compiler=yes
5816else
5817 echo "$as_me: failed program was:" >&5
5818sed 's/^/| /' conftest.$ac_ext >&5
5819
5820ac_header_compiler=no
5821fi
5822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5823echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5824echo "${ECHO_T}$ac_header_compiler" >&6
5825
5826# Is the header present?
5827echo "$as_me:$LINENO: checking $ac_header presence" >&5
5828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5829cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h. */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h. */
5835#include <$ac_header>
5836_ACEOF
5837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } >/dev/null; then
5845 if test -s conftest.err; then
5846 ac_cpp_err=$ac_cxx_preproc_warn_flag
5847 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5848 else
5849 ac_cpp_err=
5850 fi
5851else
5852 ac_cpp_err=yes
5853fi
5854if test -z "$ac_cpp_err"; then
5855 ac_header_preproc=yes
5856else
5857 echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 ac_header_preproc=no
5861fi
5862rm -f conftest.err conftest.$ac_ext
5863echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5864echo "${ECHO_T}$ac_header_preproc" >&6
5865
5866# So? What about this header?
5867case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5868 yes:no: )
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5870echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5872echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5873 ac_header_preproc=yes
5874 ;;
5875 no:yes:* )
5876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5877echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5879echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5881echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5883echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5885echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5887echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5888 (
5889 cat <<\_ASBOX
8486ee48
ILT
5890## ------------------------------- ##
5891## Report this to the gold lists. ##
5892## ------------------------------- ##
54dc6425
ILT
5893_ASBOX
5894 ) |
5895 sed "s/^/$as_me: WARNING: /" >&2
5896 ;;
5897esac
5898echo "$as_me:$LINENO: checking for $ac_header" >&5
5899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5900if eval "test \"\${$as_ac_Header+set}\" = set"; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903 eval "$as_ac_Header=\$ac_header_preproc"
5904fi
5905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5907
5908fi
5909if test `eval echo '${'$as_ac_Header'}'` = yes; then
5910 cat >>confdefs.h <<_ACEOF
5911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5912_ACEOF
5913
5914fi
5915
5916done
5917
5918
5919
5920for ac_header in ext/hash_map ext/hash_set
5921do
5922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5923if eval "test \"\${$as_ac_Header+set}\" = set"; then
5924 echo "$as_me:$LINENO: checking for $ac_header" >&5
5925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5926if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928fi
5929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5931else
5932 # Is the header compilable?
5933echo "$as_me:$LINENO: checking $ac_header usability" >&5
5934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5935cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
5941$ac_includes_default
5942#include <$ac_header>
5943_ACEOF
5944rm -f conftest.$ac_objext
5945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946 (eval $ac_compile) 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -z "$ac_cxx_werror_flag"
5954 || test ! -s conftest.err'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest.$ac_objext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_header_compiler=yes
5967else
5968 echo "$as_me: failed program was:" >&5
5969sed 's/^/| /' conftest.$ac_ext >&5
5970
5971ac_header_compiler=no
5972fi
5973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5975echo "${ECHO_T}$ac_header_compiler" >&6
5976
5977# Is the header present?
5978echo "$as_me:$LINENO: checking $ac_header presence" >&5
5979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5980cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h. */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h. */
5986#include <$ac_header>
5987_ACEOF
5988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } >/dev/null; then
5996 if test -s conftest.err; then
5997 ac_cpp_err=$ac_cxx_preproc_warn_flag
5998 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5999 else
6000 ac_cpp_err=
6001 fi
6002else
6003 ac_cpp_err=yes
6004fi
6005if test -z "$ac_cpp_err"; then
6006 ac_header_preproc=yes
6007else
6008 echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ac_header_preproc=no
6012fi
6013rm -f conftest.err conftest.$ac_ext
6014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6015echo "${ECHO_T}$ac_header_preproc" >&6
6016
6017# So? What about this header?
6018case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6019 yes:no: )
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6024 ac_header_preproc=yes
6025 ;;
6026 no:yes:* )
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6039 (
6040 cat <<\_ASBOX
8486ee48
ILT
6041## ------------------------------- ##
6042## Report this to the gold lists. ##
6043## ------------------------------- ##
54dc6425
ILT
6044_ASBOX
6045 ) |
6046 sed "s/^/$as_me: WARNING: /" >&2
6047 ;;
6048esac
6049echo "$as_me:$LINENO: checking for $ac_header" >&5
6050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6051if eval "test \"\${$as_ac_Header+set}\" = set"; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054 eval "$as_ac_Header=\$ac_header_preproc"
6055fi
6056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6058
6059fi
6060if test `eval echo '${'$as_ac_Header'}'` = yes; then
6061 cat >>confdefs.h <<_ACEOF
6062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063_ACEOF
6064
6065fi
6066
6067done
6068
d288e464 6069
e44fcf3b
ILT
6070for ac_func in mallinfo
6071do
6072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6073echo "$as_me:$LINENO: checking for $ac_func" >&5
6074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6075if eval "test \"\${$as_ac_var+set}\" = set"; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
6084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6086#define $ac_func innocuous_$ac_func
6087
6088/* System header to define __stub macros and hopefully few prototypes,
6089 which can conflict with char $ac_func (); below.
6090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091 <limits.h> exists even on freestanding compilers. */
6092
6093#ifdef __STDC__
6094# include <limits.h>
6095#else
6096# include <assert.h>
6097#endif
6098
6099#undef $ac_func
6100
6101/* Override any gcc2 internal prototype to avoid an error. */
6102#ifdef __cplusplus
6103extern "C"
6104{
6105#endif
6106/* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6108char $ac_func ();
6109/* The GNU C library defines this for functions which it implements
6110 to always fail with ENOSYS. Some functions are actually named
6111 something starting with __ and the normal name is an alias. */
6112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6113choke me
6114#else
6115char (*f) () = $ac_func;
6116#endif
6117#ifdef __cplusplus
6118}
6119#endif
6120
6121int
6122main ()
6123{
6124return f != $ac_func;
6125 ;
6126 return 0;
6127}
6128_ACEOF
6129rm -f conftest.$ac_objext conftest$ac_exeext
6130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_cxx_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest$ac_exeext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 eval "$as_ac_var=yes"
6152else
6153 echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156eval "$as_ac_var=no"
6157fi
6158rm -f conftest.err conftest.$ac_objext \
6159 conftest$ac_exeext conftest.$ac_ext
6160fi
6161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6162echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6163if test `eval echo '${'$as_ac_var'}'` = yes; then
6164 cat >>confdefs.h <<_ACEOF
6165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6166_ACEOF
6167
6168fi
6169done
6170
6171
097ec620
ILT
6172echo "$as_me:$LINENO: checking template member calls" >&5
6173echo $ECHO_N "checking template member calls... $ECHO_C" >&6
6174if test "${gold_cv_c_membertemplates+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177 cat >conftest.$ac_ext <<_ACEOF
d288e464
ILT
6178
6179class c { public: template<int i> void fn(); };
6180template<int i> void foo(c cv) { cv.fn<i>(); }
6181template void foo<1>(c cv);
6182_ACEOF
6183rm -f conftest.$ac_objext
6184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_cxx_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
097ec620 6205 gold_cv_c_membertemplates=yes
d288e464
ILT
6206else
6207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
097ec620 6210gold_cv_c_membertemplates=no
d288e464
ILT
6211fi
6212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
097ec620
ILT
6213fi
6214echo "$as_me:$LINENO: result: $gold_cv_c_membertemplates" >&5
6215echo "${ECHO_T}$gold_cv_c_membertemplates" >&6
6216
6217if test "$gold_cv_c_membertemplates" = "yes"; then
6218
6219cat >>confdefs.h <<\_ACEOF
6220#define HAVE_MEMBER_TEMPLATE_SPECIFICATIONS
6221_ACEOF
6222
6223fi
d288e464 6224
54dc6425
ILT
6225ac_ext=c
6226ac_cpp='$CPP $CPPFLAGS'
6227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229ac_compiler_gnu=$ac_cv_c_compiler_gnu
6230
6231
bae7f79e
ILT
6232echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6233echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6234 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6235if test "${enable_maintainer_mode+set}" = set; then
6236 enableval="$enable_maintainer_mode"
6237 USE_MAINTAINER_MODE=$enableval
6238else
6239 USE_MAINTAINER_MODE=no
6240fi;
6241 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6242echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6243
6244
6245if test $USE_MAINTAINER_MODE = yes; then
6246 MAINTAINER_MODE_TRUE=
6247 MAINTAINER_MODE_FALSE='#'
6248else
6249 MAINTAINER_MODE_TRUE='#'
6250 MAINTAINER_MODE_FALSE=
6251fi
6252
6253 MAINT=$MAINTAINER_MODE_TRUE
6254
6255
6256
5a6f7e2d 6257 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
bae7f79e
ILT
6258cat >confcache <<\_ACEOF
6259# This file is a shell script that caches the results of configure
6260# tests run on this system so they can be shared between configure
6261# scripts and configure runs, see configure's option --config-cache.
6262# It is not useful on other systems. If it contains results you don't
6263# want to keep, you may remove or edit it.
6264#
6265# config.status only pays attention to the cache file if you give it
6266# the --recheck option to rerun configure.
6267#
6268# `ac_cv_env_foo' variables (set or unset) will be overridden when
6269# loading this file, other *unset* `ac_cv_foo' will be assigned the
6270# following values.
6271
6272_ACEOF
6273
6274# The following way of writing the cache mishandles newlines in values,
6275# but we know of no workaround that is simple, portable, and efficient.
6276# So, don't put newlines in cache variables' values.
6277# Ultrix sh set writes to stderr and can't be redirected directly,
6278# and sets the high bit in the cache file unless we assign to the vars.
6279{
6280 (set) 2>&1 |
6281 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6282 *ac_space=\ *)
6283 # `set' does not quote correctly, so add quotes (double-quote
6284 # substitution turns \\\\ into \\, and sed turns \\ into \).
6285 sed -n \
6286 "s/'/'\\\\''/g;
6287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6288 ;;
6289 *)
6290 # `set' quotes correctly as required by POSIX, so do not add quotes.
6291 sed -n \
6292 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6293 ;;
6294 esac;
6295} |
6296 sed '
6297 t clear
6298 : clear
6299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6300 t end
6301 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6302 : end' >>confcache
6303if diff $cache_file confcache >/dev/null 2>&1; then :; else
6304 if test -w $cache_file; then
6305 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6306 cat confcache >$cache_file
6307 else
6308 echo "not updating unwritable cache $cache_file"
6309 fi
6310fi
6311rm -f confcache
6312
6313test "x$prefix" = xNONE && prefix=$ac_default_prefix
6314# Let make expand exec_prefix.
6315test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6316
6317# VPATH may cause trouble with some makes, so we remove $(srcdir),
6318# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6319# trailing colons and then remove the whole line if VPATH becomes empty
6320# (actually we leave an empty line to preserve line numbers).
6321if test "x$srcdir" = x.; then
6322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6323s/:*\$(srcdir):*/:/;
6324s/:*\${srcdir}:*/:/;
6325s/:*@srcdir@:*/:/;
6326s/^\([^=]*=[ ]*\):*/\1/;
6327s/:*$//;
6328s/^[^=]*=[ ]*$//;
6329}'
6330fi
6331
6332DEFS=-DHAVE_CONFIG_H
6333
6334ac_libobjs=
6335ac_ltlibobjs=
6336for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6337 # 1. Remove the extension, and $U if already installed.
6338 ac_i=`echo "$ac_i" |
6339 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6340 # 2. Add them.
6341 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6342 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6343done
6344LIBOBJS=$ac_libobjs
6345
6346LTLIBOBJS=$ac_ltlibobjs
6347
6348
fe9a4c12
ILT
6349if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
6350 { { echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
6351Usually this means the macro was only invoked conditionally." >&5
6352echo "$as_me: error: conditional \"THREADS\" was never defined.
6353Usually this means the macro was only invoked conditionally." >&2;}
6354 { (exit 1); exit 1; }; }
6355fi
bae7f79e
ILT
6356if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6357 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6358Usually this means the macro was only invoked conditionally." >&5
6359echo "$as_me: error: conditional \"AMDEP\" was never defined.
6360Usually this means the macro was only invoked conditionally." >&2;}
6361 { (exit 1); exit 1; }; }
6362fi
6363if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6364 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6365Usually this means the macro was only invoked conditionally." >&5
6366echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6367Usually this means the macro was only invoked conditionally." >&2;}
6368 { (exit 1); exit 1; }; }
6369fi
6370if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6371 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6372Usually this means the macro was only invoked conditionally." >&5
6373echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6374Usually this means the macro was only invoked conditionally." >&2;}
6375 { (exit 1); exit 1; }; }
6376fi
537b5f51
ILT
6377if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
6378 { { echo "$as_me:$LINENO: error: conditional \"NATIVE_LINKER\" was never defined.
6379Usually this means the macro was only invoked conditionally." >&5
6380echo "$as_me: error: conditional \"NATIVE_LINKER\" was never defined.
6381Usually this means the macro was only invoked conditionally." >&2;}
6382 { (exit 1); exit 1; }; }
6383fi
6384if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
6385 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
6386Usually this means the macro was only invoked conditionally." >&5
6387echo "$as_me: error: conditional \"GCC\" was never defined.
6388Usually this means the macro was only invoked conditionally." >&2;}
6389 { (exit 1); exit 1; }; }
6390fi
63402fe4
ILT
6391if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
6392 { { echo "$as_me:$LINENO: error: conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
6393Usually this means the macro was only invoked conditionally." >&5
6394echo "$as_me: error: conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
6395Usually this means the macro was only invoked conditionally." >&2;}
6396 { (exit 1); exit 1; }; }
6397fi
6eee141f
ILT
6398if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
6399 { { echo "$as_me:$LINENO: error: conditional \"TLS\" was never defined.
6400Usually this means the macro was only invoked conditionally." >&5
6401echo "$as_me: error: conditional \"TLS\" was never defined.
6402Usually this means the macro was only invoked conditionally." >&2;}
6403 { (exit 1); exit 1; }; }
6404fi
097ec620
ILT
6405if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
6406 { { echo "$as_me:$LINENO: error: conditional \"STATIC_TLS\" was never defined.
6407Usually this means the macro was only invoked conditionally." >&5
6408echo "$as_me: error: conditional \"STATIC_TLS\" was never defined.
6409Usually this means the macro was only invoked conditionally." >&2;}
6410 { (exit 1); exit 1; }; }
6411fi
bae7f79e
ILT
6412if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6413 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6414Usually this means the macro was only invoked conditionally." >&5
6415echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6416Usually this means the macro was only invoked conditionally." >&2;}
6417 { (exit 1); exit 1; }; }
6418fi
6419
6420: ${CONFIG_STATUS=./config.status}
6421ac_clean_files_save=$ac_clean_files
6422ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6423{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6424echo "$as_me: creating $CONFIG_STATUS" >&6;}
6425cat >$CONFIG_STATUS <<_ACEOF
6426#! $SHELL
6427# Generated by $as_me.
6428# Run this file to recreate the current configuration.
6429# Compiler output produced by configure, useful for debugging
6430# configure, is in config.log if it exists.
6431
6432debug=false
6433ac_cs_recheck=false
6434ac_cs_silent=false
6435SHELL=\${CONFIG_SHELL-$SHELL}
6436_ACEOF
6437
6438cat >>$CONFIG_STATUS <<\_ACEOF
6439## --------------------- ##
6440## M4sh Initialization. ##
6441## --------------------- ##
6442
6443# Be Bourne compatible
6444if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6445 emulate sh
6446 NULLCMD=:
6447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6448 # is contrary to our usage. Disable this feature.
6449 alias -g '${1+"$@"}'='"$@"'
6450elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6451 set -o posix
6452fi
6453DUALCASE=1; export DUALCASE # for MKS sh
6454
6455# Support unset when possible.
6456if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6457 as_unset=unset
6458else
6459 as_unset=false
6460fi
6461
6462
6463# Work around bugs in pre-3.0 UWIN ksh.
6464$as_unset ENV MAIL MAILPATH
6465PS1='$ '
6466PS2='> '
6467PS4='+ '
6468
6469# NLS nuisances.
6470for as_var in \
6471 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6472 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6473 LC_TELEPHONE LC_TIME
6474do
6475 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6476 eval $as_var=C; export $as_var
6477 else
6478 $as_unset $as_var
6479 fi
6480done
6481
6482# Required to use basename.
6483if expr a : '\(a\)' >/dev/null 2>&1; then
6484 as_expr=expr
6485else
6486 as_expr=false
6487fi
6488
6489if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6490 as_basename=basename
6491else
6492 as_basename=false
6493fi
6494
6495
6496# Name of the executable.
6497as_me=`$as_basename "$0" ||
6498$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6499 X"$0" : 'X\(//\)$' \| \
6500 X"$0" : 'X\(/\)$' \| \
6501 . : '\(.\)' 2>/dev/null ||
6502echo X/"$0" |
6503 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6504 /^X\/\(\/\/\)$/{ s//\1/; q; }
6505 /^X\/\(\/\).*/{ s//\1/; q; }
6506 s/.*/./; q'`
6507
6508
6509# PATH needs CR, and LINENO needs CR and PATH.
6510# Avoid depending upon Character Ranges.
6511as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6512as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6513as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6514as_cr_digits='0123456789'
6515as_cr_alnum=$as_cr_Letters$as_cr_digits
6516
6517# The user is always right.
6518if test "${PATH_SEPARATOR+set}" != set; then
6519 echo "#! /bin/sh" >conf$$.sh
6520 echo "exit 0" >>conf$$.sh
6521 chmod +x conf$$.sh
6522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6523 PATH_SEPARATOR=';'
6524 else
6525 PATH_SEPARATOR=:
6526 fi
6527 rm -f conf$$.sh
6528fi
6529
6530
6531 as_lineno_1=$LINENO
6532 as_lineno_2=$LINENO
6533 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6534 test "x$as_lineno_1" != "x$as_lineno_2" &&
6535 test "x$as_lineno_3" = "x$as_lineno_2" || {
6536 # Find who we are. Look in the path if we contain no path at all
6537 # relative or not.
6538 case $0 in
6539 *[\\/]* ) as_myself=$0 ;;
6540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6546done
6547
6548 ;;
6549 esac
6550 # We did not find ourselves, most probably we were run as `sh COMMAND'
6551 # in which case we are not to be found in the path.
6552 if test "x$as_myself" = x; then
6553 as_myself=$0
6554 fi
6555 if test ! -f "$as_myself"; then
6556 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6557echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6558 { (exit 1); exit 1; }; }
6559 fi
6560 case $CONFIG_SHELL in
6561 '')
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6564do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for as_base in sh bash ksh sh5; do
6568 case $as_dir in
6569 /*)
6570 if ("$as_dir/$as_base" -c '
6571 as_lineno_1=$LINENO
6572 as_lineno_2=$LINENO
6573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6574 test "x$as_lineno_1" != "x$as_lineno_2" &&
6575 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6576 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6577 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6578 CONFIG_SHELL=$as_dir/$as_base
6579 export CONFIG_SHELL
6580 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6581 fi;;
6582 esac
6583 done
6584done
6585;;
6586 esac
6587
6588 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6589 # uniformly replaced by the line number. The first 'sed' inserts a
6590 # line-number line before each line; the second 'sed' does the real
6591 # work. The second script uses 'N' to pair each line-number line
6592 # with the numbered line, and appends trailing '-' during
6593 # substitution so that $LINENO is not a special case at line end.
6594 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6595 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6596 sed '=' <$as_myself |
6597 sed '
6598 N
6599 s,$,-,
6600 : loop
6601 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6602 t loop
6603 s,-$,,
6604 s,^['$as_cr_digits']*\n,,
6605 ' >$as_me.lineno &&
6606 chmod +x $as_me.lineno ||
6607 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6608echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6609 { (exit 1); exit 1; }; }
6610
6611 # Don't try to exec as it changes $[0], causing all sort of problems
6612 # (the dirname of $[0] is not the place where we might find the
6613 # original and so on. Autoconf is especially sensible to this).
6614 . ./$as_me.lineno
6615 # Exit status is that of the last command.
6616 exit
6617}
6618
6619
6620case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6621 *c*,-n*) ECHO_N= ECHO_C='
6622' ECHO_T=' ' ;;
6623 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6624 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6625esac
6626
6627if expr a : '\(a\)' >/dev/null 2>&1; then
6628 as_expr=expr
6629else
6630 as_expr=false
6631fi
6632
6633rm -f conf$$ conf$$.exe conf$$.file
6634echo >conf$$.file
6635if ln -s conf$$.file conf$$ 2>/dev/null; then
6636 # We could just check for DJGPP; but this test a) works b) is more generic
6637 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6638 if test -f conf$$.exe; then
6639 # Don't use ln at all; we don't have any links
6640 as_ln_s='cp -p'
6641 else
6642 as_ln_s='ln -s'
6643 fi
6644elif ln conf$$.file conf$$ 2>/dev/null; then
6645 as_ln_s=ln
6646else
6647 as_ln_s='cp -p'
6648fi
6649rm -f conf$$ conf$$.exe conf$$.file
6650
6651if mkdir -p . 2>/dev/null; then
6652 as_mkdir_p=:
6653else
6654 test -d ./-p && rmdir ./-p
6655 as_mkdir_p=false
6656fi
6657
6658as_executable_p="test -f"
6659
6660# Sed expression to map a string onto a valid CPP name.
6661as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6662
6663# Sed expression to map a string onto a valid variable name.
6664as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6665
6666
6667# IFS
6668# We need space, tab and new line, in precisely that order.
6669as_nl='
6670'
6671IFS=" $as_nl"
6672
6673# CDPATH.
6674$as_unset CDPATH
6675
6676exec 6>&1
6677
6678# Open the log real soon, to keep \$[0] and so on meaningful, and to
6679# report actual input values of CONFIG_FILES etc. instead of their
6680# values after options handling. Logging --version etc. is OK.
6681exec 5>>config.log
6682{
6683 echo
6684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6685## Running $as_me. ##
6686_ASBOX
6687} >&5
6688cat >&5 <<_CSEOF
6689
8486ee48 6690This file was extended by gold $as_me 0.1, which was
bae7f79e
ILT
6691generated by GNU Autoconf 2.59. Invocation command line was
6692
6693 CONFIG_FILES = $CONFIG_FILES
6694 CONFIG_HEADERS = $CONFIG_HEADERS
6695 CONFIG_LINKS = $CONFIG_LINKS
6696 CONFIG_COMMANDS = $CONFIG_COMMANDS
6697 $ $0 $@
6698
6699_CSEOF
6700echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6701echo >&5
6702_ACEOF
6703
6704# Files that config.status was made for.
6705if test -n "$ac_config_files"; then
6706 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6707fi
6708
6709if test -n "$ac_config_headers"; then
6710 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6711fi
6712
6713if test -n "$ac_config_links"; then
6714 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6715fi
6716
6717if test -n "$ac_config_commands"; then
6718 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6719fi
6720
6721cat >>$CONFIG_STATUS <<\_ACEOF
6722
6723ac_cs_usage="\
6724\`$as_me' instantiates files from templates according to the
6725current configuration.
6726
6727Usage: $0 [OPTIONS] [FILE]...
6728
6729 -h, --help print this help, then exit
6730 -V, --version print version number, then exit
6731 -q, --quiet do not print progress messages
6732 -d, --debug don't remove temporary files
6733 --recheck update $as_me by reconfiguring in the same conditions
6734 --file=FILE[:TEMPLATE]
6735 instantiate the configuration file FILE
6736 --header=FILE[:TEMPLATE]
6737 instantiate the configuration header FILE
6738
6739Configuration files:
6740$config_files
6741
6742Configuration headers:
6743$config_headers
6744
6745Configuration commands:
6746$config_commands
6747
6748Report bugs to <bug-autoconf@gnu.org>."
6749_ACEOF
6750
6751cat >>$CONFIG_STATUS <<_ACEOF
6752ac_cs_version="\\
8486ee48 6753gold config.status 0.1
bae7f79e
ILT
6754configured by $0, generated by GNU Autoconf 2.59,
6755 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6756
6757Copyright (C) 2003 Free Software Foundation, Inc.
6758This config.status script is free software; the Free Software Foundation
6759gives unlimited permission to copy, distribute and modify it."
6760srcdir=$srcdir
6761INSTALL="$INSTALL"
6762_ACEOF
6763
6764cat >>$CONFIG_STATUS <<\_ACEOF
6765# If no file are specified by the user, then we need to provide default
6766# value. By we need to know if files were specified by the user.
6767ac_need_defaults=:
6768while test $# != 0
6769do
6770 case $1 in
6771 --*=*)
6772 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6773 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6774 ac_shift=:
6775 ;;
6776 -*)
6777 ac_option=$1
6778 ac_optarg=$2
6779 ac_shift=shift
6780 ;;
6781 *) # This is not an option, so the user has probably given explicit
6782 # arguments.
6783 ac_option=$1
6784 ac_need_defaults=false;;
6785 esac
6786
6787 case $ac_option in
6788 # Handling of the options.
6789_ACEOF
6790cat >>$CONFIG_STATUS <<\_ACEOF
6791 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6792 ac_cs_recheck=: ;;
6793 --version | --vers* | -V )
6794 echo "$ac_cs_version"; exit 0 ;;
6795 --he | --h)
6796 # Conflict between --help and --header
6797 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6798Try \`$0 --help' for more information." >&5
6799echo "$as_me: error: ambiguous option: $1
6800Try \`$0 --help' for more information." >&2;}
6801 { (exit 1); exit 1; }; };;
6802 --help | --hel | -h )
6803 echo "$ac_cs_usage"; exit 0 ;;
6804 --debug | --d* | -d )
6805 debug=: ;;
6806 --file | --fil | --fi | --f )
6807 $ac_shift
6808 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6809 ac_need_defaults=false;;
6810 --header | --heade | --head | --hea )
6811 $ac_shift
6812 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6813 ac_need_defaults=false;;
6814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6815 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6816 ac_cs_silent=: ;;
6817
6818 # This is an error.
6819 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6820Try \`$0 --help' for more information." >&5
6821echo "$as_me: error: unrecognized option: $1
6822Try \`$0 --help' for more information." >&2;}
6823 { (exit 1); exit 1; }; } ;;
6824
6825 *) ac_config_targets="$ac_config_targets $1" ;;
6826
6827 esac
6828 shift
6829done
6830
6831ac_configure_extra_args=
6832
6833if $ac_cs_silent; then
6834 exec 6>/dev/null
6835 ac_configure_extra_args="$ac_configure_extra_args --silent"
6836fi
6837
6838_ACEOF
6839cat >>$CONFIG_STATUS <<_ACEOF
6840if \$ac_cs_recheck; then
6841 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6842 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6843fi
6844
6845_ACEOF
6846
6847cat >>$CONFIG_STATUS <<_ACEOF
6848#
6849# INIT-COMMANDS section.
6850#
6851
6852AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6853# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6854 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6855 # from automake.
6856 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
6857 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6858 LINGUAS="${LINGUAS-%UNSET%}"
6859
6860
6861_ACEOF
6862
6863
6864
6865cat >>$CONFIG_STATUS <<\_ACEOF
6866for ac_config_target in $ac_config_targets
6867do
6868 case "$ac_config_target" in
6869 # Handling of arguments.
6870 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5a6f7e2d 6871 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
bae7f79e
ILT
6872 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
6873 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6874 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6875 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6876 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6877echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6878 { (exit 1); exit 1; }; };;
6879 esac
6880done
6881
6882# If the user did not use the arguments to specify the items to instantiate,
6883# then the envvar interface is used. Set only those that are not.
6884# We use the long form for the default assignment because of an extremely
6885# bizarre bug on SunOS 4.1.3.
6886if $ac_need_defaults; then
6887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6890fi
6891
6892# Have a temporary directory for convenience. Make it in the build tree
6893# simply because there is no reason to put it here, and in addition,
6894# creating and moving files from /tmp can sometimes cause problems.
6895# Create a temporary directory, and hook for its removal unless debugging.
6896$debug ||
6897{
6898 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6899 trap '{ (exit 1); exit 1; }' 1 2 13 15
6900}
6901
6902# Create a (secure) tmp directory for tmp files.
6903
6904{
6905 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6906 test -n "$tmp" && test -d "$tmp"
6907} ||
6908{
6909 tmp=./confstat$$-$RANDOM
6910 (umask 077 && mkdir $tmp)
6911} ||
6912{
6913 echo "$me: cannot create a temporary directory in ." >&2
6914 { (exit 1); exit 1; }
6915}
6916
6917_ACEOF
6918
6919cat >>$CONFIG_STATUS <<_ACEOF
6920
6921#
6922# CONFIG_FILES section.
6923#
6924
6925# No need to generate the scripts if there are no CONFIG_FILES.
6926# This happens for instance when ./config.status config.h
6927if test -n "\$CONFIG_FILES"; then
6928 # Protect against being on the right side of a sed subst in config.status.
6929 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6930 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6931s,@SHELL@,$SHELL,;t t
6932s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6933s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6934s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6935s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6936s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6937s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6938s,@exec_prefix@,$exec_prefix,;t t
6939s,@prefix@,$prefix,;t t
6940s,@program_transform_name@,$program_transform_name,;t t
6941s,@bindir@,$bindir,;t t
6942s,@sbindir@,$sbindir,;t t
6943s,@libexecdir@,$libexecdir,;t t
6944s,@datadir@,$datadir,;t t
6945s,@sysconfdir@,$sysconfdir,;t t
6946s,@sharedstatedir@,$sharedstatedir,;t t
6947s,@localstatedir@,$localstatedir,;t t
6948s,@libdir@,$libdir,;t t
6949s,@includedir@,$includedir,;t t
6950s,@oldincludedir@,$oldincludedir,;t t
6951s,@infodir@,$infodir,;t t
6952s,@mandir@,$mandir,;t t
6953s,@build_alias@,$build_alias,;t t
6954s,@host_alias@,$host_alias,;t t
6955s,@target_alias@,$target_alias,;t t
6956s,@DEFS@,$DEFS,;t t
6957s,@ECHO_C@,$ECHO_C,;t t
6958s,@ECHO_N@,$ECHO_N,;t t
6959s,@ECHO_T@,$ECHO_T,;t t
6960s,@LIBS@,$LIBS,;t t
6961s,@build@,$build,;t t
6962s,@build_cpu@,$build_cpu,;t t
6963s,@build_vendor@,$build_vendor,;t t
6964s,@build_os@,$build_os,;t t
6965s,@host@,$host,;t t
6966s,@host_cpu@,$host_cpu,;t t
6967s,@host_vendor@,$host_vendor,;t t
6968s,@host_os@,$host_os,;t t
6969s,@target@,$target,;t t
6970s,@target_cpu@,$target_cpu,;t t
6971s,@target_vendor@,$target_vendor,;t t
6972s,@target_os@,$target_os,;t t
6973s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6974s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6975s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6976s,@CYGPATH_W@,$CYGPATH_W,;t t
6977s,@PACKAGE@,$PACKAGE,;t t
6978s,@VERSION@,$VERSION,;t t
6979s,@ACLOCAL@,$ACLOCAL,;t t
6980s,@AUTOCONF@,$AUTOCONF,;t t
6981s,@AUTOMAKE@,$AUTOMAKE,;t t
6982s,@AUTOHEADER@,$AUTOHEADER,;t t
6983s,@MAKEINFO@,$MAKEINFO,;t t
6984s,@install_sh@,$install_sh,;t t
6985s,@STRIP@,$STRIP,;t t
6986s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6987s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6988s,@mkdir_p@,$mkdir_p,;t t
6989s,@AWK@,$AWK,;t t
6990s,@SET_MAKE@,$SET_MAKE,;t t
6991s,@am__leading_dot@,$am__leading_dot,;t t
6992s,@AMTAR@,$AMTAR,;t t
6993s,@am__tar@,$am__tar,;t t
6994s,@am__untar@,$am__untar,;t t
fe9a4c12
ILT
6995s,@THREADS_TRUE@,$THREADS_TRUE,;t t
6996s,@THREADS_FALSE@,$THREADS_FALSE,;t t
6df6da4a 6997s,@TARGETOBJS@,$TARGETOBJS,;t t
bae7f79e
ILT
6998s,@CC@,$CC,;t t
6999s,@CFLAGS@,$CFLAGS,;t t
7000s,@LDFLAGS@,$LDFLAGS,;t t
7001s,@CPPFLAGS@,$CPPFLAGS,;t t
7002s,@ac_ct_CC@,$ac_ct_CC,;t t
7003s,@EXEEXT@,$EXEEXT,;t t
7004s,@OBJEXT@,$OBJEXT,;t t
7005s,@DEPDIR@,$DEPDIR,;t t
7006s,@am__include@,$am__include,;t t
7007s,@am__quote@,$am__quote,;t t
7008s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7009s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7010s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7011s,@CCDEPMODE@,$CCDEPMODE,;t t
7012s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7013s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7014s,@CXX@,$CXX,;t t
7015s,@CXXFLAGS@,$CXXFLAGS,;t t
7016s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7017s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7018s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
7019s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
dbe717ef 7020s,@YACC@,$YACC,;t t
5a6f7e2d
ILT
7021s,@RANLIB@,$RANLIB,;t t
7022s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
537b5f51 7023s,@LN_S@,$LN_S,;t t
bae7f79e
ILT
7024s,@USE_NLS@,$USE_NLS,;t t
7025s,@LIBINTL@,$LIBINTL,;t t
7026s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7027s,@INCINTL@,$INCINTL,;t t
7028s,@XGETTEXT@,$XGETTEXT,;t t
7029s,@GMSGFMT@,$GMSGFMT,;t t
7030s,@POSUB@,$POSUB,;t t
7031s,@CATALOGS@,$CATALOGS,;t t
7032s,@DATADIRNAME@,$DATADIRNAME,;t t
7033s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7034s,@GENCAT@,$GENCAT,;t t
7035s,@CATOBJEXT@,$CATOBJEXT,;t t
7036s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7037s,@MSGFMT@,$MSGFMT,;t t
7038s,@MSGMERGE@,$MSGMERGE,;t t
537b5f51
ILT
7039s,@NATIVE_LINKER_TRUE@,$NATIVE_LINKER_TRUE,;t t
7040s,@NATIVE_LINKER_FALSE@,$NATIVE_LINKER_FALSE,;t t
7041s,@GCC_TRUE@,$GCC_TRUE,;t t
7042s,@GCC_FALSE@,$GCC_FALSE,;t t
63402fe4
ILT
7043s,@FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@,$FN_PTRS_IN_SO_WITHOUT_PIC_TRUE,;t t
7044s,@FN_PTRS_IN_SO_WITHOUT_PIC_FALSE@,$FN_PTRS_IN_SO_WITHOUT_PIC_FALSE,;t t
6eee141f
ILT
7045s,@TLS_TRUE@,$TLS_TRUE,;t t
7046s,@TLS_FALSE@,$TLS_FALSE,;t t
097ec620
ILT
7047s,@STATIC_TLS_TRUE@,$STATIC_TLS_TRUE,;t t
7048s,@STATIC_TLS_FALSE@,$STATIC_TLS_FALSE,;t t
bae7f79e
ILT
7049s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7050s,@NO_WERROR@,$NO_WERROR,;t t
7051s,@WARN_CXXFLAGS@,$WARN_CXXFLAGS,;t t
7052s,@LFS_CXXFLAGS@,$LFS_CXXFLAGS,;t t
82dcae9d 7053s,@LIBOBJS@,$LIBOBJS,;t t
9a0910c3 7054s,@CPP@,$CPP,;t t
54dc6425 7055s,@EGREP@,$EGREP,;t t
9a0910c3 7056s,@CXXCPP@,$CXXCPP,;t t
bae7f79e
ILT
7057s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7058s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7059s,@MAINT@,$MAINT,;t t
bae7f79e
ILT
7060s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7061CEOF
7062
7063_ACEOF
7064
7065 cat >>$CONFIG_STATUS <<\_ACEOF
7066 # Split the substitutions into bite-sized pieces for seds with
7067 # small command number limits, like on Digital OSF/1 and HP-UX.
7068 ac_max_sed_lines=48
7069 ac_sed_frag=1 # Number of current file.
7070 ac_beg=1 # First line for current file.
7071 ac_end=$ac_max_sed_lines # Line after last line for current file.
7072 ac_more_lines=:
7073 ac_sed_cmds=
7074 while $ac_more_lines; do
7075 if test $ac_beg -gt 1; then
7076 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7077 else
7078 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7079 fi
7080 if test ! -s $tmp/subs.frag; then
7081 ac_more_lines=false
7082 else
7083 # The purpose of the label and of the branching condition is to
7084 # speed up the sed processing (if there are no `@' at all, there
7085 # is no need to browse any of the substitutions).
7086 # These are the two extra sed commands mentioned above.
7087 (echo ':t
7088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7089 if test -z "$ac_sed_cmds"; then
7090 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7091 else
7092 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7093 fi
7094 ac_sed_frag=`expr $ac_sed_frag + 1`
7095 ac_beg=$ac_end
7096 ac_end=`expr $ac_end + $ac_max_sed_lines`
7097 fi
7098 done
7099 if test -z "$ac_sed_cmds"; then
7100 ac_sed_cmds=cat
7101 fi
7102fi # test -n "$CONFIG_FILES"
7103
7104_ACEOF
7105cat >>$CONFIG_STATUS <<\_ACEOF
7106for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7107 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7108 case $ac_file in
7109 - | *:- | *:-:* ) # input from stdin
7110 cat >$tmp/stdin
7111 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7113 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7114 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7115 * ) ac_file_in=$ac_file.in ;;
7116 esac
7117
7118 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7119 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7120$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7121 X"$ac_file" : 'X\(//\)[^/]' \| \
7122 X"$ac_file" : 'X\(//\)$' \| \
7123 X"$ac_file" : 'X\(/\)' \| \
7124 . : '\(.\)' 2>/dev/null ||
7125echo X"$ac_file" |
7126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7128 /^X\(\/\/\)$/{ s//\1/; q; }
7129 /^X\(\/\).*/{ s//\1/; q; }
7130 s/.*/./; q'`
7131 { if $as_mkdir_p; then
7132 mkdir -p "$ac_dir"
7133 else
7134 as_dir="$ac_dir"
7135 as_dirs=
7136 while test ! -d "$as_dir"; do
7137 as_dirs="$as_dir $as_dirs"
7138 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7139$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7140 X"$as_dir" : 'X\(//\)[^/]' \| \
7141 X"$as_dir" : 'X\(//\)$' \| \
7142 X"$as_dir" : 'X\(/\)' \| \
7143 . : '\(.\)' 2>/dev/null ||
7144echo X"$as_dir" |
7145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7147 /^X\(\/\/\)$/{ s//\1/; q; }
7148 /^X\(\/\).*/{ s//\1/; q; }
7149 s/.*/./; q'`
7150 done
7151 test ! -n "$as_dirs" || mkdir $as_dirs
7152 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7153echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7154 { (exit 1); exit 1; }; }; }
7155
7156 ac_builddir=.
7157
7158if test "$ac_dir" != .; then
7159 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7160 # A "../" for each directory in $ac_dir_suffix.
7161 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7162else
7163 ac_dir_suffix= ac_top_builddir=
7164fi
7165
7166case $srcdir in
7167 .) # No --srcdir option. We are building in place.
7168 ac_srcdir=.
7169 if test -z "$ac_top_builddir"; then
7170 ac_top_srcdir=.
7171 else
7172 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7173 fi ;;
7174 [\\/]* | ?:[\\/]* ) # Absolute path.
7175 ac_srcdir=$srcdir$ac_dir_suffix;
7176 ac_top_srcdir=$srcdir ;;
7177 *) # Relative path.
7178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7180esac
7181
7182# Do not use `cd foo && pwd` to compute absolute paths, because
7183# the directories may not exist.
7184case `pwd` in
7185.) ac_abs_builddir="$ac_dir";;
7186*)
7187 case "$ac_dir" in
7188 .) ac_abs_builddir=`pwd`;;
7189 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7190 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7191 esac;;
7192esac
7193case $ac_abs_builddir in
7194.) ac_abs_top_builddir=${ac_top_builddir}.;;
7195*)
7196 case ${ac_top_builddir}. in
7197 .) ac_abs_top_builddir=$ac_abs_builddir;;
7198 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7199 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7200 esac;;
7201esac
7202case $ac_abs_builddir in
7203.) ac_abs_srcdir=$ac_srcdir;;
7204*)
7205 case $ac_srcdir in
7206 .) ac_abs_srcdir=$ac_abs_builddir;;
7207 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7208 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7209 esac;;
7210esac
7211case $ac_abs_builddir in
7212.) ac_abs_top_srcdir=$ac_top_srcdir;;
7213*)
7214 case $ac_top_srcdir in
7215 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7216 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7217 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7218 esac;;
7219esac
7220
7221
7222 case $INSTALL in
7223 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7224 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7225 esac
7226
7227 if test x"$ac_file" != x-; then
7228 { echo "$as_me:$LINENO: creating $ac_file" >&5
7229echo "$as_me: creating $ac_file" >&6;}
7230 rm -f "$ac_file"
7231 fi
7232 # Let's still pretend it is `configure' which instantiates (i.e., don't
7233 # use $as_me), people would be surprised to read:
7234 # /* config.h. Generated by config.status. */
7235 if test x"$ac_file" = x-; then
7236 configure_input=
7237 else
7238 configure_input="$ac_file. "
7239 fi
7240 configure_input=$configure_input"Generated from `echo $ac_file_in |
7241 sed 's,.*/,,'` by configure."
7242
7243 # First look for the input files in the build tree, otherwise in the
7244 # src tree.
7245 ac_file_inputs=`IFS=:
7246 for f in $ac_file_in; do
7247 case $f in
7248 -) echo $tmp/stdin ;;
7249 [\\/$]*)
7250 # Absolute (can't be DOS-style, as IFS=:)
7251 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7252echo "$as_me: error: cannot find input file: $f" >&2;}
7253 { (exit 1); exit 1; }; }
7254 echo "$f";;
7255 *) # Relative
7256 if test -f "$f"; then
7257 # Build tree
7258 echo "$f"
7259 elif test -f "$srcdir/$f"; then
7260 # Source tree
7261 echo "$srcdir/$f"
7262 else
7263 # /dev/null tree
7264 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7265echo "$as_me: error: cannot find input file: $f" >&2;}
7266 { (exit 1); exit 1; }; }
7267 fi;;
7268 esac
7269 done` || { (exit 1); exit 1; }
7270_ACEOF
7271cat >>$CONFIG_STATUS <<_ACEOF
7272 sed "$ac_vpsub
7273$extrasub
7274_ACEOF
7275cat >>$CONFIG_STATUS <<\_ACEOF
7276:t
7277/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7278s,@configure_input@,$configure_input,;t t
7279s,@srcdir@,$ac_srcdir,;t t
7280s,@abs_srcdir@,$ac_abs_srcdir,;t t
7281s,@top_srcdir@,$ac_top_srcdir,;t t
7282s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7283s,@builddir@,$ac_builddir,;t t
7284s,@abs_builddir@,$ac_abs_builddir,;t t
7285s,@top_builddir@,$ac_top_builddir,;t t
7286s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7287s,@INSTALL@,$ac_INSTALL,;t t
7288" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7289 rm -f $tmp/stdin
7290 if test x"$ac_file" != x-; then
7291 mv $tmp/out $ac_file
7292 else
7293 cat $tmp/out
7294 rm -f $tmp/out
7295 fi
7296
7297done
7298_ACEOF
7299cat >>$CONFIG_STATUS <<\_ACEOF
7300
7301#
7302# CONFIG_HEADER section.
7303#
7304
7305# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7306# NAME is the cpp macro being defined and VALUE is the value it is being given.
7307#
7308# ac_d sets the value in "#define NAME VALUE" lines.
7309ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7310ac_dB='[ ].*$,\1#\2'
7311ac_dC=' '
7312ac_dD=',;t'
7313# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7314ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7315ac_uB='$,\1#\2define\3'
7316ac_uC=' '
7317ac_uD=',;t'
7318
7319for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7320 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7321 case $ac_file in
7322 - | *:- | *:-:* ) # input from stdin
7323 cat >$tmp/stdin
7324 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7326 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7327 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7328 * ) ac_file_in=$ac_file.in ;;
7329 esac
7330
7331 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7332echo "$as_me: creating $ac_file" >&6;}
7333
7334 # First look for the input files in the build tree, otherwise in the
7335 # src tree.
7336 ac_file_inputs=`IFS=:
7337 for f in $ac_file_in; do
7338 case $f in
7339 -) echo $tmp/stdin ;;
7340 [\\/$]*)
7341 # Absolute (can't be DOS-style, as IFS=:)
7342 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7343echo "$as_me: error: cannot find input file: $f" >&2;}
7344 { (exit 1); exit 1; }; }
7345 # Do quote $f, to prevent DOS paths from being IFS'd.
7346 echo "$f";;
7347 *) # Relative
7348 if test -f "$f"; then
7349 # Build tree
7350 echo "$f"
7351 elif test -f "$srcdir/$f"; then
7352 # Source tree
7353 echo "$srcdir/$f"
7354 else
7355 # /dev/null tree
7356 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7357echo "$as_me: error: cannot find input file: $f" >&2;}
7358 { (exit 1); exit 1; }; }
7359 fi;;
7360 esac
7361 done` || { (exit 1); exit 1; }
7362 # Remove the trailing spaces.
7363 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7364
7365_ACEOF
7366
7367# Transform confdefs.h into two sed scripts, `conftest.defines' and
7368# `conftest.undefs', that substitutes the proper values into
7369# config.h.in to produce config.h. The first handles `#define'
7370# templates, and the second `#undef' templates.
7371# And first: Protect against being on the right side of a sed subst in
7372# config.status. Protect against being in an unquoted here document
7373# in config.status.
7374rm -f conftest.defines conftest.undefs
7375# Using a here document instead of a string reduces the quoting nightmare.
7376# Putting comments in sed scripts is not portable.
7377#
7378# `end' is used to avoid that the second main sed command (meant for
7379# 0-ary CPP macros) applies to n-ary macro definitions.
7380# See the Autoconf documentation for `clear'.
7381cat >confdef2sed.sed <<\_ACEOF
7382s/[\\&,]/\\&/g
7383s,[\\$`],\\&,g
7384t clear
7385: clear
7386s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7387t end
7388s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7389: end
7390_ACEOF
7391# If some macros were called several times there might be several times
7392# the same #defines, which is useless. Nevertheless, we may not want to
7393# sort them, since we want the *last* AC-DEFINE to be honored.
7394uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7395sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7396rm -f confdef2sed.sed
7397
7398# This sed command replaces #undef with comments. This is necessary, for
7399# example, in the case of _POSIX_SOURCE, which is predefined and required
7400# on some systems where configure will not decide to define it.
7401cat >>conftest.undefs <<\_ACEOF
7402s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7403_ACEOF
7404
7405# Break up conftest.defines because some shells have a limit on the size
7406# of here documents, and old seds have small limits too (100 cmds).
7407echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7408echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7409echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7410echo ' :' >>$CONFIG_STATUS
7411rm -f conftest.tail
7412while grep . conftest.defines >/dev/null
7413do
7414 # Write a limited-size here document to $tmp/defines.sed.
7415 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7416 # Speed up: don't consider the non `#define' lines.
7417 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7418 # Work around the forget-to-reset-the-flag bug.
7419 echo 't clr' >>$CONFIG_STATUS
7420 echo ': clr' >>$CONFIG_STATUS
7421 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7422 echo 'CEOF
7423 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7424 rm -f $tmp/in
7425 mv $tmp/out $tmp/in
7426' >>$CONFIG_STATUS
7427 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7428 rm -f conftest.defines
7429 mv conftest.tail conftest.defines
7430done
7431rm -f conftest.defines
7432echo ' fi # grep' >>$CONFIG_STATUS
7433echo >>$CONFIG_STATUS
7434
7435# Break up conftest.undefs because some shells have a limit on the size
7436# of here documents, and old seds have small limits too (100 cmds).
7437echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7438rm -f conftest.tail
7439while grep . conftest.undefs >/dev/null
7440do
7441 # Write a limited-size here document to $tmp/undefs.sed.
7442 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7443 # Speed up: don't consider the non `#undef'
7444 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7445 # Work around the forget-to-reset-the-flag bug.
7446 echo 't clr' >>$CONFIG_STATUS
7447 echo ': clr' >>$CONFIG_STATUS
7448 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7449 echo 'CEOF
7450 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7451 rm -f $tmp/in
7452 mv $tmp/out $tmp/in
7453' >>$CONFIG_STATUS
7454 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7455 rm -f conftest.undefs
7456 mv conftest.tail conftest.undefs
7457done
7458rm -f conftest.undefs
7459
7460cat >>$CONFIG_STATUS <<\_ACEOF
7461 # Let's still pretend it is `configure' which instantiates (i.e., don't
7462 # use $as_me), people would be surprised to read:
7463 # /* config.h. Generated by config.status. */
7464 if test x"$ac_file" = x-; then
7465 echo "/* Generated by configure. */" >$tmp/config.h
7466 else
7467 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7468 fi
7469 cat $tmp/in >>$tmp/config.h
7470 rm -f $tmp/in
7471 if test x"$ac_file" != x-; then
7472 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7473 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7474echo "$as_me: $ac_file is unchanged" >&6;}
7475 else
7476 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7477$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7478 X"$ac_file" : 'X\(//\)[^/]' \| \
7479 X"$ac_file" : 'X\(//\)$' \| \
7480 X"$ac_file" : 'X\(/\)' \| \
7481 . : '\(.\)' 2>/dev/null ||
7482echo X"$ac_file" |
7483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7485 /^X\(\/\/\)$/{ s//\1/; q; }
7486 /^X\(\/\).*/{ s//\1/; q; }
7487 s/.*/./; q'`
7488 { if $as_mkdir_p; then
7489 mkdir -p "$ac_dir"
7490 else
7491 as_dir="$ac_dir"
7492 as_dirs=
7493 while test ! -d "$as_dir"; do
7494 as_dirs="$as_dir $as_dirs"
7495 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7496$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7497 X"$as_dir" : 'X\(//\)[^/]' \| \
7498 X"$as_dir" : 'X\(//\)$' \| \
7499 X"$as_dir" : 'X\(/\)' \| \
7500 . : '\(.\)' 2>/dev/null ||
7501echo X"$as_dir" |
7502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7504 /^X\(\/\/\)$/{ s//\1/; q; }
7505 /^X\(\/\).*/{ s//\1/; q; }
7506 s/.*/./; q'`
7507 done
7508 test ! -n "$as_dirs" || mkdir $as_dirs
7509 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7510echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7511 { (exit 1); exit 1; }; }; }
7512
7513 rm -f $ac_file
7514 mv $tmp/config.h $ac_file
7515 fi
7516 else
7517 cat $tmp/config.h
7518 rm -f $tmp/config.h
7519 fi
7520# Compute $ac_file's index in $config_headers.
7521_am_stamp_count=1
7522for _am_header in $config_headers :; do
7523 case $_am_header in
7524 $ac_file | $ac_file:* )
7525 break ;;
7526 * )
7527 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7528 esac
7529done
7530echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7531$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7532 X$ac_file : 'X\(//\)[^/]' \| \
7533 X$ac_file : 'X\(//\)$' \| \
7534 X$ac_file : 'X\(/\)' \| \
7535 . : '\(.\)' 2>/dev/null ||
7536echo X$ac_file |
7537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7539 /^X\(\/\/\)$/{ s//\1/; q; }
7540 /^X\(\/\).*/{ s//\1/; q; }
7541 s/.*/./; q'`/stamp-h$_am_stamp_count
7542done
7543_ACEOF
7544cat >>$CONFIG_STATUS <<\_ACEOF
7545
7546#
7547# CONFIG_COMMANDS section.
7548#
7549for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7550 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7551 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7552 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7553$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7554 X"$ac_dest" : 'X\(//\)[^/]' \| \
7555 X"$ac_dest" : 'X\(//\)$' \| \
7556 X"$ac_dest" : 'X\(/\)' \| \
7557 . : '\(.\)' 2>/dev/null ||
7558echo X"$ac_dest" |
7559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7561 /^X\(\/\/\)$/{ s//\1/; q; }
7562 /^X\(\/\).*/{ s//\1/; q; }
7563 s/.*/./; q'`
7564 { if $as_mkdir_p; then
7565 mkdir -p "$ac_dir"
7566 else
7567 as_dir="$ac_dir"
7568 as_dirs=
7569 while test ! -d "$as_dir"; do
7570 as_dirs="$as_dir $as_dirs"
7571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7572$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7573 X"$as_dir" : 'X\(//\)[^/]' \| \
7574 X"$as_dir" : 'X\(//\)$' \| \
7575 X"$as_dir" : 'X\(/\)' \| \
7576 . : '\(.\)' 2>/dev/null ||
7577echo X"$as_dir" |
7578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7580 /^X\(\/\/\)$/{ s//\1/; q; }
7581 /^X\(\/\).*/{ s//\1/; q; }
7582 s/.*/./; q'`
7583 done
7584 test ! -n "$as_dirs" || mkdir $as_dirs
7585 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7586echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7587 { (exit 1); exit 1; }; }; }
7588
7589 ac_builddir=.
7590
7591if test "$ac_dir" != .; then
7592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7593 # A "../" for each directory in $ac_dir_suffix.
7594 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7595else
7596 ac_dir_suffix= ac_top_builddir=
7597fi
7598
7599case $srcdir in
7600 .) # No --srcdir option. We are building in place.
7601 ac_srcdir=.
7602 if test -z "$ac_top_builddir"; then
7603 ac_top_srcdir=.
7604 else
7605 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7606 fi ;;
7607 [\\/]* | ?:[\\/]* ) # Absolute path.
7608 ac_srcdir=$srcdir$ac_dir_suffix;
7609 ac_top_srcdir=$srcdir ;;
7610 *) # Relative path.
7611 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7612 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7613esac
7614
7615# Do not use `cd foo && pwd` to compute absolute paths, because
7616# the directories may not exist.
7617case `pwd` in
7618.) ac_abs_builddir="$ac_dir";;
7619*)
7620 case "$ac_dir" in
7621 .) ac_abs_builddir=`pwd`;;
7622 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7623 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7624 esac;;
7625esac
7626case $ac_abs_builddir in
7627.) ac_abs_top_builddir=${ac_top_builddir}.;;
7628*)
7629 case ${ac_top_builddir}. in
7630 .) ac_abs_top_builddir=$ac_abs_builddir;;
7631 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7632 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7633 esac;;
7634esac
7635case $ac_abs_builddir in
7636.) ac_abs_srcdir=$ac_srcdir;;
7637*)
7638 case $ac_srcdir in
7639 .) ac_abs_srcdir=$ac_abs_builddir;;
7640 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7641 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7642 esac;;
7643esac
7644case $ac_abs_builddir in
7645.) ac_abs_top_srcdir=$ac_top_srcdir;;
7646*)
7647 case $ac_top_srcdir in
7648 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7649 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7650 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7651 esac;;
7652esac
7653
7654
7655 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7656echo "$as_me: executing $ac_dest commands" >&6;}
7657 case $ac_dest in
7658 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7659 # Strip MF so we end up with the name of the file.
7660 mf=`echo "$mf" | sed -e 's/:.*$//'`
7661 # Check whether this is an Automake generated Makefile or not.
7662 # We used to match only the files named `Makefile.in', but
7663 # some people rename them; so instead we look at the file content.
7664 # Grep'ing the first line is not enough: some people post-process
7665 # each Makefile.in and add a new line on top of each file to say so.
7666 # So let's grep whole file.
7667 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7668 dirpart=`(dirname "$mf") 2>/dev/null ||
7669$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7670 X"$mf" : 'X\(//\)[^/]' \| \
7671 X"$mf" : 'X\(//\)$' \| \
7672 X"$mf" : 'X\(/\)' \| \
7673 . : '\(.\)' 2>/dev/null ||
7674echo X"$mf" |
7675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7677 /^X\(\/\/\)$/{ s//\1/; q; }
7678 /^X\(\/\).*/{ s//\1/; q; }
7679 s/.*/./; q'`
7680 else
7681 continue
7682 fi
7683 # Extract the definition of DEPDIR, am__include, and am__quote
7684 # from the Makefile without running `make'.
7685 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7686 test -z "$DEPDIR" && continue
7687 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7688 test -z "am__include" && continue
7689 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7690 # When using ansi2knr, U may be empty or an underscore; expand it
7691 U=`sed -n 's/^U = //p' < "$mf"`
7692 # Find all dependency output files, they are included files with
7693 # $(DEPDIR) in their names. We invoke sed twice because it is the
7694 # simplest approach to changing $(DEPDIR) to its actual value in the
7695 # expansion.
7696 for file in `sed -n "
7697 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7698 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7699 # Make sure the directory exists.
7700 test -f "$dirpart/$file" && continue
7701 fdir=`(dirname "$file") 2>/dev/null ||
7702$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7703 X"$file" : 'X\(//\)[^/]' \| \
7704 X"$file" : 'X\(//\)$' \| \
7705 X"$file" : 'X\(/\)' \| \
7706 . : '\(.\)' 2>/dev/null ||
7707echo X"$file" |
7708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7710 /^X\(\/\/\)$/{ s//\1/; q; }
7711 /^X\(\/\).*/{ s//\1/; q; }
7712 s/.*/./; q'`
7713 { if $as_mkdir_p; then
7714 mkdir -p $dirpart/$fdir
7715 else
7716 as_dir=$dirpart/$fdir
7717 as_dirs=
7718 while test ! -d "$as_dir"; do
7719 as_dirs="$as_dir $as_dirs"
7720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7722 X"$as_dir" : 'X\(//\)[^/]' \| \
7723 X"$as_dir" : 'X\(//\)$' \| \
7724 X"$as_dir" : 'X\(/\)' \| \
7725 . : '\(.\)' 2>/dev/null ||
7726echo X"$as_dir" |
7727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7729 /^X\(\/\/\)$/{ s//\1/; q; }
7730 /^X\(\/\).*/{ s//\1/; q; }
7731 s/.*/./; q'`
7732 done
7733 test ! -n "$as_dirs" || mkdir $as_dirs
7734 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7735echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7736 { (exit 1); exit 1; }; }; }
7737
7738 # echo "creating $dirpart/$file"
7739 echo '# dummy' > "$dirpart/$file"
7740 done
7741done
7742 ;;
7743 default-1 )
7744 for ac_file in $CONFIG_FILES; do
7745 # Support "outfile[:infile[:infile...]]"
7746 case "$ac_file" in
7747 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7748 esac
7749 # PO directories have a Makefile.in generated from Makefile.in.in.
7750 case "$ac_file" in */Makefile.in)
7751 # Adjust a relative srcdir.
7752 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7753 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7754 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7755 # In autoconf-2.13 it is called $ac_given_srcdir.
7756 # In autoconf-2.50 it is called $srcdir.
7757 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7758 case "$ac_given_srcdir" in
7759 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7760 /*) top_srcdir="$ac_given_srcdir" ;;
7761 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7762 esac
7763 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7764 rm -f "$ac_dir/POTFILES"
7765 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7766 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7767 POMAKEFILEDEPS="POTFILES.in"
7768 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7769 # on $ac_dir but don't depend on user-specified configuration
7770 # parameters.
7771 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7772 # The LINGUAS file contains the set of available languages.
7773 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7774 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7775 fi
7776 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7777 # Hide the ALL_LINGUAS assigment from automake.
7778 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7779 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7780 else
7781 # The set of available languages was given in configure.in.
7782 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7783 fi
7784 case "$ac_given_srcdir" in
7785 .) srcdirpre= ;;
7786 *) srcdirpre='$(srcdir)/' ;;
7787 esac
7788 POFILES=
7789 GMOFILES=
7790 UPDATEPOFILES=
7791 DUMMYPOFILES=
7792 for lang in $ALL_LINGUAS; do
7793 POFILES="$POFILES $srcdirpre$lang.po"
7794 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7795 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7796 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7797 done
7798 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7799 # environment variable.
7800 INST_LINGUAS=
7801 if test -n "$ALL_LINGUAS"; then
7802 for presentlang in $ALL_LINGUAS; do
7803 useit=no
7804 if test "%UNSET%" != "$LINGUAS"; then
7805 desiredlanguages="$LINGUAS"
7806 else
7807 desiredlanguages="$ALL_LINGUAS"
7808 fi
7809 for desiredlang in $desiredlanguages; do
7810 # Use the presentlang catalog if desiredlang is
7811 # a. equal to presentlang, or
7812 # b. a variant of presentlang (because in this case,
7813 # presentlang can be used as a fallback for messages
7814 # which are not translated in the desiredlang catalog).
7815 case "$desiredlang" in
7816 "$presentlang"*) useit=yes;;
7817 esac
7818 done
7819 if test $useit = yes; then
7820 INST_LINGUAS="$INST_LINGUAS $presentlang"
7821 fi
7822 done
7823 fi
7824 CATALOGS=
7825 if test -n "$INST_LINGUAS"; then
7826 for lang in $INST_LINGUAS; do
7827 CATALOGS="$CATALOGS $lang.gmo"
7828 done
7829 fi
7830 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7831 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7832 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7833 if test -f "$f"; then
7834 case "$f" in
7835 *.orig | *.bak | *~) ;;
7836 *) cat "$f" >> "$ac_dir/Makefile" ;;
7837 esac
7838 fi
7839 done
7840 fi
7841 ;;
7842 esac
7843 done ;;
7844 esac
7845done
7846_ACEOF
7847
7848cat >>$CONFIG_STATUS <<\_ACEOF
7849
7850{ (exit 0); exit 0; }
7851_ACEOF
7852chmod +x $CONFIG_STATUS
7853ac_clean_files=$ac_clean_files_save
7854
7855
7856# configure is writing to config.log, and then calls config.status.
7857# config.status does its own redirection, appending to config.log.
7858# Unfortunately, on DOS this fails, as config.log is still kept open
7859# by configure, so config.status won't be able to write to it; its
7860# output is simply discarded. So we exec the FD to /dev/null,
7861# effectively closing config.log, so it can be properly (re)opened and
7862# appended to by config.status. When coming back to configure, we
7863# need to make the FD available again.
7864if test "$no_create" != yes; then
7865 ac_cs_success=:
7866 ac_config_status_args=
7867 test "$silent" = yes &&
7868 ac_config_status_args="$ac_config_status_args --quiet"
7869 exec 5>/dev/null
7870 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7871 exec 5>>config.log
7872 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7873 # would make configure fail if this is the last instruction.
7874 $ac_cs_success || { (exit 1); exit 1; }
7875fi
7876
This page took 0.379949 seconds and 4 git commands to generate.