Automatic date update in version.in
[deliverable/binutils-gdb.git] / gold / configure
CommitLineData
bae7f79e
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69 for gold 0.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
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.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
bae7f79e
ILT
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bae7f79e 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
bae7f79e 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
bae7f79e 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
bae7f79e 301
81ecdfbb
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bae7f79e
ILT
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bae7f79e
ILT
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
bae7f79e 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
bae7f79e
ILT
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
bae7f79e 456
bae7f79e
ILT
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
bae7f79e 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
bae7f79e 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
bae7f79e 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bae7f79e 482 t loop
81ecdfbb 483 s/-\n.*//
bae7f79e 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
bae7f79e 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
bae7f79e
ILT
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
bae7f79e
ILT
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
bae7f79e
ILT
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
bae7f79e 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
bae7f79e 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
bae7f79e 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
bae7f79e 533 fi
bae7f79e 534else
d0ac1c44 535 as_ln_s='cp -pR'
bae7f79e 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
bae7f79e
ILT
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
bae7f79e
ILT
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
bae7f79e
ILT
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
bae7f79e
ILT
559
560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
bae7f79e
ILT
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
bae7f79e
ILT
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
bae7f79e 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
bae7f79e
ILT
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
bae7f79e
ILT
576
577# Identity of this package.
8486ee48
ILT
578PACKAGE_NAME='gold'
579PACKAGE_TARNAME='gold'
580PACKAGE_VERSION='0.1'
581PACKAGE_STRING='gold 0.1'
582PACKAGE_BUGREPORT=''
81ecdfbb 583PACKAGE_URL=''
bae7f79e
ILT
584
585ac_unique_file="gold.cc"
54dc6425
ILT
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
81ecdfbb 589#ifdef HAVE_SYS_TYPES_H
54dc6425
ILT
590# include <sys/types.h>
591#endif
81ecdfbb 592#ifdef HAVE_SYS_STAT_H
54dc6425
ILT
593# include <sys/stat.h>
594#endif
81ecdfbb 595#ifdef STDC_HEADERS
54dc6425
ILT
596# include <stdlib.h>
597# include <stddef.h>
598#else
81ecdfbb 599# ifdef HAVE_STDLIB_H
54dc6425
ILT
600# include <stdlib.h>
601# endif
602#endif
81ecdfbb
RW
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
54dc6425
ILT
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
81ecdfbb 609#ifdef HAVE_STRINGS_H
54dc6425
ILT
610# include <strings.h>
611#endif
81ecdfbb 612#ifdef HAVE_INTTYPES_H
54dc6425 613# include <inttypes.h>
54dc6425 614#endif
81ecdfbb
RW
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
54dc6425
ILT
619# include <unistd.h>
620#endif"
621
81ecdfbb
RW
622ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625MAINT
626MAINTAINER_MODE_FALSE
627MAINTAINER_MODE_TRUE
0bf402d5 628DLOPEN_LIBS
81ecdfbb 629CXXCPP
ae447ddd
CC
630HAVE_NO_USE_LINKER_PLUGIN_FALSE
631HAVE_NO_USE_LINKER_PLUGIN_TRUE
632HAVE_PUBNAMES_FALSE
633HAVE_PUBNAMES_TRUE
c8dc28bc
CC
634THREADS_FALSE
635THREADS_TRUE
636PTHREAD_CFLAGS
637PTHREAD_LIBS
638PTHREAD_CC
639ax_pthread_config
640SED
918357b9
L
641zlibinc
642zlibdir
81ecdfbb
RW
643LIBOBJS
644LFS_CFLAGS
dc87f620
ILT
645GOLD_LDADD
646GOLD_LDFLAGS
81ecdfbb 647WARN_CXXFLAGS
6757cf57 648WARN_WRITE_STRINGS
81ecdfbb 649NO_WERROR
c5da1932 650WARN_CFLAGS_FOR_BUILD
81ecdfbb 651WARN_CFLAGS
ebb300b2
CC
652IFUNC_STATIC_FALSE
653IFUNC_STATIC_TRUE
7223e9ca
ILT
654IFUNC_FALSE
655IFUNC_TRUE
81ecdfbb 656RANDOM_SEED_CFLAGS
81ecdfbb
RW
657TLS_DESCRIPTORS_FALSE
658TLS_DESCRIPTORS_TRUE
659TLS_GNU2_DIALECT_FALSE
660TLS_GNU2_DIALECT_TRUE
661OMP_SUPPORT_FALSE
662OMP_SUPPORT_TRUE
663STATIC_TLS_FALSE
664STATIC_TLS_TRUE
665TLS_FALSE
666TLS_TRUE
2b64b551 667MERGE_CONSTANTS_FLAG
6c0005b8
L
668CFLAGS_CF_PROTECTION_FALSE
669CFLAGS_CF_PROTECTION_TRUE
670GCC9_FALSE
671GCC9_TRUE
81ecdfbb
RW
672MCMODEL_MEDIUM_FALSE
673MCMODEL_MEDIUM_TRUE
674FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
675FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
328c7c2f
ILT
676HAVE_STATIC_FALSE
677HAVE_STATIC_TRUE
eb373049
ILT
678NATIVE_OR_CROSS_LINKER_FALSE
679NATIVE_OR_CROSS_LINKER_TRUE
81ecdfbb
RW
680GCC_FALSE
681GCC_TRUE
682NATIVE_LINKER_FALSE
683NATIVE_LINKER_TRUE
684MSGMERGE
685MSGFMT
686MKINSTALLDIRS
687CATOBJEXT
688GENCAT
689INSTOBJEXT
690DATADIRNAME
691CATALOGS
692POSUB
693GMSGFMT
694XGETTEXT
695INCINTL
696LIBINTL_DEP
697LIBINTL
698USE_NLS
81ecdfbb
RW
699LN_S
700RANLIB
701YFLAGS
702YACC
703am__fastdepCXX_FALSE
704am__fastdepCXX_TRUE
705CXXDEPMODE
706ac_ct_CXX
707CXXFLAGS
708CXX
ebb300b2 709NM
81ecdfbb 710TARGETOBJS
9df9de2c 711DEFAULT_TARGET
9810d34d
SS
712DEFAULT_TARGET_MIPS_FALSE
713DEFAULT_TARGET_MIPS_TRUE
0a6f1bf2
AM
714DEFAULT_TARGET_TILEGX_FALSE
715DEFAULT_TARGET_TILEGX_TRUE
ad961eab
L
716DEFAULT_TARGET_X86_64_OR_X32_FALSE
717DEFAULT_TARGET_X86_64_OR_X32_TRUE
4fc1b9d4
L
718DEFAULT_TARGET_X32_FALSE
719DEFAULT_TARGET_X32_TRUE
364c7fa5
ILT
720DEFAULT_TARGET_X86_64_FALSE
721DEFAULT_TARGET_X86_64_TRUE
e79a4bad
MK
722DEFAULT_TARGET_S390_FALSE
723DEFAULT_TARGET_S390_TRUE
364c7fa5
ILT
724DEFAULT_TARGET_SPARC_FALSE
725DEFAULT_TARGET_SPARC_TRUE
726DEFAULT_TARGET_POWERPC_FALSE
727DEFAULT_TARGET_POWERPC_TRUE
728DEFAULT_TARGET_I386_FALSE
729DEFAULT_TARGET_I386_TRUE
730DEFAULT_TARGET_ARM_FALSE
731DEFAULT_TARGET_ARM_TRUE
053a4d68
JY
732DEFAULT_TARGET_AARCH64_FALSE
733DEFAULT_TARGET_AARCH64_TRUE
81ecdfbb
RW
734PLUGINS_FALSE
735PLUGINS_TRUE
4fda8867
NC
736installed_linker
737install_as_default
24538276
CC
738EGREP
739GREP
740CPP
741am__fastdepCC_FALSE
742am__fastdepCC_TRUE
743CCDEPMODE
744am__nodep
745AMDEPBACKSLASH
746AMDEP_FALSE
747AMDEP_TRUE
748am__quote
749am__include
750DEPDIR
751OBJEXT
752EXEEXT
753ac_ct_CC
754CPPFLAGS
755LDFLAGS
756CFLAGS
757CC
d0ac1c44
SM
758AM_BACKSLASH
759AM_DEFAULT_VERBOSITY
760AM_DEFAULT_V
761AM_V
81ecdfbb
RW
762am__untar
763am__tar
764AMTAR
765am__leading_dot
766SET_MAKE
767AWK
768mkdir_p
769MKDIR_P
770INSTALL_STRIP_PROGRAM
771STRIP
772install_sh
773MAKEINFO
774AUTOHEADER
775AUTOMAKE
776AUTOCONF
777ACLOCAL
778VERSION
779PACKAGE
780CYGPATH_W
781am__isrc
782INSTALL_DATA
783INSTALL_SCRIPT
784INSTALL_PROGRAM
785target_os
786target_vendor
787target_cpu
788target
789host_os
790host_vendor
791host_cpu
792host
793build_os
794build_vendor
795build_cpu
796build
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816localstatedir
817sharedstatedir
818sysconfdir
819datadir
820datarootdir
821libexecdir
822sbindir
823bindir
824program_transform_name
825prefix
826exec_prefix
827PACKAGE_URL
828PACKAGE_BUGREPORT
829PACKAGE_STRING
830PACKAGE_VERSION
831PACKAGE_TARNAME
832PACKAGE_NAME
833PATH_SEPARATOR
834SHELL'
bae7f79e 835ac_subst_files=''
81ecdfbb
RW
836ac_user_opts='
837enable_option_checking
d0ac1c44 838enable_silent_rules
24538276 839enable_dependency_tracking
81ecdfbb 840with_sysroot
4fda8867 841enable_gold
81ecdfbb 842enable_plugins
6b1edb94 843enable_relro
81ecdfbb 844enable_targets
2760f24c 845enable_default_hash_style
3f3cddf1 846with_lib_path
81ecdfbb
RW
847enable_nls
848enable_werror
849enable_build_warnings
dc87f620
ILT
850with_gold_ldflags
851with_gold_ldadd
918357b9 852with_system_zlib
c8dc28bc 853enable_threads
81ecdfbb
RW
854enable_maintainer_mode
855'
856 ac_precious_vars='build_alias
857host_alias
858target_alias
859CC
860CFLAGS
861LDFLAGS
862LIBS
863CPPFLAGS
24538276 864CPP
81ecdfbb
RW
865CXX
866CXXFLAGS
867CCC
868YACC
869YFLAGS
81ecdfbb
RW
870CXXCPP'
871
bae7f79e
ILT
872
873# Initialize some variables set by options.
874ac_init_help=
875ac_init_version=false
81ecdfbb
RW
876ac_unrecognized_opts=
877ac_unrecognized_sep=
bae7f79e
ILT
878# The variables have the same names as the options, with
879# dashes changed to underlines.
880cache_file=/dev/null
881exec_prefix=NONE
882no_create=
883no_recursion=
884prefix=NONE
885program_prefix=NONE
886program_suffix=NONE
887program_transform_name=s,x,x,
888silent=
889site=
890srcdir=
891verbose=
892x_includes=NONE
893x_libraries=NONE
894
895# Installation directory options.
896# These are left unexpanded so users can "make install exec_prefix=/foo"
897# and all the variables that are supposed to be based on exec_prefix
898# by default will actually change.
899# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 900# (The list follows the same order as the GNU Coding Standards.)
bae7f79e
ILT
901bindir='${exec_prefix}/bin'
902sbindir='${exec_prefix}/sbin'
903libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
904datarootdir='${prefix}/share'
905datadir='${datarootdir}'
bae7f79e
ILT
906sysconfdir='${prefix}/etc'
907sharedstatedir='${prefix}/com'
908localstatedir='${prefix}/var'
bae7f79e
ILT
909includedir='${prefix}/include'
910oldincludedir='/usr/include'
81ecdfbb
RW
911docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912infodir='${datarootdir}/info'
913htmldir='${docdir}'
914dvidir='${docdir}'
915pdfdir='${docdir}'
916psdir='${docdir}'
917libdir='${exec_prefix}/lib'
918localedir='${datarootdir}/locale'
919mandir='${datarootdir}/man'
bae7f79e
ILT
920
921ac_prev=
81ecdfbb 922ac_dashdash=
bae7f79e
ILT
923for ac_option
924do
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
81ecdfbb 927 eval $ac_prev=\$ac_option
bae7f79e
ILT
928 ac_prev=
929 continue
930 fi
931
81ecdfbb 932 case $ac_option in
d0ac1c44
SM
933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 *=) ac_optarg= ;;
935 *) ac_optarg=yes ;;
81ecdfbb 936 esac
bae7f79e
ILT
937
938 # Accept the important Cygnus configure options, so we can diagnose typos.
939
81ecdfbb
RW
940 case $ac_dashdash$ac_option in
941 --)
942 ac_dashdash=yes ;;
bae7f79e
ILT
943
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 ac_prev=bindir ;;
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 bindir=$ac_optarg ;;
948
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
953
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
960
961 --config-cache | -C)
962 cache_file=config.cache ;;
963
81ecdfbb 964 -datadir | --datadir | --datadi | --datad)
bae7f79e 965 ac_prev=datadir ;;
81ecdfbb 966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bae7f79e
ILT
967 datadir=$ac_optarg ;;
968
81ecdfbb
RW
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
975
bae7f79e 976 -disable-* | --disable-*)
81ecdfbb 977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bae7f79e 978 # Reject names that are not valid shell variable names.
81ecdfbb 979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 980 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
bae7f79e
ILT
1001
1002 -enable-* | --enable-*)
81ecdfbb 1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bae7f79e 1004 # Reject names that are not valid shell variable names.
81ecdfbb 1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1006 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011"enable_$ac_useropt"
1012"*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
bae7f79e 1015 esac
81ecdfbb 1016 eval enable_$ac_useropt=\$ac_optarg ;;
bae7f79e
ILT
1017
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1026
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1030
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1037
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1042
81ecdfbb
RW
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1048
bae7f79e
ILT
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1055
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1060
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1065
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1072
81ecdfbb
RW
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1077
bae7f79e 1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1079 | --localstate | --localstat | --localsta | --localst | --locals)
bae7f79e
ILT
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bae7f79e
ILT
1083 localstatedir=$ac_optarg ;;
1084
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1089
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1093
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1096 no_create=yes ;;
1097
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1101
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1110
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1115
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1122
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1129
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1146
81ecdfbb
RW
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1151
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1156
bae7f79e
ILT
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
81ecdfbb 1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bae7f79e 1208 # Reject names that are not valid shell variable names.
81ecdfbb 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1210 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215"with_$ac_useropt"
1216"*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
bae7f79e 1219 esac
81ecdfbb 1220 eval with_$ac_useropt=\$ac_optarg ;;
bae7f79e
ILT
1221
1222 -without-* | --without-*)
81ecdfbb 1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bae7f79e 1224 # Reject names that are not valid shell variable names.
81ecdfbb 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1226 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231"with_$ac_useropt"
1232"*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
bae7f79e
ILT
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
d0ac1c44
SM
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257Try \`$0 --help' for more information"
bae7f79e
ILT
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1266 esac
1267 eval $ac_envvar=\$ac_optarg
bae7f79e
ILT
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bae7f79e 1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
bae7f79e
ILT
1276 ;;
1277
1278 esac
1279done
1280
1281if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1283 as_fn_error $? "missing argument to $ac_option"
bae7f79e
ILT
1284fi
1285
81ecdfbb
RW
1286if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
d0ac1c44 1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bae7f79e 1291 esac
81ecdfbb 1292fi
bae7f79e 1293
81ecdfbb
RW
1294# Check all directory arguments for consistency.
1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
bae7f79e 1299do
81ecdfbb
RW
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
bae7f79e 1308 case $ac_val in
81ecdfbb
RW
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
bae7f79e 1311 esac
d0ac1c44 1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
bae7f79e
ILT
1313done
1314
1315# There might be people who depend on the old broken behavior: `$host'
1316# used to hold the argument of --host etc.
1317# FIXME: To remove some day.
1318build=$build_alias
1319host=$host_alias
1320target=$target_alias
1321
1322# FIXME: To remove some day.
1323if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
bae7f79e
ILT
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329fi
1330
1331ac_tool_prefix=
1332test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334test "$silent" = yes && exec 6>/dev/null
1335
1336
81ecdfbb
RW
1337ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338ac_ls_di=`ls -di .` &&
1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1340 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1342 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1343
1344
bae7f79e
ILT
1345# Find the source files, if location was not specified.
1346if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
81ecdfbb
RW
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354$as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
bae7f79e 1372 srcdir=$ac_confdir
81ecdfbb 1373 if test ! -r "$srcdir/$ac_unique_file"; then
bae7f79e
ILT
1374 srcdir=..
1375 fi
1376else
1377 ac_srcdir_defaulted=no
1378fi
81ecdfbb
RW
1379if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1382fi
1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384ac_abs_confdir=`(
d0ac1c44 1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1386 pwd)`
1387# When building in place, set srcdir=.
1388if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390fi
1391# Remove unnecessary trailing slashes from srcdir.
1392# Double slashes in file names in object file debugging info
1393# mess up M-x gdb in Emacs.
1394case $srcdir in
1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396esac
1397for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402done
bae7f79e
ILT
1403
1404#
1405# Report the --help message.
1406#
1407if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
8486ee48 1411\`configure' configures gold 0.1 to adapt to many kinds of systems.
bae7f79e
ILT
1412
1413Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418Defaults for the options are specified in brackets.
1419
1420Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
d0ac1c44 1425 -q, --quiet, --silent do not print \`checking ...' messages
bae7f79e
ILT
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
bae7f79e
ILT
1431Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1433 [$ac_default_prefix]
bae7f79e 1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1435 [PREFIX]
bae7f79e
ILT
1436
1437By default, \`make install' will install all the files in
1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440for instance \`--prefix=\$HOME'.
1441
1442For better control, use the options below.
1443
1444Fine tuning of the installation directories:
81ecdfbb
RW
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
bae7f79e
ILT
1464_ACEOF
1465
1466 cat <<\_ACEOF
1467
1468Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
1473System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 --target=TARGET configure for building compilers for TARGET [HOST]
1477_ACEOF
1478fi
1479
1480if test -n "$ac_init_help"; then
8486ee48
ILT
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of gold 0.1:";;
1483 esac
bae7f79e
ILT
1484 cat <<\_ACEOF
1485
1486Optional Features:
81ecdfbb 1487 --disable-option-checking ignore unrecognized --enable/--with options
bae7f79e
ILT
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
c7791212 1496 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
24538276 1497 --enable-plugins Enable support for plugins
6b1edb94 1498 --enable-relro enable -z relro in ELF linker by default
193a53d9 1499 --enable-targets alternative target configurations
2760f24c
RG
1500 --enable-default-hash-style={sysv,gnu,both}
1501 use this default hash style
bae7f79e
ILT
1502 --disable-nls do not use Native Language Support
1503 --enable-werror treat compile warnings as errors
1504 --enable-build-warnings enable build-time compiler warnings
c8dc28bc 1505 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
d0ac1c44
SM
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
bae7f79e 1509
ad2d6943
ILT
1510Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-sysroot=DIR search for usr/lib et al within DIR
3f3cddf1 1514 --with-lib-path=dir1:dir2... set default LIB_PATH
dc87f620
ILT
1515 --with-gold-ldflags=FLAGS additional link flags for gold
1516 --with-gold-ldadd=LIBS additional libraries for gold
918357b9 1517 --with-system-zlib use installed libz
ad2d6943 1518
bae7f79e
ILT
1519Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
81ecdfbb 1524 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1526 you have headers in a nonstandard directory <include dir>
24538276 1527 CPP C preprocessor
bae7f79e
ILT
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
d0ac1c44
SM
1530 YACC The `Yet Another Compiler Compiler' implementation to use.
1531 Defaults to the first program found out of: `bison -y', `byacc',
1532 `yacc'.
81ecdfbb
RW
1533 YFLAGS The list of arguments that will be passed by default to $YACC.
1534 This script will default YFLAGS to the empty string to avoid a
1535 default value of `-d' given by some make applications.
54dc6425 1536 CXXCPP C++ preprocessor
bae7f79e
ILT
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
81ecdfbb 1541Report bugs to the package provider.
bae7f79e 1542_ACEOF
81ecdfbb 1543ac_status=$?
bae7f79e
ILT
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
bae7f79e 1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
bae7f79e
ILT
1552 ac_builddir=.
1553
81ecdfbb
RW
1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
bae7f79e
ILT
1569
1570case $srcdir in
81ecdfbb 1571 .) # We are building in place.
bae7f79e 1572 ac_srcdir=.
81ecdfbb
RW
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
bae7f79e 1576 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bae7f79e 1583esac
81ecdfbb
RW
1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
bae7f79e 1594 else
81ecdfbb
RW
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
bae7f79e
ILT
1598 done
1599fi
1600
81ecdfbb 1601test -n "$ac_init_help" && exit $ac_status
bae7f79e
ILT
1602if $ac_init_version; then
1603 cat <<\_ACEOF
8486ee48 1604gold configure 0.1
d0ac1c44 1605generated by GNU Autoconf 2.69
bae7f79e 1606
d0ac1c44 1607Copyright (C) 2012 Free Software Foundation, Inc.
bae7f79e
ILT
1608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
81ecdfbb 1611 exit
bae7f79e 1612fi
bae7f79e 1613
81ecdfbb
RW
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
bae7f79e 1617
81ecdfbb
RW
1618# ac_fn_c_try_compile LINENO
1619# --------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_compile ()
bae7f79e 1622{
81ecdfbb
RW
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1648
81ecdfbb
RW
1649 ac_retval=1
1650fi
d0ac1c44
SM
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
bae7f79e 1653
81ecdfbb 1654} # ac_fn_c_try_compile
bae7f79e 1655
81ecdfbb
RW
1656# ac_fn_c_try_cpp LINENO
1657# ----------------------
1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_cpp ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1677 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682else
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1685
81ecdfbb
RW
1686 ac_retval=1
1687fi
d0ac1c44
SM
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
bae7f79e 1690
81ecdfbb 1691} # ac_fn_c_try_cpp
bae7f79e 1692
81ecdfbb
RW
1693# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1694# -------------------------------------------------------
1695# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1696# the include files in INCLUDES and setting the cache variable VAR
1697# accordingly.
1698ac_fn_c_check_header_mongrel ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1701 if eval \${$3+:} false; then :
81ecdfbb
RW
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1704if eval \${$3+:} false; then :
81ecdfbb
RW
1705 $as_echo_n "(cached) " >&6
1706fi
1707eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710else
1711 # Is the header compilable?
1712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1713$as_echo_n "checking $2 usability... " >&6; }
1714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h. */
1716$4
1717#include <$2>
bae7f79e 1718_ACEOF
81ecdfbb
RW
1719if ac_fn_c_try_compile "$LINENO"; then :
1720 ac_header_compiler=yes
1721else
1722 ac_header_compiler=no
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1726$as_echo "$ac_header_compiler" >&6; }
bae7f79e 1727
81ecdfbb
RW
1728# Is the header present?
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1730$as_echo_n "checking $2 presence... " >&6; }
1731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h. */
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_cpp "$LINENO"; then :
1736 ac_header_preproc=yes
1737else
1738 ac_header_preproc=no
1739fi
d0ac1c44 1740rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1742$as_echo "$ac_header_preproc" >&6; }
bae7f79e 1743
81ecdfbb
RW
1744# So? What about this header?
1745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1746 yes:no: )
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1748$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 ;;
1752 no:yes:* )
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1754$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1756$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1758$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1760$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1762$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763 ;;
1764esac
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1767if eval \${$3+:} false; then :
81ecdfbb
RW
1768 $as_echo_n "(cached) " >&6
1769else
1770 eval "$3=\$ac_header_compiler"
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775fi
d0ac1c44 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 1777
81ecdfbb 1778} # ac_fn_c_check_header_mongrel
bae7f79e 1779
81ecdfbb
RW
1780# ac_fn_c_try_run LINENO
1781# ----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783# that executables *can* be run.
1784ac_fn_c_try_run ()
bae7f79e 1785{
81ecdfbb
RW
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>&5
1795 ac_status=$?
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798 { { case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_try") 2>&5
1805 ac_status=$?
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; }; }; then :
1808 ac_retval=0
1809else
1810 $as_echo "$as_me: program exited with status $ac_status" >&5
1811 $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1813
81ecdfbb
RW
1814 ac_retval=$ac_status
1815fi
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
bae7f79e 1819
81ecdfbb 1820} # ac_fn_c_try_run
bae7f79e 1821
81ecdfbb
RW
1822# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823# -------------------------------------------------------
1824# Tests whether HEADER exists and can be compiled using the include files in
1825# INCLUDES, setting the cache variable VAR accordingly.
1826ac_fn_c_check_header_compile ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1831if eval \${$3+:} false; then :
81ecdfbb
RW
1832 $as_echo_n "(cached) " >&6
1833else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836$4
1837#include <$2>
1838_ACEOF
1839if ac_fn_c_try_compile "$LINENO"; then :
1840 eval "$3=yes"
1841else
1842 eval "$3=no"
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
d0ac1c44 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 1850
81ecdfbb 1851} # ac_fn_c_check_header_compile
bae7f79e 1852
81ecdfbb
RW
1853# ac_fn_c_try_link LINENO
1854# -----------------------
1855# Try to link conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_c_try_link ()
1857{
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest$ac_exeext
1860 if { { ac_try="$ac_link"
1861case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
d0ac1c44 1880 test -x conftest$ac_exeext
81ecdfbb
RW
1881 }; then :
1882 ac_retval=0
1883else
1884 $as_echo "$as_me: failed program was:" >&5
1885sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1886
81ecdfbb
RW
1887 ac_retval=1
1888fi
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
bae7f79e 1896
81ecdfbb 1897} # ac_fn_c_try_link
bae7f79e 1898
24538276
CC
1899# ac_fn_cxx_try_compile LINENO
1900# ----------------------------
1901# Try to compile conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_cxx_try_compile ()
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext
1906 if { { ac_try="$ac_compile"
1907case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912$as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_compile") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_cxx_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest.$ac_objext; then :
1925 ac_retval=0
1926else
1927 $as_echo "$as_me: failed program was:" >&5
1928sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931fi
d0ac1c44
SM
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
24538276
CC
1934
1935} # ac_fn_cxx_try_compile
1936
81ecdfbb
RW
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1945if eval \${$3+:} false; then :
81ecdfbb
RW
1946 $as_echo_n "(cached) " >&6
1947else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952#define $2 innocuous_$2
bae7f79e 1953
81ecdfbb
RW
1954/* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
bae7f79e 1958
81ecdfbb
RW
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
bae7f79e 1964
81ecdfbb 1965#undef $2
bae7f79e 1966
81ecdfbb
RW
1967/* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985 ;
1986 return 0;
1987}
bae7f79e 1988_ACEOF
81ecdfbb
RW
1989if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991else
1992 eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
d0ac1c44 2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 2001
81ecdfbb 2002} # ac_fn_c_check_func
bae7f79e 2003
d0ac1c44
SM
2004# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2005# ---------------------------------------------
2006# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2007# accordingly.
81ecdfbb
RW
2008ac_fn_c_check_decl ()
2009{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7223e9ca
ILT
2011 as_decl_name=`echo $2|sed 's/ *(.*//'`
2012 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2014$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2015if eval \${$3+:} false; then :
81ecdfbb
RW
2016 $as_echo_n "(cached) " >&6
2017else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020$4
2021int
2022main ()
2023{
7223e9ca
ILT
2024#ifndef $as_decl_name
2025#ifdef __cplusplus
2026 (void) $as_decl_use;
2027#else
2028 (void) $as_decl_name;
2029#endif
81ecdfbb
RW
2030#endif
2031
2032 ;
2033 return 0;
2034}
bae7f79e 2035_ACEOF
81ecdfbb
RW
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$3=yes"
2038else
2039 eval "$3=no"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
d0ac1c44 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 2047
81ecdfbb 2048} # ac_fn_c_check_decl
bae7f79e 2049
81ecdfbb
RW
2050# ac_fn_cxx_try_cpp LINENO
2051# ------------------------
2052# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053ac_fn_cxx_try_cpp ()
2054{
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
bae7f79e 2069 fi
81ecdfbb 2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2071 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076else
2077 $as_echo "$as_me: failed program was:" >&5
2078sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 ac_retval=1
bae7f79e 2081fi
d0ac1c44
SM
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
bae7f79e 2084
81ecdfbb
RW
2085} # ac_fn_cxx_try_cpp
2086
2087# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088# ---------------------------------------------------------
2089# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090# the include files in INCLUDES and setting the cache variable VAR
2091# accordingly.
2092ac_fn_cxx_check_header_mongrel ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 2095 if eval \${$3+:} false; then :
81ecdfbb
RW
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2098if eval \${$3+:} false; then :
81ecdfbb
RW
2099 $as_echo_n "(cached) " >&6
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
bae7f79e 2104else
81ecdfbb
RW
2105 # Is the header compilable?
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107$as_echo_n "checking $2 usability... " >&6; }
2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h. */
2110$4
2111#include <$2>
2112_ACEOF
2113if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115else
2116 ac_header_compiler=no
bae7f79e 2117fi
81ecdfbb
RW
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120$as_echo "$ac_header_compiler" >&6; }
bae7f79e 2121
81ecdfbb
RW
2122# Is the header present?
2123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124$as_echo_n "checking $2 presence... " >&6; }
2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h. */
2127#include <$2>
2128_ACEOF
2129if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131else
2132 ac_header_preproc=no
bae7f79e 2133fi
d0ac1c44 2134rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
2135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136$as_echo "$ac_header_preproc" >&6; }
bae7f79e 2137
81ecdfbb
RW
2138# So? What about this header?
2139case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145 ;;
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157 ;;
2158esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2161if eval \${$3+:} false; then :
81ecdfbb
RW
2162 $as_echo_n "(cached) " >&6
2163else
2164 eval "$3=\$ac_header_compiler"
2165fi
2166eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169fi
d0ac1c44 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2171
2172} # ac_fn_cxx_check_header_mongrel
2173
e755667f
NA
2174# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2175# -----------------------------------------------
2176# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2177# accordingly.
2178ac_fn_cxx_check_decl ()
2179{
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 as_decl_name=`echo $2|sed 's/ *(.*//'`
2182 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2184$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2185if eval \${$3+:} false; then :
2186 $as_echo_n "(cached) " >&6
2187else
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h. */
2190$4
2191int
2192main ()
2193{
2194#ifndef $as_decl_name
2195#ifdef __cplusplus
2196 (void) $as_decl_use;
2197#else
2198 (void) $as_decl_name;
2199#endif
2200#endif
2201
2202 ;
2203 return 0;
2204}
2205_ACEOF
2206if ac_fn_cxx_try_compile "$LINENO"; then :
2207 eval "$3=yes"
2208else
2209 eval "$3=no"
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212fi
2213eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215$as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217
2218} # ac_fn_cxx_check_decl
2219
81ecdfbb
RW
2220# ac_fn_cxx_try_link LINENO
2221# -------------------------
2222# Try to link conftest.$ac_ext, and return whether this succeeded.
2223ac_fn_cxx_try_link ()
2224{
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 rm -f conftest.$ac_objext conftest$ac_exeext
2227 if { { ac_try="$ac_link"
2228case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231esac
2232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233$as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_link") 2>conftest.err
2235 ac_status=$?
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2240 fi
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && {
2243 test -z "$ac_cxx_werror_flag" ||
2244 test ! -s conftest.err
2245 } && test -s conftest$ac_exeext && {
2246 test "$cross_compiling" = yes ||
d0ac1c44 2247 test -x conftest$ac_exeext
81ecdfbb
RW
2248 }; then :
2249 ac_retval=0
2250else
2251 $as_echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 2253
81ecdfbb
RW
2254 ac_retval=1
2255fi
2256 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2257 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2258 # interfere with the next link command; also delete a directory that is
2259 # left behind by Apple's compiler. We do this before executing the actions.
2260 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 as_fn_set_status $ac_retval
bae7f79e 2263
81ecdfbb 2264} # ac_fn_cxx_try_link
bae7f79e 2265
81ecdfbb
RW
2266# ac_fn_cxx_check_func LINENO FUNC VAR
2267# ------------------------------------
2268# Tests whether FUNC exists, setting the cache variable VAR accordingly
2269ac_fn_cxx_check_func ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2274if eval \${$3+:} false; then :
81ecdfbb
RW
2275 $as_echo_n "(cached) " >&6
2276else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2281#define $2 innocuous_$2
bae7f79e 2282
81ecdfbb
RW
2283/* System header to define __stub macros and hopefully few prototypes,
2284 which can conflict with char $2 (); below.
2285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2286 <limits.h> exists even on freestanding compilers. */
bae7f79e 2287
81ecdfbb
RW
2288#ifdef __STDC__
2289# include <limits.h>
2290#else
2291# include <assert.h>
2292#endif
bae7f79e 2293
81ecdfbb 2294#undef $2
bae7f79e 2295
81ecdfbb
RW
2296/* Override any GCC internal prototype to avoid an error.
2297 Use char because int might match the return type of a GCC
2298 builtin and then its argument prototype would still apply. */
2299#ifdef __cplusplus
2300extern "C"
2301#endif
2302char $2 ();
2303/* The GNU C library defines this for functions which it implements
2304 to always fail with ENOSYS. Some functions are actually named
2305 something starting with __ and the normal name is an alias. */
2306#if defined __stub_$2 || defined __stub___$2
2307choke me
2308#endif
bae7f79e 2309
81ecdfbb
RW
2310int
2311main ()
2312{
2313return $2 ();
2314 ;
2315 return 0;
2316}
2317_ACEOF
2318if ac_fn_cxx_try_link "$LINENO"; then :
2319 eval "$3=yes"
2320else
2321 eval "$3=no"
2322fi
2323rm -f core conftest.err conftest.$ac_objext \
2324 conftest$ac_exeext conftest.$ac_ext
2325fi
2326eval ac_res=\$$3
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328$as_echo "$ac_res" >&6; }
d0ac1c44 2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 2330
81ecdfbb 2331} # ac_fn_cxx_check_func
81ecdfbb
RW
2332cat >config.log <<_ACEOF
2333This file contains any messages produced by compilers while
2334running configure, to aid debugging if configure makes a mistake.
8486ee48 2335
81ecdfbb 2336It was created by gold $as_me 0.1, which was
d0ac1c44 2337generated by GNU Autoconf 2.69. Invocation command line was
8486ee48 2338
81ecdfbb 2339 $ $0 $@
8486ee48 2340
81ecdfbb
RW
2341_ACEOF
2342exec 5>>config.log
2343{
2344cat <<_ASUNAME
2345## --------- ##
2346## Platform. ##
2347## --------- ##
8486ee48 2348
81ecdfbb
RW
2349hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2350uname -m = `(uname -m) 2>/dev/null || echo unknown`
2351uname -r = `(uname -r) 2>/dev/null || echo unknown`
2352uname -s = `(uname -s) 2>/dev/null || echo unknown`
2353uname -v = `(uname -v) 2>/dev/null || echo unknown`
8486ee48 2354
81ecdfbb
RW
2355/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2356/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8486ee48 2357
81ecdfbb
RW
2358/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2359/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2360/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2361/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2362/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2363/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2364/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
8486ee48 2365
81ecdfbb 2366_ASUNAME
8486ee48 2367
81ecdfbb
RW
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 $as_echo "PATH: $as_dir"
2374 done
2375IFS=$as_save_IFS
bae7f79e 2376
81ecdfbb 2377} >&5
bae7f79e 2378
81ecdfbb 2379cat >&5 <<_ACEOF
bae7f79e
ILT
2380
2381
81ecdfbb
RW
2382## ----------- ##
2383## Core tests. ##
2384## ----------- ##
bae7f79e 2385
81ecdfbb 2386_ACEOF
1d1f116d
CD
2387
2388
81ecdfbb
RW
2389# Keep a trace of the command line.
2390# Strip out --no-create and --no-recursion so they do not pile up.
2391# Strip out --silent because we don't want to record it for future runs.
2392# Also quote any args containing shell meta-characters.
2393# Make two passes to allow for proper duplicate-argument suppression.
2394ac_configure_args=
2395ac_configure_args0=
2396ac_configure_args1=
2397ac_must_keep_next=false
2398for ac_pass in 1 2
2399do
2400 for ac_arg
2401 do
2402 case $ac_arg in
2403 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2405 | -silent | --silent | --silen | --sile | --sil)
2406 continue ;;
2407 *\'*)
2408 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 esac
2410 case $ac_pass in
2411 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2412 2)
2413 as_fn_append ac_configure_args1 " '$ac_arg'"
2414 if test $ac_must_keep_next = true; then
2415 ac_must_keep_next=false # Got value, back to normal.
2416 else
2417 case $ac_arg in
2418 *=* | --config-cache | -C | -disable-* | --disable-* \
2419 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2420 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2421 | -with-* | --with-* | -without-* | --without-* | --x)
2422 case "$ac_configure_args0 " in
2423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424 esac
2425 ;;
2426 -* ) ac_must_keep_next=true ;;
2427 esac
2428 fi
2429 as_fn_append ac_configure_args " '$ac_arg'"
2430 ;;
2431 esac
2432 done
2433done
2434{ ac_configure_args0=; unset ac_configure_args0;}
2435{ ac_configure_args1=; unset ac_configure_args1;}
1d1f116d 2436
81ecdfbb
RW
2437# When interrupted or exit'd, cleanup temporary files, and complete
2438# config.log. We remove comments because anyway the quotes in there
2439# would cause problems or look ugly.
2440# WARNING: Use '\'' to represent an apostrophe within the trap.
2441# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442trap 'exit_status=$?
2443 # Save into config.log some information that might help in debugging.
2444 {
2445 echo
bae7f79e 2446
d0ac1c44 2447 $as_echo "## ---------------- ##
81ecdfbb 2448## Cache variables. ##
d0ac1c44 2449## ---------------- ##"
81ecdfbb
RW
2450 echo
2451 # The following way of writing the cache mishandles newlines in values,
2452(
2453 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in #(
2456 *${as_nl}*)
2457 case $ac_var in #(
2458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2459$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2460 esac
2461 case $ac_var in #(
2462 _ | IFS | as_nl) ;; #(
2463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2464 *) { eval $ac_var=; unset $ac_var;} ;;
2465 esac ;;
2466 esac
2467 done
2468 (set) 2>&1 |
2469 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2470 *${as_nl}ac_space=\ *)
2471 sed -n \
2472 "s/'\''/'\''\\\\'\'''\''/g;
2473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2474 ;; #(
2475 *)
2476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477 ;;
2478 esac |
2479 sort
2480)
2481 echo
bae7f79e 2482
d0ac1c44 2483 $as_echo "## ----------------- ##
81ecdfbb 2484## Output variables. ##
d0ac1c44 2485## ----------------- ##"
81ecdfbb
RW
2486 echo
2487 for ac_var in $ac_subst_vars
2488 do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 esac
2493 $as_echo "$ac_var='\''$ac_val'\''"
2494 done | sort
2495 echo
bae7f79e 2496
81ecdfbb 2497 if test -n "$ac_subst_files"; then
d0ac1c44 2498 $as_echo "## ------------------- ##
81ecdfbb 2499## File substitutions. ##
d0ac1c44 2500## ------------------- ##"
81ecdfbb
RW
2501 echo
2502 for ac_var in $ac_subst_files
2503 do
2504 eval ac_val=\$$ac_var
2505 case $ac_val in
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 esac
2508 $as_echo "$ac_var='\''$ac_val'\''"
2509 done | sort
2510 echo
2511 fi
bae7f79e 2512
81ecdfbb 2513 if test -s confdefs.h; then
d0ac1c44 2514 $as_echo "## ----------- ##
81ecdfbb 2515## confdefs.h. ##
d0ac1c44 2516## ----------- ##"
81ecdfbb
RW
2517 echo
2518 cat confdefs.h
2519 echo
2520 fi
2521 test "$ac_signal" != 0 &&
2522 $as_echo "$as_me: caught signal $ac_signal"
2523 $as_echo "$as_me: exit $exit_status"
2524 } >&5
2525 rm -f core *.core core.conftest.* &&
2526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527 exit $exit_status
2528' 0
2529for ac_signal in 1 2 13 15; do
2530 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bae7f79e 2531done
81ecdfbb 2532ac_signal=0
bae7f79e 2533
81ecdfbb
RW
2534# confdefs.h avoids OS command line length limits that DEFS can exceed.
2535rm -f -r conftest* confdefs.h
bae7f79e 2536
81ecdfbb 2537$as_echo "/* confdefs.h */" > confdefs.h
bae7f79e 2538
81ecdfbb 2539# Predefined preprocessor variables.
bae7f79e 2540
81ecdfbb
RW
2541cat >>confdefs.h <<_ACEOF
2542#define PACKAGE_NAME "$PACKAGE_NAME"
2543_ACEOF
bae7f79e 2544
81ecdfbb
RW
2545cat >>confdefs.h <<_ACEOF
2546#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547_ACEOF
bae7f79e 2548
81ecdfbb
RW
2549cat >>confdefs.h <<_ACEOF
2550#define PACKAGE_VERSION "$PACKAGE_VERSION"
2551_ACEOF
bae7f79e 2552
81ecdfbb
RW
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_STRING "$PACKAGE_STRING"
2555_ACEOF
bae7f79e 2556
81ecdfbb
RW
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559_ACEOF
bae7f79e 2560
81ecdfbb
RW
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_URL "$PACKAGE_URL"
2563_ACEOF
2564
2565
2566# Let the site file select an alternate cache file if it wants to.
2567# Prefer an explicitly selected file to automatically selected ones.
2568ac_site_file1=NONE
2569ac_site_file2=NONE
2570if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2571 # We do not want a PATH search for config.site.
2572 case $CONFIG_SITE in #((
2573 -*) ac_site_file1=./$CONFIG_SITE;;
2574 */*) ac_site_file1=$CONFIG_SITE;;
2575 *) ac_site_file1=./$CONFIG_SITE;;
2576 esac
81ecdfbb
RW
2577elif test "x$prefix" != xNONE; then
2578 ac_site_file1=$prefix/share/config.site
2579 ac_site_file2=$prefix/etc/config.site
2580else
2581 ac_site_file1=$ac_default_prefix/share/config.site
2582 ac_site_file2=$ac_default_prefix/etc/config.site
2583fi
2584for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2585do
2586 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2587 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2589$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2590 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2591 . "$ac_site_file" \
2592 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594as_fn_error $? "failed to load site script $ac_site_file
2595See \`config.log' for more details" "$LINENO" 5; }
81ecdfbb
RW
2596 fi
2597done
2598
2599if test -r "$cache_file"; then
d0ac1c44
SM
2600 # Some versions of bash will fail to source /dev/null (special files
2601 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2602 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2604$as_echo "$as_me: loading cache $cache_file" >&6;}
2605 case $cache_file in
2606 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2607 *) . "./$cache_file";;
2608 esac
2609 fi
2610else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2612$as_echo "$as_me: creating cache $cache_file" >&6;}
2613 >$cache_file
2614fi
2615
2616# Check that the precious variables saved in the cache have kept the same
2617# value.
2618ac_cache_corrupted=false
2619for ac_var in $ac_precious_vars; do
2620 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2621 eval ac_new_set=\$ac_env_${ac_var}_set
2622 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2623 eval ac_new_val=\$ac_env_${ac_var}_value
2624 case $ac_old_set,$ac_new_set in
2625 set,)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2627$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2628 ac_cache_corrupted=: ;;
2629 ,set)
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2631$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2632 ac_cache_corrupted=: ;;
2633 ,);;
2634 *)
2635 if test "x$ac_old_val" != "x$ac_new_val"; then
2636 # differences in whitespace do not lead to failure.
2637 ac_old_val_w=`echo x $ac_old_val`
2638 ac_new_val_w=`echo x $ac_new_val`
2639 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2641$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2642 ac_cache_corrupted=:
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2645$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2646 eval $ac_var=\$ac_old_val
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2649$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2651$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2652 fi;;
2653 esac
2654 # Pass precious variables to config.status.
2655 if test "$ac_new_set" = set; then
2656 case $ac_new_val in
2657 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2658 *) ac_arg=$ac_var=$ac_new_val ;;
2659 esac
2660 case " $ac_configure_args " in
2661 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2662 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2663 esac
2664 fi
2665done
2666if $ac_cache_corrupted; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2670$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2671 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
81ecdfbb
RW
2672fi
2673## -------------------- ##
2674## Main body of script. ##
2675## -------------------- ##
2676
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683
2684
2685
2686
2687
2688
2689ac_aux_dir=
2690for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2691 if test -f "$ac_dir/install-sh"; then
2692 ac_aux_dir=$ac_dir
2693 ac_install_sh="$ac_aux_dir/install-sh -c"
2694 break
2695 elif test -f "$ac_dir/install.sh"; then
2696 ac_aux_dir=$ac_dir
2697 ac_install_sh="$ac_aux_dir/install.sh -c"
2698 break
2699 elif test -f "$ac_dir/shtool"; then
2700 ac_aux_dir=$ac_dir
2701 ac_install_sh="$ac_aux_dir/shtool install -c"
2702 break
2703 fi
81ecdfbb
RW
2704done
2705if test -z "$ac_aux_dir"; then
d0ac1c44 2706 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
81ecdfbb
RW
2707fi
2708
2709# These three variables are undocumented and unsupported,
2710# and are intended to be withdrawn in a future Autoconf release.
2711# They can cause serious problems if a builder's source tree is in a directory
2712# whose full name contains unusual characters.
2713ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2714ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2715ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2716
2717
2718# Make sure we can run config.sub.
2719$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2720 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2721
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2723$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2724if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2725 $as_echo_n "(cached) " >&6
2726else
2727 ac_build_alias=$build_alias
2728test "x$ac_build_alias" = x &&
2729 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2730test "x$ac_build_alias" = x &&
d0ac1c44 2731 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2732ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2733 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2734
2735fi
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2737$as_echo "$ac_cv_build" >&6; }
2738case $ac_cv_build in
2739*-*-*) ;;
d0ac1c44 2740*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb
RW
2741esac
2742build=$ac_cv_build
2743ac_save_IFS=$IFS; IFS='-'
2744set x $ac_cv_build
2745shift
2746build_cpu=$1
2747build_vendor=$2
2748shift; shift
2749# Remember, the first character of IFS is used to create $*,
2750# except with old shells:
2751build_os=$*
2752IFS=$ac_save_IFS
2753case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2754
2755
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2757$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2758if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2759 $as_echo_n "(cached) " >&6
2760else
2761 if test "x$host_alias" = x; then
2762 ac_cv_host=$ac_cv_build
2763else
2764 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb
RW
2766fi
2767
2768fi
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2770$as_echo "$ac_cv_host" >&6; }
2771case $ac_cv_host in
2772*-*-*) ;;
d0ac1c44 2773*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb
RW
2774esac
2775host=$ac_cv_host
2776ac_save_IFS=$IFS; IFS='-'
2777set x $ac_cv_host
2778shift
2779host_cpu=$1
2780host_vendor=$2
2781shift; shift
2782# Remember, the first character of IFS is used to create $*,
2783# except with old shells:
2784host_os=$*
2785IFS=$ac_save_IFS
2786case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2787
2788
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2790$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2791if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2792 $as_echo_n "(cached) " >&6
2793else
2794 if test "x$target_alias" = x; then
2795 ac_cv_target=$ac_cv_host
2796else
2797 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2798 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb
RW
2799fi
2800
2801fi
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2803$as_echo "$ac_cv_target" >&6; }
2804case $ac_cv_target in
2805*-*-*) ;;
d0ac1c44 2806*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb
RW
2807esac
2808target=$ac_cv_target
2809ac_save_IFS=$IFS; IFS='-'
2810set x $ac_cv_target
2811shift
2812target_cpu=$1
2813target_vendor=$2
2814shift; shift
2815# Remember, the first character of IFS is used to create $*,
2816# except with old shells:
2817target_os=$*
2818IFS=$ac_save_IFS
2819case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2820
2821
2822# The aliases save the names the user supplied, while $host etc.
bae7f79e
ILT
2823# will get canonicalized.
2824test -n "$target_alias" &&
2825 test "$program_prefix$program_suffix$program_transform_name" = \
2826 NONENONEs,x,x, &&
2827 program_prefix=${target_alias}-
2828
d0ac1c44 2829am__api_version='1.15'
81ecdfbb 2830
bae7f79e
ILT
2831# Find a good install program. We prefer a C program (faster),
2832# so one script is as good as another. But avoid the broken or
2833# incompatible versions:
2834# SysV /etc/install, /usr/sbin/install
2835# SunOS /usr/etc/install
2836# IRIX /sbin/install
2837# AIX /bin/install
2838# AmigaOS /C/install, which installs bootblocks on floppy discs
2839# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2840# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2841# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2842# OS/2's system install, which has a completely different semantic
2843# ./install, which can be erroneously created by make from ./install.sh.
f5314dd5 2844# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2846$as_echo_n "checking for a BSD-compatible install... " >&6; }
bae7f79e 2847if test -z "$INSTALL"; then
d0ac1c44 2848if ${ac_cv_path_install+:} false; then :
81ecdfbb 2849 $as_echo_n "(cached) " >&6
bae7f79e
ILT
2850else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2856 # Account for people who put trailing slashes in PATH elements.
2857case $as_dir/ in #((
2858 ./ | .// | /[cC]/* | \
bae7f79e 2859 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2860 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
bae7f79e
ILT
2861 /usr/ucb/* ) ;;
2862 *)
2863 # OSF1 and SCO ODT 3.0 have their own names for install.
2864 # Don't use installbsd from OSF since it installs stuff as root
2865 # by default.
2866 for ac_prog in ginstall scoinst install; do
2867 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2868 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bae7f79e
ILT
2869 if test $ac_prog = install &&
2870 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871 # AIX install. It has an incompatible calling convention.
2872 :
2873 elif test $ac_prog = install &&
2874 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875 # program-specific install script used by HP pwplus--don't use.
2876 :
2877 else
f5314dd5
DM
2878 rm -rf conftest.one conftest.two conftest.dir
2879 echo one > conftest.one
2880 echo two > conftest.two
2881 mkdir conftest.dir
2882 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2883 test -s conftest.one && test -s conftest.two &&
2884 test -s conftest.dir/conftest.one &&
2885 test -s conftest.dir/conftest.two
2886 then
2887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2888 break 3
2889 fi
bae7f79e
ILT
2890 fi
2891 fi
2892 done
2893 done
2894 ;;
2895esac
81ecdfbb
RW
2896
2897 done
2898IFS=$as_save_IFS
bae7f79e 2899
f5314dd5 2900rm -rf conftest.one conftest.two conftest.dir
bae7f79e
ILT
2901
2902fi
2903 if test "${ac_cv_path_install+set}" = set; then
2904 INSTALL=$ac_cv_path_install
2905 else
f5314dd5
DM
2906 # As a last resort, use the slow shell script. Don't cache a
2907 # value for INSTALL within a source directory, because that will
bae7f79e 2908 # break other packages using the cache if that directory is
f5314dd5 2909 # removed, or if the value is a relative name.
bae7f79e
ILT
2910 INSTALL=$ac_install_sh
2911 fi
2912fi
81ecdfbb
RW
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2914$as_echo "$INSTALL" >&6; }
bae7f79e
ILT
2915
2916# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2917# It thinks the first close brace ends the variable substitution.
2918test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2919
2920test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2921
2922test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2923
81ecdfbb
RW
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2925$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2926# Reject unsafe characters in $srcdir or the absolute working directory
2927# name. Accept space and tab only in the latter.
2928am_lf='
2929'
2930case `pwd` in
2931 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2932 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2933esac
2934case $srcdir in
2935 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2936 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2937esac
2938
d0ac1c44 2939# Do 'set' in a subshell so we don't clobber the current shell's
bae7f79e
ILT
2940# arguments. Must try -L first in case configure is actually a
2941# symlink; some systems play weird games with the mod time of symlinks
2942# (eg FreeBSD returns the mod time of the symlink's containing
2943# directory).
2944if (
d0ac1c44
SM
2945 am_has_slept=no
2946 for am_try in 1 2; do
2947 echo "timestamp, slept: $am_has_slept" > conftest.file
2948 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2949 if test "$*" = "X"; then
2950 # -L didn't work.
2951 set X `ls -t "$srcdir/configure" conftest.file`
2952 fi
2953 if test "$*" != "X $srcdir/configure conftest.file" \
2954 && test "$*" != "X conftest.file $srcdir/configure"; then
2955
2956 # If neither matched, then we have a broken ls. This can happen
2957 # if, for instance, CONFIG_SHELL is bash and it inherits a
2958 # broken ls alias from the environment. This has actually
2959 # happened. Such a system could not be considered "sane".
2960 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2961 alias in your environment" "$LINENO" 5
2962 fi
2963 if test "$2" = conftest.file || test $am_try -eq 2; then
2964 break
2965 fi
2966 # Just in case.
2967 sleep 1
2968 am_has_slept=yes
2969 done
bae7f79e
ILT
2970 test "$2" = conftest.file
2971 )
2972then
2973 # Ok.
2974 :
2975else
d0ac1c44 2976 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2977Check your system clock" "$LINENO" 5
bae7f79e 2978fi
81ecdfbb
RW
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980$as_echo "yes" >&6; }
d0ac1c44
SM
2981# If we didn't sleep, we still need to ensure time stamps of config.status and
2982# generated files are strictly newer.
2983am_sleep_pid=
2984if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2985 ( sleep 1 ) &
2986 am_sleep_pid=$!
2987fi
2988
2989rm -f conftest.file
2990
bae7f79e 2991test "$program_prefix" != NONE &&
81ecdfbb 2992 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bae7f79e
ILT
2993# Use a double $ so make ignores it.
2994test "$program_suffix" != NONE &&
81ecdfbb
RW
2995 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2996# Double any \ or $.
bae7f79e 2997# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2998ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2999program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bae7f79e 3000
d0ac1c44
SM
3001# Expand $ac_aux_dir to an absolute path.
3002am_aux_dir=`cd "$ac_aux_dir" && pwd`
bae7f79e 3003
81ecdfbb
RW
3004if test x"${MISSING+set}" != xset; then
3005 case $am_aux_dir in
3006 *\ * | *\ *)
3007 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3008 *)
3009 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3010 esac
3011fi
bae7f79e 3012# Use eval to expand $SHELL
d0ac1c44
SM
3013if eval "$MISSING --is-lightweight"; then
3014 am_missing_run="$MISSING "
bae7f79e
ILT
3015else
3016 am_missing_run=
d0ac1c44
SM
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3018$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3019fi
3020
d0ac1c44 3021if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3022 case $am_aux_dir in
3023 *\ * | *\ *)
3024 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3025 *)
3026 install_sh="\${SHELL} $am_aux_dir/install-sh"
3027 esac
3028fi
3029
d0ac1c44
SM
3030# Installed binaries are usually stripped using 'strip' when the user
3031# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3032# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3033# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3034if test "$cross_compiling" != no; then
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}strip; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3040if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3041 $as_echo_n "(cached) " >&6
3042else
3043 if test -n "$STRIP"; then
3044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3053 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057done
3058 done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063STRIP=$ac_cv_prog_STRIP
3064if test -n "$STRIP"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3066$as_echo "$STRIP" >&6; }
3067else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073fi
3074if test -z "$ac_cv_prog_STRIP"; then
3075 ac_ct_STRIP=$STRIP
3076 # Extract the first word of "strip", so it can be a program name with args.
3077set dummy strip; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3080if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3081 $as_echo_n "(cached) " >&6
3082else
3083 if test -n "$ac_ct_STRIP"; then
3084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3093 ac_cv_prog_ac_ct_STRIP="strip"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097done
3098 done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3104if test -n "$ac_ct_STRIP"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3106$as_echo "$ac_ct_STRIP" >&6; }
3107else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112 if test "x$ac_ct_STRIP" = x; then
3113 STRIP=":"
3114 else
3115 case $cross_compiling:$ac_tool_warned in
3116yes:)
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119ac_tool_warned=yes ;;
3120esac
3121 STRIP=$ac_ct_STRIP
3122 fi
3123else
3124 STRIP="$ac_cv_prog_STRIP"
3125fi
3126
3127fi
3128INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3129
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3131$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3132if test -z "$MKDIR_P"; then
d0ac1c44 3133 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3134 $as_echo_n "(cached) " >&6
3135else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_prog in mkdir gmkdir; do
3142 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3143 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3144 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3145 'mkdir (GNU coreutils) '* | \
3146 'mkdir (coreutils) '* | \
3147 'mkdir (fileutils) '4.1*)
3148 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3149 break 3;;
3150 esac
3151 done
3152 done
bae7f79e 3153 done
81ecdfbb
RW
3154IFS=$as_save_IFS
3155
3156fi
3157
d0ac1c44 3158 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3159 if test "${ac_cv_path_mkdir+set}" = set; then
3160 MKDIR_P="$ac_cv_path_mkdir -p"
bae7f79e 3161 else
81ecdfbb
RW
3162 # As a last resort, use the slow shell script. Don't cache a
3163 # value for MKDIR_P within a source directory, because that will
3164 # break other packages using the cache if that directory is
3165 # removed, or if the value is a relative name.
81ecdfbb 3166 MKDIR_P="$ac_install_sh -d"
bae7f79e
ILT
3167 fi
3168fi
81ecdfbb
RW
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3170$as_echo "$MKDIR_P" >&6; }
3171
bae7f79e
ILT
3172for ac_prog in gawk mawk nawk awk
3173do
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3178if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 3179 $as_echo_n "(cached) " >&6
bae7f79e
ILT
3180else
3181 if test -n "$AWK"; then
3182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3183else
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
81ecdfbb 3189 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bae7f79e 3191 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bae7f79e
ILT
3193 break 2
3194 fi
3195done
81ecdfbb
RW
3196 done
3197IFS=$as_save_IFS
bae7f79e
ILT
3198
3199fi
3200fi
3201AWK=$ac_cv_prog_AWK
3202if test -n "$AWK"; then
81ecdfbb
RW
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3204$as_echo "$AWK" >&6; }
bae7f79e 3205else
81ecdfbb
RW
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
bae7f79e
ILT
3208fi
3209
81ecdfbb 3210
bae7f79e
ILT
3211 test -n "$AWK" && break
3212done
3213
81ecdfbb
RW
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3215$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3216set x ${MAKE-make}
3217ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3218if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3219 $as_echo_n "(cached) " >&6
bae7f79e
ILT
3220else
3221 cat >conftest.make <<\_ACEOF
81ecdfbb 3222SHELL = /bin/sh
bae7f79e 3223all:
81ecdfbb 3224 @echo '@@@%%%=$(MAKE)=@@@%%%'
bae7f79e 3225_ACEOF
d0ac1c44 3226# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3227case `${MAKE-make} -f conftest.make 2>/dev/null` in
3228 *@@@%%%=?*=@@@%%%*)
3229 eval ac_cv_prog_make_${ac_make}_set=yes;;
3230 *)
3231 eval ac_cv_prog_make_${ac_make}_set=no;;
3232esac
bae7f79e
ILT
3233rm -f conftest.make
3234fi
81ecdfbb
RW
3235if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3237$as_echo "yes" >&6; }
bae7f79e
ILT
3238 SET_MAKE=
3239else
81ecdfbb
RW
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241$as_echo "no" >&6; }
bae7f79e
ILT
3242 SET_MAKE="MAKE=${MAKE-make}"
3243fi
3244
3245rm -rf .tst 2>/dev/null
3246mkdir .tst 2>/dev/null
3247if test -d .tst; then
3248 am__leading_dot=.
3249else
3250 am__leading_dot=_
3251fi
3252rmdir .tst 2>/dev/null
3253
d0ac1c44
SM
3254# Check whether --enable-silent-rules was given.
3255if test "${enable_silent_rules+set}" = set; then :
3256 enableval=$enable_silent_rules;
3257fi
3258
3259case $enable_silent_rules in # (((
3260 yes) AM_DEFAULT_VERBOSITY=0;;
3261 no) AM_DEFAULT_VERBOSITY=1;;
3262 *) AM_DEFAULT_VERBOSITY=1;;
3263esac
3264am_make=${MAKE-make}
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3266$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3267if ${am_cv_make_support_nested_variables+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269else
3270 if $as_echo 'TRUE=$(BAR$(V))
3271BAR0=false
3272BAR1=true
3273V=1
3274am__doit:
3275 @$(TRUE)
3276.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3277 am_cv_make_support_nested_variables=yes
3278else
3279 am_cv_make_support_nested_variables=no
3280fi
3281fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3283$as_echo "$am_cv_make_support_nested_variables" >&6; }
3284if test $am_cv_make_support_nested_variables = yes; then
3285 AM_V='$(V)'
3286 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3287else
3288 AM_V=$AM_DEFAULT_VERBOSITY
3289 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3290fi
3291AM_BACKSLASH='\'
3292
81ecdfbb
RW
3293if test "`cd $srcdir && pwd`" != "`pwd`"; then
3294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3295 # is not polluted with repeated "-I."
3296 am__isrc=' -I$(srcdir)'
3297 # test to see if srcdir already configured
3298 if test -f $srcdir/config.status; then
d0ac1c44 3299 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3300 fi
bae7f79e
ILT
3301fi
3302
3303# test whether we have cygpath
3304if test -z "$CYGPATH_W"; then
3305 if (cygpath --version) >/dev/null 2>/dev/null; then
3306 CYGPATH_W='cygpath -w'
3307 else
3308 CYGPATH_W=echo
3309 fi
3310fi
3311
3312
3313# Define the identity of the package.
8486ee48
ILT
3314 PACKAGE='gold'
3315 VERSION='0.1'
bae7f79e
ILT
3316
3317
3318cat >>confdefs.h <<_ACEOF
3319#define PACKAGE "$PACKAGE"
3320_ACEOF
3321
3322
3323cat >>confdefs.h <<_ACEOF
3324#define VERSION "$VERSION"
3325_ACEOF
3326
3327# Some tools Automake needs.
3328
3329ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3330
3331
3332AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3333
3334
3335AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3336
3337
3338AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3339
3340
3341MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3342
d0ac1c44
SM
3343# For better backward compatibility. To be removed once Automake 1.9.x
3344# dies out for good. For more background, see:
3345# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3346# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3347mkdir_p='$(MKDIR_P)'
3348
3349# We need awk for the "check" target (and possibly the TAP driver). The
3350# system "awk" is bad on some platforms.
6eb7d830
AM
3351# Always define AMTAR for backward compatibility. Yes, it's still used
3352# in the wild :-( We should find a proper way to deprecate it ...
3353AMTAR='$${TAR-tar}'
bae7f79e 3354
d0ac1c44
SM
3355
3356# We'll loop over all known methods to create a tar archive until one works.
3357_am_tools='gnutar pax cpio none'
3358
6eb7d830 3359am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
81ecdfbb
RW
3360
3361
3362
3363
3364
3365
d0ac1c44
SM
3366# POSIX will say in a future version that running "rm -f" with no argument
3367# is OK; and we want to be able to make that assumption in our Makefile
3368# recipes. So use an aggressive probe to check that the usage we want is
3369# actually supported "in the wild" to an acceptable degree.
3370# See automake bug#10828.
3371# To make any issue more visible, cause the running configure to be aborted
3372# by default if the 'rm' program in use doesn't match our expectations; the
3373# user can still override this though.
3374if rm -f && rm -fr && rm -rf; then : OK; else
3375 cat >&2 <<'END'
3376Oops!
3377
3378Your 'rm' program seems unable to run without file operands specified
3379on the command line, even when the '-f' option is present. This is contrary
3380to the behaviour of most rm programs out there, and not conforming with
3381the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3382
3383Please tell bug-automake@gnu.org about your system, including the value
3384of your $PATH and any error possibly output before this message. This
3385can help us improve future automake versions.
3386
3387END
3388 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3389 echo 'Configuration will proceed anyway, since you have set the' >&2
3390 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3391 echo >&2
3392 else
3393 cat >&2 <<'END'
3394Aborting the configuration process, to ensure you take notice of the issue.
3395
3396You can download and install GNU coreutils to get an 'rm' implementation
3397that behaves properly: <http://www.gnu.org/software/coreutils/>.
3398
3399If you want to complete the configuration process using your problematic
3400'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3401to "yes", and re-run configure.
3402
3403END
3404 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3405 fi
3406fi
3407
3408
81ecdfbb
RW
3409ac_config_headers="$ac_config_headers config.h:config.in"
3410
3411
24538276 3412DEPDIR="${am__leading_dot}deps"
81ecdfbb 3413
24538276 3414ac_config_commands="$ac_config_commands depfiles"
df7b86aa
NC
3415
3416
24538276
CC
3417am_make=${MAKE-make}
3418cat > confinc << 'END'
3419am__doit:
3420 @echo this is the am__doit target
3421.PHONY: am__doit
3422END
3423# If we don't find an include directive, just comment out the code.
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3425$as_echo_n "checking for style of include used by $am_make... " >&6; }
3426am__include="#"
3427am__quote=
3428_am_result=none
3429# First try GNU make style include.
3430echo "include confinc" > confmf
d0ac1c44 3431# Ignore all kinds of additional output from 'make'.
24538276
CC
3432case `$am_make -s -f confmf 2> /dev/null` in #(
3433*the\ am__doit\ target*)
3434 am__include=include
3435 am__quote=
3436 _am_result=GNU
3437 ;;
3438esac
3439# Now try BSD make style include.
3440if test "$am__include" = "#"; then
3441 echo '.include "confinc"' > confmf
3442 case `$am_make -s -f confmf 2> /dev/null` in #(
3443 *the\ am__doit\ target*)
3444 am__include=.include
3445 am__quote="\""
3446 _am_result=BSD
3447 ;;
3448 esac
bae7f79e
ILT
3449fi
3450
81ecdfbb 3451
24538276
CC
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3453$as_echo "$_am_result" >&6; }
3454rm -f confinc confmf
ad2d6943 3455
24538276
CC
3456# Check whether --enable-dependency-tracking was given.
3457if test "${enable_dependency_tracking+set}" = set; then :
3458 enableval=$enable_dependency_tracking;
ad2d6943
ILT
3459fi
3460
24538276
CC
3461if test "x$enable_dependency_tracking" != xno; then
3462 am_depcomp="$ac_aux_dir/depcomp"
3463 AMDEPBACKSLASH='\'
3464 am__nodep='_no'
4fda8867 3465fi
24538276
CC
3466 if test "x$enable_dependency_tracking" != xno; then
3467 AMDEP_TRUE=
3468 AMDEP_FALSE='#'
fe9a4c12 3469else
24538276
CC
3470 AMDEP_TRUE='#'
3471 AMDEP_FALSE=
81ecdfbb
RW
3472fi
3473
fe9a4c12 3474
24538276
CC
3475ac_ext=c
3476ac_cpp='$CPP $CPPFLAGS'
3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3482set dummy ${ac_tool_prefix}gcc; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3485if ${ac_cv_prog_CC+:} false; then :
24538276 3486 $as_echo_n "(cached) " >&6
fe9a4c12 3487else
24538276
CC
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3498 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502done
3503 done
3504IFS=$as_save_IFS
fe9a4c12 3505
24538276
CC
3506fi
3507fi
3508CC=$ac_cv_prog_CC
3509if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511$as_echo "$CC" >&6; }
89fc3421 3512else
24538276
CC
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
81ecdfbb
RW
3515fi
3516
89fc3421 3517
24538276
CC
3518fi
3519if test -z "$ac_cv_prog_CC"; then
3520 ac_ct_CC=$CC
3521 # Extract the first word of "gcc", so it can be a program name with args.
3522set dummy gcc; ac_word=$2
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3525if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276
CC
3526 $as_echo_n "(cached) " >&6
3527else
3528 if test -n "$ac_ct_CC"; then
3529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3530else
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3538 ac_cv_prog_ac_ct_CC="gcc"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3541 fi
3542done
3543 done
3544IFS=$as_save_IFS
89fc3421
CC
3545
3546fi
24538276
CC
3547fi
3548ac_ct_CC=$ac_cv_prog_ac_ct_CC
3549if test -n "$ac_ct_CC"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3551$as_echo "$ac_ct_CC" >&6; }
89fc3421 3552else
24538276
CC
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554$as_echo "no" >&6; }
89fc3421
CC
3555fi
3556
24538276
CC
3557 if test "x$ac_ct_CC" = x; then
3558 CC=""
3559 else
3560 case $cross_compiling:$ac_tool_warned in
3561yes:)
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3564ac_tool_warned=yes ;;
6b1edb94 3565esac
24538276
CC
3566 CC=$ac_ct_CC
3567 fi
3568else
3569 CC="$ac_cv_prog_CC"
6b1edb94 3570fi
6b1edb94 3571
24538276
CC
3572if test -z "$CC"; then
3573 if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3575set dummy ${ac_tool_prefix}cc; ac_word=$2
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3578if ${ac_cv_prog_CC+:} false; then :
24538276 3579 $as_echo_n "(cached) " >&6
193a53d9 3580else
24538276
CC
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3591 ac_cv_prog_CC="${ac_tool_prefix}cc"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595done
3596 done
3597IFS=$as_save_IFS
193a53d9 3598
24538276
CC
3599fi
3600fi
3601CC=$ac_cv_prog_CC
3602if test -n "$CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604$as_echo "$CC" >&6; }
3605else
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607$as_echo "no" >&6; }
81ecdfbb
RW
3608fi
3609
193a53d9 3610
24538276 3611 fi
193a53d9 3612fi
24538276
CC
3613if test -z "$CC"; then
3614 # Extract the first word of "cc", so it can be a program name with args.
3615set dummy cc; ac_word=$2
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3618if ${ac_cv_prog_CC+:} false; then :
24538276
CC
3619 $as_echo_n "(cached) " >&6
3620else
3621 if test -n "$CC"; then
3622 ac_cv_prog_CC="$CC" # Let the user override the test.
3623else
3624 ac_prog_rejected=no
3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626for as_dir in $PATH
3627do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3633 ac_prog_rejected=yes
3634 continue
3635 fi
3636 ac_cv_prog_CC="cc"
3637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640done
3641 done
3642IFS=$as_save_IFS
193a53d9 3643
24538276
CC
3644if test $ac_prog_rejected = yes; then
3645 # We found a bogon in the path, so make sure we never use it.
3646 set dummy $ac_cv_prog_CC
3647 shift
3648 if test $# != 0; then
3649 # We chose a different compiler from the bogus one.
3650 # However, it has the same basename, so the bogon will be chosen
3651 # first if we set CC to just the basename; use the full file name.
3652 shift
3653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3654 fi
3655fi
3656fi
3657fi
3658CC=$ac_cv_prog_CC
3659if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661$as_echo "$CC" >&6; }
2760f24c 3662else
24538276
CC
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
2760f24c
RG
3665fi
3666
3667
24538276
CC
3668fi
3669if test -z "$CC"; then
3670 if test -n "$ac_tool_prefix"; then
3671 for ac_prog in cl.exe
3672 do
3673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3677if ${ac_cv_prog_CC+:} false; then :
24538276
CC
3678 $as_echo_n "(cached) " >&6
3679else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694done
3695 done
3696IFS=$as_save_IFS
2760f24c 3697
053a4d68 3698fi
364c7fa5 3699fi
24538276
CC
3700CC=$ac_cv_prog_CC
3701if test -n "$CC"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3703$as_echo "$CC" >&6; }
364c7fa5 3704else
24538276
CC
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
364c7fa5
ILT
3707fi
3708
364c7fa5 3709
24538276
CC
3710 test -n "$CC" && break
3711 done
e79a4bad 3712fi
24538276
CC
3713if test -z "$CC"; then
3714 ac_ct_CC=$CC
3715 for ac_prog in cl.exe
3716do
3717 # Extract the first word of "$ac_prog", so it can be a program name with args.
3718set dummy $ac_prog; ac_word=$2
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3721if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276 3722 $as_echo_n "(cached) " >&6
364c7fa5 3723else
24538276
CC
3724 if test -n "$ac_ct_CC"; then
3725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4fc1b9d4 3726else
24538276
CC
3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3734 ac_cv_prog_ac_ct_CC="$ac_prog"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738done
3739 done
3740IFS=$as_save_IFS
4fc1b9d4 3741
ad961eab 3742fi
0a6f1bf2 3743fi
24538276
CC
3744ac_ct_CC=$ac_cv_prog_ac_ct_CC
3745if test -n "$ac_ct_CC"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3747$as_echo "$ac_ct_CC" >&6; }
9810d34d 3748else
24538276
CC
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750$as_echo "no" >&6; }
9810d34d
SS
3751fi
3752
bae7f79e 3753
24538276 3754 test -n "$ac_ct_CC" && break
9109c078 3755done
bae7f79e 3756
24538276
CC
3757 if test "x$ac_ct_CC" = x; then
3758 CC=""
3759 else
3760 case $cross_compiling:$ac_tool_warned in
3761yes:)
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3764ac_tool_warned=yes ;;
3765esac
3766 CC=$ac_ct_CC
3767 fi
537b5f51 3768fi
fa99aa09 3769
81ecdfbb 3770fi
fa99aa09 3771
fa99aa09 3772
24538276
CC
3773test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3775as_fn_error $? "no acceptable C compiler found in \$PATH
3776See \`config.log' for more details" "$LINENO" 5; }
fa99aa09 3777
24538276
CC
3778# Provide some information about the compiler.
3779$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3780set X $ac_compile
3781ac_compiler=$2
3782for ac_option in --version -v -V -qversion; do
3783 { { ac_try="$ac_compiler $ac_option >&5"
3784case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787esac
3788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789$as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3791 ac_status=$?
3792 if test -s conftest.err; then
3793 sed '10a\
3794... rest of stderr output deleted ...
3795 10q' conftest.err >conftest.er1
3796 cat conftest.er1 >&5
24538276 3797 fi
d0ac1c44 3798 rm -f conftest.er1 conftest.err
24538276
CC
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }
3801done
bae7f79e 3802
24538276
CC
3803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h. */
bae7f79e 3805
24538276
CC
3806int
3807main ()
3808{
bae7f79e 3809
24538276
CC
3810 ;
3811 return 0;
3812}
81ecdfbb 3813_ACEOF
24538276 3814ac_clean_files_save=$ac_clean_files
d0ac1c44 3815ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
24538276
CC
3816# Try to create an executable without -o first, disregard a.out.
3817# It will help us diagnose broken compilers, and finding out an intuition
3818# of exeext.
d0ac1c44
SM
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3820$as_echo_n "checking whether the C compiler works... " >&6; }
24538276 3821ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
bae7f79e 3822
24538276
CC
3823# The possible output files:
3824ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
bae7f79e 3825
24538276
CC
3826ac_rmfiles=
3827for ac_file in $ac_files
3828do
3829 case $ac_file in
3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3831 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3832 esac
3833done
3834rm -f $ac_rmfiles
bae7f79e 3835
24538276
CC
3836if { { ac_try="$ac_link_default"
3837case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840esac
3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842$as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_link_default") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; then :
3847 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3848# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3849# in a Makefile. We should not override ac_cv_exeext if it was cached,
3850# so that the user can short-circuit this test for compilers unknown to
3851# Autoconf.
3852for ac_file in $ac_files ''
3853do
3854 test -f "$ac_file" || continue
3855 case $ac_file in
3856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3857 ;;
3858 [ab].out )
3859 # We found the default executable, but exeext='' is most
3860 # certainly right.
3861 break;;
3862 *.* )
3863 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3864 then :; else
3865 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866 fi
3867 # We set ac_cv_exeext here because the later test for it is not
3868 # safe: cross compilers may not add the suffix if given an `-o'
3869 # argument, so we may need to know it at that point already.
3870 # Even if this section looks crufty: it has the advantage of
3871 # actually working.
3872 break;;
3873 * )
3874 break;;
3875 esac
3876done
3877test "$ac_cv_exeext" = no && ac_cv_exeext=
3f3cddf1 3878
3f3cddf1 3879else
24538276 3880 ac_file=''
3f3cddf1 3881fi
24538276 3882if test -z "$ac_file"; then :
d0ac1c44
SM
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885$as_echo "$as_me: failed program was:" >&5
24538276 3886sed 's/^/| /' conftest.$ac_ext >&5
3f3cddf1 3887
24538276
CC
3888{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3890as_fn_error 77 "C compiler cannot create executables
3891See \`config.log' for more details" "$LINENO" 5; }
3892else
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3894$as_echo "yes" >&6; }
24538276 3895fi
d0ac1c44
SM
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3897$as_echo_n "checking for C compiler default output file name... " >&6; }
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3899$as_echo "$ac_file" >&6; }
24538276 3900ac_exeext=$ac_cv_exeext
3f3cddf1 3901
d0ac1c44 3902rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
24538276 3903ac_clean_files=$ac_clean_files_save
24538276
CC
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3905$as_echo_n "checking for suffix of executables... " >&6; }
3906if { { ac_try="$ac_link"
3907case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910esac
3911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912$as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_link") 2>&5
3914 ac_status=$?
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; then :
3917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3918# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3919# work properly (i.e., refer to `conftest.exe'), while it won't with
3920# `rm'.
3921for ac_file in conftest.exe conftest conftest.*; do
3922 test -f "$ac_file" || continue
3923 case $ac_file in
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 break;;
3927 * ) break;;
3928 esac
3929done
3930else
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3933as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3934See \`config.log' for more details" "$LINENO" 5; }
3f3cddf1 3935fi
d0ac1c44 3936rm -f conftest conftest$ac_cv_exeext
24538276
CC
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3938$as_echo "$ac_cv_exeext" >&6; }
3f3cddf1 3939
24538276
CC
3940rm -f conftest.$ac_ext
3941EXEEXT=$ac_cv_exeext
3942ac_exeext=$EXEEXT
d0ac1c44
SM
3943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h. */
3945#include <stdio.h>
3946int
3947main ()
3948{
3949FILE *f = fopen ("conftest.out", "w");
3950 return ferror (f) || fclose (f) != 0;
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956ac_clean_files="$ac_clean_files conftest.out"
3957# Check that the compiler produces executables we can run. If not, either
3958# the compiler is broken, or we cross compile.
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3960$as_echo_n "checking whether we are cross compiling... " >&6; }
3961if test "$cross_compiling" != yes; then
3962 { { ac_try="$ac_link"
3963case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966esac
3967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968$as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }
3973 if { ac_try='./conftest$ac_cv_exeext'
3974 { { case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977esac
3978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979$as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_try") 2>&5
3981 ac_status=$?
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; }; then
3984 cross_compiling=no
3985 else
3986 if test "$cross_compiling" = maybe; then
3987 cross_compiling=yes
3988 else
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991as_fn_error $? "cannot run C compiled programs.
3992If you meant to cross compile, use \`--host'.
3993See \`config.log' for more details" "$LINENO" 5; }
3994 fi
3995 fi
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3998$as_echo "$cross_compiling" >&6; }
3999
4000rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4001ac_clean_files=$ac_clean_files_save
24538276
CC
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4003$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4004if ${ac_cv_objext+:} false; then :
ebb300b2
CC
4005 $as_echo_n "(cached) " >&6
4006else
24538276
CC
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h. */
4009
4010int
4011main ()
4012{
4013
4014 ;
4015 return 0;
4016}
4017_ACEOF
4018rm -f conftest.o conftest.obj
4019if { { ac_try="$ac_compile"
4020case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023esac
4024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025$as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compile") 2>&5
4027 ac_status=$?
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }; then :
4030 for ac_file in conftest.o conftest.obj conftest.*; do
4031 test -f "$ac_file" || continue;
4032 case $ac_file in
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035 break;;
4036 esac
ebb300b2 4037done
24538276
CC
4038else
4039 $as_echo "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
ebb300b2 4041
24538276
CC
4042{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4044as_fn_error $? "cannot compute suffix of object files: cannot compile
4045See \`config.log' for more details" "$LINENO" 5; }
ebb300b2 4046fi
24538276 4047rm -f conftest.$ac_cv_objext conftest.$ac_ext
ebb300b2 4048fi
24538276
CC
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050$as_echo "$ac_cv_objext" >&6; }
4051OBJEXT=$ac_cv_objext
4052ac_objext=$OBJEXT
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4054$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4055if ${ac_cv_c_compiler_gnu+:} false; then :
24538276 4056 $as_echo_n "(cached) " >&6
ebb300b2 4057else
24538276
CC
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h. */
ebb300b2 4060
24538276
CC
4061int
4062main ()
4063{
4064#ifndef __GNUC__
4065 choke me
4066#endif
ebb300b2 4067
24538276
CC
4068 ;
4069 return 0;
4070}
4071_ACEOF
4072if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_compiler_gnu=yes
ebb300b2 4074else
24538276 4075 ac_compiler_gnu=no
ebb300b2 4076fi
24538276
CC
4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078ac_cv_c_compiler_gnu=$ac_compiler_gnu
4079
ebb300b2 4080fi
24538276
CC
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4082$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4083if test $ac_compiler_gnu = yes; then
4084 GCC=yes
ebb300b2 4085else
24538276 4086 GCC=
ebb300b2 4087fi
24538276
CC
4088ac_test_CFLAGS=${CFLAGS+set}
4089ac_save_CFLAGS=$CFLAGS
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4092if ${ac_cv_prog_cc_g+:} false; then :
24538276 4093 $as_echo_n "(cached) " >&6
ebb300b2 4094else
24538276
CC
4095 ac_save_c_werror_flag=$ac_c_werror_flag
4096 ac_c_werror_flag=yes
4097 ac_cv_prog_cc_g=no
4098 CFLAGS="-g"
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h. */
ebb300b2 4101
24538276
CC
4102int
4103main ()
4104{
ebb300b2 4105
24538276
CC
4106 ;
4107 return 0;
4108}
4109_ACEOF
4110if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_cv_prog_cc_g=yes
81ecdfbb 4112else
24538276
CC
4113 CFLAGS=""
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h. */
bae7f79e 4116
24538276
CC
4117int
4118main ()
4119{
bae7f79e 4120
24538276
CC
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125if ac_fn_c_try_compile "$LINENO"; then :
bae7f79e 4126
81ecdfbb 4127else
24538276
CC
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h. */
bae7f79e 4132
24538276
CC
4133int
4134main ()
4135{
4136
4137 ;
4138 return 0;
4139}
4140_ACEOF
4141if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
81ecdfbb 4143fi
24538276 4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 4145fi
24538276 4146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bae7f79e 4147fi
24538276
CC
4148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4152$as_echo "$ac_cv_prog_cc_g" >&6; }
4153if test "$ac_test_CFLAGS" = set; then
4154 CFLAGS=$ac_save_CFLAGS
4155elif test $ac_cv_prog_cc_g = yes; then
4156 if test "$GCC" = yes; then
4157 CFLAGS="-g -O2"
81ecdfbb 4158 else
24538276 4159 CFLAGS="-g"
81ecdfbb 4160 fi
bae7f79e 4161else
24538276
CC
4162 if test "$GCC" = yes; then
4163 CFLAGS="-O2"
4164 else
4165 CFLAGS=
4166 fi
bae7f79e 4167fi
24538276
CC
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4169$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4170if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4171 $as_echo_n "(cached) " >&6
bae7f79e 4172else
24538276
CC
4173 ac_cv_prog_cc_c89=no
4174ac_save_CC=$CC
4175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h. */
4177#include <stdarg.h>
4178#include <stdio.h>
d0ac1c44 4179struct stat;
24538276
CC
4180/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4181struct buf { int x; };
4182FILE * (*rcsopen) (struct buf *, struct stat *, int);
4183static char *e (p, i)
4184 char **p;
4185 int i;
4186{
4187 return p[i];
4188}
4189static char *f (char * (*g) (char **, int), char **p, ...)
4190{
4191 char *s;
4192 va_list v;
4193 va_start (v,p);
4194 s = g (p, va_arg (v,int));
4195 va_end (v);
4196 return s;
4197}
4198
4199/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4200 function prototypes and stuff, but not '\xHH' hex character constants.
4201 These don't provoke an error unfortunately, instead are silently treated
4202 as 'x'. The following induces an error, until -std is added to get
4203 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4204 array size at least. It's necessary to write '\x00'==0 to get something
4205 that's true only with -std. */
4206int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4207
4208/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4209 inside strings and character constants. */
4210#define FOO(x) 'x'
4211int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4212
4213int test (int i, double x);
4214struct s1 {int (*f) (int a);};
4215struct s2 {int (*f) (double a);};
4216int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4217int argc;
4218char **argv;
4219int
4220main ()
4221{
4222return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4228 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4229do
4230 CC="$ac_save_CC $ac_arg"
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232 ac_cv_prog_cc_c89=$ac_arg
4233fi
4234rm -f core conftest.err conftest.$ac_objext
4235 test "x$ac_cv_prog_cc_c89" != "xno" && break
4236done
4237rm -f conftest.$ac_ext
4238CC=$ac_save_CC
4239
4240fi
4241# AC_CACHE_VAL
4242case "x$ac_cv_prog_cc_c89" in
4243 x)
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4245$as_echo "none needed" >&6; } ;;
4246 xno)
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4248$as_echo "unsupported" >&6; } ;;
4249 *)
4250 CC="$CC $ac_cv_prog_cc_c89"
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4252$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4253esac
4254if test "x$ac_cv_prog_cc_c89" != xno; then :
4255
4256fi
4257
4258ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263
d0ac1c44
SM
4264ac_ext=c
4265ac_cpp='$CPP $CPPFLAGS'
4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4270$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4271if ${am_cv_prog_cc_c_o+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h. */
4276
4277int
4278main ()
4279{
4280
4281 ;
4282 return 0;
4283}
4284_ACEOF
4285 # Make sure it works both with $CC and with simple cc.
4286 # Following AC_PROG_CC_C_O, we do the test twice because some
4287 # compilers refuse to overwrite an existing .o file with -o,
4288 # though they will create one.
4289 am_cv_prog_cc_c_o=yes
4290 for am_i in 1 2; do
4291 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4292 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } \
4296 && test -f conftest2.$ac_objext; then
4297 : OK
4298 else
4299 am_cv_prog_cc_c_o=no
4300 break
4301 fi
4302 done
4303 rm -f core conftest*
4304 unset am_i
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4307$as_echo "$am_cv_prog_cc_c_o" >&6; }
4308if test "$am_cv_prog_cc_c_o" != yes; then
4309 # Losing compiler, so override with the script.
4310 # FIXME: It is wrong to rewrite CC.
4311 # But if we don't then we get into trouble of one sort or another.
4312 # A longer-term fix would be to have automake use am__CC in this case,
4313 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4314 CC="$am_aux_dir/compile $CC"
4315fi
4316ac_ext=c
4317ac_cpp='$CPP $CPPFLAGS'
4318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322
24538276
CC
4323depcc="$CC" am_compiler_list=
4324
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4327if ${am_cv_CC_dependencies_compiler_type+:} false; then :
24538276
CC
4328 $as_echo_n "(cached) " >&6
4329else
4330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331 # We make a subdir and do the tests there. Otherwise we can end up
4332 # making bogus files that we don't know about and never remove. For
4333 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4334 # making a dummy file named 'D' -- because '-MD' means "put the output
4335 # in D".
24538276
CC
4336 rm -rf conftest.dir
4337 mkdir conftest.dir
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4341 cd conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4347 # directory.
4348 mkdir sub
4349
4350 am_cv_CC_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353 fi
4354 am__universal=false
4355 case " $depcc " in #(
4356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357 esac
4358
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4363 #
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4367 : > sub/conftest.c
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4370 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4371 # Solaris 10 /bin/sh.
4372 echo '/* dummy */' > sub/conftst$i.h
24538276
CC
4373 done
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375
d0ac1c44 4376 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 4377 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4378 # handle '-M -o', and we need to detect this. Also, some Intel
4379 # versions had trouble with output in subdirs.
24538276
CC
4380 am__obj=sub/conftest.${OBJEXT-o}
4381 am__minus_obj="-o $am__obj"
4382 case $depmode in
4383 gcc)
4384 # This depmode causes a compiler race in universal mode.
4385 test "$am__universal" = false || continue
4386 ;;
4387 nosideeffect)
d0ac1c44
SM
4388 # After this tag, mechanisms are not by side-effect, so they'll
4389 # only be used when explicitly requested.
24538276
CC
4390 if test "x$enable_dependency_tracking" = xyes; then
4391 continue
4392 else
4393 break
4394 fi
4395 ;;
4396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4397 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
4398 # not run yet. These depmodes are late enough in the game, and
4399 # so weak that their functioning should not be impacted.
4400 am__obj=conftest.${OBJEXT-o}
4401 am__minus_obj=
4402 ;;
4403 none) break ;;
4404 esac
4405 if depmode=$depmode \
4406 source=sub/conftest.c object=$am__obj \
4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409 >/dev/null 2>conftest.err &&
4410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414 # icc doesn't choke on unknown options, it will just issue warnings
4415 # or remarks (even with -Werror). So we grep stderr for any message
4416 # that says an option was ignored or not supported.
4417 # When given -MP, icc 7.0 and 7.1 complain thusly:
4418 # icc: Command line warning: ignoring option '-M'; no argument required
4419 # The diagnosis changed in icc 8.0:
4420 # icc: Command line remark: option '-MP' not supported
4421 if (grep 'ignoring option' conftest.err ||
4422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423 am_cv_CC_dependencies_compiler_type=$depmode
4424 break
4425 fi
4426 fi
81ecdfbb 4427 done
bae7f79e 4428
24538276
CC
4429 cd ..
4430 rm -rf conftest.dir
4431else
4432 am_cv_CC_dependencies_compiler_type=none
bae7f79e 4433fi
24538276 4434
81ecdfbb 4435fi
24538276
CC
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4437$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4438CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439
4440 if
4441 test "x$enable_dependency_tracking" != xno \
4442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443 am__fastdepCC_TRUE=
4444 am__fastdepCC_FALSE='#'
bae7f79e 4445else
24538276
CC
4446 am__fastdepCC_TRUE='#'
4447 am__fastdepCC_FALSE=
bae7f79e
ILT
4448fi
4449
4450
24538276
CC
4451
4452ac_ext=c
4453ac_cpp='$CPP $CPPFLAGS'
4454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4458$as_echo_n "checking how to run the C preprocessor... " >&6; }
4459# On Suns, sometimes $CPP names a directory.
4460if test -n "$CPP" && test -d "$CPP"; then
4461 CPP=
4462fi
4463if test -z "$CPP"; then
d0ac1c44 4464 if ${ac_cv_prog_CPP+:} false; then :
24538276
CC
4465 $as_echo_n "(cached) " >&6
4466else
4467 # Double quotes because CPP needs to be expanded
4468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4469 do
4470 ac_preproc_ok=false
4471for ac_c_preproc_warn_flag in '' yes
4472do
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h. */
4481#ifdef __STDC__
4482# include <limits.h>
4483#else
4484# include <assert.h>
4485#endif
4486 Syntax error
4487_ACEOF
4488if ac_fn_c_try_cpp "$LINENO"; then :
4489
4490else
4491 # Broken: fails on valid input.
4492continue
4493fi
d0ac1c44 4494rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4495
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h. */
4500#include <ac_nonexistent.h>
4501_ACEOF
4502if ac_fn_c_try_cpp "$LINENO"; then :
4503 # Broken: success on invalid input.
4504continue
4505else
4506 # Passes both tests.
4507ac_preproc_ok=:
4508break
4509fi
d0ac1c44 4510rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4511
4512done
4513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4514rm -f conftest.i conftest.err conftest.$ac_ext
24538276
CC
4515if $ac_preproc_ok; then :
4516 break
4517fi
4518
4519 done
4520 ac_cv_prog_CPP=$CPP
4521
4522fi
4523 CPP=$ac_cv_prog_CPP
4524else
4525 ac_cv_prog_CPP=$CPP
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4528$as_echo "$CPP" >&6; }
4529ac_preproc_ok=false
4530for ac_c_preproc_warn_flag in '' yes
4531do
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h. */
4540#ifdef __STDC__
4541# include <limits.h>
4542#else
4543# include <assert.h>
4544#endif
4545 Syntax error
4546_ACEOF
4547if ac_fn_c_try_cpp "$LINENO"; then :
4548
4549else
4550 # Broken: fails on valid input.
4551continue
4552fi
d0ac1c44 4553rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4554
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h. */
4559#include <ac_nonexistent.h>
4560_ACEOF
4561if ac_fn_c_try_cpp "$LINENO"; then :
4562 # Broken: success on invalid input.
4563continue
4564else
4565 # Passes both tests.
4566ac_preproc_ok=:
4567break
4568fi
d0ac1c44 4569rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4570
4571done
4572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4573rm -f conftest.i conftest.err conftest.$ac_ext
24538276
CC
4574if $ac_preproc_ok; then :
4575
4576else
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4579as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4580See \`config.log' for more details" "$LINENO" 5; }
24538276
CC
4581fi
4582
4583ac_ext=c
4584ac_cpp='$CPP $CPPFLAGS'
4585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4591$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4592if ${ac_cv_path_GREP+:} false; then :
24538276
CC
4593 $as_echo_n "(cached) " >&6
4594else
4595 if test -z "$GREP"; then
4596 ac_path_GREP_found=false
4597 # Loop through the user's path and test for each of PROGNAME-LIST
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_prog in grep ggrep; do
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4606 as_fn_executable_p "$ac_path_GREP" || continue
24538276
CC
4607# Check for GNU ac_path_GREP and select it if it is found.
4608 # Check for GNU $ac_path_GREP
4609case `"$ac_path_GREP" --version 2>&1` in
4610*GNU*)
4611 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4612*)
4613 ac_count=0
4614 $as_echo_n 0123456789 >"conftest.in"
4615 while :
4616 do
4617 cat "conftest.in" "conftest.in" >"conftest.tmp"
4618 mv "conftest.tmp" "conftest.in"
4619 cp "conftest.in" "conftest.nl"
4620 $as_echo 'GREP' >> "conftest.nl"
4621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623 as_fn_arith $ac_count + 1 && ac_count=$as_val
4624 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4625 # Best one so far, save it but keep looking for a better one
4626 ac_cv_path_GREP="$ac_path_GREP"
4627 ac_path_GREP_max=$ac_count
4628 fi
4629 # 10*(2^10) chars as input seems more than enough
4630 test $ac_count -gt 10 && break
4631 done
4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633esac
4634
4635 $ac_path_GREP_found && break 3
4636 done
4637 done
4638 done
4639IFS=$as_save_IFS
4640 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4641 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
24538276
CC
4642 fi
4643else
4644 ac_cv_path_GREP=$GREP
4645fi
4646
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4649$as_echo "$ac_cv_path_GREP" >&6; }
4650 GREP="$ac_cv_path_GREP"
4651
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4654$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4655if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb
RW
4656 $as_echo_n "(cached) " >&6
4657else
24538276
CC
4658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659 then ac_cv_path_EGREP="$GREP -E"
4660 else
4661 if test -z "$EGREP"; then
4662 ac_path_EGREP_found=false
4663 # Loop through the user's path and test for each of PROGNAME-LIST
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
81ecdfbb
RW
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
24538276 4669 for ac_prog in egrep; do
81ecdfbb 4670 for ac_exec_ext in '' $ac_executable_extensions; do
24538276 4671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4672 as_fn_executable_p "$ac_path_EGREP" || continue
24538276
CC
4673# Check for GNU ac_path_EGREP and select it if it is found.
4674 # Check for GNU $ac_path_EGREP
4675case `"$ac_path_EGREP" --version 2>&1` in
4676*GNU*)
4677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4678*)
4679 ac_count=0
4680 $as_echo_n 0123456789 >"conftest.in"
4681 while :
4682 do
4683 cat "conftest.in" "conftest.in" >"conftest.tmp"
4684 mv "conftest.tmp" "conftest.in"
4685 cp "conftest.in" "conftest.nl"
4686 $as_echo 'EGREP' >> "conftest.nl"
4687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689 as_fn_arith $ac_count + 1 && ac_count=$as_val
4690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691 # Best one so far, save it but keep looking for a better one
4692 ac_cv_path_EGREP="$ac_path_EGREP"
4693 ac_path_EGREP_max=$ac_count
4694 fi
4695 # 10*(2^10) chars as input seems more than enough
4696 test $ac_count -gt 10 && break
81ecdfbb 4697 done
24538276
CC
4698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699esac
bae7f79e 4700
24538276
CC
4701 $ac_path_EGREP_found && break 3
4702 done
4703 done
4704 done
4705IFS=$as_save_IFS
4706 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4707 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bae7f79e 4708 fi
81ecdfbb 4709else
24538276 4710 ac_cv_path_EGREP=$EGREP
bae7f79e
ILT
4711fi
4712
24538276 4713 fi
81ecdfbb 4714fi
24538276
CC
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4716$as_echo "$ac_cv_path_EGREP" >&6; }
4717 EGREP="$ac_cv_path_EGREP"
4718
4719
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4721$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4722if ${ac_cv_header_stdc+:} false; then :
81ecdfbb 4723 $as_echo_n "(cached) " >&6
bae7f79e 4724else
24538276
CC
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h. */
4727#include <stdlib.h>
4728#include <stdarg.h>
4729#include <string.h>
4730#include <float.h>
4731
4732int
4733main ()
4734{
4735
4736 ;
4737 return 0;
4738}
4739_ACEOF
4740if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_header_stdc=yes
81ecdfbb 4742else
24538276
CC
4743 ac_cv_header_stdc=no
4744fi
4745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746
4747if test $ac_cv_header_stdc = yes; then
4748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750/* end confdefs.h. */
4751#include <string.h>
4752
4753_ACEOF
4754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "memchr" >/dev/null 2>&1; then :
81ecdfbb 4756
24538276
CC
4757else
4758 ac_cv_header_stdc=no
81ecdfbb 4759fi
24538276
CC
4760rm -f conftest*
4761
81ecdfbb 4762fi
24538276
CC
4763
4764if test $ac_cv_header_stdc = yes; then
4765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h. */
4768#include <stdlib.h>
4769
4770_ACEOF
4771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4772 $EGREP "free" >/dev/null 2>&1; then :
4773
81ecdfbb 4774else
24538276 4775 ac_cv_header_stdc=no
bae7f79e 4776fi
24538276 4777rm -f conftest*
bae7f79e 4778
81ecdfbb 4779fi
24538276
CC
4780
4781if test $ac_cv_header_stdc = yes; then
4782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4783 if test "$cross_compiling" = yes; then :
4784 :
bae7f79e 4785else
24538276
CC
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h. */
4788#include <ctype.h>
4789#include <stdlib.h>
4790#if ((' ' & 0x0FF) == 0x020)
4791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4793#else
4794# define ISLOWER(c) \
4795 (('a' <= (c) && (c) <= 'i') \
4796 || ('j' <= (c) && (c) <= 'r') \
4797 || ('s' <= (c) && (c) <= 'z'))
4798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4799#endif
4800
4801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4802int
4803main ()
4804{
4805 int i;
4806 for (i = 0; i < 256; i++)
4807 if (XOR (islower (i), ISLOWER (i))
4808 || toupper (i) != TOUPPER (i))
4809 return 2;
4810 return 0;
4811}
4812_ACEOF
4813if ac_fn_c_try_run "$LINENO"; then :
4814
81ecdfbb 4815else
24538276
CC
4816 ac_cv_header_stdc=no
4817fi
4818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4819 conftest.$ac_objext conftest.beam conftest.$ac_ext
4820fi
4821
4822fi
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4825$as_echo "$ac_cv_header_stdc" >&6; }
4826if test $ac_cv_header_stdc = yes; then
4827
4828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
81ecdfbb 4829
bae7f79e 4830fi
24538276
CC
4831
4832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4834 inttypes.h stdint.h unistd.h
4835do :
4836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4838"
d0ac1c44 4839if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24538276
CC
4840 cat >>confdefs.h <<_ACEOF
4841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4842_ACEOF
4843
81ecdfbb 4844fi
24538276
CC
4845
4846done
4847
4848
4849
4850 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4851if test "x$ac_cv_header_minix_config_h" = xyes; then :
24538276 4852 MINIX=yes
bae7f79e 4853else
24538276 4854 MINIX=
bae7f79e
ILT
4855fi
4856
bae7f79e 4857
24538276 4858 if test "$MINIX" = yes; then
bae7f79e 4859
24538276 4860$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
bae7f79e 4861
bae7f79e 4862
24538276 4863$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
81ecdfbb 4864
81ecdfbb 4865
24538276
CC
4866$as_echo "#define _MINIX 1" >>confdefs.h
4867
81ecdfbb 4868 fi
81ecdfbb 4869
24538276
CC
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4872$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4873if ${ac_cv_safe_to_define___extensions__+:} false; then :
24538276
CC
4874 $as_echo_n "(cached) " >&6
4875else
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
4877/* end confdefs.h. */
4878
d0ac1c44
SM
4879# define __EXTENSIONS__ 1
4880 $ac_includes_default
81ecdfbb
RW
4881int
4882main ()
4883{
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
24538276
CC
4889if ac_fn_c_try_compile "$LINENO"; then :
4890 ac_cv_safe_to_define___extensions__=yes
4891else
4892 ac_cv_safe_to_define___extensions__=no
4893fi
4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895fi
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4897$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4898 test $ac_cv_safe_to_define___extensions__ = yes &&
4899 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
81ecdfbb 4900
24538276 4901 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
81ecdfbb 4902
24538276 4903 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
81ecdfbb 4904
24538276
CC
4905 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4906
4907 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4908
4909
4910
4911# PR 14072
4912
4913
4914
4915# Check whether --with-sysroot was given.
4916if test "${with_sysroot+set}" = set; then :
4917 withval=$with_sysroot; sysroot=$withval
4918else
4919 sysroot=no
4920fi
4921
4922
4923if test "$sysroot" = "yes"; then
4924 sysroot='${exec_prefix}/${target_alias}/sys-root'
4925elif test "$sysroot" = "no"; then
4926 sysroot=
4927fi
4928
4929sysroot_relocatable=0
4930if test -n "$sysroot"; then
4931 case "$sysroot" in
4932 "${prefix}" | "${prefix}/"* | \
4933 "${exec_prefix}" | "${exec_prefix}/"* | \
4934 '${prefix}' | '${prefix}/'*| \
4935 '${exec_prefix}' | '${exec_prefix}/'*)
4936 sysroot_relocatable=1
4937 ;;
81ecdfbb 4938 esac
24538276
CC
4939fi
4940
4941
4942cat >>confdefs.h <<_ACEOF
4943#define TARGET_SYSTEM_ROOT "$sysroot"
4944_ACEOF
81ecdfbb 4945
24538276
CC
4946
4947cat >>confdefs.h <<_ACEOF
4948#define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
4949_ACEOF
4950
4951
4952
4953installed_linker=ld.gold
4954# Check whether --enable-gold was given.
4955if test "${enable_gold+set}" = set; then :
4956 enableval=$enable_gold; case "${enableval}" in
4957 default)
4958 install_as_default=yes
4959 ;;
4960 yes)
4961 if test x${enable_ld} = xno; then
4962 install_as_default=yes
4963 fi
4964 ;;
4965 esac
bae7f79e 4966else
24538276 4967 install_as_default=no
bae7f79e
ILT
4968fi
4969
24538276
CC
4970
4971
4972
24538276
CC
4973
4974 maybe_plugins=no
4975 for ac_header in dlfcn.h
4976do :
4977 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4978"
d0ac1c44 4979if test "x$ac_cv_header_dlfcn_h" = xyes; then :
24538276
CC
4980 cat >>confdefs.h <<_ACEOF
4981#define HAVE_DLFCN_H 1
4982_ACEOF
4983 maybe_plugins=yes
81ecdfbb 4984fi
bae7f79e 4985
24538276
CC
4986done
4987
4988 for ac_header in windows.h
4989do :
4990 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4991"
d0ac1c44 4992if test "x$ac_cv_header_windows_h" = xyes; then :
24538276
CC
4993 cat >>confdefs.h <<_ACEOF
4994#define HAVE_WINDOWS_H 1
4995_ACEOF
4996 maybe_plugins=yes
4997fi
81ecdfbb 4998
81ecdfbb 4999done
24538276
CC
5000
5001
5002 # Check whether --enable-plugins was given.
5003if test "${enable_plugins+set}" = set; then :
5004 enableval=$enable_plugins; case "${enableval}" in
5005 no) plugins=no ;;
5006 *) plugins=yes
5007 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 5008 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
24538276
CC
5009 fi ;;
5010 esac
81ecdfbb 5011else
24538276
CC
5012 plugins=$maybe_plugins
5013
81ecdfbb 5014fi
bae7f79e 5015
24538276 5016 if test "$plugins" = "yes"; then
c4a614e2
AM
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5018$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 5019if ${ac_cv_search_dlsym+:} false; then :
81ecdfbb 5020 $as_echo_n "(cached) " >&6
92e059d8 5021else
24538276
CC
5022 ac_func_search_save_LIBS=$LIBS
5023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92e059d8 5024/* end confdefs.h. */
92e059d8 5025
24538276
CC
5026/* Override any GCC internal prototype to avoid an error.
5027 Use char because int might match the return type of a GCC
5028 builtin and then its argument prototype would still apply. */
5029#ifdef __cplusplus
5030extern "C"
5031#endif
c4a614e2 5032char dlsym ();
92e059d8
ILT
5033int
5034main ()
5035{
c4a614e2 5036return dlsym ();
92e059d8
ILT
5037 ;
5038 return 0;
5039}
5040_ACEOF
24538276
CC
5041for ac_lib in '' dl; do
5042 if test -z "$ac_lib"; then
5043 ac_res="none required"
5044 else
5045 ac_res=-l$ac_lib
5046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5047 fi
5048 if ac_fn_c_try_link "$LINENO"; then :
c4a614e2 5049 ac_cv_search_dlsym=$ac_res
24538276
CC
5050fi
5051rm -f core conftest.err conftest.$ac_objext \
5052 conftest$ac_exeext
d0ac1c44 5053 if ${ac_cv_search_dlsym+:} false; then :
24538276
CC
5054 break
5055fi
81ecdfbb 5056done
d0ac1c44 5057if ${ac_cv_search_dlsym+:} false; then :
24538276 5058
81ecdfbb 5059else
c4a614e2 5060 ac_cv_search_dlsym=no
24538276
CC
5061fi
5062rm conftest.$ac_ext
5063LIBS=$ac_func_search_save_LIBS
5064fi
c4a614e2
AM
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5066$as_echo "$ac_cv_search_dlsym" >&6; }
5067ac_res=$ac_cv_search_dlsym
24538276
CC
5068if test "$ac_res" != no; then :
5069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
81ecdfbb 5070
81ecdfbb 5071fi
24538276
CC
5072
5073 fi
5074
5075if test "$plugins" = "yes"; then
5076
5077$as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5078
81ecdfbb 5079fi
24538276
CC
5080 if test "$plugins" = "yes"; then
5081 PLUGINS_TRUE=
5082 PLUGINS_FALSE='#'
81ecdfbb 5083else
24538276
CC
5084 PLUGINS_TRUE='#'
5085 PLUGINS_FALSE=
5086fi
92e059d8 5087
92e059d8 5088
24538276
CC
5089# Decide if -z relro should be enabled in ELF linker by default.
5090ac_default_ld_z_relro=unset
5091# Provide a configure time option to override our default.
5092# Check whether --enable-relro was given.
5093if test "${enable_relro+set}" = set; then :
5094 enableval=$enable_relro; case "${enableval}" in
5095 yes) ac_default_ld_z_relro=1 ;;
5096 no) ac_default_ld_z_relro=0 ;;
5097esac
5098fi
5099if test "${ac_default_ld_z_relro}" = unset; then
5100 ac_default_ld_z_relro=1
5101fi
5102
5103cat >>confdefs.h <<_ACEOF
5104#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
92e059d8 5105_ACEOF
24538276
CC
5106
5107
5108# Check whether --enable-targets was given.
5109if test "${enable_targets+set}" = set; then :
5110 enableval=$enable_targets; case "${enableval}" in
5111 yes | "")
d0ac1c44 5112 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
24538276
CC
5113 ;;
5114 no)
5115 enable_targets=
5116 ;;
5117 *)
5118 enable_targets=$enableval
5119 ;;
5120esac
92e059d8 5121else
24538276
CC
5122 # For now, enable all targets by default
5123 enable_targets=all
5124
81ecdfbb 5125fi
92e059d8 5126
24538276
CC
5127
5128# Canonicalize the enabled targets.
5129if test -n "$enable_targets"; then
5130 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5131 result=`$ac_config_sub $targ 2>/dev/null`
5132 if test -n "$result"; then
5133 canon_targets="$canon_targets $result"
5134 else
5135 # Permit unrecognized target names, like "all".
5136 canon_targets="$canon_targets $targ"
5137 fi
5138 done
92e059d8 5139fi
24538276
CC
5140
5141# Decide which "--hash-style" to use by default
5142# Provide a configure time option to override our default.
5143# Check whether --enable-default-hash-style was given.
5144if test "${enable_default_hash_style+set}" = set; then :
5145 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5146 sysv | gnu | both) ;;
d0ac1c44 5147 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
24538276 5148esac
92e059d8 5149else
24538276
CC
5150 case "${target}" in
5151 # Enable gnu hash only on GNU targets, but not mips
5152 mips*-*-*) enable_default_hash_style=sysv ;;
5153 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5154 *) enable_default_hash_style=sysv ;;
5155esac
81ecdfbb 5156fi
81ecdfbb 5157
81ecdfbb 5158
24538276
CC
5159
5160cat >>confdefs.h <<_ACEOF
5161#define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
92e059d8 5162_ACEOF
81ecdfbb 5163
81ecdfbb 5164
24538276
CC
5165# See which specific instantiations we need.
5166targetobjs=
5167all_targets=
5168default_machine=
5169default_size=
5170default_big_endian=
5171default_osabi=ELFOSABI_NONE
5172targ_32_little=
5173targ_32_big=
5174targ_64_little=
5175targ_64_big=
5176for targ in $target $canon_targets; do
5177 if test "$targ" = "all"; then
5178 targ_32_little=yes
5179 targ_32_big=yes
5180 targ_64_little=yes
5181 targ_64_big=yes
5182 all_targets=yes
5183 else
5184 . ${srcdir}/configure.tgt
81ecdfbb 5185
24538276 5186 if test "$targ_obj" = "UNKNOWN"; then
d0ac1c44 5187 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
24538276
CC
5188 else
5189 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5190 if test "$targ_extra_obj" != ""; then
5191 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5192 fi
5193 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5194 if test "$targ_big_endian" = "true" \
5195 -o "$targ_extra_big_endian" = "true"; then
5196 targ_32_big=yes
5197 fi
5198 if test "$targ_big_endian" = "false" \
5199 -o "$targ_extra_big_endian" = "false"; then
5200 targ_32_little=yes
5201 fi
5202 fi
5203 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5204 if test "$targ_big_endian" = "true" \
5205 -o "$targ_extra_big_endian" = "true"; then
5206 targ_64_big=yes
5207 fi
5208 if test "$targ_big_endian" = "false" \
5209 -o "$targ_extra_big_endian" = "false"; then
5210 targ_64_little=yes
5211 fi
5212 fi
92e059d8 5213
24538276
CC
5214 if test "$target" = "$targ"; then
5215 default_machine=$targ_machine
5216 default_size=$targ_size
5217 default_big_endian=$targ_big_endian
5218 default_osabi=$targ_osabi
92e059d8 5219
24538276
CC
5220 if test "$targ_obj" = "aarch64"; then
5221 DEFAULT_TARGET_AARCH64_TRUE=
5222 DEFAULT_TARGET_AARCH64_FALSE='#'
5223else
5224 DEFAULT_TARGET_AARCH64_TRUE='#'
5225 DEFAULT_TARGET_AARCH64_FALSE=
63402fe4 5226fi
24538276
CC
5227
5228 if test "$targ_obj" = "arm"; then
5229 DEFAULT_TARGET_ARM_TRUE=
5230 DEFAULT_TARGET_ARM_FALSE='#'
5231else
5232 DEFAULT_TARGET_ARM_TRUE='#'
5233 DEFAULT_TARGET_ARM_FALSE=
8a5e3e08 5234fi
24538276
CC
5235
5236 if test "$targ_obj" = "i386"; then
5237 DEFAULT_TARGET_I386_TRUE=
5238 DEFAULT_TARGET_I386_FALSE='#'
6eee141f 5239else
24538276
CC
5240 DEFAULT_TARGET_I386_TRUE='#'
5241 DEFAULT_TARGET_I386_FALSE=
097ec620 5242fi
24538276
CC
5243
5244 if test "$targ_obj" = "powerpc"; then
5245 DEFAULT_TARGET_POWERPC_TRUE=
5246 DEFAULT_TARGET_POWERPC_FALSE='#'
6eee141f 5247else
24538276
CC
5248 DEFAULT_TARGET_POWERPC_TRUE='#'
5249 DEFAULT_TARGET_POWERPC_FALSE=
5250fi
6eee141f 5251
24538276
CC
5252 if test "$targ_obj" = "sparc"; then
5253 DEFAULT_TARGET_SPARC_TRUE=
5254 DEFAULT_TARGET_SPARC_FALSE='#'
5255else
5256 DEFAULT_TARGET_SPARC_TRUE='#'
5257 DEFAULT_TARGET_SPARC_FALSE=
5258fi
097ec620 5259
24538276
CC
5260 if test "$targ_obj" = "s390"; then
5261 DEFAULT_TARGET_S390_TRUE=
5262 DEFAULT_TARGET_S390_FALSE='#'
5263else
5264 DEFAULT_TARGET_S390_TRUE='#'
5265 DEFAULT_TARGET_S390_FALSE=
5266fi
097ec620 5267
24538276
CC
5268 target_x86_64=no
5269 target_x32=no
5270 if test "$targ_obj" = "x86_64"; then
5271 case "$target" in
5272 x86_64*-linux-gnux32)
5273 target_x32=yes
5274 default_size=32
5275 ;;
5276 *)
5277 target_x86_64=yes
5278 ;;
5279 esac
5280 fi
5281 if test "$target_x86_64" = "yes"; then
5282 DEFAULT_TARGET_X86_64_TRUE=
5283 DEFAULT_TARGET_X86_64_FALSE='#'
5284else
5285 DEFAULT_TARGET_X86_64_TRUE='#'
5286 DEFAULT_TARGET_X86_64_FALSE=
097ec620 5287fi
097ec620 5288
24538276
CC
5289 if test "$target_x32" = "yes"; then
5290 DEFAULT_TARGET_X32_TRUE=
5291 DEFAULT_TARGET_X32_FALSE='#'
5292else
5293 DEFAULT_TARGET_X32_TRUE='#'
5294 DEFAULT_TARGET_X32_FALSE=
097ec620
ILT
5295fi
5296
24538276
CC
5297 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5298 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5299 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5300else
5301 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5302 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
81ecdfbb 5303fi
097ec620 5304
24538276
CC
5305 if test "$targ_obj" = "tilegx"; then
5306 DEFAULT_TARGET_TILEGX_TRUE=
5307 DEFAULT_TARGET_TILEGX_FALSE='#'
5308else
5309 DEFAULT_TARGET_TILEGX_TRUE='#'
5310 DEFAULT_TARGET_TILEGX_FALSE=
5311fi
155a0dd7 5312
24538276
CC
5313 if test "$targ_obj" = "mips"; then
5314 DEFAULT_TARGET_MIPS_TRUE=
5315 DEFAULT_TARGET_MIPS_FALSE='#'
5316else
5317 DEFAULT_TARGET_MIPS_TRUE='#'
5318 DEFAULT_TARGET_MIPS_FALSE=
5319fi
155a0dd7 5320
24538276
CC
5321 DEFAULT_TARGET=${targ_obj}
5322
5323 fi
5324 fi
5325 fi
5326done
5327
5328# Remove any duplicates.
5329to=""
5330for t in $targetobjs; do
5331 case " $to " in
5332 *" $t "*) ;;
5333 *) to="$to $t" ;;
5334 esac
5335done
5336targetobjs=$to
5337
5338if test -n "$targ_32_little"; then
5339
5340$as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
155a0dd7 5341
155a0dd7 5342fi
24538276 5343if test -n "$targ_32_big"; then
155a0dd7 5344
24538276 5345$as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
155a0dd7 5346
24538276
CC
5347fi
5348if test -n "$targ_64_little"; then
5349
5350$as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
155a0dd7 5351
81ecdfbb 5352fi
24538276
CC
5353if test -n "$targ_64_big"; then
5354
5355$as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
155a0dd7 5356
81ecdfbb 5357fi
24538276
CC
5358
5359if test -n "$all_targets"; then
5360 TARGETOBJS='$(ALL_TARGETOBJS)'
155a0dd7 5361else
24538276 5362 TARGETOBJS="$targetobjs"
155a0dd7
ILT
5363fi
5364
5365
c2b45e22 5366
24538276
CC
5367cat >>confdefs.h <<_ACEOF
5368#define GOLD_DEFAULT_MACHINE $default_machine
5369_ACEOF
c2b45e22 5370
c2b45e22 5371
24538276
CC
5372cat >>confdefs.h <<_ACEOF
5373#define GOLD_DEFAULT_SIZE $default_size
5374_ACEOF
c2b45e22 5375
c2b45e22 5376
24538276
CC
5377cat >>confdefs.h <<_ACEOF
5378#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5379_ACEOF
c2b45e22 5380
24538276
CC
5381
5382cat >>confdefs.h <<_ACEOF
5383#define GOLD_DEFAULT_OSABI $default_osabi
5384_ACEOF
5385
5386
5387
5388# Check whether --with-lib-path was given.
5389if test "${with_lib_path+set}" = set; then :
5390 withval=$with_lib_path; case "$withval" in
5391 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5392 no) LIB_PATH='""' ;;
5393 *) LIB_PATH='"'"$withval"'"' ;;
5394 esac
c2b45e22 5395else
24538276 5396 LIB_PATH='"::DEFAULT::"'
c2b45e22 5397fi
c2b45e22
CC
5398
5399
24538276
CC
5400cat >>confdefs.h <<_ACEOF
5401#define LIB_PATH $LIB_PATH
5402_ACEOF
c2b45e22 5403
24538276 5404if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
c2b45e22 5405
24538276
CC
5406$as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5407
5408fi
5409
5410if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}nm; ac_word=$2
81ecdfbb
RW
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5415if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 5416 $as_echo_n "(cached) " >&6
2fd32231 5417else
24538276
CC
5418 if test -n "$NM"; then
5419 ac_cv_prog_NM="$NM" # Let the user override the test.
2fd32231 5420else
81ecdfbb
RW
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5428 ac_cv_prog_NM="${ac_tool_prefix}nm"
81ecdfbb
RW
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5431 fi
5432done
5433 done
5434IFS=$as_save_IFS
2fd32231 5435
2fd32231 5436fi
2fd32231 5437fi
24538276
CC
5438NM=$ac_cv_prog_NM
5439if test -n "$NM"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5441$as_echo "$NM" >&6; }
2fd32231 5442else
81ecdfbb
RW
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }
2fd32231
ILT
5445fi
5446
5447
81ecdfbb 5448fi
24538276
CC
5449if test -z "$ac_cv_prog_NM"; then
5450 ac_ct_NM=$NM
5451 # Extract the first word of "nm", so it can be a program name with args.
5452set dummy nm; ac_word=$2
81ecdfbb
RW
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5455if ${ac_cv_prog_ac_ct_NM+:} false; then :
81ecdfbb 5456 $as_echo_n "(cached) " >&6
1d1f116d 5457else
24538276
CC
5458 if test -n "$ac_ct_NM"; then
5459 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
1d1f116d 5460else
81ecdfbb
RW
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5468 ac_cv_prog_ac_ct_NM="nm"
81ecdfbb
RW
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472done
5473 done
5474IFS=$as_save_IFS
1d1f116d 5475
1d1f116d 5476fi
1d1f116d 5477fi
24538276
CC
5478ac_ct_NM=$ac_cv_prog_ac_ct_NM
5479if test -n "$ac_ct_NM"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5481$as_echo "$ac_ct_NM" >&6; }
81ecdfbb
RW
5482else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
1d1f116d
CD
5485fi
5486
24538276
CC
5487 if test "x$ac_ct_NM" = x; then
5488 NM=""
81ecdfbb
RW
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491yes:)
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494ac_tool_warned=yes ;;
04bf7072 5495esac
24538276 5496 NM=$ac_ct_NM
81ecdfbb 5497 fi
24538276
CC
5498else
5499 NM="$ac_cv_prog_NM"
81ecdfbb 5500fi
04bf7072 5501
bae7f79e 5502
24538276
CC
5503ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508if test -n "$ac_tool_prefix"; then
5509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5510set dummy ${ac_tool_prefix}gcc; ac_word=$2
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5513if ${ac_cv_prog_CC+:} false; then :
81ecdfbb
RW
5514 $as_echo_n "(cached) " >&6
5515else
24538276
CC
5516 if test -n "$CC"; then
5517 ac_cv_prog_CC="$CC" # Let the user override the test.
81ecdfbb 5518else
24538276
CC
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530done
5531 done
5532IFS=$as_save_IFS
bae7f79e 5533
bae7f79e 5534fi
81ecdfbb 5535fi
24538276
CC
5536CC=$ac_cv_prog_CC
5537if test -n "$CC"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5539$as_echo "$CC" >&6; }
81ecdfbb 5540else
24538276
CC
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
bae7f79e 5544
bae7f79e 5545
24538276
CC
5546fi
5547if test -z "$ac_cv_prog_CC"; then
5548 ac_ct_CC=$CC
5549 # Extract the first word of "gcc", so it can be a program name with args.
5550set dummy gcc; ac_word=$2
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5553if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276 5554 $as_echo_n "(cached) " >&6
81ecdfbb 5555else
24538276
CC
5556 if test -n "$ac_ct_CC"; then
5557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
81ecdfbb 5558else
24538276
CC
5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5566 ac_cv_prog_ac_ct_CC="gcc"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570done
5571 done
5572IFS=$as_save_IFS
bae7f79e 5573
81ecdfbb 5574fi
81ecdfbb 5575fi
24538276
CC
5576ac_ct_CC=$ac_cv_prog_ac_ct_CC
5577if test -n "$ac_ct_CC"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5579$as_echo "$ac_ct_CC" >&6; }
5580else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
81ecdfbb 5583fi
24538276
CC
5584
5585 if test "x$ac_ct_CC" = x; then
5586 CC=""
81ecdfbb 5587 else
24538276
CC
5588 case $cross_compiling:$ac_tool_warned in
5589yes:)
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592ac_tool_warned=yes ;;
5593esac
5594 CC=$ac_ct_CC
81ecdfbb
RW
5595 fi
5596else
24538276 5597 CC="$ac_cv_prog_CC"
81ecdfbb 5598fi
bae7f79e 5599
24538276
CC
5600if test -z "$CC"; then
5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5603set dummy ${ac_tool_prefix}cc; ac_word=$2
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5606if ${ac_cv_prog_CC+:} false; then :
81ecdfbb
RW
5607 $as_echo_n "(cached) " >&6
5608else
24538276
CC
5609 if test -n "$CC"; then
5610 ac_cv_prog_CC="$CC" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5619 ac_cv_prog_CC="${ac_tool_prefix}cc"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
81ecdfbb 5622 fi
24538276 5623done
81ecdfbb 5624 done
24538276 5625IFS=$as_save_IFS
9201d894 5626
24538276
CC
5627fi
5628fi
5629CC=$ac_cv_prog_CC
5630if test -n "$CC"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632$as_echo "$CC" >&6; }
81ecdfbb 5633else
24538276
CC
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
81ecdfbb 5636fi
9201d894 5637
24538276
CC
5638
5639 fi
81ecdfbb 5640fi
24538276
CC
5641if test -z "$CC"; then
5642 # Extract the first word of "cc", so it can be a program name with args.
5643set dummy cc; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5646if ${ac_cv_prog_CC+:} false; then :
24538276
CC
5647 $as_echo_n "(cached) " >&6
5648else
5649 if test -n "$CC"; then
5650 ac_cv_prog_CC="$CC" # Let the user override the test.
5651else
5652 ac_prog_rejected=no
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5660 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5661 ac_prog_rejected=yes
5662 continue
5663 fi
5664 ac_cv_prog_CC="cc"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668done
5669 done
5670IFS=$as_save_IFS
9201d894 5671
24538276
CC
5672if test $ac_prog_rejected = yes; then
5673 # We found a bogon in the path, so make sure we never use it.
5674 set dummy $ac_cv_prog_CC
5675 shift
5676 if test $# != 0; then
5677 # We chose a different compiler from the bogus one.
5678 # However, it has the same basename, so the bogon will be chosen
5679 # first if we set CC to just the basename; use the full file name.
5680 shift
5681 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5682 fi
5683fi
5684fi
5685fi
5686CC=$ac_cv_prog_CC
5687if test -n "$CC"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5689$as_echo "$CC" >&6; }
81ecdfbb 5690else
24538276
CC
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
81ecdfbb 5693fi
9201d894 5694
9201d894 5695
24538276
CC
5696fi
5697if test -z "$CC"; then
5698 if test -n "$ac_tool_prefix"; then
5699 for ac_prog in cl.exe
5700 do
5701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5702set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5705if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 5706 $as_echo_n "(cached) " >&6
9201d894 5707else
24538276
CC
5708 if test -n "$CC"; then
5709 ac_cv_prog_CC="$CC" # Let the user override the test.
81ecdfbb
RW
5710else
5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5718 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb
RW
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722done
5723 done
5724IFS=$as_save_IFS
9201d894 5725
9201d894 5726fi
9201d894 5727fi
24538276
CC
5728CC=$ac_cv_prog_CC
5729if test -n "$CC"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5731$as_echo "$CC" >&6; }
81ecdfbb
RW
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
9201d894 5735fi
9201d894 5736
2f35ab9b 5737
24538276
CC
5738 test -n "$CC" && break
5739 done
5740fi
5741if test -z "$CC"; then
5742 ac_ct_CC=$CC
5743 for ac_prog in cl.exe
5744do
5745 # Extract the first word of "$ac_prog", so it can be a program name with args.
5746set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5749if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb
RW
5750 $as_echo_n "(cached) " >&6
5751else
24538276
CC
5752 if test -n "$ac_ct_CC"; then
5753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
81ecdfbb
RW
5754else
5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
82dcae9d 5757do
81ecdfbb
RW
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5762 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb
RW
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766done
5767 done
5768IFS=$as_save_IFS
82dcae9d 5769
81ecdfbb
RW
5770fi
5771fi
24538276
CC
5772ac_ct_CC=$ac_cv_prog_ac_ct_CC
5773if test -n "$ac_ct_CC"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5775$as_echo "$ac_ct_CC" >&6; }
81ecdfbb
RW
5776else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778$as_echo "no" >&6; }
5779fi
82dcae9d 5780
82dcae9d 5781
24538276
CC
5782 test -n "$ac_ct_CC" && break
5783done
5784
5785 if test "x$ac_ct_CC" = x; then
5786 CC=""
5787 else
5788 case $cross_compiling:$ac_tool_warned in
5789yes:)
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792ac_tool_warned=yes ;;
5793esac
5794 CC=$ac_ct_CC
5795 fi
5796fi
5797
5798fi
5799
5800
5801test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5803as_fn_error $? "no acceptable C compiler found in \$PATH
5804See \`config.log' for more details" "$LINENO" 5; }
24538276
CC
5805
5806# Provide some information about the compiler.
5807$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5808set X $ac_compile
5809ac_compiler=$2
5810for ac_option in --version -v -V -qversion; do
5811 { { ac_try="$ac_compiler $ac_option >&5"
5812case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815esac
5816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5817$as_echo "$ac_try_echo"; } >&5
5818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5819 ac_status=$?
5820 if test -s conftest.err; then
5821 sed '10a\
5822... rest of stderr output deleted ...
5823 10q' conftest.err >conftest.er1
5824 cat conftest.er1 >&5
24538276 5825 fi
d0ac1c44 5826 rm -f conftest.er1 conftest.err
24538276
CC
5827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828 test $ac_status = 0; }
5829done
5830
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5832$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 5833if ${ac_cv_c_compiler_gnu+:} false; then :
24538276
CC
5834 $as_echo_n "(cached) " >&6
5835else
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h. */
5838
5839int
5840main ()
5841{
5842#ifndef __GNUC__
5843 choke me
5844#endif
5845
5846 ;
5847 return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_compile "$LINENO"; then :
5851 ac_compiler_gnu=yes
5852else
5853 ac_compiler_gnu=no
5854fi
5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856ac_cv_c_compiler_gnu=$ac_compiler_gnu
5857
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5860$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5861if test $ac_compiler_gnu = yes; then
5862 GCC=yes
5863else
5864 GCC=
5865fi
5866ac_test_CFLAGS=${CFLAGS+set}
5867ac_save_CFLAGS=$CFLAGS
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5869$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 5870if ${ac_cv_prog_cc_g+:} false; then :
24538276
CC
5871 $as_echo_n "(cached) " >&6
5872else
5873 ac_save_c_werror_flag=$ac_c_werror_flag
5874 ac_c_werror_flag=yes
5875 ac_cv_prog_cc_g=no
5876 CFLAGS="-g"
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h. */
5879
5880int
5881main ()
5882{
5883
5884 ;
5885 return 0;
5886}
5887_ACEOF
5888if ac_fn_c_try_compile "$LINENO"; then :
5889 ac_cv_prog_cc_g=yes
5890else
5891 CFLAGS=""
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893/* end confdefs.h. */
5894
5895int
5896main ()
5897{
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903if ac_fn_c_try_compile "$LINENO"; then :
5904
5905else
5906 ac_c_werror_flag=$ac_save_c_werror_flag
5907 CFLAGS="-g"
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h. */
5910
5911int
5912main ()
5913{
5914
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"; then :
5920 ac_cv_prog_cc_g=yes
5921fi
5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923fi
5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 ac_c_werror_flag=$ac_save_c_werror_flag
5928fi
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5930$as_echo "$ac_cv_prog_cc_g" >&6; }
5931if test "$ac_test_CFLAGS" = set; then
5932 CFLAGS=$ac_save_CFLAGS
5933elif test $ac_cv_prog_cc_g = yes; then
5934 if test "$GCC" = yes; then
5935 CFLAGS="-g -O2"
5936 else
5937 CFLAGS="-g"
5938 fi
5939else
5940 if test "$GCC" = yes; then
5941 CFLAGS="-O2"
5942 else
5943 CFLAGS=
5944 fi
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5947$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 5948if ${ac_cv_prog_cc_c89+:} false; then :
24538276
CC
5949 $as_echo_n "(cached) " >&6
5950else
5951 ac_cv_prog_cc_c89=no
5952ac_save_CC=$CC
5953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h. */
5955#include <stdarg.h>
5956#include <stdio.h>
d0ac1c44 5957struct stat;
24538276
CC
5958/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5959struct buf { int x; };
5960FILE * (*rcsopen) (struct buf *, struct stat *, int);
5961static char *e (p, i)
5962 char **p;
5963 int i;
5964{
5965 return p[i];
5966}
5967static char *f (char * (*g) (char **, int), char **p, ...)
5968{
5969 char *s;
5970 va_list v;
5971 va_start (v,p);
5972 s = g (p, va_arg (v,int));
5973 va_end (v);
5974 return s;
5975}
5976
5977/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5978 function prototypes and stuff, but not '\xHH' hex character constants.
5979 These don't provoke an error unfortunately, instead are silently treated
5980 as 'x'. The following induces an error, until -std is added to get
5981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5982 array size at least. It's necessary to write '\x00'==0 to get something
5983 that's true only with -std. */
5984int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5985
5986/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5987 inside strings and character constants. */
5988#define FOO(x) 'x'
5989int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5990
5991int test (int i, double x);
5992struct s1 {int (*f) (int a);};
5993struct s2 {int (*f) (double a);};
5994int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5995int argc;
5996char **argv;
5997int
5998main ()
5999{
6000return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6001 ;
6002 return 0;
6003}
6004_ACEOF
6005for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6006 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
81ecdfbb 6007do
24538276
CC
6008 CC="$ac_save_CC $ac_arg"
6009 if ac_fn_c_try_compile "$LINENO"; then :
6010 ac_cv_prog_cc_c89=$ac_arg
6011fi
6012rm -f core conftest.err conftest.$ac_objext
6013 test "x$ac_cv_prog_cc_c89" != "xno" && break
81ecdfbb 6014done
24538276
CC
6015rm -f conftest.$ac_ext
6016CC=$ac_save_CC
82dcae9d 6017
82dcae9d 6018fi
24538276
CC
6019# AC_CACHE_VAL
6020case "x$ac_cv_prog_cc_c89" in
6021 x)
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6023$as_echo "none needed" >&6; } ;;
6024 xno)
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6026$as_echo "unsupported" >&6; } ;;
6027 *)
6028 CC="$CC $ac_cv_prog_cc_c89"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6030$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
82dcae9d 6031esac
24538276 6032if test "x$ac_cv_prog_cc_c89" != xno; then :
81ecdfbb 6033
82dcae9d 6034fi
82dcae9d 6035
9a0910c3
ILT
6036ac_ext=c
6037ac_cpp='$CPP $CPPFLAGS'
6038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040ac_compiler_gnu=$ac_cv_c_compiler_gnu
9a0910c3 6041
d0ac1c44
SM
6042ac_ext=c
6043ac_cpp='$CPP $CPPFLAGS'
6044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6048$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6049if ${am_cv_prog_cc_c_o+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051else
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h. */
6054
6055int
6056main ()
6057{
6058
6059 ;
6060 return 0;
6061}
6062_ACEOF
6063 # Make sure it works both with $CC and with simple cc.
6064 # Following AC_PROG_CC_C_O, we do the test twice because some
6065 # compilers refuse to overwrite an existing .o file with -o,
6066 # though they will create one.
6067 am_cv_prog_cc_c_o=yes
6068 for am_i in 1 2; do
6069 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6070 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } \
6074 && test -f conftest2.$ac_objext; then
6075 : OK
6076 else
6077 am_cv_prog_cc_c_o=no
6078 break
6079 fi
6080 done
6081 rm -f core conftest*
6082 unset am_i
6083fi
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6085$as_echo "$am_cv_prog_cc_c_o" >&6; }
6086if test "$am_cv_prog_cc_c_o" != yes; then
6087 # Losing compiler, so override with the script.
6088 # FIXME: It is wrong to rewrite CC.
6089 # But if we don't then we get into trouble of one sort or another.
6090 # A longer-term fix would be to have automake use am__CC in this case,
6091 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6092 CC="$am_aux_dir/compile $CC"
6093fi
6094ac_ext=c
6095ac_cpp='$CPP $CPPFLAGS'
6096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100
24538276 6101depcc="$CC" am_compiler_list=
9a0910c3 6102
24538276
CC
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6104$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6105if ${am_cv_CC_dependencies_compiler_type+:} false; then :
24538276 6106 $as_echo_n "(cached) " >&6
9a0910c3 6107else
24538276
CC
6108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6109 # We make a subdir and do the tests there. Otherwise we can end up
6110 # making bogus files that we don't know about and never remove. For
6111 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
6112 # making a dummy file named 'D' -- because '-MD' means "put the output
6113 # in D".
24538276
CC
6114 rm -rf conftest.dir
6115 mkdir conftest.dir
6116 # Copy depcomp to subdir because otherwise we won't find it if we're
6117 # using a relative directory.
6118 cp "$am_depcomp" conftest.dir
6119 cd conftest.dir
6120 # We will build objects and dependencies in a subdirectory because
6121 # it helps to detect inapplicable dependency modes. For instance
6122 # both Tru64's cc and ICC support -MD to output dependencies as a
6123 # side effect of compilation, but ICC will put the dependencies in
6124 # the current directory while Tru64 will put them in the object
6125 # directory.
6126 mkdir sub
9a0910c3 6127
24538276
CC
6128 am_cv_CC_dependencies_compiler_type=none
6129 if test "$am_compiler_list" = ""; then
6130 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6131 fi
6132 am__universal=false
6133 case " $depcc " in #(
6134 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6135 esac
9a0910c3 6136
24538276
CC
6137 for depmode in $am_compiler_list; do
6138 # Setup a source with many dependencies, because some compilers
6139 # like to wrap large dependency lists on column 80 (with \), and
6140 # we should not choose a depcomp mode which is confused by this.
6141 #
6142 # We need to recreate these files for each test, as the compiler may
6143 # overwrite some of them when testing with obscure command lines.
6144 # This happens at least with the AIX C compiler.
6145 : > sub/conftest.c
6146 for i in 1 2 3 4 5 6; do
6147 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
6148 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6149 # Solaris 10 /bin/sh.
6150 echo '/* dummy */' > sub/conftst$i.h
9a0910c3 6151 done
24538276 6152 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9a0910c3 6153
d0ac1c44 6154 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 6155 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
6156 # handle '-M -o', and we need to detect this. Also, some Intel
6157 # versions had trouble with output in subdirs.
24538276
CC
6158 am__obj=sub/conftest.${OBJEXT-o}
6159 am__minus_obj="-o $am__obj"
6160 case $depmode in
6161 gcc)
6162 # This depmode causes a compiler race in universal mode.
6163 test "$am__universal" = false || continue
6164 ;;
6165 nosideeffect)
d0ac1c44
SM
6166 # After this tag, mechanisms are not by side-effect, so they'll
6167 # only be used when explicitly requested.
24538276
CC
6168 if test "x$enable_dependency_tracking" = xyes; then
6169 continue
6170 else
6171 break
6172 fi
6173 ;;
6174 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 6175 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
6176 # not run yet. These depmodes are late enough in the game, and
6177 # so weak that their functioning should not be impacted.
6178 am__obj=conftest.${OBJEXT-o}
6179 am__minus_obj=
6180 ;;
6181 none) break ;;
6182 esac
6183 if depmode=$depmode \
6184 source=sub/conftest.c object=$am__obj \
6185 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6186 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6187 >/dev/null 2>conftest.err &&
6188 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6189 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6190 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6191 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6192 # icc doesn't choke on unknown options, it will just issue warnings
6193 # or remarks (even with -Werror). So we grep stderr for any message
6194 # that says an option was ignored or not supported.
6195 # When given -MP, icc 7.0 and 7.1 complain thusly:
6196 # icc: Command line warning: ignoring option '-M'; no argument required
6197 # The diagnosis changed in icc 8.0:
6198 # icc: Command line remark: option '-MP' not supported
6199 if (grep 'ignoring option' conftest.err ||
6200 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6201 am_cv_CC_dependencies_compiler_type=$depmode
6202 break
6203 fi
6204 fi
6205 done
9a0910c3 6206
24538276
CC
6207 cd ..
6208 rm -rf conftest.dir
81ecdfbb 6209else
24538276 6210 am_cv_CC_dependencies_compiler_type=none
9a0910c3 6211fi
9a0910c3 6212
9a0910c3 6213fi
24538276
CC
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6215$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6216CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
81ecdfbb 6217
24538276
CC
6218 if
6219 test "x$enable_dependency_tracking" != xno \
6220 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6221 am__fastdepCC_TRUE=
6222 am__fastdepCC_FALSE='#'
9a0910c3 6223else
24538276
CC
6224 am__fastdepCC_TRUE='#'
6225 am__fastdepCC_FALSE=
9a0910c3
ILT
6226fi
6227
9a0910c3 6228
24538276
CC
6229ac_ext=cpp
6230ac_cpp='$CXXCPP $CPPFLAGS'
6231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6234if test -z "$CXX"; then
6235 if test -n "$CCC"; then
6236 CXX=$CCC
6237 else
6238 if test -n "$ac_tool_prefix"; then
6239 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6240 do
6241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6245if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb
RW
6246 $as_echo_n "(cached) " >&6
6247else
24538276
CC
6248 if test -n "$CXX"; then
6249 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
81ecdfbb
RW
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
81ecdfbb 6256 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6258 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262done
81ecdfbb
RW
6263 done
6264IFS=$as_save_IFS
81ecdfbb
RW
6265
6266fi
24538276
CC
6267fi
6268CXX=$ac_cv_prog_CXX
6269if test -n "$CXX"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6271$as_echo "$CXX" >&6; }
6272else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274$as_echo "no" >&6; }
6275fi
81ecdfbb
RW
6276
6277
24538276
CC
6278 test -n "$CXX" && break
6279 done
6280fi
6281if test -z "$CXX"; then
6282 ac_ct_CXX=$CXX
6283 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6284do
6285 # Extract the first word of "$ac_prog", so it can be a program name with args.
6286set dummy $ac_prog; ac_word=$2
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6289if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 6290 $as_echo_n "(cached) " >&6
9a0910c3 6291else
24538276
CC
6292 if test -n "$ac_ct_CXX"; then
6293 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
81ecdfbb
RW
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
81ecdfbb 6300 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6302 ac_cv_prog_ac_ct_CXX="$ac_prog"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306done
81ecdfbb
RW
6307 done
6308IFS=$as_save_IFS
24538276
CC
6309
6310fi
6311fi
6312ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6313if test -n "$ac_ct_CXX"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6315$as_echo "$ac_ct_CXX" >&6; }
81ecdfbb 6316else
24538276
CC
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318$as_echo "no" >&6; }
6319fi
6320
6321
6322 test -n "$ac_ct_CXX" && break
6323done
6324
6325 if test "x$ac_ct_CXX" = x; then
6326 CXX="g++"
6327 else
6328 case $cross_compiling:$ac_tool_warned in
6329yes:)
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332ac_tool_warned=yes ;;
6333esac
6334 CXX=$ac_ct_CXX
6335 fi
81ecdfbb
RW
6336fi
6337
24538276 6338 fi
9a0910c3 6339fi
24538276
CC
6340# Provide some information about the compiler.
6341$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6342set X $ac_compile
6343ac_compiler=$2
6344for ac_option in --version -v -V -qversion; do
6345 { { ac_try="$ac_compiler $ac_option >&5"
6346case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349esac
6350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6351$as_echo "$ac_try_echo"; } >&5
6352 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6353 ac_status=$?
6354 if test -s conftest.err; then
6355 sed '10a\
6356... rest of stderr output deleted ...
6357 10q' conftest.err >conftest.er1
6358 cat conftest.er1 >&5
24538276 6359 fi
d0ac1c44 6360 rm -f conftest.er1 conftest.err
24538276
CC
6361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6362 test $ac_status = 0; }
6363done
9a0910c3 6364
24538276
CC
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6366$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 6367if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 6368 $as_echo_n "(cached) " >&6
9a0910c3 6369else
81ecdfbb 6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6371/* end confdefs.h. */
9a0910c3
ILT
6372
6373int
6374main ()
6375{
24538276
CC
6376#ifndef __GNUC__
6377 choke me
6378#endif
9a0910c3
ILT
6379
6380 ;
6381 return 0;
6382}
6383_ACEOF
24538276
CC
6384if ac_fn_cxx_try_compile "$LINENO"; then :
6385 ac_compiler_gnu=yes
9a0910c3 6386else
24538276 6387 ac_compiler_gnu=no
9a0910c3 6388fi
81ecdfbb 6389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538276 6390ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9a0910c3 6391
24538276
CC
6392fi
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6394$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6395if test $ac_compiler_gnu = yes; then
6396 GXX=yes
6397else
6398 GXX=
6399fi
6400ac_test_CXXFLAGS=${CXXFLAGS+set}
6401ac_save_CXXFLAGS=$CXXFLAGS
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6403$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 6404if ${ac_cv_prog_cxx_g+:} false; then :
24538276
CC
6405 $as_echo_n "(cached) " >&6
6406else
6407 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6408 ac_cxx_werror_flag=yes
6409 ac_cv_prog_cxx_g=no
6410 CXXFLAGS="-g"
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6412/* end confdefs.h. */
9a0910c3 6413
24538276
CC
6414int
6415main ()
6416{
81ecdfbb 6417
24538276
CC
6418 ;
6419 return 0;
6420}
6421_ACEOF
6422if ac_fn_cxx_try_compile "$LINENO"; then :
6423 ac_cv_prog_cxx_g=yes
9a0910c3 6424else
24538276
CC
6425 CXXFLAGS=""
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h. */
9a0910c3 6428
24538276
CC
6429int
6430main ()
6431{
9a0910c3 6432
24538276
CC
6433 ;
6434 return 0;
6435}
6436_ACEOF
6437if ac_fn_cxx_try_compile "$LINENO"; then :
6438
6439else
6440 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6441 CXXFLAGS="-g"
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6443/* end confdefs.h. */
9a0910c3 6444
24538276
CC
6445int
6446main ()
6447{
6448
6449 ;
6450 return 0;
6451}
9a0910c3 6452_ACEOF
24538276
CC
6453if ac_fn_cxx_try_compile "$LINENO"; then :
6454 ac_cv_prog_cxx_g=yes
6455fi
6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457fi
6458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459fi
6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6462fi
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6464$as_echo "$ac_cv_prog_cxx_g" >&6; }
6465if test "$ac_test_CXXFLAGS" = set; then
6466 CXXFLAGS=$ac_save_CXXFLAGS
6467elif test $ac_cv_prog_cxx_g = yes; then
6468 if test "$GXX" = yes; then
6469 CXXFLAGS="-g -O2"
6470 else
6471 CXXFLAGS="-g"
6472 fi
6473else
6474 if test "$GXX" = yes; then
6475 CXXFLAGS="-O2"
6476 else
6477 CXXFLAGS=
6478 fi
6479fi
6480ac_ext=c
6481ac_cpp='$CPP $CPPFLAGS'
6482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484ac_compiler_gnu=$ac_cv_c_compiler_gnu
6485
6486depcc="$CXX" am_compiler_list=
6487
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6489$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6490if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
24538276
CC
6491 $as_echo_n "(cached) " >&6
6492else
6493 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6494 # We make a subdir and do the tests there. Otherwise we can end up
6495 # making bogus files that we don't know about and never remove. For
6496 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
6497 # making a dummy file named 'D' -- because '-MD' means "put the output
6498 # in D".
24538276
CC
6499 rm -rf conftest.dir
6500 mkdir conftest.dir
6501 # Copy depcomp to subdir because otherwise we won't find it if we're
6502 # using a relative directory.
6503 cp "$am_depcomp" conftest.dir
6504 cd conftest.dir
6505 # We will build objects and dependencies in a subdirectory because
6506 # it helps to detect inapplicable dependency modes. For instance
6507 # both Tru64's cc and ICC support -MD to output dependencies as a
6508 # side effect of compilation, but ICC will put the dependencies in
6509 # the current directory while Tru64 will put them in the object
6510 # directory.
6511 mkdir sub
6512
6513 am_cv_CXX_dependencies_compiler_type=none
6514 if test "$am_compiler_list" = ""; then
6515 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6516 fi
6517 am__universal=false
6518 case " $depcc " in #(
6519 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6520 esac
6521
6522 for depmode in $am_compiler_list; do
6523 # Setup a source with many dependencies, because some compilers
6524 # like to wrap large dependency lists on column 80 (with \), and
6525 # we should not choose a depcomp mode which is confused by this.
6526 #
6527 # We need to recreate these files for each test, as the compiler may
6528 # overwrite some of them when testing with obscure command lines.
6529 # This happens at least with the AIX C compiler.
6530 : > sub/conftest.c
6531 for i in 1 2 3 4 5 6; do
6532 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
6533 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6534 # Solaris 10 /bin/sh.
6535 echo '/* dummy */' > sub/conftst$i.h
24538276
CC
6536 done
6537 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6538
d0ac1c44 6539 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 6540 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
6541 # handle '-M -o', and we need to detect this. Also, some Intel
6542 # versions had trouble with output in subdirs.
24538276
CC
6543 am__obj=sub/conftest.${OBJEXT-o}
6544 am__minus_obj="-o $am__obj"
6545 case $depmode in
6546 gcc)
6547 # This depmode causes a compiler race in universal mode.
6548 test "$am__universal" = false || continue
6549 ;;
6550 nosideeffect)
d0ac1c44
SM
6551 # After this tag, mechanisms are not by side-effect, so they'll
6552 # only be used when explicitly requested.
24538276
CC
6553 if test "x$enable_dependency_tracking" = xyes; then
6554 continue
6555 else
6556 break
6557 fi
6558 ;;
6559 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 6560 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
6561 # not run yet. These depmodes are late enough in the game, and
6562 # so weak that their functioning should not be impacted.
6563 am__obj=conftest.${OBJEXT-o}
6564 am__minus_obj=
6565 ;;
6566 none) break ;;
6567 esac
6568 if depmode=$depmode \
6569 source=sub/conftest.c object=$am__obj \
6570 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6571 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6572 >/dev/null 2>conftest.err &&
6573 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6575 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6577 # icc doesn't choke on unknown options, it will just issue warnings
6578 # or remarks (even with -Werror). So we grep stderr for any message
6579 # that says an option was ignored or not supported.
6580 # When given -MP, icc 7.0 and 7.1 complain thusly:
6581 # icc: Command line warning: ignoring option '-M'; no argument required
6582 # The diagnosis changed in icc 8.0:
6583 # icc: Command line remark: option '-MP' not supported
6584 if (grep 'ignoring option' conftest.err ||
6585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6586 am_cv_CXX_dependencies_compiler_type=$depmode
6587 break
6588 fi
6589 fi
6590 done
81ecdfbb 6591
24538276
CC
6592 cd ..
6593 rm -rf conftest.dir
9a0910c3 6594else
24538276 6595 am_cv_CXX_dependencies_compiler_type=none
9a0910c3 6596fi
9a0910c3
ILT
6597
6598fi
24538276
CC
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6600$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6601CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9a0910c3 6602
24538276
CC
6603 if
6604 test "x$enable_dependency_tracking" != xno \
6605 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6606 am__fastdepCXX_TRUE=
6607 am__fastdepCXX_FALSE='#'
9a0910c3 6608else
24538276
CC
6609 am__fastdepCXX_TRUE='#'
6610 am__fastdepCXX_FALSE=
6611fi
9a0910c3 6612
9a0910c3 6613
24538276
CC
6614for ac_prog in 'bison -y' byacc
6615do
6616 # Extract the first word of "$ac_prog", so it can be a program name with args.
6617set dummy $ac_prog; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6620if ${ac_cv_prog_YACC+:} false; then :
24538276 6621 $as_echo_n "(cached) " >&6
81ecdfbb 6622else
24538276
CC
6623 if test -n "$YACC"; then
6624 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6633 ac_cv_prog_YACC="$ac_prog"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
6638 done
6639IFS=$as_save_IFS
81ecdfbb 6640
9a0910c3
ILT
6641fi
6642fi
24538276
CC
6643YACC=$ac_cv_prog_YACC
6644if test -n "$YACC"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6646$as_echo "$YACC" >&6; }
6647else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
9a0910c3
ILT
6650fi
6651
9a0910c3 6652
24538276 6653 test -n "$YACC" && break
81ecdfbb 6654done
24538276 6655test -n "$YACC" || YACC="yacc"
9a0910c3 6656
24538276
CC
6657if test -n "$ac_tool_prefix"; then
6658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6659set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6662if ${ac_cv_prog_RANLIB+:} false; then :
24538276
CC
6663 $as_echo_n "(cached) " >&6
6664else
6665 if test -n "$RANLIB"; then
6666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6667else
6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6678 fi
6679done
6680 done
6681IFS=$as_save_IFS
9a0910c3 6682
24538276
CC
6683fi
6684fi
6685RANLIB=$ac_cv_prog_RANLIB
6686if test -n "$RANLIB"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6688$as_echo "$RANLIB" >&6; }
81ecdfbb 6689else
24538276
CC
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691$as_echo "no" >&6; }
81ecdfbb 6692fi
9a0910c3
ILT
6693
6694
24538276
CC
6695fi
6696if test -z "$ac_cv_prog_RANLIB"; then
6697 ac_ct_RANLIB=$RANLIB
6698 # Extract the first word of "ranlib", so it can be a program name with args.
6699set dummy ranlib; ac_word=$2
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6702if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6703 $as_echo_n "(cached) " >&6
9a0910c3 6704else
24538276
CC
6705 if test -n "$ac_ct_RANLIB"; then
6706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9a0910c3 6707else
24538276
CC
6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6715 ac_cv_prog_ac_ct_RANLIB="ranlib"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720 done
6721IFS=$as_save_IFS
6722
9a0910c3 6723fi
81ecdfbb 6724fi
24538276
CC
6725ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6726if test -n "$ac_ct_RANLIB"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6728$as_echo "$ac_ct_RANLIB" >&6; }
6729else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731$as_echo "no" >&6; }
6732fi
81ecdfbb 6733
24538276
CC
6734 if test "x$ac_ct_RANLIB" = x; then
6735 RANLIB=":"
6736 else
6737 case $cross_compiling:$ac_tool_warned in
6738yes:)
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6741ac_tool_warned=yes ;;
6742esac
6743 RANLIB=$ac_ct_RANLIB
6744 fi
6745else
6746 RANLIB="$ac_cv_prog_RANLIB"
6747fi
9a0910c3 6748
81ecdfbb 6749
24538276
CC
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6751$as_echo_n "checking whether ln -s works... " >&6; }
6752LN_S=$as_ln_s
6753if test "$LN_S" = "ln -s"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6755$as_echo "yes" >&6; }
6756else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6758$as_echo "no, using $LN_S" >&6; }
6759fi
81ecdfbb
RW
6760
6761
6762
6763
6764# If we haven't got the data from the intl directory,
6765# assume NLS is disabled.
6766USE_NLS=no
6767LIBINTL=
6768LIBINTL_DEP=
6769INCINTL=
6770XGETTEXT=
6771GMSGFMT=
6772POSUB=
6773
6774if test -f ../intl/config.intl; then
6775 . ../intl/config.intl
9a0910c3 6776fi
81ecdfbb
RW
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6778$as_echo_n "checking whether NLS is requested... " >&6; }
6779if test x"$USE_NLS" != xyes; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781$as_echo "no" >&6; }
6782else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6784$as_echo "yes" >&6; }
6785
6786$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6787
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6790$as_echo_n "checking for catalogs to be installed... " >&6; }
6791 # Look for .po and .gmo files in the source directory.
6792 CATALOGS=
6793 XLINGUAS=
6794 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6795 # If there aren't any .gmo files the shell will give us the
6796 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6797 # weeded out.
6798 case "$cat" in *\**)
6799 continue;;
6800 esac
6801 # The quadruple backslash is collapsed to a double backslash
6802 # by the backticks, then collapsed again by the double quotes,
6803 # leaving us with one backslash in the sed expression (right
6804 # before the dot that mustn't act as a wildcard).
6805 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6806 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6807 # The user is allowed to set LINGUAS to a list of languages to
6808 # install catalogs for. If it's empty that means "all of them."
6809 if test "x$LINGUAS" = x; then
6810 CATALOGS="$CATALOGS $cat"
6811 XLINGUAS="$XLINGUAS $lang"
6812 else
6813 case "$LINGUAS" in *$lang*)
6814 CATALOGS="$CATALOGS $cat"
6815 XLINGUAS="$XLINGUAS $lang"
6816 ;;
6817 esac
6818 fi
9a0910c3 6819 done
81ecdfbb
RW
6820 LINGUAS="$XLINGUAS"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6822$as_echo "$LINGUAS" >&6; }
6823
6824
6825 DATADIRNAME=share
6826
6827 INSTOBJEXT=.mo
6828
6829 GENCAT=gencat
6830
6831 CATOBJEXT=.gmo
9a0910c3 6832
9a0910c3 6833fi
9a0910c3 6834
81ecdfbb
RW
6835 MKINSTALLDIRS=
6836 if test -n "$ac_aux_dir"; then
6837 case "$ac_aux_dir" in
6838 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6839 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6840 esac
6841 fi
6842 if test -z "$MKINSTALLDIRS"; then
6843 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6844 fi
6845
6846
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6849$as_echo_n "checking whether NLS is requested... " >&6; }
6850 # Check whether --enable-nls was given.
6851if test "${enable_nls+set}" = set; then :
6852 enableval=$enable_nls; USE_NLS=$enableval
6853else
6854 USE_NLS=yes
9a0910c3 6855fi
9a0910c3 6856
81ecdfbb
RW
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6858$as_echo "$USE_NLS" >&6; }
6859
6860
6861
6862
6863
6864
6865# Prepare PATH_SEPARATOR.
6866# The user is always right.
6867if test "${PATH_SEPARATOR+set}" != set; then
6868 echo "#! /bin/sh" >conf$$.sh
6869 echo "exit 0" >>conf$$.sh
6870 chmod +x conf$$.sh
6871 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6872 PATH_SEPARATOR=';'
9a0910c3 6873 else
81ecdfbb 6874 PATH_SEPARATOR=:
9a0910c3 6875 fi
81ecdfbb 6876 rm -f conf$$.sh
9a0910c3 6877fi
81ecdfbb
RW
6878
6879# Find out how to test for executable files. Don't use a zero-byte file,
6880# as systems may use methods other than mode bits to determine executability.
6881cat >conf$$.file <<_ASEOF
6882#! /bin/sh
6883exit 0
6884_ASEOF
6885chmod +x conf$$.file
6886if test -x conf$$.file >/dev/null 2>&1; then
6887 ac_executable_p="test -x"
9a0910c3 6888else
81ecdfbb
RW
6889 ac_executable_p="test -f"
6890fi
6891rm -f conf$$.file
9a0910c3 6892
81ecdfbb
RW
6893# Extract the first word of "msgfmt", so it can be a program name with args.
6894set dummy msgfmt; ac_word=$2
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6897if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb
RW
6898 $as_echo_n "(cached) " >&6
6899else
6900 case "$MSGFMT" in
6901 [\\/]* | ?:[\\/]*)
6902 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6903 ;;
6904 *)
6905 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6906 for ac_dir in $PATH; do
6907 IFS="$ac_save_IFS"
6908 test -z "$ac_dir" && ac_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6911 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6912 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6913 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6914 break 2
6915 fi
6916 fi
6917 done
6918 done
6919 IFS="$ac_save_IFS"
6920 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6921 ;;
6922esac
9a0910c3 6923fi
81ecdfbb
RW
6924MSGFMT="$ac_cv_path_MSGFMT"
6925if test "$MSGFMT" != ":"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6927$as_echo "$MSGFMT" >&6; }
6928else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6934set dummy gmsgfmt; ac_word=$2
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6937if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb
RW
6938 $as_echo_n "(cached) " >&6
6939else
6940 case $GMSGFMT in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
6952 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956done
6957 done
6958IFS=$as_save_IFS
9a0910c3 6959
81ecdfbb
RW
6960 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6961 ;;
9a0910c3 6962esac
81ecdfbb
RW
6963fi
6964GMSGFMT=$ac_cv_path_GMSGFMT
6965if test -n "$GMSGFMT"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6967$as_echo "$GMSGFMT" >&6; }
9a0910c3 6968else
81ecdfbb
RW
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970$as_echo "no" >&6; }
9a0910c3 6971fi
9a0910c3 6972
9a0910c3 6973
9a0910c3 6974
9a0910c3 6975
81ecdfbb
RW
6976# Prepare PATH_SEPARATOR.
6977# The user is always right.
6978if test "${PATH_SEPARATOR+set}" != set; then
6979 echo "#! /bin/sh" >conf$$.sh
6980 echo "exit 0" >>conf$$.sh
6981 chmod +x conf$$.sh
6982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6983 PATH_SEPARATOR=';'
6984 else
6985 PATH_SEPARATOR=:
6986 fi
6987 rm -f conf$$.sh
9a0910c3
ILT
6988fi
6989
81ecdfbb
RW
6990# Find out how to test for executable files. Don't use a zero-byte file,
6991# as systems may use methods other than mode bits to determine executability.
6992cat >conf$$.file <<_ASEOF
6993#! /bin/sh
6994exit 0
6995_ASEOF
6996chmod +x conf$$.file
6997if test -x conf$$.file >/dev/null 2>&1; then
6998 ac_executable_p="test -x"
7fcd0256 6999else
81ecdfbb 7000 ac_executable_p="test -f"
7fcd0256 7001fi
81ecdfbb 7002rm -f conf$$.file
7fcd0256 7003
81ecdfbb
RW
7004# Extract the first word of "xgettext", so it can be a program name with args.
7005set dummy xgettext; ac_word=$2
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7008if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 7009 $as_echo_n "(cached) " >&6
54dc6425 7010else
81ecdfbb
RW
7011 case "$XGETTEXT" in
7012 [\\/]* | ?:[\\/]*)
7013 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7014 ;;
7015 *)
7016 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7017 for ac_dir in $PATH; do
7018 IFS="$ac_save_IFS"
7019 test -z "$ac_dir" && ac_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7022 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7023 (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
7024 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7025 break 2
7026 fi
7027 fi
7028 done
7029 done
7030 IFS="$ac_save_IFS"
7031 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7032 ;;
7033esac
54dc6425 7034fi
81ecdfbb
RW
7035XGETTEXT="$ac_cv_path_XGETTEXT"
7036if test "$XGETTEXT" != ":"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7038$as_echo "$XGETTEXT" >&6; }
7039else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
0639a6f6 7042fi
0639a6f6 7043
81ecdfbb 7044 rm -f messages.po
0639a6f6
ILT
7045
7046
81ecdfbb
RW
7047# Prepare PATH_SEPARATOR.
7048# The user is always right.
7049if test "${PATH_SEPARATOR+set}" != set; then
7050 echo "#! /bin/sh" >conf$$.sh
7051 echo "exit 0" >>conf$$.sh
7052 chmod +x conf$$.sh
7053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7054 PATH_SEPARATOR=';'
7055 else
7056 PATH_SEPARATOR=:
7057 fi
7058 rm -f conf$$.sh
0639a6f6 7059fi
0639a6f6 7060
81ecdfbb
RW
7061# Find out how to test for executable files. Don't use a zero-byte file,
7062# as systems may use methods other than mode bits to determine executability.
7063cat >conf$$.file <<_ASEOF
7064#! /bin/sh
7065exit 0
7066_ASEOF
7067chmod +x conf$$.file
7068if test -x conf$$.file >/dev/null 2>&1; then
7069 ac_executable_p="test -x"
54dc6425 7070else
81ecdfbb 7071 ac_executable_p="test -f"
54dc6425 7072fi
81ecdfbb 7073rm -f conf$$.file
54dc6425 7074
81ecdfbb
RW
7075# Extract the first word of "msgmerge", so it can be a program name with args.
7076set dummy msgmerge; ac_word=$2
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7079if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 7080 $as_echo_n "(cached) " >&6
54dc6425 7081else
81ecdfbb
RW
7082 case "$MSGMERGE" in
7083 [\\/]* | ?:[\\/]*)
7084 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7085 ;;
7086 *)
7087 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7088 for ac_dir in $PATH; do
7089 IFS="$ac_save_IFS"
7090 test -z "$ac_dir" && ac_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7093 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7094 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7095 break 2
7096 fi
7097 fi
7098 done
7099 done
7100 IFS="$ac_save_IFS"
7101 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7102 ;;
7103esac
54dc6425 7104fi
81ecdfbb
RW
7105MSGMERGE="$ac_cv_path_MSGMERGE"
7106if test "$MSGMERGE" != ":"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7108$as_echo "$MSGMERGE" >&6; }
0639a6f6 7109else
81ecdfbb
RW
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
7112fi
0639a6f6 7113
54dc6425 7114
81ecdfbb
RW
7115 if test "$GMSGFMT" != ":"; then
7116 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7117 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7118 : ;
7119 else
7120 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7122$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7123 GMSGFMT=":"
7124 fi
7125 fi
54dc6425 7126
81ecdfbb
RW
7127 if test "$XGETTEXT" != ":"; then
7128 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7129 (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
7130 : ;
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7133$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7134 XGETTEXT=":"
7135 fi
7136 rm -f messages.po
7137 fi
54dc6425 7138
81ecdfbb 7139 ac_config_commands="$ac_config_commands default-1"
54dc6425 7140
54dc6425
ILT
7141
7142
81ecdfbb
RW
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7144$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 7145if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 7146 $as_echo_n "(cached) " >&6
54dc6425 7147else
81ecdfbb
RW
7148 ac_cv_c_bigendian=unknown
7149 # See if we're dealing with a universal compiler.
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54dc6425 7151/* end confdefs.h. */
81ecdfbb
RW
7152#ifndef __APPLE_CC__
7153 not a universal capable compiler
7154 #endif
7155 typedef int dummy;
7156
7157_ACEOF
7158if ac_fn_c_try_compile "$LINENO"; then :
7159
7160 # Check for potential -arch flags. It is not universal unless
7161 # there are at least two -arch flags with different values.
7162 ac_arch=
7163 ac_prev=
7164 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7165 if test -n "$ac_prev"; then
7166 case $ac_word in
7167 i?86 | x86_64 | ppc | ppc64)
7168 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7169 ac_arch=$ac_word
7170 else
7171 ac_cv_c_bigendian=universal
7172 break
7173 fi
7174 ;;
7175 esac
7176 ac_prev=
7177 elif test "x$ac_word" = "x-arch"; then
7178 ac_prev=arch
7179 fi
7180 done
7181fi
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 if test $ac_cv_c_bigendian = unknown; then
7184 # See if sys/param.h defines the BYTE_ORDER macro.
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186/* end confdefs.h. */
7187#include <sys/types.h>
7188 #include <sys/param.h>
7189
0639a6f6
ILT
7190int
7191main ()
7192{
81ecdfbb
RW
7193#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7194 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7195 && LITTLE_ENDIAN)
7196 bogus endian macros
7197 #endif
54dc6425 7198
81ecdfbb
RW
7199 ;
7200 return 0;
7201}
15d5fa16 7202_ACEOF
81ecdfbb
RW
7203if ac_fn_c_try_compile "$LINENO"; then :
7204 # It does; now see whether it defined to BIG_ENDIAN or not.
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15d5fa16 7206/* end confdefs.h. */
81ecdfbb
RW
7207#include <sys/types.h>
7208 #include <sys/param.h>
7209
0639a6f6
ILT
7210int
7211main ()
7212{
81ecdfbb
RW
7213#if BYTE_ORDER != BIG_ENDIAN
7214 not big endian
7215 #endif
0639a6f6
ILT
7216
7217 ;
7218 return 0;
7219}
15d5fa16 7220_ACEOF
81ecdfbb
RW
7221if ac_fn_c_try_compile "$LINENO"; then :
7222 ac_cv_c_bigendian=yes
15d5fa16 7223else
81ecdfbb 7224 ac_cv_c_bigendian=no
15d5fa16 7225fi
81ecdfbb 7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0639a6f6 7227fi
81ecdfbb
RW
7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 fi
7230 if test $ac_cv_c_bigendian = unknown; then
7231 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h. */
7234#include <limits.h>
0639a6f6 7235
81ecdfbb
RW
7236int
7237main ()
7238{
7239#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7240 bogus endian macros
7241 #endif
0639a6f6 7242
81ecdfbb
RW
7243 ;
7244 return 0;
7245}
15d5fa16 7246_ACEOF
81ecdfbb
RW
7247if ac_fn_c_try_compile "$LINENO"; then :
7248 # It does; now see whether it defined to _BIG_ENDIAN or not.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15d5fa16 7250/* end confdefs.h. */
81ecdfbb
RW
7251#include <limits.h>
7252
0639a6f6
ILT
7253int
7254main ()
7255{
81ecdfbb
RW
7256#ifndef _BIG_ENDIAN
7257 not big endian
7258 #endif
0639a6f6
ILT
7259
7260 ;
7261 return 0;
7262}
15d5fa16 7263_ACEOF
81ecdfbb
RW
7264if ac_fn_c_try_compile "$LINENO"; then :
7265 ac_cv_c_bigendian=yes
15d5fa16 7266else
81ecdfbb 7267 ac_cv_c_bigendian=no
15d5fa16 7268fi
81ecdfbb 7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15d5fa16 7270fi
81ecdfbb
RW
7271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 fi
7273 if test $ac_cv_c_bigendian = unknown; then
7274 # Compile a test program.
7275 if test "$cross_compiling" = yes; then :
7276 # Try to guess by grepping values from an object file.
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h. */
7279short int ascii_mm[] =
7280 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7281 short int ascii_ii[] =
7282 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7283 int use_ascii (int i) {
7284 return ascii_mm[i] + ascii_ii[i];
7285 }
7286 short int ebcdic_ii[] =
7287 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7288 short int ebcdic_mm[] =
7289 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7290 int use_ebcdic (int i) {
7291 return ebcdic_mm[i] + ebcdic_ii[i];
7292 }
7293 extern int foo;
15d5fa16 7294
81ecdfbb
RW
7295int
7296main ()
7297{
7298return use_ascii (foo) == use_ebcdic (foo);
7299 ;
7300 return 0;
7301}
0639a6f6 7302_ACEOF
81ecdfbb
RW
7303if ac_fn_c_try_compile "$LINENO"; then :
7304 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7305 ac_cv_c_bigendian=yes
7306 fi
7307 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7308 if test "$ac_cv_c_bigendian" = unknown; then
7309 ac_cv_c_bigendian=no
7310 else
7311 # finding both strings is unlikely to happen, but who knows?
7312 ac_cv_c_bigendian=unknown
7313 fi
7314 fi
54dc6425 7315fi
81ecdfbb 7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54dc6425 7317else
81ecdfbb 7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54dc6425
ILT
7319/* end confdefs.h. */
7320$ac_includes_default
0639a6f6
ILT
7321int
7322main ()
7323{
81ecdfbb
RW
7324
7325 /* Are we little or big endian? From Harbison&Steele. */
7326 union
7327 {
7328 long int l;
7329 char c[sizeof (long int)];
7330 } u;
7331 u.l = 1;
7332 return u.c[sizeof (long int) - 1] == 1;
0639a6f6
ILT
7333
7334 ;
7335 return 0;
7336}
54dc6425 7337_ACEOF
81ecdfbb
RW
7338if ac_fn_c_try_run "$LINENO"; then :
7339 ac_cv_c_bigendian=no
54dc6425 7340else
81ecdfbb 7341 ac_cv_c_bigendian=yes
54dc6425 7342fi
81ecdfbb
RW
7343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7344 conftest.$ac_objext conftest.beam conftest.$ac_ext
0639a6f6 7345fi
54dc6425 7346
81ecdfbb
RW
7347 fi
7348fi
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7350$as_echo "$ac_cv_c_bigendian" >&6; }
7351 case $ac_cv_c_bigendian in #(
7352 yes)
7353 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7354;; #(
7355 no)
7356 ;; #(
7357 universal)
7358
7359$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7360
7361 ;; #(
7362 *)
d0ac1c44 7363 as_fn_error $? "unknown endianness
81ecdfbb
RW
7364 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7365 esac
0639a6f6
ILT
7366
7367
0639a6f6
ILT
7368
7369
81ecdfbb
RW
7370 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7371 NATIVE_LINKER_TRUE=
7372 NATIVE_LINKER_FALSE='#'
7373else
7374 NATIVE_LINKER_TRUE='#'
7375 NATIVE_LINKER_FALSE=
0639a6f6
ILT
7376fi
7377
81ecdfbb
RW
7378 if test "$GCC" = yes; then
7379 GCC_TRUE=
7380 GCC_FALSE='#'
7381else
7382 GCC_TRUE='#'
7383 GCC_FALSE=
7384fi
0639a6f6
ILT
7385
7386
eb373049
ILT
7387 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7388 NATIVE_OR_CROSS_LINKER_TRUE=
7389 NATIVE_OR_CROSS_LINKER_FALSE='#'
7390else
7391 NATIVE_OR_CROSS_LINKER_TRUE='#'
7392 NATIVE_OR_CROSS_LINKER_FALSE=
7393fi
7394
7395
328c7c2f
ILT
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7397$as_echo_n "checking whether static linking works... " >&6; }
d0ac1c44 7398if ${gold_cv_lib_static+:} false; then :
328c7c2f
ILT
7399 $as_echo_n "(cached) " >&6
7400else
7401 LDFLAGS_hold=$LDFLAGS
7402LDFLAGS="$LDFLAGS -static"
7403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h. */
7405
7406void f() { }
7407int
7408main ()
7409{
7410
7411 ;
7412 return 0;
7413}
7414_ACEOF
7415if ac_fn_c_try_link "$LINENO"; then :
7416 gold_cv_lib_static=yes
7417else
7418 gold_cv_lib_static=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
dd7af074 7422LDFLAGS=$LDFLAGS_hold
328c7c2f
ILT
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7425$as_echo "$gold_cv_lib_static" >&6; }
7426 if test "$gold_cv_lib_static" = "yes"; then
7427 HAVE_STATIC_TRUE=
7428 HAVE_STATIC_FALSE='#'
7429else
7430 HAVE_STATIC_TRUE='#'
7431 HAVE_STATIC_FALSE=
7432fi
7433
7434
81ecdfbb
RW
7435 if
7436 case $target_cpu in
864a1b56 7437 powerpc*) false;;
81ecdfbb
RW
7438 x86_64) false;;
7439 sparc64) false;;
e79a4bad 7440 s390x) false;;
81ecdfbb
RW
7441 *) true;;
7442 esac; then
7443 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7444 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7445else
7446 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7447 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7448fi
0639a6f6
ILT
7449
7450
084e2665
ILT
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7452$as_echo_n "checking for gcc >= 4.1... " >&6; }
d0ac1c44 7453if ${gold_cv_prog_gcc41+:} false; then :
084e2665
ILT
7454 $as_echo_n "(cached) " >&6
7455else
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457/* end confdefs.h. */
7458
7459#if !defined __GNUC__
7460error
7461#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7462error
7463#endif
7464
7465_ACEOF
7466if ac_fn_c_try_compile "$LINENO"; then :
7467 gold_cv_prog_gcc41=yes
7468else
7469 gold_cv_prog_gcc41=no
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472fi
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7474$as_echo "$gold_cv_prog_gcc41" >&6; }
7475
24482ca0
L
7476save_CFLAGS="$CFLAGS"
7477CFLAGS="$CFLAGS -mcmodel=medium"
7478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h. */
7480int i;
7481_ACEOF
7482if ac_fn_c_try_compile "$LINENO"; then :
7483 have_mcmodel_medium=yes
7484else
7485 have_mcmodel_medium=no
7486fi
7487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488CFLAGS="$save_CFLAGS"
7489 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
81ecdfbb
RW
7490 MCMODEL_MEDIUM_TRUE=
7491 MCMODEL_MEDIUM_FALSE='#'
54dc6425 7492else
81ecdfbb
RW
7493 MCMODEL_MEDIUM_TRUE='#'
7494 MCMODEL_MEDIUM_FALSE=
54dc6425 7495fi
54dc6425 7496
54dc6425 7497
6c0005b8
L
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
7499$as_echo_n "checking for gcc >= 9... " >&6; }
7500if ${gold_cv_prog_gcc9+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502else
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h. */
7505
7506#if !defined __GNUC__ || __GNUC__ < 9
7507error
7508#endif
7509
7510_ACEOF
7511if ac_fn_c_try_compile "$LINENO"; then :
7512 gold_cv_prog_gcc9=yes
7513else
7514 gold_cv_prog_gcc9=no
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
7519$as_echo "$gold_cv_prog_gcc9" >&6; }
7520 if test "$gold_cv_prog_gcc9" = "yes"; then
7521 GCC9_TRUE=
7522 GCC9_FALSE='#'
7523else
7524 GCC9_TRUE='#'
7525 GCC9_FALSE=
7526fi
7527
7528
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
7530$as_echo_n "checking for -fcf-protection... " >&6; }
7531if ${gold_cv_cflags_cf_protection+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533else
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h. */
7536
7537#if !defined __x86_64__ || !defined __CET__
7538error
7539#endif
7540
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543 gold_cv_cflags_cf_protection=yes
7544else
7545 gold_cv_cflags_cf_protection=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
7550$as_echo "$gold_cv_cflags_cf_protection" >&6; }
7551 if test "$gold_cv_cflags_cf_protection" = "yes"; then
7552 CFLAGS_CF_PROTECTION_TRUE=
7553 CFLAGS_CF_PROTECTION_FALSE='#'
7554else
7555 CFLAGS_CF_PROTECTION_TRUE='#'
7556 CFLAGS_CF_PROTECTION_FALSE=
7557fi
7558
7559
2b64b551
RM
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7561$as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
d0ac1c44 7562if ${gold_cv_merge_constants+:} false; then :
2b64b551
RM
7563 $as_echo_n "(cached) " >&6
7564else
7565
7566save_CFLAGS="$CFLAGS"
7567CFLAGS="$CFLAGS -fmerge-constants"
7568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h. */
7570const char *s = "foo";
7571_ACEOF
7572if ac_fn_c_try_compile "$LINENO"; then :
2500c017 7573 gold_cv_merge_constants=yes
2b64b551 7574else
2500c017 7575 gold_cv_merge_constants=no
2b64b551
RM
7576fi
7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578CFLAGS="$save_CFLAGS"
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7581$as_echo "$gold_cv_merge_constants" >&6; }
7582
7583if test "$gold_cv_merge_constants" = yes; then :
7584 MERGE_CONSTANTS_FLAG=-fmerge-constants
7585else
7586 MERGE_CONSTANTS_FLAG=
7587fi
7588
81ecdfbb
RW
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7590$as_echo_n "checking for thread support... " >&6; }
d0ac1c44 7591if ${gold_cv_c_thread+:} false; then :
81ecdfbb
RW
7592 $as_echo_n "(cached) " >&6
7593else
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e44fcf3b 7595/* end confdefs.h. */
81ecdfbb 7596__thread int i = 1;
e44fcf3b 7597_ACEOF
81ecdfbb
RW
7598if ac_fn_c_try_compile "$LINENO"; then :
7599 gold_cv_c_thread=yes
0639a6f6 7600else
81ecdfbb 7601 gold_cv_c_thread=no
0639a6f6 7602fi
81ecdfbb 7603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e44fcf3b 7604fi
81ecdfbb
RW
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7606$as_echo "$gold_cv_c_thread" >&6; }
e44fcf3b 7607
81ecdfbb
RW
7608 if test "$gold_cv_c_thread" = "yes"; then
7609 TLS_TRUE=
7610 TLS_FALSE='#'
7611else
7612 TLS_TRUE='#'
7613 TLS_FALSE=
0639a6f6 7614fi
e44fcf3b 7615
0639a6f6 7616
81ecdfbb
RW
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7618$as_echo_n "checking for glibc >= 2.4... " >&6; }
d0ac1c44 7619if ${gold_cv_lib_glibc24+:} false; then :
81ecdfbb 7620 $as_echo_n "(cached) " >&6
1b77ea50 7621else
81ecdfbb 7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b77ea50 7623/* end confdefs.h. */
81ecdfbb
RW
7624
7625#include <features.h>
7626#if !defined __GLIBC__
7627error
7628#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7629error
1b77ea50 7630#endif
81ecdfbb 7631
1b77ea50 7632_ACEOF
81ecdfbb
RW
7633if ac_fn_c_try_compile "$LINENO"; then :
7634 gold_cv_lib_glibc24=yes
0639a6f6 7635else
81ecdfbb 7636 gold_cv_lib_glibc24=no
0639a6f6 7637fi
81ecdfbb 7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1b77ea50 7639fi
81ecdfbb
RW
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7641$as_echo "$gold_cv_lib_glibc24" >&6; }
1b77ea50 7642
81ecdfbb
RW
7643 if test "$gold_cv_lib_glibc24" = "yes"; then
7644 STATIC_TLS_TRUE=
7645 STATIC_TLS_FALSE='#'
0639a6f6 7646else
81ecdfbb
RW
7647 STATIC_TLS_TRUE='#'
7648 STATIC_TLS_FALSE=
0639a6f6 7649fi
1b77ea50 7650
0639a6f6 7651
81ecdfbb
RW
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7653$as_echo_n "checking for omp support... " >&6; }
d0ac1c44 7654if ${gold_cv_c_threadprivate+:} false; then :
81ecdfbb 7655 $as_echo_n "(cached) " >&6
0639a6f6 7656else
81ecdfbb
RW
7657 save_CFLAGS="$CFLAGS"
7658CFLAGS="$CFLAGS -fopenmp"
7659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660/* end confdefs.h. */
1b77ea50 7661
81ecdfbb
RW
7662#include <omp.h>
7663int i;
7664#pragma omp threadprivate (i)
1b77ea50 7665
81ecdfbb
RW
7666_ACEOF
7667if ac_fn_c_try_compile "$LINENO"; then :
7668 gold_cv_c_threadprivate=yes
7669else
7670 gold_cv_c_threadprivate=no
7671fi
7672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673CFLAGS="$save_CFLAGS"
7674fi
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7676$as_echo "$gold_cv_c_threadprivate" >&6; }
7677if test "$gold_cv_c_threadprivate" = "yes"; then
1b77ea50 7678
81ecdfbb 7679$as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
1b77ea50 7680
0639a6f6 7681fi
81ecdfbb
RW
7682 if test "$gold_cv_c_threadprivate" = "yes"; then
7683 OMP_SUPPORT_TRUE=
7684 OMP_SUPPORT_FALSE='#'
1b77ea50 7685else
81ecdfbb
RW
7686 OMP_SUPPORT_TRUE='#'
7687 OMP_SUPPORT_FALSE=
1b77ea50 7688fi
1b77ea50 7689
81ecdfbb
RW
7690
7691save_CFLAGS="$CFLAGS"
13323c49 7692CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
81ecdfbb 7693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0639a6f6 7694/* end confdefs.h. */
63887f3d
L
7695
7696__thread int i;
7697void foo (void)
7698{
7699 i = 10;
7700}
7701
1b77ea50 7702_ACEOF
81ecdfbb
RW
7703if ac_fn_c_try_compile "$LINENO"; then :
7704 have_tls_gnu2=yes
0639a6f6 7705else
81ecdfbb 7706 have_tls_gnu2=no
0639a6f6 7707fi
81ecdfbb
RW
7708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709CFLAGS="$save_CFLAGS"
7710 if test "$have_tls_gnu2" = "yes"; then
7711 TLS_GNU2_DIALECT_TRUE=
7712 TLS_GNU2_DIALECT_FALSE='#'
0639a6f6 7713else
81ecdfbb
RW
7714 TLS_GNU2_DIALECT_TRUE='#'
7715 TLS_GNU2_DIALECT_FALSE=
0639a6f6 7716fi
1b77ea50 7717
81ecdfbb
RW
7718
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7720$as_echo_n "checking for glibc >= 2.9... " >&6; }
d0ac1c44 7721if ${gold_cv_lib_glibc29+:} false; then :
81ecdfbb 7722 $as_echo_n "(cached) " >&6
1b77ea50 7723else
81ecdfbb
RW
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h. */
0639a6f6 7726
81ecdfbb
RW
7727#include <features.h>
7728#if !defined __GLIBC__
7729error
7730#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7731error
7732#endif
1b77ea50 7733
81ecdfbb
RW
7734_ACEOF
7735if ac_fn_c_try_compile "$LINENO"; then :
7736 gold_cv_lib_glibc29=yes
7737else
7738 gold_cv_lib_glibc29=no
1b77ea50 7739fi
81ecdfbb
RW
7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741fi
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7743$as_echo "$gold_cv_lib_glibc29" >&6; }
0639a6f6 7744
81ecdfbb
RW
7745 if test "$gold_cv_lib_glibc29" = "yes"; then
7746 TLS_DESCRIPTORS_TRUE=
7747 TLS_DESCRIPTORS_FALSE='#'
7748else
7749 TLS_DESCRIPTORS_TRUE='#'
7750 TLS_DESCRIPTORS_FALSE=
7751fi
0639a6f6
ILT
7752
7753
81ecdfbb
RW
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7755$as_echo_n "checking for -frandom-seed support... " >&6; }
d0ac1c44 7756if ${gold_cv_c_random_seed+:} false; then :
81ecdfbb
RW
7757 $as_echo_n "(cached) " >&6
7758else
7759 save_CFLAGS="$CFLAGS"
7760CFLAGS="$CFLAGS -frandom-seed=foo"
7761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0639a6f6 7762/* end confdefs.h. */
81ecdfbb 7763int i;
0639a6f6 7764_ACEOF
81ecdfbb
RW
7765if ac_fn_c_try_compile "$LINENO"; then :
7766 gold_cv_c_random_seed=yes
0639a6f6 7767else
81ecdfbb
RW
7768 gold_cv_c_random_seed=no
7769fi
7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771CFLAGS="$save_CFLAGS"
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7774$as_echo "$gold_cv_c_random_seed" >&6; }
7775if test "$gold_cv_c_random_seed" = "yes"; then
7776 # In Makefile, '$@' will be expanded to be the name of the file
7777 # being built, providing a unique seed for each file.
7778 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
0639a6f6 7779fi
1b77ea50 7780
81ecdfbb 7781
ebb300b2
CC
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7783$as_echo_n "checking for glibc ifunc support... " >&6; }
d0ac1c44 7784if ${gold_cv_lib_glibc_ifunc+:} false; then :
7223e9ca
ILT
7785 $as_echo_n "(cached) " >&6
7786else
ebb300b2
CC
7787 save_LDFLAGS="$LDFLAGS"
7788LDFLAGS="$LDFLAGS -static"
7789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223e9ca
ILT
7790/* end confdefs.h. */
7791
7792#include <features.h>
7793#if !defined __GLIBC__
7794error
7795#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7796error
7797#endif
ebb300b2
CC
7798void func (void) { }
7799void invoke (void);
7800__asm__(".type invoke, %gnu_indirect_function");
7801typedef void (*funcptr) (void);
7802funcptr dispatch (void) __asm__ ("invoke");
7803funcptr dispatch (void) { return &func; }
7804int
7805main ()
7806{
7807invoke();
7808 ;
7809 return 0;
7810}
7223e9ca
ILT
7811
7812_ACEOF
ebb300b2
CC
7813if ac_fn_c_try_link "$LINENO"; then :
7814
7815if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7816 gold_cv_lib_glibc_ifunc=both
7223e9ca 7817else
ebb300b2 7818 gold_cv_lib_glibc_ifunc=dyn
7223e9ca 7819fi
ebb300b2
CC
7820else
7821 gold_cv_lib_glibc_ifunc=no
7822fi
7823rm -f core conftest.err conftest.$ac_objext \
7824 conftest$ac_exeext conftest.$ac_ext
7825LDFLAGS="$save_LDFLAGS"
7223e9ca 7826fi
ebb300b2
CC
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7828$as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7223e9ca 7829
ebb300b2 7830 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7223e9ca
ILT
7831 IFUNC_TRUE=
7832 IFUNC_FALSE='#'
7833else
7834 IFUNC_TRUE='#'
7835 IFUNC_FALSE=
7836fi
7837
ebb300b2
CC
7838 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7839 IFUNC_STATIC_TRUE=
7840 IFUNC_STATIC_FALSE='#'
7841else
7842 IFUNC_STATIC_TRUE='#'
7843 IFUNC_STATIC_FALSE=
7844fi
7845
7223e9ca 7846
81ecdfbb 7847
270c9937
JB
7848# Set the 'development' global.
7849. $srcdir/../bfd/development.sh
7850
c5da1932
VZ
7851# Set acp_cpp_for_build variable
7852ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7853
9780e045 7854# Default set of GCC warnings to enable.
efc8d4f2 7855GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 7856GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
7857
7858# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
efc8d4f2
RW
7859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h. */
7861__GNUC__
7862_ACEOF
7863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 7864 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
efc8d4f2
RW
7865
7866else
7867 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7868fi
7869rm -f conftest*
7870
81ecdfbb 7871
9780e045
NC
7872# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h. */
7875__GNUC__
7876_ACEOF
7877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 7878 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
7879
7880else
7881 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7882fi
7883rm -f conftest*
7884
7885
6757cf57
TS
7886# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7887WARN_WRITE_STRINGS=""
7888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h. */
7890__GNUC__
7891_ACEOF
7892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 7893 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
7894
7895else
7896 WARN_WRITE_STRINGS="-Wwrite-strings"
7897fi
7898rm -f conftest*
7899
9780e045 7900
96fe4562 7901# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
7902
7903# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h. */
7906__GNUC__
7907_ACEOF
7908if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 7909 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
7910
7911else
7912 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7913fi
7914rm -f conftest*
7915
7916
7917# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h. */
7920__GNUC__
7921_ACEOF
7922if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 7923 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
7924
7925else
7926 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
7927fi
7928rm -f conftest*
7929
7930
81ecdfbb
RW
7931# Check whether --enable-werror was given.
7932if test "${enable_werror+set}" = set; then :
7933 enableval=$enable_werror; case "${enableval}" in
7934 yes | y) ERROR_ON_WARNING="yes" ;;
7935 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 7936 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
81ecdfbb 7937 esac
0639a6f6 7938fi
1b77ea50 7939
81ecdfbb 7940
efc8d4f2 7941# Disable -Wformat by default when using gcc on mingw
81ecdfbb
RW
7942case "${host}" in
7943 *-*-mingw32*)
7944 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7945 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 7946 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
81ecdfbb 7947 fi
0639a6f6 7948 ;;
81ecdfbb 7949 *) ;;
0639a6f6 7950esac
81ecdfbb 7951
270c9937
JB
7952# Enable -Werror by default when using gcc. Turn it off for releases.
7953if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
81ecdfbb 7954 ERROR_ON_WARNING=yes
0639a6f6 7955fi
0639a6f6 7956
81ecdfbb
RW
7957NO_WERROR=
7958if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 7959 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 7960 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
81ecdfbb 7961 NO_WERROR="-Wno-error"
0639a6f6 7962fi
1b77ea50 7963
81ecdfbb
RW
7964if test "${GCC}" = yes ; then
7965 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 7966 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
0639a6f6
ILT
7967fi
7968
81ecdfbb
RW
7969# Check whether --enable-build-warnings was given.
7970if test "${enable_build_warnings+set}" = set; then :
7971 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
7972 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7973 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
81ecdfbb
RW
7974 no) if test "${GCC}" = yes ; then
7975 WARN_CFLAGS="-w"
c5da1932 7976 WARN_CFLAGS_FOR_BUILD="-w"
81ecdfbb
RW
7977 fi;;
7978 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
7979 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
7980 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
81ecdfbb 7981 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
7982 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
7983 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
7984 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
7985 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
81ecdfbb
RW
7986esac
7987fi
0639a6f6 7988
1b77ea50 7989
81ecdfbb
RW
7990if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
7991 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
0639a6f6 7992fi
1b77ea50 7993
1b77ea50 7994
1b77ea50 7995
0639a6f6 7996
1b77ea50 7997
6757cf57 7998
c5da1932 7999
2ea97941 8000WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
81ecdfbb
RW
8001
8002
dc87f620
ILT
8003
8004# Check whether --with-gold-ldflags was given.
8005if test "${with_gold_ldflags+set}" = set; then :
8006 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8007 GOLD_LDFLAGS=
8008 else
8009 GOLD_LDFLAGS=$withval
8010 fi
8011else
8012 GOLD_LDFLAGS=
8013fi
8014
8015
8016
8017
8018# Check whether --with-gold-ldadd was given.
8019if test "${with_gold_ldadd+set}" = set; then :
8020 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
8021 GOLD_LDADD=
8022 else
8023 GOLD_LDADD=$withval
8024 fi
8025else
8026 GOLD_LDADD=
8027fi
8028
8029
8030
81ecdfbb
RW
8031LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8032
8033
88597d34 8034for ac_header in sys/mman.h
81ecdfbb 8035do :
88597d34 8036 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
d0ac1c44 8037if test "x$ac_cv_header_sys_mman_h" = xyes; then :
0639a6f6 8038 cat >>confdefs.h <<_ACEOF
88597d34
ILT
8039#define HAVE_SYS_MMAN_H 1
8040_ACEOF
8041
8042fi
8043
8044done
8045
f4238194 8046for ac_func in chsize mmap link
88597d34
ILT
8047do :
8048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8049ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8050if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
88597d34
ILT
8051 cat >>confdefs.h <<_ACEOF
8052#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1b77ea50
ILT
8053_ACEOF
8054
0639a6f6 8055fi
0639a6f6 8056done
1b77ea50 8057
d0ac1c44
SM
8058ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
8059if test "x$ac_cv_func_pread" = xyes; then :
8060 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
0639a6f6 8061
81ecdfbb
RW
8062else
8063 case " $LIBOBJS " in
d0ac1c44
SM
8064 *" pread.$ac_objext "* ) ;;
8065 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8066 ;;
8067esac
8068
8069fi
8070
8071ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8072if test "x$ac_cv_func_ftruncate" = xyes; then :
8073 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8074
8075else
8076 case " $LIBOBJS " in
8077 *" ftruncate.$ac_objext "* ) ;;
8078 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8079 ;;
8080esac
8081
8082fi
8083
8084ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8085if test "x$ac_cv_func_ffsll" = xyes; then :
8086 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8087
8088else
8089 case " $LIBOBJS " in
8090 *" ffsll.$ac_objext "* ) ;;
8091 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
81ecdfbb
RW
8092 ;;
8093esac
0639a6f6 8094
81ecdfbb 8095fi
0639a6f6 8096
0639a6f6 8097
81ecdfbb 8098
88597d34
ILT
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8100$as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
d0ac1c44 8101if ${gold_cv_lib_mremap_maymove+:} false; then :
88597d34
ILT
8102 $as_echo_n "(cached) " >&6
8103else
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h. */
8106
8107
8108#include <sys/mman.h>
8109void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8110
8111int
8112main ()
8113{
8114
8115 ;
8116 return 0;
8117}
8118_ACEOF
8119if ac_fn_c_try_link "$LINENO"; then :
8120 gold_cv_lib_mremap_maymove=yes
8121else
8122 gold_cv_lib_mremap_maymove=no
8123fi
8124rm -f core conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126fi
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8128$as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8129if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8130
8131$as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8132
8133else
8134 case " $LIBOBJS " in
8135 *" mremap.$ac_objext "* ) ;;
8136 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8137 ;;
8138esac
8139
8140fi
8141
81ecdfbb 8142# Link in zlib if we can. This allows us to write compressed sections.
ae2eea65 8143
918357b9 8144 # Use the system's zlib library.
39f3de7c
L
8145 zlibdir="-L\$(top_builddir)/../zlib"
8146 zlibinc="-I\$(top_srcdir)/../zlib"
ae2eea65 8147
918357b9
L
8148# Check whether --with-system-zlib was given.
8149if test "${with_system_zlib+set}" = set; then :
8150 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8151 zlibdir=
8152 zlibinc=
81ecdfbb 8153 fi
1b77ea50 8154
1b77ea50 8155fi
1b77ea50 8156
81ecdfbb 8157
1b77ea50 8158
81ecdfbb
RW
8159
8160
c8dc28bc
CC
8161# Check whether --enable-threads was given.
8162if test "${enable_threads+set}" = set; then :
8163 enableval=$enable_threads; case "${enableval}" in
8164 yes | "") threads=yes ;;
8165 no) threads=no ;;
8166 auto) threads=auto ;;
8167 *) threads=yes ;;
8168 esac
81ecdfbb 8169else
c8dc28bc 8170 threads=auto
3d857b98 8171fi
3d857b98 8172
3d857b98 8173
c8dc28bc
CC
8174if test "$threads" = "yes"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8176$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8177if ${ac_cv_path_SED+:} false; then :
8178 $as_echo_n "(cached) " >&6
3d857b98 8179else
c8dc28bc
CC
8180 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8181 for ac_i in 1 2 3 4 5 6 7; do
8182 ac_script="$ac_script$as_nl$ac_script"
8183 done
8184 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8185 { ac_script=; unset ac_script;}
8186 if test -z "$SED"; then
8187 ac_path_SED_found=false
8188 # Loop through the user's path and test for each of PROGNAME-LIST
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_prog in sed gsed; do
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8197 as_fn_executable_p "$ac_path_SED" || continue
8198# Check for GNU ac_path_SED and select it if it is found.
8199 # Check for GNU $ac_path_SED
8200case `"$ac_path_SED" --version 2>&1` in
8201*GNU*)
8202 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8203*)
8204 ac_count=0
8205 $as_echo_n 0123456789 >"conftest.in"
8206 while :
8207 do
8208 cat "conftest.in" "conftest.in" >"conftest.tmp"
8209 mv "conftest.tmp" "conftest.in"
8210 cp "conftest.in" "conftest.nl"
8211 $as_echo '' >> "conftest.nl"
8212 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8214 as_fn_arith $ac_count + 1 && ac_count=$as_val
8215 if test $ac_count -gt ${ac_path_SED_max-0}; then
8216 # Best one so far, save it but keep looking for a better one
8217 ac_cv_path_SED="$ac_path_SED"
8218 ac_path_SED_max=$ac_count
8219 fi
8220 # 10*(2^10) chars as input seems more than enough
8221 test $ac_count -gt 10 && break
8222 done
8223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8224esac
3d857b98 8225
c8dc28bc
CC
8226 $ac_path_SED_found && break 3
8227 done
8228 done
8229 done
8230IFS=$as_save_IFS
8231 if test -z "$ac_cv_path_SED"; then
8232 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8233 fi
3d857b98 8234else
c8dc28bc 8235 ac_cv_path_SED=$SED
3d857b98 8236fi
3d857b98 8237
81ecdfbb 8238fi
c8dc28bc
CC
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8240$as_echo "$ac_cv_path_SED" >&6; }
8241 SED="$ac_cv_path_SED"
8242 rm -f conftest.sed
3d857b98 8243
81ecdfbb 8244
3d857b98 8245
3d857b98
DK
8246
8247
c8dc28bc
CC
8248ac_ext=c
8249ac_cpp='$CPP $CPPFLAGS'
8250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253
8254ax_pthread_ok=no
8255
8256# We used to check for pthread.h first, but this fails if pthread.h
8257# requires special compiler flags (e.g. on Tru64 or Sequent).
8258# It gets checked for in the link test anyway.
8259
8260# First of all, check if the user has set any of the PTHREAD_LIBS,
8261# etcetera environment variables, and if threads linking works using
8262# them:
8263if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8264 ax_pthread_save_CC="$CC"
8265 ax_pthread_save_CFLAGS="$CFLAGS"
8266 ax_pthread_save_LIBS="$LIBS"
8267 if test "x$PTHREAD_CC" != "x"; then :
8268 CC="$PTHREAD_CC"
8269fi
8270 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8271 LIBS="$PTHREAD_LIBS $LIBS"
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8273$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae447ddd 8275/* end confdefs.h. */
c8dc28bc
CC
8276
8277/* Override any GCC internal prototype to avoid an error.
8278 Use char because int might match the return type of a GCC
8279 builtin and then its argument prototype would still apply. */
8280#ifdef __cplusplus
8281extern "C"
8282#endif
8283char pthread_join ();
8284int
8285main ()
8286{
8287return pthread_join ();
8288 ;
8289 return 0;
8290}
ae447ddd 8291_ACEOF
c8dc28bc
CC
8292if ac_fn_c_try_link "$LINENO"; then :
8293 ax_pthread_ok=yes
ae447ddd 8294fi
c8dc28bc
CC
8295rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8298$as_echo "$ax_pthread_ok" >&6; }
8299 if test "x$ax_pthread_ok" = "xno"; then
8300 PTHREAD_LIBS=""
8301 PTHREAD_CFLAGS=""
8302 fi
8303 CC="$ax_pthread_save_CC"
8304 CFLAGS="$ax_pthread_save_CFLAGS"
8305 LIBS="$ax_pthread_save_LIBS"
8306fi
8307
8308# We must check for the threads library under a number of different
8309# names; the ordering is very important because some systems
8310# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8311# libraries is broken (non-POSIX).
8312
8313# Create a list of thread flags to try. Items starting with a "-" are
8314# C compiler flags, and other items are library names, except for "none"
8315# which indicates that we try without any flags at all, and "pthread-config"
8316# which is a program returning the flags for the Pth emulation library.
8317
8318ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8319
8320# The ordering *is* (sometimes) important. Some notes on the
8321# individual items follow:
8322
8323# pthreads: AIX (must check this before -lpthread)
8324# none: in case threads are in libc; should be tried before -Kthread and
8325# other compiler flags to prevent continual compiler warnings
8326# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8327# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8328# (Note: HP C rejects this with "bad form for `-t' option")
8329# -pthreads: Solaris/gcc (Note: HP C also rejects)
8330# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8331# doesn't hurt to check since this sometimes defines pthreads and
8332# -D_REENTRANT too), HP C (must be checked before -lpthread, which
8333# is present but should not be used directly; and before -mthreads,
8334# because the compiler interprets this as "-mt" + "-hreads")
8335# -mthreads: Mingw32/gcc, Lynx/gcc
8336# pthread: Linux, etcetera
8337# --thread-safe: KAI C++
8338# pthread-config: use pthread-config program (for GNU Pth library)
8339
8340case $host_os in
8341
8342 freebsd*)
8343
8344 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8345 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8346
8347 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8348 ;;
ae447ddd 8349
c8dc28bc 8350 hpux*)
ae447ddd 8351
c8dc28bc
CC
8352 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8353 # multi-threading and also sets -lpthread."
8354
8355 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8356 ;;
8357
8358 openedition*)
8359
8360 # IBM z/OS requires a feature-test macro to be defined in order to
8361 # enable POSIX threads at all, so give the user a hint if this is
8362 # not set. (We don't define these ourselves, as they can affect
8363 # other portions of the system API in unpredictable ways.)
8364
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae447ddd 8366/* end confdefs.h. */
c8dc28bc
CC
8367
8368# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8369 AX_PTHREAD_ZOS_MISSING
8370# endif
8371
ae447ddd 8372_ACEOF
c8dc28bc
CC
8373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8374 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8376$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
ae447ddd 8377fi
c8dc28bc
CC
8378rm -f conftest*
8379
8380 ;;
8381
8382 solaris*)
8383
8384 # On Solaris (at least, for some versions), libc contains stubbed
8385 # (non-functional) versions of the pthreads routines, so link-based
8386 # tests will erroneously succeed. (N.B.: The stubs are missing
8387 # pthread_cleanup_push, or rather a function called by this macro,
8388 # so we could check for that, but who knows whether they'll stub
8389 # that too in a future libc.) So we'll check first for the
8390 # standard Solaris way of linking pthreads (-mt -lpthread).
8391
8392 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8393 ;;
8394esac
8395
8396# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8397
8398if test "x$GCC" = "xyes"; then :
8399 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
ae447ddd
CC
8400fi
8401
c8dc28bc
CC
8402# The presence of a feature test macro requesting re-entrant function
8403# definitions is, on some systems, a strong hint that pthreads support is
8404# correctly enabled
ae447ddd 8405
c8dc28bc
CC
8406case $host_os in
8407 darwin* | hpux* | linux* | osf* | solaris*)
8408 ax_pthread_check_macro="_REENTRANT"
8409 ;;
8410
8411 aix*)
8412 ax_pthread_check_macro="_THREAD_SAFE"
8413 ;;
3d857b98 8414
c8dc28bc
CC
8415 *)
8416 ax_pthread_check_macro="--"
8417 ;;
8418esac
8419if test "x$ax_pthread_check_macro" = "x--"; then :
8420 ax_pthread_check_cond=0
8421else
8422 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8423fi
3d857b98 8424
c8dc28bc 8425# Are we compiling with Clang?
81ecdfbb 8426
c8dc28bc
CC
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8428$as_echo_n "checking whether $CC is Clang... " >&6; }
8429if ${ax_cv_PTHREAD_CLANG+:} false; then :
81ecdfbb 8430 $as_echo_n "(cached) " >&6
3d857b98 8431else
c8dc28bc
CC
8432 ax_cv_PTHREAD_CLANG=no
8433 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8434 if test "x$GCC" = "xyes"; then
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d857b98 8436/* end confdefs.h. */
c8dc28bc
CC
8437/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8438# if defined(__clang__) && defined(__llvm__)
8439 AX_PTHREAD_CC_IS_CLANG
8440# endif
8441
3d857b98 8442_ACEOF
c8dc28bc
CC
8443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8444 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8445 ax_cv_PTHREAD_CLANG=yes
8446fi
8447rm -f conftest*
8448
8449 fi
3d857b98 8450
c8dc28bc
CC
8451fi
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8453$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8454ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8455
8456ax_pthread_clang_warning=no
8457
8458# Clang needs special handling, because older versions handle the -pthread
8459# option in a rather... idiosyncratic way
8460
8461if test "x$ax_pthread_clang" = "xyes"; then
8462
8463 # Clang takes -pthread; it has never supported any other flag
8464
8465 # (Note 1: This will need to be revisited if a system that Clang
8466 # supports has POSIX threads in a separate library. This tends not
8467 # to be the way of modern systems, but it's conceivable.)
8468
8469 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8470 # to get POSIX threads support; the API is always present and
8471 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8472 # -pthread does define _REENTRANT, and while the Darwin headers
8473 # ignore this macro, third-party headers might not.)
8474
8475 PTHREAD_CFLAGS="-pthread"
8476 PTHREAD_LIBS=
8477
8478 ax_pthread_ok=yes
8479
8480 # However, older versions of Clang make a point of warning the user
8481 # that, in an invocation where only linking and no compilation is
8482 # taking place, the -pthread option has no effect ("argument unused
8483 # during compilation"). They expect -pthread to be passed in only
8484 # when source code is being compiled.
8485 #
8486 # Problem is, this is at odds with the way Automake and most other
8487 # C build frameworks function, which is that the same flags used in
8488 # compilation (CFLAGS) are also used in linking. Many systems
8489 # supported by AX_PTHREAD require exactly this for POSIX threads
8490 # support, and in fact it is often not straightforward to specify a
8491 # flag that is used only in the compilation phase and not in
8492 # linking. Such a scenario is extremely rare in practice.
8493 #
8494 # Even though use of the -pthread flag in linking would only print
8495 # a warning, this can be a nuisance for well-run software projects
8496 # that build with -Werror. So if the active version of Clang has
8497 # this misfeature, we search for an option to squash it.
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8500$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8501if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8502 $as_echo_n "(cached) " >&6
81ecdfbb 8503else
c8dc28bc
CC
8504 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8505 # Create an alternate version of $ac_link that compiles and
8506 # links in two steps (.c -> .o, .o -> exe) instead of one
8507 # (.c -> exe), because the warning occurs only in the second
8508 # step
8509 ax_pthread_save_ac_link="$ac_link"
8510 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8511 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8512 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8513 ax_pthread_save_CFLAGS="$CFLAGS"
8514 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8515 if test "x$ax_pthread_try" = "xunknown"; then :
8516 break
3d857b98 8517fi
c8dc28bc
CC
8518 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8519 ac_link="$ax_pthread_save_ac_link"
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521/* end confdefs.h. */
8522int main(void){return 0;}
8523_ACEOF
8524if ac_fn_c_try_link "$LINENO"; then :
8525 ac_link="$ax_pthread_2step_ac_link"
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527/* end confdefs.h. */
8528int main(void){return 0;}
8529_ACEOF
8530if ac_fn_c_try_link "$LINENO"; then :
8531 break
8532fi
8533rm -f core conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535
8536fi
8537rm -f core conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
8539 done
8540 ac_link="$ax_pthread_save_ac_link"
8541 CFLAGS="$ax_pthread_save_CFLAGS"
8542 if test "x$ax_pthread_try" = "x"; then :
8543 ax_pthread_try=no
8544fi
8545 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8546
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8549$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8550
8551 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8552 no | unknown) ;;
8553 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8554 esac
8555
8556fi # $ax_pthread_clang = yes
8557
8558if test "x$ax_pthread_ok" = "xno"; then
8559for ax_pthread_try_flag in $ax_pthread_flags; do
8560
8561 case $ax_pthread_try_flag in
8562 none)
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8564$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8565 ;;
8566
8567 -mt,pthread)
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8569$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8570 PTHREAD_CFLAGS="-mt"
8571 PTHREAD_LIBS="-lpthread"
8572 ;;
8573
8574 -*)
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8576$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8577 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8578 ;;
8579
8580 pthread-config)
8581 # Extract the first word of "pthread-config", so it can be a program name with args.
8582set dummy pthread-config; ac_word=$2
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584$as_echo_n "checking for $ac_word... " >&6; }
8585if ${ac_cv_prog_ax_pthread_config+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587else
8588 if test -n "$ax_pthread_config"; then
8589 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8590else
8591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592for as_dir in $PATH
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_ax_pthread_config="yes"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602done
8603 done
8604IFS=$as_save_IFS
8605
8606 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8607fi
8608fi
8609ax_pthread_config=$ac_cv_prog_ax_pthread_config
8610if test -n "$ax_pthread_config"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8612$as_echo "$ax_pthread_config" >&6; }
8613else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615$as_echo "no" >&6; }
8616fi
8617
8618
8619 if test "x$ax_pthread_config" = "xno"; then :
8620 continue
8621fi
8622 PTHREAD_CFLAGS="`pthread-config --cflags`"
8623 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8624 ;;
8625
8626 *)
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8628$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8629 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8630 ;;
8631 esac
8632
8633 ax_pthread_save_CFLAGS="$CFLAGS"
8634 ax_pthread_save_LIBS="$LIBS"
8635 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8636 LIBS="$PTHREAD_LIBS $LIBS"
8637
8638 # Check for various functions. We must include pthread.h,
8639 # since some functions may be macros. (On the Sequent, we
8640 # need a special flag -Kthread to make this header compile.)
8641 # We check for pthread_join because it is in -lpthread on IRIX
8642 # while pthread_create is in libc. We check for pthread_attr_init
8643 # due to DEC craziness with -lpthreads. We check for
8644 # pthread_cleanup_push because it is one of the few pthread
8645 # functions on Solaris that doesn't have a non-functional libc stub.
8646 # We try pthread_create on general principles.
8647
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h. */
8650#include <pthread.h>
8651# if $ax_pthread_check_cond
8652# error "$ax_pthread_check_macro must be defined"
8653# endif
8654 static void routine(void *a) { a = 0; }
8655 static void *start_routine(void *a) { return a; }
8656int
8657main ()
8658{
8659pthread_t th; pthread_attr_t attr;
8660 pthread_create(&th, 0, start_routine, 0);
8661 pthread_join(th, 0);
8662 pthread_attr_init(&attr);
8663 pthread_cleanup_push(routine, 0);
8664 pthread_cleanup_pop(0) /* ; */
8665 ;
8666 return 0;
8667}
8668_ACEOF
8669if ac_fn_c_try_link "$LINENO"; then :
8670 ax_pthread_ok=yes
8671fi
8672rm -f core conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8674
8675 CFLAGS="$ax_pthread_save_CFLAGS"
8676 LIBS="$ax_pthread_save_LIBS"
8677
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8679$as_echo "$ax_pthread_ok" >&6; }
8680 if test "x$ax_pthread_ok" = "xyes"; then :
8681 break
8682fi
8683
8684 PTHREAD_LIBS=""
8685 PTHREAD_CFLAGS=""
8686done
8687fi
8688
8689# Various other checks:
8690if test "x$ax_pthread_ok" = "xyes"; then
8691 ax_pthread_save_CFLAGS="$CFLAGS"
8692 ax_pthread_save_LIBS="$LIBS"
8693 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8694 LIBS="$PTHREAD_LIBS $LIBS"
8695
8696 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8698$as_echo_n "checking for joinable pthread attribute... " >&6; }
8699if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701else
8702 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8703 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h. */
8706#include <pthread.h>
8707int
8708main ()
8709{
8710int attr = $ax_pthread_attr; return attr /* ; */
8711 ;
8712 return 0;
8713}
8714_ACEOF
8715if ac_fn_c_try_link "$LINENO"; then :
8716 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8717fi
8718rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 done
8721
8722fi
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8724$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8725 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8726 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8727 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8728
8729cat >>confdefs.h <<_ACEOF
8730#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8731_ACEOF
8732
8733 ax_pthread_joinable_attr_defined=yes
8734
8735fi
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8738$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8739if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741else
8742 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8743 case $host_os in
8744 solaris*)
8745 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8746 ;;
8747 esac
8748
8749fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8751$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8752 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8753 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8754 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8755 ax_pthread_special_flags_added=yes
8756fi
8757
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8759$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8760if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762else
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764/* end confdefs.h. */
8765#include <pthread.h>
8766int
8767main ()
8768{
8769int i = PTHREAD_PRIO_INHERIT;
8770 ;
8771 return 0;
8772}
8773_ACEOF
8774if ac_fn_c_try_link "$LINENO"; then :
8775 ax_cv_PTHREAD_PRIO_INHERIT=yes
8776else
8777 ax_cv_PTHREAD_PRIO_INHERIT=no
8778fi
8779rm -f core conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
8781
8782fi
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8784$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8785 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8786 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8787
8788$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8789
8790 ax_pthread_prio_inherit_defined=yes
8791
8792fi
8793
8794 CFLAGS="$ax_pthread_save_CFLAGS"
8795 LIBS="$ax_pthread_save_LIBS"
8796
8797 # More AIX lossage: compile with *_r variant
8798 if test "x$GCC" != "xyes"; then
8799 case $host_os in
8800 aix*)
8801 case "x/$CC" in #(
8802 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8803 #handle absolute path differently from PATH based program lookup
8804 case "x$CC" in #(
8805 x/*) :
8806 if as_fn_executable_p ${CC}_r; then :
8807 PTHREAD_CC="${CC}_r"
8808fi ;; #(
8809 *) :
8810 for ac_prog in ${CC}_r
8811do
8812 # Extract the first word of "$ac_prog", so it can be a program name with args.
8813set dummy $ac_prog; ac_word=$2
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815$as_echo_n "checking for $ac_word... " >&6; }
8816if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8817 $as_echo_n "(cached) " >&6
8818else
8819 if test -n "$PTHREAD_CC"; then
8820 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8821else
8822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823for as_dir in $PATH
8824do
8825 IFS=$as_save_IFS
8826 test -z "$as_dir" && as_dir=.
8827 for ac_exec_ext in '' $ac_executable_extensions; do
8828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8829 ac_cv_prog_PTHREAD_CC="$ac_prog"
8830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831 break 2
8832 fi
8833done
8834 done
8835IFS=$as_save_IFS
8836
8837fi
8838fi
8839PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8840if test -n "$PTHREAD_CC"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8842$as_echo "$PTHREAD_CC" >&6; }
8843else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845$as_echo "no" >&6; }
8846fi
8847
8848
8849 test -n "$PTHREAD_CC" && break
8850done
8851test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8852 ;;
8853esac ;; #(
8854 *) :
8855 ;;
8856esac
8857 ;;
8858 esac
8859 fi
8860fi
8861
8862test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8863
8864
8865
8866
8867
8868# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8869if test "x$ax_pthread_ok" = "xyes"; then
8870 threads=yes
8871 :
8872else
8873 ax_pthread_ok=no
8874 as_fn_error $? "pthread not found" "$LINENO" 5
8875fi
8876ac_ext=c
8877ac_cpp='$CPP $CPPFLAGS'
8878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8880ac_compiler_gnu=$ac_cv_c_compiler_gnu
8881
8882
8883elif test "$threads" = "auto"; then
8884
8885
8886
8887
8888ac_ext=c
8889ac_cpp='$CPP $CPPFLAGS'
8890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892ac_compiler_gnu=$ac_cv_c_compiler_gnu
8893
8894ax_pthread_ok=no
8895
8896# We used to check for pthread.h first, but this fails if pthread.h
8897# requires special compiler flags (e.g. on Tru64 or Sequent).
8898# It gets checked for in the link test anyway.
8899
8900# First of all, check if the user has set any of the PTHREAD_LIBS,
8901# etcetera environment variables, and if threads linking works using
8902# them:
8903if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8904 ax_pthread_save_CC="$CC"
8905 ax_pthread_save_CFLAGS="$CFLAGS"
8906 ax_pthread_save_LIBS="$LIBS"
8907 if test "x$PTHREAD_CC" != "x"; then :
8908 CC="$PTHREAD_CC"
8909fi
8910 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8911 LIBS="$PTHREAD_LIBS $LIBS"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8913$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915/* end confdefs.h. */
8916
8917/* Override any GCC internal prototype to avoid an error.
8918 Use char because int might match the return type of a GCC
8919 builtin and then its argument prototype would still apply. */
8920#ifdef __cplusplus
8921extern "C"
8922#endif
8923char pthread_join ();
8924int
8925main ()
8926{
8927return pthread_join ();
8928 ;
8929 return 0;
8930}
8931_ACEOF
8932if ac_fn_c_try_link "$LINENO"; then :
8933 ax_pthread_ok=yes
8934fi
8935rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8938$as_echo "$ax_pthread_ok" >&6; }
8939 if test "x$ax_pthread_ok" = "xno"; then
8940 PTHREAD_LIBS=""
8941 PTHREAD_CFLAGS=""
8942 fi
8943 CC="$ax_pthread_save_CC"
8944 CFLAGS="$ax_pthread_save_CFLAGS"
8945 LIBS="$ax_pthread_save_LIBS"
8946fi
8947
8948# We must check for the threads library under a number of different
8949# names; the ordering is very important because some systems
8950# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8951# libraries is broken (non-POSIX).
8952
8953# Create a list of thread flags to try. Items starting with a "-" are
8954# C compiler flags, and other items are library names, except for "none"
8955# which indicates that we try without any flags at all, and "pthread-config"
8956# which is a program returning the flags for the Pth emulation library.
8957
8958ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8959
8960# The ordering *is* (sometimes) important. Some notes on the
8961# individual items follow:
8962
8963# pthreads: AIX (must check this before -lpthread)
8964# none: in case threads are in libc; should be tried before -Kthread and
8965# other compiler flags to prevent continual compiler warnings
8966# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8967# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8968# (Note: HP C rejects this with "bad form for `-t' option")
8969# -pthreads: Solaris/gcc (Note: HP C also rejects)
8970# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8971# doesn't hurt to check since this sometimes defines pthreads and
8972# -D_REENTRANT too), HP C (must be checked before -lpthread, which
8973# is present but should not be used directly; and before -mthreads,
8974# because the compiler interprets this as "-mt" + "-hreads")
8975# -mthreads: Mingw32/gcc, Lynx/gcc
8976# pthread: Linux, etcetera
8977# --thread-safe: KAI C++
8978# pthread-config: use pthread-config program (for GNU Pth library)
8979
8980case $host_os in
8981
8982 freebsd*)
8983
8984 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8985 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8986
8987 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8988 ;;
8989
8990 hpux*)
8991
8992 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8993 # multi-threading and also sets -lpthread."
8994
8995 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8996 ;;
8997
8998 openedition*)
8999
9000 # IBM z/OS requires a feature-test macro to be defined in order to
9001 # enable POSIX threads at all, so give the user a hint if this is
9002 # not set. (We don't define these ourselves, as they can affect
9003 # other portions of the system API in unpredictable ways.)
9004
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h. */
9007
9008# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9009 AX_PTHREAD_ZOS_MISSING
9010# endif
9011
9012_ACEOF
9013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9014 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9016$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9017fi
9018rm -f conftest*
9019
9020 ;;
9021
9022 solaris*)
9023
9024 # On Solaris (at least, for some versions), libc contains stubbed
9025 # (non-functional) versions of the pthreads routines, so link-based
9026 # tests will erroneously succeed. (N.B.: The stubs are missing
9027 # pthread_cleanup_push, or rather a function called by this macro,
9028 # so we could check for that, but who knows whether they'll stub
9029 # that too in a future libc.) So we'll check first for the
9030 # standard Solaris way of linking pthreads (-mt -lpthread).
9031
9032 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9033 ;;
9034esac
9035
9036# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9037
9038if test "x$GCC" = "xyes"; then :
9039 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9040fi
9041
9042# The presence of a feature test macro requesting re-entrant function
9043# definitions is, on some systems, a strong hint that pthreads support is
9044# correctly enabled
9045
9046case $host_os in
9047 darwin* | hpux* | linux* | osf* | solaris*)
9048 ax_pthread_check_macro="_REENTRANT"
9049 ;;
9050
9051 aix*)
9052 ax_pthread_check_macro="_THREAD_SAFE"
9053 ;;
9054
9055 *)
9056 ax_pthread_check_macro="--"
9057 ;;
9058esac
9059if test "x$ax_pthread_check_macro" = "x--"; then :
9060 ax_pthread_check_cond=0
9061else
9062 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9063fi
9064
9065# Are we compiling with Clang?
9066
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9068$as_echo_n "checking whether $CC is Clang... " >&6; }
9069if ${ax_cv_PTHREAD_CLANG+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071else
9072 ax_cv_PTHREAD_CLANG=no
9073 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9074 if test "x$GCC" = "xyes"; then
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076/* end confdefs.h. */
9077/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9078# if defined(__clang__) && defined(__llvm__)
9079 AX_PTHREAD_CC_IS_CLANG
9080# endif
9081
9082_ACEOF
9083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9084 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9085 ax_cv_PTHREAD_CLANG=yes
9086fi
9087rm -f conftest*
9088
9089 fi
9090
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9093$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9094ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9095
9096ax_pthread_clang_warning=no
9097
9098# Clang needs special handling, because older versions handle the -pthread
9099# option in a rather... idiosyncratic way
9100
9101if test "x$ax_pthread_clang" = "xyes"; then
9102
9103 # Clang takes -pthread; it has never supported any other flag
9104
9105 # (Note 1: This will need to be revisited if a system that Clang
9106 # supports has POSIX threads in a separate library. This tends not
9107 # to be the way of modern systems, but it's conceivable.)
9108
9109 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9110 # to get POSIX threads support; the API is always present and
9111 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9112 # -pthread does define _REENTRANT, and while the Darwin headers
9113 # ignore this macro, third-party headers might not.)
9114
9115 PTHREAD_CFLAGS="-pthread"
9116 PTHREAD_LIBS=
9117
9118 ax_pthread_ok=yes
9119
9120 # However, older versions of Clang make a point of warning the user
9121 # that, in an invocation where only linking and no compilation is
9122 # taking place, the -pthread option has no effect ("argument unused
9123 # during compilation"). They expect -pthread to be passed in only
9124 # when source code is being compiled.
9125 #
9126 # Problem is, this is at odds with the way Automake and most other
9127 # C build frameworks function, which is that the same flags used in
9128 # compilation (CFLAGS) are also used in linking. Many systems
9129 # supported by AX_PTHREAD require exactly this for POSIX threads
9130 # support, and in fact it is often not straightforward to specify a
9131 # flag that is used only in the compilation phase and not in
9132 # linking. Such a scenario is extremely rare in practice.
9133 #
9134 # Even though use of the -pthread flag in linking would only print
9135 # a warning, this can be a nuisance for well-run software projects
9136 # that build with -Werror. So if the active version of Clang has
9137 # this misfeature, we search for an option to squash it.
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9140$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9141if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143else
9144 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9145 # Create an alternate version of $ac_link that compiles and
9146 # links in two steps (.c -> .o, .o -> exe) instead of one
9147 # (.c -> exe), because the warning occurs only in the second
9148 # step
9149 ax_pthread_save_ac_link="$ac_link"
9150 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9151 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9152 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9153 ax_pthread_save_CFLAGS="$CFLAGS"
9154 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9155 if test "x$ax_pthread_try" = "xunknown"; then :
9156 break
9157fi
9158 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9159 ac_link="$ax_pthread_save_ac_link"
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h. */
9162int main(void){return 0;}
9163_ACEOF
9164if ac_fn_c_try_link "$LINENO"; then :
9165 ac_link="$ax_pthread_2step_ac_link"
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h. */
9168int main(void){return 0;}
9169_ACEOF
9170if ac_fn_c_try_link "$LINENO"; then :
9171 break
9172fi
9173rm -f core conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9175
9176fi
9177rm -f core conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 done
9180 ac_link="$ax_pthread_save_ac_link"
9181 CFLAGS="$ax_pthread_save_CFLAGS"
9182 if test "x$ax_pthread_try" = "x"; then :
9183 ax_pthread_try=no
9184fi
9185 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9186
9187fi
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9189$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9190
9191 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9192 no | unknown) ;;
9193 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9194 esac
9195
9196fi # $ax_pthread_clang = yes
9197
9198if test "x$ax_pthread_ok" = "xno"; then
9199for ax_pthread_try_flag in $ax_pthread_flags; do
9200
9201 case $ax_pthread_try_flag in
9202 none)
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9204$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9205 ;;
9206
9207 -mt,pthread)
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9209$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9210 PTHREAD_CFLAGS="-mt"
9211 PTHREAD_LIBS="-lpthread"
9212 ;;
9213
9214 -*)
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9216$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9217 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9218 ;;
9219
9220 pthread-config)
9221 # Extract the first word of "pthread-config", so it can be a program name with args.
9222set dummy pthread-config; ac_word=$2
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224$as_echo_n "checking for $ac_word... " >&6; }
9225if ${ac_cv_prog_ax_pthread_config+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227else
9228 if test -n "$ax_pthread_config"; then
9229 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9230else
9231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232for as_dir in $PATH
9233do
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9238 ac_cv_prog_ax_pthread_config="yes"
9239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 break 2
9241 fi
9242done
9243 done
9244IFS=$as_save_IFS
9245
9246 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9247fi
9248fi
9249ax_pthread_config=$ac_cv_prog_ax_pthread_config
9250if test -n "$ax_pthread_config"; then
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9252$as_echo "$ax_pthread_config" >&6; }
9253else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
9256fi
9257
9258
9259 if test "x$ax_pthread_config" = "xno"; then :
9260 continue
9261fi
9262 PTHREAD_CFLAGS="`pthread-config --cflags`"
9263 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9264 ;;
9265
9266 *)
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9268$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9269 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9270 ;;
9271 esac
9272
9273 ax_pthread_save_CFLAGS="$CFLAGS"
9274 ax_pthread_save_LIBS="$LIBS"
9275 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9276 LIBS="$PTHREAD_LIBS $LIBS"
9277
9278 # Check for various functions. We must include pthread.h,
9279 # since some functions may be macros. (On the Sequent, we
9280 # need a special flag -Kthread to make this header compile.)
9281 # We check for pthread_join because it is in -lpthread on IRIX
9282 # while pthread_create is in libc. We check for pthread_attr_init
9283 # due to DEC craziness with -lpthreads. We check for
9284 # pthread_cleanup_push because it is one of the few pthread
9285 # functions on Solaris that doesn't have a non-functional libc stub.
9286 # We try pthread_create on general principles.
9287
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289/* end confdefs.h. */
9290#include <pthread.h>
9291# if $ax_pthread_check_cond
9292# error "$ax_pthread_check_macro must be defined"
9293# endif
9294 static void routine(void *a) { a = 0; }
9295 static void *start_routine(void *a) { return a; }
9296int
9297main ()
9298{
9299pthread_t th; pthread_attr_t attr;
9300 pthread_create(&th, 0, start_routine, 0);
9301 pthread_join(th, 0);
9302 pthread_attr_init(&attr);
9303 pthread_cleanup_push(routine, 0);
9304 pthread_cleanup_pop(0) /* ; */
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309if ac_fn_c_try_link "$LINENO"; then :
9310 ax_pthread_ok=yes
9311fi
9312rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314
9315 CFLAGS="$ax_pthread_save_CFLAGS"
9316 LIBS="$ax_pthread_save_LIBS"
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9319$as_echo "$ax_pthread_ok" >&6; }
9320 if test "x$ax_pthread_ok" = "xyes"; then :
9321 break
9322fi
9323
9324 PTHREAD_LIBS=""
9325 PTHREAD_CFLAGS=""
9326done
9327fi
9328
9329# Various other checks:
9330if test "x$ax_pthread_ok" = "xyes"; then
9331 ax_pthread_save_CFLAGS="$CFLAGS"
9332 ax_pthread_save_LIBS="$LIBS"
9333 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9334 LIBS="$PTHREAD_LIBS $LIBS"
9335
9336 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9338$as_echo_n "checking for joinable pthread attribute... " >&6; }
9339if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341else
9342 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9343 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345/* end confdefs.h. */
9346#include <pthread.h>
9347int
9348main ()
9349{
9350int attr = $ax_pthread_attr; return attr /* ; */
9351 ;
9352 return 0;
9353}
9354_ACEOF
9355if ac_fn_c_try_link "$LINENO"; then :
9356 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9357fi
9358rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360 done
9361
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9364$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9365 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9366 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9367 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9368
9369cat >>confdefs.h <<_ACEOF
9370#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9371_ACEOF
9372
9373 ax_pthread_joinable_attr_defined=yes
9374
9375fi
9376
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9378$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9379if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381else
9382 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9383 case $host_os in
9384 solaris*)
9385 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9386 ;;
9387 esac
9388
9389fi
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9391$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9392 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9393 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9394 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9395 ax_pthread_special_flags_added=yes
9396fi
9397
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9399$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9400if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402else
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h. */
9405#include <pthread.h>
9406int
9407main ()
9408{
9409int i = PTHREAD_PRIO_INHERIT;
9410 ;
9411 return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"; then :
9415 ax_cv_PTHREAD_PRIO_INHERIT=yes
9416else
9417 ax_cv_PTHREAD_PRIO_INHERIT=no
9418fi
9419rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9424$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9425 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9426 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9427
9428$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9429
9430 ax_pthread_prio_inherit_defined=yes
9431
9432fi
9433
9434 CFLAGS="$ax_pthread_save_CFLAGS"
9435 LIBS="$ax_pthread_save_LIBS"
9436
9437 # More AIX lossage: compile with *_r variant
9438 if test "x$GCC" != "xyes"; then
9439 case $host_os in
9440 aix*)
9441 case "x/$CC" in #(
9442 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9443 #handle absolute path differently from PATH based program lookup
9444 case "x$CC" in #(
9445 x/*) :
9446 if as_fn_executable_p ${CC}_r; then :
9447 PTHREAD_CC="${CC}_r"
9448fi ;; #(
9449 *) :
9450 for ac_prog in ${CC}_r
9451do
9452 # Extract the first word of "$ac_prog", so it can be a program name with args.
9453set dummy $ac_prog; ac_word=$2
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455$as_echo_n "checking for $ac_word... " >&6; }
9456if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458else
9459 if test -n "$PTHREAD_CC"; then
9460 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9461else
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469 ac_cv_prog_PTHREAD_CC="$ac_prog"
9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9472 fi
9473done
9474 done
9475IFS=$as_save_IFS
9476
9477fi
9478fi
9479PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9480if test -n "$PTHREAD_CC"; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9482$as_echo "$PTHREAD_CC" >&6; }
9483else
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485$as_echo "no" >&6; }
9486fi
9487
9488
9489 test -n "$PTHREAD_CC" && break
9490done
9491test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9492 ;;
9493esac ;; #(
9494 *) :
9495 ;;
9496esac
9497 ;;
9498 esac
9499 fi
9500fi
9501
9502test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9503
9504
9505
9506
9507
9508# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9509if test "x$ax_pthread_ok" = "xyes"; then
9510 threads=yes
9511 :
9512else
9513 ax_pthread_ok=no
9514 threads=no
9515fi
9516ac_ext=c
9517ac_cpp='$CPP $CPPFLAGS'
9518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9520ac_compiler_gnu=$ac_cv_c_compiler_gnu
9521
9522
9523fi
9524
9525if test "$threads" = "yes"; then
9526
9527$as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9528
9529fi
9530 if test "$threads" = "yes"; then
9531 THREADS_TRUE=
9532 THREADS_FALSE='#'
9533else
9534 THREADS_TRUE='#'
9535 THREADS_FALSE=
9536fi
9537
9538
9539ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9540if test "x$ac_cv_have_decl_basename" = xyes; then :
9541 ac_have_decl=1
9542else
9543 ac_have_decl=0
9544fi
9545
9546cat >>confdefs.h <<_ACEOF
9547#define HAVE_DECL_BASENAME $ac_have_decl
9548_ACEOF
9549ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9550if test "x$ac_cv_have_decl_ffs" = xyes; then :
9551 ac_have_decl=1
9552else
9553 ac_have_decl=0
9554fi
9555
9556cat >>confdefs.h <<_ACEOF
9557#define HAVE_DECL_FFS $ac_have_decl
9558_ACEOF
9559ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9560if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9561 ac_have_decl=1
9562else
9563 ac_have_decl=0
9564fi
9565
9566cat >>confdefs.h <<_ACEOF
9567#define HAVE_DECL_ASPRINTF $ac_have_decl
9568_ACEOF
9569ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9570if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
9571 ac_have_decl=1
9572else
9573 ac_have_decl=0
9574fi
9575
9576cat >>confdefs.h <<_ACEOF
9577#define HAVE_DECL_VASPRINTF $ac_have_decl
9578_ACEOF
9579ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9580if test "x$ac_cv_have_decl_snprintf" = xyes; then :
9581 ac_have_decl=1
9582else
9583 ac_have_decl=0
9584fi
9585
9586cat >>confdefs.h <<_ACEOF
9587#define HAVE_DECL_SNPRINTF $ac_have_decl
9588_ACEOF
9589ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9590if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
9591 ac_have_decl=1
9592else
9593 ac_have_decl=0
9594fi
9595
9596cat >>confdefs.h <<_ACEOF
9597#define HAVE_DECL_VSNPRINTF $ac_have_decl
9598_ACEOF
9599ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9600if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
9601 ac_have_decl=1
9602else
9603 ac_have_decl=0
9604fi
9605
9606cat >>confdefs.h <<_ACEOF
9607#define HAVE_DECL_STRVERSCMP $ac_have_decl
9608_ACEOF
9609
9610
9611save_CFLAGS="$CFLAGS"
9612CFLAGS="$CFLAGS -Werror -gpubnames"
9613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614/* end confdefs.h. */
9615int i;
9616_ACEOF
9617if ac_fn_c_try_compile "$LINENO"; then :
9618 have_pubnames=yes
9619else
9620 have_pubnames=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623CFLAGS="$save_CFLAGS"
9624 if test "$have_pubnames" = "yes"; then
9625 HAVE_PUBNAMES_TRUE=
9626 HAVE_PUBNAMES_FALSE='#'
9627else
9628 HAVE_PUBNAMES_TRUE='#'
9629 HAVE_PUBNAMES_FALSE=
9630fi
9631
9632
9633save_CFLAGS="$CFLAGS"
9634CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
9635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h. */
9637int i;
9638_ACEOF
9639if ac_fn_c_try_compile "$LINENO"; then :
9640 have_no_use_linker_plugin=yes
9641else
9642 have_no_use_linker_plugin=no
9643fi
9644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645CFLAGS="$save_CFLAGS"
9646 if test "$have_no_use_linker_plugin" = "yes"; then
9647 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
9648 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
9649else
9650 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
9651 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
9652fi
9653
9654
9655ac_ext=cpp
9656ac_cpp='$CXXCPP $CPPFLAGS'
9657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9660
9661
9662
9663ac_ext=cpp
9664ac_cpp='$CXXCPP $CPPFLAGS'
9665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9669$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9670if test -z "$CXXCPP"; then
9671 if ${ac_cv_prog_CXXCPP+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673else
9674 # Double quotes because CXXCPP needs to be expanded
9675 for CXXCPP in "$CXX -E" "/lib/cpp"
9676 do
9677 ac_preproc_ok=false
9678for ac_cxx_preproc_warn_flag in '' yes
9679do
9680 # Use a header file that comes with gcc, so configuring glibc
9681 # with a fresh cross-compiler works.
9682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9683 # <limits.h> exists even on freestanding compilers.
9684 # On the NeXT, cc -E runs the code through the compiler's parser,
9685 # not just through cpp. "Syntax error" is here to catch this case.
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h. */
9688#ifdef __STDC__
9689# include <limits.h>
9690#else
9691# include <assert.h>
9692#endif
9693 Syntax error
9694_ACEOF
9695if ac_fn_cxx_try_cpp "$LINENO"; then :
9696
9697else
9698 # Broken: fails on valid input.
9699continue
9700fi
9701rm -f conftest.err conftest.i conftest.$ac_ext
9702
81ecdfbb
RW
9703 # OK, works on sane cases. Now check whether nonexistent headers
9704 # can be detected and how.
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706/* end confdefs.h. */
9707#include <ac_nonexistent.h>
3d857b98 9708_ACEOF
81ecdfbb
RW
9709if ac_fn_cxx_try_cpp "$LINENO"; then :
9710 # Broken: success on invalid input.
9711continue
3d857b98 9712else
81ecdfbb
RW
9713 # Passes both tests.
9714ac_preproc_ok=:
9715break
9716fi
d0ac1c44 9717rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
9718
9719done
9720# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 9721rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
9722if $ac_preproc_ok; then :
9723 break
9724fi
3d857b98 9725
81ecdfbb
RW
9726 done
9727 ac_cv_prog_CXXCPP=$CXXCPP
3d857b98
DK
9728
9729fi
81ecdfbb 9730 CXXCPP=$ac_cv_prog_CXXCPP
3d857b98 9731else
81ecdfbb
RW
9732 ac_cv_prog_CXXCPP=$CXXCPP
9733fi
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9735$as_echo "$CXXCPP" >&6; }
9736ac_preproc_ok=false
9737for ac_cxx_preproc_warn_flag in '' yes
9738do
9739 # Use a header file that comes with gcc, so configuring glibc
9740 # with a fresh cross-compiler works.
9741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9742 # <limits.h> exists even on freestanding compilers.
9743 # On the NeXT, cc -E runs the code through the compiler's parser,
9744 # not just through cpp. "Syntax error" is here to catch this case.
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d857b98 9746/* end confdefs.h. */
81ecdfbb
RW
9747#ifdef __STDC__
9748# include <limits.h>
9749#else
9750# include <assert.h>
3d857b98 9751#endif
81ecdfbb 9752 Syntax error
3d857b98 9753_ACEOF
81ecdfbb 9754if ac_fn_cxx_try_cpp "$LINENO"; then :
3d857b98 9755
81ecdfbb
RW
9756else
9757 # Broken: fails on valid input.
9758continue
3d857b98 9759fi
d0ac1c44 9760rm -f conftest.err conftest.i conftest.$ac_ext
3d857b98 9761
81ecdfbb
RW
9762 # OK, works on sane cases. Now check whether nonexistent headers
9763 # can be detected and how.
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h. */
9766#include <ac_nonexistent.h>
3d857b98 9767_ACEOF
81ecdfbb
RW
9768if ac_fn_cxx_try_cpp "$LINENO"; then :
9769 # Broken: success on invalid input.
9770continue
9771else
9772 # Passes both tests.
9773ac_preproc_ok=:
9774break
9775fi
d0ac1c44 9776rm -f conftest.err conftest.i conftest.$ac_ext
3d857b98 9777
81ecdfbb
RW
9778done
9779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 9780rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 9781if $ac_preproc_ok; then :
3d857b98
DK
9782
9783else
81ecdfbb
RW
9784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
9786as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
9787See \`config.log' for more details" "$LINENO" 5; }
81ecdfbb
RW
9788fi
9789
9790ac_ext=cpp
9791ac_cpp='$CXXCPP $CPPFLAGS'
9792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9795
9796
8356f2d0
CC
9797for ac_header in unordered_set unordered_map
9798do :
9799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9800ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8356f2d0
CC
9802 cat >>confdefs.h <<_ACEOF
9803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9804_ACEOF
9805
9806fi
9807
9808done
9809
81ecdfbb
RW
9810for ac_header in tr1/unordered_set tr1/unordered_map
9811do :
9812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9813ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9814if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3d857b98 9815 cat >>confdefs.h <<_ACEOF
81ecdfbb 9816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3d857b98
DK
9817_ACEOF
9818
3d857b98 9819fi
3d857b98 9820
81ecdfbb
RW
9821done
9822
9823for ac_header in ext/hash_map ext/hash_set
9824do :
9825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9826ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9827if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
9828 cat >>confdefs.h <<_ACEOF
9829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9830_ACEOF
3d857b98 9831
3d857b98 9832fi
3d857b98 9833
81ecdfbb
RW
9834done
9835
9836for ac_header in byteswap.h
9837do :
9838 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
d0ac1c44 9839if test "x$ac_cv_header_byteswap_h" = xyes; then :
81ecdfbb
RW
9840 cat >>confdefs.h <<_ACEOF
9841#define HAVE_BYTESWAP_H 1
3d857b98
DK
9842_ACEOF
9843
81ecdfbb 9844fi
3d857b98 9845
81ecdfbb
RW
9846done
9847
0bf402d5 9848
e755667f
NA
9849ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
9850"
9851if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
9852 ac_have_decl=1
9853else
9854 ac_have_decl=0
9855fi
9856
9857cat >>confdefs.h <<_ACEOF
9858#define HAVE_DECL_BSWAP_16 $ac_have_decl
9859_ACEOF
9860ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
9861"
9862if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
9863 ac_have_decl=1
9864else
9865 ac_have_decl=0
9866fi
9867
9868cat >>confdefs.h <<_ACEOF
9869#define HAVE_DECL_BSWAP_32 $ac_have_decl
9870_ACEOF
9871ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
9872"
9873if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
9874 ac_have_decl=1
9875else
9876 ac_have_decl=0
9877fi
9878
9879cat >>confdefs.h <<_ACEOF
9880#define HAVE_DECL_BSWAP_64 $ac_have_decl
9881_ACEOF
9882
9883
0bf402d5
ILT
9884for ac_header in windows.h
9885do :
9886 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
d0ac1c44 9887if test "x$ac_cv_header_windows_h" = xyes; then :
0bf402d5
ILT
9888 cat >>confdefs.h <<_ACEOF
9889#define HAVE_WINDOWS_H 1
9890_ACEOF
9891
9892fi
9893
9894done
9895
9896for ac_header in dlfcn.h
9897do :
9898 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
d0ac1c44 9899if test "x$ac_cv_header_dlfcn_h" = xyes; then :
0bf402d5
ILT
9900 cat >>confdefs.h <<_ACEOF
9901#define HAVE_DLFCN_H 1
9902_ACEOF
6632e8cc 9903
0bf402d5
ILT
9904fi
9905
9906done
9907
6632e8cc
CC
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9909$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 9910if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
9911 $as_echo_n "(cached) " >&6
9912else
9913 ac_func_search_save_LIBS=$LIBS
9914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915/* end confdefs.h. */
9916
9917/* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9920#ifdef __cplusplus
9921extern "C"
9922#endif
9923char dlopen ();
9924int
9925main ()
9926{
9927return dlopen ();
9928 ;
9929 return 0;
9930}
9931_ACEOF
9932for ac_lib in '' dl dld; do
9933 if test -z "$ac_lib"; then
9934 ac_res="none required"
9935 else
9936 ac_res=-l$ac_lib
9937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9938 fi
9939 if ac_fn_cxx_try_link "$LINENO"; then :
9940 ac_cv_search_dlopen=$ac_res
9941fi
9942rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext
d0ac1c44 9944 if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
9945 break
9946fi
9947done
d0ac1c44 9948if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
9949
9950else
9951 ac_cv_search_dlopen=no
9952fi
9953rm conftest.$ac_ext
9954LIBS=$ac_func_search_save_LIBS
9955fi
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9957$as_echo "$ac_cv_search_dlopen" >&6; }
9958ac_res=$ac_cv_search_dlopen
9959if test "$ac_res" != no; then :
9960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9961
9962fi
9963
9964case "$ac_cv_search_dlopen" in
9965 no*) DLOPEN_LIBS="";;
9966 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
9967esac
0bf402d5
ILT
9968
9969
4ee60495 9970for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
81ecdfbb
RW
9971do :
9972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 9974if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3d857b98 9975 cat >>confdefs.h <<_ACEOF
81ecdfbb 9976#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3d857b98
DK
9977_ACEOF
9978
3d857b98 9979fi
81ecdfbb
RW
9980done
9981
9982ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
d0ac1c44 9983if test "x$ac_cv_have_decl_basename" = xyes; then :
81ecdfbb 9984 ac_have_decl=1
3d857b98 9985else
81ecdfbb
RW
9986 ac_have_decl=0
9987fi
3d857b98 9988
81ecdfbb
RW
9989cat >>confdefs.h <<_ACEOF
9990#define HAVE_DECL_BASENAME $ac_have_decl
3d857b98 9991_ACEOF
81ecdfbb 9992ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
d0ac1c44 9993if test "x$ac_cv_have_decl_ffs" = xyes; then :
81ecdfbb 9994 ac_have_decl=1
3d857b98 9995else
81ecdfbb 9996 ac_have_decl=0
3d857b98 9997fi
3d857b98
DK
9998
9999cat >>confdefs.h <<_ACEOF
81ecdfbb 10000#define HAVE_DECL_FFS $ac_have_decl
3d857b98 10001_ACEOF
81ecdfbb 10002ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 10003if test "x$ac_cv_have_decl_asprintf" = xyes; then :
81ecdfbb 10004 ac_have_decl=1
3d857b98 10005else
81ecdfbb 10006 ac_have_decl=0
3d857b98 10007fi
3d857b98 10008
81ecdfbb
RW
10009cat >>confdefs.h <<_ACEOF
10010#define HAVE_DECL_ASPRINTF $ac_have_decl
3d857b98 10011_ACEOF
81ecdfbb 10012ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
d0ac1c44 10013if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
81ecdfbb 10014 ac_have_decl=1
3d857b98 10015else
81ecdfbb 10016 ac_have_decl=0
3d857b98 10017fi
3d857b98
DK
10018
10019cat >>confdefs.h <<_ACEOF
81ecdfbb 10020#define HAVE_DECL_VASPRINTF $ac_have_decl
3d857b98 10021_ACEOF
81ecdfbb 10022ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
d0ac1c44 10023if test "x$ac_cv_have_decl_snprintf" = xyes; then :
81ecdfbb 10024 ac_have_decl=1
3d857b98 10025else
81ecdfbb 10026 ac_have_decl=0
3d857b98 10027fi
3d857b98 10028
81ecdfbb
RW
10029cat >>confdefs.h <<_ACEOF
10030#define HAVE_DECL_SNPRINTF $ac_have_decl
3d857b98 10031_ACEOF
81ecdfbb 10032ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
d0ac1c44 10033if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
81ecdfbb 10034 ac_have_decl=1
3d857b98 10035else
81ecdfbb 10036 ac_have_decl=0
3d857b98 10037fi
3d857b98
DK
10038
10039cat >>confdefs.h <<_ACEOF
81ecdfbb 10040#define HAVE_DECL_VSNPRINTF $ac_have_decl
3d857b98 10041_ACEOF
81ecdfbb 10042ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
d0ac1c44 10043if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
81ecdfbb 10044 ac_have_decl=1
3d857b98 10045else
81ecdfbb
RW
10046 ac_have_decl=0
10047fi
3d857b98 10048
81ecdfbb
RW
10049cat >>confdefs.h <<_ACEOF
10050#define HAVE_DECL_STRVERSCMP $ac_have_decl
10051_ACEOF
10052ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
d0ac1c44 10053if test "x$ac_cv_have_decl_strndup" = xyes; then :
81ecdfbb
RW
10054 ac_have_decl=1
10055else
10056 ac_have_decl=0
10057fi
3d857b98 10058
81ecdfbb
RW
10059cat >>confdefs.h <<_ACEOF
10060#define HAVE_DECL_STRNDUP $ac_have_decl
10061_ACEOF
10062ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
d0ac1c44 10063if test "x$ac_cv_have_decl_memmem" = xyes; then :
81ecdfbb
RW
10064 ac_have_decl=1
10065else
10066 ac_have_decl=0
3d857b98
DK
10067fi
10068
81ecdfbb
RW
10069cat >>confdefs.h <<_ACEOF
10070#define HAVE_DECL_MEMMEM $ac_have_decl
10071_ACEOF
3d857b98 10072
e44fcf3b 10073
40fde488
CD
10074# Use of ::std::tr1::unordered_map::rehash causes undefined symbols
10075# at link time with some versions of GCC.
81ecdfbb
RW
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
10077$as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
d0ac1c44 10078if ${gold_cv_unordered_map_rehash+:} false; then :
81ecdfbb 10079 $as_echo_n "(cached) " >&6
40fde488 10080else
81ecdfbb 10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40fde488
CD
10082/* end confdefs.h. */
10083
10084#include <tr1/unordered_map>
10085void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
10086
10087int
10088main ()
10089{
10090
10091 ;
10092 return 0;
10093}
10094_ACEOF
81ecdfbb 10095if ac_fn_cxx_try_link "$LINENO"; then :
40fde488
CD
10096 gold_cv_unordered_map_rehash=yes
10097else
81ecdfbb 10098 gold_cv_unordered_map_rehash=no
40fde488 10099fi
81ecdfbb
RW
10100rm -f core conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
40fde488 10102fi
81ecdfbb
RW
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10104$as_echo "$gold_cv_unordered_map_rehash" >&6; }
40fde488
CD
10105if test "$gold_cv_unordered_map_rehash" = "yes"; then
10106
81ecdfbb 10107$as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
40fde488
CD
10108
10109fi
10110
81c82a68
ILT
10111# Use of tr1/unordered_map with off_t as a key is not supported on GCC
10112# 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10114$as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
d0ac1c44 10115if ${gold_cv_hash_off_t+:} false; then :
81c82a68
ILT
10116 $as_echo_n "(cached) " >&6
10117else
10118 CXXFLAGS_hold=$CXXFLAGS
10119CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
10120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h. */
10122
10123#include <sys/types.h>
10124#include <tr1/unordered_map>
10125std::tr1::hash<off_t> h;
10126
10127_ACEOF
10128if ac_fn_cxx_try_compile "$LINENO"; then :
10129 gold_cv_hash_off_t=yes
10130else
10131 gold_cv_hash_off_t=no
10132fi
10133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26e4ef59 10134CXXFLAGS=$CXXFLAGS_hold
81c82a68
ILT
10135fi
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10137$as_echo "$gold_cv_hash_off_t" >&6; }
10138if test "$gold_cv_hash_off_t" = "yes"; then
10139
10140$as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10141
10142fi
10143
04bf7072
ILT
10144# gcc 4.3.0 doesn't recognize the printf attribute on a template
10145# function. Check for that. This is gcc bug 35546. This test can
10146# probably be removed after the bug has been fixed for a while.
81ecdfbb
RW
10147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10148$as_echo_n "checking whether we can use attributes with template functions... " >&6; }
d0ac1c44 10149if ${gold_cv_template_attribute+:} false; then :
81ecdfbb 10150 $as_echo_n "(cached) " >&6
04bf7072 10151else
81ecdfbb
RW
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h. */
04bf7072
ILT
10154
10155template<typename T> extern void foo(const char*, ...)
10156 __attribute__ ((__format__ (__printf__, 1, 2)));
10157template<typename T> void foo(const char* format, ...) {}
10158void bar() { foo<int>("%s\n", "foo"); }
10159
10160_ACEOF
81ecdfbb 10161if ac_fn_cxx_try_compile "$LINENO"; then :
04bf7072
ILT
10162 gold_cv_template_attribute=yes
10163else
81ecdfbb 10164 gold_cv_template_attribute=no
04bf7072 10165fi
81ecdfbb 10166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
04bf7072 10167fi
81ecdfbb
RW
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10169$as_echo "$gold_cv_template_attribute" >&6; }
04bf7072
ILT
10170if test "$gold_cv_template_attribute" = "yes"; then
10171
81ecdfbb 10172$as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
04bf7072
ILT
10173
10174fi
10175
5d329b7d
ILT
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10177$as_echo_n "checking for struct stat::st_mtim.... " >&6; }
d0ac1c44 10178if ${gold_cv_stat_st_mtim+:} false; then :
5d329b7d
ILT
10179 $as_echo_n "(cached) " >&6
10180else
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h. */
10183
10184#include <sys/stat.h>
10185long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10186
10187int
10188main ()
10189{
10190
10191 ;
10192 return 0;
10193}
10194_ACEOF
10195if ac_fn_cxx_try_compile "$LINENO"; then :
10196 gold_cv_stat_st_mtim=yes
10197else
10198 gold_cv_stat_st_mtim=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201fi
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10203$as_echo "$gold_cv_stat_st_mtim" >&6; }
10204if test "$gold_cv_stat_st_mtim" = "yes"; then
10205
10206$as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10207
10208fi
10209
54dc6425
ILT
10210ac_ext=c
10211ac_cpp='$CPP $CPPFLAGS'
10212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214ac_compiler_gnu=$ac_cv_c_compiler_gnu
10215
10216
58797674
RM
10217for ac_header in locale.h
10218do :
10219 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
d0ac1c44 10220if test "x$ac_cv_header_locale_h" = xyes; then :
58797674
RM
10221 cat >>confdefs.h <<_ACEOF
10222#define HAVE_LOCALE_H 1
10223_ACEOF
10224
10225fi
10226
10227done
10228
44350750
NC
10229for ac_func in setlocale
10230do :
10231 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
d0ac1c44 10232if test "x$ac_cv_func_setlocale" = xyes; then :
44350750
NC
10233 cat >>confdefs.h <<_ACEOF
10234#define HAVE_SETLOCALE 1
10235_ACEOF
10236
10237fi
10238done
10239
10240
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10242$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 10243if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
10244 $as_echo_n "(cached) " >&6
10245else
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h. */
10248#include <locale.h>
10249int
10250main ()
10251{
10252return LC_MESSAGES
10253 ;
10254 return 0;
10255}
10256_ACEOF
10257if ac_fn_c_try_link "$LINENO"; then :
10258 am_cv_val_LC_MESSAGES=yes
10259else
10260 am_cv_val_LC_MESSAGES=no
10261fi
10262rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264fi
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10266$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10267 if test $am_cv_val_LC_MESSAGES = yes; then
10268
10269$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10270
10271 fi
10272
10273
81ecdfbb
RW
10274
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10276$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10277 # Check whether --enable-maintainer-mode was given.
10278if test "${enable_maintainer_mode+set}" = set; then :
10279 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
bae7f79e
ILT
10280else
10281 USE_MAINTAINER_MODE=no
81ecdfbb 10282fi
bae7f79e 10283
81ecdfbb
RW
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10285$as_echo "$USE_MAINTAINER_MODE" >&6; }
10286 if test $USE_MAINTAINER_MODE = yes; then
bae7f79e
ILT
10287 MAINTAINER_MODE_TRUE=
10288 MAINTAINER_MODE_FALSE='#'
10289else
10290 MAINTAINER_MODE_TRUE='#'
10291 MAINTAINER_MODE_FALSE=
10292fi
10293
10294 MAINT=$MAINTAINER_MODE_TRUE
10295
10296
10297
81ecdfbb
RW
10298ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10299
bae7f79e
ILT
10300cat >confcache <<\_ACEOF
10301# This file is a shell script that caches the results of configure
10302# tests run on this system so they can be shared between configure
10303# scripts and configure runs, see configure's option --config-cache.
10304# It is not useful on other systems. If it contains results you don't
10305# want to keep, you may remove or edit it.
10306#
10307# config.status only pays attention to the cache file if you give it
10308# the --recheck option to rerun configure.
10309#
10310# `ac_cv_env_foo' variables (set or unset) will be overridden when
10311# loading this file, other *unset* `ac_cv_foo' will be assigned the
10312# following values.
10313
10314_ACEOF
10315
10316# The following way of writing the cache mishandles newlines in values,
10317# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 10318# So, we kill variables containing newlines.
bae7f79e
ILT
10319# Ultrix sh set writes to stderr and can't be redirected directly,
10320# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
10321(
10322 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10323 eval ac_val=\$$ac_var
10324 case $ac_val in #(
10325 *${as_nl}*)
10326 case $ac_var in #(
10327 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10328$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10329 esac
10330 case $ac_var in #(
10331 _ | IFS | as_nl) ;; #(
10332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10333 *) { eval $ac_var=; unset $ac_var;} ;;
10334 esac ;;
10335 esac
10336 done
10337
bae7f79e 10338 (set) 2>&1 |
81ecdfbb
RW
10339 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10340 *${as_nl}ac_space=\ *)
10341 # `set' does not quote correctly, so add quotes: double-quote
10342 # substitution turns \\\\ into \\, and sed turns \\ into \.
bae7f79e
ILT
10343 sed -n \
10344 "s/'/'\\\\''/g;
10345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 10346 ;; #(
bae7f79e
ILT
10347 *)
10348 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 10349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bae7f79e 10350 ;;
81ecdfbb
RW
10351 esac |
10352 sort
10353) |
bae7f79e 10354 sed '
81ecdfbb 10355 /^ac_cv_env_/b end
bae7f79e 10356 t clear
81ecdfbb 10357 :clear
bae7f79e
ILT
10358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10359 t end
81ecdfbb
RW
10360 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10361 :end' >>confcache
10362if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10363 if test -w "$cache_file"; then
d0ac1c44 10364 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10366$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
10367 if test ! -f "$cache_file" || test -h "$cache_file"; then
10368 cat confcache >"$cache_file"
10369 else
10370 case $cache_file in #(
10371 */* | ?:*)
10372 mv -f confcache "$cache_file"$$ &&
10373 mv -f "$cache_file"$$ "$cache_file" ;; #(
10374 *)
10375 mv -f confcache "$cache_file" ;;
10376 esac
10377 fi
10378 fi
bae7f79e 10379 else
81ecdfbb
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10381$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bae7f79e
ILT
10382 fi
10383fi
10384rm -f confcache
10385
10386test "x$prefix" = xNONE && prefix=$ac_default_prefix
10387# Let make expand exec_prefix.
10388test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10389
bae7f79e
ILT
10390DEFS=-DHAVE_CONFIG_H
10391
10392ac_libobjs=
10393ac_ltlibobjs=
10394for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10395 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
10396 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10397 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10398 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10399 # will be set to the directory where LIBOBJS objects are built.
10400 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10401 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bae7f79e
ILT
10402done
10403LIBOBJS=$ac_libobjs
10404
10405LTLIBOBJS=$ac_ltlibobjs
10406
10407
d0ac1c44
SM
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10409$as_echo_n "checking that generated files are newer than configure... " >&6; }
10410 if test -n "$am_sleep_pid"; then
10411 # Hide warnings about reused PIDs.
10412 wait $am_sleep_pid 2>/dev/null
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10415$as_echo "done" >&6; }
81ecdfbb
RW
10416 if test -n "$EXEEXT"; then
10417 am__EXEEXT_TRUE=
10418 am__EXEEXT_FALSE='#'
10419else
10420 am__EXEEXT_TRUE='#'
10421 am__EXEEXT_FALSE=
10422fi
10423
24538276 10424if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
d0ac1c44 10425 as_fn_error $? "conditional \"AMDEP\" was never defined.
24538276
CC
10426Usually this means the macro was only invoked conditionally." "$LINENO" 5
10427fi
10428if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 10429 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24538276
CC
10430Usually this means the macro was only invoked conditionally." "$LINENO" 5
10431fi
89fc3421 10432if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 10433 as_fn_error $? "conditional \"PLUGINS\" was never defined.
81ecdfbb 10434Usually this means the macro was only invoked conditionally." "$LINENO" 5
89fc3421 10435fi
053a4d68 10436if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
d0ac1c44 10437 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
053a4d68
JY
10438Usually this means the macro was only invoked conditionally." "$LINENO" 5
10439fi
364c7fa5 10440if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
d0ac1c44 10441 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
364c7fa5
ILT
10442Usually this means the macro was only invoked conditionally." "$LINENO" 5
10443fi
10444if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
d0ac1c44 10445 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
364c7fa5
ILT
10446Usually this means the macro was only invoked conditionally." "$LINENO" 5
10447fi
10448if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
d0ac1c44 10449 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
364c7fa5
ILT
10450Usually this means the macro was only invoked conditionally." "$LINENO" 5
10451fi
10452if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
d0ac1c44 10453 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
364c7fa5
ILT
10454Usually this means the macro was only invoked conditionally." "$LINENO" 5
10455fi
e79a4bad 10456if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
d0ac1c44 10457 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
e79a4bad
MK
10458Usually this means the macro was only invoked conditionally." "$LINENO" 5
10459fi
364c7fa5 10460if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
d0ac1c44 10461 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
364c7fa5
ILT
10462Usually this means the macro was only invoked conditionally." "$LINENO" 5
10463fi
4fc1b9d4 10464if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
d0ac1c44 10465 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
4fc1b9d4
L
10466Usually this means the macro was only invoked conditionally." "$LINENO" 5
10467fi
ad961eab 10468if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
d0ac1c44 10469 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
ad961eab
L
10470Usually this means the macro was only invoked conditionally." "$LINENO" 5
10471fi
0a6f1bf2 10472if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
d0ac1c44 10473 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
0a6f1bf2
AM
10474Usually this means the macro was only invoked conditionally." "$LINENO" 5
10475fi
9810d34d 10476if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
d0ac1c44 10477 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
9810d34d
SS
10478Usually this means the macro was only invoked conditionally." "$LINENO" 5
10479fi
bae7f79e 10480if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 10481 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
81ecdfbb 10482Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
10483fi
10484if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 10485 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
81ecdfbb 10486Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e 10487fi
81ecdfbb 10488
537b5f51 10489if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
d0ac1c44 10490 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
81ecdfbb 10491Usually this means the macro was only invoked conditionally." "$LINENO" 5
537b5f51
ILT
10492fi
10493if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
d0ac1c44 10494 as_fn_error $? "conditional \"GCC\" was never defined.
81ecdfbb 10495Usually this means the macro was only invoked conditionally." "$LINENO" 5
537b5f51 10496fi
eb373049 10497if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
d0ac1c44 10498 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
eb373049 10499Usually this means the macro was only invoked conditionally." "$LINENO" 5
328c7c2f
ILT
10500fi
10501if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
d0ac1c44 10502 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
328c7c2f 10503Usually this means the macro was only invoked conditionally." "$LINENO" 5
eb373049 10504fi
63402fe4 10505if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
d0ac1c44 10506 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
81ecdfbb 10507Usually this means the macro was only invoked conditionally." "$LINENO" 5
63402fe4 10508fi
8a5e3e08 10509if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
d0ac1c44 10510 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
81ecdfbb 10511Usually this means the macro was only invoked conditionally." "$LINENO" 5
8a5e3e08 10512fi
6c0005b8
L
10513if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
10514 as_fn_error $? "conditional \"GCC9\" was never defined.
10515Usually this means the macro was only invoked conditionally." "$LINENO" 5
10516fi
10517if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
10518 as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
10519Usually this means the macro was only invoked conditionally." "$LINENO" 5
10520fi
6eee141f 10521if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
d0ac1c44 10522 as_fn_error $? "conditional \"TLS\" was never defined.
81ecdfbb 10523Usually this means the macro was only invoked conditionally." "$LINENO" 5
6eee141f 10524fi
097ec620 10525if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
d0ac1c44 10526 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
81ecdfbb 10527Usually this means the macro was only invoked conditionally." "$LINENO" 5
097ec620 10528fi
155a0dd7 10529if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
d0ac1c44 10530 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
81ecdfbb 10531Usually this means the macro was only invoked conditionally." "$LINENO" 5
155a0dd7 10532fi
c2b45e22 10533if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
d0ac1c44 10534 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
81ecdfbb 10535Usually this means the macro was only invoked conditionally." "$LINENO" 5
c2b45e22
CC
10536fi
10537if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
d0ac1c44 10538 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
81ecdfbb 10539Usually this means the macro was only invoked conditionally." "$LINENO" 5
c2b45e22 10540fi
7223e9ca 10541if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
d0ac1c44 10542 as_fn_error $? "conditional \"IFUNC\" was never defined.
7223e9ca
ILT
10543Usually this means the macro was only invoked conditionally." "$LINENO" 5
10544fi
ebb300b2 10545if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
d0ac1c44 10546 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
ebb300b2
CC
10547Usually this means the macro was only invoked conditionally." "$LINENO" 5
10548fi
c8dc28bc
CC
10549if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
10550 as_fn_error $? "conditional \"THREADS\" was never defined.
10551Usually this means the macro was only invoked conditionally." "$LINENO" 5
10552fi
f1415016 10553if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
d0ac1c44 10554 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
f1415016
CC
10555Usually this means the macro was only invoked conditionally." "$LINENO" 5
10556fi
ae447ddd 10557if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
d0ac1c44 10558 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
ae447ddd
CC
10559Usually this means the macro was only invoked conditionally." "$LINENO" 5
10560fi
bae7f79e 10561if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 10562 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 10563Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
10564fi
10565
d0ac1c44 10566: "${CONFIG_STATUS=./config.status}"
81ecdfbb 10567ac_write_fail=0
bae7f79e
ILT
10568ac_clean_files_save=$ac_clean_files
10569ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10571$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10572as_write_fail=0
10573cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bae7f79e
ILT
10574#! $SHELL
10575# Generated by $as_me.
10576# Run this file to recreate the current configuration.
10577# Compiler output produced by configure, useful for debugging
10578# configure, is in config.log if it exists.
10579
10580debug=false
10581ac_cs_recheck=false
10582ac_cs_silent=false
bae7f79e 10583
81ecdfbb
RW
10584SHELL=\${CONFIG_SHELL-$SHELL}
10585export SHELL
10586_ASEOF
10587cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10588## -------------------- ##
10589## M4sh Initialization. ##
10590## -------------------- ##
bae7f79e 10591
81ecdfbb
RW
10592# Be more Bourne compatible
10593DUALCASE=1; export DUALCASE # for MKS sh
10594if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bae7f79e
ILT
10595 emulate sh
10596 NULLCMD=:
81ecdfbb 10597 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bae7f79e
ILT
10598 # is contrary to our usage. Disable this feature.
10599 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
10600 setopt NO_GLOB_SUBST
10601else
10602 case `(set -o) 2>/dev/null` in #(
10603 *posix*) :
10604 set -o posix ;; #(
10605 *) :
10606 ;;
10607esac
bae7f79e 10608fi
bae7f79e 10609
81ecdfbb
RW
10610
10611as_nl='
10612'
10613export as_nl
10614# Printing a long string crashes Solaris 7 /usr/bin/printf.
10615as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10616as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10617as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10618# Prefer a ksh shell builtin over an external printf program on Solaris,
10619# but without wasting forks for bash or zsh.
10620if test -z "$BASH_VERSION$ZSH_VERSION" \
10621 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10622 as_echo='print -r --'
10623 as_echo_n='print -rn --'
10624elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10625 as_echo='printf %s\n'
10626 as_echo_n='printf %s'
10627else
10628 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10629 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10630 as_echo_n='/usr/ucb/echo -n'
10631 else
10632 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10633 as_echo_n_body='eval
10634 arg=$1;
10635 case $arg in #(
10636 *"$as_nl"*)
10637 expr "X$arg" : "X\\(.*\\)$as_nl";
10638 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10639 esac;
10640 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10641 '
10642 export as_echo_n_body
10643 as_echo_n='sh -c $as_echo_n_body as_echo'
10644 fi
10645 export as_echo_body
10646 as_echo='sh -c $as_echo_body as_echo'
10647fi
10648
10649# The user is always right.
10650if test "${PATH_SEPARATOR+set}" != set; then
10651 PATH_SEPARATOR=:
10652 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10653 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10654 PATH_SEPARATOR=';'
10655 }
bae7f79e
ILT
10656fi
10657
10658
81ecdfbb
RW
10659# IFS
10660# We need space, tab and new line, in precisely that order. Quoting is
10661# there to prevent editors from complaining about space-tab.
10662# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10663# splitting by setting IFS to empty value.)
10664IFS=" "" $as_nl"
10665
10666# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 10667as_myself=
81ecdfbb
RW
10668case $0 in #((
10669 *[\\/]* ) as_myself=$0 ;;
10670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671for as_dir in $PATH
10672do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10676 done
10677IFS=$as_save_IFS
10678
10679 ;;
10680esac
10681# We did not find ourselves, most probably we were run as `sh COMMAND'
10682# in which case we are not to be found in the path.
10683if test "x$as_myself" = x; then
10684 as_myself=$0
10685fi
10686if test ! -f "$as_myself"; then
10687 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10688 exit 1
10689fi
10690
10691# Unset variables that we do not need and which cause bugs (e.g. in
10692# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10693# suppresses any "Segmentation fault" message there. '((' could
10694# trigger a bug in pdksh 5.2.14.
10695for as_var in BASH_ENV ENV MAIL MAILPATH
10696do eval test x\${$as_var+set} = xset \
10697 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10698done
bae7f79e
ILT
10699PS1='$ '
10700PS2='> '
10701PS4='+ '
10702
10703# NLS nuisances.
81ecdfbb
RW
10704LC_ALL=C
10705export LC_ALL
10706LANGUAGE=C
10707export LANGUAGE
10708
10709# CDPATH.
10710(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10711
10712
d0ac1c44
SM
10713# as_fn_error STATUS ERROR [LINENO LOG_FD]
10714# ----------------------------------------
81ecdfbb
RW
10715# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10716# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 10717# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
10718as_fn_error ()
10719{
d0ac1c44
SM
10720 as_status=$1; test $as_status -eq 0 && as_status=1
10721 if test "$4"; then
10722 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10723 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
bae7f79e 10724 fi
d0ac1c44 10725 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
10726 as_fn_exit $as_status
10727} # as_fn_error
10728
10729
10730# as_fn_set_status STATUS
10731# -----------------------
10732# Set $? to STATUS, without forking.
10733as_fn_set_status ()
10734{
10735 return $1
10736} # as_fn_set_status
bae7f79e 10737
81ecdfbb
RW
10738# as_fn_exit STATUS
10739# -----------------
10740# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10741as_fn_exit ()
10742{
10743 set +e
10744 as_fn_set_status $1
10745 exit $1
10746} # as_fn_exit
10747
10748# as_fn_unset VAR
10749# ---------------
10750# Portably unset VAR.
10751as_fn_unset ()
10752{
10753 { eval $1=; unset $1;}
10754}
10755as_unset=as_fn_unset
10756# as_fn_append VAR VALUE
10757# ----------------------
10758# Append the text in VALUE to the end of the definition contained in VAR. Take
10759# advantage of any shell optimizations that allow amortized linear growth over
10760# repeated appends, instead of the typical quadratic growth present in naive
10761# implementations.
10762if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10763 eval 'as_fn_append ()
10764 {
10765 eval $1+=\$2
10766 }'
10767else
10768 as_fn_append ()
10769 {
10770 eval $1=\$$1\$2
10771 }
10772fi # as_fn_append
10773
10774# as_fn_arith ARG...
10775# ------------------
10776# Perform arithmetic evaluation on the ARGs, and store the result in the
10777# global $as_val. Take advantage of shells that can avoid forks. The arguments
10778# must be portable across $(()) and expr.
10779if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10780 eval 'as_fn_arith ()
10781 {
10782 as_val=$(( $* ))
10783 }'
10784else
10785 as_fn_arith ()
10786 {
10787 as_val=`expr "$@" || test $? -eq 1`
10788 }
10789fi # as_fn_arith
10790
10791
10792if expr a : '\(a\)' >/dev/null 2>&1 &&
10793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bae7f79e
ILT
10794 as_expr=expr
10795else
10796 as_expr=false
10797fi
10798
81ecdfbb 10799if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bae7f79e
ILT
10800 as_basename=basename
10801else
10802 as_basename=false
10803fi
10804
81ecdfbb
RW
10805if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10806 as_dirname=dirname
10807else
10808 as_dirname=false
10809fi
bae7f79e 10810
81ecdfbb 10811as_me=`$as_basename -- "$0" ||
bae7f79e
ILT
10812$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10813 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
10814 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10815$as_echo X/"$0" |
10816 sed '/^.*\/\([^/][^/]*\)\/*$/{
10817 s//\1/
10818 q
10819 }
10820 /^X\/\(\/\/\)$/{
10821 s//\1/
10822 q
10823 }
10824 /^X\/\(\/\).*/{
10825 s//\1/
10826 q
10827 }
10828 s/.*/./; q'`
bae7f79e 10829
bae7f79e
ILT
10830# Avoid depending upon Character Ranges.
10831as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10832as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10833as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10834as_cr_digits='0123456789'
10835as_cr_alnum=$as_cr_Letters$as_cr_digits
10836
81ecdfbb
RW
10837ECHO_C= ECHO_N= ECHO_T=
10838case `echo -n x` in #(((((
10839-n*)
10840 case `echo 'xy\c'` in
10841 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10842 xy) ECHO_C='\c';;
10843 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10844 ECHO_T=' ';;
10845 esac;;
10846*)
10847 ECHO_N='-n';;
bae7f79e
ILT
10848esac
10849
81ecdfbb
RW
10850rm -f conf$$ conf$$.exe conf$$.file
10851if test -d conf$$.dir; then
10852 rm -f conf$$.dir/conf$$.file
bae7f79e 10853else
81ecdfbb
RW
10854 rm -f conf$$.dir
10855 mkdir conf$$.dir 2>/dev/null
bae7f79e 10856fi
81ecdfbb
RW
10857if (echo >conf$$.file) 2>/dev/null; then
10858 if ln -s conf$$.file conf$$ 2>/dev/null; then
bae7f79e 10859 as_ln_s='ln -s'
81ecdfbb
RW
10860 # ... but there are two gotchas:
10861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 10863 # In both cases, we have to default to `cp -pR'.
81ecdfbb 10864 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 10865 as_ln_s='cp -pR'
81ecdfbb
RW
10866 elif ln conf$$.file conf$$ 2>/dev/null; then
10867 as_ln_s=ln
10868 else
d0ac1c44 10869 as_ln_s='cp -pR'
bae7f79e 10870 fi
bae7f79e 10871else
d0ac1c44 10872 as_ln_s='cp -pR'
bae7f79e 10873fi
81ecdfbb
RW
10874rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10875rmdir conf$$.dir 2>/dev/null
10876
10877
10878# as_fn_mkdir_p
10879# -------------
10880# Create "$as_dir" as a directory, including parents if necessary.
10881as_fn_mkdir_p ()
10882{
10883
10884 case $as_dir in #(
10885 -*) as_dir=./$as_dir;;
10886 esac
10887 test -d "$as_dir" || eval $as_mkdir_p || {
10888 as_dirs=
10889 while :; do
10890 case $as_dir in #(
10891 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10892 *) as_qdir=$as_dir;;
10893 esac
10894 as_dirs="'$as_qdir' $as_dirs"
10895 as_dir=`$as_dirname -- "$as_dir" ||
10896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10897 X"$as_dir" : 'X\(//\)[^/]' \| \
10898 X"$as_dir" : 'X\(//\)$' \| \
10899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10900$as_echo X"$as_dir" |
10901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10902 s//\1/
10903 q
10904 }
10905 /^X\(\/\/\)[^/].*/{
10906 s//\1/
10907 q
10908 }
10909 /^X\(\/\/\)$/{
10910 s//\1/
10911 q
10912 }
10913 /^X\(\/\).*/{
10914 s//\1/
10915 q
10916 }
10917 s/.*/./; q'`
10918 test -d "$as_dir" && break
10919 done
10920 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 10921 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 10922
bae7f79e 10923
81ecdfbb 10924} # as_fn_mkdir_p
bae7f79e 10925if mkdir -p . 2>/dev/null; then
81ecdfbb 10926 as_mkdir_p='mkdir -p "$as_dir"'
bae7f79e
ILT
10927else
10928 test -d ./-p && rmdir ./-p
10929 as_mkdir_p=false
10930fi
10931
d0ac1c44
SM
10932
10933# as_fn_executable_p FILE
10934# -----------------------
10935# Test if FILE is an executable regular file.
10936as_fn_executable_p ()
10937{
10938 test -f "$1" && test -x "$1"
10939} # as_fn_executable_p
10940as_test_x='test -x'
10941as_executable_p=as_fn_executable_p
bae7f79e
ILT
10942
10943# Sed expression to map a string onto a valid CPP name.
10944as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10945
10946# Sed expression to map a string onto a valid variable name.
10947as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10948
10949
bae7f79e 10950exec 6>&1
81ecdfbb
RW
10951## ----------------------------------- ##
10952## Main body of $CONFIG_STATUS script. ##
10953## ----------------------------------- ##
10954_ASEOF
10955test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
bae7f79e 10956
81ecdfbb
RW
10957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10958# Save the log message, to keep $0 and so on meaningful, and to
bae7f79e 10959# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
10960# values after options handling.
10961ac_log="
8486ee48 10962This file was extended by gold $as_me 0.1, which was
d0ac1c44 10963generated by GNU Autoconf 2.69. Invocation command line was
bae7f79e
ILT
10964
10965 CONFIG_FILES = $CONFIG_FILES
10966 CONFIG_HEADERS = $CONFIG_HEADERS
10967 CONFIG_LINKS = $CONFIG_LINKS
10968 CONFIG_COMMANDS = $CONFIG_COMMANDS
10969 $ $0 $@
10970
81ecdfbb
RW
10971on `(hostname || uname -n) 2>/dev/null | sed 1q`
10972"
10973
bae7f79e
ILT
10974_ACEOF
10975
81ecdfbb
RW
10976case $ac_config_files in *"
10977"*) set x $ac_config_files; shift; ac_config_files=$*;;
10978esac
bae7f79e 10979
81ecdfbb
RW
10980case $ac_config_headers in *"
10981"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10982esac
bae7f79e 10983
bae7f79e 10984
81ecdfbb
RW
10985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10986# Files that config.status was made for.
10987config_files="$ac_config_files"
10988config_headers="$ac_config_headers"
10989config_commands="$ac_config_commands"
bae7f79e 10990
81ecdfbb 10991_ACEOF
bae7f79e 10992
81ecdfbb 10993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e 10994ac_cs_usage="\
81ecdfbb
RW
10995\`$as_me' instantiates files and other configuration actions
10996from templates according to the current configuration. Unless the files
10997and actions are specified as TAGs, all are instantiated by default.
bae7f79e 10998
81ecdfbb 10999Usage: $0 [OPTION]... [TAG]...
bae7f79e
ILT
11000
11001 -h, --help print this help, then exit
81ecdfbb 11002 -V, --version print version number and configuration settings, then exit
d0ac1c44 11003 --config print configuration, then exit
81ecdfbb
RW
11004 -q, --quiet, --silent
11005 do not print progress messages
bae7f79e
ILT
11006 -d, --debug don't remove temporary files
11007 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
11008 --file=FILE[:TEMPLATE]
11009 instantiate the configuration file FILE
11010 --header=FILE[:TEMPLATE]
11011 instantiate the configuration header FILE
bae7f79e
ILT
11012
11013Configuration files:
11014$config_files
11015
11016Configuration headers:
11017$config_headers
11018
11019Configuration commands:
11020$config_commands
11021
81ecdfbb 11022Report bugs to the package provider."
bae7f79e 11023
81ecdfbb
RW
11024_ACEOF
11025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 11026ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
bae7f79e 11027ac_cs_version="\\
8486ee48 11028gold config.status 0.1
d0ac1c44
SM
11029configured by $0, generated by GNU Autoconf 2.69,
11030 with options \\"\$ac_cs_config\\"
bae7f79e 11031
d0ac1c44 11032Copyright (C) 2012 Free Software Foundation, Inc.
bae7f79e
ILT
11033This config.status script is free software; the Free Software Foundation
11034gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
11035
11036ac_pwd='$ac_pwd'
11037srcdir='$srcdir'
11038INSTALL='$INSTALL'
11039MKDIR_P='$MKDIR_P'
11040AWK='$AWK'
11041test -n "\$AWK" || AWK=awk
bae7f79e
ILT
11042_ACEOF
11043
81ecdfbb
RW
11044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11045# The default lists apply if the user does not specify any file.
bae7f79e
ILT
11046ac_need_defaults=:
11047while test $# != 0
11048do
11049 case $1 in
d0ac1c44 11050 --*=?*)
81ecdfbb
RW
11051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11052 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bae7f79e
ILT
11053 ac_shift=:
11054 ;;
d0ac1c44
SM
11055 --*=)
11056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11057 ac_optarg=
11058 ac_shift=:
11059 ;;
81ecdfbb 11060 *)
bae7f79e
ILT
11061 ac_option=$1
11062 ac_optarg=$2
11063 ac_shift=shift
11064 ;;
bae7f79e
ILT
11065 esac
11066
11067 case $ac_option in
11068 # Handling of the options.
bae7f79e
ILT
11069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11070 ac_cs_recheck=: ;;
81ecdfbb
RW
11071 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11072 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
11073 --config | --confi | --conf | --con | --co | --c )
11074 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 11075 --debug | --debu | --deb | --de | --d | -d )
bae7f79e
ILT
11076 debug=: ;;
11077 --file | --fil | --fi | --f )
11078 $ac_shift
81ecdfbb
RW
11079 case $ac_optarg in
11080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 11081 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
11082 esac
11083 as_fn_append CONFIG_FILES " '$ac_optarg'"
bae7f79e
ILT
11084 ac_need_defaults=false;;
11085 --header | --heade | --head | --hea )
11086 $ac_shift
81ecdfbb
RW
11087 case $ac_optarg in
11088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11089 esac
11090 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bae7f79e 11091 ac_need_defaults=false;;
81ecdfbb
RW
11092 --he | --h)
11093 # Conflict between --help and --header
d0ac1c44 11094 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
11095Try \`$0 --help' for more information.";;
11096 --help | --hel | -h )
11097 $as_echo "$ac_cs_usage"; exit ;;
bae7f79e
ILT
11098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11099 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11100 ac_cs_silent=: ;;
11101
11102 # This is an error.
d0ac1c44 11103 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 11104Try \`$0 --help' for more information." ;;
bae7f79e 11105
81ecdfbb
RW
11106 *) as_fn_append ac_config_targets " $1"
11107 ac_need_defaults=false ;;
bae7f79e
ILT
11108
11109 esac
11110 shift
11111done
11112
11113ac_configure_extra_args=
11114
11115if $ac_cs_silent; then
11116 exec 6>/dev/null
11117 ac_configure_extra_args="$ac_configure_extra_args --silent"
11118fi
11119
11120_ACEOF
81ecdfbb 11121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 11122if \$ac_cs_recheck; then
d0ac1c44 11123 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
11124 shift
11125 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11126 CONFIG_SHELL='$SHELL'
11127 export CONFIG_SHELL
11128 exec "\$@"
bae7f79e
ILT
11129fi
11130
11131_ACEOF
81ecdfbb
RW
11132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11133exec 5>>config.log
11134{
11135 echo
11136 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11137## Running $as_me. ##
11138_ASBOX
11139 $as_echo "$ac_log"
11140} >&5
bae7f79e 11141
81ecdfbb
RW
11142_ACEOF
11143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 11144#
81ecdfbb 11145# INIT-COMMANDS
bae7f79e 11146#
bae7f79e
ILT
11147AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11148# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11149 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11150 # from automake.
11151 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11152 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11153 LINGUAS="${LINGUAS-%UNSET%}"
11154
11155
11156_ACEOF
11157
81ecdfbb 11158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e 11159
81ecdfbb 11160# Handling of arguments.
bae7f79e
ILT
11161for ac_config_target in $ac_config_targets
11162do
81ecdfbb
RW
11163 case $ac_config_target in
11164 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11165 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11166 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11167 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11168 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11169 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11170
d0ac1c44 11171 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
bae7f79e
ILT
11172 esac
11173done
11174
81ecdfbb 11175
bae7f79e
ILT
11176# If the user did not use the arguments to specify the items to instantiate,
11177# then the envvar interface is used. Set only those that are not.
11178# We use the long form for the default assignment because of an extremely
11179# bizarre bug on SunOS 4.1.3.
11180if $ac_need_defaults; then
11181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11183 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11184fi
11185
11186# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 11187# simply because there is no reason against having it here, and in addition,
bae7f79e 11188# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
11189# Hook for its removal unless debugging.
11190# Note that there is a small window in which the directory will not be cleaned:
11191# after its creation but before its name has been assigned to `$tmp'.
bae7f79e
ILT
11192$debug ||
11193{
d0ac1c44 11194 tmp= ac_tmp=
81ecdfbb 11195 trap 'exit_status=$?
d0ac1c44
SM
11196 : "${ac_tmp:=$tmp}"
11197 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
11198' 0
11199 trap 'as_fn_exit 1' 1 2 13 15
bae7f79e 11200}
bae7f79e
ILT
11201# Create a (secure) tmp directory for tmp files.
11202
11203{
81ecdfbb 11204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 11205 test -d "$tmp"
bae7f79e
ILT
11206} ||
11207{
81ecdfbb
RW
11208 tmp=./conf$$-$RANDOM
11209 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
11210} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11211ac_tmp=$tmp
81ecdfbb
RW
11212
11213# Set up the scripts for CONFIG_FILES section.
11214# No need to generate them if there are no CONFIG_FILES.
11215# This happens for instance with `./config.status config.h'.
11216if test -n "$CONFIG_FILES"; then
11217
11218
11219ac_cr=`echo X | tr X '\015'`
11220# On cygwin, bash can eat \r inside `` if the user requested igncr.
11221# But we know of no other shell where ac_cr would be empty at this
11222# point, so we can use a bashism as a fallback.
11223if test "x$ac_cr" = x; then
11224 eval ac_cr=\$\'\\r\'
11225fi
11226ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11227if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 11228 ac_cs_awk_cr='\\r'
81ecdfbb
RW
11229else
11230 ac_cs_awk_cr=$ac_cr
11231fi
11232
d0ac1c44 11233echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
11234_ACEOF
11235
11236
11237{
11238 echo "cat >conf$$subs.awk <<_ACEOF" &&
11239 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11240 echo "_ACEOF"
11241} >conf$$subs.sh ||
d0ac1c44
SM
11242 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11243ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
11244ac_delim='%!_!# '
11245for ac_last_try in false false false false false :; do
11246 . ./conf$$subs.sh ||
d0ac1c44 11247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
11248
11249 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11250 if test $ac_delim_n = $ac_delim_num; then
11251 break
11252 elif $ac_last_try; then
d0ac1c44 11253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
11254 else
11255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11256 fi
11257done
11258rm -f conf$$subs.sh
11259
11260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 11261cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
11262_ACEOF
11263sed -n '
11264h
11265s/^/S["/; s/!.*/"]=/
11266p
11267g
11268s/^[^!]*!//
11269:repl
11270t repl
11271s/'"$ac_delim"'$//
11272t delim
11273:nl
11274h
d0ac1c44 11275s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
11276t more1
11277s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11278p
11279n
11280b repl
11281:more1
11282s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11283p
11284g
11285s/.\{148\}//
11286t nl
11287:delim
11288h
d0ac1c44 11289s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
11290t more2
11291s/["\\]/\\&/g; s/^/"/; s/$/"/
11292p
11293b
11294:more2
11295s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11296p
11297g
11298s/.\{148\}//
11299t delim
11300' <conf$$subs.awk | sed '
11301/^[^""]/{
11302 N
11303 s/\n//
11304}
11305' >>$CONFIG_STATUS || ac_write_fail=1
11306rm -f conf$$subs.awk
11307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11308_ACAWK
d0ac1c44 11309cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
11310 for (key in S) S_is_set[key] = 1
11311 FS = "\a"
11312
11313}
bae7f79e 11314{
81ecdfbb
RW
11315 line = $ 0
11316 nfields = split(line, field, "@")
11317 substed = 0
11318 len = length(field[1])
11319 for (i = 2; i < nfields; i++) {
11320 key = field[i]
11321 keylen = length(key)
11322 if (S_is_set[key]) {
11323 value = S[key]
11324 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11325 len += length(value) + length(field[++i])
11326 substed = 1
11327 } else
11328 len += 1 + keylen
11329 }
11330
11331 print line
bae7f79e
ILT
11332}
11333
81ecdfbb
RW
11334_ACAWK
11335_ACEOF
11336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11337if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11338 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11339else
11340 cat
d0ac1c44
SM
11341fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11342 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
bae7f79e
ILT
11343_ACEOF
11344
d0ac1c44
SM
11345# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11346# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
11347# trailing colons and then remove the whole line if VPATH becomes empty
11348# (actually we leave an empty line to preserve line numbers).
11349if test "x$srcdir" = x.; then
d0ac1c44
SM
11350 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11351h
11352s///
11353s/^/:/
11354s/[ ]*$/:/
11355s/:\$(srcdir):/:/g
11356s/:\${srcdir}:/:/g
11357s/:@srcdir@:/:/g
11358s/^:*//
81ecdfbb 11359s/:*$//
d0ac1c44
SM
11360x
11361s/\(=[ ]*\).*/\1/
11362G
11363s/\n//
81ecdfbb
RW
11364s/^[^=]*=[ ]*$//
11365}'
11366fi
bae7f79e 11367
81ecdfbb
RW
11368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11369fi # test -n "$CONFIG_FILES"
bae7f79e 11370
81ecdfbb
RW
11371# Set up the scripts for CONFIG_HEADERS section.
11372# No need to generate them if there are no CONFIG_HEADERS.
11373# This happens for instance with `./config.status Makefile'.
11374if test -n "$CONFIG_HEADERS"; then
d0ac1c44 11375cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 11376BEGIN {
bae7f79e
ILT
11377_ACEOF
11378
81ecdfbb
RW
11379# Transform confdefs.h into an awk script `defines.awk', embedded as
11380# here-document in config.status, that substitutes the proper values into
11381# config.h.in to produce config.h.
11382
11383# Create a delimiter string that does not exist in confdefs.h, to ease
11384# handling of long lines.
11385ac_delim='%!_!# '
11386for ac_last_try in false false :; do
d0ac1c44
SM
11387 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11388 if test -z "$ac_tt"; then
81ecdfbb
RW
11389 break
11390 elif $ac_last_try; then
d0ac1c44 11391 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
11392 else
11393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
bae7f79e 11394 fi
81ecdfbb 11395done
bae7f79e 11396
81ecdfbb
RW
11397# For the awk script, D is an array of macro values keyed by name,
11398# likewise P contains macro parameters if any. Preserve backslash
11399# newline sequences.
11400
11401ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11402sed -n '
11403s/.\{148\}/&'"$ac_delim"'/g
11404t rset
11405:rset
11406s/^[ ]*#[ ]*define[ ][ ]*/ /
11407t def
11408d
11409:def
11410s/\\$//
11411t bsnl
11412s/["\\]/\\&/g
11413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11414D["\1"]=" \3"/p
11415s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11416d
11417:bsnl
11418s/["\\]/\\&/g
11419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11420D["\1"]=" \3\\\\\\n"\\/p
11421t cont
11422s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11423t cont
11424d
11425:cont
11426n
11427s/.\{148\}/&'"$ac_delim"'/g
11428t clear
11429:clear
11430s/\\$//
11431t bsnlc
11432s/["\\]/\\&/g; s/^/"/; s/$/"/p
11433d
11434:bsnlc
11435s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11436b cont
11437' <confdefs.h | sed '
11438s/'"$ac_delim"'/"\\\
11439"/g' >>$CONFIG_STATUS || ac_write_fail=1
11440
11441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11442 for (key in D) D_is_set[key] = 1
11443 FS = "\a"
11444}
11445/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11446 line = \$ 0
11447 split(line, arg, " ")
11448 if (arg[1] == "#") {
11449 defundef = arg[2]
11450 mac1 = arg[3]
11451 } else {
11452 defundef = substr(arg[1], 2)
11453 mac1 = arg[2]
11454 }
11455 split(mac1, mac2, "(") #)
11456 macro = mac2[1]
11457 prefix = substr(line, 1, index(line, defundef) - 1)
11458 if (D_is_set[macro]) {
11459 # Preserve the white space surrounding the "#".
11460 print prefix "define", macro P[macro] D[macro]
11461 next
11462 } else {
11463 # Replace #undef with comments. This is necessary, for example,
11464 # in the case of _POSIX_SOURCE, which is predefined and required
11465 # on some systems where configure will not decide to define it.
11466 if (defundef == "undef") {
11467 print "/*", prefix defundef, macro, "*/"
11468 next
11469 }
11470 }
11471}
11472{ print }
11473_ACAWK
bae7f79e 11474_ACEOF
81ecdfbb 11475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 11476 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
11477fi # test -n "$CONFIG_HEADERS"
11478
11479
11480eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11481shift
11482for ac_tag
11483do
11484 case $ac_tag in
11485 :[FHLC]) ac_mode=$ac_tag; continue;;
11486 esac
11487 case $ac_mode$ac_tag in
11488 :[FHL]*:*);;
d0ac1c44 11489 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
11490 :[FH]-) ac_tag=-:-;;
11491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11492 esac
11493 ac_save_IFS=$IFS
11494 IFS=:
11495 set x $ac_tag
11496 IFS=$ac_save_IFS
11497 shift
11498 ac_file=$1
11499 shift
11500
11501 case $ac_mode in
11502 :L) ac_source=$1;;
11503 :[FH])
11504 ac_file_inputs=
11505 for ac_f
11506 do
11507 case $ac_f in
d0ac1c44 11508 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
11509 *) # Look for the file first in the build tree, then in the source tree
11510 # (if the path is not absolute). The absolute path cannot be DOS-style,
11511 # because $ac_f cannot contain `:'.
11512 test -f "$ac_f" ||
11513 case $ac_f in
11514 [\\/$]*) false;;
11515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11516 esac ||
d0ac1c44 11517 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
11518 esac
11519 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11520 as_fn_append ac_file_inputs " '$ac_f'"
11521 done
11522
11523 # Let's still pretend it is `configure' which instantiates (i.e., don't
11524 # use $as_me), people would be surprised to read:
11525 # /* config.h. Generated by config.status. */
11526 configure_input='Generated from '`
11527 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11528 `' by configure.'
11529 if test x"$ac_file" != x-; then
11530 configure_input="$ac_file. $configure_input"
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11532$as_echo "$as_me: creating $ac_file" >&6;}
11533 fi
11534 # Neutralize special characters interpreted by sed in replacement strings.
11535 case $configure_input in #(
11536 *\&* | *\|* | *\\* )
11537 ac_sed_conf_input=`$as_echo "$configure_input" |
11538 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11539 *) ac_sed_conf_input=$configure_input;;
11540 esac
11541
11542 case $ac_tag in
d0ac1c44
SM
11543 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
11545 esac
11546 ;;
bae7f79e
ILT
11547 esac
11548
81ecdfbb 11549 ac_dir=`$as_dirname -- "$ac_file" ||
bae7f79e
ILT
11550$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11551 X"$ac_file" : 'X\(//\)[^/]' \| \
11552 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
11553 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11554$as_echo X"$ac_file" |
11555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11556 s//\1/
11557 q
11558 }
11559 /^X\(\/\/\)[^/].*/{
11560 s//\1/
11561 q
11562 }
11563 /^X\(\/\/\)$/{
11564 s//\1/
11565 q
11566 }
11567 /^X\(\/\).*/{
11568 s//\1/
11569 q
11570 }
11571 s/.*/./; q'`
11572 as_dir="$ac_dir"; as_fn_mkdir_p
bae7f79e
ILT
11573 ac_builddir=.
11574
81ecdfbb
RW
11575case "$ac_dir" in
11576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11577*)
11578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11579 # A ".." for each directory in $ac_dir_suffix.
11580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11581 case $ac_top_builddir_sub in
11582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11584 esac ;;
11585esac
11586ac_abs_top_builddir=$ac_pwd
11587ac_abs_builddir=$ac_pwd$ac_dir_suffix
11588# for backward compatibility:
11589ac_top_builddir=$ac_top_build_prefix
bae7f79e
ILT
11590
11591case $srcdir in
81ecdfbb 11592 .) # We are building in place.
bae7f79e 11593 ac_srcdir=.
81ecdfbb
RW
11594 ac_top_srcdir=$ac_top_builddir_sub
11595 ac_abs_top_srcdir=$ac_pwd ;;
11596 [\\/]* | ?:[\\/]* ) # Absolute name.
bae7f79e 11597 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
11598 ac_top_srcdir=$srcdir
11599 ac_abs_top_srcdir=$srcdir ;;
11600 *) # Relative name.
11601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11602 ac_top_srcdir=$ac_top_build_prefix$srcdir
11603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bae7f79e 11604esac
81ecdfbb 11605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bae7f79e 11606
bae7f79e 11607
81ecdfbb
RW
11608 case $ac_mode in
11609 :F)
11610 #
11611 # CONFIG_FILE
11612 #
bae7f79e
ILT
11613
11614 case $INSTALL in
11615 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 11616 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
bae7f79e 11617 esac
81ecdfbb
RW
11618 ac_MKDIR_P=$MKDIR_P
11619 case $MKDIR_P in
11620 [\\/$]* | ?:[\\/]* ) ;;
11621 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11622 esac
11623_ACEOF
bae7f79e 11624
81ecdfbb
RW
11625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11626# If the template does not know about datarootdir, expand it.
11627# FIXME: This hack should be removed a few years after 2.60.
11628ac_datarootdir_hack=; ac_datarootdir_seen=
11629ac_sed_dataroot='
11630/datarootdir/ {
11631 p
11632 q
11633}
11634/@datadir@/p
11635/@docdir@/p
11636/@infodir@/p
11637/@localedir@/p
11638/@mandir@/p'
11639case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11640*datarootdir*) ac_datarootdir_seen=yes;;
11641*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11643$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11644_ACEOF
11645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11646 ac_datarootdir_hack='
11647 s&@datadir@&$datadir&g
11648 s&@docdir@&$docdir&g
11649 s&@infodir@&$infodir&g
11650 s&@localedir@&$localedir&g
11651 s&@mandir@&$mandir&g
11652 s&\\\${datarootdir}&$datarootdir&g' ;;
11653esac
bae7f79e 11654_ACEOF
81ecdfbb
RW
11655
11656# Neutralize VPATH when `$srcdir' = `.'.
11657# Shell code in configure.ac might set extrasub.
11658# FIXME: do we really want to maintain this feature?
11659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11660ac_sed_extra="$ac_vpsub
bae7f79e
ILT
11661$extrasub
11662_ACEOF
81ecdfbb 11663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e
ILT
11664:t
11665/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
11666s|@configure_input@|$ac_sed_conf_input|;t t
11667s&@top_builddir@&$ac_top_builddir_sub&;t t
11668s&@top_build_prefix@&$ac_top_build_prefix&;t t
11669s&@srcdir@&$ac_srcdir&;t t
11670s&@abs_srcdir@&$ac_abs_srcdir&;t t
11671s&@top_srcdir@&$ac_top_srcdir&;t t
11672s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11673s&@builddir@&$ac_builddir&;t t
11674s&@abs_builddir@&$ac_abs_builddir&;t t
11675s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11676s&@INSTALL@&$ac_INSTALL&;t t
11677s&@MKDIR_P@&$ac_MKDIR_P&;t t
11678$ac_datarootdir_hack
11679"
d0ac1c44
SM
11680eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11681 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
11682
11683test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
11684 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11685 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11686 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 11688which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 11689$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 11690which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 11691
d0ac1c44 11692 rm -f "$ac_tmp/stdin"
bae7f79e 11693 case $ac_file in
d0ac1c44
SM
11694 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11695 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 11696 esac \
d0ac1c44 11697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
11698 ;;
11699 :H)
11700 #
11701 # CONFIG_HEADER
11702 #
bae7f79e 11703 if test x"$ac_file" != x-; then
81ecdfbb
RW
11704 {
11705 $as_echo "/* $configure_input */" \
d0ac1c44
SM
11706 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11707 } >"$ac_tmp/config.h" \
11708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11709 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11711$as_echo "$as_me: $ac_file is unchanged" >&6;}
bae7f79e 11712 else
81ecdfbb 11713 rm -f "$ac_file"
d0ac1c44
SM
11714 mv "$ac_tmp/config.h" "$ac_file" \
11715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
bae7f79e
ILT
11716 fi
11717 else
81ecdfbb 11718 $as_echo "/* $configure_input */" \
d0ac1c44
SM
11719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11720 || as_fn_error $? "could not create -" "$LINENO" 5
bae7f79e 11721 fi
81ecdfbb
RW
11722# Compute "$ac_file"'s index in $config_headers.
11723_am_arg="$ac_file"
bae7f79e
ILT
11724_am_stamp_count=1
11725for _am_header in $config_headers :; do
11726 case $_am_header in
81ecdfbb 11727 $_am_arg | $_am_arg:* )
bae7f79e
ILT
11728 break ;;
11729 * )
11730 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11731 esac
11732done
81ecdfbb
RW
11733echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11734$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11735 X"$_am_arg" : 'X\(//\)[^/]' \| \
11736 X"$_am_arg" : 'X\(//\)$' \| \
11737 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11738$as_echo X"$_am_arg" |
11739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11740 s//\1/
11741 q
11742 }
11743 /^X\(\/\/\)[^/].*/{
11744 s//\1/
11745 q
11746 }
11747 /^X\(\/\/\)$/{
11748 s//\1/
11749 q
11750 }
11751 /^X\(\/\).*/{
11752 s//\1/
11753 q
11754 }
11755 s/.*/./; q'`/stamp-h$_am_stamp_count
11756 ;;
bae7f79e 11757
81ecdfbb
RW
11758 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11759$as_echo "$as_me: executing $ac_file commands" >&6;}
11760 ;;
11761 esac
bae7f79e
ILT
11762
11763
81ecdfbb
RW
11764 case $ac_file$ac_mode in
11765 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 11766 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
11767 # are listed without --file. Let's play safe and only enable the eval
11768 # if we detect the quoting.
11769 case $CONFIG_FILES in
11770 *\'*) eval set x "$CONFIG_FILES" ;;
11771 *) set x $CONFIG_FILES ;;
11772 esac
11773 shift
11774 for mf
11775 do
11776 # Strip MF so we end up with the name of the file.
11777 mf=`echo "$mf" | sed -e 's/:.*$//'`
11778 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 11779 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
11780 # some people rename them; so instead we look at the file content.
11781 # Grep'ing the first line is not enough: some people post-process
11782 # each Makefile.in and add a new line on top of each file to say so.
11783 # Grep'ing the whole file is not good either: AIX grep has a line
11784 # limit of 2048, but all sed's we know have understand at least 4000.
11785 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11786 dirpart=`$as_dirname -- "$mf" ||
bae7f79e
ILT
11787$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11788 X"$mf" : 'X\(//\)[^/]' \| \
11789 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
11790 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11791$as_echo X"$mf" |
11792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11793 s//\1/
11794 q
11795 }
11796 /^X\(\/\/\)[^/].*/{
11797 s//\1/
11798 q
11799 }
11800 /^X\(\/\/\)$/{
11801 s//\1/
11802 q
11803 }
11804 /^X\(\/\).*/{
11805 s//\1/
11806 q
11807 }
11808 s/.*/./; q'`
11809 else
11810 continue
11811 fi
11812 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 11813 # from the Makefile without running 'make'.
81ecdfbb
RW
11814 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11815 test -z "$DEPDIR" && continue
11816 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 11817 test -z "$am__include" && continue
81ecdfbb 11818 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
11819 # Find all dependency output files, they are included files with
11820 # $(DEPDIR) in their names. We invoke sed twice because it is the
11821 # simplest approach to changing $(DEPDIR) to its actual value in the
11822 # expansion.
11823 for file in `sed -n "
11824 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 11825 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
11826 # Make sure the directory exists.
11827 test -f "$dirpart/$file" && continue
11828 fdir=`$as_dirname -- "$file" ||
bae7f79e
ILT
11829$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11830 X"$file" : 'X\(//\)[^/]' \| \
11831 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
11832 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11833$as_echo X"$file" |
11834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11835 s//\1/
11836 q
11837 }
11838 /^X\(\/\/\)[^/].*/{
11839 s//\1/
11840 q
11841 }
11842 /^X\(\/\/\)$/{
11843 s//\1/
11844 q
11845 }
11846 /^X\(\/\).*/{
11847 s//\1/
11848 q
11849 }
11850 s/.*/./; q'`
11851 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11852 # echo "creating $dirpart/$file"
11853 echo '# dummy' > "$dirpart/$file"
bae7f79e 11854 done
bae7f79e 11855 done
81ecdfbb 11856}
bae7f79e 11857 ;;
81ecdfbb 11858 "default-1":C)
bae7f79e
ILT
11859 for ac_file in $CONFIG_FILES; do
11860 # Support "outfile[:infile[:infile...]]"
11861 case "$ac_file" in
11862 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11863 esac
11864 # PO directories have a Makefile.in generated from Makefile.in.in.
11865 case "$ac_file" in */Makefile.in)
11866 # Adjust a relative srcdir.
11867 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
c7791212 11868 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
bae7f79e
ILT
11869 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11870 # In autoconf-2.13 it is called $ac_given_srcdir.
11871 # In autoconf-2.50 it is called $srcdir.
11872 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11873 case "$ac_given_srcdir" in
11874 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11875 /*) top_srcdir="$ac_given_srcdir" ;;
11876 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11877 esac
11878 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11879 rm -f "$ac_dir/POTFILES"
11880 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11881 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11882 POMAKEFILEDEPS="POTFILES.in"
11883 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11884 # on $ac_dir but don't depend on user-specified configuration
11885 # parameters.
11886 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11887 # The LINGUAS file contains the set of available languages.
11888 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 11889 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
11890 fi
11891 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11892 # Hide the ALL_LINGUAS assigment from automake.
11893 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11894 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11895 else
37a42ee9 11896 # The set of available languages was given in configure.ac.
bae7f79e
ILT
11897 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11898 fi
11899 case "$ac_given_srcdir" in
11900 .) srcdirpre= ;;
11901 *) srcdirpre='$(srcdir)/' ;;
11902 esac
11903 POFILES=
11904 GMOFILES=
11905 UPDATEPOFILES=
11906 DUMMYPOFILES=
11907 for lang in $ALL_LINGUAS; do
11908 POFILES="$POFILES $srcdirpre$lang.po"
11909 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11910 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11911 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11912 done
11913 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11914 # environment variable.
11915 INST_LINGUAS=
11916 if test -n "$ALL_LINGUAS"; then
11917 for presentlang in $ALL_LINGUAS; do
11918 useit=no
11919 if test "%UNSET%" != "$LINGUAS"; then
11920 desiredlanguages="$LINGUAS"
11921 else
11922 desiredlanguages="$ALL_LINGUAS"
11923 fi
11924 for desiredlang in $desiredlanguages; do
11925 # Use the presentlang catalog if desiredlang is
11926 # a. equal to presentlang, or
11927 # b. a variant of presentlang (because in this case,
11928 # presentlang can be used as a fallback for messages
11929 # which are not translated in the desiredlang catalog).
11930 case "$desiredlang" in
11931 "$presentlang"*) useit=yes;;
11932 esac
11933 done
11934 if test $useit = yes; then
11935 INST_LINGUAS="$INST_LINGUAS $presentlang"
11936 fi
11937 done
11938 fi
11939 CATALOGS=
11940 if test -n "$INST_LINGUAS"; then
11941 for lang in $INST_LINGUAS; do
11942 CATALOGS="$CATALOGS $lang.gmo"
11943 done
11944 fi
11945 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11946 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"
11947 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11948 if test -f "$f"; then
11949 case "$f" in
11950 *.orig | *.bak | *~) ;;
11951 *) cat "$f" >> "$ac_dir/Makefile" ;;
11952 esac
11953 fi
11954 done
11955 fi
11956 ;;
11957 esac
11958 done ;;
81ecdfbb 11959
bae7f79e 11960 esac
81ecdfbb 11961done # for ac_tag
bae7f79e 11962
bae7f79e 11963
81ecdfbb 11964as_fn_exit 0
bae7f79e 11965_ACEOF
bae7f79e
ILT
11966ac_clean_files=$ac_clean_files_save
11967
81ecdfbb 11968test $ac_write_fail = 0 ||
d0ac1c44 11969 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 11970
bae7f79e
ILT
11971
11972# configure is writing to config.log, and then calls config.status.
11973# config.status does its own redirection, appending to config.log.
11974# Unfortunately, on DOS this fails, as config.log is still kept open
11975# by configure, so config.status won't be able to write to it; its
11976# output is simply discarded. So we exec the FD to /dev/null,
11977# effectively closing config.log, so it can be properly (re)opened and
11978# appended to by config.status. When coming back to configure, we
11979# need to make the FD available again.
11980if test "$no_create" != yes; then
11981 ac_cs_success=:
11982 ac_config_status_args=
11983 test "$silent" = yes &&
11984 ac_config_status_args="$ac_config_status_args --quiet"
11985 exec 5>/dev/null
11986 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11987 exec 5>>config.log
11988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11989 # would make configure fail if this is the last instruction.
d0ac1c44 11990 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
11991fi
11992if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11994$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bae7f79e
ILT
11995fi
11996
This page took 1.363516 seconds and 4 git commands to generate.