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