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