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