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