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