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