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