2007-10-04 H.J. Lu <hongjiu.lu@intel.com>
[binutils.git] / gold / configure
blobf7192cd1cd7864d51b983cc64e85fffe6b11ee0b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="gold.cc"
275 # Factoring default headers for most tests.
276 ac_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"
312 ac_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'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
652 if 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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
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
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if 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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if 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 ||
715 echo 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=..
725 else
726 ac_srcdir_defaulted=no
728 if 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; }; }
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; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CXXCPP_set=${CXXCPP+set}
778 ac_env_CXXCPP_value=$CXXCPP
779 ac_cv_env_CXXCPP_set=${CXXCPP+set}
780 ac_cv_env_CXXCPP_value=$CXXCPP
783 # Report the --help message.
785 if 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.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
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 \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation 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]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine 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
840 cat <<\_ACEOF
842 Program 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
847 System 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
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-targets alternative target configurations
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
870 Optional 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
875 Some 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
884 CXXCPP C++ preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 _ACEOF
892 if 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=.
899 if 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'`
903 else
904 ac_dir_suffix= ac_top_builddir=
907 case $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 ;;
921 esac
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
925 case `pwd` in
926 .) ac_abs_builddir="$ac_dir";;
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;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
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;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
960 esac
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
977 cd $ac_popdir
978 done
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
983 cat <<\_ACEOF
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
999 $ $0 $@
1001 _ACEOF
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
1020 hostinfo = `(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`
1025 _ASUNAME
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1035 } >&5
1037 cat >&5 <<_ACEOF
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1044 _ACEOF
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.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1059 for ac_arg
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'" ;;
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
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1092 esac
1093 done
1094 done
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; }
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.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1106 echo
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
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"
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 esac;
1129 echo
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
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
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
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
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
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if 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"
1223 for 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
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if 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
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for 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
1261 echo "$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
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
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
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$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
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$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
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326 ac_aux_dir=
1327 for 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
1341 done
1342 if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1347 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
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
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362 ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1377 build=$ac_cv_build
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388 ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1399 host=$ac_cv_host
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:$LINENO: checking target system type" >&5
1406 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407 if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 ac_cv_target_alias=$target_alias
1411 test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420 echo "${ECHO_T}$ac_cv_target" >&6
1421 target=$ac_cv_target
1422 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 # The aliases save the names the user supplied, while $host etc.
1428 # will get canonicalized.
1429 test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1431 NONENONEs,x,x, &&
1432 program_prefix=${target_alias}-
1434 am__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.
1448 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1449 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1450 if test -z "$INSTALL"; then
1451 if test "${ac_cv_path_install+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 for as_dir in $PATH
1457 IFS=$as_save_IFS
1458 test -z "$as_dir" && as_dir=.
1459 # Account for people who put trailing slashes in PATH elements.
1460 case $as_dir/ in
1461 ./ | .// | /cC/* | \
1462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1463 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1464 /usr/ucb/* ) ;;
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.
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.
1480 else
1481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1482 break 3
1485 done
1486 done
1488 esac
1489 done
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
1503 echo "$as_me:$LINENO: result: $INSTALL" >&5
1504 echo "${ECHO_T}$INSTALL" >&6
1506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1507 # It thinks the first close brace ends the variable substitution.
1508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1514 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1515 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1516 # Just in case
1517 sleep 1
1518 echo 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).
1524 if (
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`
1530 rm -f conftest.file
1531 if test "$*" != "X $srcdir/configure conftest.file" \
1532 && test "$*" != "X conftest.file $srcdir/configure"; then
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
1539 alias in your environment" >&5
1540 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1541 alias in your environment" >&2;}
1542 { (exit 1); exit 1; }; }
1545 test "$2" = conftest.file
1547 then
1548 # Ok.
1550 else
1551 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1552 Check your system clock" >&5
1553 echo "$as_me: error: newly created file is older than distributed files!
1554 Check your system clock" >&2;}
1555 { (exit 1); exit 1; }; }
1557 echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1559 test "$program_prefix" != NONE &&
1560 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1561 # Use a double $ so make ignores it.
1562 test "$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.
1566 cat <<\_ACEOF >conftest.sed
1567 s/[\\$]/&&/g;s/;s,x,x,$//
1568 _ACEOF
1569 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1570 rm conftest.sed
1572 # expand $ac_aux_dir to an absolute path
1573 am_aux_dir=`cd $ac_aux_dir && pwd`
1575 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1576 # Use eval to expand $SHELL
1577 if eval "$MISSING --run true"; then
1578 am_missing_run="$MISSING --run "
1579 else
1580 am_missing_run=
1581 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1582 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1585 if 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 --'
1601 else
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;
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'
1618 for ac_prog in gawk mawk nawk awk
1620 # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_AWK+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$AWK"; then
1628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
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
1641 done
1642 done
1646 AWK=$ac_cv_prog_AWK
1647 if test -n "$AWK"; then
1648 echo "$as_me:$LINENO: result: $AWK" >&5
1649 echo "${ECHO_T}$AWK" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$AWK" && break
1656 done
1658 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1659 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1660 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1661 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 cat >conftest.make <<\_ACEOF
1665 all:
1666 @echo 'ac_maketemp="$(MAKE)"'
1667 _ACEOF
1668 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1669 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1670 if test -n "$ac_maketemp"; then
1671 eval ac_cv_prog_make_${ac_make}_set=yes
1672 else
1673 eval ac_cv_prog_make_${ac_make}_set=no
1675 rm -f conftest.make
1677 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 SET_MAKE=
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 SET_MAKE="MAKE=${MAKE-make}"
1687 rm -rf .tst 2>/dev/null
1688 mkdir .tst 2>/dev/null
1689 if test -d .tst; then
1690 am__leading_dot=.
1691 else
1692 am__leading_dot=_
1694 rmdir .tst 2>/dev/null
1696 # test to see if srcdir already configured
1697 if 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
1700 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1701 { (exit 1); exit 1; }; }
1704 # test whether we have cygpath
1705 if 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
1714 # Define the identity of the package.
1715 PACKAGE=gold
1716 VERSION=0.1
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE "$PACKAGE"
1721 _ACEOF
1724 cat >>confdefs.h <<_ACEOF
1725 #define VERSION "$VERSION"
1726 _ACEOF
1728 # Some tools Automake needs.
1730 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1733 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1736 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1739 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1742 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1744 install_sh=${install_sh-"$am_aux_dir/install-sh"}
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.
1750 if 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.
1753 set dummy ${ac_tool_prefix}strip; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_STRIP+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$STRIP"; then
1760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
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
1773 done
1774 done
1778 STRIP=$ac_cv_prog_STRIP
1779 if test -n "$STRIP"; then
1780 echo "$as_me:$LINENO: result: $STRIP" >&5
1781 echo "${ECHO_T}$STRIP" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1788 if 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.
1791 set dummy strip; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 if test -n "$ac_ct_STRIP"; then
1798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
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
1811 done
1812 done
1814 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1818 if test -n "$ac_ct_STRIP"; then
1819 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1820 echo "${ECHO_T}$ac_ct_STRIP" >&6
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1826 STRIP=$ac_ct_STRIP
1827 else
1828 STRIP="$ac_cv_prog_STRIP"
1832 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1834 # We need awk for the "check" target. The system "awk" is bad on
1835 # some platforms.
1836 # Always define AMTAR for backward compatibility.
1838 AMTAR=${AMTAR-"${am_missing_run}tar"}
1840 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1847 ac_config_headers="$ac_config_headers config.h:config.in"
1851 # Check whether --with-sysroot or --without-sysroot was given.
1852 if test "${with_sysroot+set}" = set; then
1853 withval="$with_sysroot"
1854 sysroot=$withval
1855 else
1856 sysroot=no
1859 if test "$sysroot" = "yes"; then
1860 sysroot='${exec_prefix}/${target_alias}/sys-root'
1861 elif test "$sysroot" = "no"; then
1862 sysroot=
1865 sysroot_relocatable=0
1866 if 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
1874 esac
1878 cat >>confdefs.h <<_ACEOF
1879 #define TARGET_SYSTEM_ROOT "$sysroot"
1880 _ACEOF
1883 cat >>confdefs.h <<_ACEOF
1884 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
1885 _ACEOF
1888 # Check whether --enable-targets or --disable-targets was given.
1889 if 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
1894 echo "$as_me: error: --enable-targets option must specify target names or 'all'" >&2;}
1895 { (exit 1); exit 1; }; }
1898 enable_targets=
1901 enable_targets=$enableval
1903 esac
1904 else
1905 # For now, enable all targets by default
1906 enable_targets=all
1910 # Canonicalize the enabled targets.
1911 if 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"
1920 done
1923 # See which specific instantiations we need.
1924 targetobjs=
1925 all_targets=
1926 for 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
1936 all_targets=yes
1937 else
1938 case "$targ" in
1939 i?86-*)
1940 targ_32_little=yes
1941 targetobjs="$targetobjs i386.\$(OBJEXT)"
1943 x86_64-*)
1944 targ_64_little=yes
1945 targetobjs="$targetobjs x86_64.\$(OBJEXT)"
1948 { { echo "$as_me:$LINENO: error: \"unsupported target $targ\"" >&5
1949 echo "$as_me: error: \"unsupported target $targ\"" >&2;}
1950 { (exit 1); exit 1; }; }
1952 esac
1954 done
1956 if test -n "$targ_32_little"; then
1958 cat >>confdefs.h <<\_ACEOF
1959 #define HAVE_TARGET_32_LITTLE 1
1960 _ACEOF
1963 if test -n "$targ_32_big"; then
1965 cat >>confdefs.h <<\_ACEOF
1966 #define HAVE_TARGET_32_BIG 1
1967 _ACEOF
1970 if test -n "$targ_64_little"; then
1972 cat >>confdefs.h <<\_ACEOF
1973 #define HAVE_TARGET_64_LITTLE 1
1974 _ACEOF
1977 if test -n "$targ_64_big"; then
1979 cat >>confdefs.h <<\_ACEOF
1980 #define HAVE_TARGET_64_BIG 1
1981 _ACEOF
1985 if test -n "$all_targets"; then
1986 TARGETOBJS='$(ALL_TARGETOBJS)'
1987 else
1988 TARGETOBJS="$targetobjs"
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 if 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.
1999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
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
2019 done
2020 done
2024 CC=$ac_cv_prog_CC
2025 if test -n "$CC"; then
2026 echo "$as_me:$LINENO: result: $CC" >&5
2027 echo "${ECHO_T}$CC" >&6
2028 else
2029 echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2034 if 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.
2037 set dummy gcc; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
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
2057 done
2058 done
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2066 else
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 CC=$ac_ct_CC
2072 else
2073 CC="$ac_cv_prog_CC"
2076 if 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.
2079 set dummy ${ac_tool_prefix}cc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
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
2099 done
2100 done
2104 CC=$ac_cv_prog_CC
2105 if test -n "$CC"; then
2106 echo "$as_me:$LINENO: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6
2108 else
2109 echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2114 if 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.
2117 set dummy cc; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
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
2137 done
2138 done
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2146 else
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2151 CC=$ac_ct_CC
2152 else
2153 CC="$ac_cv_prog_CC"
2157 if test -z "$CC"; then
2158 # Extract the first word of "cc", so it can be a program name with args.
2159 set dummy cc; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2167 else
2168 ac_prog_rejected=no
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
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
2180 ac_cv_prog_CC="cc"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2184 done
2185 done
2187 if 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+' '}$@"
2201 CC=$ac_cv_prog_CC
2202 if test -n "$CC"; then
2203 echo "$as_me:$LINENO: result: $CC" >&5
2204 echo "${ECHO_T}$CC" >&6
2205 else
2206 echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2211 if test -z "$CC"; then
2212 if test -n "$ac_tool_prefix"; then
2213 for ac_prog in cl
2215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217 echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
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
2236 done
2237 done
2241 CC=$ac_cv_prog_CC
2242 if test -n "$CC"; then
2243 echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6
2245 else
2246 echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2250 test -n "$CC" && break
2251 done
2253 if test -z "$CC"; then
2254 ac_ct_CC=$CC
2255 for ac_prog in cl
2257 # Extract the first word of "$ac_prog", so it can be a program name with args.
2258 set dummy $ac_prog; ac_word=$2
2259 echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 if test -n "$ac_ct_CC"; then
2265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
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
2278 done
2279 done
2283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284 if test -n "$ac_ct_CC"; then
2285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286 echo "${ECHO_T}$ac_ct_CC" >&6
2287 else
2288 echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2292 test -n "$ac_ct_CC" && break
2293 done
2295 CC=$ac_ct_CC
2301 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2302 See \`config.log' for more details." >&5
2303 echo "$as_me: error: no acceptable C compiler found in \$PATH
2304 See \`config.log' for more details." >&2;}
2305 { (exit 1); exit 1; }; }
2307 # Provide some information about the compiler.
2308 echo "$as_me:$LINENO:" \
2309 "checking for C compiler version" >&5
2310 ac_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); }
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2335 main ()
2339 return 0;
2341 _ACEOF
2342 ac_clean_files_save=$ac_clean_files
2343 ac_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.
2347 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2348 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2349 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2350 if { (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.
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.
2361 ac_cv_exeext=
2362 # b.out is created by i960 compilers.
2363 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2365 test -f "$ac_file" || continue
2366 case $ac_file in
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2369 conftest.$ac_ext )
2370 # This is the source file.
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;;
2384 break;;
2385 esac
2386 done
2387 else
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2391 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: C compiler cannot create executables
2394 See \`config.log' for more details." >&2;}
2395 { (exit 77); exit 77; }; }
2398 ac_exeext=$ac_cv_exeext
2399 echo "$as_me:$LINENO: result: $ac_file" >&5
2400 echo "${ECHO_T}$ac_file" >&6
2402 # Check the compiler produces executables we can run. If not, either
2403 # the compiler is broken, or we cross compile.
2404 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2405 echo $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.
2408 if 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.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2430 echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_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.
2437 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2439 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6
2442 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2444 if { (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'.
2453 for 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
2462 done
2463 else
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2471 rm -f conftest$ac_cv_exeext
2472 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2473 echo "${ECHO_T}$ac_cv_exeext" >&6
2475 rm -f conftest.$ac_ext
2476 EXEEXT=$ac_cv_exeext
2477 ac_exeext=$EXEEXT
2478 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2479 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2480 if test "${ac_cv_objext+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2491 main ()
2495 return 0;
2497 _ACEOF
2498 rm -f conftest.o conftest.obj
2499 if { (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
2510 done
2511 else
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2515 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2524 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2525 echo "${ECHO_T}$ac_cv_objext" >&6
2526 OBJEXT=$ac_cv_objext
2527 ac_objext=$OBJEXT
2528 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2529 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2530 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533 cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h. */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2541 main ()
2543 #ifndef __GNUC__
2544 choke me
2545 #endif
2548 return 0;
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (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
2574 else
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 ac_compiler_gnu=no
2580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2584 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586 GCC=`test $ac_compiler_gnu = yes && echo yes`
2587 ac_test_CFLAGS=${CFLAGS+set}
2588 ac_save_CFLAGS=$CFLAGS
2589 CFLAGS="-g"
2590 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592 if test "${ac_cv_prog_cc_g+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h. */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2603 main ()
2607 return 0;
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (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
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 ac_cv_prog_cc_g=no
2639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2642 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2643 if test "$ac_test_CFLAGS" = set; then
2644 CFLAGS=$ac_save_CFLAGS
2645 elif test $ac_cv_prog_cc_g = yes; then
2646 if test "$GCC" = yes; then
2647 CFLAGS="-g -O2"
2648 else
2649 CFLAGS="-g"
2651 else
2652 if test "$GCC" = yes; then
2653 CFLAGS="-O2"
2654 else
2655 CFLAGS=
2658 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2659 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 ac_cv_prog_cc_stdc=no
2664 ac_save_CC=$CC
2665 cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h. */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>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. */
2676 struct buf { int x; };
2677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678 static char *e (p, i)
2679 char **p;
2680 int i;
2682 return p[i];
2684 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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. */
2701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703 int test (int i, double x);
2704 struct s1 {int (*f) (int a);};
2705 struct s2 {int (*f) (double a);};
2706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707 int argc;
2708 char **argv;
2710 main ()
2712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2714 return 0;
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__
2724 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (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
2750 break
2751 else
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.err conftest.$ac_objext
2757 done
2758 rm -f conftest.$ac_ext conftest.$ac_objext
2759 CC=$ac_save_CC
2763 case "x$ac_cv_prog_cc_stdc" in
2764 x|xno)
2765 echo "$as_me:$LINENO: result: none needed" >&5
2766 echo "${ECHO_T}none needed" >&6 ;;
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2769 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2770 CC="$CC $ac_cv_prog_cc_stdc" ;;
2771 esac
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.
2777 cat >conftest.$ac_ext <<_ACEOF
2778 #ifndef __cplusplus
2779 choke me
2780 #endif
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (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);'
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 $ac_declaration
2819 #include <stdlib.h>
2821 main ()
2823 exit (42);
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (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
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2855 continue
2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 $ac_declaration
2866 main ()
2868 exit (42);
2870 return 0;
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (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
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 done
2903 rm -f conftest*
2904 if test -n "$ac_declaration"; then
2905 echo '#ifdef __cplusplus' >>confdefs.h
2906 echo $ac_declaration >>confdefs.h
2907 echo '#endif' >>confdefs.h
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 DEPDIR="${am__leading_dot}deps"
2923 ac_config_commands="$ac_config_commands depfiles"
2926 am_make=${MAKE-make}
2927 cat > confinc << 'END'
2928 am__doit:
2929 @echo done
2930 .PHONY: am__doit
2932 # If we don't find an include directive, just comment out the code.
2933 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2934 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2935 am__include="#"
2936 am__quote=
2937 _am_result=none
2938 # First try GNU make style include.
2939 echo "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'.
2945 if 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
2950 # Now try BSD make style include.
2951 if 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
2961 echo "$as_me:$LINENO: result: $_am_result" >&5
2962 echo "${ECHO_T}$_am_result" >&6
2963 rm -f confinc confmf
2965 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2966 if test "${enable_dependency_tracking+set}" = set; then
2967 enableval="$enable_dependency_tracking"
2970 if test "x$enable_dependency_tracking" != xno; then
2971 am_depcomp="$ac_aux_dir/depcomp"
2972 AMDEPBACKSLASH='\'
2976 if test "x$enable_dependency_tracking" != xno; then
2977 AMDEP_TRUE=
2978 AMDEP_FALSE='#'
2979 else
2980 AMDEP_TRUE='#'
2981 AMDEP_FALSE=
2987 depcc="$CC" am_compiler_list=
2989 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2990 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2991 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
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
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`
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.
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
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
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
3070 done
3072 cd ..
3073 rm -rf conftest.dir
3074 else
3075 am_cv_CC_dependencies_compiler_type=none
3079 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3080 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3081 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
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='#'
3090 else
3091 am__fastdepCC_TRUE='#'
3092 am__fastdepCC_FALSE=
3096 ac_ext=cc
3097 ac_cpp='$CXXCPP $CPPFLAGS'
3098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3101 if 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
3104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_CXX+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 if test -n "$CXX"; then
3112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
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
3125 done
3126 done
3130 CXX=$ac_cv_prog_CXX
3131 if test -n "$CXX"; then
3132 echo "$as_me:$LINENO: result: $CXX" >&5
3133 echo "${ECHO_T}$CXX" >&6
3134 else
3135 echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3139 test -n "$CXX" && break
3140 done
3142 if 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
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3150 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 if test -n "$ac_ct_CXX"; then
3154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
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
3167 done
3168 done
3172 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3173 if test -n "$ac_ct_CXX"; then
3174 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3175 echo "${ECHO_T}$ac_ct_CXX" >&6
3176 else
3177 echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6
3181 test -n "$ac_ct_CXX" && break
3182 done
3183 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3185 CXX=$ac_ct_CXX
3189 # Provide some information about the compiler.
3190 echo "$as_me:$LINENO:" \
3191 "checking for C++ compiler version" >&5
3192 ac_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); }
3209 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3210 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3211 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3222 main ()
3224 #ifndef __GNUC__
3225 choke me
3226 #endif
3229 return 0;
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (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
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 ac_compiler_gnu=no
3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3262 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3265 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3266 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3267 GXX=`test $ac_compiler_gnu = yes && echo yes`
3268 ac_test_CXXFLAGS=${CXXFLAGS+set}
3269 ac_save_CXXFLAGS=$CXXFLAGS
3270 CXXFLAGS="-g"
3271 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3272 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3273 if test "${ac_cv_prog_cxx_g+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3284 main ()
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (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
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 ac_cv_prog_cxx_g=no
3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3323 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3324 if test "$ac_test_CXXFLAGS" = set; then
3325 CXXFLAGS=$ac_save_CXXFLAGS
3326 elif test $ac_cv_prog_cxx_g = yes; then
3327 if test "$GXX" = yes; then
3328 CXXFLAGS="-g -O2"
3329 else
3330 CXXFLAGS="-g"
3332 else
3333 if test "$GXX" = yes; then
3334 CXXFLAGS="-O2"
3335 else
3336 CXXFLAGS=
3339 for 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);'
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 $ac_declaration
3354 #include <stdlib.h>
3356 main ()
3358 exit (42);
3360 return 0;
3362 _ACEOF
3363 rm -f conftest.$ac_objext
3364 if { (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
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 continue
3392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 $ac_declaration
3401 main ()
3403 exit (42);
3405 return 0;
3407 _ACEOF
3408 rm -f conftest.$ac_objext
3409 if { (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
3431 else
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437 done
3438 rm -f conftest*
3439 if test -n "$ac_declaration"; then
3440 echo '#ifdef __cplusplus' >>confdefs.h
3441 echo $ac_declaration >>confdefs.h
3442 echo '#endif' >>confdefs.h
3445 ac_ext=c
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 depcc="$CXX" am_compiler_list=
3453 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3454 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3455 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
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
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`
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.
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
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
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
3534 done
3536 cd ..
3537 rm -rf conftest.dir
3538 else
3539 am_cv_CXX_dependencies_compiler_type=none
3543 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3544 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3545 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
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='#'
3554 else
3555 am__fastdepCXX_TRUE='#'
3556 am__fastdepCXX_FALSE=
3560 for ac_prog in 'bison -y' byacc
3562 # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 echo "$as_me:$LINENO: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_prog_YACC+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 if test -n "$YACC"; then
3570 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
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
3583 done
3584 done
3588 YACC=$ac_cv_prog_YACC
3589 if test -n "$YACC"; then
3590 echo "$as_me:$LINENO: result: $YACC" >&5
3591 echo "${ECHO_T}$YACC" >&6
3592 else
3593 echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3597 test -n "$YACC" && break
3598 done
3599 test -n "$YACC" || YACC="yacc"
3601 if 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.
3603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3604 echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606 if test "${ac_cv_prog_RANLIB+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 if test -n "$RANLIB"; then
3610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
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
3623 done
3624 done
3628 RANLIB=$ac_cv_prog_RANLIB
3629 if test -n "$RANLIB"; then
3630 echo "$as_me:$LINENO: result: $RANLIB" >&5
3631 echo "${ECHO_T}$RANLIB" >&6
3632 else
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3638 if 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.
3641 set dummy ranlib; ac_word=$2
3642 echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 if test -n "$ac_ct_RANLIB"; then
3648 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
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
3661 done
3662 done
3664 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3667 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3668 if test -n "$ac_ct_RANLIB"; then
3669 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3670 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3671 else
3672 echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3676 RANLIB=$ac_ct_RANLIB
3677 else
3678 RANLIB="$ac_cv_prog_RANLIB"
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.
3694 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3695 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3696 if test -z "$INSTALL"; then
3697 if test "${ac_cv_path_install+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 # Account for people who put trailing slashes in PATH elements.
3706 case $as_dir/ in
3707 ./ | .// | /cC/* | \
3708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3710 /usr/ucb/* ) ;;
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.
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.
3726 else
3727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3728 break 3
3731 done
3732 done
3734 esac
3735 done
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
3749 echo "$as_me:$LINENO: result: $INSTALL" >&5
3750 echo "${ECHO_T}$INSTALL" >&6
3752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3753 # It thinks the first close brace ends the variable substitution.
3754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3760 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3761 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3762 LN_S=$as_ln_s
3763 if test "$LN_S" = "ln -s"; then
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3766 else
3767 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3768 echo "${ECHO_T}no, using $LN_S" >&6
3771 # If we haven't got the data from the intl directory,
3772 # assume NLS is disabled.
3773 USE_NLS=no
3774 LIBINTL=
3775 LIBINTL_DEP=
3776 INCINTL=
3777 XGETTEXT=
3778 GMSGFMT=
3779 POSUB=
3781 if test -f ../intl/config.intl; then
3782 . ../intl/config.intl
3784 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3785 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3786 if test x"$USE_NLS" != xyes; then
3787 echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3789 else
3790 echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6
3793 cat >>confdefs.h <<\_ACEOF
3794 #define ENABLE_NLS 1
3795 _ACEOF
3798 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3799 echo $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"
3826 esac
3828 done
3829 LINGUAS="$XLINGUAS"
3830 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3831 echo "${ECHO_T}$LINGUAS" >&6
3834 DATADIRNAME=share
3836 INSTOBJEXT=.mo
3838 GENCAT=gencat
3840 CATOBJEXT=.gmo
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
3851 if test -z "$MKINSTALLDIRS"; then
3852 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3857 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3858 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3859 # Check whether --enable-nls or --disable-nls was given.
3860 if test "${enable_nls+set}" = set; then
3861 enableval="$enable_nls"
3862 USE_NLS=$enableval
3863 else
3864 USE_NLS=yes
3866 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3867 echo "${ECHO_T}$USE_NLS" >&6
3874 # Prepare PATH_SEPARATOR.
3875 # The user is always right.
3876 if 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=:
3885 rm -f conf$$.sh
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.
3890 cat >conf$$.file <<_ASEOF
3891 #! /bin/sh
3892 exit 0
3893 _ASEOF
3894 chmod +x conf$$.file
3895 if test -x conf$$.file >/dev/null 2>&1; then
3896 ac_executable_p="test -x"
3897 else
3898 ac_executable_p="test -f"
3900 rm -f conf$$.file
3902 # Extract the first word of "msgfmt", so it can be a program name with args.
3903 set dummy msgfmt; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_path_MSGFMT+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 case "$MSGFMT" in
3910 [\\/]* | ?:[\\/]*)
3911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
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
3926 done
3927 done
3928 IFS="$ac_save_IFS"
3929 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3931 esac
3933 MSGFMT="$ac_cv_path_MSGFMT"
3934 if test "$MSGFMT" != ":"; then
3935 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3936 echo "${ECHO_T}$MSGFMT" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3942 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3943 set dummy gmsgfmt; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 case $GMSGFMT in
3950 [\\/]* | ?:[\\/]*)
3951 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
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
3965 done
3966 done
3968 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3970 esac
3972 GMSGFMT=$ac_cv_path_GMSGFMT
3974 if test -n "$GMSGFMT"; then
3975 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3976 echo "${ECHO_T}$GMSGFMT" >&6
3977 else
3978 echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3984 # Prepare PATH_SEPARATOR.
3985 # The user is always right.
3986 if 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=:
3995 rm -f conf$$.sh
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.
4000 cat >conf$$.file <<_ASEOF
4001 #! /bin/sh
4002 exit 0
4003 _ASEOF
4004 chmod +x conf$$.file
4005 if test -x conf$$.file >/dev/null 2>&1; then
4006 ac_executable_p="test -x"
4007 else
4008 ac_executable_p="test -f"
4010 rm -f conf$$.file
4012 # Extract the first word of "xgettext", so it can be a program name with args.
4013 set dummy xgettext; ac_word=$2
4014 echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4016 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 case "$XGETTEXT" in
4020 [\\/]* | ?:[\\/]*)
4021 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
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
4036 done
4037 done
4038 IFS="$ac_save_IFS"
4039 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4041 esac
4043 XGETTEXT="$ac_cv_path_XGETTEXT"
4044 if test "$XGETTEXT" != ":"; then
4045 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4046 echo "${ECHO_T}$XGETTEXT" >&6
4047 else
4048 echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4052 rm -f messages.po
4055 # Prepare PATH_SEPARATOR.
4056 # The user is always right.
4057 if 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=:
4066 rm -f conf$$.sh
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.
4071 cat >conf$$.file <<_ASEOF
4072 #! /bin/sh
4073 exit 0
4074 _ASEOF
4075 chmod +x conf$$.file
4076 if test -x conf$$.file >/dev/null 2>&1; then
4077 ac_executable_p="test -x"
4078 else
4079 ac_executable_p="test -f"
4081 rm -f conf$$.file
4083 # Extract the first word of "msgmerge", so it can be a program name with args.
4084 set dummy msgmerge; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 case "$MSGMERGE" in
4091 [\\/]* | ?:[\\/]*)
4092 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
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
4106 done
4107 done
4108 IFS="$ac_save_IFS"
4109 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4111 esac
4113 MSGMERGE="$ac_cv_path_MSGMERGE"
4114 if test "$MSGMERGE" != ":"; then
4115 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4116 echo "${ECHO_T}$MSGMERGE" >&6
4117 else
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
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
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
4130 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4131 GMSGFMT=":"
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
4139 else
4140 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4141 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4142 XGETTEXT=":"
4144 rm -f messages.po
4147 ac_config_commands="$ac_config_commands default-1"
4152 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4153 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4154 if test "${ac_cv_c_bigendian+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 # See if sys/param.h defines the BYTE_ORDER macro.
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 #include <sys/types.h>
4165 #include <sys/param.h>
4168 main ()
4170 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4171 bogus endian macros
4172 #endif
4175 return 0;
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (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.
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <sys/types.h>
4208 #include <sys/param.h>
4211 main ()
4213 #if BYTE_ORDER != BIG_ENDIAN
4214 not big endian
4215 #endif
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (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
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_cv_c_bigendian=no
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 # It does not; compile a test program.
4256 if 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
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4266 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4267 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4268 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4269 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4270 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4272 main ()
4274 _ascii (); _ebcdic ();
4276 return 0;
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (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
4304 if 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
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318 else
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4326 main ()
4328 /* Are we little or big endian? From Harbison&Steele. */
4329 union
4331 long l;
4332 char c[sizeof (long)];
4333 } u;
4334 u.l = 1;
4335 exit (u.c[sizeof (long) - 1] == 1);
4337 _ACEOF
4338 rm -f conftest$ac_exeext
4339 if { (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
4350 else
4351 echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 ( exit $ac_status )
4356 ac_cv_c_bigendian=yes
4358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4365 case $ac_cv_c_bigendian in
4366 yes)
4368 cat >>confdefs.h <<\_ACEOF
4369 #define WORDS_BIGENDIAN 1
4370 _ACEOF
4375 { { echo "$as_me:$LINENO: error: unknown endianness
4376 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4377 echo "$as_me: error: unknown endianness
4378 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4379 { (exit 1); exit 1; }; } ;;
4380 esac
4387 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
4388 NATIVE_LINKER_TRUE=
4389 NATIVE_LINKER_FALSE='#'
4390 else
4391 NATIVE_LINKER_TRUE='#'
4392 NATIVE_LINKER_FALSE=
4397 if test "$GCC" = yes; then
4398 GCC_TRUE=
4399 GCC_FALSE='#'
4400 else
4401 GCC_TRUE='#'
4402 GCC_FALSE=
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='#'
4416 else
4417 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
4418 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
4423 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4425 # Check whether --enable-werror or --disable-werror was given.
4426 if 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
4432 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4433 { (exit 1); exit 1; }; } ;;
4434 esac
4437 # Enable -Werror by default when using gcc
4438 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4439 ERROR_ON_WARNING=yes
4442 NO_WERROR=
4443 if test "${ERROR_ON_WARNING}" = yes ; then
4444 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4445 NO_WERROR="-Wno-error"
4448 if test "${GCC}" = yes ; then
4449 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4452 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4453 if 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"`;;
4465 esac
4468 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4469 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4476 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`
4479 LFS_CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
4483 for ac_func in pread
4485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4486 echo "$as_me:$LINENO: checking for $ac_func" >&5
4487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4488 if eval "test \"\${$as_ac_var+set}\" = set"; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h. */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>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
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. */
4506 #ifdef __STDC__
4507 # include <limits.h>
4508 #else
4509 # include <assert.h>
4510 #endif
4512 #undef $ac_func
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 #ifdef __cplusplus
4516 extern "C"
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. */
4521 char $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)
4526 choke me
4527 #else
4528 char (*f) () = $ac_func;
4529 #endif
4530 #ifdef __cplusplus
4532 #endif
4535 main ()
4537 return f != $ac_func;
4539 return 0;
4541 _ACEOF
4542 rm -f conftest.$ac_objext conftest$ac_exeext
4543 if { (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"
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 eval "$as_ac_var=no"
4571 rm -f conftest.err conftest.$ac_objext \
4572 conftest$ac_exeext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4576 if 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
4581 else
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" ;;
4588 esac
4591 done
4595 ac_ext=cc
4596 ac_cpp='$CXXCPP $CPPFLAGS'
4597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4603 ac_ext=cc
4604 ac_cpp='$CXXCPP $CPPFLAGS'
4605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4608 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4609 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4610 if test -z "$CXXCPP"; then
4611 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 # Double quotes because CXXCPP needs to be expanded
4615 for CXXCPP in "$CXX -E" "/lib/cpp"
4617 ac_preproc_ok=false
4618 for ac_cxx_preproc_warn_flag in '' yes
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
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>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
4639 if { (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=
4653 else
4654 ac_cpp_err=yes
4656 if test -z "$ac_cpp_err"; then
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 # Broken: fails on valid input.
4663 continue
4665 rm -f conftest.err conftest.$ac_ext
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
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #include <ac_nonexistent.h>
4676 _ACEOF
4677 if { (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=
4691 else
4692 ac_cpp_err=yes
4694 if test -z "$ac_cpp_err"; then
4695 # Broken: success on invalid input.
4696 continue
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 # Passes both tests.
4702 ac_preproc_ok=:
4703 break
4705 rm -f conftest.err conftest.$ac_ext
4707 done
4708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4709 rm -f conftest.err conftest.$ac_ext
4710 if $ac_preproc_ok; then
4711 break
4714 done
4715 ac_cv_prog_CXXCPP=$CXXCPP
4718 CXXCPP=$ac_cv_prog_CXXCPP
4719 else
4720 ac_cv_prog_CXXCPP=$CXXCPP
4722 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4723 echo "${ECHO_T}$CXXCPP" >&6
4724 ac_preproc_ok=false
4725 for ac_cxx_preproc_warn_flag in '' yes
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
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>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
4746 if { (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=
4760 else
4761 ac_cpp_err=yes
4763 if test -z "$ac_cpp_err"; then
4765 else
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4769 # Broken: fails on valid input.
4770 continue
4772 rm -f conftest.err conftest.$ac_ext
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
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 #include <ac_nonexistent.h>
4783 _ACEOF
4784 if { (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=
4798 else
4799 ac_cpp_err=yes
4801 if test -z "$ac_cpp_err"; then
4802 # Broken: success on invalid input.
4803 continue
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4808 # Passes both tests.
4809 ac_preproc_ok=:
4810 break
4812 rm -f conftest.err conftest.$ac_ext
4814 done
4815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4816 rm -f conftest.err conftest.$ac_ext
4817 if $ac_preproc_ok; then
4819 else
4820 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4821 See \`config.log' for more details." >&5
4822 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4823 See \`config.log' for more details." >&2;}
4824 { (exit 1); exit 1; }; }
4827 ac_ext=cc
4828 ac_cpp='$CXXCPP $CPPFLAGS'
4829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4834 echo "$as_me:$LINENO: checking for egrep" >&5
4835 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4836 if test "${ac_cv_prog_egrep+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
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'
4844 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4845 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4846 EGREP=$ac_cv_prog_egrep
4849 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4851 if test "${ac_cv_header_stdc+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 #include <stdlib.h>
4861 #include <stdarg.h>
4862 #include <string.h>
4863 #include <float.h>
4866 main ()
4870 return 0;
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (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
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 ac_cv_header_stdc=no
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4904 if 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
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 #include <string.h>
4914 _ACEOF
4915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4916 $EGREP "memchr" >/dev/null 2>&1; then
4918 else
4919 ac_cv_header_stdc=no
4921 rm -f conftest*
4925 if 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
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <stdlib.h>
4935 _ACEOF
4936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937 $EGREP "free" >/dev/null 2>&1; then
4939 else
4940 ac_cv_header_stdc=no
4942 rm -f conftest*
4946 if 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
4950 else
4951 cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h. */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>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
4969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4971 main ()
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);
4980 _ACEOF
4981 rm -f conftest$ac_exeext
4982 if { (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
4993 else
4994 echo "$as_me: program exited with status $ac_status" >&5
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4998 ( exit $ac_status )
4999 ac_cv_header_stdc=no
5001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5005 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5006 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5007 if test $ac_cv_header_stdc = yes; then
5009 cat >>confdefs.h <<\_ACEOF
5010 #define STDC_HEADERS 1
5011 _ACEOF
5015 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5025 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5026 inttypes.h stdint.h unistd.h
5028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5029 echo "$as_me:$LINENO: checking for $ac_header" >&5
5030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 $ac_includes_default
5042 #include <$ac_header>
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (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"
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 eval "$as_ac_Header=no"
5073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5077 if 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
5084 done
5089 for ac_header in tr1/unordered_set tr1/unordered_map
5091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5093 echo "$as_me:$LINENO: checking for $ac_header" >&5
5094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5100 else
5101 # Is the header compilable?
5102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 $ac_includes_default
5111 #include <$ac_header>
5112 _ACEOF
5113 rm -f conftest.$ac_objext
5114 if { (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
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 ac_header_compiler=no
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5144 echo "${ECHO_T}$ac_header_compiler" >&6
5146 # Is the header present?
5147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5149 cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h. */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 #include <$ac_header>
5156 _ACEOF
5157 if { (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=
5171 else
5172 ac_cpp_err=yes
5174 if test -z "$ac_cpp_err"; then
5175 ac_header_preproc=yes
5176 else
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5180 ac_header_preproc=no
5182 rm -f conftest.err conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5184 echo "${ECHO_T}$ac_header_preproc" >&6
5186 # So? What about this header?
5187 case $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
5190 echo "$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
5192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5193 ac_header_preproc=yes
5195 no:yes:* )
5196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5197 echo "$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
5199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5201 echo "$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
5203 echo "$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
5205 echo "$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
5207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5209 cat <<\_ASBOX
5210 ## ------------------------------------------ ##
5211 ## Report this to the AC_PACKAGE_NAME lists. ##
5212 ## ------------------------------------------ ##
5213 _ASBOX
5215 sed "s/^/$as_me: WARNING: /" >&2
5217 esac
5218 echo "$as_me:$LINENO: checking for $ac_header" >&5
5219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 eval "$as_ac_Header=\$ac_header_preproc"
5225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5229 if 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
5236 done
5240 for ac_header in ext/hash_map ext/hash_set
5242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244 echo "$as_me:$LINENO: checking for $ac_header" >&5
5245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5251 else
5252 # Is the header compilable?
5253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5255 cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h. */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 $ac_includes_default
5262 #include <$ac_header>
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (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
5287 else
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 ac_header_compiler=no
5293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5295 echo "${ECHO_T}$ac_header_compiler" >&6
5297 # Is the header present?
5298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <$ac_header>
5307 _ACEOF
5308 if { (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=
5322 else
5323 ac_cpp_err=yes
5325 if test -z "$ac_cpp_err"; then
5326 ac_header_preproc=yes
5327 else
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 ac_header_preproc=no
5333 rm -f conftest.err conftest.$ac_ext
5334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5335 echo "${ECHO_T}$ac_header_preproc" >&6
5337 # So? What about this header?
5338 case $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
5341 echo "$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
5343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5344 ac_header_preproc=yes
5346 no:yes:* )
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5348 echo "$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
5350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5352 echo "$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
5354 echo "$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
5356 echo "$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
5358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5360 cat <<\_ASBOX
5361 ## ------------------------------------------ ##
5362 ## Report this to the AC_PACKAGE_NAME lists. ##
5363 ## ------------------------------------------ ##
5364 _ASBOX
5366 sed "s/^/$as_me: WARNING: /" >&2
5368 esac
5369 echo "$as_me:$LINENO: checking for $ac_header" >&5
5370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 eval "$as_ac_Header=\$ac_header_preproc"
5376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5380 if 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
5387 done
5390 cat >conftest.$ac_ext <<_ACEOF
5392 class c { public: template<int i> void fn(); };
5393 template<int i> void foo(c cv) { cv.fn<i>(); }
5394 template void foo<1>(c cv);
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (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
5419 cat >>confdefs.h <<\_ACEOF
5420 #define HAVE_MEMBER_TEMPLATE_SPECIFICATIONS
5421 _ACEOF
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5438 echo $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.
5440 if test "${enable_maintainer_mode+set}" = set; then
5441 enableval="$enable_maintainer_mode"
5442 USE_MAINTAINER_MODE=$enableval
5443 else
5444 USE_MAINTAINER_MODE=no
5446 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5447 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5450 if test $USE_MAINTAINER_MODE = yes; then
5451 MAINTAINER_MODE_TRUE=
5452 MAINTAINER_MODE_FALSE='#'
5453 else
5454 MAINTAINER_MODE_TRUE='#'
5455 MAINTAINER_MODE_FALSE=
5458 MAINT=$MAINTAINER_MODE_TRUE
5462 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
5463 cat >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.
5470 # config.status only pays attention to the cache file if you give it
5471 # the --recheck option to rerun configure.
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.
5477 _ACEOF
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.
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"
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"
5499 esac;
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
5508 if 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"
5516 rm -f confcache
5518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5519 # Let make expand exec_prefix.
5520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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).
5526 if test "x$srcdir" = x.; then
5527 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5528 s/:*\$(srcdir):*/:/;
5529 s/:*\${srcdir}:*/:/;
5530 s/:*@srcdir@:*/:/;
5531 s/^\([^=]*=[ ]*\):*/\1/;
5532 s/:*$//;
5533 s/^[^=]*=[ ]*$//;
5537 DEFS=-DHAVE_CONFIG_H
5539 ac_libobjs=
5540 ac_ltlibobjs=
5541 for 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'
5548 done
5549 LIBOBJS=$ac_libobjs
5551 LTLIBOBJS=$ac_ltlibobjs
5554 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5555 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5556 Usually this means the macro was only invoked conditionally." >&5
5557 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5558 Usually this means the macro was only invoked conditionally." >&2;}
5559 { (exit 1); exit 1; }; }
5561 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5562 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5563 Usually this means the macro was only invoked conditionally." >&5
5564 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5565 Usually this means the macro was only invoked conditionally." >&2;}
5566 { (exit 1); exit 1; }; }
5568 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5569 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5570 Usually this means the macro was only invoked conditionally." >&5
5571 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5572 Usually this means the macro was only invoked conditionally." >&2;}
5573 { (exit 1); exit 1; }; }
5575 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
5576 { { echo "$as_me:$LINENO: error: conditional \"NATIVE_LINKER\" was never defined.
5577 Usually this means the macro was only invoked conditionally." >&5
5578 echo "$as_me: error: conditional \"NATIVE_LINKER\" was never defined.
5579 Usually this means the macro was only invoked conditionally." >&2;}
5580 { (exit 1); exit 1; }; }
5582 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
5583 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
5584 Usually this means the macro was only invoked conditionally." >&5
5585 echo "$as_me: error: conditional \"GCC\" was never defined.
5586 Usually this means the macro was only invoked conditionally." >&2;}
5587 { (exit 1); exit 1; }; }
5589 if 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.
5591 Usually this means the macro was only invoked conditionally." >&5
5592 echo "$as_me: error: conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
5593 Usually this means the macro was only invoked conditionally." >&2;}
5594 { (exit 1); exit 1; }; }
5596 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5597 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5598 Usually this means the macro was only invoked conditionally." >&5
5599 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5600 Usually this means the macro was only invoked conditionally." >&2;}
5601 { (exit 1); exit 1; }; }
5604 : ${CONFIG_STATUS=./config.status}
5605 ac_clean_files_save=$ac_clean_files
5606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5607 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5608 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5609 cat >$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.
5616 debug=false
5617 ac_cs_recheck=false
5618 ac_cs_silent=false
5619 SHELL=\${CONFIG_SHELL-$SHELL}
5620 _ACEOF
5622 cat >>$CONFIG_STATUS <<\_ACEOF
5623 ## --------------------- ##
5624 ## M4sh Initialization. ##
5625 ## --------------------- ##
5627 # Be Bourne compatible
5628 if 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+"$@"}'='"$@"'
5634 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5635 set -o posix
5637 DUALCASE=1; export DUALCASE # for MKS sh
5639 # Support unset when possible.
5640 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5641 as_unset=unset
5642 else
5643 as_unset=false
5647 # Work around bugs in pre-3.0 UWIN ksh.
5648 $as_unset ENV MAIL MAILPATH
5649 PS1='$ '
5650 PS2='> '
5651 PS4='+ '
5653 # NLS nuisances.
5654 for 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
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
5664 done
5666 # Required to use basename.
5667 if expr a : '\(a\)' >/dev/null 2>&1; then
5668 as_expr=expr
5669 else
5670 as_expr=false
5673 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5674 as_basename=basename
5675 else
5676 as_basename=false
5680 # Name of the executable.
5681 as_me=`$as_basename "$0" ||
5682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5683 X"$0" : 'X\(//\)$' \| \
5684 X"$0" : 'X\(/\)$' \| \
5685 . : '\(.\)' 2>/dev/null ||
5686 echo X/"$0" |
5687 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5688 /^X\/\(\/\/\)$/{ s//\1/; q; }
5689 /^X\/\(\/\).*/{ s//\1/; q; }
5690 s/.*/./; q'`
5693 # PATH needs CR, and LINENO needs CR and PATH.
5694 # Avoid depending upon Character Ranges.
5695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5698 as_cr_digits='0123456789'
5699 as_cr_alnum=$as_cr_Letters$as_cr_digits
5701 # The user is always right.
5702 if 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=:
5711 rm -f conf$$.sh
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
5725 for as_dir in $PATH
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5730 done
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
5739 if test ! -f "$as_myself"; then
5740 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5741 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5742 { (exit 1); exit 1; }; }
5744 case $CONFIG_SHELL in
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
5768 done
5770 esac
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 '
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
5792 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5793 { (exit 1); exit 1; }; }
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
5804 case `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= ;;
5809 esac
5811 if expr a : '\(a\)' >/dev/null 2>&1; then
5812 as_expr=expr
5813 else
5814 as_expr=false
5817 rm -f conf$$ conf$$.exe conf$$.file
5818 echo >conf$$.file
5819 if 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'
5828 elif ln conf$$.file conf$$ 2>/dev/null; then
5829 as_ln_s=ln
5830 else
5831 as_ln_s='cp -p'
5833 rm -f conf$$ conf$$.exe conf$$.file
5835 if mkdir -p . 2>/dev/null; then
5836 as_mkdir_p=:
5837 else
5838 test -d ./-p && rmdir ./-p
5839 as_mkdir_p=false
5842 as_executable_p="test -f"
5844 # Sed expression to map a string onto a valid CPP name.
5845 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5847 # Sed expression to map a string onto a valid variable name.
5848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5851 # IFS
5852 # We need space, tab and new line, in precisely that order.
5853 as_nl='
5855 IFS=" $as_nl"
5857 # CDPATH.
5858 $as_unset CDPATH
5860 exec 6>&1
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.
5865 exec 5>>config.log
5867 echo
5868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5869 ## Running $as_me. ##
5870 _ASBOX
5871 } >&5
5872 cat >&5 <<_CSEOF
5874 This file was extended by $as_me, which was
5875 generated by GNU Autoconf 2.59. Invocation command line was
5877 CONFIG_FILES = $CONFIG_FILES
5878 CONFIG_HEADERS = $CONFIG_HEADERS
5879 CONFIG_LINKS = $CONFIG_LINKS
5880 CONFIG_COMMANDS = $CONFIG_COMMANDS
5881 $ $0 $@
5883 _CSEOF
5884 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5885 echo >&5
5886 _ACEOF
5888 # Files that config.status was made for.
5889 if test -n "$ac_config_files"; then
5890 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5893 if test -n "$ac_config_headers"; then
5894 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5897 if test -n "$ac_config_links"; then
5898 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5901 if test -n "$ac_config_commands"; then
5902 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5905 cat >>$CONFIG_STATUS <<\_ACEOF
5907 ac_cs_usage="\
5908 \`$as_me' instantiates files from templates according to the
5909 current configuration.
5911 Usage: $0 [OPTIONS] [FILE]...
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
5923 Configuration files:
5924 $config_files
5926 Configuration headers:
5927 $config_headers
5929 Configuration commands:
5930 $config_commands
5932 Report bugs to <bug-autoconf@gnu.org>."
5933 _ACEOF
5935 cat >>$CONFIG_STATUS <<_ACEOF
5936 ac_cs_version="\\
5937 config.status
5938 configured by $0, generated by GNU Autoconf 2.59,
5939 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5941 Copyright (C) 2003 Free Software Foundation, Inc.
5942 This config.status script is free software; the Free Software Foundation
5943 gives unlimited permission to copy, distribute and modify it."
5944 srcdir=$srcdir
5945 INSTALL="$INSTALL"
5946 _ACEOF
5948 cat >>$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.
5951 ac_need_defaults=:
5952 while test $# != 0
5954 case $1 in
5955 --*=*)
5956 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5957 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5958 ac_shift=:
5961 ac_option=$1
5962 ac_optarg=$2
5963 ac_shift=shift
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
5971 case $ac_option in
5972 # Handling of the options.
5973 _ACEOF
5974 cat >>$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
5982 Try \`$0 --help' for more information." >&5
5983 echo "$as_me: error: ambiguous option: $1
5984 Try \`$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=: ;;
6002 # This is an error.
6003 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6004 Try \`$0 --help' for more information." >&5
6005 echo "$as_me: error: unrecognized option: $1
6006 Try \`$0 --help' for more information." >&2;}
6007 { (exit 1); exit 1; }; } ;;
6009 *) ac_config_targets="$ac_config_targets $1" ;;
6011 esac
6012 shift
6013 done
6015 ac_configure_extra_args=
6017 if $ac_cs_silent; then
6018 exec 6>/dev/null
6019 ac_configure_extra_args="$ac_configure_extra_args --silent"
6022 _ACEOF
6023 cat >>$CONFIG_STATUS <<_ACEOF
6024 if \$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
6029 _ACEOF
6031 cat >>$CONFIG_STATUS <<_ACEOF
6033 # INIT-COMMANDS section.
6036 AMDEP_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%}"
6045 _ACEOF
6049 cat >>$CONFIG_STATUS <<\_ACEOF
6050 for ac_config_target in $ac_config_targets
6052 case "$ac_config_target" in
6053 # Handling of arguments.
6054 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6055 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
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
6061 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6062 { (exit 1); exit 1; }; };;
6063 esac
6064 done
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.
6070 if $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
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 ||
6082 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6083 trap '{ (exit 1); exit 1; }' 1 2 13 15
6086 # Create a (secure) tmp directory for tmp files.
6089 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6090 test -n "$tmp" && test -d "$tmp"
6091 } ||
6093 tmp=./confstat$$-$RANDOM
6094 (umask 077 && mkdir $tmp)
6095 } ||
6097 echo "$me: cannot create a temporary directory in ." >&2
6098 { (exit 1); exit 1; }
6101 _ACEOF
6103 cat >>$CONFIG_STATUS <<_ACEOF
6106 # CONFIG_FILES section.
6109 # No need to generate the scripts if there are no CONFIG_FILES.
6110 # This happens for instance when ./config.status config.h
6111 if 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
6115 s,@SHELL@,$SHELL,;t t
6116 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6117 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6118 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6119 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6120 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6121 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6122 s,@exec_prefix@,$exec_prefix,;t t
6123 s,@prefix@,$prefix,;t t
6124 s,@program_transform_name@,$program_transform_name,;t t
6125 s,@bindir@,$bindir,;t t
6126 s,@sbindir@,$sbindir,;t t
6127 s,@libexecdir@,$libexecdir,;t t
6128 s,@datadir@,$datadir,;t t
6129 s,@sysconfdir@,$sysconfdir,;t t
6130 s,@sharedstatedir@,$sharedstatedir,;t t
6131 s,@localstatedir@,$localstatedir,;t t
6132 s,@libdir@,$libdir,;t t
6133 s,@includedir@,$includedir,;t t
6134 s,@oldincludedir@,$oldincludedir,;t t
6135 s,@infodir@,$infodir,;t t
6136 s,@mandir@,$mandir,;t t
6137 s,@build_alias@,$build_alias,;t t
6138 s,@host_alias@,$host_alias,;t t
6139 s,@target_alias@,$target_alias,;t t
6140 s,@DEFS@,$DEFS,;t t
6141 s,@ECHO_C@,$ECHO_C,;t t
6142 s,@ECHO_N@,$ECHO_N,;t t
6143 s,@ECHO_T@,$ECHO_T,;t t
6144 s,@LIBS@,$LIBS,;t t
6145 s,@build@,$build,;t t
6146 s,@build_cpu@,$build_cpu,;t t
6147 s,@build_vendor@,$build_vendor,;t t
6148 s,@build_os@,$build_os,;t t
6149 s,@host@,$host,;t t
6150 s,@host_cpu@,$host_cpu,;t t
6151 s,@host_vendor@,$host_vendor,;t t
6152 s,@host_os@,$host_os,;t t
6153 s,@target@,$target,;t t
6154 s,@target_cpu@,$target_cpu,;t t
6155 s,@target_vendor@,$target_vendor,;t t
6156 s,@target_os@,$target_os,;t t
6157 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6158 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6159 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6160 s,@CYGPATH_W@,$CYGPATH_W,;t t
6161 s,@PACKAGE@,$PACKAGE,;t t
6162 s,@VERSION@,$VERSION,;t t
6163 s,@ACLOCAL@,$ACLOCAL,;t t
6164 s,@AUTOCONF@,$AUTOCONF,;t t
6165 s,@AUTOMAKE@,$AUTOMAKE,;t t
6166 s,@AUTOHEADER@,$AUTOHEADER,;t t
6167 s,@MAKEINFO@,$MAKEINFO,;t t
6168 s,@install_sh@,$install_sh,;t t
6169 s,@STRIP@,$STRIP,;t t
6170 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6171 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6172 s,@mkdir_p@,$mkdir_p,;t t
6173 s,@AWK@,$AWK,;t t
6174 s,@SET_MAKE@,$SET_MAKE,;t t
6175 s,@am__leading_dot@,$am__leading_dot,;t t
6176 s,@AMTAR@,$AMTAR,;t t
6177 s,@am__tar@,$am__tar,;t t
6178 s,@am__untar@,$am__untar,;t t
6179 s,@TARGETOBJS@,$TARGETOBJS,;t t
6180 s,@CC@,$CC,;t t
6181 s,@CFLAGS@,$CFLAGS,;t t
6182 s,@LDFLAGS@,$LDFLAGS,;t t
6183 s,@CPPFLAGS@,$CPPFLAGS,;t t
6184 s,@ac_ct_CC@,$ac_ct_CC,;t t
6185 s,@EXEEXT@,$EXEEXT,;t t
6186 s,@OBJEXT@,$OBJEXT,;t t
6187 s,@DEPDIR@,$DEPDIR,;t t
6188 s,@am__include@,$am__include,;t t
6189 s,@am__quote@,$am__quote,;t t
6190 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6191 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6192 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6193 s,@CCDEPMODE@,$CCDEPMODE,;t t
6194 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6195 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6196 s,@CXX@,$CXX,;t t
6197 s,@CXXFLAGS@,$CXXFLAGS,;t t
6198 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6199 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6200 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6201 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6202 s,@YACC@,$YACC,;t t
6203 s,@RANLIB@,$RANLIB,;t t
6204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6205 s,@LN_S@,$LN_S,;t t
6206 s,@USE_NLS@,$USE_NLS,;t t
6207 s,@LIBINTL@,$LIBINTL,;t t
6208 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6209 s,@INCINTL@,$INCINTL,;t t
6210 s,@XGETTEXT@,$XGETTEXT,;t t
6211 s,@GMSGFMT@,$GMSGFMT,;t t
6212 s,@POSUB@,$POSUB,;t t
6213 s,@CATALOGS@,$CATALOGS,;t t
6214 s,@DATADIRNAME@,$DATADIRNAME,;t t
6215 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6216 s,@GENCAT@,$GENCAT,;t t
6217 s,@CATOBJEXT@,$CATOBJEXT,;t t
6218 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6219 s,@MSGFMT@,$MSGFMT,;t t
6220 s,@MSGMERGE@,$MSGMERGE,;t t
6221 s,@NATIVE_LINKER_TRUE@,$NATIVE_LINKER_TRUE,;t t
6222 s,@NATIVE_LINKER_FALSE@,$NATIVE_LINKER_FALSE,;t t
6223 s,@GCC_TRUE@,$GCC_TRUE,;t t
6224 s,@GCC_FALSE@,$GCC_FALSE,;t t
6225 s,@FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@,$FN_PTRS_IN_SO_WITHOUT_PIC_TRUE,;t t
6226 s,@FN_PTRS_IN_SO_WITHOUT_PIC_FALSE@,$FN_PTRS_IN_SO_WITHOUT_PIC_FALSE,;t t
6227 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6228 s,@NO_WERROR@,$NO_WERROR,;t t
6229 s,@WARN_CXXFLAGS@,$WARN_CXXFLAGS,;t t
6230 s,@LFS_CXXFLAGS@,$LFS_CXXFLAGS,;t t
6231 s,@LIBOBJS@,$LIBOBJS,;t t
6232 s,@CXXCPP@,$CXXCPP,;t t
6233 s,@EGREP@,$EGREP,;t t
6234 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6235 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6236 s,@MAINT@,$MAINT,;t t
6237 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6238 CEOF
6240 _ACEOF
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
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"
6271 ac_sed_frag=`expr $ac_sed_frag + 1`
6272 ac_beg=$ac_end
6273 ac_end=`expr $ac_end + $ac_max_sed_lines`
6275 done
6276 if test -z "$ac_sed_cmds"; then
6277 ac_sed_cmds=cat
6279 fi # test -n "$CONFIG_FILES"
6281 _ACEOF
6282 cat >>$CONFIG_STATUS <<\_ACEOF
6283 for 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
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 ||
6302 echo 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 ||
6321 echo 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
6330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6331 { (exit 1); exit 1; }; }; }
6333 ac_builddir=.
6335 if 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'`
6339 else
6340 ac_dir_suffix= ac_top_builddir=
6343 case $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 ;;
6357 esac
6359 # Do not use `cd foo && pwd` to compute absolute paths, because
6360 # the directories may not exist.
6361 case `pwd` in
6362 .) ac_abs_builddir="$ac_dir";;
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;;
6369 esac
6370 case $ac_abs_builddir in
6371 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
6378 esac
6379 case $ac_abs_builddir in
6380 .) ac_abs_srcdir=$ac_srcdir;;
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;;
6387 esac
6388 case $ac_abs_builddir in
6389 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
6396 esac
6399 case $INSTALL in
6400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6401 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6402 esac
6404 if test x"$ac_file" != x-; then
6405 { echo "$as_me:$LINENO: creating $ac_file" >&5
6406 echo "$as_me: creating $ac_file" >&6;}
6407 rm -f "$ac_file"
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. "
6417 configure_input=$configure_input"Generated from `echo $ac_file_in |
6418 sed 's,.*/,,'` by configure."
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
6429 echo "$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
6442 echo "$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
6448 cat >>$CONFIG_STATUS <<_ACEOF
6449 sed "$ac_vpsub
6450 $extrasub
6451 _ACEOF
6452 cat >>$CONFIG_STATUS <<\_ACEOF
6454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6455 s,@configure_input@,$configure_input,;t t
6456 s,@srcdir@,$ac_srcdir,;t t
6457 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6458 s,@top_srcdir@,$ac_top_srcdir,;t t
6459 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6460 s,@builddir@,$ac_builddir,;t t
6461 s,@abs_builddir@,$ac_abs_builddir,;t t
6462 s,@top_builddir@,$ac_top_builddir,;t t
6463 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6464 s,@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
6474 done
6475 _ACEOF
6476 cat >>$CONFIG_STATUS <<\_ACEOF
6479 # CONFIG_HEADER section.
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.
6485 # ac_d sets the value in "#define NAME VALUE" lines.
6486 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6487 ac_dB='[ ].*$,\1#\2'
6488 ac_dC=' '
6489 ac_dD=',;t'
6490 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6491 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6492 ac_uB='$,\1#\2define\3'
6493 ac_uC=' '
6494 ac_uD=',;t'
6496 for 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
6508 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6509 echo "$as_me: creating $ac_file" >&6;}
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
6520 echo "$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
6534 echo "$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
6542 _ACEOF
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.
6551 rm -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.
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'.
6558 cat >confdef2sed.sed <<\_ACEOF
6559 s/[\\&,]/\\&/g
6560 s,[\\$`],\\&,g
6561 t clear
6562 : clear
6563 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6564 t end
6565 s,^[ ]*#[ ]*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.
6571 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6572 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6573 rm -f confdef2sed.sed
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.
6578 cat >>conftest.undefs <<\_ACEOF
6579 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6580 _ACEOF
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).
6584 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6585 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6586 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6587 echo ' :' >>$CONFIG_STATUS
6588 rm -f conftest.tail
6589 while grep . conftest.defines >/dev/null
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
6607 done
6608 rm -f conftest.defines
6609 echo ' fi # grep' >>$CONFIG_STATUS
6610 echo >>$CONFIG_STATUS
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).
6614 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6615 rm -f conftest.tail
6616 while grep . conftest.undefs >/dev/null
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
6634 done
6635 rm -f conftest.undefs
6637 cat >>$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
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
6651 echo "$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 ||
6659 echo 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 ||
6678 echo 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
6687 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6688 { (exit 1); exit 1; }; }; }
6690 rm -f $ac_file
6691 mv $tmp/config.h $ac_file
6693 else
6694 cat $tmp/config.h
6695 rm -f $tmp/config.h
6697 # Compute $ac_file's index in $config_headers.
6698 _am_stamp_count=1
6699 for _am_header in $config_headers :; do
6700 case $_am_header in
6701 $ac_file | $ac_file:* )
6702 break ;;
6704 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6705 esac
6706 done
6707 echo "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 ||
6713 echo 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
6719 done
6720 _ACEOF
6721 cat >>$CONFIG_STATUS <<\_ACEOF
6724 # CONFIG_COMMANDS section.
6726 for 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 ||
6735 echo 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 ||
6754 echo 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
6763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6764 { (exit 1); exit 1; }; }; }
6766 ac_builddir=.
6768 if 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'`
6772 else
6773 ac_dir_suffix= ac_top_builddir=
6776 case $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 ;;
6790 esac
6792 # Do not use `cd foo && pwd` to compute absolute paths, because
6793 # the directories may not exist.
6794 case `pwd` in
6795 .) ac_abs_builddir="$ac_dir";;
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;;
6802 esac
6803 case $ac_abs_builddir in
6804 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
6811 esac
6812 case $ac_abs_builddir in
6813 .) ac_abs_srcdir=$ac_srcdir;;
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;;
6820 esac
6821 case $ac_abs_builddir in
6822 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
6829 esac
6832 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6833 echo "$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 ||
6851 echo 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
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 ||
6884 echo 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 ||
6903 echo 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
6912 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6913 { (exit 1); exit 1; }; }; }
6915 # echo "creating $dirpart/$file"
6916 echo '# dummy' > "$dirpart/$file"
6917 done
6918 done
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"
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'
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"
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"
6999 done
7001 CATALOGS=
7002 if test -n "$INST_LINGUAS"; then
7003 for lang in $INST_LINGUAS; do
7004 CATALOGS="$CATALOGS $lang.gmo"
7005 done
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
7016 done
7019 esac
7020 done ;;
7021 esac
7022 done
7023 _ACEOF
7025 cat >>$CONFIG_STATUS <<\_ACEOF
7027 { (exit 0); exit 0; }
7028 _ACEOF
7029 chmod +x $CONFIG_STATUS
7030 ac_clean_files=$ac_clean_files_save
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.
7041 if 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; }