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