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