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