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