make xtensa_section_rename () take const char *
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
d8bd95ef 3# Generated by GNU Autoconf 2.64 for gas 2.26.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
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## -------------------- ##
13b2be9c 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 :
13b2be9c
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
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
13b2be9c
DJ
31fi
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 }
13b2be9c
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
13b2be9c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13b2be9c 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
13b2be9c 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
13b2be9c 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
13b2be9c 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
13b2be9c 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
13b2be9c 418
13b2be9c
DJ
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
13b2be9c 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
13b2be9c 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
13b2be9c 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13b2be9c 444 t loop
81ecdfbb 445 s/-\n.*//
13b2be9c 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
13b2be9c
DJ
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
13b2be9c
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
13b2be9c
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
13b2be9c 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
13b2be9c 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
13b2be9c 491 fi
13b2be9c
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
13b2be9c
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
13b2be9c 500else
ab509236 501 test -d ./-p && rmdir ./-p
13b2be9c
DJ
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
13b2be9c
DJ
527
528# Sed expression to map a string onto a valid CPP name.
ab509236 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
530
531# Sed expression to map a string onto a valid variable name.
ab509236 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c 533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
13b2be9c
DJ
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
13b2be9c
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
13b2be9c 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
13b2be9c
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
13b2be9c
DJ
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='gas'
558PACKAGE_TARNAME='gas'
d8bd95ef
TG
559PACKAGE_VERSION='2.26.51'
560PACKAGE_STRING='gas 2.26.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
13b2be9c
DJ
563
564ac_unique_file="as.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
13b2be9c
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
13b2be9c
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
13b2be9c
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
13b2be9c
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
13b2be9c
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
13b2be9c
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
13b2be9c 592# include <inttypes.h>
13b2be9c 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
13b2be9c
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
0138187e 605zlibinc
543b7933 606zlibdir
81ecdfbb
RW
607LIBM
608ALLOCA
609GENINSRC_NEVER_FALSE
610GENINSRC_NEVER_TRUE
611MAINT
612MAINTAINER_MODE_FALSE
613MAINTAINER_MODE_TRUE
614MSGMERGE
615MSGFMT
616MKINSTALLDIRS
617CATOBJEXT
618GENCAT
619INSTOBJEXT
620DATADIRNAME
621CATALOGS
622POSUB
623GMSGFMT
624XGETTEXT
625INCINTL
626LIBINTL_DEP
627LIBINTL
628USE_NLS
629LEXLIB
630LEX_OUTPUT_ROOT
631LEX
632YFLAGS
633YACC
634OPCODES_LIB
635atof
636install_tooldir
637te_file
638obj_format
639target_cpu_type
640extra_objects
641cgen_cpu_prefix
642GDBINIT
643NO_WERROR
644WARN_CFLAGS
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
81ecdfbb
RW
650RANLIB
651AR
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659SED
660LIBTOOL
661EGREP
662GREP
663CPP
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703target_os
704target_vendor
705target_cpu
706target
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
13b2be9c 753ac_subst_files=''
81ecdfbb
RW
754ac_user_opts='
755enable_option_checking
756enable_dependency_tracking
81ecdfbb
RW
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_gnu_ld
762enable_libtool_lock
b879806f
AM
763enable_plugins
764enable_largefile
81ecdfbb
RW
765enable_targets
766enable_checking
6c3bc0f8 767enable_compressed_debug_sections
0cb4071e 768enable_x86_relax_relocations
b8871f35 769enable_elf_stt_common
81ecdfbb
RW
770enable_werror
771enable_build_warnings
772enable_nls
773enable_maintainer_mode
0138187e 774with_system_zlib
81ecdfbb
RW
775'
776 ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP
785YACC
786YFLAGS'
787
252b5132
RH
788
789# Initialize some variables set by options.
13b2be9c
DJ
790ac_init_help=
791ac_init_version=false
81ecdfbb
RW
792ac_unrecognized_opts=
793ac_unrecognized_sep=
252b5132
RH
794# The variables have the same names as the options, with
795# dashes changed to underlines.
13b2be9c 796cache_file=/dev/null
252b5132 797exec_prefix=NONE
252b5132 798no_create=
252b5132
RH
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
252b5132
RH
807verbose=
808x_includes=NONE
809x_libraries=NONE
13b2be9c
DJ
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 816# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
252b5132
RH
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
252b5132
RH
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
2e98a7bd 827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
252b5132 836
252b5132 837ac_prev=
81ecdfbb 838ac_dashdash=
252b5132
RH
839for ac_option
840do
252b5132
RH
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
81ecdfbb 843 eval $ac_prev=\$ac_option
252b5132
RH
844 ac_prev=
845 continue
846 fi
847
81ecdfbb
RW
848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
252b5132
RH
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
81ecdfbb
RW
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
252b5132
RH
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 862 bindir=$ac_optarg ;;
252b5132
RH
863
864 -build | --build | --buil | --bui | --bu)
13b2be9c 865 ac_prev=build_alias ;;
252b5132 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 867 build_alias=$ac_optarg ;;
252b5132
RH
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
252b5132 878
81ecdfbb 879 -datadir | --datadir | --datadi | --datad)
252b5132 880 ac_prev=datadir ;;
81ecdfbb 881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 882 datadir=$ac_optarg ;;
252b5132 883
81ecdfbb
RW
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
252b5132 891 -disable-* | --disable-*)
81ecdfbb 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 893 # Reject names that are not valid shell variable names.
81ecdfbb
RW
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
252b5132
RH
916
917 -enable-* | --enable-*)
81ecdfbb 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 919 # Reject names that are not valid shell variable names.
81ecdfbb
RW
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
252b5132 930 esac
81ecdfbb 931 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
13b2be9c 940 exec_prefix=$ac_optarg ;;
252b5132
RH
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
13b2be9c
DJ
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
252b5132
RH
952
953 -host | --host | --hos | --ho)
13b2be9c 954 ac_prev=host_alias ;;
252b5132 955 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 956 host_alias=$ac_optarg ;;
252b5132 957
81ecdfbb
RW
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
252b5132
RH
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 969 includedir=$ac_optarg ;;
252b5132
RH
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 974 infodir=$ac_optarg ;;
252b5132
RH
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 979 libdir=$ac_optarg ;;
252b5132
RH
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
13b2be9c 986 libexecdir=$ac_optarg ;;
252b5132 987
81ecdfbb
RW
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
252b5132 993 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 994 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 998 localstatedir=$ac_optarg ;;
252b5132
RH
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1003 mandir=$ac_optarg ;;
252b5132
RH
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1010 | --no-cr | --no-c | -n)
252b5132
RH
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1024 oldincludedir=$ac_optarg ;;
252b5132
RH
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1029 prefix=$ac_optarg ;;
252b5132
RH
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1036 program_prefix=$ac_optarg ;;
252b5132
RH
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1043 program_suffix=$ac_optarg ;;
252b5132
RH
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1060 program_transform_name=$ac_optarg ;;
252b5132 1061
81ecdfbb
RW
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
252b5132
RH
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
13b2be9c 1080 sbindir=$ac_optarg ;;
252b5132
RH
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
13b2be9c 1091 sharedstatedir=$ac_optarg ;;
252b5132
RH
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
13b2be9c 1096 site=$ac_optarg ;;
76bff705 1097
252b5132
RH
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1101 srcdir=$ac_optarg ;;
252b5132
RH
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1108 sysconfdir=$ac_optarg ;;
252b5132
RH
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1111 ac_prev=target_alias ;;
252b5132 1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1113 target_alias=$ac_optarg ;;
252b5132
RH
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
13b2be9c
DJ
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
252b5132
RH
1120
1121 -with-* | --with-*)
81ecdfbb 1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1123 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130"with_$ac_useropt"
1131"*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
252b5132 1134 esac
81ecdfbb 1135 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1136
1137 -without-* | --without-*)
81ecdfbb 1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1139 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
252b5132
RH
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1162 x_includes=$ac_optarg ;;
252b5132
RH
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1169 x_libraries=$ac_optarg ;;
252b5132 1170
81ecdfbb
RW
1171 -*) as_fn_error "unrecognized option: \`$ac_option'
1172Try \`$0 --help' for more information."
252b5132
RH
1173 ;;
1174
13b2be9c
DJ
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1183 export $ac_envvar ;;
1184
252b5132 1185 *)
13b2be9c 1186 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13b2be9c 1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
13b2be9c 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1198 as_fn_error "missing argument to $ac_option"
c8615825 1199fi
c8615825 1200
81ecdfbb
RW
1201if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1206 esac
81ecdfbb 1207fi
252b5132 1208
81ecdfbb
RW
1209# Check all directory arguments for consistency.
1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
252b5132 1214do
81ecdfbb
RW
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
13b2be9c 1223 case $ac_val in
81ecdfbb
RW
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1226 esac
81ecdfbb 1227 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1228done
1229
13b2be9c
DJ
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
81ecdfbb 1241 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13b2be9c
DJ
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
9b2b7d69 1247
13b2be9c
DJ
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
252b5132 1252
252b5132 1253
81ecdfbb
RW
1254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error "working directory cannot be determined"
1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error "pwd does not report name of working directory"
1260
1261
252b5132
RH
1262# Find the source files, if location was not specified.
1263if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
81ecdfbb
RW
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271$as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
252b5132 1289 srcdir=$ac_confdir
81ecdfbb 1290 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1291 srcdir=..
1292 fi
1293else
1294 ac_srcdir_defaulted=no
1295fi
81ecdfbb
RW
1296if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1299fi
1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1303 pwd)`
1304# When building in place, set srcdir=.
1305if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307fi
1308# Remove unnecessary trailing slashes from srcdir.
1309# Double slashes in file names in object file debugging info
1310# mess up M-x gdb in Emacs.
1311case $srcdir in
1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313esac
1314for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319done
d6d788bd 1320
13b2be9c
DJ
1321#
1322# Report the --help message.
1323#
1324if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
d8bd95ef 1328\`configure' configures gas 2.26.51 to adapt to many kinds of systems.
9b2b7d69 1329
13b2be9c 1330Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1331
13b2be9c
DJ
1332To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1334
13b2be9c 1335Defaults for the options are specified in brackets.
9b2b7d69 1336
13b2be9c
DJ
1337Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
13b2be9c
DJ
1348Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1350 [$ac_default_prefix]
13b2be9c 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1352 [PREFIX]
9b2b7d69 1353
13b2be9c
DJ
1354By default, \`make install' will install all the files in
1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357for instance \`--prefix=\$HOME'.
9b2b7d69 1358
13b2be9c 1359For better control, use the options below.
9b2b7d69 1360
13b2be9c 1361Fine tuning of the installation directories:
81ecdfbb
RW
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1376 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
81ecdfbb
RW
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1381_ACEOF
9b2b7d69 1382
13b2be9c 1383 cat <<\_ACEOF
9b2b7d69 1384
13b2be9c
DJ
1385Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1389
13b2be9c
DJ
1390System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394_ACEOF
9b2b7d69 1395fi
9b2b7d69 1396
13b2be9c 1397if test -n "$ac_init_help"; then
2e98a7bd 1398 case $ac_init_help in
d8bd95ef 1399 short | recursive ) echo "Configuration of gas 2.26.51:";;
2e98a7bd 1400 esac
13b2be9c 1401 cat <<\_ACEOF
9b2b7d69 1402
13b2be9c 1403Optional Features:
81ecdfbb 1404 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
13b2be9c 1413 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1414 --enable-plugins Enable support for plugins
1415 --disable-largefile omit support for large files
241a6c40 1416 --enable-targets alternative target configurations besides the primary
c43a438d 1417 --enable-checking enable run-time checks
4894d80b 1418 --enable-compressed-debug-sections={all,gas,none}
27ba7c94 1419 compress debug sections by default
0cb4071e
L
1420 --enable-x86-relax-relocations
1421 generate x86 relax relocations by default
b8871f35
L
1422 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1423 default
241a6c40
AM
1424 --enable-werror treat compile warnings as errors
1425 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1426 --disable-nls do not use Native Language Support
ab509236
L
1427 --enable-maintainer-mode enable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
9b2b7d69 1429
13b2be9c
DJ
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
0138187e 1436 --with-system-zlib use installed libz
9b2b7d69 1437
13b2be9c
DJ
1438Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
81ecdfbb
RW
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
13b2be9c 1446 CPP C preprocessor
81ecdfbb
RW
1447 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1448 the first program found out of: `bison -y', `byacc', `yacc'.
1449 YFLAGS The list of arguments that will be passed by default to $YACC.
1450 This script will default YFLAGS to the empty string to avoid a
1451 default value of `-d' given by some make applications.
13b2be9c
DJ
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
81ecdfbb 1456Report bugs to the package provider.
13b2be9c 1457_ACEOF
81ecdfbb 1458ac_status=$?
9b2b7d69 1459fi
9b2b7d69 1460
13b2be9c
DJ
1461if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
13b2be9c 1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
13b2be9c
DJ
1467 ac_builddir=.
1468
81ecdfbb
RW
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1484
13b2be9c 1485case $srcdir in
81ecdfbb 1486 .) # We are building in place.
13b2be9c 1487 ac_srcdir=.
81ecdfbb
RW
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1491 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1498esac
81ecdfbb
RW
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1509 else
81ecdfbb
RW
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1513 done
1514fi
6840198f 1515
81ecdfbb 1516test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1517if $ac_init_version; then
1518 cat <<\_ACEOF
d8bd95ef 1519gas configure 2.26.51
81ecdfbb 1520generated by GNU Autoconf 2.64
c8615825 1521
81ecdfbb 1522Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
81ecdfbb 1526 exit
13b2be9c 1527fi
c8615825 1528
81ecdfbb
RW
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
c8615825 1532
81ecdfbb
RW
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
13b2be9c 1537{
81ecdfbb
RW
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560else
1561 $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1563
81ecdfbb
RW
1564 ac_retval=1
1565fi
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 return $ac_retval
13b2be9c 1568
81ecdfbb 1569} # ac_fn_c_try_compile
13b2be9c 1570
81ecdfbb
RW
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_try_cpp LINENO
1618# ----------------------
1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } >/dev/null && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
1651
1652} # ac_fn_c_try_cpp
1653
1654# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1657# the include files in INCLUDES and setting the cache variable VAR
1658# accordingly.
1659ac_fn_c_check_header_mongrel ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664$as_echo_n "checking for $2... " >&6; }
1665if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1666 $as_echo_n "(cached) " >&6
1667fi
1668eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670$as_echo "$ac_res" >&6; }
1671else
1672 # Is the header compilable?
1673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1674$as_echo_n "checking $2 usability... " >&6; }
1675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h. */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681 ac_header_compiler=yes
1682else
1683 ac_header_compiler=no
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1687$as_echo "$ac_header_compiler" >&6; }
1688
1689# Is the header present?
1690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1691$as_echo_n "checking $2 presence... " >&6; }
1692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h. */
1694#include <$2>
1695_ACEOF
1696if ac_fn_c_try_cpp "$LINENO"; then :
1697 ac_header_preproc=yes
1698else
1699 ac_header_preproc=no
1700fi
1701rm -f conftest.err conftest.$ac_ext
1702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1703$as_echo "$ac_header_preproc" >&6; }
1704
1705# So? What about this header?
1706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1707 yes:no: )
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1709$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 ;;
1713 no:yes:* )
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1715$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1717$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1719$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1721$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 ;;
1725esac
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727$as_echo_n "checking for $2... " >&6; }
1728if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730else
1731 eval "$3=\$ac_header_compiler"
1732fi
1733eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735$as_echo "$ac_res" >&6; }
1736fi
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
1739} # ac_fn_c_check_header_mongrel
1740
1741# ac_fn_c_try_run LINENO
1742# ----------------------
1743# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744# that executables *can* be run.
1745ac_fn_c_try_run ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1766 ac_status=$?
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=$ac_status
1776fi
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1780
1781} # ac_fn_c_try_run
1782
1783# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784# -------------------------------------------------------
1785# Tests whether HEADER exists and can be compiled using the include files in
1786# INCLUDES, setting the cache variable VAR accordingly.
1787ac_fn_c_check_header_compile ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1794else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802else
1803 eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812} # ac_fn_c_check_header_compile
1813
1814# ac_fn_c_check_func LINENO FUNC VAR
1815# ----------------------------------
1816# Tests whether FUNC exists, setting the cache variable VAR accordingly
1817ac_fn_c_check_func ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 $as_echo_n "(cached) " >&6
1824else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829#define $2 innocuous_$2
1830
1831/* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836#ifdef __STDC__
1837# include <limits.h>
1838#else
1839# include <assert.h>
1840#endif
1841
1842#undef $2
1843
1844/* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847#ifdef __cplusplus
1848extern "C"
1849#endif
1850char $2 ();
1851/* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854#if defined __stub_$2 || defined __stub___$2
1855choke me
1856#endif
1857
1858int
1859main ()
1860{
1861return $2 ();
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868else
1869 eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879} # ac_fn_c_check_func
1880
1881# ac_fn_c_check_decl LINENO SYMBOL VAR
1882# ------------------------------------
1883# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1884ac_fn_c_check_decl ()
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1887 as_decl_name=`echo $2|sed 's/ *(.*//'`
1888 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1890$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1891if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893else
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h. */
1896$4
1897int
1898main ()
1899{
360cfc9c
AM
1900#ifndef $as_decl_name
1901#ifdef __cplusplus
1902 (void) $as_decl_use;
1903#else
1904 (void) $as_decl_name;
1905#endif
81ecdfbb
RW
1906#endif
1907
1908 ;
1909 return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$3=yes"
1914else
1915 eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924} # ac_fn_c_check_decl
1925cat >config.log <<_ACEOF
1926This file contains any messages produced by compilers while
1927running configure, to aid debugging if configure makes a mistake.
1928
d8bd95ef 1929It was created by gas $as_me 2.26.51, which was
81ecdfbb
RW
1930generated by GNU Autoconf 2.64. Invocation command line was
1931
1932 $ $0 $@
1933
1934_ACEOF
1935exec 5>>config.log
1936{
1937cat <<_ASUNAME
1938## --------- ##
1939## Platform. ##
1940## --------- ##
1941
1942hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946uname -v = `(uname -v) 2>/dev/null || echo unknown`
1947
1948/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1950
1951/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
1952/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1953/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1954/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
1955/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1956/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1957/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1958
1959_ASUNAME
1960
1961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962for as_dir in $PATH
1963do
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1966 $as_echo "PATH: $as_dir"
1967 done
1968IFS=$as_save_IFS
9b2b7d69 1969
13b2be9c 1970} >&5
6840198f 1971
13b2be9c 1972cat >&5 <<_ACEOF
c8615825 1973
9b2b7d69 1974
13b2be9c
DJ
1975## ----------- ##
1976## Core tests. ##
1977## ----------- ##
87ccc1b0 1978
13b2be9c 1979_ACEOF
9b2b7d69 1980
13b2be9c
DJ
1981
1982# Keep a trace of the command line.
1983# Strip out --no-create and --no-recursion so they do not pile up.
1984# Strip out --silent because we don't want to record it for future runs.
1985# Also quote any args containing shell meta-characters.
1986# Make two passes to allow for proper duplicate-argument suppression.
1987ac_configure_args=
1988ac_configure_args0=
1989ac_configure_args1=
13b2be9c
DJ
1990ac_must_keep_next=false
1991for ac_pass in 1 2
1992do
1993 for ac_arg
1994 do
1995 case $ac_arg in
1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998 | -silent | --silent | --silen | --sile | --sil)
1999 continue ;;
81ecdfbb
RW
2000 *\'*)
2001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2002 esac
2003 case $ac_pass in
81ecdfbb 2004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 2005 2)
81ecdfbb 2006 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 2007 if test $ac_must_keep_next = true; then
ab509236 2008 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2009 else
ab509236
L
2010 case $ac_arg in
2011 *=* | --config-cache | -C | -disable-* | --disable-* \
2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014 | -with-* | --with-* | -without-* | --without-* | --x)
2015 case "$ac_configure_args0 " in
2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2017 esac
2018 ;;
2019 -* ) ac_must_keep_next=true ;;
2020 esac
13b2be9c 2021 fi
81ecdfbb 2022 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2023 ;;
2024 esac
2025 done
13b2be9c 2026done
81ecdfbb
RW
2027{ ac_configure_args0=; unset ac_configure_args0;}
2028{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2029
2030# When interrupted or exit'd, cleanup temporary files, and complete
2031# config.log. We remove comments because anyway the quotes in there
2032# would cause problems or look ugly.
81ecdfbb
RW
2033# WARNING: Use '\'' to represent an apostrophe within the trap.
2034# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2035trap 'exit_status=$?
2036 # Save into config.log some information that might help in debugging.
2037 {
2038 echo
2039
2040 cat <<\_ASBOX
2041## ---------------- ##
2042## Cache variables. ##
2043## ---------------- ##
2044_ASBOX
2045 echo
2046 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2047(
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in #(
2051 *${as_nl}*)
2052 case $ac_var in #(
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 esac
2056 case $ac_var in #(
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2060 esac ;;
2061 esac
2062 done
13b2be9c 2063 (set) 2>&1 |
81ecdfbb
RW
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
13b2be9c 2066 sed -n \
81ecdfbb
RW
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 ;; #(
13b2be9c 2070 *)
81ecdfbb 2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2072 ;;
81ecdfbb
RW
2073 esac |
2074 sort
2075)
13b2be9c
DJ
2076 echo
2077
2078 cat <<\_ASBOX
2079## ----------------- ##
2080## Output variables. ##
2081## ----------------- ##
2082_ASBOX
2083 echo
2084 for ac_var in $ac_subst_vars
2085 do
81ecdfbb
RW
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2091 done | sort
2092 echo
2093
2094 if test -n "$ac_subst_files"; then
2095 cat <<\_ASBOX
81ecdfbb
RW
2096## ------------------- ##
2097## File substitutions. ##
2098## ------------------- ##
13b2be9c
DJ
2099_ASBOX
2100 echo
2101 for ac_var in $ac_subst_files
2102 do
81ecdfbb
RW
2103 eval ac_val=\$$ac_var
2104 case $ac_val in
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 esac
2107 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2108 done | sort
2109 echo
2110 fi
2111
2112 if test -s confdefs.h; then
2113 cat <<\_ASBOX
2114## ----------- ##
2115## confdefs.h. ##
2116## ----------- ##
2117_ASBOX
2118 echo
81ecdfbb 2119 cat confdefs.h
13b2be9c
DJ
2120 echo
2121 fi
2122 test "$ac_signal" != 0 &&
81ecdfbb
RW
2123 $as_echo "$as_me: caught signal $ac_signal"
2124 $as_echo "$as_me: exit $exit_status"
13b2be9c 2125 } >&5
81ecdfbb
RW
2126 rm -f core *.core core.conftest.* &&
2127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2128 exit $exit_status
81ecdfbb 2129' 0
13b2be9c 2130for ac_signal in 1 2 13 15; do
81ecdfbb 2131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2132done
2133ac_signal=0
2134
2135# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2136rm -f -r conftest* confdefs.h
2137
2138$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2139
2140# Predefined preprocessor variables.
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_NAME "$PACKAGE_NAME"
2144_ACEOF
2145
13b2be9c
DJ
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148_ACEOF
2149
13b2be9c
DJ
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_VERSION "$PACKAGE_VERSION"
2152_ACEOF
2153
13b2be9c
DJ
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_STRING "$PACKAGE_STRING"
2156_ACEOF
2157
13b2be9c
DJ
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160_ACEOF
2161
81ecdfbb
RW
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_URL "$PACKAGE_URL"
2164_ACEOF
2165
13b2be9c
DJ
2166
2167# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2168# Prefer an explicitly selected file to automatically selected ones.
2169ac_site_file1=NONE
2170ac_site_file2=NONE
2171if test -n "$CONFIG_SITE"; then
2172 ac_site_file1=$CONFIG_SITE
2173elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2176else
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2179fi
2180for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181do
2182 test "x$ac_site_file" = xNONE && continue
13b2be9c 2183 if test -r "$ac_site_file"; then
81ecdfbb
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c
DJ
2186 sed 's/^/| /' "$ac_site_file" >&5
2187 . "$ac_site_file"
2188 fi
2189done
2190
2191if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special
2193 # files actually), so we avoid doing that.
2194 if test -f "$cache_file"; then
81ecdfbb
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2197 case $cache_file in
81ecdfbb
RW
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
13b2be9c
DJ
2200 esac
2201 fi
2202else
81ecdfbb
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2205 >$cache_file
2206fi
2207
2208# Check that the precious variables saved in the cache have kept the same
2209# value.
2210ac_cache_corrupted=false
81ecdfbb 2211for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2216 case $ac_old_set,$ac_new_set in
2217 set,)
81ecdfbb
RW
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2220 ac_cache_corrupted=: ;;
2221 ,set)
81ecdfbb
RW
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
81ecdfbb 2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2255 esac
2256 fi
2257done
2258if $ac_cache_corrupted; then
81ecdfbb
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2264fi
81ecdfbb
RW
2265## -------------------- ##
2266## Main body of script. ##
2267## -------------------- ##
13b2be9c
DJ
2268
2269ac_ext=c
2270ac_cpp='$CPP $CPPFLAGS'
2271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
13b2be9c 2277
da594c4a 2278
13b2be9c
DJ
2279
2280
2281ac_aux_dir=
81ecdfbb
RW
2282for ac_dir in .. "$srcdir"/..; do
2283 for ac_t in install-sh install.sh shtool; do
2284 if test -f "$ac_dir/$ac_t"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/$ac_t -c"
2287 break 2
2288 fi
2289 done
13b2be9c
DJ
2290done
2291if test -z "$ac_aux_dir"; then
81ecdfbb 2292 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2293fi
81ecdfbb
RW
2294
2295# These three variables are undocumented and unsupported,
2296# and are intended to be withdrawn in a future Autoconf release.
2297# They can cause serious problems if a builder's source tree is in a directory
2298# whose full name contains unusual characters.
2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302
13b2be9c
DJ
2303
2304# Make sure we can run config.sub.
81ecdfbb
RW
2305$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2306 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2309$as_echo_n "checking build system type... " >&6; }
2310if test "${ac_cv_build+set}" = set; then :
2311 $as_echo_n "(cached) " >&6
2312else
2313 ac_build_alias=$build_alias
2314test "x$ac_build_alias" = x &&
2315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2316test "x$ac_build_alias" = x &&
2317 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2318ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2320
2321fi
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2323$as_echo "$ac_cv_build" >&6; }
2324case $ac_cv_build in
2325*-*-*) ;;
2326*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2327esac
13b2be9c 2328build=$ac_cv_build
81ecdfbb
RW
2329ac_save_IFS=$IFS; IFS='-'
2330set x $ac_cv_build
2331shift
2332build_cpu=$1
2333build_vendor=$2
2334shift; shift
2335# Remember, the first character of IFS is used to create $*,
2336# except with old shells:
2337build_os=$*
2338IFS=$ac_save_IFS
2339case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2340
2341
81ecdfbb
RW
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2343$as_echo_n "checking host system type... " >&6; }
2344if test "${ac_cv_host+set}" = set; then :
2345 $as_echo_n "(cached) " >&6
13b2be9c 2346else
81ecdfbb
RW
2347 if test "x$host_alias" = x; then
2348 ac_cv_host=$ac_cv_build
2349else
2350 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2351 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2352fi
13b2be9c
DJ
2353
2354fi
81ecdfbb
RW
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2356$as_echo "$ac_cv_host" >&6; }
2357case $ac_cv_host in
2358*-*-*) ;;
2359*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2360esac
13b2be9c 2361host=$ac_cv_host
81ecdfbb
RW
2362ac_save_IFS=$IFS; IFS='-'
2363set x $ac_cv_host
2364shift
2365host_cpu=$1
2366host_vendor=$2
2367shift; shift
2368# Remember, the first character of IFS is used to create $*,
2369# except with old shells:
2370host_os=$*
2371IFS=$ac_save_IFS
2372case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2373
2374
81ecdfbb
RW
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2376$as_echo_n "checking target system type... " >&6; }
2377if test "${ac_cv_target+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2379else
2380 if test "x$target_alias" = x; then
2381 ac_cv_target=$ac_cv_host
13b2be9c 2382else
81ecdfbb
RW
2383 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2384 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2385fi
13b2be9c
DJ
2386
2387fi
81ecdfbb
RW
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2389$as_echo "$ac_cv_target" >&6; }
2390case $ac_cv_target in
2391*-*-*) ;;
2392*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2393esac
13b2be9c 2394target=$ac_cv_target
81ecdfbb
RW
2395ac_save_IFS=$IFS; IFS='-'
2396set x $ac_cv_target
2397shift
2398target_cpu=$1
2399target_vendor=$2
2400shift; shift
2401# Remember, the first character of IFS is used to create $*,
2402# except with old shells:
2403target_os=$*
2404IFS=$ac_save_IFS
2405case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2406
2407
2408# The aliases save the names the user supplied, while $host etc.
2409# will get canonicalized.
2410test -n "$target_alias" &&
2411 test "$program_prefix$program_suffix$program_transform_name" = \
2412 NONENONEs,x,x, &&
2413 program_prefix=${target_alias}-
2414ac_ext=c
2415ac_cpp='$CPP $CPPFLAGS'
2416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423$as_echo_n "checking for $ac_word... " >&6; }
2424if test "${ac_cv_prog_CC+set}" = set; then :
2425 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2426else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429else
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2439 break 2
2440 fi
2441done
81ecdfbb
RW
2442 done
2443IFS=$as_save_IFS
13b2be9c
DJ
2444
2445fi
2446fi
2447CC=$ac_cv_prog_CC
2448if test -n "$CC"; then
81ecdfbb
RW
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2450$as_echo "$CC" >&6; }
13b2be9c 2451else
81ecdfbb
RW
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453$as_echo "no" >&6; }
13b2be9c
DJ
2454fi
2455
81ecdfbb 2456
13b2be9c
DJ
2457fi
2458if test -z "$ac_cv_prog_CC"; then
2459 ac_ct_CC=$CC
2460 # Extract the first word of "gcc", so it can be a program name with args.
2461set dummy gcc; ac_word=$2
81ecdfbb
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463$as_echo_n "checking for $ac_word... " >&6; }
2464if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2466else
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2477 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2479 break 2
2480 fi
2481done
81ecdfbb
RW
2482 done
2483IFS=$as_save_IFS
13b2be9c
DJ
2484
2485fi
2486fi
2487ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2490$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2491else
81ecdfbb
RW
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493$as_echo "no" >&6; }
13b2be9c
DJ
2494fi
2495
81ecdfbb
RW
2496 if test "x$ac_ct_CC" = x; then
2497 CC=""
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500yes:)
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503ac_tool_warned=yes ;;
2504esac
2505 CC=$ac_ct_CC
2506 fi
13b2be9c
DJ
2507else
2508 CC="$ac_cv_prog_CC"
2509fi
2510
2511if test -z "$CC"; then
81ecdfbb
RW
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2514set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516$as_echo_n "checking for $ac_word... " >&6; }
2517if test "${ac_cv_prog_CC+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2519else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2530 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2532 break 2
2533 fi
2534done
81ecdfbb
RW
2535 done
2536IFS=$as_save_IFS
13b2be9c
DJ
2537
2538fi
2539fi
2540CC=$ac_cv_prog_CC
2541if test -n "$CC"; then
81ecdfbb
RW
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543$as_echo "$CC" >&6; }
13b2be9c 2544else
81ecdfbb
RW
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546$as_echo "no" >&6; }
13b2be9c
DJ
2547fi
2548
13b2be9c 2549
81ecdfbb 2550 fi
13b2be9c
DJ
2551fi
2552if test -z "$CC"; then
2553 # Extract the first word of "cc", so it can be a program name with args.
2554set dummy cc; ac_word=$2
81ecdfbb
RW
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if test "${ac_cv_prog_CC+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2559else
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2562else
2563 ac_prog_rejected=no
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c
DJ
2571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572 ac_prog_rejected=yes
2573 continue
2574 fi
2575 ac_cv_prog_CC="cc"
81ecdfbb 2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2577 break 2
2578 fi
2579done
81ecdfbb
RW
2580 done
2581IFS=$as_save_IFS
2582
13b2be9c
DJ
2583if test $ac_prog_rejected = yes; then
2584 # We found a bogon in the path, so make sure we never use it.
2585 set dummy $ac_cv_prog_CC
2586 shift
2587 if test $# != 0; then
2588 # We chose a different compiler from the bogus one.
2589 # However, it has the same basename, so the bogon will be chosen
2590 # first if we set CC to just the basename; use the full file name.
2591 shift
2592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593 fi
2594fi
2595fi
2596fi
2597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
81ecdfbb
RW
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600$as_echo "$CC" >&6; }
13b2be9c 2601else
81ecdfbb
RW
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
13b2be9c
DJ
2604fi
2605
81ecdfbb 2606
13b2be9c
DJ
2607fi
2608if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
81ecdfbb 2610 for ac_prog in cl.exe
13b2be9c
DJ
2611 do
2612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
2616if test "${ac_cv_prog_CC+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2618else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2631 break 2
2632 fi
2633done
81ecdfbb
RW
2634 done
2635IFS=$as_save_IFS
13b2be9c
DJ
2636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
81ecdfbb
RW
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642$as_echo "$CC" >&6; }
13b2be9c 2643else
81ecdfbb
RW
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
13b2be9c
DJ
2646fi
2647
81ecdfbb 2648
13b2be9c
DJ
2649 test -n "$CC" && break
2650 done
2651fi
2652if test -z "$CC"; then
2653 ac_ct_CC=$CC
81ecdfbb 2654 for ac_prog in cl.exe
13b2be9c
DJ
2655do
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
2660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2662else
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2673 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2675 break 2
2676 fi
2677done
81ecdfbb
RW
2678 done
2679IFS=$as_save_IFS
13b2be9c
DJ
2680
2681fi
2682fi
2683ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2687else
81ecdfbb
RW
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689$as_echo "no" >&6; }
13b2be9c
DJ
2690fi
2691
81ecdfbb 2692
13b2be9c
DJ
2693 test -n "$ac_ct_CC" && break
2694done
2695
81ecdfbb
RW
2696 if test "x$ac_ct_CC" = x; then
2697 CC=""
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700yes:)
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703ac_tool_warned=yes ;;
2704esac
2705 CC=$ac_ct_CC
2706 fi
13b2be9c
DJ
2707fi
2708
2709fi
2710
2711
81ecdfbb
RW
2712test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714as_fn_error "no acceptable C compiler found in \$PATH
2715See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2716
2717# Provide some information about the compiler.
81ecdfbb
RW
2718$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2719set X $ac_compile
2720ac_compiler=$2
2721for ac_option in --version -v -V -qversion; do
2722 { { ac_try="$ac_compiler $ac_option >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2728$as_echo "$ac_try_echo"; } >&5
2729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2730 ac_status=$?
81ecdfbb
RW
2731 if test -s conftest.err; then
2732 sed '10a\
2733... rest of stderr output deleted ...
2734 10q' conftest.err >conftest.er1
2735 cat conftest.er1 >&5
2736 rm -f conftest.er1 conftest.err
2737 fi
2738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739 test $ac_status = 0; }
2740done
13b2be9c 2741
81ecdfbb 2742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2743/* end confdefs.h. */
2744
2745int
2746main ()
2747{
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753ac_clean_files_save=$ac_clean_files
81ecdfbb 2754ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
13b2be9c
DJ
2755# Try to create an executable without -o first, disregard a.out.
2756# It will help us diagnose broken compilers, and finding out an intuition
2757# of exeext.
81ecdfbb
RW
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2759$as_echo_n "checking for C compiler default output file name... " >&6; }
2760ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761
2762# The possible output files:
2763ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2764
2765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
2775if { { ac_try="$ac_link_default"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_link_default") 2>&5
2783 ac_status=$?
2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; }; then :
2786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788# in a Makefile. We should not override ac_cv_exeext if it was cached,
2789# so that the user can short-circuit this test for compilers unknown to
2790# Autoconf.
2791for ac_file in $ac_files ''
13b2be9c
DJ
2792do
2793 test -f "$ac_file" || continue
2794 case $ac_file in
81ecdfbb 2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2796 ;;
13b2be9c 2797 [ab].out )
ab509236
L
2798 # We found the default executable, but exeext='' is most
2799 # certainly right.
2800 break;;
13b2be9c 2801 *.* )
81ecdfbb
RW
2802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2803 then :; else
2804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 fi
2806 # We set ac_cv_exeext here because the later test for it is not
2807 # safe: cross compilers may not add the suffix if given an `-o'
2808 # argument, so we may need to know it at that point already.
2809 # Even if this section looks crufty: it has the advantage of
2810 # actually working.
ab509236 2811 break;;
13b2be9c 2812 * )
ab509236 2813 break;;
13b2be9c
DJ
2814 esac
2815done
81ecdfbb
RW
2816test "$ac_cv_exeext" = no && ac_cv_exeext=
2817
13b2be9c 2818else
81ecdfbb
RW
2819 ac_file=''
2820fi
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2822$as_echo "$ac_file" >&6; }
2823if test -z "$ac_file"; then :
2824 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2825sed 's/^/| /' conftest.$ac_ext >&5
2826
81ecdfbb
RW
2827{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829{ as_fn_set_status 77
2830as_fn_error "C compiler cannot create executables
2831See \`config.log' for more details." "$LINENO" 5; }; }
13b2be9c 2832fi
13b2be9c 2833ac_exeext=$ac_cv_exeext
13b2be9c 2834
81ecdfbb 2835# Check that the compiler produces executables we can run. If not, either
13b2be9c 2836# the compiler is broken, or we cross compile.
81ecdfbb
RW
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2838$as_echo_n "checking whether the C compiler works... " >&6; }
13b2be9c
DJ
2839# If not cross compiling, check that we can run a simple program.
2840if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
81ecdfbb
RW
2842 { { case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847$as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_try") 2>&5
13b2be9c 2849 ac_status=$?
81ecdfbb
RW
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }; }; then
13b2be9c
DJ
2852 cross_compiling=no
2853 else
2854 if test "$cross_compiling" = maybe; then
2855 cross_compiling=yes
2856 else
81ecdfbb
RW
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859as_fn_error "cannot run C compiled programs.
13b2be9c 2860If you meant to cross compile, use \`--host'.
81ecdfbb 2861See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2862 fi
2863 fi
2864fi
81ecdfbb
RW
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866$as_echo "yes" >&6; }
13b2be9c 2867
81ecdfbb 2868rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
13b2be9c 2869ac_clean_files=$ac_clean_files_save
81ecdfbb 2870# Check that the compiler produces executables we can run. If not, either
13b2be9c 2871# the compiler is broken, or we cross compile.
81ecdfbb
RW
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2873$as_echo_n "checking whether we are cross compiling... " >&6; }
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2875$as_echo "$cross_compiling" >&6; }
2876
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2878$as_echo_n "checking for suffix of executables... " >&6; }
2879if { { ac_try="$ac_link"
2880case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883esac
2884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885$as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_link") 2>&5
13b2be9c 2887 ac_status=$?
81ecdfbb
RW
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; then :
13b2be9c
DJ
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892# work properly (i.e., refer to `conftest.exe'), while it won't with
2893# `rm'.
2894for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2896 case $ac_file in
81ecdfbb 2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 2899 break;;
13b2be9c
DJ
2900 * ) break;;
2901 esac
2902done
2903else
81ecdfbb
RW
2904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906as_fn_error "cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2908fi
13b2be9c 2909rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2911$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
2912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
81ecdfbb
RW
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2917$as_echo_n "checking for suffix of object files... " >&6; }
2918if test "${ac_cv_objext+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
13b2be9c 2920else
81ecdfbb 2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2922/* end confdefs.h. */
2923
2924int
2925main ()
2926{
2927
2928 ;
2929 return 0;
2930}
2931_ACEOF
2932rm -f conftest.o conftest.obj
81ecdfbb
RW
2933if { { ac_try="$ac_compile"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
2938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939$as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_compile") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943 test $ac_status = 0; }; then :
2944 for ac_file in conftest.o conftest.obj conftest.*; do
2945 test -f "$ac_file" || continue;
13b2be9c 2946 case $ac_file in
81ecdfbb 2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
2948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949 break;;
2950 esac
2951done
2952else
81ecdfbb 2953 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
81ecdfbb
RW
2956{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958as_fn_error "cannot compute suffix of object files: cannot compile
2959See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2960fi
13b2be9c
DJ
2961rm -f conftest.$ac_cv_objext conftest.$ac_ext
2962fi
81ecdfbb
RW
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2964$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
2965OBJEXT=$ac_cv_objext
2966ac_objext=$OBJEXT
81ecdfbb
RW
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2968$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2969if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
13b2be9c 2971else
81ecdfbb 2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2973/* end confdefs.h. */
2974
2975int
2976main ()
2977{
2978#ifndef __GNUC__
2979 choke me
2980#endif
2981
2982 ;
2983 return 0;
2984}
2985_ACEOF
81ecdfbb 2986if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
2987 ac_compiler_gnu=yes
2988else
81ecdfbb 2989 ac_compiler_gnu=no
13b2be9c 2990fi
81ecdfbb 2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2992ac_cv_c_compiler_gnu=$ac_compiler_gnu
2993
2994fi
81ecdfbb
RW
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2996$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2997if test $ac_compiler_gnu = yes; then
2998 GCC=yes
2999else
3000 GCC=
3001fi
13b2be9c
DJ
3002ac_test_CFLAGS=${CFLAGS+set}
3003ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3005$as_echo_n "checking whether $CC accepts -g... " >&6; }
3006if test "${ac_cv_prog_cc_g+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008else
3009 ac_save_c_werror_flag=$ac_c_werror_flag
3010 ac_c_werror_flag=yes
3011 ac_cv_prog_cc_g=no
3012 CFLAGS="-g"
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3014/* end confdefs.h. */
3015
3016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
81ecdfbb 3024if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3025 ac_cv_prog_cc_g=yes
3026else
81ecdfbb
RW
3027 CFLAGS=""
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029/* end confdefs.h. */
13b2be9c 3030
81ecdfbb
RW
3031int
3032main ()
3033{
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039if ac_fn_c_try_compile "$LINENO"; then :
3040
3041else
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3043 CFLAGS="-g"
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h. */
3046
3047int
3048main ()
3049{
3050
3051 ;
3052 return 0;
3053}
3054_ACEOF
3055if ac_fn_c_try_compile "$LINENO"; then :
3056 ac_cv_prog_cc_g=yes
3057fi
3058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3059fi
81ecdfbb 3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3061fi
81ecdfbb
RW
3062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_c_werror_flag=$ac_save_c_werror_flag
3064fi
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3066$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3067if test "$ac_test_CFLAGS" = set; then
3068 CFLAGS=$ac_save_CFLAGS
3069elif test $ac_cv_prog_cc_g = yes; then
3070 if test "$GCC" = yes; then
3071 CFLAGS="-g -O2"
3072 else
3073 CFLAGS="-g"
3074 fi
3075else
3076 if test "$GCC" = yes; then
3077 CFLAGS="-O2"
3078 else
3079 CFLAGS=
3080 fi
3081fi
81ecdfbb
RW
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3083$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3084if test "${ac_cv_prog_cc_c89+set}" = set; then :
3085 $as_echo_n "(cached) " >&6
13b2be9c 3086else
81ecdfbb 3087 ac_cv_prog_cc_c89=no
13b2be9c 3088ac_save_CC=$CC
81ecdfbb 3089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3090/* end confdefs.h. */
3091#include <stdarg.h>
3092#include <stdio.h>
3093#include <sys/types.h>
3094#include <sys/stat.h>
3095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3096struct buf { int x; };
3097FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098static char *e (p, i)
3099 char **p;
3100 int i;
3101{
3102 return p[i];
3103}
3104static char *f (char * (*g) (char **, int), char **p, ...)
3105{
3106 char *s;
3107 va_list v;
3108 va_start (v,p);
3109 s = g (p, va_arg (v,int));
3110 va_end (v);
3111 return s;
3112}
ab509236
L
3113
3114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3115 function prototypes and stuff, but not '\xHH' hex character constants.
3116 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3117 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3119 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3120 that's true only with -std. */
ab509236
L
3121int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3122
81ecdfbb
RW
3123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124 inside strings and character constants. */
3125#define FOO(x) 'x'
3126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3127
13b2be9c
DJ
3128int test (int i, double x);
3129struct s1 {int (*f) (int a);};
3130struct s2 {int (*f) (double a);};
3131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3132int argc;
3133char **argv;
3134int
3135main ()
3136{
3137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3138 ;
3139 return 0;
3140}
3141_ACEOF
81ecdfbb
RW
3142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3144do
3145 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3146 if ac_fn_c_try_compile "$LINENO"; then :
3147 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3148fi
81ecdfbb
RW
3149rm -f core conftest.err conftest.$ac_objext
3150 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3151done
81ecdfbb 3152rm -f conftest.$ac_ext
13b2be9c
DJ
3153CC=$ac_save_CC
3154
3155fi
81ecdfbb
RW
3156# AC_CACHE_VAL
3157case "x$ac_cv_prog_cc_c89" in
3158 x)
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3160$as_echo "none needed" >&6; } ;;
3161 xno)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3163$as_echo "unsupported" >&6; } ;;
13b2be9c 3164 *)
81ecdfbb
RW
3165 CC="$CC $ac_cv_prog_cc_c89"
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3167$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3168esac
81ecdfbb 3169if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3170
13b2be9c
DJ
3171fi
3172
13b2be9c
DJ
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
81ecdfbb
RW
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3181$as_echo_n "checking for library containing strerror... " >&6; }
3182if test "${ac_cv_search_strerror+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
13b2be9c 3184else
ab509236 3185 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3187/* end confdefs.h. */
3188
81ecdfbb
RW
3189/* Override any GCC internal prototype to avoid an error.
3190 Use char because int might match the return type of a GCC
3191 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3192#ifdef __cplusplus
3193extern "C"
3194#endif
13b2be9c
DJ
3195char strerror ();
3196int
3197main ()
3198{
81ecdfbb 3199return strerror ();
13b2be9c
DJ
3200 ;
3201 return 0;
3202}
3203_ACEOF
81ecdfbb
RW
3204for ac_lib in '' cposix; do
3205 if test -z "$ac_lib"; then
3206 ac_res="none required"
3207 else
3208 ac_res=-l$ac_lib
ab509236 3209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3210 fi
3211 if ac_fn_c_try_link "$LINENO"; then :
3212 ac_cv_search_strerror=$ac_res
3213fi
3214rm -f core conftest.err conftest.$ac_objext \
3215 conftest$ac_exeext
3216 if test "${ac_cv_search_strerror+set}" = set; then :
3217 break
3218fi
3219done
3220if test "${ac_cv_search_strerror+set}" = set; then :
ab509236 3221
ab509236 3222else
81ecdfbb 3223 ac_cv_search_strerror=no
13b2be9c 3224fi
81ecdfbb 3225rm conftest.$ac_ext
ab509236
L
3226LIBS=$ac_func_search_save_LIBS
3227fi
81ecdfbb
RW
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3229$as_echo "$ac_cv_search_strerror" >&6; }
3230ac_res=$ac_cv_search_strerror
3231if test "$ac_res" != no; then :
3232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3233
ab509236 3234fi
13b2be9c
DJ
3235
3236
81ecdfbb
RW
3237am__api_version='1.11'
3238
13b2be9c
DJ
3239# Find a good install program. We prefer a C program (faster),
3240# so one script is as good as another. But avoid the broken or
3241# incompatible versions:
3242# SysV /etc/install, /usr/sbin/install
3243# SunOS /usr/etc/install
3244# IRIX /sbin/install
3245# AIX /bin/install
3246# AmigaOS /C/install, which installs bootblocks on floppy discs
3247# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3248# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3249# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3250# OS/2's system install, which has a completely different semantic
13b2be9c 3251# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3252# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3254$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3255if test -z "$INSTALL"; then
81ecdfbb
RW
3256if test "${ac_cv_path_install+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3258else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3264 # Account for people who put trailing slashes in PATH elements.
3265case $as_dir/ in #((
3266 ./ | .// | /[cC]/* | \
13b2be9c 3267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3268 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3269 /usr/ucb/* ) ;;
3270 *)
3271 # OSF1 and SCO ODT 3.0 have their own names for install.
3272 # Don't use installbsd from OSF since it installs stuff as root
3273 # by default.
3274 for ac_prog in ginstall scoinst install; do
3275 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3276 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ab509236
L
3277 if test $ac_prog = install &&
3278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3279 # AIX install. It has an incompatible calling convention.
3280 :
3281 elif test $ac_prog = install &&
3282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283 # program-specific install script used by HP pwplus--don't use.
3284 :
3285 else
58c85be7
RW
3286 rm -rf conftest.one conftest.two conftest.dir
3287 echo one > conftest.one
3288 echo two > conftest.two
3289 mkdir conftest.dir
3290 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3291 test -s conftest.one && test -s conftest.two &&
3292 test -s conftest.dir/conftest.one &&
3293 test -s conftest.dir/conftest.two
3294 then
3295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3296 break 3
3297 fi
ab509236
L
3298 fi
3299 fi
13b2be9c
DJ
3300 done
3301 done
3302 ;;
3303esac
81ecdfbb
RW
3304
3305 done
3306IFS=$as_save_IFS
13b2be9c 3307
58c85be7 3308rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3309
3310fi
3311 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3312 INSTALL=$ac_cv_path_install
252b5132 3313 else
58c85be7
RW
3314 # As a last resort, use the slow shell script. Don't cache a
3315 # value for INSTALL within a source directory, because that will
252b5132 3316 # break other packages using the cache if that directory is
58c85be7 3317 # removed, or if the value is a relative name.
13b2be9c 3318 INSTALL=$ac_install_sh
252b5132
RH
3319 fi
3320fi
81ecdfbb
RW
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3322$as_echo "$INSTALL" >&6; }
252b5132
RH
3323
3324# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325# It thinks the first close brace ends the variable substitution.
3326test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3327
13b2be9c 3328test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3329
3330test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3331
81ecdfbb
RW
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3333$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3334# Just in case
3335sleep 1
13b2be9c 3336echo timestamp > conftest.file
81ecdfbb
RW
3337# Reject unsafe characters in $srcdir or the absolute working directory
3338# name. Accept space and tab only in the latter.
3339am_lf='
3340'
3341case `pwd` in
3342 *[\\\"\#\$\&\'\`$am_lf]*)
3343 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3344esac
3345case $srcdir in
3346 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3347 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3348esac
3349
252b5132
RH
3350# Do `set' in a subshell so we don't clobber the current shell's
3351# arguments. Must try -L first in case configure is actually a
3352# symlink; some systems play weird games with the mod time of symlinks
3353# (eg FreeBSD returns the mod time of the symlink's containing
3354# directory).
3355if (
81ecdfbb 3356 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3357 if test "$*" = "X"; then
3358 # -L didn't work.
81ecdfbb 3359 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3360 fi
13b2be9c
DJ
3361 rm -f conftest.file
3362 if test "$*" != "X $srcdir/configure conftest.file" \
3363 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3364
3365 # If neither matched, then we have a broken ls. This can happen
3366 # if, for instance, CONFIG_SHELL is bash and it inherits a
3367 # broken ls alias from the environment. This has actually
3368 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3369 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3370alias in your environment" "$LINENO" 5
252b5132
RH
3371 fi
3372
13b2be9c
DJ
3373 test "$2" = conftest.file
3374 )
3375then
3376 # Ok.
3377 :
3378else
81ecdfbb
RW
3379 as_fn_error "newly created file is older than distributed files!
3380Check your system clock" "$LINENO" 5
13b2be9c 3381fi
81ecdfbb
RW
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383$as_echo "yes" >&6; }
13b2be9c 3384test "$program_prefix" != NONE &&
81ecdfbb 3385 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3386# Use a double $ so make ignores it.
3387test "$program_suffix" != NONE &&
81ecdfbb
RW
3388 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3389# Double any \ or $.
13b2be9c 3390# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3391ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3392program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3393
13b2be9c
DJ
3394# expand $ac_aux_dir to an absolute path
3395am_aux_dir=`cd $ac_aux_dir && pwd`
3396
81ecdfbb
RW
3397if test x"${MISSING+set}" != xset; then
3398 case $am_aux_dir in
3399 *\ * | *\ *)
3400 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3401 *)
3402 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3403 esac
3404fi
13b2be9c
DJ
3405# Use eval to expand $SHELL
3406if eval "$MISSING --run true"; then
3407 am_missing_run="$MISSING --run "
3408else
3409 am_missing_run=
81ecdfbb
RW
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3411$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ab509236
L
3412fi
3413
81ecdfbb
RW
3414if test x"${install_sh}" != xset; then
3415 case $am_aux_dir in
3416 *\ * | *\ *)
3417 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3418 *)
3419 install_sh="\${SHELL} $am_aux_dir/install-sh"
3420 esac
3421fi
3422
3423# Installed binaries are usually stripped using `strip' when the user
3424# run `make install-strip'. However `strip' might not be the right
3425# tool to use in cross-compilation environments, therefore Automake
3426# will honor the `STRIP' environment variable to overrule this program.
3427if test "$cross_compiling" != no; then
3428 if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3430set dummy ${ac_tool_prefix}strip; ac_word=$2
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
3433if test "${ac_cv_prog_STRIP+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
13b2be9c 3435else
81ecdfbb
RW
3436 if test -n "$STRIP"; then
3437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3448 break 2
3449 fi
3450done
81ecdfbb
RW
3451 done
3452IFS=$as_save_IFS
13b2be9c
DJ
3453
3454fi
3455fi
81ecdfbb
RW
3456STRIP=$ac_cv_prog_STRIP
3457if test -n "$STRIP"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3459$as_echo "$STRIP" >&6; }
13b2be9c 3460else
81ecdfbb
RW
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
13b2be9c
DJ
3463fi
3464
13b2be9c 3465
81ecdfbb
RW
3466fi
3467if test -z "$ac_cv_prog_STRIP"; then
3468 ac_ct_STRIP=$STRIP
3469 # Extract the first word of "strip", so it can be a program name with args.
3470set dummy strip; ac_word=$2
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
3473if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
13b2be9c 3475else
81ecdfbb
RW
3476 if test -n "$ac_ct_STRIP"; then
3477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3478else
81ecdfbb
RW
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_ac_ct_STRIP="strip"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490done
3491 done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3497if test -n "$ac_ct_STRIP"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3499$as_echo "$ac_ct_STRIP" >&6; }
3500else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505 if test "x$ac_ct_STRIP" = x; then
3506 STRIP=":"
3507 else
3508 case $cross_compiling:$ac_tool_warned in
3509yes:)
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512ac_tool_warned=yes ;;
3513esac
3514 STRIP=$ac_ct_STRIP
3515 fi
3516else
3517 STRIP="$ac_cv_prog_STRIP"
3518fi
3519
3520fi
3521INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3522
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3524$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3525if test -z "$MKDIR_P"; then
3526 if test "${ac_cv_path_mkdir+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_prog in mkdir gmkdir; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3537 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3538 'mkdir (GNU coreutils) '* | \
3539 'mkdir (coreutils) '* | \
3540 'mkdir (fileutils) '4.1*)
3541 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3542 break 3;;
3543 esac
3544 done
3545 done
3546 done
3547IFS=$as_save_IFS
3548
3549fi
3550
3551 if test "${ac_cv_path_mkdir+set}" = set; then
3552 MKDIR_P="$ac_cv_path_mkdir -p"
3553 else
3554 # As a last resort, use the slow shell script. Don't cache a
3555 # value for MKDIR_P within a source directory, because that will
3556 # break other packages using the cache if that directory is
3557 # removed, or if the value is a relative name.
3558 test -d ./--version && rmdir ./--version
3559 MKDIR_P="$ac_install_sh -d"
3560 fi
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3563$as_echo "$MKDIR_P" >&6; }
3564
3565mkdir_p="$MKDIR_P"
3566case $mkdir_p in
3567 [\\/$]* | ?:[\\/]*) ;;
3568 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3569esac
3570
3571for ac_prog in gawk mawk nawk awk
3572do
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574set dummy $ac_prog; ac_word=$2
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576$as_echo_n "checking for $ac_word... " >&6; }
3577if test "${ac_cv_prog_AWK+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579else
3580 if test -n "$AWK"; then
3581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_AWK="$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594done
3595 done
3596IFS=$as_save_IFS
3597
3598fi
3599fi
3600AWK=$ac_cv_prog_AWK
3601if test -n "$AWK"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3603$as_echo "$AWK" >&6; }
3604else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606$as_echo "no" >&6; }
13b2be9c 3607fi
81ecdfbb
RW
3608
3609
3610 test -n "$AWK" && break
3611done
3612
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3614$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3615set x ${MAKE-make}
3616ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3617if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3618 $as_echo_n "(cached) " >&6
3619else
3620 cat >conftest.make <<\_ACEOF
3621SHELL = /bin/sh
3622all:
3623 @echo '@@@%%%=$(MAKE)=@@@%%%'
3624_ACEOF
3625# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3626case `${MAKE-make} -f conftest.make 2>/dev/null` in
3627 *@@@%%%=?*=@@@%%%*)
3628 eval ac_cv_prog_make_${ac_make}_set=yes;;
3629 *)
3630 eval ac_cv_prog_make_${ac_make}_set=no;;
3631esac
13b2be9c
DJ
3632rm -f conftest.make
3633fi
81ecdfbb
RW
3634if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636$as_echo "yes" >&6; }
13b2be9c
DJ
3637 SET_MAKE=
3638else
81ecdfbb
RW
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640$as_echo "no" >&6; }
13b2be9c
DJ
3641 SET_MAKE="MAKE=${MAKE-make}"
3642fi
3643
3644rm -rf .tst 2>/dev/null
3645mkdir .tst 2>/dev/null
3646if test -d .tst; then
3647 am__leading_dot=.
3648else
3649 am__leading_dot=_
3650fi
3651rmdir .tst 2>/dev/null
3652
3653DEPDIR="${am__leading_dot}deps"
3654
81ecdfbb 3655ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3656
3657
3658am_make=${MAKE-make}
3659cat > confinc << 'END'
3660am__doit:
81ecdfbb 3661 @echo this is the am__doit target
13b2be9c
DJ
3662.PHONY: am__doit
3663END
3664# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3666$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3667am__include="#"
3668am__quote=
3669_am_result=none
3670# First try GNU make style include.
3671echo "include confinc" > confmf
81ecdfbb
RW
3672# Ignore all kinds of additional output from `make'.
3673case `$am_make -s -f confmf 2> /dev/null` in #(
3674*the\ am__doit\ target*)
3675 am__include=include
3676 am__quote=
3677 _am_result=GNU
3678 ;;
3679esac
13b2be9c
DJ
3680# Now try BSD make style include.
3681if test "$am__include" = "#"; then
3682 echo '.include "confinc"' > confmf
81ecdfbb
RW
3683 case `$am_make -s -f confmf 2> /dev/null` in #(
3684 *the\ am__doit\ target*)
3685 am__include=.include
3686 am__quote="\""
3687 _am_result=BSD
3688 ;;
3689 esac
13b2be9c
DJ
3690fi
3691
3692
81ecdfbb
RW
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3694$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3695rm -f confinc confmf
3696
81ecdfbb
RW
3697# Check whether --enable-dependency-tracking was given.
3698if test "${enable_dependency_tracking+set}" = set; then :
3699 enableval=$enable_dependency_tracking;
3700fi
13b2be9c 3701
13b2be9c
DJ
3702if test "x$enable_dependency_tracking" != xno; then
3703 am_depcomp="$ac_aux_dir/depcomp"
3704 AMDEPBACKSLASH='\'
3705fi
81ecdfbb 3706 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3707 AMDEP_TRUE=
3708 AMDEP_FALSE='#'
3709else
3710 AMDEP_TRUE='#'
3711 AMDEP_FALSE=
3712fi
3713
3714
81ecdfbb
RW
3715if test "`cd $srcdir && pwd`" != "`pwd`"; then
3716 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3717 # is not polluted with repeated "-I."
3718 am__isrc=' -I$(srcdir)'
3719 # test to see if srcdir already configured
3720 if test -f $srcdir/config.status; then
3721 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3722 fi
13b2be9c
DJ
3723fi
3724
3725# test whether we have cygpath
3726if test -z "$CYGPATH_W"; then
3727 if (cygpath --version) >/dev/null 2>/dev/null; then
3728 CYGPATH_W='cygpath -w'
3729 else
3730 CYGPATH_W=echo
3731 fi
3732fi
3733
3734
3735# Define the identity of the package.
2e98a7bd 3736 PACKAGE='gas'
d8bd95ef 3737 VERSION='2.26.51'
13b2be9c
DJ
3738
3739
3740cat >>confdefs.h <<_ACEOF
3741#define PACKAGE "$PACKAGE"
3742_ACEOF
3743
3744
3745cat >>confdefs.h <<_ACEOF
3746#define VERSION "$VERSION"
3747_ACEOF
3748
3749# Some tools Automake needs.
3750
3751ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3752
3753
3754AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3755
3756
3757AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3758
3759
3760AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3761
3762
3763MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3764
13b2be9c
DJ
3765# We need awk for the "check" target. The system "awk" is bad on
3766# some platforms.
8ea2b00f
AM
3767# Always define AMTAR for backward compatibility.
3768
3769AMTAR=${AMTAR-"${am_missing_run}tar"}
3770
3771am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3772
3773
252b5132 3774
d6d788bd 3775
13b2be9c 3776depcc="$CC" am_compiler_list=
d6d788bd 3777
81ecdfbb
RW
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779$as_echo_n "checking dependency style of $depcc... " >&6; }
3780if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
252b5132 3782else
13b2be9c
DJ
3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784 # We make a subdir and do the tests there. Otherwise we can end up
3785 # making bogus files that we don't know about and never remove. For
3786 # instance it was reported that on HP-UX the gcc test will end up
3787 # making a dummy file named `D' -- because `-MD' means `put the output
3788 # in D'.
3789 mkdir conftest.dir
3790 # Copy depcomp to subdir because otherwise we won't find it if we're
3791 # using a relative directory.
3792 cp "$am_depcomp" conftest.dir
3793 cd conftest.dir
3794 # We will build objects and dependencies in a subdirectory because
3795 # it helps to detect inapplicable dependency modes. For instance
3796 # both Tru64's cc and ICC support -MD to output dependencies as a
3797 # side effect of compilation, but ICC will put the dependencies in
3798 # the current directory while Tru64 will put them in the object
3799 # directory.
3800 mkdir sub
252b5132 3801
13b2be9c
DJ
3802 am_cv_CC_dependencies_compiler_type=none
3803 if test "$am_compiler_list" = ""; then
3804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3805 fi
81ecdfbb
RW
3806 am__universal=false
3807 case " $depcc " in #(
3808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3809 esac
3810
13b2be9c
DJ
3811 for depmode in $am_compiler_list; do
3812 # Setup a source with many dependencies, because some compilers
3813 # like to wrap large dependency lists on column 80 (with \), and
3814 # we should not choose a depcomp mode which is confused by this.
3815 #
3816 # We need to recreate these files for each test, as the compiler may
3817 # overwrite some of them when testing with obscure command lines.
3818 # This happens at least with the AIX C compiler.
3819 : > sub/conftest.c
3820 for i in 1 2 3 4 5 6; do
3821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823 # Solaris 8's {/usr,}/bin/sh.
3824 touch sub/conftst$i.h
13b2be9c
DJ
3825 done
3826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827
81ecdfbb
RW
3828 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829 # mode. It turns out that the SunPro C++ compiler does not properly
3830 # handle `-M -o', and we need to detect this. Also, some Intel
3831 # versions had trouble with output in subdirs
3832 am__obj=sub/conftest.${OBJEXT-o}
3833 am__minus_obj="-o $am__obj"
13b2be9c 3834 case $depmode in
81ecdfbb
RW
3835 gcc)
3836 # This depmode causes a compiler race in universal mode.
3837 test "$am__universal" = false || continue
3838 ;;
13b2be9c
DJ
3839 nosideeffect)
3840 # after this tag, mechanisms are not by side-effect, so they'll
3841 # only be used when explicitly requested
3842 if test "x$enable_dependency_tracking" = xyes; then
3843 continue
3844 else
3845 break
3846 fi
3847 ;;
81ecdfbb
RW
3848 msvisualcpp | msvcmsys)
3849 # This compiler won't grok `-c -o', but also, the minuso test has
3850 # not run yet. These depmodes are late enough in the game, and
3851 # so weak that their functioning should not be impacted.
3852 am__obj=conftest.${OBJEXT-o}
3853 am__minus_obj=
3854 ;;
13b2be9c
DJ
3855 none) break ;;
3856 esac
13b2be9c 3857 if depmode=$depmode \
81ecdfbb 3858 source=sub/conftest.c object=$am__obj \
13b2be9c 3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 3861 >/dev/null 2>conftest.err &&
81ecdfbb 3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3875 am_cv_CC_dependencies_compiler_type=$depmode
3876 break
3877 fi
3878 fi
3879 done
252b5132 3880
13b2be9c
DJ
3881 cd ..
3882 rm -rf conftest.dir
252b5132 3883else
13b2be9c 3884 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3885fi
3886
252b5132 3887fi
81ecdfbb
RW
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 3890CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3891
81ecdfbb 3892 if
13b2be9c
DJ
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCC_TRUE=
3896 am__fastdepCC_FALSE='#'
252b5132 3897else
13b2be9c
DJ
3898 am__fastdepCC_TRUE='#'
3899 am__fastdepCC_FALSE=
252b5132
RH
3900fi
3901
d6d788bd
L
3902
3903
13b2be9c 3904
ce2cded5
L
3905ac_ext=c
3906ac_cpp='$CPP $CPPFLAGS'
3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
252b5132 3917else
ce2cded5
L
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3920else
ce2cded5
L
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3930 break 2
3931 fi
3932done
81ecdfbb
RW
3933 done
3934IFS=$as_save_IFS
d7040cdb 3935
ce2cded5
L
3936fi
3937fi
3938CC=$ac_cv_prog_CC
3939if test -n "$CC"; then
81ecdfbb
RW
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941$as_echo "$CC" >&6; }
bedf545c 3942else
81ecdfbb
RW
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
ce2cded5 3945fi
d7040cdb 3946
81ecdfbb 3947
ce2cded5
L
3948fi
3949if test -z "$ac_cv_prog_CC"; then
3950 ac_ct_CC=$CC
3951 # Extract the first word of "gcc", so it can be a program name with args.
3952set dummy gcc; ac_word=$2
81ecdfbb
RW
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954$as_echo_n "checking for $ac_word... " >&6; }
3955if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
d7040cdb 3957else
ce2cded5
L
3958 if test -n "$ac_ct_CC"; then
3959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3960else
d7040cdb
SE
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3968 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3970 break 2
d7040cdb 3971 fi
ce2cded5 3972done
81ecdfbb
RW
3973 done
3974IFS=$as_save_IFS
d7040cdb 3975
ce2cded5
L
3976fi
3977fi
3978ac_ct_CC=$ac_cv_prog_ac_ct_CC
3979if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3981$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3982else
81ecdfbb
RW
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
d7040cdb
SE
3985fi
3986
81ecdfbb
RW
3987 if test "x$ac_ct_CC" = x; then
3988 CC=""
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991yes:)
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994ac_tool_warned=yes ;;
3995esac
3996 CC=$ac_ct_CC
3997 fi
ce2cded5
L
3998else
3999 CC="$ac_cv_prog_CC"
4000fi
d7040cdb 4001
ce2cded5 4002if test -z "$CC"; then
81ecdfbb
RW
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4005set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if test "${ac_cv_prog_CC+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
d7040cdb 4010else
ce2cded5
L
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4013else
ce2cded5
L
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4021 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4023 break 2
4024 fi
4025done
81ecdfbb
RW
4026 done
4027IFS=$as_save_IFS
d7040cdb 4028
252b5132
RH
4029fi
4030fi
ce2cded5
L
4031CC=$ac_cv_prog_CC
4032if test -n "$CC"; then
81ecdfbb
RW
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034$as_echo "$CC" >&6; }
ce2cded5 4035else
81ecdfbb
RW
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
d7040cdb 4038fi
f9c19112 4039
ce2cded5 4040
81ecdfbb 4041 fi
ce2cded5
L
4042fi
4043if test -z "$CC"; then
4044 # Extract the first word of "cc", so it can be a program name with args.
4045set dummy cc; ac_word=$2
81ecdfbb
RW
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
4048if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
ce2cded5
L
4050else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053else
4054 ac_prog_rejected=no
4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH
4057do
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4063 ac_prog_rejected=yes
4064 continue
4065 fi
4066 ac_cv_prog_CC="cc"
81ecdfbb 4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4068 break 2
4069 fi
4070done
81ecdfbb
RW
4071 done
4072IFS=$as_save_IFS
ce2cded5
L
4073
4074if test $ac_prog_rejected = yes; then
4075 # We found a bogon in the path, so make sure we never use it.
4076 set dummy $ac_cv_prog_CC
4077 shift
4078 if test $# != 0; then
4079 # We chose a different compiler from the bogus one.
4080 # However, it has the same basename, so the bogon will be chosen
4081 # first if we set CC to just the basename; use the full file name.
4082 shift
4083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4084 fi
4085fi
4086fi
4087fi
4088CC=$ac_cv_prog_CC
4089if test -n "$CC"; then
81ecdfbb
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091$as_echo "$CC" >&6; }
ce2cded5 4092else
81ecdfbb
RW
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
ce2cded5
L
4095fi
4096
81ecdfbb 4097
ce2cded5
L
4098fi
4099if test -z "$CC"; then
4100 if test -n "$ac_tool_prefix"; then
81ecdfbb 4101 for ac_prog in cl.exe
ce2cded5
L
4102 do
4103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106$as_echo_n "checking for $ac_word... " >&6; }
4107if test "${ac_cv_prog_CC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
ce2cded5
L
4109else
4110 if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4112else
4113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4122 break 2
4123 fi
4124done
81ecdfbb
RW
4125 done
4126IFS=$as_save_IFS
ce2cded5
L
4127
4128fi
4129fi
4130CC=$ac_cv_prog_CC
4131if test -n "$CC"; then
81ecdfbb
RW
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133$as_echo "$CC" >&6; }
ce2cded5 4134else
81ecdfbb
RW
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136$as_echo "no" >&6; }
ce2cded5
L
4137fi
4138
81ecdfbb 4139
ce2cded5 4140 test -n "$CC" && break
d7040cdb
SE
4141 done
4142fi
ce2cded5
L
4143if test -z "$CC"; then
4144 ac_ct_CC=$CC
81ecdfbb 4145 for ac_prog in cl.exe
d7040cdb
SE
4146do
4147 # Extract the first word of "$ac_prog", so it can be a program name with args.
4148set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150$as_echo_n "checking for $ac_word... " >&6; }
4151if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
d7040cdb 4153else
ce2cded5
L
4154 if test -n "$ac_ct_CC"; then
4155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4164 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4166 break 2
ac48eca1 4167 fi
d7040cdb 4168done
81ecdfbb
RW
4169 done
4170IFS=$as_save_IFS
ac48eca1 4171
d7040cdb
SE
4172fi
4173fi
ce2cded5
L
4174ac_ct_CC=$ac_cv_prog_ac_ct_CC
4175if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4177$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4178else
81ecdfbb
RW
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
d7040cdb 4181fi
ac48eca1 4182
81ecdfbb 4183
ce2cded5 4184 test -n "$ac_ct_CC" && break
d7040cdb 4185done
ac48eca1 4186
81ecdfbb
RW
4187 if test "x$ac_ct_CC" = x; then
4188 CC=""
4189 else
4190 case $cross_compiling:$ac_tool_warned in
4191yes:)
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194ac_tool_warned=yes ;;
4195esac
4196 CC=$ac_ct_CC
4197 fi
d7040cdb 4198fi
ac48eca1 4199
d7040cdb 4200fi
ac48eca1 4201
ac48eca1 4202
81ecdfbb
RW
4203test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205as_fn_error "no acceptable C compiler found in \$PATH
4206See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4207
ce2cded5 4208# Provide some information about the compiler.
81ecdfbb
RW
4209$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4210set X $ac_compile
4211ac_compiler=$2
4212for ac_option in --version -v -V -qversion; do
4213 { { ac_try="$ac_compiler $ac_option >&5"
4214case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219$as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4221 ac_status=$?
81ecdfbb
RW
4222 if test -s conftest.err; then
4223 sed '10a\
4224... rest of stderr output deleted ...
4225 10q' conftest.err >conftest.er1
4226 cat conftest.er1 >&5
4227 rm -f conftest.er1 conftest.err
4228 fi
4229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }
4231done
ac48eca1 4232
81ecdfbb
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4234$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4235if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
d7040cdb 4237else
81ecdfbb 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4239/* end confdefs.h. */
c8615825 4240
ce2cded5
L
4241int
4242main ()
4243{
4244#ifndef __GNUC__
4245 choke me
4246#endif
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
81ecdfbb 4252if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4253 ac_compiler_gnu=yes
d7040cdb 4254else
81ecdfbb 4255 ac_compiler_gnu=no
d7040cdb 4256fi
81ecdfbb 4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4258ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4259
ce2cded5 4260fi
81ecdfbb
RW
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4262$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4263if test $ac_compiler_gnu = yes; then
4264 GCC=yes
4265else
4266 GCC=
4267fi
ce2cded5
L
4268ac_test_CFLAGS=${CFLAGS+set}
4269ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4271$as_echo_n "checking whether $CC accepts -g... " >&6; }
4272if test "${ac_cv_prog_cc_g+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274else
4275 ac_save_c_werror_flag=$ac_c_werror_flag
4276 ac_c_werror_flag=yes
4277 ac_cv_prog_cc_g=no
4278 CFLAGS="-g"
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4280/* end confdefs.h. */
d7040cdb 4281
ce2cded5
L
4282int
4283main ()
4284{
d7040cdb 4285
ce2cded5
L
4286 ;
4287 return 0;
4288}
4289_ACEOF
81ecdfbb 4290if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4291 ac_cv_prog_cc_g=yes
4292else
81ecdfbb
RW
4293 CFLAGS=""
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295/* end confdefs.h. */
4296
4297int
4298main ()
4299{
4300
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305if ac_fn_c_try_compile "$LINENO"; then :
4306
4307else
4308 ac_c_werror_flag=$ac_save_c_werror_flag
4309 CFLAGS="-g"
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311/* end confdefs.h. */
d70c5fc7 4312
81ecdfbb
RW
4313int
4314main ()
4315{
4316
4317 ;
4318 return 0;
4319}
4320_ACEOF
4321if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_cv_prog_cc_g=yes
4323fi
4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4325fi
81ecdfbb 4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4327fi
81ecdfbb
RW
4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_c_werror_flag=$ac_save_c_werror_flag
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4332$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4333if test "$ac_test_CFLAGS" = set; then
4334 CFLAGS=$ac_save_CFLAGS
4335elif test $ac_cv_prog_cc_g = yes; then
4336 if test "$GCC" = yes; then
4337 CFLAGS="-g -O2"
4338 else
4339 CFLAGS="-g"
4340 fi
ac48eca1 4341else
ce2cded5
L
4342 if test "$GCC" = yes; then
4343 CFLAGS="-O2"
4344 else
4345 CFLAGS=
4346 fi
ac48eca1 4347fi
81ecdfbb
RW
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4349$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4350if test "${ac_cv_prog_cc_c89+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
ac48eca1 4352else
81ecdfbb 4353 ac_cv_prog_cc_c89=no
ce2cded5 4354ac_save_CC=$CC
81ecdfbb 4355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4356/* end confdefs.h. */
4357#include <stdarg.h>
4358#include <stdio.h>
4359#include <sys/types.h>
4360#include <sys/stat.h>
4361/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4362struct buf { int x; };
4363FILE * (*rcsopen) (struct buf *, struct stat *, int);
4364static char *e (p, i)
4365 char **p;
4366 int i;
4367{
4368 return p[i];
4369}
4370static char *f (char * (*g) (char **, int), char **p, ...)
4371{
4372 char *s;
4373 va_list v;
4374 va_start (v,p);
4375 s = g (p, va_arg (v,int));
4376 va_end (v);
4377 return s;
4378}
4379
4380/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4381 function prototypes and stuff, but not '\xHH' hex character constants.
4382 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4383 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4385 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4386 that's true only with -std. */
ce2cded5
L
4387int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4388
81ecdfbb
RW
4389/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4390 inside strings and character constants. */
4391#define FOO(x) 'x'
4392int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4393
ce2cded5
L
4394int test (int i, double x);
4395struct s1 {int (*f) (int a);};
4396struct s2 {int (*f) (double a);};
4397int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4398int argc;
4399char **argv;
4400int
4401main ()
4402{
4403return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4404 ;
4405 return 0;
4406}
4407_ACEOF
81ecdfbb
RW
4408for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4410do
4411 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4412 if ac_fn_c_try_compile "$LINENO"; then :
4413 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4414fi
81ecdfbb
RW
4415rm -f core conftest.err conftest.$ac_objext
4416 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4417done
81ecdfbb 4418rm -f conftest.$ac_ext
ce2cded5
L
4419CC=$ac_save_CC
4420
4421fi
81ecdfbb
RW
4422# AC_CACHE_VAL
4423case "x$ac_cv_prog_cc_c89" in
4424 x)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4426$as_echo "none needed" >&6; } ;;
4427 xno)
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4429$as_echo "unsupported" >&6; } ;;
ce2cded5 4430 *)
81ecdfbb
RW
4431 CC="$CC $ac_cv_prog_cc_c89"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4433$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4434esac
81ecdfbb 4435if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4436
ce2cded5 4437fi
d7040cdb 4438
ce2cded5
L
4439ac_ext=c
4440ac_cpp='$CPP $CPPFLAGS'
4441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4444
7357c5b6
AM
4445ac_ext=c
4446ac_cpp='$CPP $CPPFLAGS'
4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4451$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4452# On Suns, sometimes $CPP names a directory.
4453if test -n "$CPP" && test -d "$CPP"; then
4454 CPP=
4455fi
4456if test -z "$CPP"; then
81ecdfbb
RW
4457 if test "${ac_cv_prog_CPP+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
7357c5b6
AM
4459else
4460 # Double quotes because CPP needs to be expanded
4461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462 do
4463 ac_preproc_ok=false
4464for ac_c_preproc_warn_flag in '' yes
4465do
4466 # Use a header file that comes with gcc, so configuring glibc
4467 # with a fresh cross-compiler works.
4468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469 # <limits.h> exists even on freestanding compilers.
4470 # On the NeXT, cc -E runs the code through the compiler's parser,
4471 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4473/* end confdefs.h. */
4474#ifdef __STDC__
4475# include <limits.h>
4476#else
4477# include <assert.h>
4478#endif
4479 Syntax error
4480_ACEOF
81ecdfbb 4481if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4482
81ecdfbb 4483else
7357c5b6
AM
4484 # Broken: fails on valid input.
4485continue
4486fi
4487rm -f conftest.err conftest.$ac_ext
d7040cdb 4488
81ecdfbb 4489 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4490 # can be detected and how.
81ecdfbb 4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4492/* end confdefs.h. */
4493#include <ac_nonexistent.h>
4494_ACEOF
81ecdfbb 4495if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4496 # Broken: success on invalid input.
4497continue
4498else
7357c5b6
AM
4499 # Passes both tests.
4500ac_preproc_ok=:
4501break
4502fi
4503rm -f conftest.err conftest.$ac_ext
d7040cdb 4504
7357c5b6
AM
4505done
4506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507rm -f conftest.err conftest.$ac_ext
81ecdfbb 4508if $ac_preproc_ok; then :
7357c5b6
AM
4509 break
4510fi
d7040cdb 4511
7357c5b6
AM
4512 done
4513 ac_cv_prog_CPP=$CPP
d7040cdb 4514
7357c5b6
AM
4515fi
4516 CPP=$ac_cv_prog_CPP
4517else
4518 ac_cv_prog_CPP=$CPP
4519fi
81ecdfbb
RW
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4521$as_echo "$CPP" >&6; }
7357c5b6
AM
4522ac_preproc_ok=false
4523for ac_c_preproc_warn_flag in '' yes
4524do
4525 # Use a header file that comes with gcc, so configuring glibc
4526 # with a fresh cross-compiler works.
4527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528 # <limits.h> exists even on freestanding compilers.
4529 # On the NeXT, cc -E runs the code through the compiler's parser,
4530 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4532/* end confdefs.h. */
4533#ifdef __STDC__
4534# include <limits.h>
4535#else
4536# include <assert.h>
4537#endif
4538 Syntax error
4539_ACEOF
81ecdfbb 4540if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4541
81ecdfbb 4542else
7357c5b6
AM
4543 # Broken: fails on valid input.
4544continue
4545fi
4546rm -f conftest.err conftest.$ac_ext
d7040cdb 4547
81ecdfbb 4548 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4549 # can be detected and how.
81ecdfbb 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4551/* end confdefs.h. */
4552#include <ac_nonexistent.h>
4553_ACEOF
81ecdfbb 4554if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4555 # Broken: success on invalid input.
4556continue
4557else
7357c5b6
AM
4558 # Passes both tests.
4559ac_preproc_ok=:
4560break
4561fi
4562rm -f conftest.err conftest.$ac_ext
d7040cdb 4563
7357c5b6
AM
4564done
4565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4567if $ac_preproc_ok; then :
4568
7357c5b6 4569else
81ecdfbb
RW
4570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572as_fn_error "C preprocessor \"$CPP\" fails sanity check
4573See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4574fi
ac48eca1 4575
7357c5b6
AM
4576ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4581
ac48eca1 4582
81ecdfbb
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4584$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4585if test "${ac_cv_path_GREP+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
7357c5b6 4587else
81ecdfbb
RW
4588 if test -z "$GREP"; then
4589 ac_path_GREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in grep ggrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4600# Check for GNU ac_path_GREP and select it if it is found.
4601 # Check for GNU $ac_path_GREP
4602case `"$ac_path_GREP" --version 2>&1` in
4603*GNU*)
4604 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605*)
4606 ac_count=0
4607 $as_echo_n 0123456789 >"conftest.in"
4608 while :
4609 do
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 $as_echo 'GREP' >> "conftest.nl"
4614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 as_fn_arith $ac_count + 1 && ac_count=$as_val
4617 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_GREP="$ac_path_GREP"
4620 ac_path_GREP_max=$ac_count
7357c5b6 4621 fi
81ecdfbb
RW
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4624 done
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626esac
4627
4628 $ac_path_GREP_found && break 3
4629 done
4630 done
4631 done
4632IFS=$as_save_IFS
4633 if test -z "$ac_cv_path_GREP"; then
4634 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 fi
4636else
4637 ac_cv_path_GREP=$GREP
7357c5b6 4638fi
81ecdfbb
RW
4639
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4642$as_echo "$ac_cv_path_GREP" >&6; }
4643 GREP="$ac_cv_path_GREP"
ac48eca1 4644
d7040cdb 4645
81ecdfbb
RW
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4647$as_echo_n "checking for egrep... " >&6; }
4648if test "${ac_cv_path_EGREP+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
7357c5b6 4650else
81ecdfbb
RW
4651 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4652 then ac_cv_path_EGREP="$GREP -E"
4653 else
4654 if test -z "$EGREP"; then
4655 ac_path_EGREP_found=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_prog in egrep; do
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4665 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4666# Check for GNU ac_path_EGREP and select it if it is found.
4667 # Check for GNU $ac_path_EGREP
4668case `"$ac_path_EGREP" --version 2>&1` in
4669*GNU*)
4670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671*)
4672 ac_count=0
4673 $as_echo_n 0123456789 >"conftest.in"
4674 while :
4675 do
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo 'EGREP' >> "conftest.nl"
4680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682 as_fn_arith $ac_count + 1 && ac_count=$as_val
4683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_EGREP="$ac_path_EGREP"
4686 ac_path_EGREP_max=$ac_count
4687 fi
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4690 done
4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692esac
4693
4694 $ac_path_EGREP_found && break 3
4695 done
4696 done
4697 done
4698IFS=$as_save_IFS
4699 if test -z "$ac_cv_path_EGREP"; then
4700 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 fi
4702else
4703 ac_cv_path_EGREP=$EGREP
4704fi
4705
4706 fi
4707fi
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4709$as_echo "$ac_cv_path_EGREP" >&6; }
4710 EGREP="$ac_cv_path_EGREP"
4711
4712
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4714$as_echo_n "checking for ANSI C header files... " >&6; }
4715if test "${ac_cv_header_stdc+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4719/* end confdefs.h. */
4720#include <stdlib.h>
4721#include <stdarg.h>
4722#include <string.h>
4723#include <float.h>
d7040cdb 4724
7357c5b6
AM
4725int
4726main ()
4727{
d7040cdb 4728
7357c5b6
AM
4729 ;
4730 return 0;
4731}
4732_ACEOF
81ecdfbb 4733if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4734 ac_cv_header_stdc=yes
4735else
81ecdfbb 4736 ac_cv_header_stdc=no
7357c5b6 4737fi
81ecdfbb 4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4739
7357c5b6
AM
4740if test $ac_cv_header_stdc = yes; then
4741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4743/* end confdefs.h. */
4744#include <string.h>
d7040cdb 4745
7357c5b6
AM
4746_ACEOF
4747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4748 $EGREP "memchr" >/dev/null 2>&1; then :
4749
ce2cded5 4750else
7357c5b6
AM
4751 ac_cv_header_stdc=no
4752fi
4753rm -f conftest*
d7040cdb 4754
7357c5b6 4755fi
d7040cdb 4756
7357c5b6
AM
4757if test $ac_cv_header_stdc = yes; then
4758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4760/* end confdefs.h. */
4761#include <stdlib.h>
ac48eca1 4762
7357c5b6
AM
4763_ACEOF
4764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4765 $EGREP "free" >/dev/null 2>&1; then :
4766
7357c5b6
AM
4767else
4768 ac_cv_header_stdc=no
4769fi
4770rm -f conftest*
d7040cdb 4771
7357c5b6 4772fi
d7040cdb 4773
7357c5b6
AM
4774if test $ac_cv_header_stdc = yes; then
4775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4776 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4777 :
4778else
81ecdfbb 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4780/* end confdefs.h. */
4781#include <ctype.h>
81ecdfbb 4782#include <stdlib.h>
7357c5b6
AM
4783#if ((' ' & 0x0FF) == 0x020)
4784# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4785# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4786#else
4787# define ISLOWER(c) \
4788 (('a' <= (c) && (c) <= 'i') \
4789 || ('j' <= (c) && (c) <= 'r') \
4790 || ('s' <= (c) && (c) <= 'z'))
4791# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4792#endif
d7040cdb 4793
7357c5b6
AM
4794#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4795int
4796main ()
4797{
4798 int i;
4799 for (i = 0; i < 256; i++)
4800 if (XOR (islower (i), ISLOWER (i))
4801 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4802 return 2;
4803 return 0;
7357c5b6
AM
4804}
4805_ACEOF
81ecdfbb 4806if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4807
81ecdfbb
RW
4808else
4809 ac_cv_header_stdc=no
7357c5b6 4810fi
81ecdfbb
RW
4811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4812 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4813fi
81ecdfbb 4814
7357c5b6
AM
4815fi
4816fi
81ecdfbb
RW
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4818$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4819if test $ac_cv_header_stdc = yes; then
d7040cdb 4820
81ecdfbb 4821$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4822
7357c5b6 4823fi
d7040cdb 4824
7357c5b6 4825# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4826for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4827 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4828do :
4829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4830ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4831"
4832eval as_val=\$$as_ac_Header
4833 if test "x$as_val" = x""yes; then :
7357c5b6 4834 cat >>confdefs.h <<_ACEOF
81ecdfbb 4835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4836_ACEOF
ce2cded5 4837
7357c5b6 4838fi
ce2cded5 4839
7357c5b6 4840done
ce2cded5
L
4841
4842
4843
81ecdfbb
RW
4844 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4845if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4846 MINIX=yes
4847else
4848 MINIX=
4849fi
d7040cdb
SE
4850
4851
7357c5b6 4852 if test "$MINIX" = yes; then
d7040cdb 4853
81ecdfbb 4854$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
4855
4856
81ecdfbb 4857$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4858
4859
81ecdfbb 4860$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4861
7357c5b6 4862 fi
d7040cdb
SE
4863
4864
81ecdfbb
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4866$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4867if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
ac48eca1 4869else
81ecdfbb 4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4871/* end confdefs.h. */
ac48eca1 4872
7357c5b6
AM
4873# define __EXTENSIONS__ 1
4874 $ac_includes_default
4875int
4876main ()
4877{
13b2be9c 4878
7357c5b6
AM
4879 ;
4880 return 0;
4881}
4882_ACEOF
81ecdfbb 4883if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4884 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4885else
81ecdfbb 4886 ac_cv_safe_to_define___extensions__=no
d6d788bd 4887fi
81ecdfbb 4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4889fi
81ecdfbb
RW
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4891$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4892 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4893 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 4894
81ecdfbb 4895 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 4896
81ecdfbb 4897 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 4898
81ecdfbb 4899 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 4900
81ecdfbb 4901 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 4902
a74801ba 4903
d053aef8 4904
81ecdfbb 4905
da2f07f1 4906
718a6fd8
SE
4907case `pwd` in
4908 *\ * | *\ *)
81ecdfbb
RW
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4910$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4911esac
13b2be9c 4912
252b5132 4913
7357c5b6 4914
f2c621e4
AS
4915macro_version='2.2.7a'
4916macro_revision='1.3134'
7357c5b6
AM
4917
4918
4919
4920
4921
4922
7357c5b6
AM
4923
4924
4925
4926
4927
4928
4929
718a6fd8 4930ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4931
3725885a
RW
4932# Backslashify metacharacters that are still active within
4933# double-quoted strings.
4934sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4935
4936# Same as above, but do not quote variable references.
4937double_quote_subst='s/\(["`\\]\)/\\\1/g'
4938
4939# Sed substitution to delay expansion of an escaped shell variable in a
4940# double_quote_subst'ed string.
4941delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4942
4943# Sed substitution to delay expansion of an escaped single quote.
4944delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4945
4946# Sed substitution to avoid accidental globbing in evaled expressions
4947no_glob_subst='s/\*/\\\*/g'
4948
4949ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4950ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4951ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4952
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4954$as_echo_n "checking how to print strings... " >&6; }
4955# Test print first, because it will be a builtin if present.
f2c621e4 4956if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4957 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4958 ECHO='print -r --'
4959elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4960 ECHO='printf %s\n'
4961else
4962 # Use this function as a fallback that always works.
4963 func_fallback_echo ()
4964 {
4965 eval 'cat <<_LTECHO_EOF
4966$1
4967_LTECHO_EOF'
4968 }
4969 ECHO='func_fallback_echo'
4970fi
4971
4972# func_echo_all arg...
4973# Invoke $ECHO with all args, space-separated.
4974func_echo_all ()
4975{
4976 $ECHO ""
4977}
4978
4979case "$ECHO" in
4980 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4981$as_echo "printf" >&6; } ;;
4982 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4983$as_echo "print -r" >&6; } ;;
4984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4985$as_echo "cat" >&6; } ;;
4986esac
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
81ecdfbb
RW
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5002$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5003if test "${ac_cv_path_SED+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5007 for ac_i in 1 2 3 4 5 6 7; do
5008 ac_script="$ac_script$as_nl$ac_script"
5009 done
5010 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5011 { ac_script=; unset ac_script;}
5012 if test -z "$SED"; then
5013 ac_path_SED_found=false
5014 # Loop through the user's path and test for each of PROGNAME-LIST
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5016for as_dir in $PATH
5017do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
81ecdfbb 5020 for ac_prog in sed gsed; do
7357c5b6 5021 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5022 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5023 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5024# Check for GNU ac_path_SED and select it if it is found.
5025 # Check for GNU $ac_path_SED
5026case `"$ac_path_SED" --version 2>&1` in
5027*GNU*)
5028 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5029*)
5030 ac_count=0
5031 $as_echo_n 0123456789 >"conftest.in"
5032 while :
5033 do
5034 cat "conftest.in" "conftest.in" >"conftest.tmp"
5035 mv "conftest.tmp" "conftest.in"
5036 cp "conftest.in" "conftest.nl"
5037 $as_echo '' >> "conftest.nl"
5038 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040 as_fn_arith $ac_count + 1 && ac_count=$as_val
5041 if test $ac_count -gt ${ac_path_SED_max-0}; then
5042 # Best one so far, save it but keep looking for a better one
5043 ac_cv_path_SED="$ac_path_SED"
5044 ac_path_SED_max=$ac_count
5045 fi
5046 # 10*(2^10) chars as input seems more than enough
5047 test $ac_count -gt 10 && break
5048 done
5049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050esac
5051
5052 $ac_path_SED_found && break 3
7357c5b6
AM
5053 done
5054 done
81ecdfbb 5055 done
7357c5b6 5056IFS=$as_save_IFS
81ecdfbb
RW
5057 if test -z "$ac_cv_path_SED"; then
5058 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5059 fi
81ecdfbb
RW
5060else
5061 ac_cv_path_SED=$SED
7357c5b6
AM
5062fi
5063
81ecdfbb
RW
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5066$as_echo "$ac_cv_path_SED" >&6; }
5067 SED="$ac_cv_path_SED"
5068 rm -f conftest.sed
7357c5b6
AM
5069
5070test -z "$SED" && SED=sed
5071Xsed="$SED -e 1s/^X//"
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
81ecdfbb
RW
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5084$as_echo_n "checking for fgrep... " >&6; }
5085if test "${ac_cv_path_FGREP+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
7357c5b6 5087else
81ecdfbb
RW
5088 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5089 then ac_cv_path_FGREP="$GREP -F"
5090 else
5091 if test -z "$FGREP"; then
5092 ac_path_FGREP_found=false
5093 # Loop through the user's path and test for each of PROGNAME-LIST
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_prog in fgrep; do
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5102 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5103# Check for GNU ac_path_FGREP and select it if it is found.
5104 # Check for GNU $ac_path_FGREP
5105case `"$ac_path_FGREP" --version 2>&1` in
5106*GNU*)
5107 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5108*)
5109 ac_count=0
5110 $as_echo_n 0123456789 >"conftest.in"
5111 while :
5112 do
5113 cat "conftest.in" "conftest.in" >"conftest.tmp"
5114 mv "conftest.tmp" "conftest.in"
5115 cp "conftest.in" "conftest.nl"
5116 $as_echo 'FGREP' >> "conftest.nl"
5117 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119 as_fn_arith $ac_count + 1 && ac_count=$as_val
5120 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5121 # Best one so far, save it but keep looking for a better one
5122 ac_cv_path_FGREP="$ac_path_FGREP"
5123 ac_path_FGREP_max=$ac_count
7357c5b6 5124 fi
81ecdfbb
RW
5125 # 10*(2^10) chars as input seems more than enough
5126 test $ac_count -gt 10 && break
5127 done
5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129esac
5130
5131 $ac_path_FGREP_found && break 3
5132 done
5133 done
5134 done
5135IFS=$as_save_IFS
5136 if test -z "$ac_cv_path_FGREP"; then
5137 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138 fi
5139else
5140 ac_cv_path_FGREP=$FGREP
7357c5b6 5141fi
81ecdfbb
RW
5142
5143 fi
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5146$as_echo "$ac_cv_path_FGREP" >&6; }
5147 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5148
5149
5150test -z "$GREP" && GREP=grep
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
81ecdfbb
RW
5170# Check whether --with-gnu-ld was given.
5171if test "${with_gnu_ld+set}" = set; then :
5172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5173else
5174 with_gnu_ld=no
81ecdfbb
RW
5175fi
5176
ce2cded5
L
5177ac_prog=ld
5178if test "$GCC" = yes; then
5179 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5181$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5182 case $host in
5183 *-*-mingw*)
5184 # gcc leaves a trailing carriage return which upsets mingw
5185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5186 *)
5187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5188 esac
5189 case $ac_prog in
5190 # Accept absolute paths.
5191 [\\/]* | ?:[\\/]*)
5192 re_direlt='/[^/][^/]*/\.\./'
5193 # Canonicalize the pathname of ld
5194 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5195 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5196 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5197 done
5198 test -z "$LD" && LD="$ac_prog"
5199 ;;
5200 "")
5201 # If it fails, then pretend we aren't using GCC.
5202 ac_prog=ld
5203 ;;
5204 *)
5205 # If it is relative, then search for the first ld in PATH.
5206 with_gnu_ld=unknown
5207 ;;
5208 esac
5209elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5211$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5212else
81ecdfbb
RW
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5214$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5215fi
81ecdfbb
RW
5216if test "${lt_cv_path_LD+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
ce2cded5
L
5218else
5219 if test -z "$LD"; then
5220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5221 for ac_dir in $PATH; do
5222 IFS="$lt_save_ifs"
5223 test -z "$ac_dir" && ac_dir=.
5224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225 lt_cv_path_LD="$ac_dir/$ac_prog"
5226 # Check to see if the program is GNU ld. I'd rather use --version,
5227 # but apparently some variants of GNU ld only accept -v.
5228 # Break only if it was the GNU/non-GNU ld that we prefer.
5229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5230 *GNU* | *'with BFD'*)
5231 test "$with_gnu_ld" != no && break
5232 ;;
5233 *)
5234 test "$with_gnu_ld" != yes && break
5235 ;;
5236 esac
5237 fi
5238 done
5239 IFS="$lt_save_ifs"
5240else
5241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5242fi
5243fi
5244
5245LD="$lt_cv_path_LD"
5246if test -n "$LD"; then
81ecdfbb
RW
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5248$as_echo "$LD" >&6; }
ce2cded5 5249else
81ecdfbb
RW
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251$as_echo "no" >&6; }
ce2cded5 5252fi
81ecdfbb
RW
5253test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5255$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5256if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
ce2cded5
L
5258else
5259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5260case `$LD -v 2>&1 </dev/null` in
5261*GNU* | *'with BFD'*)
5262 lt_cv_prog_gnu_ld=yes
5263 ;;
5264*)
5265 lt_cv_prog_gnu_ld=no
5266 ;;
5267esac
5268fi
81ecdfbb
RW
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5270$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5271with_gnu_ld=$lt_cv_prog_gnu_ld
5272
5273
5274
5275
5276
5277
5278
5279
5280
81ecdfbb
RW
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5282$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5283if test "${lt_cv_path_NM+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
ce2cded5
L
5285else
5286 if test -n "$NM"; then
5287 # Let the user override the test.
5288 lt_cv_path_NM="$NM"
5289else
5290 lt_nm_to_check="${ac_tool_prefix}nm"
5291 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5292 lt_nm_to_check="$lt_nm_to_check nm"
5293 fi
5294 for lt_tmp_nm in $lt_nm_to_check; do
5295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5297 IFS="$lt_save_ifs"
5298 test -z "$ac_dir" && ac_dir=.
5299 tmp_nm="$ac_dir/$lt_tmp_nm"
5300 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5301 # Check to see if the nm accepts a BSD-compat flag.
5302 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5303 # nm: unknown option "B" ignored
5304 # Tru64's nm complains that /dev/null is an invalid object file
5305 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5306 */dev/null* | *'Invalid file or object type'*)
5307 lt_cv_path_NM="$tmp_nm -B"
5308 break
5309 ;;
5310 *)
5311 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5312 */dev/null*)
5313 lt_cv_path_NM="$tmp_nm -p"
5314 break
5315 ;;
5316 *)
5317 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5318 continue # so that we can try to find one that supports BSD flags
5319 ;;
5320 esac
5321 ;;
5322 esac
5323 fi
5324 done
5325 IFS="$lt_save_ifs"
5326 done
5327 : ${lt_cv_path_NM=no}
5328fi
5329fi
81ecdfbb
RW
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5331$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5332if test "$lt_cv_path_NM" != "no"; then
5333 NM="$lt_cv_path_NM"
5334else
5335 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5336 if test -n "$DUMPBIN"; then :
5337 # Let the user override the test.
5338 else
5339 if test -n "$ac_tool_prefix"; then
5340 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5341 do
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
5346if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
d7040cdb 5348else
ce2cded5
L
5349 if test -n "$DUMPBIN"; then
5350 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5359 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5361 break 2
d70c5fc7 5362 fi
d7040cdb 5363done
81ecdfbb
RW
5364 done
5365IFS=$as_save_IFS
d70c5fc7 5366
d7040cdb
SE
5367fi
5368fi
ce2cded5
L
5369DUMPBIN=$ac_cv_prog_DUMPBIN
5370if test -n "$DUMPBIN"; then
81ecdfbb
RW
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5372$as_echo "$DUMPBIN" >&6; }
bedf545c 5373else
81ecdfbb
RW
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
d7040cdb 5376fi
13b2be9c 5377
81ecdfbb 5378
ce2cded5
L
5379 test -n "$DUMPBIN" && break
5380 done
5381fi
5382if test -z "$DUMPBIN"; then
5383 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5384 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5385do
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389$as_echo_n "checking for $ac_word... " >&6; }
5390if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
d7040cdb 5392else
ce2cded5
L
5393 if test -n "$ac_ct_DUMPBIN"; then
5394 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5395else
5396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH
5398do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5403 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5405 break 2
5406 fi
5407done
81ecdfbb
RW
5408 done
5409IFS=$as_save_IFS
ce2cded5
L
5410
5411fi
5412fi
5413ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5414if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5416$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5417else
81ecdfbb
RW
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419$as_echo "no" >&6; }
d7040cdb
SE
5420fi
5421
81ecdfbb 5422
ce2cded5
L
5423 test -n "$ac_ct_DUMPBIN" && break
5424done
13b2be9c 5425
81ecdfbb
RW
5426 if test "x$ac_ct_DUMPBIN" = x; then
5427 DUMPBIN=":"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430yes:)
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433ac_tool_warned=yes ;;
5434esac
5435 DUMPBIN=$ac_ct_DUMPBIN
5436 fi
ce2cded5 5437fi
13b2be9c 5438
3725885a
RW
5439 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5440 *COFF*)
5441 DUMPBIN="$DUMPBIN -symbols"
5442 ;;
5443 *)
5444 DUMPBIN=:
5445 ;;
5446 esac
5447 fi
bedf545c 5448
ce2cded5
L
5449 if test "$DUMPBIN" != ":"; then
5450 NM="$DUMPBIN"
5451 fi
5452fi
5453test -z "$NM" && NM=nm
6840198f 5454
13b2be9c 5455
ac48eca1 5456
d7040cdb 5457
ce2cded5
L
5458
5459
81ecdfbb
RW
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5461$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5462if test "${lt_cv_nm_interface+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
ce2cded5
L
5464else
5465 lt_cv_nm_interface="BSD nm"
5466 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5467 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5468 (eval "$ac_compile" 2>conftest.err)
5469 cat conftest.err >&5
3725885a 5470 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5471 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5472 cat conftest.err >&5
3725885a 5473 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5474 cat conftest.out >&5
5475 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5476 lt_cv_nm_interface="MS dumpbin"
5477 fi
5478 rm -f conftest*
5479fi
81ecdfbb
RW
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5481$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5482
81ecdfbb
RW
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5484$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5485LN_S=$as_ln_s
5486if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488$as_echo "yes" >&6; }
ce2cded5 5489else
81ecdfbb
RW
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5491$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5492fi
5493
5494# find the maximum length of command line arguments
81ecdfbb
RW
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5496$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5497if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
ce2cded5
L
5499else
5500 i=0
5501 teststring="ABCD"
5502
5503 case $build_os in
5504 msdosdjgpp*)
5505 # On DJGPP, this test can blow up pretty badly due to problems in libc
5506 # (any single argument exceeding 2000 bytes causes a buffer overrun
5507 # during glob expansion). Even if it were fixed, the result of this
5508 # check would be larger than it should be.
5509 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5510 ;;
5511
5512 gnu*)
5513 # Under GNU Hurd, this test is not required because there is
5514 # no limit to the length of command line arguments.
5515 # Libtool will interpret -1 as no limit whatsoever
5516 lt_cv_sys_max_cmd_len=-1;
5517 ;;
5518
718a6fd8 5519 cygwin* | mingw* | cegcc*)
ce2cded5
L
5520 # On Win9x/ME, this test blows up -- it succeeds, but takes
5521 # about 5 minutes as the teststring grows exponentially.
5522 # Worse, since 9x/ME are not pre-emptively multitasking,
5523 # you end up with a "frozen" computer, even though with patience
5524 # the test eventually succeeds (with a max line length of 256k).
5525 # Instead, let's just punt: use the minimum linelength reported by
5526 # all of the supported platforms: 8192 (on NT/2K/XP).
5527 lt_cv_sys_max_cmd_len=8192;
5528 ;;
5529
3725885a
RW
5530 mint*)
5531 # On MiNT this can take a long time and run out of memory.
5532 lt_cv_sys_max_cmd_len=8192;
5533 ;;
5534
ce2cded5
L
5535 amigaos*)
5536 # On AmigaOS with pdksh, this test takes hours, literally.
5537 # So we just punt and use a minimum line length of 8192.
5538 lt_cv_sys_max_cmd_len=8192;
5539 ;;
5540
5541 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5542 # This has been around since 386BSD, at least. Likely further.
5543 if test -x /sbin/sysctl; then
5544 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5545 elif test -x /usr/sbin/sysctl; then
5546 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5547 else
5548 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5549 fi
5550 # And add a safety zone
5551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5553 ;;
5554
5555 interix*)
5556 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557 lt_cv_sys_max_cmd_len=196608
5558 ;;
5559
5560 osf*)
5561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5563 # nice to cause kernel panics so lets avoid the loop below.
5564 # First set a reasonable default.
5565 lt_cv_sys_max_cmd_len=16384
5566 #
5567 if test -x /sbin/sysconfig; then
5568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5569 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5570 esac
5571 fi
5572 ;;
5573 sco3.2v5*)
5574 lt_cv_sys_max_cmd_len=102400
5575 ;;
5576 sysv5* | sco5v6* | sysv4.2uw2*)
5577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5578 if test -n "$kargmax"; then
5579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5580 else
5581 lt_cv_sys_max_cmd_len=32768
5582 fi
d7040cdb
SE
5583 ;;
5584 *)
718a6fd8
SE
5585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5586 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589 else
5590 # Make teststring a little bigger before we do anything with it.
5591 # a 1K string should be a reasonable start.
5592 for i in 1 2 3 4 5 6 7 8 ; do
5593 teststring=$teststring$teststring
5594 done
5595 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5596 # If test is not a shell built-in, we'll probably end up computing a
5597 # maximum length that is only half of the actual maximum length, but
5598 # we can't tell.
3725885a
RW
5599 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5600 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5601 test $i != 17 # 1/2 MB should be enough
5602 do
5603 i=`expr $i + 1`
5604 teststring=$teststring$teststring
5605 done
5606 # Only check the string length outside the loop.
5607 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5608 teststring=
5609 # Add a significant safety factor because C++ compilers can tack on
5610 # massive amounts of additional arguments before passing them to the
5611 # linker. It appears as though 1/2 is a usable value.
5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5613 fi
d7040cdb
SE
5614 ;;
5615 esac
252b5132 5616
ce2cded5 5617fi
d6d788bd 5618
ce2cded5 5619if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5621$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5622else
81ecdfbb
RW
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5624$as_echo "none" >&6; }
ce2cded5
L
5625fi
5626max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5627
d6d788bd 5628
13b2be9c 5629
13b2be9c 5630
bedf545c 5631
252b5132 5632
ce2cded5
L
5633: ${CP="cp -f"}
5634: ${MV="mv -f"}
5635: ${RM="rm -f"}
d6d788bd 5636
81ecdfbb
RW
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5638$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
5639# Try some XSI features
5640xsi_shell=no
5641( _lt_dummy="a/b/c"
f2c621e4
AS
5642 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5643 = c,a/b,, \
718a6fd8
SE
5644 && eval 'test $(( 1 + 1 )) -eq 2 \
5645 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 5646 && xsi_shell=yes
81ecdfbb
RW
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5648$as_echo "$xsi_shell" >&6; }
bedf545c 5649
bedf545c 5650
81ecdfbb
RW
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5652$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
5653lt_shell_append=no
5654( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5655 >/dev/null 2>&1 \
5656 && lt_shell_append=yes
81ecdfbb
RW
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5658$as_echo "$lt_shell_append" >&6; }
252b5132 5659
d6d788bd 5660
ce2cded5
L
5661if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5662 lt_unset=unset
5663else
5664 lt_unset=false
5665fi
13b2be9c
DJ
5666
5667
5668
5669
d6d788bd 5670
ce2cded5
L
5671# test EBCDIC or ASCII
5672case `echo X|tr X '\101'` in
5673 A) # ASCII based system
5674 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5675 lt_SP2NL='tr \040 \012'
5676 lt_NL2SP='tr \015\012 \040\040'
5677 ;;
5678 *) # EBCDIC based system
5679 lt_SP2NL='tr \100 \n'
5680 lt_NL2SP='tr \r\n \100\100'
5681 ;;
5682esac
c43a438d 5683
c43a438d 5684
c43a438d 5685
252b5132 5686
ad22bfe8 5687
1ad12f97 5688
1ad12f97 5689
9e9b66a9 5690
1ad12f97 5691
81ecdfbb
RW
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5693$as_echo_n "checking for $LD option to reload object files... " >&6; }
5694if test "${lt_cv_ld_reload_flag+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
ce2cded5
L
5696else
5697 lt_cv_ld_reload_flag='-r'
5698fi
81ecdfbb
RW
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5700$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
5701reload_flag=$lt_cv_ld_reload_flag
5702case $reload_flag in
5703"" | " "*) ;;
5704*) reload_flag=" $reload_flag" ;;
5705esac
5706reload_cmds='$LD$reload_flag -o $output$reload_objs'
5707case $host_os in
5708 darwin*)
5709 if test "$GCC" = yes; then
5710 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5711 else
5712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5713 fi
5714 ;;
5715esac
a541e3ce 5716
9e9b66a9 5717
a2d91340 5718
d6d788bd 5719
9e9b66a9
AM
5720
5721
5722
d6d788bd 5723
252b5132 5724
718a6fd8
SE
5725if test -n "$ac_tool_prefix"; then
5726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5727set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
718a6fd8
SE
5732else
5733 if test -n "$OBJDUMP"; then
5734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5743 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5745 break 2
5746 fi
5747done
81ecdfbb
RW
5748 done
5749IFS=$as_save_IFS
718a6fd8
SE
5750
5751fi
5752fi
5753OBJDUMP=$ac_cv_prog_OBJDUMP
5754if test -n "$OBJDUMP"; then
81ecdfbb
RW
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5756$as_echo "$OBJDUMP" >&6; }
718a6fd8 5757else
81ecdfbb
RW
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
718a6fd8
SE
5760fi
5761
81ecdfbb 5762
718a6fd8
SE
5763fi
5764if test -z "$ac_cv_prog_OBJDUMP"; then
5765 ac_ct_OBJDUMP=$OBJDUMP
5766 # Extract the first word of "objdump", so it can be a program name with args.
5767set dummy objdump; ac_word=$2
81ecdfbb
RW
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
718a6fd8
SE
5772else
5773 if test -n "$ac_ct_OBJDUMP"; then
5774 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5783 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5785 break 2
5786 fi
5787done
81ecdfbb
RW
5788 done
5789IFS=$as_save_IFS
718a6fd8 5790
718a6fd8
SE
5791fi
5792fi
5793ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5794if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5796$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5797else
81ecdfbb
RW
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
718a6fd8
SE
5800fi
5801
81ecdfbb
RW
5802 if test "x$ac_ct_OBJDUMP" = x; then
5803 OBJDUMP="false"
5804 else
5805 case $cross_compiling:$ac_tool_warned in
5806yes:)
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809ac_tool_warned=yes ;;
5810esac
5811 OBJDUMP=$ac_ct_OBJDUMP
5812 fi
718a6fd8
SE
5813else
5814 OBJDUMP="$ac_cv_prog_OBJDUMP"
5815fi
5816
5817test -z "$OBJDUMP" && OBJDUMP=objdump
5818
5819
5820
5821
5822
5823
5824
5825
13b2be9c 5826
81ecdfbb
RW
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5828$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5829if test "${lt_cv_deplibs_check_method+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
d7040cdb 5831else
ce2cded5
L
5832 lt_cv_file_magic_cmd='$MAGIC_CMD'
5833lt_cv_file_magic_test_file=
5834lt_cv_deplibs_check_method='unknown'
5835# Need to set the preceding variable on all platforms that support
5836# interlibrary dependencies.
5837# 'none' -- dependencies not supported.
5838# `unknown' -- same as none, but documents that we really don't know.
5839# 'pass_all' -- all dependencies passed with no checks.
5840# 'test_compile' -- check by making test program.
5841# 'file_magic [[regex]]' -- check by looking for files in library path
5842# which responds to the $file_magic_cmd with a given extended regex.
5843# If you have `file' or equivalent on your system and you're not sure
5844# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 5845
ce2cded5 5846case $host_os in
50e7d84b 5847aix[4-9]*)
ce2cded5
L
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
d7040cdb 5850
ce2cded5
L
5851beos*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
d7040cdb 5854
ce2cded5
L
5855bsdi[45]*)
5856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5857 lt_cv_file_magic_cmd='/usr/bin/file -L'
5858 lt_cv_file_magic_test_file=/shlib/libc.so
5859 ;;
d7040cdb 5860
ce2cded5
L
5861cygwin*)
5862 # func_win32_libid is a shell function defined in ltmain.sh
5863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5864 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5865 ;;
ce2cded5
L
5866
5867mingw* | pw32*)
5868 # Base MSYS/MinGW do not provide the 'file' command needed by
5869 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5870 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5871 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5872 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
5873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5874 lt_cv_file_magic_cmd='func_win32_libid'
5875 else
f2c621e4 5876 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ce2cded5
L
5877 lt_cv_file_magic_cmd='$OBJDUMP -f'
5878 fi
d7040cdb 5879 ;;
ce2cded5 5880
3725885a 5881cegcc*)
718a6fd8
SE
5882 # use the weaker test based on 'objdump'. See mingw*.
5883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5884 lt_cv_file_magic_cmd='$OBJDUMP -f'
5885 ;;
5886
ce2cded5
L
5887darwin* | rhapsody*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891freebsd* | dragonfly*)
5892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5893 case $host_cpu in
5894 i*86 )
5895 # Not sure whether the presence of OpenBSD here was a mistake.
5896 # Let's accept both of them until this is cleared up.
5897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5898 lt_cv_file_magic_cmd=/usr/bin/file
5899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5900 ;;
5901 esac
5902 else
5903 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5904 fi
5905 ;;
ce2cded5
L
5906
5907gnu*)
5908 lt_cv_deplibs_check_method=pass_all
d7040cdb 5909 ;;
ce2cded5 5910
3725885a
RW
5911haiku*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
ce2cded5
L
5915hpux10.20* | hpux11*)
5916 lt_cv_file_magic_cmd=/usr/bin/file
5917 case $host_cpu in
5918 ia64*)
5919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5920 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5921 ;;
5922 hppa*64*)
3725885a 5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
ce2cded5
L
5924 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5925 ;;
5926 *)
3725885a 5927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
5928 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5929 ;;
5930 esac
d7040cdb 5931 ;;
ce2cded5
L
5932
5933interix[3-9]*)
5934 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5936 ;;
ce2cded5
L
5937
5938irix5* | irix6* | nonstopux*)
5939 case $LD in
5940 *-32|*"-32 ") libmagic=32-bit;;
5941 *-n32|*"-n32 ") libmagic=N32;;
5942 *-64|*"-64 ") libmagic=64-bit;;
5943 *) libmagic=never-match;;
5944 esac
5945 lt_cv_deplibs_check_method=pass_all
d7040cdb 5946 ;;
ce2cded5
L
5947
5948# This must be Linux ELF.
58e24671 5949linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 5950 lt_cv_deplibs_check_method=pass_all
d7040cdb 5951 ;;
ce2cded5
L
5952
5953netbsd*)
5954 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5956 else
5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5958 fi
d7040cdb 5959 ;;
ce2cded5
L
5960
5961newos6*)
5962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5963 lt_cv_file_magic_cmd=/usr/bin/file
5964 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 5965 ;;
76a27922 5966
ce2cded5
L
5967*nto* | *qnx*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
d6d788bd 5970
ce2cded5
L
5971openbsd*)
5972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5974 else
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5976 fi
5977 ;;
44f2f9d2 5978
ce2cded5
L
5979osf3* | osf4* | osf5*)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
44f2f9d2 5982
ce2cded5
L
5983rdos*)
5984 lt_cv_deplibs_check_method=pass_all
5985 ;;
5986
5987solaris*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994
5995sysv4 | sysv4.3*)
5996 case $host_vendor in
5997 motorola)
5998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6000 ;;
6001 ncr)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004 sequent)
6005 lt_cv_file_magic_cmd='/bin/file'
6006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6007 ;;
6008 sni)
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6011 lt_cv_file_magic_test_file=/lib/libc.so
6012 ;;
6013 siemens)
6014 lt_cv_deplibs_check_method=pass_all
6015 ;;
6016 pc)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019 esac
6020 ;;
6021
6022tpf*)
6023 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6024 ;;
6025esac
6026
ce2cded5 6027fi
81ecdfbb
RW
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6029$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6030file_magic_cmd=$lt_cv_file_magic_cmd
6031deplibs_check_method=$lt_cv_deplibs_check_method
6032test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6033
d7040cdb 6034
d7040cdb 6035
d7040cdb 6036
d7040cdb 6037
44f2f9d2 6038
d7040cdb 6039
d7040cdb 6040
d7040cdb 6041
d7040cdb 6042
44f2f9d2 6043
d7040cdb 6044
ce2cded5 6045if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
6050if test "${ac_cv_prog_AR+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
ce2cded5
L
6052else
6053 if test -n "$AR"; then
6054 ac_cv_prog_AR="$AR" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6063 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6065 break 2
d7040cdb
SE
6066 fi
6067done
81ecdfbb
RW
6068 done
6069IFS=$as_save_IFS
44f2f9d2 6070
ce2cded5
L
6071fi
6072fi
6073AR=$ac_cv_prog_AR
6074if test -n "$AR"; then
81ecdfbb
RW
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6076$as_echo "$AR" >&6; }
ce2cded5 6077else
81ecdfbb
RW
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
44f2f9d2 6080fi
d7040cdb 6081
81ecdfbb 6082
d7040cdb 6083fi
f2c621e4 6084if test -z "$ac_cv_prog_AR"; then
ce2cded5 6085 ac_ct_AR=$AR
f2c621e4
AS
6086 # Extract the first word of "ar", so it can be a program name with args.
6087set dummy ar; ac_word=$2
81ecdfbb
RW
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
44f2f9d2 6092else
ce2cded5
L
6093 if test -n "$ac_ct_AR"; then
6094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6103 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6105 break 2
6106 fi
6107done
81ecdfbb
RW
6108 done
6109IFS=$as_save_IFS
ce2cded5 6110
ce2cded5
L
6111fi
6112fi
6113ac_ct_AR=$ac_cv_prog_ac_ct_AR
6114if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6116$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6117else
81ecdfbb
RW
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
d7040cdb 6120fi
44f2f9d2 6121
81ecdfbb
RW
6122 if test "x$ac_ct_AR" = x; then
6123 AR="false"
6124 else
6125 case $cross_compiling:$ac_tool_warned in
6126yes:)
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129ac_tool_warned=yes ;;
6130esac
6131 AR=$ac_ct_AR
6132 fi
df7b86aa 6133else
f2c621e4
AS
6134 AR="$ac_cv_prog_AR"
6135fi
df7b86aa 6136
f2c621e4
AS
6137test -z "$AR" && AR=ar
6138test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6139
df7b86aa 6140
df7b86aa 6141
df7b86aa 6142
df7b86aa
NC
6143
6144
6145
6146
6147
6148
d7040cdb 6149
ce2cded5
L
6150if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
6155if test "${ac_cv_prog_STRIP+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
ce2cded5
L
6157else
6158 if test -n "$STRIP"; then
6159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6170 break 2
6171 fi
6172done
81ecdfbb
RW
6173 done
6174IFS=$as_save_IFS
d7040cdb 6175
ce2cded5
L
6176fi
6177fi
6178STRIP=$ac_cv_prog_STRIP
6179if test -n "$STRIP"; then
81ecdfbb
RW
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6181$as_echo "$STRIP" >&6; }
ce2cded5 6182else
81ecdfbb
RW
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
ce2cded5 6185fi
d7040cdb 6186
81ecdfbb 6187
ce2cded5
L
6188fi
6189if test -z "$ac_cv_prog_STRIP"; then
6190 ac_ct_STRIP=$STRIP
6191 # Extract the first word of "strip", so it can be a program name with args.
6192set dummy strip; ac_word=$2
81ecdfbb
RW
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
6195if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
ce2cded5
L
6197else
6198 if test -n "$ac_ct_STRIP"; then
6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6208 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6210 break 2
6211 fi
6212done
81ecdfbb
RW
6213 done
6214IFS=$as_save_IFS
d7040cdb 6215
ce2cded5
L
6216fi
6217fi
6218ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6221$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6222else
81ecdfbb
RW
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224$as_echo "no" >&6; }
ce2cded5 6225fi
d7040cdb 6226
81ecdfbb
RW
6227 if test "x$ac_ct_STRIP" = x; then
6228 STRIP=":"
6229 else
6230 case $cross_compiling:$ac_tool_warned in
6231yes:)
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236 STRIP=$ac_ct_STRIP
6237 fi
ce2cded5
L
6238else
6239 STRIP="$ac_cv_prog_STRIP"
6240fi
d7040cdb 6241
ce2cded5 6242test -z "$STRIP" && STRIP=:
d7040cdb 6243
d7040cdb 6244
d7040cdb 6245
d7040cdb 6246
d7040cdb 6247
d7040cdb 6248
ce2cded5
L
6249if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6251set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253$as_echo_n "checking for $ac_word... " >&6; }
6254if test "${ac_cv_prog_RANLIB+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
44f2f9d2 6256else
ce2cded5
L
6257 if test -n "$RANLIB"; then
6258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6269 break 2
6270 fi
6271done
81ecdfbb
RW
6272 done
6273IFS=$as_save_IFS
44f2f9d2 6274
d7040cdb 6275fi
44f2f9d2 6276fi
ce2cded5
L
6277RANLIB=$ac_cv_prog_RANLIB
6278if test -n "$RANLIB"; then
81ecdfbb
RW
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6280$as_echo "$RANLIB" >&6; }
ce2cded5 6281else
81ecdfbb
RW
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283$as_echo "no" >&6; }
ce2cded5 6284fi
d7040cdb 6285
81ecdfbb 6286
d7040cdb 6287fi
ce2cded5
L
6288if test -z "$ac_cv_prog_RANLIB"; then
6289 ac_ct_RANLIB=$RANLIB
6290 # Extract the first word of "ranlib", so it can be a program name with args.
6291set dummy ranlib; ac_word=$2
81ecdfbb
RW
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293$as_echo_n "checking for $ac_word... " >&6; }
6294if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
44f2f9d2 6296else
ce2cded5
L
6297 if test -n "$ac_ct_RANLIB"; then
6298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6299else
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
d7040cdb 6302do
ce2cded5
L
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6307 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6309 break 2
d7040cdb 6310 fi
ce2cded5 6311done
81ecdfbb
RW
6312 done
6313IFS=$as_save_IFS
ce2cded5 6314
d7040cdb 6315fi
ce2cded5
L
6316fi
6317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6320$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6321else
81ecdfbb
RW
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; }
44f2f9d2 6324fi
44f2f9d2 6325
81ecdfbb
RW
6326 if test "x$ac_ct_RANLIB" = x; then
6327 RANLIB=":"
6328 else
6329 case $cross_compiling:$ac_tool_warned in
6330yes:)
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333ac_tool_warned=yes ;;
6334esac
6335 RANLIB=$ac_ct_RANLIB
6336 fi
d7040cdb 6337else
ce2cded5 6338 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6339fi
252b5132 6340
ce2cded5 6341test -z "$RANLIB" && RANLIB=:
252b5132 6342
252b5132 6343
ae57792d 6344
252b5132 6345
13b2be9c 6346
14ee9f48 6347
ce2cded5 6348# Determine commands to create old-style static archives.
718a6fd8 6349old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6350old_postinstall_cmds='chmod 644 $oldlib'
6351old_postuninstall_cmds=
14ee9f48 6352
ce2cded5
L
6353if test -n "$RANLIB"; then
6354 case $host_os in
6355 openbsd*)
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6357 ;;
6358 *)
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6360 ;;
6361 esac
6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6363fi
14ee9f48 6364
3725885a
RW
6365case $host_os in
6366 darwin*)
6367 lock_old_archive_extraction=yes ;;
6368 *)
6369 lock_old_archive_extraction=no ;;
6370esac
6371
6372
6373
6374
6375
6376
f8fc3443 6377
f8fc3443 6378
252b5132 6379
85fbca6a 6380
85fbca6a 6381
13b2be9c 6382
13b2be9c 6383
d7040cdb 6384
d7040cdb
SE
6385
6386
6387
252b5132 6388
93fbbb04 6389
93fbbb04 6390
d70c5fc7 6391
e0001a05 6392
252b5132 6393
252b5132 6394
252b5132 6395
252b5132 6396
252b5132 6397
3bcbcc3d 6398
252b5132 6399
252b5132 6400
252b5132 6401
15886821 6402
252b5132 6403
252b5132 6404
13b2be9c
DJ
6405
6406
252b5132 6407
252b5132 6408
d6d788bd 6409
ce2cded5
L
6410# If no C compiler was specified, use CC.
6411LTCC=${LTCC-"$CC"}
252b5132 6412
ce2cded5
L
6413# If no C compiler flags were specified, use CFLAGS.
6414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6415
ce2cded5
L
6416# Allow CC to be a program name with arguments.
6417compiler=$CC
252b5132 6418
252b5132 6419
ce2cded5 6420# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6422$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6423if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
ce2cded5 6425else
252b5132 6426
ce2cded5
L
6427# These are sane defaults that work on at least a few old systems.
6428# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6429
ce2cded5
L
6430# Character class describing NM global symbol codes.
6431symcode='[BCDEGRST]'
252b5132 6432
ce2cded5
L
6433# Regexp to match symbols that can be accessed directly from C.
6434sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6435
ce2cded5
L
6436# Define system-specific variables.
6437case $host_os in
6438aix*)
6439 symcode='[BCDT]'
6440 ;;
718a6fd8 6441cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6442 symcode='[ABCDGISTW]'
6443 ;;
6444hpux*)
6445 if test "$host_cpu" = ia64; then
6446 symcode='[ABCDEGRST]'
6447 fi
6448 ;;
6449irix* | nonstopux*)
6450 symcode='[BCDEGRST]'
6451 ;;
6452osf*)
6453 symcode='[BCDEGQRST]'
6454 ;;
6455solaris*)
6456 symcode='[BDRT]'
6457 ;;
6458sco3.2v5*)
6459 symcode='[DT]'
6460 ;;
6461sysv4.2uw2*)
6462 symcode='[DT]'
6463 ;;
6464sysv5* | sco5v6* | unixware* | OpenUNIX*)
6465 symcode='[ABDT]'
6466 ;;
6467sysv4)
6468 symcode='[DFNSTU]'
6469 ;;
6470esac
6471
6472# If we're using GNU nm, then use its standard symbol codes.
6473case `$NM -V 2>&1` in
6474*GNU* | *'with BFD'*)
6475 symcode='[ABCDGIRSTW]' ;;
6476esac
252b5132 6477
ce2cded5
L
6478# Transform an extracted symbol line into a proper C declaration.
6479# Some systems (esp. on ia64) link data and code symbols differently,
6480# so use this general approach.
6481lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6482
ce2cded5 6483# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6484lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6485lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d7040cdb 6486
7357c5b6
AM
6487# Handle CRLF in mingw tool chain
6488opt_cr=
6489case $build_os in
6490mingw*)
6491 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6492 ;;
6493esac
d7040cdb 6494
7357c5b6
AM
6495# Try without a prefix underscore, then with it.
6496for ac_symprfx in "" "_"; do
d7040cdb 6497
7357c5b6
AM
6498 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6499 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6500
7357c5b6
AM
6501 # Write the raw and C identifiers.
6502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6503 # Fake it for dumpbin and say T for any non-static function
6504 # and D for any global variable.
6505 # Also find C++ and __fastcall symbols from MSVC++,
6506 # which start with @ or ?.
6507 lt_cv_sys_global_symbol_pipe="$AWK '"\
6508" {last_section=section; section=\$ 3};"\
6509" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6510" \$ 0!~/External *\|/{next};"\
6511" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6512" {if(hide[section]) next};"\
6513" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6514" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6515" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6516" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6517" ' prfx=^$ac_symprfx"
6518 else
6519 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6520 fi
d7040cdb 6521
7357c5b6
AM
6522 # Check to see that the pipe works correctly.
6523 pipe_works=no
d7040cdb 6524
7357c5b6
AM
6525 rm -f conftest*
6526 cat > conftest.$ac_ext <<_LT_EOF
6527#ifdef __cplusplus
6528extern "C" {
6529#endif
6530char nm_test_var;
6531void nm_test_func(void);
6532void nm_test_func(void){}
6533#ifdef __cplusplus
ce2cded5 6534}
7357c5b6
AM
6535#endif
6536int main(){nm_test_var='a';nm_test_func();return(0);}
6537_LT_EOF
6538
81ecdfbb 6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6540 (eval $ac_compile) 2>&5
ce2cded5 6541 ac_status=$?
81ecdfbb
RW
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; then
7357c5b6
AM
6544 # Now try to grab the symbols.
6545 nlist=conftest.nm
3725885a
RW
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6547 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6548 ac_status=$?
81ecdfbb
RW
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6551 # Try sorting and uniquifying the output.
6552 if sort "$nlist" | uniq > "$nlist"T; then
6553 mv -f "$nlist"T "$nlist"
6554 else
6555 rm -f "$nlist"T
6556 fi
13b2be9c 6557
7357c5b6
AM
6558 # Make sure that we snagged all the symbols we need.
6559 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6560 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6561 cat <<_LT_EOF > conftest.$ac_ext
6562#ifdef __cplusplus
6563extern "C" {
6564#endif
13b2be9c 6565
7357c5b6
AM
6566_LT_EOF
6567 # Now generate the symbol file.
6568 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6569
7357c5b6 6570 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6571
7357c5b6 6572/* The mapping between symbol names and symbols. */
f2c621e4 6573const struct {
7357c5b6
AM
6574 const char *name;
6575 void *address;
6576}
6577lt__PROGRAM__LTX_preloaded_symbols[] =
6578{
6579 { "@PROGRAM@", (void *) 0 },
6580_LT_EOF
6581 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6582 cat <<\_LT_EOF >> conftest.$ac_ext
6583 {0, (void *) 0}
6584};
d7040cdb 6585
7357c5b6
AM
6586/* This works around a problem in FreeBSD linker */
6587#ifdef FREEBSD_WORKAROUND
6588static const void *lt_preloaded_setup() {
6589 return lt__PROGRAM__LTX_preloaded_symbols;
6590}
ce2cded5 6591#endif
d7040cdb 6592
7357c5b6 6593#ifdef __cplusplus
ce2cded5 6594}
7357c5b6
AM
6595#endif
6596_LT_EOF
6597 # Now try linking the two files.
6598 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6599 lt_save_LIBS="$LIBS"
6600 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6601 LIBS="conftstm.$ac_objext"
6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6604 (eval $ac_link) 2>&5
6605 ac_status=$?
81ecdfbb
RW
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6608 pipe_works=yes
6609 fi
f2c621e4
AS
6610 LIBS="$lt_save_LIBS"
6611 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6612 else
6613 echo "cannot find nm_test_func in $nlist" >&5
6614 fi
6615 else
6616 echo "cannot find nm_test_var in $nlist" >&5
6617 fi
6618 else
6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620 fi
6621 else
6622 echo "$progname: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 fi
718a6fd8 6625 rm -rf conftest* conftst*
7357c5b6
AM
6626
6627 # Do not use the global_symbol_pipe unless it works.
6628 if test "$pipe_works" = yes; then
6629 break
6630 else
6631 lt_cv_sys_global_symbol_pipe=
6632 fi
6633done
d7040cdb 6634
ce2cded5 6635fi
7357c5b6
AM
6636
6637if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6639fi
7357c5b6 6640if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6642$as_echo "failed" >&6; }
7357c5b6 6643else
81ecdfbb
RW
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6645$as_echo "ok" >&6; }
ce2cded5 6646fi
d7040cdb 6647
df7b86aa
NC
6648
6649
6650
d7040cdb 6651
d7040cdb 6652
d7040cdb 6653
d7040cdb 6654
d7040cdb 6655
d7040cdb 6656
d7040cdb 6657
d7040cdb 6658
d7040cdb 6659
d7040cdb 6660
d7040cdb 6661
7357c5b6
AM
6662
6663
718a6fd8
SE
6664
6665
6666
7357c5b6
AM
6667
6668
81ecdfbb
RW
6669# Check whether --enable-libtool-lock was given.
6670if test "${enable_libtool_lock+set}" = set; then :
6671 enableval=$enable_libtool_lock;
6672fi
7357c5b6 6673
7357c5b6
AM
6674test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6675
6676# Some flags need to be propagated to the compiler or linker for good
6677# libtool support.
6678case $host in
6679ia64-*-hpux*)
6680 # Find out which ABI we are using.
6681 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6683 (eval $ac_compile) 2>&5
6684 ac_status=$?
81ecdfbb
RW
6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; }; then
7357c5b6
AM
6687 case `/usr/bin/file conftest.$ac_objext` in
6688 *ELF-32*)
6689 HPUX_IA64_MODE="32"
6690 ;;
6691 *ELF-64*)
6692 HPUX_IA64_MODE="64"
6693 ;;
6694 esac
6695 fi
6696 rm -rf conftest*
6697 ;;
6698*-*-irix6*)
6699 # Find out which ABI we are using.
3725885a 6700 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6702 (eval $ac_compile) 2>&5
6703 ac_status=$?
81ecdfbb
RW
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705 test $ac_status = 0; }; then
7357c5b6
AM
6706 if test "$lt_cv_prog_gnu_ld" = yes; then
6707 case `/usr/bin/file conftest.$ac_objext` in
6708 *32-bit*)
6709 LD="${LD-ld} -melf32bsmip"
6710 ;;
6711 *N32*)
6712 LD="${LD-ld} -melf32bmipn32"
6713 ;;
6714 *64-bit*)
6715 LD="${LD-ld} -melf64bmip"
6716 ;;
6717 esac
6718 else
6719 case `/usr/bin/file conftest.$ac_objext` in
6720 *32-bit*)
6721 LD="${LD-ld} -32"
6722 ;;
6723 *N32*)
6724 LD="${LD-ld} -n32"
6725 ;;
6726 *64-bit*)
6727 LD="${LD-ld} -64"
6728 ;;
6729 esac
6730 fi
6731 fi
6732 rm -rf conftest*
6733 ;;
6734
cc9afea3 6735x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6736s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6737 # Find out which ABI we are using.
6738 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6740 (eval $ac_compile) 2>&5
6741 ac_status=$?
81ecdfbb
RW
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }; then
7357c5b6
AM
6744 case `/usr/bin/file conftest.o` in
6745 *32-bit*)
6746 case $host in
6747 x86_64-*kfreebsd*-gnu)
6748 LD="${LD-ld} -m elf_i386_fbsd"
6749 ;;
6750 x86_64-*linux*)
6d2920c8
L
6751 case `/usr/bin/file conftest.o` in
6752 *x86-64*)
6753 LD="${LD-ld} -m elf32_x86_64"
6754 ;;
6755 *)
6756 LD="${LD-ld} -m elf_i386"
6757 ;;
6758 esac
7357c5b6 6759 ;;
cc9afea3
AM
6760 powerpc64le-*linux*)
6761 LD="${LD-ld} -m elf32lppclinux"
6762 ;;
6763 powerpc64-*linux*)
7357c5b6
AM
6764 LD="${LD-ld} -m elf32ppclinux"
6765 ;;
6766 s390x-*linux*)
6767 LD="${LD-ld} -m elf_s390"
6768 ;;
6769 sparc64-*linux*)
6770 LD="${LD-ld} -m elf32_sparc"
6771 ;;
6772 esac
6773 ;;
6774 *64-bit*)
6775 case $host in
6776 x86_64-*kfreebsd*-gnu)
6777 LD="${LD-ld} -m elf_x86_64_fbsd"
6778 ;;
6779 x86_64-*linux*)
6780 LD="${LD-ld} -m elf_x86_64"
6781 ;;
cc9afea3
AM
6782 powerpcle-*linux*)
6783 LD="${LD-ld} -m elf64lppc"
6784 ;;
6785 powerpc-*linux*)
7357c5b6
AM
6786 LD="${LD-ld} -m elf64ppc"
6787 ;;
6788 s390*-*linux*|s390*-*tpf*)
6789 LD="${LD-ld} -m elf64_s390"
6790 ;;
6791 sparc*-*linux*)
6792 LD="${LD-ld} -m elf64_sparc"
6793 ;;
6794 esac
6795 ;;
6796 esac
6797 fi
6798 rm -rf conftest*
6799 ;;
6800
6801*-*-sco3.2v5*)
6802 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6803 SAVE_CFLAGS="$CFLAGS"
6804 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6806$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6807if test "${lt_cv_cc_needs_belf+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
ce2cded5 6809else
7357c5b6
AM
6810 ac_ext=c
6811ac_cpp='$CPP $CPPFLAGS'
6812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815
81ecdfbb 6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 6817/* end confdefs.h. */
d7040cdb 6818
7357c5b6
AM
6819int
6820main ()
6821{
6822
6823 ;
6824 return 0;
6825}
ce2cded5 6826_ACEOF
81ecdfbb 6827if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6828 lt_cv_cc_needs_belf=yes
ce2cded5 6829else
81ecdfbb 6830 lt_cv_cc_needs_belf=no
ce2cded5 6831fi
81ecdfbb
RW
6832rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6834 ac_ext=c
6835ac_cpp='$CPP $CPPFLAGS'
6836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6839
ce2cded5 6840fi
81ecdfbb
RW
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6842$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
6843 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6845 CFLAGS="$SAVE_CFLAGS"
6846 fi
6847 ;;
6848sparc*-*solaris*)
6849 # Find out which ABI we are using.
6850 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
81ecdfbb
RW
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
7357c5b6
AM
6856 case `/usr/bin/file conftest.o` in
6857 *64-bit*)
6858 case $lt_cv_prog_gnu_ld in
6859 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
6860 *)
6861 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6862 LD="${LD-ld} -64"
6863 fi
6864 ;;
7357c5b6
AM
6865 esac
6866 ;;
6867 esac
6868 fi
6869 rm -rf conftest*
6870 ;;
6871esac
d7040cdb 6872
df7b86aa
NC
6873need_locks="$enable_libtool_lock"
6874
718a6fd8
SE
6875
6876 case $host_os in
6877 rhapsody* | darwin*)
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6880set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
6883if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
718a6fd8
SE
6885else
6886 if test -n "$DSYMUTIL"; then
6887 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6896 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6898 break 2
6899 fi
6900done
81ecdfbb
RW
6901 done
6902IFS=$as_save_IFS
718a6fd8
SE
6903
6904fi
6905fi
6906DSYMUTIL=$ac_cv_prog_DSYMUTIL
6907if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6909$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6910else
81ecdfbb
RW
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
718a6fd8
SE
6913fi
6914
81ecdfbb 6915
718a6fd8
SE
6916fi
6917if test -z "$ac_cv_prog_DSYMUTIL"; then
6918 ac_ct_DSYMUTIL=$DSYMUTIL
6919 # Extract the first word of "dsymutil", so it can be a program name with args.
6920set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922$as_echo_n "checking for $ac_word... " >&6; }
6923if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
718a6fd8
SE
6925else
6926 if test -n "$ac_ct_DSYMUTIL"; then
6927 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6936 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6938 break 2
6939 fi
6940done
81ecdfbb
RW
6941 done
6942IFS=$as_save_IFS
718a6fd8 6943
718a6fd8
SE
6944fi
6945fi
6946ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6947if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6949$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6950else
81ecdfbb
RW
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952$as_echo "no" >&6; }
718a6fd8
SE
6953fi
6954
81ecdfbb
RW
6955 if test "x$ac_ct_DSYMUTIL" = x; then
6956 DSYMUTIL=":"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959yes:)
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962ac_tool_warned=yes ;;
6963esac
6964 DSYMUTIL=$ac_ct_DSYMUTIL
6965 fi
718a6fd8
SE
6966else
6967 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6968fi
6969
6970 if test -n "$ac_tool_prefix"; then
6971 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6972set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
6975if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
718a6fd8
SE
6977else
6978 if test -n "$NMEDIT"; then
6979 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6988 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6990 break 2
6991 fi
6992done
81ecdfbb
RW
6993 done
6994IFS=$as_save_IFS
718a6fd8
SE
6995
6996fi
6997fi
6998NMEDIT=$ac_cv_prog_NMEDIT
6999if test -n "$NMEDIT"; then
81ecdfbb
RW
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7001$as_echo "$NMEDIT" >&6; }
718a6fd8 7002else
81ecdfbb
RW
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004$as_echo "no" >&6; }
718a6fd8
SE
7005fi
7006
81ecdfbb 7007
718a6fd8
SE
7008fi
7009if test -z "$ac_cv_prog_NMEDIT"; then
7010 ac_ct_NMEDIT=$NMEDIT
7011 # Extract the first word of "nmedit", so it can be a program name with args.
7012set dummy nmedit; ac_word=$2
81ecdfbb
RW
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014$as_echo_n "checking for $ac_word... " >&6; }
7015if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7016 $as_echo_n "(cached) " >&6
718a6fd8
SE
7017else
7018 if test -n "$ac_ct_NMEDIT"; then
7019 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7028 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7030 break 2
7031 fi
7032done
81ecdfbb
RW
7033 done
7034IFS=$as_save_IFS
718a6fd8 7035
718a6fd8
SE
7036fi
7037fi
7038ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7039if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7041$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7042else
81ecdfbb
RW
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044$as_echo "no" >&6; }
718a6fd8
SE
7045fi
7046
81ecdfbb
RW
7047 if test "x$ac_ct_NMEDIT" = x; then
7048 NMEDIT=":"
7049 else
7050 case $cross_compiling:$ac_tool_warned in
7051yes:)
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054ac_tool_warned=yes ;;
7055esac
7056 NMEDIT=$ac_ct_NMEDIT
7057 fi
718a6fd8
SE
7058else
7059 NMEDIT="$ac_cv_prog_NMEDIT"
7060fi
7061
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7064set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
7067if test "${ac_cv_prog_LIPO+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
718a6fd8
SE
7069else
7070 if test -n "$LIPO"; then
7071 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7080 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7082 break 2
7083 fi
7084done
81ecdfbb
RW
7085 done
7086IFS=$as_save_IFS
718a6fd8
SE
7087
7088fi
7089fi
7090LIPO=$ac_cv_prog_LIPO
7091if test -n "$LIPO"; then
81ecdfbb
RW
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7093$as_echo "$LIPO" >&6; }
718a6fd8 7094else
81ecdfbb
RW
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096$as_echo "no" >&6; }
718a6fd8
SE
7097fi
7098
81ecdfbb 7099
718a6fd8
SE
7100fi
7101if test -z "$ac_cv_prog_LIPO"; then
7102 ac_ct_LIPO=$LIPO
7103 # Extract the first word of "lipo", so it can be a program name with args.
7104set dummy lipo; ac_word=$2
81ecdfbb
RW
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106$as_echo_n "checking for $ac_word... " >&6; }
7107if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
718a6fd8
SE
7109else
7110 if test -n "$ac_ct_LIPO"; then
7111 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7120 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7122 break 2
7123 fi
7124done
81ecdfbb
RW
7125 done
7126IFS=$as_save_IFS
718a6fd8 7127
718a6fd8
SE
7128fi
7129fi
7130ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7131if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7133$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7134else
81ecdfbb
RW
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
718a6fd8
SE
7137fi
7138
81ecdfbb
RW
7139 if test "x$ac_ct_LIPO" = x; then
7140 LIPO=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143yes:)
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146ac_tool_warned=yes ;;
7147esac
7148 LIPO=$ac_ct_LIPO
7149 fi
718a6fd8
SE
7150else
7151 LIPO="$ac_cv_prog_LIPO"
7152fi
7153
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7156set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158$as_echo_n "checking for $ac_word... " >&6; }
7159if test "${ac_cv_prog_OTOOL+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
718a6fd8
SE
7161else
7162 if test -n "$OTOOL"; then
7163 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7172 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7174 break 2
7175 fi
7176done
81ecdfbb
RW
7177 done
7178IFS=$as_save_IFS
718a6fd8
SE
7179
7180fi
7181fi
7182OTOOL=$ac_cv_prog_OTOOL
7183if test -n "$OTOOL"; then
81ecdfbb
RW
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7185$as_echo "$OTOOL" >&6; }
718a6fd8 7186else
81ecdfbb
RW
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188$as_echo "no" >&6; }
718a6fd8
SE
7189fi
7190
81ecdfbb 7191
718a6fd8
SE
7192fi
7193if test -z "$ac_cv_prog_OTOOL"; then
7194 ac_ct_OTOOL=$OTOOL
7195 # Extract the first word of "otool", so it can be a program name with args.
7196set dummy otool; ac_word=$2
81ecdfbb
RW
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198$as_echo_n "checking for $ac_word... " >&6; }
7199if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
718a6fd8
SE
7201else
7202 if test -n "$ac_ct_OTOOL"; then
7203 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7204else
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7212 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7214 break 2
7215 fi
7216done
81ecdfbb
RW
7217 done
7218IFS=$as_save_IFS
718a6fd8 7219
718a6fd8
SE
7220fi
7221fi
7222ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7223if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7225$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7226else
81ecdfbb
RW
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228$as_echo "no" >&6; }
718a6fd8
SE
7229fi
7230
81ecdfbb
RW
7231 if test "x$ac_ct_OTOOL" = x; then
7232 OTOOL=":"
7233 else
7234 case $cross_compiling:$ac_tool_warned in
7235yes:)
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238ac_tool_warned=yes ;;
7239esac
7240 OTOOL=$ac_ct_OTOOL
7241 fi
718a6fd8
SE
7242else
7243 OTOOL="$ac_cv_prog_OTOOL"
7244fi
7245
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7248set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250$as_echo_n "checking for $ac_word... " >&6; }
7251if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
718a6fd8
SE
7253else
7254 if test -n "$OTOOL64"; then
7255 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7256else
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7264 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7266 break 2
7267 fi
7268done
81ecdfbb
RW
7269 done
7270IFS=$as_save_IFS
718a6fd8
SE
7271
7272fi
7273fi
7274OTOOL64=$ac_cv_prog_OTOOL64
7275if test -n "$OTOOL64"; then
81ecdfbb
RW
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7277$as_echo "$OTOOL64" >&6; }
718a6fd8 7278else
81ecdfbb
RW
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280$as_echo "no" >&6; }
718a6fd8
SE
7281fi
7282
81ecdfbb 7283
718a6fd8
SE
7284fi
7285if test -z "$ac_cv_prog_OTOOL64"; then
7286 ac_ct_OTOOL64=$OTOOL64
7287 # Extract the first word of "otool64", so it can be a program name with args.
7288set dummy otool64; ac_word=$2
81ecdfbb
RW
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290$as_echo_n "checking for $ac_word... " >&6; }
7291if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
718a6fd8
SE
7293else
7294 if test -n "$ac_ct_OTOOL64"; then
7295 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7296else
7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7304 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7306 break 2
7307 fi
7308done
81ecdfbb
RW
7309 done
7310IFS=$as_save_IFS
718a6fd8 7311
718a6fd8
SE
7312fi
7313fi
7314ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7315if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7317$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7318else
81ecdfbb
RW
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
718a6fd8
SE
7321fi
7322
81ecdfbb
RW
7323 if test "x$ac_ct_OTOOL64" = x; then
7324 OTOOL64=":"
7325 else
7326 case $cross_compiling:$ac_tool_warned in
7327yes:)
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330ac_tool_warned=yes ;;
7331esac
7332 OTOOL64=$ac_ct_OTOOL64
7333 fi
718a6fd8
SE
7334else
7335 OTOOL64="$ac_cv_prog_OTOOL64"
7336fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
81ecdfbb
RW
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7365$as_echo_n "checking for -single_module linker flag... " >&6; }
7366if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
718a6fd8
SE
7368else
7369 lt_cv_apple_cc_single_mod=no
7370 if test -z "${LT_MULTI_MODULE}"; then
7371 # By default we will add the -single_module flag. You can override
7372 # by either setting the environment variable LT_MULTI_MODULE
7373 # non-empty at configure time, or by adding -multi_module to the
7374 # link flags.
7375 rm -rf libconftest.dylib*
7376 echo "int foo(void){return 1;}" > conftest.c
7377 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7378-dynamiclib -Wl,-single_module conftest.c" >&5
7379 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7380 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7381 _lt_result=$?
7382 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7383 lt_cv_apple_cc_single_mod=yes
7384 else
7385 cat conftest.err >&5
7386 fi
7387 rm -rf libconftest.dylib*
7388 rm -f conftest.*
7389 fi
7390fi
81ecdfbb
RW
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7392$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7394$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7395if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
718a6fd8
SE
7397else
7398 lt_cv_ld_exported_symbols_list=no
7399 save_LDFLAGS=$LDFLAGS
7400 echo "_main" > conftest.sym
7401 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7403/* end confdefs.h. */
7404
7405int
7406main ()
7407{
7408
7409 ;
7410 return 0;
7411}
7412_ACEOF
81ecdfbb 7413if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7414 lt_cv_ld_exported_symbols_list=yes
7415else
81ecdfbb 7416 lt_cv_ld_exported_symbols_list=no
718a6fd8 7417fi
81ecdfbb
RW
7418rm -f core conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7420 LDFLAGS="$save_LDFLAGS"
7421
7422fi
81ecdfbb
RW
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7424$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7426$as_echo_n "checking for -force_load linker flag... " >&6; }
7427if test "${lt_cv_ld_force_load+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7429else
7430 lt_cv_ld_force_load=no
7431 cat > conftest.c << _LT_EOF
7432int forced_loaded() { return 2;}
7433_LT_EOF
7434 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7435 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7436 echo "$AR cru libconftest.a conftest.o" >&5
7437 $AR cru libconftest.a conftest.o 2>&5
7438 cat > conftest.c << _LT_EOF
7439int main() { return 0;}
7440_LT_EOF
7441 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7442 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7443 _lt_result=$?
7444 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7445 lt_cv_ld_force_load=yes
7446 else
7447 cat conftest.err >&5
7448 fi
7449 rm -f conftest.err libconftest.a conftest conftest.c
7450 rm -rf conftest.dSYM
7451
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7454$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7455 case $host_os in
7456 rhapsody* | darwin1.[012])
7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7458 darwin1.*)
7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7460 darwin*) # darwin 5.x on
7461 # if running on 10.5 or later, the deployment target defaults
7462 # to the OS version, if on x86, and 10.4, the deployment
7463 # target defaults to 10.4. Don't you love it?
7464 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7465 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7467 10.[012][,.]*)
718a6fd8
SE
7468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7469 10.*)
7470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7471 esac
7472 ;;
7473 esac
7474 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7475 _lt_dar_single_mod='$single_module'
7476 fi
7477 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7478 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7479 else
7480 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7481 fi
3725885a 7482 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7483 _lt_dsymutil='~$DSYMUTIL $lib || :'
7484 else
7485 _lt_dsymutil=
7486 fi
7487 ;;
7488 esac
7489
718a6fd8 7490for ac_header in dlfcn.h
81ecdfbb
RW
7491do :
7492 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7493"
7494if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7495 cat >>confdefs.h <<_ACEOF
81ecdfbb 7496#define HAVE_DLFCN_H 1
718a6fd8
SE
7497_ACEOF
7498
7499fi
7500
7501done
7502
7503
7504
3725885a
RW
7505
7506
718a6fd8
SE
7507# Set options
7508
7509
7510
7511 enable_dlopen=no
7512
7513
7514 enable_win32_dll=no
7515
7516
81ecdfbb
RW
7517 # Check whether --enable-shared was given.
7518if test "${enable_shared+set}" = set; then :
7519 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7520 case $enableval in
7521 yes) enable_shared=yes ;;
7522 no) enable_shared=no ;;
7523 *)
7524 enable_shared=no
7525 # Look at the argument we got. We use all the common list separators.
7526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7527 for pkg in $enableval; do
7528 IFS="$lt_save_ifs"
7529 if test "X$pkg" = "X$p"; then
7530 enable_shared=yes
7531 fi
7532 done
7533 IFS="$lt_save_ifs"
7534 ;;
7535 esac
7536else
7537 enable_shared=yes
81ecdfbb
RW
7538fi
7539
718a6fd8
SE
7540
7541
7542
7543
7544
7545
7546
7547
81ecdfbb
RW
7548 # Check whether --enable-static was given.
7549if test "${enable_static+set}" = set; then :
7550 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7551 case $enableval in
7552 yes) enable_static=yes ;;
7553 no) enable_static=no ;;
7554 *)
7555 enable_static=no
7556 # Look at the argument we got. We use all the common list separators.
7557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7558 for pkg in $enableval; do
7559 IFS="$lt_save_ifs"
7560 if test "X$pkg" = "X$p"; then
7561 enable_static=yes
7562 fi
7563 done
7564 IFS="$lt_save_ifs"
7565 ;;
7566 esac
7567else
7568 enable_static=yes
81ecdfbb
RW
7569fi
7570
718a6fd8
SE
7571
7572
d7040cdb 7573
d7040cdb 7574
718a6fd8
SE
7575
7576
7577
7578
7579
81ecdfbb
RW
7580# Check whether --with-pic was given.
7581if test "${with_pic+set}" = set; then :
7582 withval=$with_pic; pic_mode="$withval"
ce2cded5 7583else
718a6fd8 7584 pic_mode=default
81ecdfbb
RW
7585fi
7586
d7040cdb 7587
718a6fd8
SE
7588test -z "$pic_mode" && pic_mode=default
7589
7590
7591
7592
7593
7594
7595
81ecdfbb
RW
7596 # Check whether --enable-fast-install was given.
7597if test "${enable_fast_install+set}" = set; then :
7598 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7599 case $enableval in
7600 yes) enable_fast_install=yes ;;
7601 no) enable_fast_install=no ;;
7602 *)
7603 enable_fast_install=no
7604 # Look at the argument we got. We use all the common list separators.
7605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606 for pkg in $enableval; do
7607 IFS="$lt_save_ifs"
7608 if test "X$pkg" = "X$p"; then
7609 enable_fast_install=yes
7610 fi
7611 done
7612 IFS="$lt_save_ifs"
7613 ;;
7614 esac
ce2cded5 7615else
718a6fd8 7616 enable_fast_install=yes
81ecdfbb
RW
7617fi
7618
718a6fd8
SE
7619
7620
7621
7622
d7040cdb 7623
d7040cdb 7624
d7040cdb 7625
d7040cdb 7626
d7040cdb 7627
d7040cdb 7628
ce2cded5
L
7629# This can be used to rebuild libtool when needed
7630LIBTOOL_DEPS="$ltmain"
d7040cdb 7631
ce2cded5
L
7632# Always use our own libtool.
7633LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7634
d7040cdb 7635
d7040cdb 7636
d7040cdb
SE
7637
7638
7639
7640
7641
7642
d7040cdb 7643
d7040cdb 7644
ab509236 7645
ab509236 7646
d7040cdb
SE
7647
7648
7649
7650
7651
13b2be9c 7652
13b2be9c 7653
13b2be9c 7654
13b2be9c 7655
d7040cdb 7656
3725885a 7657
d7040cdb
SE
7658
7659
ce2cded5 7660test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7661
7662
d7040cdb 7663
d7040cdb 7664
d7040cdb
SE
7665
7666
7667
7668
7669
7670
ce2cded5
L
7671
7672
7673
7674
7675if test -n "${ZSH_VERSION+set}" ; then
7676 setopt NO_GLOB_SUBST
7677fi
7678
81ecdfbb
RW
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7680$as_echo_n "checking for objdir... " >&6; }
7681if test "${lt_cv_objdir+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
d7040cdb 7683else
ce2cded5
L
7684 rm -f .libs 2>/dev/null
7685mkdir .libs 2>/dev/null
7686if test -d .libs; then
7687 lt_cv_objdir=.libs
7688else
7689 # MS-DOS does not allow filenames that begin with a dot.
7690 lt_cv_objdir=_libs
d7040cdb 7691fi
ce2cded5
L
7692rmdir .libs 2>/dev/null
7693fi
81ecdfbb
RW
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7695$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7696objdir=$lt_cv_objdir
d7040cdb
SE
7697
7698
7699
7700
d7040cdb 7701
ce2cded5
L
7702cat >>confdefs.h <<_ACEOF
7703#define LT_OBJDIR "$lt_cv_objdir/"
7704_ACEOF
d7040cdb
SE
7705
7706
7707
7708
ce2cded5
L
7709case $host_os in
7710aix3*)
7711 # AIX sometimes has problems with the GCC collect2 program. For some
7712 # reason, if we set the COLLECT_NAMES environment variable, the problems
7713 # vanish in a puff of smoke.
7714 if test "X${COLLECT_NAMES+set}" != Xset; then
7715 COLLECT_NAMES=
7716 export COLLECT_NAMES
7717 fi
7718 ;;
7719esac
d7040cdb 7720
ce2cded5
L
7721# Global variables:
7722ofile=libtool
7723can_build_shared=yes
d7040cdb 7724
ce2cded5
L
7725# All known linkers require a `.a' archive for static linking (except MSVC,
7726# which needs '.lib').
7727libext=a
d7040cdb 7728
ce2cded5 7729with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7730
ce2cded5
L
7731old_CC="$CC"
7732old_CFLAGS="$CFLAGS"
d7040cdb 7733
ce2cded5
L
7734# Set sane defaults for various variables
7735test -z "$CC" && CC=cc
7736test -z "$LTCC" && LTCC=$CC
7737test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7738test -z "$LD" && LD=ld
7739test -z "$ac_objext" && ac_objext=o
7740
7741for cc_temp in $compiler""; do
7742 case $cc_temp in
7743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7745 \-*) ;;
7746 *) break;;
7747 esac
7748done
3725885a 7749cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
7750
7751
7752# Only perform the check for file, if the check method requires it
7753test -z "$MAGIC_CMD" && MAGIC_CMD=file
7754case $deplibs_check_method in
7755file_magic*)
7756 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7758$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7759if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
ce2cded5
L
7761else
7762 case $MAGIC_CMD in
7763[\\/*] | ?:[\\/]*)
7764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7765 ;;
7766*)
7767 lt_save_MAGIC_CMD="$MAGIC_CMD"
7768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770 for ac_dir in $ac_dummy; do
7771 IFS="$lt_save_ifs"
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/${ac_tool_prefix}file; then
7774 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7775 if test -n "$file_magic_test_file"; then
7776 case $deplibs_check_method in
7777 "file_magic "*)
7778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781 $EGREP "$file_magic_regex" > /dev/null; then
7782 :
d7040cdb 7783 else
ce2cded5 7784 cat <<_LT_EOF 1>&2
d7040cdb 7785
ce2cded5
L
7786*** Warning: the command libtool uses to detect shared libraries,
7787*** $file_magic_cmd, produces output that libtool cannot recognize.
7788*** The result is that libtool may fail to recognize shared libraries
7789*** as such. This will affect the creation of libtool libraries that
7790*** depend on shared libraries, but programs linked with such libtool
7791*** libraries will work regardless of this problem. Nevertheless, you
7792*** may want to report the problem to your system manager and/or to
7793*** bug-libtool@gnu.org
d7040cdb 7794
ce2cded5
L
7795_LT_EOF
7796 fi ;;
7797 esac
d7040cdb 7798 fi
ce2cded5 7799 break
d7040cdb 7800 fi
ce2cded5
L
7801 done
7802 IFS="$lt_save_ifs"
7803 MAGIC_CMD="$lt_save_MAGIC_CMD"
7804 ;;
7805esac
7806fi
d7040cdb 7807
ce2cded5
L
7808MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7811$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7812else
81ecdfbb
RW
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
ce2cded5 7815fi
d7040cdb 7816
d7040cdb 7817
d7040cdb 7818
d7040cdb 7819
d7040cdb 7820
ce2cded5
L
7821if test -z "$lt_cv_path_MAGIC_CMD"; then
7822 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7824$as_echo_n "checking for file... " >&6; }
7825if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
ce2cded5
L
7827else
7828 case $MAGIC_CMD in
7829[\\/*] | ?:[\\/]*)
7830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7831 ;;
7832*)
7833 lt_save_MAGIC_CMD="$MAGIC_CMD"
7834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7835 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7836 for ac_dir in $ac_dummy; do
7837 IFS="$lt_save_ifs"
7838 test -z "$ac_dir" && ac_dir=.
7839 if test -f $ac_dir/file; then
7840 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7841 if test -n "$file_magic_test_file"; then
7842 case $deplibs_check_method in
7843 "file_magic "*)
7844 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7847 $EGREP "$file_magic_regex" > /dev/null; then
7848 :
d7040cdb 7849 else
ce2cded5
L
7850 cat <<_LT_EOF 1>&2
7851
7852*** Warning: the command libtool uses to detect shared libraries,
7853*** $file_magic_cmd, produces output that libtool cannot recognize.
7854*** The result is that libtool may fail to recognize shared libraries
7855*** as such. This will affect the creation of libtool libraries that
7856*** depend on shared libraries, but programs linked with such libtool
7857*** libraries will work regardless of this problem. Nevertheless, you
7858*** may want to report the problem to your system manager and/or to
7859*** bug-libtool@gnu.org
7860
7861_LT_EOF
7862 fi ;;
d7040cdb 7863 esac
d7040cdb 7864 fi
ce2cded5
L
7865 break
7866 fi
7867 done
7868 IFS="$lt_save_ifs"
7869 MAGIC_CMD="$lt_save_MAGIC_CMD"
7870 ;;
7871esac
7872fi
d7040cdb 7873
ce2cded5
L
7874MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7875if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7877$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7878else
81ecdfbb
RW
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
ce2cded5 7881fi
d7040cdb 7882
d7040cdb 7883
ce2cded5
L
7884 else
7885 MAGIC_CMD=:
7886 fi
d7040cdb 7887fi
d7040cdb 7888
ce2cded5
L
7889 fi
7890 ;;
7891esac
d7040cdb 7892
ce2cded5 7893# Use C for the default configuration in the libtool script
d7040cdb 7894
ce2cded5
L
7895lt_save_CC="$CC"
7896ac_ext=c
7897ac_cpp='$CPP $CPPFLAGS'
7898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7901
d7040cdb 7902
ce2cded5
L
7903# Source file extension for C test sources.
7904ac_ext=c
d7040cdb 7905
ce2cded5
L
7906# Object file extension for compiled C test sources.
7907objext=o
7908objext=$objext
d7040cdb 7909
ce2cded5
L
7910# Code to be used in simple compile tests
7911lt_simple_compile_test_code="int some_variable = 0;"
7912
7913# Code to be used in simple link tests
7914lt_simple_link_test_code='int main(){return(0);}'
7915
7916
7917
7918
7919
7920
7921
7922# If no C compiler was specified, use CC.
7923LTCC=${LTCC-"$CC"}
7924
7925# If no C compiler flags were specified, use CFLAGS.
7926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7927
7928# Allow CC to be a program name with arguments.
7929compiler=$CC
7930
7931# Save the default compiler, since it gets overwritten when the other
7932# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7933compiler_DEFAULT=$CC
7934
7935# save warnings/boilerplate of simple test code
7936ac_outfile=conftest.$ac_objext
7937echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7938eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7939_lt_compiler_boilerplate=`cat conftest.err`
7940$RM conftest*
7941
7942ac_outfile=conftest.$ac_objext
7943echo "$lt_simple_link_test_code" >conftest.$ac_ext
7944eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7945_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7946$RM -r conftest*
ce2cded5
L
7947
7948
f2c621e4
AS
7949## CAVEAT EMPTOR:
7950## There is no encapsulation within the following macros, do not change
7951## the running order or otherwise move them around unless you know exactly
7952## what you are doing...
ce2cded5
L
7953if test -n "$compiler"; then
7954
7955lt_prog_compiler_no_builtin_flag=
7956
7957if test "$GCC" = yes; then
3725885a
RW
7958 case $cc_basename in
7959 nvcc*)
7960 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7961 *)
7962 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7963 esac
ce2cded5 7964
81ecdfbb
RW
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7966$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7967if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
ce2cded5
L
7969else
7970 lt_cv_prog_compiler_rtti_exceptions=no
7971 ac_outfile=conftest.$ac_objext
7972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7973 lt_compiler_flag="-fno-rtti -fno-exceptions"
7974 # Insert the option either (1) after the last *FLAGS variable, or
7975 # (2) before a word containing "conftest.", or (3) at the end.
7976 # Note that $ac_compile itself does not contain backslashes and begins
7977 # with a dollar sign (not a hyphen), so the echo should work correctly.
7978 # The option is referenced via a variable to avoid confusing sed.
7979 lt_compile=`echo "$ac_compile" | $SED \
7980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982 -e 's:$: $lt_compiler_flag:'`
3725885a 7983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
7984 (eval "$lt_compile" 2>conftest.err)
7985 ac_status=$?
7986 cat conftest.err >&5
3725885a 7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
7988 if (exit $ac_status) && test -s "$ac_outfile"; then
7989 # The compiler can only warn and ignore the option if not recognized
7990 # So say no if there are warnings other than the usual output.
3725885a 7991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
7992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7994 lt_cv_prog_compiler_rtti_exceptions=yes
7995 fi
7996 fi
7997 $RM conftest*
7998
7999fi
81ecdfbb
RW
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8001$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
8002
8003if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8004 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8005else
8006 :
8007fi
8008
8009fi
8010
8011
8012
8013
8014
8015
8016 lt_prog_compiler_wl=
8017lt_prog_compiler_pic=
8018lt_prog_compiler_static=
8019
f2c621e4
AS
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8021$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8022
8023 if test "$GCC" = yes; then
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_static='-static'
8026
8027 case $host_os in
8028 aix*)
8029 # All AIX code is PIC.
8030 if test "$host_cpu" = ia64; then
8031 # AIX 5 now supports IA64 processor
8032 lt_prog_compiler_static='-Bstatic'
8033 fi
6c9c0a50 8034 lt_prog_compiler_pic='-fPIC'
ce2cded5 8035 ;;
d7040cdb
SE
8036
8037 amigaos*)
718a6fd8
SE
8038 case $host_cpu in
8039 powerpc)
8040 # see comment about AmigaOS4 .so support
8041 lt_prog_compiler_pic='-fPIC'
8042 ;;
8043 m68k)
8044 # FIXME: we need at least 68020 code to build shared libraries, but
8045 # adding the `-m68020' flag to GCC prevents building anything better,
8046 # like `-m68040'.
8047 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8048 ;;
8049 esac
d7040cdb
SE
8050 ;;
8051
ce2cded5
L
8052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8053 # PIC is the default for these OSes.
d7040cdb
SE
8054 ;;
8055
718a6fd8 8056 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8057 # This hack is so that the source file can tell whether it is being
8058 # built for inclusion in a dll (and should export symbols for example).
8059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8060 # (--disable-auto-import) libraries
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8062 ;;
8063
8064 darwin* | rhapsody*)
ce2cded5
L
8065 # PIC is the default on this platform
8066 # Common symbols not allowed in MH_DYLIB files
8067 lt_prog_compiler_pic='-fno-common'
8068 ;;
8069
3725885a
RW
8070 haiku*)
8071 # PIC is the default for Haiku.
8072 # The "-static" flag exists, but is broken.
8073 lt_prog_compiler_static=
8074 ;;
8075
ce2cded5 8076 hpux*)
718a6fd8
SE
8077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8079 # sets the default TLS model and affects inlining.
ce2cded5 8080 case $host_cpu in
718a6fd8 8081 hppa*64*)
ce2cded5 8082 # +Z the default
d7040cdb 8083 ;;
ce2cded5
L
8084 *)
8085 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8086 ;;
8087 esac
ce2cded5 8088 ;;
d7040cdb 8089
ce2cded5
L
8090 interix[3-9]*)
8091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8093 ;;
8094
ce2cded5
L
8095 msdosdjgpp*)
8096 # Just because we use GCC doesn't mean we suddenly get shared libraries
8097 # on systems that don't support them.
8098 lt_prog_compiler_can_build_shared=no
8099 enable_shared=no
d7040cdb
SE
8100 ;;
8101
ce2cded5
L
8102 *nto* | *qnx*)
8103 # QNX uses GNU C++, but need to define -shared option too, otherwise
8104 # it will coredump.
8105 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8106 ;;
8107
ce2cded5
L
8108 sysv4*MP*)
8109 if test -d /usr/nec; then
8110 lt_prog_compiler_pic=-Kconform_pic
8111 fi
d7040cdb
SE
8112 ;;
8113
ce2cded5
L
8114 *)
8115 lt_prog_compiler_pic='-fPIC'
d7040cdb 8116 ;;
ce2cded5 8117 esac
3725885a
RW
8118
8119 case $cc_basename in
8120 nvcc*) # Cuda Compiler Driver 2.2
8121 lt_prog_compiler_wl='-Xlinker '
8122 lt_prog_compiler_pic='-Xcompiler -fPIC'
8123 ;;
8124 esac
ce2cded5
L
8125 else
8126 # PORTME Check for flag to pass linker flags through the system compiler.
8127 case $host_os in
8128 aix*)
8129 lt_prog_compiler_wl='-Wl,'
8130 if test "$host_cpu" = ia64; then
8131 # AIX 5 now supports IA64 processor
8132 lt_prog_compiler_static='-Bstatic'
d7040cdb 8133 else
ce2cded5 8134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8135 fi
ce2cded5 8136 ;;
d7040cdb 8137
718a6fd8 8138 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8139 # This hack is so that the source file can tell whether it is being
8140 # built for inclusion in a dll (and should export symbols for example).
8141 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8142 ;;
8143
ce2cded5
L
8144 hpux9* | hpux10* | hpux11*)
8145 lt_prog_compiler_wl='-Wl,'
8146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8147 # not for PA HP-UX.
8148 case $host_cpu in
8149 hppa*64*|ia64*)
8150 # +Z the default
8151 ;;
8152 *)
8153 lt_prog_compiler_pic='+Z'
8154 ;;
8155 esac
8156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8157 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8158 ;;
8159
ce2cded5
L
8160 irix5* | irix6* | nonstopux*)
8161 lt_prog_compiler_wl='-Wl,'
8162 # PIC (with -KPIC) is the default.
8163 lt_prog_compiler_static='-non_shared'
8164 ;;
d7040cdb 8165
58e24671 8166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8167 case $cc_basename in
718a6fd8
SE
8168 # old Intel for x86_64 which still supported -KPIC.
8169 ecc*)
ce2cded5
L
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-static'
8173 ;;
718a6fd8
SE
8174 # icc used to be incompatible with GCC.
8175 # ICC 10 doesn't accept -KPIC any more.
8176 icc* | ifort*)
8177 lt_prog_compiler_wl='-Wl,'
8178 lt_prog_compiler_pic='-fPIC'
8179 lt_prog_compiler_static='-static'
8180 ;;
8181 # Lahey Fortran 8.1.
8182 lf95*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='--shared'
8185 lt_prog_compiler_static='--static'
8186 ;;
3725885a 8187 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8188 # Portland Group compilers (*not* the Pentium gcc compiler,
8189 # which looks to be a dead project)
8190 lt_prog_compiler_wl='-Wl,'
8191 lt_prog_compiler_pic='-fpic'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
8194 ccc*)
8195 lt_prog_compiler_wl='-Wl,'
8196 # All Alpha code is PIC.
8197 lt_prog_compiler_static='-non_shared'
8198 ;;
3725885a
RW
8199 xl* | bgxl* | bgf* | mpixl*)
8200 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-qpic'
8203 lt_prog_compiler_static='-qstaticlink'
8204 ;;
ce2cded5
L
8205 *)
8206 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8207 *Sun\ F* | *Sun*Fortran*)
8208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8209 lt_prog_compiler_pic='-KPIC'
8210 lt_prog_compiler_static='-Bstatic'
3725885a 8211 lt_prog_compiler_wl=''
d7040cdb 8212 ;;
3725885a
RW
8213 *Sun\ C*)
8214 # Sun C 5.9
ce2cded5
L
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
3725885a 8217 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8218 ;;
8219 esac
ce2cded5
L
8220 ;;
8221 esac
d7040cdb
SE
8222 ;;
8223
ce2cded5
L
8224 newsos6)
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8227 ;;
8228
ce2cded5
L
8229 *nto* | *qnx*)
8230 # QNX uses GNU C++, but need to define -shared option too, otherwise
8231 # it will coredump.
8232 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8233 ;;
8234
ce2cded5
L
8235 osf3* | osf4* | osf5*)
8236 lt_prog_compiler_wl='-Wl,'
8237 # All OSF/1 code is PIC.
8238 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8239 ;;
8240
ce2cded5
L
8241 rdos*)
8242 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8243 ;;
8244
8245 solaris*)
ce2cded5
L
8246 lt_prog_compiler_pic='-KPIC'
8247 lt_prog_compiler_static='-Bstatic'
8248 case $cc_basename in
f2c621e4 8249 f77* | f90* | f95*)
ce2cded5 8250 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8251 *)
ce2cded5 8252 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8253 esac
d7040cdb
SE
8254 ;;
8255
8256 sunos4*)
ce2cded5
L
8257 lt_prog_compiler_wl='-Qoption ld '
8258 lt_prog_compiler_pic='-PIC'
8259 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8260 ;;
8261
ce2cded5
L
8262 sysv4 | sysv4.2uw2* | sysv4.3*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-KPIC'
8265 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8266 ;;
8267
8268 sysv4*MP*)
ce2cded5
L
8269 if test -d /usr/nec ;then
8270 lt_prog_compiler_pic='-Kconform_pic'
8271 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8272 fi
8273 ;;
8274
ce2cded5
L
8275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_pic='-KPIC'
8278 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8279 ;;
8280
ce2cded5
L
8281 unicos*)
8282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8284 ;;
8285
8286 uts4*)
ce2cded5
L
8287 lt_prog_compiler_pic='-pic'
8288 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8289 ;;
8290
8291 *)
ce2cded5 8292 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8293 ;;
8294 esac
d7040cdb
SE
8295 fi
8296
ce2cded5
L
8297case $host_os in
8298 # For platforms which do not support PIC, -DPIC is meaningless:
8299 *djgpp*)
8300 lt_prog_compiler_pic=
8301 ;;
8302 *)
8303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8304 ;;
8305esac
f2c621e4
AS
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8307$as_echo "$lt_prog_compiler_pic" >&6; }
8308
8309
8310
8311
d7040cdb
SE
8312
8313
8314#
ce2cded5 8315# Check to make sure the PIC flag actually works.
d7040cdb 8316#
ce2cded5 8317if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8319$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8320if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
ce2cded5 8322else
718a6fd8 8323 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8324 ac_outfile=conftest.$ac_objext
8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8327 # Insert the option either (1) after the last *FLAGS variable, or
8328 # (2) before a word containing "conftest.", or (3) at the end.
8329 # Note that $ac_compile itself does not contain backslashes and begins
8330 # with a dollar sign (not a hyphen), so the echo should work correctly.
8331 # The option is referenced via a variable to avoid confusing sed.
8332 lt_compile=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
3725885a 8336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8337 (eval "$lt_compile" 2>conftest.err)
8338 ac_status=$?
8339 cat conftest.err >&5
3725885a 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8341 if (exit $ac_status) && test -s "$ac_outfile"; then
8342 # The compiler can only warn and ignore the option if not recognized
8343 # So say no if there are warnings other than the usual output.
3725885a 8344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8347 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8348 fi
8349 fi
8350 $RM conftest*
d7040cdb 8351
ce2cded5 8352fi
81ecdfbb
RW
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8354$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8355
718a6fd8 8356if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8357 case $lt_prog_compiler_pic in
8358 "" | " "*) ;;
8359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8360 esac
8361else
8362 lt_prog_compiler_pic=
8363 lt_prog_compiler_can_build_shared=no
8364fi
d7040cdb 8365
ce2cded5 8366fi
d7040cdb
SE
8367
8368
8369
8370
8371
8372
ce2cded5
L
8373#
8374# Check to make sure the static flag actually works.
8375#
8376wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8378$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8379if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
ce2cded5 8381else
718a6fd8 8382 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8383 save_LDFLAGS="$LDFLAGS"
8384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8387 # The linker can only warn and ignore the option if not recognized
8388 # So say no if there are warnings
8389 if test -s conftest.err; then
8390 # Append any errors to the config.log.
8391 cat conftest.err 1>&5
3725885a 8392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8394 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8395 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8396 fi
8397 else
718a6fd8 8398 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8399 fi
8400 fi
718a6fd8 8401 $RM -r conftest*
ce2cded5 8402 LDFLAGS="$save_LDFLAGS"
d7040cdb 8403
ce2cded5 8404fi
81ecdfbb
RW
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8406$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8407
718a6fd8 8408if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8409 :
8410else
8411 lt_prog_compiler_static=
8412fi
d7040cdb
SE
8413
8414
8415
8416
8417
8418
8419
81ecdfbb
RW
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8421$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8422if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
ce2cded5
L
8424else
8425 lt_cv_prog_compiler_c_o=no
8426 $RM -r conftest 2>/dev/null
8427 mkdir conftest
8428 cd conftest
8429 mkdir out
8430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8431
ce2cded5
L
8432 lt_compiler_flag="-o out/conftest2.$ac_objext"
8433 # Insert the option either (1) after the last *FLAGS variable, or
8434 # (2) before a word containing "conftest.", or (3) at the end.
8435 # Note that $ac_compile itself does not contain backslashes and begins
8436 # with a dollar sign (not a hyphen), so the echo should work correctly.
8437 lt_compile=`echo "$ac_compile" | $SED \
8438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440 -e 's:$: $lt_compiler_flag:'`
3725885a 8441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8442 (eval "$lt_compile" 2>out/conftest.err)
8443 ac_status=$?
8444 cat out/conftest.err >&5
3725885a 8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8447 then
8448 # The compiler can only warn and ignore the option if not recognized
8449 # So say no if there are warnings
3725885a 8450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8453 lt_cv_prog_compiler_c_o=yes
8454 fi
8455 fi
8456 chmod u+w . 2>&5
8457 $RM conftest*
8458 # SGI C++ compiler will create directory out/ii_files/ for
8459 # template instantiation
8460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8461 $RM out/* && rmdir out
8462 cd ..
8463 $RM -r conftest
8464 $RM conftest*
d7040cdb 8465
ce2cded5 8466fi
81ecdfbb
RW
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8468$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8469
8470
8471
8472
8473
8474
81ecdfbb
RW
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8477if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
ce2cded5
L
8479else
8480 lt_cv_prog_compiler_c_o=no
8481 $RM -r conftest 2>/dev/null
8482 mkdir conftest
8483 cd conftest
8484 mkdir out
8485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8486
ce2cded5
L
8487 lt_compiler_flag="-o out/conftest2.$ac_objext"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 lt_compile=`echo "$ac_compile" | $SED \
8493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8495 -e 's:$: $lt_compiler_flag:'`
3725885a 8496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8497 (eval "$lt_compile" 2>out/conftest.err)
8498 ac_status=$?
8499 cat out/conftest.err >&5
3725885a 8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8502 then
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings
3725885a 8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_c_o=yes
8509 fi
8510 fi
8511 chmod u+w . 2>&5
8512 $RM conftest*
8513 # SGI C++ compiler will create directory out/ii_files/ for
8514 # template instantiation
8515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8516 $RM out/* && rmdir out
8517 cd ..
8518 $RM -r conftest
8519 $RM conftest*
d7040cdb 8520
ce2cded5 8521fi
81ecdfbb
RW
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8523$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8524
8525
8526
8527
ce2cded5
L
8528hard_links="nottested"
8529if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8530 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8532$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8533 hard_links=yes
8534 $RM conftest*
8535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8536 touch conftest.a
8537 ln conftest.a conftest.b 2>&5 || hard_links=no
8538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8540$as_echo "$hard_links" >&6; }
ce2cded5 8541 if test "$hard_links" = no; then
81ecdfbb
RW
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8543$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8544 need_locks=warn
8545 fi
8546else
8547 need_locks=no
8548fi
d7040cdb
SE
8549
8550
8551
8552
8553
8554
81ecdfbb
RW
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8556$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8557
ce2cded5
L
8558 runpath_var=
8559 allow_undefined_flag=
8560 always_export_symbols=no
8561 archive_cmds=
8562 archive_expsym_cmds=
8563 compiler_needs_object=no
8564 enable_shared_with_static_runtimes=no
8565 export_dynamic_flag_spec=
8566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8567 hardcode_automatic=no
8568 hardcode_direct=no
8569 hardcode_direct_absolute=no
8570 hardcode_libdir_flag_spec=
8571 hardcode_libdir_flag_spec_ld=
8572 hardcode_libdir_separator=
8573 hardcode_minus_L=no
8574 hardcode_shlibpath_var=unsupported
8575 inherit_rpath=no
8576 link_all_deplibs=unknown
8577 module_cmds=
8578 module_expsym_cmds=
8579 old_archive_from_new_cmds=
8580 old_archive_from_expsyms_cmds=
8581 thread_safe_flag_spec=
8582 whole_archive_flag_spec=
8583 # include_expsyms should be a list of space-separated symbols to be *always*
8584 # included in the symbol list
8585 include_expsyms=
8586 # exclude_expsyms can be an extended regexp of symbols to exclude
8587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8589 # as well as any symbol that contains `d'.
718a6fd8 8590 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8592 # platforms (ab)use it in PIC code, but their linkers get confused if
8593 # the symbol is explicitly referenced. Since portable code cannot
8594 # rely on this symbol name, it's probably fine to never include it in
8595 # preloaded symbol tables.
718a6fd8 8596 # Exclude shared library initialization/finalization symbols.
ce2cded5 8597 extract_expsyms_cmds=
d7040cdb 8598
ce2cded5 8599 case $host_os in
718a6fd8 8600 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8602 # When not using gcc, we currently assume that we are using
8603 # Microsoft Visual C++.
8604 if test "$GCC" != yes; then
8605 with_gnu_ld=no
8606 fi
8607 ;;
8608 interix*)
8609 # we just hope/assume this is gcc and not c89 (= MSVC++)
8610 with_gnu_ld=yes
8611 ;;
8612 openbsd*)
8613 with_gnu_ld=no
8614 ;;
8615 esac
d7040cdb 8616
ce2cded5 8617 ld_shlibs=yes
3725885a
RW
8618
8619 # On some targets, GNU ld is compatible enough with the native linker
8620 # that we're better off using the native interface for both.
8621 lt_use_gnu_ld_interface=no
ce2cded5 8622 if test "$with_gnu_ld" = yes; then
3725885a
RW
8623 case $host_os in
8624 aix*)
8625 # The AIX port of GNU ld has always aspired to compatibility
8626 # with the native linker. However, as the warning in the GNU ld
8627 # block says, versions before 2.19.5* couldn't really create working
8628 # shared libraries, regardless of the interface used.
8629 case `$LD -v 2>&1` in
8630 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8631 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8632 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8633 *)
8634 lt_use_gnu_ld_interface=yes
8635 ;;
8636 esac
8637 ;;
8638 *)
8639 lt_use_gnu_ld_interface=yes
8640 ;;
8641 esac
8642 fi
8643
8644 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8645 # If archive_cmds runs LD, not CC, wlarc should be empty
8646 wlarc='${wl}'
d7040cdb 8647
ce2cded5
L
8648 # Set some defaults for GNU ld with shared library support. These
8649 # are reset later if shared libraries are not supported. Putting them
8650 # here allows them to be overridden if necessary.
8651 runpath_var=LD_RUN_PATH
8652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653 export_dynamic_flag_spec='${wl}--export-dynamic'
8654 # ancient GNU ld didn't support --whole-archive et. al.
8655 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8656 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8657 else
8658 whole_archive_flag_spec=
8659 fi
8660 supports_anon_versioning=no
8661 case `$LD -v 2>&1` in
3725885a 8662 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8666 *\ 2.11.*) ;; # other 2.11 versions
8667 *) supports_anon_versioning=yes ;;
8668 esac
d7040cdb 8669
ce2cded5
L
8670 # See if GNU ld supports shared libraries.
8671 case $host_os in
50e7d84b 8672 aix[3-9]*)
ce2cded5
L
8673 # On AIX/PPC, the GNU linker is very broken
8674 if test "$host_cpu" != ia64; then
8675 ld_shlibs=no
8676 cat <<_LT_EOF 1>&2
d7040cdb 8677
3725885a 8678*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8679*** to be unable to reliably create shared libraries on AIX.
8680*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8681*** really care for shared libraries, you may want to install binutils
8682*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8683*** You will then need to restart the configuration process.
d7040cdb 8684
ce2cded5
L
8685_LT_EOF
8686 fi
8687 ;;
d7040cdb 8688
ce2cded5 8689 amigaos*)
718a6fd8
SE
8690 case $host_cpu in
8691 powerpc)
8692 # see comment about AmigaOS4 .so support
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds=''
8695 ;;
8696 m68k)
8697 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8700 ;;
8701 esac
ce2cded5 8702 ;;
d7040cdb 8703
ce2cded5
L
8704 beos*)
8705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8706 allow_undefined_flag=unsupported
8707 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8708 # support --undefined. This deserves some investigation. FIXME
8709 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 else
8711 ld_shlibs=no
8712 fi
8713 ;;
d7040cdb 8714
718a6fd8 8715 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8716 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8717 # as there is no search path for DLLs.
8718 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8719 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8720 allow_undefined_flag=unsupported
8721 always_export_symbols=no
8722 enable_shared_with_static_runtimes=yes
f2c621e4 8723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8724
ce2cded5
L
8725 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727 # If the export-symbols file already is a .def file (1st line
8728 # is EXPORTS), use it as is; otherwise, prepend...
8729 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730 cp $export_symbols $output_objdir/$soname.def;
8731 else
8732 echo EXPORTS > $output_objdir/$soname.def;
8733 cat $export_symbols >> $output_objdir/$soname.def;
8734 fi~
8735 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736 else
8737 ld_shlibs=no
8738 fi
8739 ;;
d7040cdb 8740
3725885a
RW
8741 haiku*)
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 link_all_deplibs=yes
8744 ;;
8745
ce2cded5
L
8746 interix[3-9]*)
8747 hardcode_direct=no
8748 hardcode_shlibpath_var=no
8749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750 export_dynamic_flag_spec='${wl}-E'
8751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8752 # Instead, shared libraries are loaded at an image base (0x10000000 by
8753 # default) and relocated if they conflict, which is a slow very memory
8754 # consuming and fragmenting process. To avoid this, we pick a random,
8755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8758 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8759 ;;
d7040cdb 8760
58e24671 8761 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8762 tmp_diet=no
8763 if test "$host_os" = linux-dietlibc; then
8764 case $cc_basename in
8765 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8766 esac
8767 fi
8768 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8769 && test "$tmp_diet" = no
8770 then
6e733cce 8771 tmp_addflag=' $pic_flag'
718a6fd8 8772 tmp_sharedflag='-shared'
ce2cded5
L
8773 case $cc_basename,$host_cpu in
8774 pgcc*) # Portland Group C compiler
3725885a 8775 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
8776 tmp_addflag=' $pic_flag'
8777 ;;
3725885a
RW
8778 pgf77* | pgf90* | pgf95* | pgfortran*)
8779 # Portland Group f77 and f90 compilers
8780 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
8781 tmp_addflag=' $pic_flag -Mnomain' ;;
8782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8783 tmp_addflag=' -i_dynamic' ;;
8784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8785 tmp_addflag=' -i_dynamic -nofor_main' ;;
8786 ifc* | ifort*) # Intel Fortran compiler
8787 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8788 lf95*) # Lahey Fortran 8.1
8789 whole_archive_flag_spec=
8790 tmp_sharedflag='--shared' ;;
3725885a 8791 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8792 tmp_sharedflag='-qmkshrobj'
8793 tmp_addflag= ;;
3725885a
RW
8794 nvcc*) # Cuda Compiler Driver 2.2
8795 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8796 compiler_needs_object=yes
8797 ;;
ce2cded5
L
8798 esac
8799 case `$CC -V 2>&1 | sed 5q` in
8800 *Sun\ C*) # Sun C 5.9
3725885a 8801 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
8802 compiler_needs_object=yes
8803 tmp_sharedflag='-G' ;;
8804 *Sun\ F*) # Sun Fortran 8.3
8805 tmp_sharedflag='-G' ;;
ce2cded5
L
8806 esac
8807 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8808
ce2cded5
L
8809 if test "x$supports_anon_versioning" = xyes; then
8810 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812 echo "local: *; };" >> $output_objdir/$libname.ver~
8813 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8814 fi
718a6fd8
SE
8815
8816 case $cc_basename in
3725885a 8817 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8818 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8819 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8820 hardcode_libdir_flag_spec=
8821 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8822 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8823 if test "x$supports_anon_versioning" = xyes; then
8824 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8826 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8827 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8828 fi
8829 ;;
8830 esac
ce2cded5
L
8831 else
8832 ld_shlibs=no
8833 fi
8834 ;;
d7040cdb 8835
ce2cded5
L
8836 netbsd*)
8837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8838 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8839 wlarc=
8840 else
f2c621e4
AS
8841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8843 fi
8844 ;;
d7040cdb 8845
ce2cded5
L
8846 solaris*)
8847 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8848 ld_shlibs=no
8849 cat <<_LT_EOF 1>&2
d7040cdb 8850
ce2cded5
L
8851*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8852*** create shared libraries on Solaris systems. Therefore, libtool
8853*** is disabling shared libraries support. We urge you to upgrade GNU
8854*** binutils to release 2.9.1 or newer. Another option is to modify
8855*** your PATH or compiler configuration so that the native linker is
8856*** used, and then restart.
d7040cdb 8857
ce2cded5
L
8858_LT_EOF
8859 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8862 else
8863 ld_shlibs=no
8864 fi
8865 ;;
d7040cdb 8866
ce2cded5
L
8867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8868 case `$LD -v 2>&1` in
8869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8870 ld_shlibs=no
8871 cat <<_LT_EOF 1>&2
d7040cdb 8872
ce2cded5
L
8873*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8874*** reliably create shared libraries on SCO systems. Therefore, libtool
8875*** is disabling shared libraries support. We urge you to upgrade GNU
8876*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8877*** your PATH or compiler configuration so that the native linker is
8878*** used, and then restart.
d7040cdb 8879
ce2cded5
L
8880_LT_EOF
8881 ;;
8882 *)
8883 # For security reasons, it is highly recommended that you always
8884 # use absolute paths for naming shared libraries, and exclude the
8885 # DT_RUNPATH tag from executables and libraries. But doing so
8886 # requires that you compile everything twice, which is a pain.
8887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8891 else
8892 ld_shlibs=no
8893 fi
8894 ;;
8895 esac
8896 ;;
d7040cdb 8897
ce2cded5
L
8898 sunos4*)
8899 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8900 wlarc=
8901 hardcode_direct=yes
8902 hardcode_shlibpath_var=no
8903 ;;
d7040cdb 8904
ce2cded5
L
8905 *)
8906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8909 else
8910 ld_shlibs=no
8911 fi
8912 ;;
8913 esac
d7040cdb 8914
ce2cded5
L
8915 if test "$ld_shlibs" = no; then
8916 runpath_var=
8917 hardcode_libdir_flag_spec=
8918 export_dynamic_flag_spec=
8919 whole_archive_flag_spec=
8920 fi
8921 else
8922 # PORTME fill in a description of your system's linker (not GNU ld)
8923 case $host_os in
8924 aix3*)
8925 allow_undefined_flag=unsupported
8926 always_export_symbols=yes
8927 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8928 # Note: this linker hardcodes the directories in LIBPATH if there
8929 # are no directories specified by -L.
8930 hardcode_minus_L=yes
8931 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8932 # Neither direct hardcoding nor static linking is supported with a
8933 # broken collect2.
8934 hardcode_direct=unsupported
8935 fi
8936 ;;
d7040cdb 8937
50e7d84b 8938 aix[4-9]*)
ce2cded5
L
8939 if test "$host_cpu" = ia64; then
8940 # On IA64, the linker does run time linking by default, so we don't
8941 # have to do anything special.
8942 aix_use_runtimelinking=no
8943 exp_sym_flag='-Bexport'
8944 no_entry_flag=""
8945 else
8946 # If we're using GNU nm, then we don't want the "-C" option.
8947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8948 # Also, AIX nm treats weak defined symbols like other global
8949 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 8950 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8951 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5 8952 else
5c14705f 8953 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
8954 fi
8955 aix_use_runtimelinking=no
d7040cdb 8956
ce2cded5
L
8957 # Test if we are trying to use run time linking or normal
8958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8959 # need to do runtime linking.
50e7d84b 8960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8961 for ld_flag in $LDFLAGS; do
8962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8963 aix_use_runtimelinking=yes
8964 break
8965 fi
8966 done
8967 ;;
8968 esac
d7040cdb 8969
ce2cded5
L
8970 exp_sym_flag='-bexport'
8971 no_entry_flag='-bnoentry'
8972 fi
d7040cdb 8973
ce2cded5
L
8974 # When large executables or shared objects are built, AIX ld can
8975 # have problems creating the table of contents. If linking a library
8976 # or program results in "error TOC overflow" add -mminimal-toc to
8977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8979
ce2cded5
L
8980 archive_cmds=''
8981 hardcode_direct=yes
8982 hardcode_direct_absolute=yes
8983 hardcode_libdir_separator=':'
8984 link_all_deplibs=yes
8985 file_list_spec='${wl}-f,'
d7040cdb 8986
ce2cded5
L
8987 if test "$GCC" = yes; then
8988 case $host_os in aix4.[012]|aix4.[012].*)
8989 # We only want to do this on AIX 4.2 and lower, the check
8990 # below for broken collect2 doesn't work under 4.3+
8991 collect2name=`${CC} -print-prog-name=collect2`
8992 if test -f "$collect2name" &&
8993 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8994 then
8995 # We have reworked collect2
8996 :
8997 else
8998 # We have old collect2
8999 hardcode_direct=unsupported
9000 # It fails to find uninstalled libraries when the uninstalled
9001 # path is not listed in the libpath. Setting hardcode_minus_L
9002 # to unsupported forces relinking
9003 hardcode_minus_L=yes
9004 hardcode_libdir_flag_spec='-L$libdir'
9005 hardcode_libdir_separator=
9006 fi
9007 ;;
9008 esac
9009 shared_flag='-shared'
9010 if test "$aix_use_runtimelinking" = yes; then
9011 shared_flag="$shared_flag "'${wl}-G'
9012 fi
9013 else
9014 # not using gcc
9015 if test "$host_cpu" = ia64; then
9016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9017 # chokes on -Wl,-G. The following line is correct:
9018 shared_flag='-G'
9019 else
9020 if test "$aix_use_runtimelinking" = yes; then
9021 shared_flag='${wl}-G'
9022 else
9023 shared_flag='${wl}-bM:SRE'
9024 fi
9025 fi
9026 fi
d7040cdb 9027
718a6fd8 9028 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9029 # It seems that -bexpall does not export symbols beginning with
9030 # underscore (_), so it is better to generate a list of symbols to export.
9031 always_export_symbols=yes
9032 if test "$aix_use_runtimelinking" = yes; then
9033 # Warning - without using the other runtime loading flags (-brtl),
9034 # -berok will link without error, but may produce a broken library.
9035 allow_undefined_flag='-berok'
9036 # Determine the default libpath from the value encoded in an
9037 # empty executable.
f2c621e4 9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9039/* end confdefs.h. */
d7040cdb 9040
ce2cded5
L
9041int
9042main ()
9043{
d7040cdb 9044
ce2cded5
L
9045 ;
9046 return 0;
9047}
9048_ACEOF
81ecdfbb 9049if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9050
f2c621e4
AS
9051lt_aix_libpath_sed='
9052 /Import File Strings/,/^$/ {
9053 /^0/ {
9054 s/^0 *\(.*\)$/\1/
9055 p
9056 }
9057 }'
9058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9059# Check for a 64-bit object if we didn't find anything.
9060if test -z "$aix_libpath"; then
9061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9062fi
ce2cded5 9063fi
81ecdfbb
RW
9064rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9067
ce2cded5 9068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9069 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
ce2cded5
L
9070 else
9071 if test "$host_cpu" = ia64; then
9072 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9073 allow_undefined_flag="-z nodefs"
9074 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9075 else
9076 # Determine the default libpath from the value encoded in an
9077 # empty executable.
f2c621e4 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9079/* end confdefs.h. */
d7040cdb 9080
ce2cded5
L
9081int
9082main ()
9083{
d7040cdb 9084
ce2cded5
L
9085 ;
9086 return 0;
9087}
9088_ACEOF
81ecdfbb 9089if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9090
f2c621e4
AS
9091lt_aix_libpath_sed='
9092 /Import File Strings/,/^$/ {
9093 /^0/ {
9094 s/^0 *\(.*\)$/\1/
9095 p
9096 }
9097 }'
9098aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099# Check for a 64-bit object if we didn't find anything.
9100if test -z "$aix_libpath"; then
9101 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102fi
ce2cded5 9103fi
81ecdfbb
RW
9104rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9106if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9107
ce2cded5
L
9108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109 # Warning - without using the other run time loading flags,
9110 # -berok will link without error, but may produce a broken library.
9111 no_undefined_flag=' ${wl}-bernotok'
9112 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9113 if test "$with_gnu_ld" = yes; then
9114 # We only use this code for GNU lds that support --whole-archive.
9115 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9116 else
9117 # Exported symbols can be pulled into shared objects from archives
9118 whole_archive_flag_spec='$convenience'
9119 fi
ce2cded5
L
9120 archive_cmds_need_lc=yes
9121 # This is similar to how AIX traditionally builds its shared libraries.
9122 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9123 fi
9124 fi
9125 ;;
d7040cdb 9126
ce2cded5 9127 amigaos*)
718a6fd8
SE
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds=''
9133 ;;
9134 m68k)
9135 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 hardcode_minus_L=yes
9138 ;;
9139 esac
ce2cded5 9140 ;;
d7040cdb 9141
ce2cded5
L
9142 bsdi[45]*)
9143 export_dynamic_flag_spec=-rdynamic
9144 ;;
d7040cdb 9145
718a6fd8 9146 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9147 # When not using gcc, we currently assume that we are using
9148 # Microsoft Visual C++.
9149 # hardcode_libdir_flag_spec is actually meaningless, as there is
9150 # no search path for DLLs.
f2c621e4
AS
9151 hardcode_libdir_flag_spec=' '
9152 allow_undefined_flag=unsupported
9153 # Tell ltmain to make .lib files, not .a files.
9154 libext=lib
9155 # Tell ltmain to make .dll files, not .so files.
9156 shrext_cmds=".dll"
9157 # FIXME: Setting linknames here is a bad hack.
9158 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9159 # The linker will automatically build a .lib file if we build a DLL.
9160 old_archive_from_new_cmds='true'
9161 # FIXME: Should let the user specify the lib program.
9162 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9163 fix_srcfile_path='`cygpath -w "$srcfile"`'
9164 enable_shared_with_static_runtimes=yes
ce2cded5 9165 ;;
d7040cdb 9166
ce2cded5 9167 darwin* | rhapsody*)
d7040cdb 9168
718a6fd8
SE
9169
9170 archive_cmds_need_lc=no
9171 hardcode_direct=no
9172 hardcode_automatic=yes
9173 hardcode_shlibpath_var=unsupported
3725885a
RW
9174 if test "$lt_cv_ld_force_load" = "yes"; then
9175 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9176 else
9177 whole_archive_flag_spec=''
9178 fi
718a6fd8
SE
9179 link_all_deplibs=yes
9180 allow_undefined_flag="$_lt_dar_allow_undefined"
9181 case $cc_basename in
9182 ifort*) _lt_dar_can_shared=yes ;;
9183 *) _lt_dar_can_shared=$GCC ;;
9184 esac
9185 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9186 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9187 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9188 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9189 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9190 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9191
9192 else
9193 ld_shlibs=no
9194 fi
9195
ce2cded5 9196 ;;
d7040cdb 9197
ce2cded5
L
9198 dgux*)
9199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_libdir_flag_spec='-L$libdir'
9201 hardcode_shlibpath_var=no
9202 ;;
d7040cdb 9203
ce2cded5
L
9204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9205 # support. Future versions do this automatically, but an explicit c++rt0.o
9206 # does not break anything, and helps significantly (at the cost of a little
9207 # extra space).
9208 freebsd2.2*)
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9210 hardcode_libdir_flag_spec='-R$libdir'
9211 hardcode_direct=yes
9212 hardcode_shlibpath_var=no
9213 ;;
d7040cdb 9214
ce2cded5 9215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9216 freebsd2.*)
ce2cded5
L
9217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9218 hardcode_direct=yes
9219 hardcode_minus_L=yes
9220 hardcode_shlibpath_var=no
9221 ;;
d7040cdb 9222
ce2cded5
L
9223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9224 freebsd* | dragonfly*)
f2c621e4 9225 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9226 hardcode_libdir_flag_spec='-R$libdir'
9227 hardcode_direct=yes
9228 hardcode_shlibpath_var=no
9229 ;;
d7040cdb 9230
ce2cded5
L
9231 hpux9*)
9232 if test "$GCC" = yes; then
f2c621e4 9233 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
ce2cded5
L
9234 else
9235 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9236 fi
9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9238 hardcode_libdir_separator=:
9239 hardcode_direct=yes
d7040cdb 9240
ce2cded5
L
9241 # hardcode_minus_L: Not really in the search PATH,
9242 # but as the default location of the library.
9243 hardcode_minus_L=yes
9244 export_dynamic_flag_spec='${wl}-E'
9245 ;;
d7040cdb 9246
ce2cded5 9247 hpux10*)
3725885a 9248 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9250 else
9251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9252 fi
9253 if test "$with_gnu_ld" = no; then
9254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255 hardcode_libdir_flag_spec_ld='+b $libdir'
9256 hardcode_libdir_separator=:
9257 hardcode_direct=yes
9258 hardcode_direct_absolute=yes
9259 export_dynamic_flag_spec='${wl}-E'
9260 # hardcode_minus_L: Not really in the search PATH,
9261 # but as the default location of the library.
9262 hardcode_minus_L=yes
9263 fi
9264 ;;
d7040cdb 9265
ce2cded5 9266 hpux11*)
3725885a 9267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9268 case $host_cpu in
9269 hppa*64*)
9270 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9271 ;;
9272 ia64*)
f2c621e4 9273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9274 ;;
9275 *)
f2c621e4 9276 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9277 ;;
9278 esac
9279 else
9280 case $host_cpu in
9281 hppa*64*)
9282 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283 ;;
9284 ia64*)
9285 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9286 ;;
9287 *)
3725885a
RW
9288
9289 # Older versions of the 11.00 compiler do not understand -b yet
9290 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9292$as_echo_n "checking if $CC understands -b... " >&6; }
9293if test "${lt_cv_prog_compiler__b+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295else
9296 lt_cv_prog_compiler__b=no
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -b"
9299 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9300 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9301 # The linker can only warn and ignore the option if not recognized
9302 # So say no if there are warnings
9303 if test -s conftest.err; then
9304 # Append any errors to the config.log.
9305 cat conftest.err 1>&5
9306 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9308 if diff conftest.exp conftest.er2 >/dev/null; then
9309 lt_cv_prog_compiler__b=yes
9310 fi
9311 else
9312 lt_cv_prog_compiler__b=yes
9313 fi
9314 fi
9315 $RM -r conftest*
9316 LDFLAGS="$save_LDFLAGS"
9317
9318fi
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9320$as_echo "$lt_cv_prog_compiler__b" >&6; }
9321
9322if test x"$lt_cv_prog_compiler__b" = xyes; then
9323 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324else
9325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9326fi
9327
ce2cded5
L
9328 ;;
9329 esac
9330 fi
9331 if test "$with_gnu_ld" = no; then
9332 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9333 hardcode_libdir_separator=:
d7040cdb 9334
ce2cded5
L
9335 case $host_cpu in
9336 hppa*64*|ia64*)
9337 hardcode_direct=no
9338 hardcode_shlibpath_var=no
9339 ;;
9340 *)
9341 hardcode_direct=yes
9342 hardcode_direct_absolute=yes
9343 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9344
ce2cded5
L
9345 # hardcode_minus_L: Not really in the search PATH,
9346 # but as the default location of the library.
9347 hardcode_minus_L=yes
9348 ;;
9349 esac
9350 fi
9351 ;;
9352
9353 irix5* | irix6* | nonstopux*)
9354 if test "$GCC" = yes; then
f2c621e4 9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9356 # Try to use the -exported_symbol ld option, if it does not
9357 # work, assume that -exports_file does not work either and
9358 # implicitly export all symbols.
f2c621e4
AS
9359 save_LDFLAGS="$LDFLAGS"
9360 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9362/* end confdefs.h. */
f2c621e4 9363int foo(void) {}
ce2cded5 9364_ACEOF
81ecdfbb 9365if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9367
d7040cdb 9368fi
81ecdfbb
RW
9369rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9371 LDFLAGS="$save_LDFLAGS"
ce2cded5 9372 else
3725885a
RW
9373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
ce2cded5
L
9375 fi
9376 archive_cmds_need_lc='no'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 hardcode_libdir_separator=:
9379 inherit_rpath=yes
9380 link_all_deplibs=yes
9381 ;;
d7040cdb 9382
ce2cded5
L
9383 netbsd*)
9384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9386 else
9387 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9388 fi
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_direct=yes
9391 hardcode_shlibpath_var=no
9392 ;;
d7040cdb 9393
ce2cded5
L
9394 newsos6)
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_direct=yes
9397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398 hardcode_libdir_separator=:
9399 hardcode_shlibpath_var=no
9400 ;;
d7040cdb 9401
ce2cded5
L
9402 *nto* | *qnx*)
9403 ;;
d7040cdb 9404
ce2cded5 9405 openbsd*)
718a6fd8
SE
9406 if test -f /usr/libexec/ld.so; then
9407 hardcode_direct=yes
9408 hardcode_shlibpath_var=no
9409 hardcode_direct_absolute=yes
9410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9412 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9414 export_dynamic_flag_spec='${wl}-E'
9415 else
9416 case $host_os in
9417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9419 hardcode_libdir_flag_spec='-R$libdir'
9420 ;;
9421 *)
9422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9424 ;;
9425 esac
9426 fi
9427 else
9428 ld_shlibs=no
d7040cdb
SE
9429 fi
9430 ;;
d7040cdb 9431
ce2cded5
L
9432 os2*)
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_minus_L=yes
9435 allow_undefined_flag=unsupported
3725885a 9436 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
ce2cded5
L
9437 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9438 ;;
d7040cdb 9439
ce2cded5
L
9440 osf3*)
9441 if test "$GCC" = yes; then
9442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9443 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9444 else
9445 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9446 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5
L
9447 fi
9448 archive_cmds_need_lc='no'
9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450 hardcode_libdir_separator=:
9451 ;;
d7040cdb 9452
ce2cded5
L
9453 osf4* | osf5*) # as osf3* with the addition of -msym flag
9454 if test "$GCC" = yes; then
9455 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9456 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9458 else
9459 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9460 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5 9461 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
3725885a 9462 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 9463
ce2cded5
L
9464 # Both c and cxx compiler support -rpath directly
9465 hardcode_libdir_flag_spec='-rpath $libdir'
9466 fi
9467 archive_cmds_need_lc='no'
9468 hardcode_libdir_separator=:
9469 ;;
d7040cdb 9470
ce2cded5
L
9471 solaris*)
9472 no_undefined_flag=' -z defs'
9473 if test "$GCC" = yes; then
9474 wlarc='${wl}'
f2c621e4 9475 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5 9476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9477 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ce2cded5
L
9478 else
9479 case `$CC -V 2>&1` in
9480 *"Compilers 5.0"*)
9481 wlarc=''
9482 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9484 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9485 ;;
9486 *)
9487 wlarc='${wl}'
9488 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9490 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9491 ;;
9492 esac
9493 fi
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_shlibpath_var=no
9496 case $host_os in
9497 solaris2.[0-5] | solaris2.[0-5].*) ;;
9498 *)
9499 # The compiler driver will combine and reorder linker options,
9500 # but understands `-z linker_flag'. GCC discards it without `$wl',
9501 # but is careful enough not to reorder.
9502 # Supported since Solaris 2.6 (maybe 2.5.1?)
9503 if test "$GCC" = yes; then
9504 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9505 else
9506 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9507 fi
9508 ;;
9509 esac
9510 link_all_deplibs=yes
d7040cdb 9511 ;;
ce2cded5
L
9512
9513 sunos4*)
9514 if test "x$host_vendor" = xsequent; then
9515 # Use $CC to link under sequent, because it throws in some extra .o
9516 # files that make .init and .fini sections work.
9517 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9518 else
ce2cded5 9519 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9520 fi
ce2cded5
L
9521 hardcode_libdir_flag_spec='-L$libdir'
9522 hardcode_direct=yes
9523 hardcode_minus_L=yes
9524 hardcode_shlibpath_var=no
d7040cdb 9525 ;;
ce2cded5
L
9526
9527 sysv4)
9528 case $host_vendor in
9529 sni)
9530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_direct=yes # is this really true???
9532 ;;
9533 siemens)
9534 ## LD is ld it makes a PLAMLIB
9535 ## CC just makes a GrossModule.
9536 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9537 reload_cmds='$CC -r -o $output$reload_objs'
9538 hardcode_direct=no
9539 ;;
9540 motorola)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9543 ;;
9544 esac
9545 runpath_var='LD_RUN_PATH'
9546 hardcode_shlibpath_var=no
d7040cdb 9547 ;;
d7040cdb 9548
ce2cded5
L
9549 sysv4.3*)
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_shlibpath_var=no
9552 export_dynamic_flag_spec='-Bexport'
9553 ;;
d7040cdb 9554
ce2cded5
L
9555 sysv4*MP*)
9556 if test -d /usr/nec; then
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_shlibpath_var=no
9559 runpath_var=LD_RUN_PATH
9560 hardcode_runpath_var=yes
9561 ld_shlibs=yes
9562 fi
9563 ;;
d7040cdb 9564
ce2cded5
L
9565 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9566 no_undefined_flag='${wl}-z,text'
9567 archive_cmds_need_lc=no
9568 hardcode_shlibpath_var=no
9569 runpath_var='LD_RUN_PATH'
d7040cdb 9570
ce2cded5
L
9571 if test "$GCC" = yes; then
9572 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9574 else
9575 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 fi
9578 ;;
d7040cdb 9579
ce2cded5
L
9580 sysv5* | sco3.2v5* | sco5v6*)
9581 # Note: We can NOT use -z defs as we might desire, because we do not
9582 # link with -lc, and that would cause any symbols used from libc to
9583 # always be unresolved, which means just about no library would
9584 # ever link correctly. If we're not using GNU ld we use -z text
9585 # though, which does catch some bad symbols but isn't as heavy-handed
9586 # as -z defs.
9587 no_undefined_flag='${wl}-z,text'
9588 allow_undefined_flag='${wl}-z,nodefs'
9589 archive_cmds_need_lc=no
9590 hardcode_shlibpath_var=no
9591 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9592 hardcode_libdir_separator=':'
9593 link_all_deplibs=yes
9594 export_dynamic_flag_spec='${wl}-Bexport'
9595 runpath_var='LD_RUN_PATH'
d7040cdb 9596
ce2cded5
L
9597 if test "$GCC" = yes; then
9598 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 else
9601 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 fi
d7040cdb 9604 ;;
d7040cdb 9605
ce2cded5
L
9606 uts4*)
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_shlibpath_var=no
9610 ;;
d7040cdb 9611
ce2cded5
L
9612 *)
9613 ld_shlibs=no
9614 ;;
9615 esac
9616
9617 if test x$host_vendor = xsni; then
9618 case $host in
9619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9620 export_dynamic_flag_spec='${wl}-Blargedynsym'
9621 ;;
9622 esac
d7040cdb 9623 fi
ce2cded5 9624 fi
d7040cdb 9625
81ecdfbb
RW
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9627$as_echo "$ld_shlibs" >&6; }
ce2cded5 9628test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9629
ce2cded5 9630with_gnu_ld=$with_gnu_ld
d7040cdb 9631
d7040cdb 9632
d7040cdb 9633
d7040cdb 9634
d7040cdb 9635
d7040cdb 9636
d7040cdb 9637
d7040cdb 9638
d7040cdb 9639
d7040cdb 9640
d7040cdb 9641
d7040cdb 9642
d7040cdb 9643
d7040cdb 9644
d7040cdb 9645
ce2cded5
L
9646#
9647# Do we need to explicitly link libc?
9648#
9649case "x$archive_cmds_need_lc" in
9650x|xyes)
9651 # Assume -lc should be added
9652 archive_cmds_need_lc=yes
d7040cdb 9653
ce2cded5
L
9654 if test "$enable_shared" = yes && test "$GCC" = yes; then
9655 case $archive_cmds in
9656 *'~'*)
9657 # FIXME: we may have to deal with multi-command sequences.
9658 ;;
9659 '$CC '*)
9660 # Test whether the compiler implicitly links with -lc since on some
9661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9662 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9664$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9665if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
39144654
RW
9667else
9668 $RM conftest*
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9670
81ecdfbb 9671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9672 (eval $ac_compile) 2>&5
9673 ac_status=$?
81ecdfbb
RW
9674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9675 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9676 soname=conftest
9677 lib=conftest
9678 libobjs=conftest.$ac_objext
9679 deplibs=
9680 wl=$lt_prog_compiler_wl
9681 pic_flag=$lt_prog_compiler_pic
9682 compiler_flags=-v
9683 linker_flags=-v
9684 verstring=
9685 output_objdir=.
9686 libname=conftest
9687 lt_save_allow_undefined_flag=$allow_undefined_flag
9688 allow_undefined_flag=
81ecdfbb 9689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9690 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9691 ac_status=$?
81ecdfbb
RW
9692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9693 test $ac_status = 0; }
39144654
RW
9694 then
9695 lt_cv_archive_cmds_need_lc=no
9696 else
9697 lt_cv_archive_cmds_need_lc=yes
9698 fi
9699 allow_undefined_flag=$lt_save_allow_undefined_flag
9700 else
9701 cat conftest.err 1>&5
9702 fi
9703 $RM conftest*
9704
9705fi
81ecdfbb
RW
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9707$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9708 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9709 ;;
9710 esac
d7040cdb 9711 fi
d7040cdb 9712 ;;
ce2cded5 9713esac
d7040cdb 9714
d7040cdb 9715
d7040cdb 9716
d7040cdb 9717
d7040cdb 9718
d7040cdb 9719
d7040cdb 9720
d7040cdb
SE
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
d7040cdb 9808
d7040cdb 9809
d7040cdb
SE
9810
9811
9812
9813
9814
9815
d7040cdb 9816
d7040cdb 9817
d7040cdb 9818
d7040cdb 9819
d7040cdb 9820
d7040cdb 9821
d7040cdb 9822
d7040cdb 9823
d7040cdb 9824
d7040cdb 9825
d7040cdb 9826
d7040cdb 9827
d7040cdb 9828
d7040cdb 9829
d7040cdb 9830
d7040cdb 9831
d7040cdb 9832
d7040cdb 9833
d7040cdb 9834
d7040cdb 9835
d7040cdb 9836
d7040cdb 9837
d7040cdb 9838
ce2cded5
L
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
81ecdfbb
RW
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9872$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9873
9874if test "$GCC" = yes; then
ce2cded5
L
9875 case $host_os in
9876 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9877 *) lt_awk_arg="/^libraries:/" ;;
9878 esac
3725885a
RW
9879 case $host_os in
9880 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9881 *) lt_sed_strip_eq="s,=/,/,g" ;;
9882 esac
9883 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9884 case $lt_search_path_spec in
9885 *\;*)
ce2cded5
L
9886 # if the path contains ";" then we assume it to be the separator
9887 # otherwise default to the standard path separator (i.e. ":") - it is
9888 # assumed that no part of a normal pathname contains ";" but that should
9889 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9891 ;;
9892 *)
9893 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9894 ;;
9895 esac
ce2cded5
L
9896 # Ok, now we have the path, separated by spaces, we can step through it
9897 # and add multilib dir if necessary.
9898 lt_tmp_lt_search_path_spec=
9899 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9900 for lt_sys_path in $lt_search_path_spec; do
9901 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9903 else
9904 test -d "$lt_sys_path" && \
9905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9906 fi
9907 done
3725885a 9908 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
9909BEGIN {RS=" "; FS="/|\n";} {
9910 lt_foo="";
9911 lt_count=0;
9912 for (lt_i = NF; lt_i > 0; lt_i--) {
9913 if ($lt_i != "" && $lt_i != ".") {
9914 if ($lt_i == "..") {
9915 lt_count++;
9916 } else {
9917 if (lt_count == 0) {
9918 lt_foo="/" $lt_i lt_foo;
9919 } else {
9920 lt_count--;
9921 }
9922 }
9923 }
9924 }
9925 if (lt_foo != "") { lt_freq[lt_foo]++; }
9926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9927}'`
3725885a
RW
9928 # AWK program above erroneously prepends '/' to C:/dos/paths
9929 # for these hosts.
9930 case $host_os in
9931 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9932 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9933 esac
9934 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 9935else
ce2cded5
L
9936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9937fi
9938library_names_spec=
9939libname_spec='lib$name'
9940soname_spec=
9941shrext_cmds=".so"
9942postinstall_cmds=
9943postuninstall_cmds=
9944finish_cmds=
9945finish_eval=
9946shlibpath_var=
9947shlibpath_overrides_runpath=unknown
9948version_type=none
9949dynamic_linker="$host_os ld.so"
9950sys_lib_dlsearch_path_spec="/lib /usr/lib"
9951need_lib_prefix=unknown
9952hardcode_into_libs=no
9953
9954# when you set need_version to no, make sure it does not cause -set_version
9955# flags to be left without arguments
9956need_version=unknown
9957
9958case $host_os in
9959aix3*)
9960 version_type=linux
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9962 shlibpath_var=LIBPATH
9963
9964 # AIX 3 has no versioning support, so we append a major version to the name.
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 ;;
9967
50e7d84b 9968aix[4-9]*)
ce2cded5
L
9969 version_type=linux
9970 need_lib_prefix=no
9971 need_version=no
9972 hardcode_into_libs=yes
9973 if test "$host_cpu" = ia64; then
9974 # AIX 5 supports IA64
9975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 else
9978 # With GCC up to 2.95.x, collect2 would create an import file
9979 # for dependence libraries. The import file would start with
9980 # the line `#! .'. This would cause the generated library to
9981 # depend on `.', always an invalid library. This was fixed in
9982 # development snapshots of GCC prior to 3.0.
9983 case $host_os in
9984 aix4 | aix4.[01] | aix4.[01].*)
9985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9986 echo ' yes '
9987 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9988 :
9989 else
9990 can_build_shared=no
9991 fi
9992 ;;
9993 esac
9994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9995 # soname into executable. Probably we can add versioning support to
9996 # collect2, so additional links can be useful in future.
9997 if test "$aix_use_runtimelinking" = yes; then
9998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9999 # instead of lib<name>.a to let people know that these are not
10000 # typical AIX shared libraries.
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 else
10003 # We preserve .a as extension for shared libraries through AIX4.2
10004 # and later when we are not doing run time linking.
10005 library_names_spec='${libname}${release}.a $libname.a'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 fi
10008 shlibpath_var=LIBPATH
10009 fi
10010 ;;
10011
10012amigaos*)
718a6fd8
SE
10013 case $host_cpu in
10014 powerpc)
10015 # Since July 2007 AmigaOS4 officially supports .so libraries.
10016 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 ;;
10019 m68k)
ce2cded5
L
10020 library_names_spec='$libname.ixlibrary $libname.a'
10021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10022 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
718a6fd8
SE
10023 ;;
10024 esac
ce2cded5
L
10025 ;;
10026
10027beos*)
10028 library_names_spec='${libname}${shared_ext}'
10029 dynamic_linker="$host_os ld.so"
10030 shlibpath_var=LIBRARY_PATH
10031 ;;
10032
10033bsdi[45]*)
10034 version_type=linux
10035 need_version=no
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10042 # the default ld.so.conf also contains /usr/contrib/lib and
10043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10044 # libtool to hard-code these into programs
10045 ;;
10046
718a6fd8 10047cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10048 version_type=windows
10049 shrext_cmds=".dll"
10050 need_version=no
10051 need_lib_prefix=no
10052
f2c621e4
AS
10053 case $GCC,$host_os in
10054 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10055 library_names_spec='$libname.dll.a'
10056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10057 postinstall_cmds='base_file=`basename \${file}`~
10058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10059 dldir=$destdir/`dirname \$dlpath`~
10060 test -d \$dldir || mkdir -p \$dldir~
10061 $install_prog $dir/$dlname \$dldir/$dlname~
10062 chmod a+x \$dldir/$dlname~
10063 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10064 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10065 fi'
10066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10067 dlpath=$dir/\$dldll~
10068 $RM \$dlpath'
10069 shlibpath_overrides_runpath=yes
10070
10071 case $host_os in
10072 cygwin*)
10073 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10074 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10075
10076 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10077 ;;
718a6fd8 10078 mingw* | cegcc*)
ce2cded5
L
10079 # MinGW DLLs use traditional 'lib' prefix
10080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10081 ;;
10082 pw32*)
10083 # pw32 DLLs use 'pw' prefix rather than 'lib'
10084 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10085 ;;
10086 esac
10087 ;;
10088
10089 *)
10090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10091 ;;
10092 esac
f2c621e4 10093 dynamic_linker='Win32 ld.exe'
ce2cded5
L
10094 # FIXME: first we should search . and the directory the executable is in
10095 shlibpath_var=PATH
10096 ;;
10097
10098darwin* | rhapsody*)
10099 dynamic_linker="$host_os dyld"
10100 version_type=darwin
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10104 soname_spec='${libname}${release}${major}$shared_ext'
10105 shlibpath_overrides_runpath=yes
10106 shlibpath_var=DYLD_LIBRARY_PATH
10107 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10108
10109 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10111 ;;
10112
10113dgux*)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 ;;
10121
ce2cded5
L
10122freebsd* | dragonfly*)
10123 # DragonFly does not have aout. When/if they implement a new
10124 # versioning mechanism, adjust this.
10125 if test -x /usr/bin/objformat; then
10126 objformat=`/usr/bin/objformat`
10127 else
10128 case $host_os in
6d2920c8 10129 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10130 *) objformat=elf ;;
10131 esac
10132 fi
10133 version_type=freebsd-$objformat
10134 case $version_type in
10135 freebsd-elf*)
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10137 need_version=no
10138 need_lib_prefix=no
10139 ;;
10140 freebsd-*)
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10142 need_version=yes
10143 ;;
10144 esac
10145 shlibpath_var=LD_LIBRARY_PATH
10146 case $host_os in
6d2920c8 10147 freebsd2.*)
ce2cded5
L
10148 shlibpath_overrides_runpath=yes
10149 ;;
10150 freebsd3.[01]* | freebsdelf3.[01]*)
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10153 ;;
10154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10158 ;;
10159 *) # from 4.6 on, and DragonFly
10160 shlibpath_overrides_runpath=yes
10161 hardcode_into_libs=yes
10162 ;;
10163 esac
10164 ;;
10165
10166gnu*)
10167 version_type=linux
10168 need_lib_prefix=no
10169 need_version=no
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 hardcode_into_libs=yes
10174 ;;
10175
3725885a
RW
10176haiku*)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 dynamic_linker="$host_os runtime_loader"
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LIBRARY_PATH
10184 shlibpath_overrides_runpath=yes
f2c621e4 10185 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10186 hardcode_into_libs=yes
10187 ;;
10188
ce2cded5
L
10189hpux9* | hpux10* | hpux11*)
10190 # Give a soname corresponding to the major version so that dld.sl refuses to
10191 # link against other versions.
10192 version_type=sunos
10193 need_lib_prefix=no
10194 need_version=no
10195 case $host_cpu in
10196 ia64*)
10197 shrext_cmds='.so'
10198 hardcode_into_libs=yes
10199 dynamic_linker="$host_os dld.so"
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 if test "X$HPUX_IA64_MODE" = X32; then
10205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10206 else
10207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10208 fi
10209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10210 ;;
10211 hppa*64*)
10212 shrext_cmds='.sl'
10213 hardcode_into_libs=yes
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221 ;;
10222 *)
10223 shrext_cmds='.sl'
10224 dynamic_linker="$host_os dld.sl"
10225 shlibpath_var=SHLIB_PATH
10226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 ;;
10230 esac
3725885a 10231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10232 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10233 # or fails outright, so override atomically:
10234 install_override_mode=555
ce2cded5
L
10235 ;;
10236
10237interix[3-9]*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 ;;
10248
10249irix5* | irix6* | nonstopux*)
10250 case $host_os in
10251 nonstopux*) version_type=nonstopux ;;
10252 *)
10253 if test "$lt_cv_prog_gnu_ld" = yes; then
10254 version_type=linux
10255 else
10256 version_type=irix
10257 fi ;;
10258 esac
10259 need_lib_prefix=no
10260 need_version=no
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 case $host_os in
10264 irix5* | nonstopux*)
10265 libsuff= shlibsuff=
10266 ;;
10267 *)
10268 case $LD in # libtool.m4 will add one of these switches to LD
10269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10270 libsuff= shlibsuff= libmagic=32-bit;;
10271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10272 libsuff=32 shlibsuff=N32 libmagic=N32;;
10273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10275 *) libsuff= shlibsuff= libmagic=never-match;;
10276 esac
10277 ;;
10278 esac
10279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10280 shlibpath_overrides_runpath=no
10281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10283 hardcode_into_libs=yes
10284 ;;
d7040cdb 10285
ce2cded5
L
10286# No shared lib support for Linux oldld, aout, or coff.
10287linux*oldld* | linux*aout* | linux*coff*)
10288 dynamic_linker=no
10289 ;;
10290
10291# This must be Linux ELF.
58e24671 10292linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
39144654 10301
ce2cded5 10302 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10303 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
39144654
RW
10305else
10306 lt_cv_shlibpath_overrides_runpath=no
10307 save_LDFLAGS=$LDFLAGS
10308 save_libdir=$libdir
10309 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10310 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10312/* end confdefs.h. */
10313
d7040cdb
SE
10314int
10315main ()
10316{
ce2cded5 10317
d7040cdb
SE
10318 ;
10319 return 0;
10320}
10321_ACEOF
81ecdfbb
RW
10322if ac_fn_c_try_link "$LINENO"; then :
10323 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10324 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10325fi
ce2cded5 10326fi
81ecdfbb
RW
10327rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10329 LDFLAGS=$save_LDFLAGS
10330 libdir=$save_libdir
10331
10332fi
10333
10334 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10335
10336 # This implies no fast_install, which is unacceptable.
10337 # Some rework will be needed to allow for fast_install
10338 # before this can be enabled.
10339 hardcode_into_libs=yes
10340
10341 # Append ld.so.conf contents to the search path
10342 if test -f /etc/ld.so.conf; then
3725885a 10343 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
f2c621e4 10344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
ce2cded5
L
10345 fi
10346
10347 # We used to test for /lib/ld.so.1 and disable shared libraries on
10348 # powerpc, because MkLinux only supported shared libraries with the
10349 # GNU dynamic linker. Since this was broken with cross compilers,
10350 # most powerpc-linux boxes support dynamic linking these days and
10351 # people can always --disable-shared, the test was removed, and we
10352 # assume the GNU/Linux dynamic linker is in use.
10353 dynamic_linker='GNU/Linux ld.so'
10354 ;;
10355
10356netbsd*)
10357 version_type=sunos
10358 need_lib_prefix=no
10359 need_version=no
10360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10363 dynamic_linker='NetBSD (a.out) ld.so'
10364 else
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 dynamic_linker='NetBSD ld.elf_so'
10368 fi
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 ;;
10373
10374newsos6)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 ;;
10380
10381*nto* | *qnx*)
10382 version_type=qnx
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=no
10389 hardcode_into_libs=yes
10390 dynamic_linker='ldqnx.so'
10391 ;;
10392
10393openbsd*)
10394 version_type=sunos
10395 sys_lib_dlsearch_path_spec="/usr/lib"
10396 need_lib_prefix=no
10397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10398 case $host_os in
10399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10400 *) need_version=no ;;
10401 esac
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10406 case $host_os in
10407 openbsd2.[89] | openbsd2.[89].*)
10408 shlibpath_overrides_runpath=no
10409 ;;
10410 *)
10411 shlibpath_overrides_runpath=yes
10412 ;;
10413 esac
10414 else
10415 shlibpath_overrides_runpath=yes
10416 fi
10417 ;;
10418
10419os2*)
10420 libname_spec='$name'
10421 shrext_cmds=".dll"
10422 need_lib_prefix=no
10423 library_names_spec='$libname${shared_ext} $libname.a'
10424 dynamic_linker='OS/2 ld.exe'
10425 shlibpath_var=LIBPATH
10426 ;;
10427
10428osf3* | osf4* | osf5*)
10429 version_type=osf
10430 need_lib_prefix=no
10431 need_version=no
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10437 ;;
10438
10439rdos*)
10440 dynamic_linker=no
10441 ;;
10442
10443solaris*)
10444 version_type=linux
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10452 # ldd complains unless libraries are executable
10453 postinstall_cmds='chmod +x $lib'
10454 ;;
10455
10456sunos4*)
10457 version_type=sunos
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10462 if test "$with_gnu_ld" = yes; then
10463 need_lib_prefix=no
10464 fi
10465 need_version=yes
10466 ;;
10467
10468sysv4 | sysv4.3*)
10469 version_type=linux
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 case $host_vendor in
10474 sni)
10475 shlibpath_overrides_runpath=no
10476 need_lib_prefix=no
10477 runpath_var=LD_RUN_PATH
10478 ;;
10479 siemens)
10480 need_lib_prefix=no
10481 ;;
10482 motorola)
10483 need_lib_prefix=no
10484 need_version=no
10485 shlibpath_overrides_runpath=no
10486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10487 ;;
10488 esac
10489 ;;
10490
10491sysv4*MP*)
10492 if test -d /usr/nec ;then
10493 version_type=linux
10494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10495 soname_spec='$libname${shared_ext}.$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 fi
10498 ;;
10499
10500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10501 version_type=freebsd-elf
10502 need_lib_prefix=no
10503 need_version=no
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 hardcode_into_libs=yes
10509 if test "$with_gnu_ld" = yes; then
10510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10511 else
10512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10513 case $host_os in
10514 sco3.2v5*)
10515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10516 ;;
10517 esac
10518 fi
10519 sys_lib_dlsearch_path_spec='/usr/lib'
10520 ;;
10521
10522tpf*)
10523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10524 version_type=linux
10525 need_lib_prefix=no
10526 need_version=no
718a6fd8 10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=no
10530 hardcode_into_libs=yes
10531 ;;
d7040cdb 10532
ce2cded5
L
10533uts4*)
10534 version_type=linux
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 ;;
d7040cdb 10539
ce2cded5
L
10540*)
10541 dynamic_linker=no
10542 ;;
10543esac
81ecdfbb
RW
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10545$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10546test "$dynamic_linker" = no && can_build_shared=no
10547
10548variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10549if test "$GCC" = yes; then
10550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10551fi
d7040cdb 10552
718a6fd8
SE
10553if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10554 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10555fi
10556if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10558fi
10559
d7040cdb 10560
d7040cdb
SE
10561
10562
d7040cdb
SE
10563
10564
d7040cdb
SE
10565
10566
d7040cdb
SE
10567
10568
d7040cdb
SE
10569
10570
d7040cdb 10571
d7040cdb 10572
d7040cdb 10573
d7040cdb 10574
d7040cdb 10575
d7040cdb 10576
d7040cdb 10577
d7040cdb 10578
d7040cdb 10579
d7040cdb 10580
d7040cdb 10581
d7040cdb 10582
d7040cdb 10583
d7040cdb 10584
d7040cdb
SE
10585
10586
d7040cdb 10587
d7040cdb 10588
d7040cdb 10589
d7040cdb 10590
d7040cdb 10591
d7040cdb 10592
d7040cdb 10593
d7040cdb 10594
d7040cdb 10595
d7040cdb
SE
10596
10597
d7040cdb 10598
d7040cdb 10599
d7040cdb 10600
d7040cdb
SE
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
d7040cdb
SE
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
d7040cdb 10630
d7040cdb 10631
d7040cdb 10632
d7040cdb 10633
d7040cdb
SE
10634
10635
10636
10637
ce2cded5
L
10638
10639
3725885a
RW
10640
10641
10642
10643
10644
ce2cded5
L
10645
10646
10647
10648
10649
10650
81ecdfbb
RW
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10652$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10653hardcode_action=
10654if test -n "$hardcode_libdir_flag_spec" ||
10655 test -n "$runpath_var" ||
10656 test "X$hardcode_automatic" = "Xyes" ; then
10657
10658 # We can hardcode non-existent directories.
10659 if test "$hardcode_direct" != no &&
10660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10661 # have to relink, otherwise we might link with an installed library
10662 # when we should be linking with a yet-to-be-installed one
10663 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10664 test "$hardcode_minus_L" != no; then
10665 # Linking always hardcodes the temporary library directory.
10666 hardcode_action=relink
10667 else
10668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10669 hardcode_action=immediate
10670 fi
10671else
10672 # We cannot hardcode anything, or else we can only hardcode existing
10673 # directories.
10674 hardcode_action=unsupported
10675fi
81ecdfbb
RW
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10677$as_echo "$hardcode_action" >&6; }
ce2cded5
L
10678
10679if test "$hardcode_action" = relink ||
10680 test "$inherit_rpath" = yes; then
10681 # Fast installation is not supported
10682 enable_fast_install=no
10683elif test "$shlibpath_overrides_runpath" = yes ||
10684 test "$enable_shared" = no; then
10685 # Fast installation is not necessary
10686 enable_fast_install=needless
d7040cdb 10687fi
d7040cdb 10688
d7040cdb
SE
10689
10690
10691
10692
10693
ce2cded5
L
10694 if test "x$enable_dlopen" != xyes; then
10695 enable_dlopen=unknown
10696 enable_dlopen_self=unknown
10697 enable_dlopen_self_static=unknown
10698else
10699 lt_cv_dlopen=no
10700 lt_cv_dlopen_libs=
10701
10702 case $host_os in
10703 beos*)
10704 lt_cv_dlopen="load_add_on"
10705 lt_cv_dlopen_libs=
10706 lt_cv_dlopen_self=yes
10707 ;;
d7040cdb 10708
718a6fd8 10709 mingw* | pw32* | cegcc*)
ce2cded5
L
10710 lt_cv_dlopen="LoadLibrary"
10711 lt_cv_dlopen_libs=
10712 ;;
d7040cdb 10713
ce2cded5
L
10714 cygwin*)
10715 lt_cv_dlopen="dlopen"
10716 lt_cv_dlopen_libs=
10717 ;;
d7040cdb 10718
ce2cded5
L
10719 darwin*)
10720 # if libdl is installed we need to link against it
81ecdfbb
RW
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722$as_echo_n "checking for dlopen in -ldl... " >&6; }
10723if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
ce2cded5
L
10725else
10726 ac_check_lib_save_LIBS=$LIBS
10727LIBS="-ldl $LIBS"
81ecdfbb 10728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10729/* end confdefs.h. */
d7040cdb 10730
81ecdfbb
RW
10731/* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
ce2cded5
L
10734#ifdef __cplusplus
10735extern "C"
10736#endif
ce2cded5
L
10737char dlopen ();
10738int
10739main ()
10740{
81ecdfbb 10741return dlopen ();
ce2cded5
L
10742 ;
10743 return 0;
10744}
10745_ACEOF
81ecdfbb 10746if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10747 ac_cv_lib_dl_dlopen=yes
10748else
81ecdfbb 10749 ac_cv_lib_dl_dlopen=no
ce2cded5 10750fi
81ecdfbb
RW
10751rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10753LIBS=$ac_check_lib_save_LIBS
10754fi
81ecdfbb
RW
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10759else
d7040cdb 10760
ce2cded5
L
10761 lt_cv_dlopen="dyld"
10762 lt_cv_dlopen_libs=
10763 lt_cv_dlopen_self=yes
d7040cdb 10764
ce2cded5 10765fi
d7040cdb 10766
ce2cded5 10767 ;;
d7040cdb 10768
ce2cded5 10769 *)
81ecdfbb
RW
10770 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10771if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10772 lt_cv_dlopen="shl_load"
10773else
81ecdfbb
RW
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10775$as_echo_n "checking for shl_load in -ldld... " >&6; }
10776if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
ce2cded5
L
10778else
10779 ac_check_lib_save_LIBS=$LIBS
10780LIBS="-ldld $LIBS"
81ecdfbb 10781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10782/* end confdefs.h. */
d7040cdb 10783
81ecdfbb
RW
10784/* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
ce2cded5
L
10787#ifdef __cplusplus
10788extern "C"
10789#endif
ce2cded5
L
10790char shl_load ();
10791int
10792main ()
10793{
81ecdfbb 10794return shl_load ();
ce2cded5
L
10795 ;
10796 return 0;
10797}
d7040cdb 10798_ACEOF
81ecdfbb 10799if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10800 ac_cv_lib_dld_shl_load=yes
10801else
81ecdfbb 10802 ac_cv_lib_dld_shl_load=no
d7040cdb 10803fi
81ecdfbb
RW
10804rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10806LIBS=$ac_check_lib_save_LIBS
10807fi
81ecdfbb
RW
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10809$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10810if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 10811 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10812else
81ecdfbb
RW
10813 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10814if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10815 lt_cv_dlopen="dlopen"
10816else
81ecdfbb
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10818$as_echo_n "checking for dlopen in -ldl... " >&6; }
10819if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
d7040cdb 10821else
ce2cded5
L
10822 ac_check_lib_save_LIBS=$LIBS
10823LIBS="-ldl $LIBS"
81ecdfbb 10824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10825/* end confdefs.h. */
d7040cdb 10826
81ecdfbb
RW
10827/* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
ce2cded5
L
10830#ifdef __cplusplus
10831extern "C"
10832#endif
ce2cded5 10833char dlopen ();
d7040cdb
SE
10834int
10835main ()
10836{
81ecdfbb 10837return dlopen ();
d7040cdb
SE
10838 ;
10839 return 0;
10840}
10841_ACEOF
81ecdfbb 10842if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10843 ac_cv_lib_dl_dlopen=yes
10844else
81ecdfbb 10845 ac_cv_lib_dl_dlopen=no
ce2cded5 10846fi
81ecdfbb
RW
10847rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10849LIBS=$ac_check_lib_save_LIBS
10850fi
81ecdfbb
RW
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10852$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10853if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10855else
81ecdfbb
RW
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10857$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10858if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
ce2cded5
L
10860else
10861 ac_check_lib_save_LIBS=$LIBS
10862LIBS="-lsvld $LIBS"
81ecdfbb 10863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10864/* end confdefs.h. */
d7040cdb 10865
81ecdfbb
RW
10866/* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
ce2cded5
L
10869#ifdef __cplusplus
10870extern "C"
10871#endif
ce2cded5 10872char dlopen ();
d7040cdb
SE
10873int
10874main ()
10875{
81ecdfbb 10876return dlopen ();
d7040cdb
SE
10877 ;
10878 return 0;
10879}
10880_ACEOF
81ecdfbb 10881if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10882 ac_cv_lib_svld_dlopen=yes
d7040cdb 10883else
81ecdfbb 10884 ac_cv_lib_svld_dlopen=no
d7040cdb 10885fi
81ecdfbb
RW
10886rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10888LIBS=$ac_check_lib_save_LIBS
10889fi
81ecdfbb
RW
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10891$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10892if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10894else
81ecdfbb
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10896$as_echo_n "checking for dld_link in -ldld... " >&6; }
10897if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
d7040cdb 10899else
ce2cded5
L
10900 ac_check_lib_save_LIBS=$LIBS
10901LIBS="-ldld $LIBS"
81ecdfbb 10902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10903/* end confdefs.h. */
ce2cded5 10904
81ecdfbb
RW
10905/* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
ce2cded5
L
10908#ifdef __cplusplus
10909extern "C"
10910#endif
ce2cded5 10911char dld_link ();
d7040cdb
SE
10912int
10913main ()
10914{
81ecdfbb 10915return dld_link ();
d7040cdb
SE
10916 ;
10917 return 0;
10918}
10919_ACEOF
81ecdfbb 10920if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10921 ac_cv_lib_dld_dld_link=yes
10922else
81ecdfbb 10923 ac_cv_lib_dld_dld_link=no
d7040cdb 10924fi
81ecdfbb
RW
10925rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10927LIBS=$ac_check_lib_save_LIBS
10928fi
81ecdfbb
RW
10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10930$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10931if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 10932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10933fi
10934
10935
10936fi
10937
10938
10939fi
10940
10941
10942fi
10943
10944
10945fi
10946
10947
10948fi
10949
10950 ;;
10951 esac
10952
10953 if test "x$lt_cv_dlopen" != xno; then
10954 enable_dlopen=yes
d7040cdb 10955 else
ce2cded5 10956 enable_dlopen=no
d7040cdb 10957 fi
ce2cded5
L
10958
10959 case $lt_cv_dlopen in
10960 dlopen)
10961 save_CPPFLAGS="$CPPFLAGS"
10962 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10963
10964 save_LDFLAGS="$LDFLAGS"
10965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10966
10967 save_LIBS="$LIBS"
10968 LIBS="$lt_cv_dlopen_libs $LIBS"
10969
81ecdfbb
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10971$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10972if test "${lt_cv_dlopen_self+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
d7040cdb 10974else
ce2cded5
L
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self=cross
10977else
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
b8871f35 10981#line 10981 "configure"
ce2cded5
L
10982#include "confdefs.h"
10983
10984#if HAVE_DLFCN_H
10985#include <dlfcn.h>
10986#endif
10987
10988#include <stdio.h>
10989
10990#ifdef RTLD_GLOBAL
10991# define LT_DLGLOBAL RTLD_GLOBAL
10992#else
10993# ifdef DL_GLOBAL
10994# define LT_DLGLOBAL DL_GLOBAL
10995# else
10996# define LT_DLGLOBAL 0
10997# endif
10998#endif
10999
11000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002#ifndef LT_DLLAZY_OR_NOW
11003# ifdef RTLD_LAZY
11004# define LT_DLLAZY_OR_NOW RTLD_LAZY
11005# else
11006# ifdef DL_LAZY
11007# define LT_DLLAZY_OR_NOW DL_LAZY
11008# else
11009# ifdef RTLD_NOW
11010# define LT_DLLAZY_OR_NOW RTLD_NOW
11011# else
11012# ifdef DL_NOW
11013# define LT_DLLAZY_OR_NOW DL_NOW
11014# else
11015# define LT_DLLAZY_OR_NOW 0
11016# endif
11017# endif
11018# endif
11019# endif
11020#endif
11021
3725885a
RW
11022/* When -fvisbility=hidden is used, assume the code has been annotated
11023 correspondingly for the symbols needed. */
11024#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11025void fnord () __attribute__((visibility("default")));
3725885a
RW
11026#endif
11027
f2c621e4 11028void fnord () { int i=42; }
ce2cded5
L
11029int main ()
11030{
11031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032 int status = $lt_dlunknown;
11033
11034 if (self)
11035 {
11036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11037 else
11038 {
11039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11040 else puts (dlerror ());
11041 }
ce2cded5
L
11042 /* dlclose (self); */
11043 }
11044 else
11045 puts (dlerror ());
11046
718a6fd8 11047 return status;
ce2cded5
L
11048}
11049_LT_EOF
81ecdfbb 11050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11051 (eval $ac_link) 2>&5
11052 ac_status=$?
81ecdfbb
RW
11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11055 (./conftest; exit; ) >&5 2>/dev/null
11056 lt_status=$?
11057 case x$lt_status in
11058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11061 esac
11062 else :
11063 # compilation failed
11064 lt_cv_dlopen_self=no
11065 fi
11066fi
11067rm -fr conftest*
11068
d7040cdb
SE
11069
11070fi
81ecdfbb
RW
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11072$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11073
11074 if test "x$lt_cv_dlopen_self" = xyes; then
11075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11077$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11078if test "${lt_cv_dlopen_self_static+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
d7040cdb 11080else
ce2cded5
L
11081 if test "$cross_compiling" = yes; then :
11082 lt_cv_dlopen_self_static=cross
11083else
11084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11085 lt_status=$lt_dlunknown
11086 cat > conftest.$ac_ext <<_LT_EOF
b8871f35 11087#line 11087 "configure"
ce2cded5
L
11088#include "confdefs.h"
11089
11090#if HAVE_DLFCN_H
11091#include <dlfcn.h>
11092#endif
11093
11094#include <stdio.h>
11095
11096#ifdef RTLD_GLOBAL
11097# define LT_DLGLOBAL RTLD_GLOBAL
11098#else
11099# ifdef DL_GLOBAL
11100# define LT_DLGLOBAL DL_GLOBAL
11101# else
11102# define LT_DLGLOBAL 0
11103# endif
11104#endif
11105
11106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11107 find out it does not work in some platform. */
11108#ifndef LT_DLLAZY_OR_NOW
11109# ifdef RTLD_LAZY
11110# define LT_DLLAZY_OR_NOW RTLD_LAZY
11111# else
11112# ifdef DL_LAZY
11113# define LT_DLLAZY_OR_NOW DL_LAZY
11114# else
11115# ifdef RTLD_NOW
11116# define LT_DLLAZY_OR_NOW RTLD_NOW
11117# else
11118# ifdef DL_NOW
11119# define LT_DLLAZY_OR_NOW DL_NOW
11120# else
11121# define LT_DLLAZY_OR_NOW 0
11122# endif
11123# endif
11124# endif
11125# endif
11126#endif
11127
3725885a
RW
11128/* When -fvisbility=hidden is used, assume the code has been annotated
11129 correspondingly for the symbols needed. */
11130#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11131void fnord () __attribute__((visibility("default")));
3725885a
RW
11132#endif
11133
f2c621e4 11134void fnord () { int i=42; }
ce2cded5 11135int main ()
d7040cdb 11136{
ce2cded5
L
11137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11138 int status = $lt_dlunknown;
11139
11140 if (self)
11141 {
11142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11143 else
11144 {
11145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11146 else puts (dlerror ());
11147 }
ce2cded5
L
11148 /* dlclose (self); */
11149 }
11150 else
11151 puts (dlerror ());
11152
718a6fd8 11153 return status;
d7040cdb 11154}
ce2cded5 11155_LT_EOF
81ecdfbb 11156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11157 (eval $ac_link) 2>&5
11158 ac_status=$?
81ecdfbb
RW
11159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11161 (./conftest; exit; ) >&5 2>/dev/null
11162 lt_status=$?
11163 case x$lt_status in
11164 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11165 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11166 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11167 esac
11168 else :
11169 # compilation failed
11170 lt_cv_dlopen_self_static=no
11171 fi
d7040cdb 11172fi
ce2cded5
L
11173rm -fr conftest*
11174
11175
d7040cdb 11176fi
81ecdfbb
RW
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11178$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11179 fi
11180
11181 CPPFLAGS="$save_CPPFLAGS"
11182 LDFLAGS="$save_LDFLAGS"
11183 LIBS="$save_LIBS"
11184 ;;
11185 esac
11186
11187 case $lt_cv_dlopen_self in
11188 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11189 *) enable_dlopen_self=unknown ;;
11190 esac
11191
11192 case $lt_cv_dlopen_self_static in
11193 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11194 *) enable_dlopen_self_static=unknown ;;
11195 esac
d7040cdb 11196fi
d7040cdb 11197
d7040cdb
SE
11198
11199
d7040cdb 11200
d7040cdb 11201
ce2cded5
L
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214striplib=
11215old_striplib=
81ecdfbb
RW
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11217$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11218if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222$as_echo "yes" >&6; }
ce2cded5
L
11223else
11224# FIXME - insert some real tests, host_os isn't really good enough
11225 case $host_os in
11226 darwin*)
11227 if test -n "$STRIP" ; then
11228 striplib="$STRIP -x"
11229 old_striplib="$STRIP -S"
81ecdfbb
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231$as_echo "yes" >&6; }
ce2cded5 11232 else
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
d7040cdb 11235 fi
ce2cded5
L
11236 ;;
11237 *)
81ecdfbb
RW
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239$as_echo "no" >&6; }
ce2cded5 11240 ;;
d7040cdb 11241 esac
d7040cdb
SE
11242fi
11243
d7040cdb 11244
d7040cdb 11245
d7040cdb 11246
d7040cdb 11247
d7040cdb 11248
d7040cdb 11249
d7040cdb 11250
d7040cdb 11251
d7040cdb 11252
d7040cdb 11253
d7040cdb 11254
ce2cded5 11255 # Report which library types will actually be built
81ecdfbb
RW
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11257$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11259$as_echo "$can_build_shared" >&6; }
d7040cdb 11260
81ecdfbb
RW
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11262$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11263 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11264
ce2cded5
L
11265 # On AIX, shared libraries and static libraries use the same namespace, and
11266 # are all built from PIC.
11267 case $host_os in
11268 aix3*)
11269 test "$enable_shared" = yes && enable_static=no
11270 if test -n "$RANLIB"; then
11271 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11272 postinstall_cmds='$RANLIB $lib'
11273 fi
11274 ;;
d7040cdb 11275
50e7d84b 11276 aix[4-9]*)
ce2cded5
L
11277 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11278 test "$enable_shared" = yes && enable_static=no
11279 fi
11280 ;;
11281 esac
81ecdfbb
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11283$as_echo "$enable_shared" >&6; }
ce2cded5 11284
81ecdfbb
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11286$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11287 # Make sure either enable_shared or enable_static is yes.
11288 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11290$as_echo "$enable_static" >&6; }
d7040cdb 11291
d7040cdb 11292
d7040cdb 11293
d7040cdb 11294
ce2cded5
L
11295fi
11296ac_ext=c
11297ac_cpp='$CPP $CPPFLAGS'
11298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11301
ce2cded5 11302CC="$lt_save_CC"
d7040cdb 11303
d7040cdb 11304
d7040cdb 11305
d7040cdb 11306
d7040cdb 11307
d7040cdb 11308
d7040cdb 11309
d7040cdb 11310
d7040cdb 11311
d7040cdb
SE
11312
11313
d7040cdb
SE
11314
11315
81ecdfbb 11316 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11317
11318
d7040cdb 11319
d7040cdb 11320
ce2cded5 11321# Only expand once:
d7040cdb 11322
d7040cdb 11323
d7040cdb 11324
b879806f
AM
11325# The tests for host and target for $enable_largefile require
11326# canonical names.
11327
11328
11329
11330# As the $enable_largefile decision depends on --enable-plugins we must set it
11331# even in directories otherwise not depending on the $plugins option.
11332
11333
11334 maybe_plugins=no
11335 for ac_header in dlfcn.h
11336do :
11337 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11338"
11339if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11340 cat >>confdefs.h <<_ACEOF
11341#define HAVE_DLFCN_H 1
11342_ACEOF
11343 maybe_plugins=yes
11344fi
11345
11346done
11347
11348 for ac_header in windows.h
11349do :
11350 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11351"
11352if test "x$ac_cv_header_windows_h" = x""yes; then :
11353 cat >>confdefs.h <<_ACEOF
11354#define HAVE_WINDOWS_H 1
11355_ACEOF
11356 maybe_plugins=yes
11357fi
11358
11359done
11360
11361
11362 # Check whether --enable-plugins was given.
11363if test "${enable_plugins+set}" = set; then :
11364 enableval=$enable_plugins; case "${enableval}" in
11365 no) plugins=no ;;
11366 *) plugins=yes
11367 if test "$maybe_plugins" != "yes" ; then
11368 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11369 fi ;;
11370 esac
11371else
11372 plugins=$maybe_plugins
11373
11374fi
11375
2974be62
AM
11376 if test "$plugins" = "yes"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11378$as_echo_n "checking for library containing dlopen... " >&6; }
11379if test "${ac_cv_search_dlopen+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381else
11382 ac_func_search_save_LIBS=$LIBS
11383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384/* end confdefs.h. */
11385
11386/* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389#ifdef __cplusplus
11390extern "C"
11391#endif
11392char dlopen ();
11393int
11394main ()
11395{
11396return dlopen ();
11397 ;
11398 return 0;
11399}
11400_ACEOF
11401for ac_lib in '' dl; do
11402 if test -z "$ac_lib"; then
11403 ac_res="none required"
11404 else
11405 ac_res=-l$ac_lib
11406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11407 fi
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_search_dlopen=$ac_res
11410fi
11411rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext
11413 if test "${ac_cv_search_dlopen+set}" = set; then :
11414 break
11415fi
11416done
11417if test "${ac_cv_search_dlopen+set}" = set; then :
11418
11419else
11420 ac_cv_search_dlopen=no
11421fi
11422rm conftest.$ac_ext
11423LIBS=$ac_func_search_save_LIBS
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11426$as_echo "$ac_cv_search_dlopen" >&6; }
11427ac_res=$ac_cv_search_dlopen
11428if test "$ac_res" != no; then :
11429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11430
11431fi
11432
11433 fi
b879806f
AM
11434
11435
11436case "${host}" in
11437 sparc-*-solaris*|i[3-7]86-*-solaris*)
11438 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11439 # are mutually exclusive; and without procfs support, the bfd/ elf module
11440 # cannot provide certain routines such as elfcore_write_prpsinfo
11441 # or elfcore_write_prstatus. So unless the user explicitly requested
11442 # large-file support through the --enable-largefile switch, disable
11443 # large-file support in favor of procfs support.
11444 test "${target}" = "${host}" -a "x$plugins" = xno \
11445 && : ${enable_largefile="no"}
11446 ;;
11447esac
11448
11449# Check whether --enable-largefile was given.
11450if test "${enable_largefile+set}" = set; then :
11451 enableval=$enable_largefile;
11452fi
11453
11454if test "$enable_largefile" != no; then
11455
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11457$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11458if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460else
11461 ac_cv_sys_largefile_CC=no
11462 if test "$GCC" != yes; then
11463 ac_save_CC=$CC
11464 while :; do
11465 # IRIX 6.2 and later do not support large files by default,
11466 # so use the C compiler's -n32 option if that helps.
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468/* end confdefs.h. */
11469#include <sys/types.h>
11470 /* Check that off_t can represent 2**63 - 1 correctly.
11471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11472 since some C++ compilers masquerading as C compilers
11473 incorrectly reject 9223372036854775807. */
11474#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11476 && LARGE_OFF_T % 2147483647 == 1)
11477 ? 1 : -1];
11478int
11479main ()
11480{
11481
11482 ;
11483 return 0;
11484}
11485_ACEOF
11486 if ac_fn_c_try_compile "$LINENO"; then :
11487 break
11488fi
11489rm -f core conftest.err conftest.$ac_objext
11490 CC="$CC -n32"
11491 if ac_fn_c_try_compile "$LINENO"; then :
11492 ac_cv_sys_largefile_CC=' -n32'; break
11493fi
11494rm -f core conftest.err conftest.$ac_objext
11495 break
11496 done
11497 CC=$ac_save_CC
11498 rm -f conftest.$ac_ext
11499 fi
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11502$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11503 if test "$ac_cv_sys_largefile_CC" != no; then
11504 CC=$CC$ac_cv_sys_largefile_CC
11505 fi
11506
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11508$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11509if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511else
11512 while :; do
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514/* end confdefs.h. */
11515#include <sys/types.h>
11516 /* Check that off_t can represent 2**63 - 1 correctly.
11517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11518 since some C++ compilers masquerading as C compilers
11519 incorrectly reject 9223372036854775807. */
11520#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11522 && LARGE_OFF_T % 2147483647 == 1)
11523 ? 1 : -1];
11524int
11525main ()
11526{
11527
11528 ;
11529 return 0;
11530}
11531_ACEOF
11532if ac_fn_c_try_compile "$LINENO"; then :
11533 ac_cv_sys_file_offset_bits=no; break
11534fi
11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537/* end confdefs.h. */
11538#define _FILE_OFFSET_BITS 64
11539#include <sys/types.h>
11540 /* Check that off_t can represent 2**63 - 1 correctly.
11541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11542 since some C++ compilers masquerading as C compilers
11543 incorrectly reject 9223372036854775807. */
11544#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11546 && LARGE_OFF_T % 2147483647 == 1)
11547 ? 1 : -1];
11548int
11549main ()
11550{
11551
11552 ;
11553 return 0;
11554}
11555_ACEOF
11556if ac_fn_c_try_compile "$LINENO"; then :
11557 ac_cv_sys_file_offset_bits=64; break
11558fi
11559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 ac_cv_sys_file_offset_bits=unknown
11561 break
11562done
11563fi
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11565$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11566case $ac_cv_sys_file_offset_bits in #(
11567 no | unknown) ;;
11568 *)
11569cat >>confdefs.h <<_ACEOF
11570#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11571_ACEOF
11572;;
11573esac
11574rm -rf conftest*
11575 if test $ac_cv_sys_file_offset_bits = unknown; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11577$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11578if test "${ac_cv_sys_large_files+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11580else
11581 while :; do
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583/* end confdefs.h. */
11584#include <sys/types.h>
11585 /* Check that off_t can represent 2**63 - 1 correctly.
11586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11587 since some C++ compilers masquerading as C compilers
11588 incorrectly reject 9223372036854775807. */
11589#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11591 && LARGE_OFF_T % 2147483647 == 1)
11592 ? 1 : -1];
11593int
11594main ()
11595{
11596
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_compile "$LINENO"; then :
11602 ac_cv_sys_large_files=no; break
11603fi
11604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606/* end confdefs.h. */
11607#define _LARGE_FILES 1
11608#include <sys/types.h>
11609 /* Check that off_t can represent 2**63 - 1 correctly.
11610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11611 since some C++ compilers masquerading as C compilers
11612 incorrectly reject 9223372036854775807. */
11613#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11615 && LARGE_OFF_T % 2147483647 == 1)
11616 ? 1 : -1];
11617int
11618main ()
11619{
11620
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_compile "$LINENO"; then :
11626 ac_cv_sys_large_files=1; break
11627fi
11628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 ac_cv_sys_large_files=unknown
11630 break
11631done
11632fi
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11634$as_echo "$ac_cv_sys_large_files" >&6; }
11635case $ac_cv_sys_large_files in #(
11636 no | unknown) ;;
11637 *)
11638cat >>confdefs.h <<_ACEOF
11639#define _LARGE_FILES $ac_cv_sys_large_files
11640_ACEOF
11641;;
11642esac
11643rm -rf conftest*
11644 fi
11645fi
11646
11647
11648
81ecdfbb
RW
11649# Check whether --enable-targets was given.
11650if test "${enable_targets+set}" = set; then :
11651 enableval=$enable_targets; case "${enableval}" in
11652 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
11653 ;;
11654 no) enable_targets= ;;
11655 *) enable_targets=$enableval ;;
11656esac
81ecdfbb
RW
11657fi
11658
ce2cded5
L
11659ac_checking=yes
11660if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11661 ac_checking=
11662fi
81ecdfbb
RW
11663# Check whether --enable-checking was given.
11664if test "${enable_checking+set}" = set; then :
11665 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
11666 no|none) ac_checking= ;;
11667 *) ac_checking=yes ;;
11668esac
81ecdfbb
RW
11669fi
11670if test x$ac_checking != x ; then
d7040cdb 11671
81ecdfbb 11672$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 11673
ce2cded5 11674fi
d7040cdb 11675
6c3bc0f8
NC
11676# PR gas/19109
11677# Decide the default method for compressing debug sections.
11678ac_default_compressed_debug_sections=unset
11679# Provide a configure time option to override our default.
11680# Check whether --enable-compressed_debug_sections was given.
11681if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 11682 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 11683 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 11684 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
11685 *) ac_default_compressed_debug_sections=unset ;;
11686esac
11687fi
11688
0cb4071e
L
11689# PR gas/19520
11690# Decide if x86 assembler should generate relax relocations.
11691ac_default_x86_relax_relocations=unset
11692# Provide a configure time option to override our default.
11693# Check whether --enable-x86_relax_relocations was given.
11694if test "${enable_x86_relax_relocations+set}" = set; then :
11695 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11696 no) ac_default_x86_relax_relocations=0 ;;
11697esac
11698fi
11699
b8871f35
L
11700# Decide if ELF assembler should generate common symbols with the
11701# STT_COMMON type.
11702ac_default_elf_stt_common=unset
11703# Provide a configure time option to override our default.
11704# Check whether --enable-elf_stt_common was given.
11705if test "${enable_elf_stt_common+set}" = set; then :
11706 enableval=$enable_elf_stt_common; case "${enableval}" in
11707 yes) ac_default_elf_stt_common=1 ;;
11708esac
11709fi
11710
ce2cded5 11711using_cgen=no
d7040cdb 11712
d7040cdb 11713
270c9937
JB
11714# Set the 'development' global.
11715. $srcdir/../bfd/development.sh
11716
9780e045 11717# Default set of GCC warnings to enable.
397841b5 11718GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
11719
11720# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
11721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722/* end confdefs.h. */
11723__GNUC__
11724_ACEOF
11725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11726 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11727
11728else
11729 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11730fi
11731rm -f conftest*
11732
d7040cdb 11733
9780e045
NC
11734# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h. */
11737__GNUC__
11738_ACEOF
11739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11740 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11741
11742else
11743 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11744fi
11745rm -f conftest*
11746
11747
11748
81ecdfbb
RW
11749# Check whether --enable-werror was given.
11750if test "${enable_werror+set}" = set; then :
11751 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
11752 yes | y) ERROR_ON_WARNING="yes" ;;
11753 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11754 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 11755 esac
81ecdfbb
RW
11756fi
11757
d7040cdb 11758
397841b5 11759# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11760case "${host}" in
11761 *-*-mingw32*)
11762 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11763 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11764 fi
11765 ;;
11766 *) ;;
11767esac
11768
270c9937
JB
11769# Enable -Werror by default when using gcc. Turn it off for releases.
11770if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
ce2cded5
L
11771 ERROR_ON_WARNING=yes
11772fi
11773
11774NO_WERROR=
11775if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 11776 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
ce2cded5
L
11777 NO_WERROR="-Wno-error"
11778fi
11779
11780if test "${GCC}" = yes ; then
11781 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11782fi
11783
81ecdfbb
RW
11784# Check whether --enable-build-warnings was given.
11785if test "${enable_build_warnings+set}" = set; then :
11786 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
11787 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11788 no) if test "${GCC}" = yes ; then
11789 WARN_CFLAGS="-w"
11790 fi;;
11791 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11792 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11793 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11794 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11795 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11796esac
81ecdfbb
RW
11797fi
11798
d7040cdb 11799
ce2cded5
L
11800if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11801 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11802fi
d7040cdb 11803
d7040cdb 11804
d7040cdb 11805
d7040cdb 11806
d7040cdb 11807
ce2cded5 11808# Generate a header file
81ecdfbb 11809ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 11810
d7040cdb 11811
df7b86aa
NC
11812# PR 14072
11813
11814
ce2cded5
L
11815# If we are on a DOS filesystem, we must use gdb.ini rather than
11816# .gdbinit.
11817case "${host}" in
11818 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11819 GDBINIT="gdb.ini"
81ecdfbb 11820 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 11821
ce2cded5
L
11822 ;;
11823 *)
11824 GDBINIT=".gdbinit"
81ecdfbb 11825 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 11826
ce2cded5
L
11827 ;;
11828esac
d7040cdb 11829
d7040cdb 11830
ce2cded5 11831#We need this for the host. BOUT header is in host order.
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11833$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11834if test "${ac_cv_c_bigendian+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11836else
11837 ac_cv_c_bigendian=unknown
11838 # See if we're dealing with a universal compiler.
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h. */
11841#ifndef __APPLE_CC__
11842 not a universal capable compiler
11843 #endif
11844 typedef int dummy;
11845
11846_ACEOF
11847if ac_fn_c_try_compile "$LINENO"; then :
11848
11849 # Check for potential -arch flags. It is not universal unless
11850 # there are at least two -arch flags with different values.
11851 ac_arch=
11852 ac_prev=
11853 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11854 if test -n "$ac_prev"; then
11855 case $ac_word in
11856 i?86 | x86_64 | ppc | ppc64)
11857 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11858 ac_arch=$ac_word
11859 else
11860 ac_cv_c_bigendian=universal
11861 break
11862 fi
11863 ;;
11864 esac
11865 ac_prev=
11866 elif test "x$ac_word" = "x-arch"; then
11867 ac_prev=arch
11868 fi
11869 done
11870fi
11871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 if test $ac_cv_c_bigendian = unknown; then
11873 # See if sys/param.h defines the BYTE_ORDER macro.
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11875/* end confdefs.h. */
11876#include <sys/types.h>
81ecdfbb 11877 #include <sys/param.h>
d7040cdb 11878
ce2cded5
L
11879int
11880main ()
11881{
81ecdfbb
RW
11882#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11883 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11884 && LITTLE_ENDIAN)
11885 bogus endian macros
11886 #endif
d7040cdb 11887
ce2cded5
L
11888 ;
11889 return 0;
11890}
11891_ACEOF
81ecdfbb 11892if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11893 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11895/* end confdefs.h. */
11896#include <sys/types.h>
81ecdfbb 11897 #include <sys/param.h>
d7040cdb 11898
ce2cded5
L
11899int
11900main ()
11901{
11902#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11903 not big endian
11904 #endif
d7040cdb 11905
ce2cded5
L
11906 ;
11907 return 0;
11908}
11909_ACEOF
81ecdfbb 11910if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
11911 ac_cv_c_bigendian=yes
11912else
81ecdfbb 11913 ac_cv_c_bigendian=no
ce2cded5 11914fi
81ecdfbb
RW
11915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916fi
11917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 fi
11919 if test $ac_cv_c_bigendian = unknown; then
11920 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h. */
11923#include <limits.h>
d7040cdb 11924
81ecdfbb
RW
11925int
11926main ()
11927{
11928#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11929 bogus endian macros
11930 #endif
11931
11932 ;
11933 return 0;
11934}
ce2cded5 11935_ACEOF
81ecdfbb
RW
11936if ac_fn_c_try_compile "$LINENO"; then :
11937 # It does; now see whether it defined to _BIG_ENDIAN or not.
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11939/* end confdefs.h. */
81ecdfbb
RW
11940#include <limits.h>
11941
ce2cded5
L
11942int
11943main ()
11944{
81ecdfbb
RW
11945#ifndef _BIG_ENDIAN
11946 not big endian
11947 #endif
11948
ce2cded5
L
11949 ;
11950 return 0;
11951}
11952_ACEOF
81ecdfbb 11953if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11954 ac_cv_c_bigendian=yes
81ecdfbb
RW
11955else
11956 ac_cv_c_bigendian=no
d7040cdb 11957fi
81ecdfbb 11958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11959fi
81ecdfbb
RW
11960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 fi
11962 if test $ac_cv_c_bigendian = unknown; then
11963 # Compile a test program.
11964 if test "$cross_compiling" = yes; then :
11965 # Try to guess by grepping values from an object file.
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967/* end confdefs.h. */
11968short int ascii_mm[] =
11969 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11970 short int ascii_ii[] =
11971 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11972 int use_ascii (int i) {
11973 return ascii_mm[i] + ascii_ii[i];
11974 }
11975 short int ebcdic_ii[] =
11976 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11977 short int ebcdic_mm[] =
11978 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11979 int use_ebcdic (int i) {
11980 return ebcdic_mm[i] + ebcdic_ii[i];
11981 }
11982 extern int foo;
d7040cdb 11983
81ecdfbb
RW
11984int
11985main ()
11986{
11987return use_ascii (foo) == use_ebcdic (foo);
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992if ac_fn_c_try_compile "$LINENO"; then :
11993 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11994 ac_cv_c_bigendian=yes
11995 fi
11996 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11997 if test "$ac_cv_c_bigendian" = unknown; then
11998 ac_cv_c_bigendian=no
11999 else
12000 # finding both strings is unlikely to happen, but who knows?
12001 ac_cv_c_bigendian=unknown
12002 fi
12003 fi
ce2cded5 12004fi
81ecdfbb 12005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 12006else
81ecdfbb 12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 12008/* end confdefs.h. */
81ecdfbb 12009$ac_includes_default
ce2cded5
L
12010int
12011main ()
12012{
81ecdfbb
RW
12013
12014 /* Are we little or big endian? From Harbison&Steele. */
12015 union
12016 {
12017 long int l;
12018 char c[sizeof (long int)];
12019 } u;
12020 u.l = 1;
12021 return u.c[sizeof (long int) - 1] == 1;
12022
12023 ;
12024 return 0;
ce2cded5 12025}
d7040cdb 12026_ACEOF
81ecdfbb 12027if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
12028 ac_cv_c_bigendian=no
12029else
81ecdfbb 12030 ac_cv_c_bigendian=yes
d7040cdb 12031fi
81ecdfbb
RW
12032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12033 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 12034fi
81ecdfbb
RW
12035
12036 fi
ce2cded5 12037fi
81ecdfbb
RW
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12039$as_echo "$ac_cv_c_bigendian" >&6; }
12040 case $ac_cv_c_bigendian in #(
12041 yes)
12042 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12043;; #(
12044 no)
12045 ;; #(
12046 universal)
d7040cdb 12047
81ecdfbb
RW
12048$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12049
12050 ;; #(
12051 *)
12052 as_fn_error "unknown endianness
12053 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12054 esac
d7040cdb 12055
d7040cdb 12056
ce2cded5 12057te_file=generic
d7040cdb 12058
ce2cded5
L
12059# Makefile target for installing gas in $(tooldir)/bin.
12060install_tooldir=install-exec-tooldir
d7040cdb 12061
ce2cded5
L
12062canon_targets=""
12063all_targets=no
12064if test -n "$enable_targets" ; then
12065 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12066 if test $t = "all"; then
12067 all_targets=yes
12068 continue
12069 fi
12070 result=`$ac_config_sub $t 2>/dev/null`
12071 if test -n "$result" ; then
12072 canon_targets="$canon_targets $result"
12073# else
12074# # Permit "all", etc. We don't support it yet though.
12075# canon_targets="$canon_targets $t"
12076 fi
12077 done
12078 _gas_uniq_list="$canon_targets"
d7040cdb
SE
12079_gas_uniq_newlist=""
12080for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12081 case $_gas_uniq_i in
12082 _gas_uniq_dummy) ;;
12083 *) case " $_gas_uniq_newlist " in
12084 *" $_gas_uniq_i "*) ;;
12085 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12086 esac ;;
12087 esac
12088done
ce2cded5 12089canon_targets=$_gas_uniq_newlist
d7040cdb 12090
ce2cded5
L
12091fi
12092
12093emulations=""
12094
12095for this_target in $target $canon_targets ; do
12096
12097 targ=${this_target}
12098 . ${srcdir}/configure.tgt
12099
12100 case ${target_cpu} in
12101 crisv32)
12102
12103cat >>confdefs.h <<_ACEOF
12104#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12105_ACEOF
ce2cded5
L
12106
12107 ;;
12108 esac
12109
12110 if test ${this_target} = $target ; then
12111 target_cpu_type=${cpu_type}
12112 elif test ${target_cpu_type} != ${cpu_type} ; then
12113 continue
12114 fi
12115
12116 generic_target=${cpu_type}-${target_vendor}-${target_os}
12117 case ${generic_target} in
12118 i386-*-sco3.2v5*)
12119 if test ${this_target} = $target; then
12120
81ecdfbb 12121$as_echo "#define SCO_ELF 1" >>confdefs.h
ce2cded5
L
12122
12123 fi
12124 ;;
12125
12126 i386-*-msdosdjgpp* \
12127 | i386-*-go32* \
12128 | i386-go32-rtems*)
12129
81ecdfbb 12130$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
12131
12132 ;;
12133
0cb4071e
L
12134 i386-*-solaris2 \
12135 | x86_64-*-solaris2 \
12136 | i386-*-solaris2.[0-9] \
12137 | i386-*-solaris2.1[01] \
12138 | x86_64-*-solaris2.1[01])
12139 if test ${this_target} = $target \
12140 && test ${ac_default_x86_relax_relocations} = unset; then
12141 ac_default_x86_relax_relocations=0
12142 fi
12143 ;;
12144
ce2cded5 12145 i860-*-*)
81ecdfbb
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12147$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
ce2cded5
L
12148 ;;
12149
7ba29e2a
NC
12150 microblaze*)
12151 ;;
12152
e5231592 12153 ppc-*-aix[5-9].*)
ce2cded5 12154
81ecdfbb 12155$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5 12156
ce2cded5
L
12157 ;;
12158 ppc-*-solaris*)
12159 if test ${this_target} = $target; then
12160
81ecdfbb 12161$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
12162
12163 fi
12164 if test x${endian} = xbig; then
81ecdfbb 12165 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
12166 fi
12167 ;;
12168
12169 sh*-*-symbianelf*)
12170
81ecdfbb 12171$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
ce2cded5
L
12172
12173 ;;
d7040cdb 12174 esac
d7040cdb 12175
ce2cded5
L
12176 if test ${this_target} = $target ; then
12177 endian_def=
12178 if test x${endian} = xbig; then
12179 endian_def=1
12180 elif test x${endian} = xlittle; then
12181 endian_def=0
12182 fi
12183 if test x${endian_def} != x; then
12184
12185cat >>confdefs.h <<_ACEOF
12186#define TARGET_BYTES_BIG_ENDIAN $endian_def
12187_ACEOF
12188
12189 fi
12190 fi
12191
12192# Other random stuff.
12193
12194 case ${cpu_type} in
12195 mips)
12196 # Set mips_cpu to the name of the default CPU.
12197 case ${target_cpu} in
12198 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12199 mips_cpu=from-abi
12200 ;;
12201 mipsisa32 | mipsisa32el)
12202 mips_cpu=mips32
12203 ;;
12204 mipsisa32r2 | mipsisa32r2el)
12205 mips_cpu=mips32r2
12206 ;;
ae52f483
AB
12207 mipsisa32r3 | mipsisa32r3el)
12208 mips_cpu=mips32r3
12209 ;;
12210 mipsisa32r5 | mipsisa32r5el)
12211 mips_cpu=mips32r5
12212 ;;
7361da2c
AB
12213 mipsisa32r6 | mipsisa32r6el)
12214 mips_cpu=mips32r6
12215 ;;
ce2cded5
L
12216 mipsisa64 | mipsisa64el)
12217 mips_cpu=mips64
12218 ;;
12219 mipsisa64r2 | mipsisa64r2el)
12220 mips_cpu=mips64r2
12221 ;;
ae52f483
AB
12222 mipsisa64r3 | mipsisa64r3el)
12223 mips_cpu=mips64r3
12224 ;;
12225 mipsisa64r5 | mipsisa64r5el)
12226 mips_cpu=mips64r5
12227 ;;
7361da2c
AB
12228 mipsisa64r6 | mipsisa64r6el)
12229 mips_cpu=mips64r6
12230 ;;
ce2cded5
L
12231 mipstx39 | mipstx39el)
12232 mips_cpu=r3900
12233 ;;
12234 mips64vr | mips64vrel)
12235 mips_cpu=vr4100
12236 ;;
12237 mipsisa32r2* | mipsisa64r2*)
12238 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12239 ;;
7361da2c
AB
12240 mipsisa32r6* | mipsisa64r6*)
12241 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12242 ;;
ce2cded5
L
12243 mips64* | mipsisa64* | mipsisa32*)
12244 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12245 ;;
e407c74b
NC
12246 mips*)
12247 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12248 ;;
ce2cded5 12249 *)
81ecdfbb 12250 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12251 ;;
12252 esac
12253 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12254 # binaries. It's a GNU extension that some OSes don't understand.
ce2cded5
L
12255 case ${target} in
12256 *-*-irix*)
12257 use_e_mips_abi_o32=0
12258 ;;
12259 *)
12260 use_e_mips_abi_o32=1
12261 ;;
12262 esac
12263 # Decide whether to generate 32-bit or 64-bit code by default.
12264 # Used to resolve -march=from-abi when an embedded ABI is selected.
12265 case ${target} in
12266 mips64*-*-* | mipsisa64*-*-*)
12267 mips_default_64bit=1
12268 ;;
12269 *)
12270 mips_default_64bit=0
12271 ;;
12272 esac
12273 # Decide which ABI to target by default.
12274 case ${target} in
aeffff67 12275 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
ce2cded5
L
12276 mips_default_abi=N32_ABI
12277 ;;
aeffff67 12278 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
ce2cded5
L
12279 mips_default_abi=O32_ABI
12280 ;;
12281 mips64*-openbsd*)
12282 mips_default_abi=N64_ABI
12283 ;;
12284 *)
12285 mips_default_abi=NO_ABI
12286 ;;
12287 esac
12288
12289cat >>confdefs.h <<_ACEOF
12290#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12291_ACEOF
d7040cdb
SE
12292
12293
12294cat >>confdefs.h <<_ACEOF
ce2cded5 12295#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12296_ACEOF
12297
12298
12299cat >>confdefs.h <<_ACEOF
ce2cded5 12300#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12301_ACEOF
12302
12303
ce2cded5
L
12304cat >>confdefs.h <<_ACEOF
12305#define MIPS_DEFAULT_ABI $mips_default_abi
12306_ACEOF
d7040cdb 12307
ce2cded5
L
12308 ;;
12309 esac
d7040cdb 12310
ce2cded5
L
12311 # Do we need the opcodes library?
12312 case ${cpu_type} in
12313 vax | tic30)
12314 ;;
d7040cdb 12315
ce2cded5
L
12316 *)
12317 need_opcodes=yes
d7040cdb 12318
ce2cded5
L
12319 case "${enable_shared}" in
12320 yes) shared_opcodes=true ;;
12321 *opcodes*) shared_opcodes=true ;;
12322 *) shared_opcodes=false ;;
12323 esac
12324 ;;
12325 esac
d7040cdb 12326
ce2cded5
L
12327 # Any other special object files needed ?
12328 case ${cpu_type} in
d7040cdb 12329
ce2cded5
L
12330 bfin)
12331 echo ${extra_objects} | grep -s "bfin-parse.o"
12332 if test $? -ne 0 ; then
12333 extra_objects="$extra_objects bfin-parse.o"
12334 fi
d7040cdb 12335
df7b86aa 12336 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
ce2cded5 12337 if test $? -ne 0 ; then
df7b86aa 12338 extra_objects="$extra_objects bfin-lex-wrapper.o"
ce2cded5
L
12339 fi
12340 ;;
d7040cdb 12341
73589c9d 12342 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
ce2cded5
L
12343 using_cgen=yes
12344 ;;
d7040cdb 12345
ce2cded5
L
12346 m32c)
12347 using_cgen=yes
12348 ;;
12349 frv)
12350 using_cgen=yes
12351 ;;
12352 m68k)
12353 case ${extra_objects} in
12354 *m68k-parse.o*) ;;
12355 *) extra_objects="$extra_objects m68k-parse.o" ;;
12356 esac
12357 ;;
d7040cdb 12358
ce2cded5
L
12359 mep)
12360 using_cgen=yes
12361 ;;
d7040cdb 12362
ce2cded5
L
12363 mips)
12364 echo ${extra_objects} | grep -s "itbl-parse.o"
12365 if test $? -ne 0 ; then
12366 extra_objects="$extra_objects itbl-parse.o"
12367 fi
d7040cdb 12368
df7b86aa 12369 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
ce2cded5 12370 if test $? -ne 0 ; then
df7b86aa 12371 extra_objects="$extra_objects itbl-lex-wrapper.o"
ce2cded5 12372 fi
d7040cdb 12373
ce2cded5
L
12374 echo ${extra_objects} | grep -s "itbl-ops.o"
12375 if test $? -ne 0 ; then
12376 extra_objects="$extra_objects itbl-ops.o"
12377 fi
12378 ;;
d7040cdb 12379
ce2cded5
L
12380 mt)
12381 using_cgen=yes
12382 ;;
d7040cdb 12383
35c08157
KLC
12384 nds32)
12385 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12386 # based on arch_name.
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12388$as_echo_n "checking for default configuration of --with-arch... " >&6; }
12389 if test "x${with_arch}" != x; then
12390 case ${with_arch} in
12391 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12392
12393cat >>confdefs.h <<_ACEOF
12394#define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12395_ACEOF
12396
12397 ;;
12398 *)
12399 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12400 ;;
12401 esac
12402 fi
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12404$as_echo "$with_arch" >&6; }
12405
12406 # Decide features one by one.
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12408$as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
6cd8405e 12409 if test "x${enable_dx_regs}" = xyes; then
35c08157
KLC
12410
12411$as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12412
12413 else
12414
12415$as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12416
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12419$as_echo "$enable_dx_regs" >&6; }
12420
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12422$as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
6cd8405e 12423 if test "x${enable_perf_ext}" = xno; then
35c08157
KLC
12424
12425$as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12426
12427 else
12428
12429$as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12430
12431 fi
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12433$as_echo "$enable_perf_ext" >&6; }
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12436$as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
6cd8405e 12437 if test "x${enable_perf_ext2}" = xno; then
35c08157
KLC
12438
12439$as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12440
12441 else
12442
12443$as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12444
12445 fi
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12447$as_echo "$enable_perf_ext2" >&6; }
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12450$as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
6cd8405e 12451 if test "x${enable_string_ext}" = xno; then
35c08157
KLC
12452
12453$as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12454
12455 else
12456
12457$as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12458
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12461$as_echo "$enable_string_ext" >&6; }
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12464$as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
6cd8405e 12465 if test "x${enable_audio_ext}" = xno; then
35c08157
KLC
12466
12467$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12468
12469 else
12470
12471$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12472
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12475$as_echo "$enable_audio_ext" >&6; }
12476 ;;
12477
ce2cded5
L
12478 i386 | s390 | sparc)
12479 if test $this_target = $target ; then
d7040cdb
SE
12480
12481cat >>confdefs.h <<_ACEOF
ce2cded5 12482#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12483_ACEOF
12484
ce2cded5
L
12485 fi
12486 ;;
d7040cdb 12487
99c513f6
DD
12488 rl78)
12489 echo ${extra_objects} | grep -s "rl78-parse.o"
12490 if test $? -ne 0 ; then
12491 extra_objects="$extra_objects rl78-parse.o"
12492 fi
12493 ;;
12494
c7927a3c
NC
12495 rx)
12496 echo ${extra_objects} | grep -s "rx-parse.o"
12497 if test $? -ne 0 ; then
12498 extra_objects="$extra_objects rx-parse.o"
12499 fi
12500 ;;
12501
ce2cded5
L
12502 xstormy16)
12503 using_cgen=yes
12504 ;;
d7040cdb 12505
ce2cded5
L
12506 xc16x)
12507 using_cgen=yes
12508 ;;
d7040cdb 12509
ce2cded5
L
12510 xtensa)
12511 echo ${extra_objects} | grep -s "xtensa-relax.o"
12512 if test $? -ne 0 ; then
12513 extra_objects="$extra_objects xtensa-relax.o"
12514 fi
12515 ;;
d7040cdb 12516
ce2cded5
L
12517 *)
12518 ;;
12519 esac
d7040cdb 12520
ce2cded5
L
12521 if test $using_cgen = yes ; then
12522 case "x${extra_objects}" in
12523 *cgen.o*) ;;
12524 *) extra_objects="$extra_objects cgen.o" ;;
12525 esac
12526 fi
d7040cdb 12527
ce2cded5 12528# See if we really can support this configuration with the emulation code.
d7040cdb 12529
ce2cded5
L
12530 if test $this_target = $target ; then
12531 obj_format=$fmt
12532 te_file=$em
12533 fi
d7040cdb 12534
b11d79f2
TG
12535 case ${te_file} in
12536 vms) extra_objects="$extra_objects te-vms.o" ;;
12537 esac
12538
ce2cded5 12539# From target name and format, produce a list of supported emulations.
d7040cdb 12540
ce2cded5 12541 case ${generic_target}-${fmt} in
e8044f35 12542 mips-*-*-*) case "$endian" in
ce2cded5
L
12543 big) emulation="mipsbelf mipslelf mipself" ;;
12544 *) emulation="mipslelf mipsbelf mipself" ;;
12545 esac ;;
ce2cded5
L
12546 # i386-pc-pe-coff != i386-pc-coff.
12547 i386-*-pe-coff) ;;
12548 # Uncommenting the next line will turn on support for i386 AOUT
12549 # for the default linux configuration
12550 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12551 #
12552 i386-*-aout) emulation="i386aout" ;;
12553 i386-*-coff) emulation="i386coff" ;;
12554 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12555
ce2cded5
L
12556 # Always all formats. The first stated emulation becomes the default.
12557 cris-*-*aout*) emulation="crisaout criself" ;;
12558 cris-*-*) emulation="criself crisaout" ;;
12559 esac
13b2be9c 12560
ce2cded5 12561 emulations="$emulations $emulation"
13b2be9c 12562
13b2be9c 12563done
13b2be9c 12564
0cb4071e
L
12565if test ${ac_default_x86_relax_relocations} = unset; then
12566 ac_default_x86_relax_relocations=1
12567fi
12568
12569cat >>confdefs.h <<_ACEOF
12570#define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12571_ACEOF
12572
12573
b8871f35
L
12574if test ${ac_default_elf_stt_common} = unset; then
12575 ac_default_elf_stt_common=0
12576fi
12577
12578cat >>confdefs.h <<_ACEOF
12579#define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12580_ACEOF
12581
12582
348ef89a 12583if test x$ac_default_compressed_debug_sections = xyes ; then
e12fe555
NC
12584
12585$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12586
6c3bc0f8 12587fi
e12fe555 12588
ce2cded5
L
12589# Turn on all targets if possible
12590if test ${all_targets} = "yes"; then
12591 case ${target_cpu_type} in
12592 i386)
12593 case ${obj_format} in
12594 aout)
12595 emulations="$emulations i386coff i386elf"
12596 ;;
12597 coff)
12598 emulations="$emulations i386aout i386elf"
12599 ;;
12600 elf)
12601 emulations="$emulations i386aout i386coff"
12602 ;;
12603 esac
12604 ;;
12605 x86_64)
12606 case ${obj_format} in
12607 aout)
12608 emulations="$emulations i386coff i386elf"
12609 ;;
12610 coff)
12611 emulations="$emulations i386aout i386elf"
12612 ;;
12613 elf)
12614 emulations="$emulations i386aout i386coff"
12615 ;;
12616 esac
12617 ;;
12618 esac
13b2be9c 12619fi
c8615825 12620
39871c07
AM
12621# PE code has way too many macros tweaking behaviour
12622case ${te_file} in
12623 pe*) emulations="" ;;
12624esac
12625
ce2cded5
L
12626# Assign floating point type. Most processors with FP support
12627# IEEE FP. On those that don't support FP at all, usually IEEE
12628# is emulated.
12629case ${target_cpu} in
12630 vax | pdp11 ) atof=vax ;;
12631 *) atof=ieee ;;
12632esac
c8615825 12633
ce2cded5 12634case "${obj_format}" in
81ecdfbb 12635 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 12636esac
13b2be9c 12637
ce2cded5
L
12638# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12639cgen_cpu_prefix=""
12640if test $using_cgen = yes ; then
12641 case ${target_cpu} in
73589c9d
CS
12642 or1knd)
12643 cgen_cpu_prefix=or1k ;;
ce2cded5
L
12644 *) cgen_cpu_prefix=${target_cpu} ;;
12645 esac
c8615825 12646
c8615825 12647
81ecdfbb 12648$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 12649
d7040cdb 12650fi
13b2be9c 12651
ce2cded5
L
12652
12653if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
81ecdfbb 12654 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 12655fi
ce2cded5
L
12656
12657if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
81ecdfbb 12658 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
12659fi
12660
ce2cded5
L
12661# Some COFF configurations want these random other flags set.
12662case ${obj_format} in
12663 coff)
12664 case ${target_cpu_type} in
12665 i386)
81ecdfbb 12666$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12667 ;;
12668 m68k)
81ecdfbb 12669$as_echo "#define M68KCOFF 1" >>confdefs.h
ce2cded5
L
12670 ;;
12671 m88k)
81ecdfbb 12672$as_echo "#define M88KCOFF 1" >>confdefs.h
ce2cded5
L
12673 ;;
12674 x86_64)
81ecdfbb 12675$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12676 ;;
12677 esac
12678 ;;
12679esac
12680
12681# Getting this done right is going to be a bitch. Each configuration specified
12682# with --enable-targets=... should be checked for environment, format, cpu
12683# setting.
12684#
12685# For each configuration, the necessary object file support code must be linked
12686# in. This might be only one, it might be up to four. The necessary emulation
12687# code needs to be provided, too.
12688#
12689# And then there's "--enable-targets=all"....
12690#
e8044f35 12691# For now, just always do it for MIPS ELF configurations. Sigh.
ce2cded5
L
12692
12693formats="${obj_format}"
12694emfiles=""
12695EMULATIONS=""
12696_gas_uniq_list="$emulations"
12697_gas_uniq_newlist=""
12698for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12699 case $_gas_uniq_i in
12700 _gas_uniq_dummy) ;;
12701 *) case " $_gas_uniq_newlist " in
12702 *" $_gas_uniq_i "*) ;;
12703 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12704 esac ;;
12705 esac
12706done
12707emulations=$_gas_uniq_newlist
12708
12709for em in . $emulations ; do
12710 case $em in
12711 .) continue ;;
12712 mipsbelf | mipslelf | mipself)
12713 fmt=elf file=mipself ;;
ce2cded5
L
12714 *coff)
12715 fmt=coff file=$em ;;
12716 *aout)
12717 fmt=aout file=$em ;;
12718 *elf)
12719 fmt=elf file=$em ;;
12720 esac
12721 formats="$formats $fmt"
12722 emfiles="$emfiles e-$file.o"
12723 EMULATIONS="$EMULATIONS &$em,"
12724done
12725_gas_uniq_list="$formats"
12726_gas_uniq_newlist=""
12727for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12728 case $_gas_uniq_i in
12729 _gas_uniq_dummy) ;;
12730 *) case " $_gas_uniq_newlist " in
12731 *" $_gas_uniq_i "*) ;;
12732 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12733 esac ;;
12734 esac
13b2be9c 12735done
ce2cded5 12736formats=$_gas_uniq_newlist
13b2be9c 12737
ce2cded5
L
12738_gas_uniq_list="$emfiles"
12739_gas_uniq_newlist=""
12740for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12741 case $_gas_uniq_i in
12742 _gas_uniq_dummy) ;;
12743 *) case " $_gas_uniq_newlist " in
12744 *" $_gas_uniq_i "*) ;;
12745 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12746 esac ;;
12747 esac
12748done
12749emfiles=$_gas_uniq_newlist
d7040cdb 12750
ce2cded5
L
12751if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12752 for fmt in $formats ; do
12753 case $fmt in
12754 aout)
81ecdfbb 12755$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
12756 ;;
12757 bout)
81ecdfbb 12758$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
ce2cded5
L
12759 ;;
12760 coff)
81ecdfbb 12761$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
12762 ;;
12763 ecoff)
81ecdfbb 12764$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
12765 ;;
12766 elf)
81ecdfbb 12767$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
12768 ;;
12769 generic)
81ecdfbb 12770$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
12771 ;;
12772 som)
81ecdfbb 12773$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
12774 ;;
12775 esac
12776 extra_objects="$extra_objects obj-$fmt.o"
12777 done
12778 obj_format=multi
13b2be9c 12779fi
ce2cded5
L
12780if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12781 DEFAULT_EMULATION=`set . $emulations ; echo $2`
e8044f35 12782 # e-mipself has more than one emulation per file, e-i386* has just one at the
ce2cded5
L
12783 # moment. If only one emulation is specified, then don't define
12784 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12785 case "${obj_format}${emfiles}" in
e8044f35 12786 multi* | *mipself*)
ce2cded5 12787 extra_objects="$extra_objects $emfiles"
d7040cdb 12788
81ecdfbb 12789$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
12790 ;;
12791 esac
12792fi
d7040cdb 12793
13b2be9c 12794
ce2cded5
L
12795cat >>confdefs.h <<_ACEOF
12796#define EMULATIONS $EMULATIONS
13b2be9c 12797_ACEOF
d7040cdb 12798
d7040cdb 12799
ce2cded5
L
12800cat >>confdefs.h <<_ACEOF
12801#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 12802_ACEOF
d7040cdb 12803
d7040cdb 12804
ce2cded5 12805reject_dev_configs=yes
252b5132 12806
ce2cded5
L
12807case ${reject_dev_configs}-${dev} in
12808 yes-yes) # Oops.
81ecdfbb 12809 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 12810 ;;
d7040cdb
SE
12811esac
12812
13b2be9c 12813
ce2cded5
L
12814
12815
12816
12817
12818
12819# do we need the opcodes library?
12820case "${need_opcodes}" in
12821yes)
12822 OPCODES_LIB=../opcodes/libopcodes.la
12823 ;;
12824esac
12825
12826
12827
12828
12829cat >>confdefs.h <<_ACEOF
12830#define TARGET_ALIAS "${target_alias}"
d7040cdb 12831_ACEOF
20e95c23 12832
20e95c23 12833
ce2cded5
L
12834cat >>confdefs.h <<_ACEOF
12835#define TARGET_CANONICAL "${target}"
12836_ACEOF
20e95c23 12837
d6d788bd 12838
ce2cded5
L
12839cat >>confdefs.h <<_ACEOF
12840#define TARGET_CPU "${target_cpu}"
12841_ACEOF
20e95c23 12842
ce2cded5
L
12843
12844cat >>confdefs.h <<_ACEOF
12845#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
12846_ACEOF
12847
12848
ce2cded5
L
12849cat >>confdefs.h <<_ACEOF
12850#define TARGET_OS "${target_os}"
12851_ACEOF
12852
0efedc4c 12853
d7040cdb
SE
12854for ac_prog in 'bison -y' byacc
12855do
12856 # Extract the first word of "$ac_prog", so it can be a program name with args.
12857set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859$as_echo_n "checking for $ac_word... " >&6; }
12860if test "${ac_cv_prog_YACC+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
20e95c23 12862else
d7040cdb
SE
12863 if test -n "$YACC"; then
12864 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 12865else
d7040cdb
SE
12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12873 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 12875 break 2
20e95c23 12876 fi
d7040cdb 12877done
81ecdfbb
RW
12878 done
12879IFS=$as_save_IFS
20e95c23 12880
d7040cdb
SE
12881fi
12882fi
12883YACC=$ac_cv_prog_YACC
12884if test -n "$YACC"; then
81ecdfbb
RW
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12886$as_echo "$YACC" >&6; }
d7040cdb 12887else
81ecdfbb
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
d7040cdb 12890fi
20e95c23 12891
81ecdfbb 12892
d7040cdb
SE
12893 test -n "$YACC" && break
12894done
12895test -n "$YACC" || YACC="yacc"
20e95c23 12896
d7040cdb
SE
12897for ac_prog in flex lex
12898do
12899 # Extract the first word of "$ac_prog", so it can be a program name with args.
12900set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902$as_echo_n "checking for $ac_word... " >&6; }
12903if test "${ac_cv_prog_LEX+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
d6d788bd 12905else
d7040cdb
SE
12906 if test -n "$LEX"; then
12907 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12908else
12909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910for as_dir in $PATH
12911do
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12916 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12918 break 2
12919 fi
12920done
81ecdfbb
RW
12921 done
12922IFS=$as_save_IFS
20e95c23 12923
d7040cdb
SE
12924fi
12925fi
12926LEX=$ac_cv_prog_LEX
12927if test -n "$LEX"; then
81ecdfbb
RW
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12929$as_echo "$LEX" >&6; }
20e95c23 12930else
81ecdfbb
RW
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932$as_echo "no" >&6; }
13b2be9c
DJ
12933fi
12934
81ecdfbb 12935
d7040cdb
SE
12936 test -n "$LEX" && break
12937done
12938test -n "$LEX" || LEX=":"
20e95c23 12939
3d961d0d
AM
12940case "$LEX" in
12941 :|*"missing "*) ;;
12942 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
12943%%
12944a { ECHO; }
12945b { REJECT; }
12946c { yymore (); }
12947d { yyless (1); }
12948e { yyless (input () != 0); }
12949f { unput (yytext[0]); }
12950. { BEGIN INITIAL; }
12951%%
12952#ifdef YYTEXT_POINTER
12953extern char *yytext;
d7040cdb 12954#endif
d7040cdb 12955int
81ecdfbb 12956main (void)
d7040cdb 12957{
81ecdfbb 12958 return ! yylex () + ! yywrap ();
d7040cdb
SE
12959}
12960_ACEOF
81ecdfbb
RW
12961{ { ac_try="$LEX conftest.l"
12962case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965esac
12966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12967$as_echo "$ac_try_echo"; } >&5
12968 (eval "$LEX conftest.l") 2>&5
d7040cdb 12969 ac_status=$?
81ecdfbb
RW
12970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971 test $ac_status = 0; }
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12973$as_echo_n "checking lex output file root... " >&6; }
12974if test "${ac_cv_prog_lex_root+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
d7040cdb 12976else
d5fbea21 12977
81ecdfbb
RW
12978if test -f lex.yy.c; then
12979 ac_cv_prog_lex_root=lex.yy
12980elif test -f lexyy.c; then
12981 ac_cv_prog_lex_root=lexyy
12982else
12983 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 12984fi
d7040cdb 12985fi
81ecdfbb
RW
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12987$as_echo "$ac_cv_prog_lex_root" >&6; }
12988LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12989
81ecdfbb
RW
12990if test -z "${LEXLIB+set}"; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12992$as_echo_n "checking lex library... " >&6; }
12993if test "${ac_cv_lib_lex+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
d7040cdb 12995else
d7040cdb 12996
81ecdfbb
RW
12997 ac_save_LIBS=$LIBS
12998 ac_cv_lib_lex='none needed'
12999 for ac_lib in '' -lfl -ll; do
13000 LIBS="$ac_lib $ac_save_LIBS"
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002/* end confdefs.h. */
13003`cat $LEX_OUTPUT_ROOT.c`
13004_ACEOF
13005if ac_fn_c_try_link "$LINENO"; then :
13006 ac_cv_lib_lex=$ac_lib
d7040cdb 13007fi
81ecdfbb
RW
13008rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 test "$ac_cv_lib_lex" != 'none needed' && break
13011 done
13012 LIBS=$ac_save_LIBS
d7040cdb
SE
13013
13014fi
81ecdfbb
RW
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13016$as_echo "$ac_cv_lib_lex" >&6; }
13017 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
13018fi
13019
13b2be9c 13020
81ecdfbb
RW
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13022$as_echo_n "checking whether yytext is a pointer... " >&6; }
13023if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
d7040cdb
SE
13025else
13026 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 13027# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
13028# not all implementations provide the %pointer and %array declarations.
13029ac_cv_prog_lex_yytext_pointer=no
d7040cdb 13030ac_save_LIBS=$LIBS
81ecdfbb
RW
13031LIBS="$LEXLIB $ac_save_LIBS"
13032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033/* end confdefs.h. */
13034#define YYTEXT_POINTER 1
d7040cdb 13035`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 13036_ACEOF
81ecdfbb 13037if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13038 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 13039fi
81ecdfbb
RW
13040rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
d7040cdb 13042LIBS=$ac_save_LIBS
252b5132 13043
9b2b7d69 13044fi
81ecdfbb
RW
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13046$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 13047if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 13048
81ecdfbb 13049$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 13050
d6d788bd 13051fi
81ecdfbb 13052rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
13053 ;;
13054esac
d7040cdb
SE
13055if test "$LEX" = :; then
13056 LEX=${am_missing_run}flex
13057fi
13058
f8c2a965 13059ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN"
d7040cdb
SE
13060# If we haven't got the data from the intl directory,
13061# assume NLS is disabled.
13062USE_NLS=no
13063LIBINTL=
13064LIBINTL_DEP=
13065INCINTL=
13066XGETTEXT=
13067GMSGFMT=
13068POSUB=
13069
13070if test -f ../intl/config.intl; then
13071 . ../intl/config.intl
13072fi
81ecdfbb
RW
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13074$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 13075if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077$as_echo "no" >&6; }
d7040cdb 13078else
81ecdfbb
RW
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080$as_echo "yes" >&6; }
d7040cdb 13081
81ecdfbb 13082$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
13083
13084
81ecdfbb
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13086$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
13087 # Look for .po and .gmo files in the source directory.
13088 CATALOGS=
13089 XLINGUAS=
13090 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13091 # If there aren't any .gmo files the shell will give us the
13092 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13093 # weeded out.
13094 case "$cat" in *\**)
13095 continue;;
13096 esac
13097 # The quadruple backslash is collapsed to a double backslash
13098 # by the backticks, then collapsed again by the double quotes,
13099 # leaving us with one backslash in the sed expression (right
13100 # before the dot that mustn't act as a wildcard).
13101 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13102 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13103 # The user is allowed to set LINGUAS to a list of languages to
13104 # install catalogs for. If it's empty that means "all of them."
13105 if test "x$LINGUAS" = x; then
13106 CATALOGS="$CATALOGS $cat"
13107 XLINGUAS="$XLINGUAS $lang"
13108 else
13109 case "$LINGUAS" in *$lang*)
13110 CATALOGS="$CATALOGS $cat"
13111 XLINGUAS="$XLINGUAS $lang"
13112 ;;
13113 esac
13114 fi
13115 done
13116 LINGUAS="$XLINGUAS"
81ecdfbb
RW
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13118$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
13119
13120
13121 DATADIRNAME=share
13122
13123 INSTOBJEXT=.mo
13124
13125 GENCAT=gencat
13126
13127 CATOBJEXT=.gmo
13128
13129fi
13130
13131 MKINSTALLDIRS=
13132 if test -n "$ac_aux_dir"; then
13133 case "$ac_aux_dir" in
13134 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13135 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13136 esac
13137 fi
13138 if test -z "$MKINSTALLDIRS"; then
13139 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13140 fi
13141
13142
13143
81ecdfbb
RW
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13145$as_echo_n "checking whether NLS is requested... " >&6; }
13146 # Check whether --enable-nls was given.
13147if test "${enable_nls+set}" = set; then :
13148 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
13149else
13150 USE_NLS=yes
81ecdfbb
RW
13151fi
13152
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13154$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
13155
13156
13157
13158
13159
13160
13161# Prepare PATH_SEPARATOR.
13162# The user is always right.
13163if test "${PATH_SEPARATOR+set}" != set; then
13164 echo "#! /bin/sh" >conf$$.sh
13165 echo "exit 0" >>conf$$.sh
13166 chmod +x conf$$.sh
13167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13168 PATH_SEPARATOR=';'
13b2be9c 13169 else
d7040cdb 13170 PATH_SEPARATOR=:
13b2be9c 13171 fi
d7040cdb 13172 rm -f conf$$.sh
252b5132 13173fi
13b2be9c 13174
d7040cdb
SE
13175# Find out how to test for executable files. Don't use a zero-byte file,
13176# as systems may use methods other than mode bits to determine executability.
13177cat >conf$$.file <<_ASEOF
13178#! /bin/sh
13179exit 0
13180_ASEOF
13181chmod +x conf$$.file
13182if test -x conf$$.file >/dev/null 2>&1; then
13183 ac_executable_p="test -x"
13184else
13185 ac_executable_p="test -f"
13b2be9c 13186fi
d7040cdb 13187rm -f conf$$.file
13b2be9c 13188
d7040cdb
SE
13189# Extract the first word of "msgfmt", so it can be a program name with args.
13190set dummy msgfmt; ac_word=$2
81ecdfbb
RW
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192$as_echo_n "checking for $ac_word... " >&6; }
13193if test "${ac_cv_path_MSGFMT+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
252b5132 13195else
d7040cdb
SE
13196 case "$MSGFMT" in
13197 [\\/]* | ?:[\\/]*)
13198 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13199 ;;
13200 *)
13201 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13202 for ac_dir in $PATH; do
13203 IFS="$ac_save_IFS"
13204 test -z "$ac_dir" && ac_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13207 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13208 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13209 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13210 break 2
13211 fi
13212 fi
13213 done
13214 done
13215 IFS="$ac_save_IFS"
13216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13217 ;;
13218esac
252b5132 13219fi
d7040cdb
SE
13220MSGFMT="$ac_cv_path_MSGFMT"
13221if test "$MSGFMT" != ":"; then
81ecdfbb
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13223$as_echo "$MSGFMT" >&6; }
252b5132 13224else
81ecdfbb
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226$as_echo "no" >&6; }
252b5132 13227fi
252b5132 13228
d7040cdb
SE
13229 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13230set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232$as_echo_n "checking for $ac_word... " >&6; }
13233if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13b2be9c 13235else
d7040cdb
SE
13236 case $GMSGFMT in
13237 [\\/]* | ?:[\\/]*)
13238 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13239 ;;
13240 *)
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 13248 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13250 break 2
13251 fi
13252done
81ecdfbb
RW
13253 done
13254IFS=$as_save_IFS
252b5132 13255
d7040cdb
SE
13256 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13257 ;;
13258esac
13259fi
13260GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 13261if test -n "$GMSGFMT"; then
81ecdfbb
RW
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13263$as_echo "$GMSGFMT" >&6; }
ac48eca1 13264else
81ecdfbb
RW
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266$as_echo "no" >&6; }
6840198f 13267fi
6840198f 13268
13b2be9c 13269
20e95c23 13270
81ecdfbb 13271
d7040cdb
SE
13272# Prepare PATH_SEPARATOR.
13273# The user is always right.
13274if test "${PATH_SEPARATOR+set}" != set; then
13275 echo "#! /bin/sh" >conf$$.sh
13276 echo "exit 0" >>conf$$.sh
13277 chmod +x conf$$.sh
13278 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13279 PATH_SEPARATOR=';'
13280 else
13281 PATH_SEPARATOR=:
13282 fi
13283 rm -f conf$$.sh
13284fi
20e95c23 13285
d7040cdb
SE
13286# Find out how to test for executable files. Don't use a zero-byte file,
13287# as systems may use methods other than mode bits to determine executability.
13288cat >conf$$.file <<_ASEOF
13289#! /bin/sh
13290exit 0
13291_ASEOF
13292chmod +x conf$$.file
13293if test -x conf$$.file >/dev/null 2>&1; then
13294 ac_executable_p="test -x"
13b2be9c 13295else
d7040cdb 13296 ac_executable_p="test -f"
13b2be9c 13297fi
d7040cdb 13298rm -f conf$$.file
20e95c23 13299
d7040cdb
SE
13300# Extract the first word of "xgettext", so it can be a program name with args.
13301set dummy xgettext; ac_word=$2
81ecdfbb
RW
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303$as_echo_n "checking for $ac_word... " >&6; }
13304if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
252b5132 13306else
d7040cdb
SE
13307 case "$XGETTEXT" in
13308 [\\/]* | ?:[\\/]*)
13309 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13310 ;;
13311 *)
13312 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13313 for ac_dir in $PATH; do
13314 IFS="$ac_save_IFS"
13315 test -z "$ac_dir" && ac_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13318 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13319 (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
13320 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13321 break 2
13322 fi
13323 fi
13324 done
13325 done
13326 IFS="$ac_save_IFS"
13327 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13328 ;;
13329esac
13b2be9c 13330fi
d7040cdb
SE
13331XGETTEXT="$ac_cv_path_XGETTEXT"
13332if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13334$as_echo "$XGETTEXT" >&6; }
d7040cdb 13335else
81ecdfbb
RW
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
13b2be9c 13338fi
13b2be9c 13339
d7040cdb 13340 rm -f messages.po
20e95c23 13341
13b2be9c 13342
d7040cdb
SE
13343# Prepare PATH_SEPARATOR.
13344# The user is always right.
13345if test "${PATH_SEPARATOR+set}" != set; then
13346 echo "#! /bin/sh" >conf$$.sh
13347 echo "exit 0" >>conf$$.sh
13348 chmod +x conf$$.sh
13349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13350 PATH_SEPARATOR=';'
13351 else
13352 PATH_SEPARATOR=:
13353 fi
13354 rm -f conf$$.sh
252b5132 13355fi
20e95c23 13356
d7040cdb
SE
13357# Find out how to test for executable files. Don't use a zero-byte file,
13358# as systems may use methods other than mode bits to determine executability.
13359cat >conf$$.file <<_ASEOF
13360#! /bin/sh
13361exit 0
13362_ASEOF
13363chmod +x conf$$.file
13364if test -x conf$$.file >/dev/null 2>&1; then
13365 ac_executable_p="test -x"
252b5132 13366else
d7040cdb
SE
13367 ac_executable_p="test -f"
13368fi
13369rm -f conf$$.file
20e95c23 13370
d7040cdb
SE
13371# Extract the first word of "msgmerge", so it can be a program name with args.
13372set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374$as_echo_n "checking for $ac_word... " >&6; }
13375if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
20e95c23 13377else
d7040cdb
SE
13378 case "$MSGMERGE" in
13379 [\\/]* | ?:[\\/]*)
13380 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13381 ;;
13382 *)
13383 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13384 for ac_dir in $PATH; do
13385 IFS="$ac_save_IFS"
13386 test -z "$ac_dir" && ac_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13389 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13390 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13391 break 2
13392 fi
13393 fi
13394 done
13395 done
13396 IFS="$ac_save_IFS"
13397 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13398 ;;
13399esac
20e95c23 13400fi
d7040cdb
SE
13401MSGMERGE="$ac_cv_path_MSGMERGE"
13402if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13404$as_echo "$MSGMERGE" >&6; }
d7040cdb 13405else
81ecdfbb
RW
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407$as_echo "no" >&6; }
20e95c23 13408fi
252b5132 13409
252b5132 13410
d7040cdb
SE
13411 if test "$GMSGFMT" != ":"; then
13412 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13413 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13414 : ;
13415 else
13416 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13418$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
13419 GMSGFMT=":"
13420 fi
13421 fi
13b2be9c 13422
d7040cdb
SE
13423 if test "$XGETTEXT" != ":"; then
13424 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13425 (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
13426 : ;
13427 else
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13429$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
13430 XGETTEXT=":"
13431 fi
13432 rm -f messages.po
13433 fi
252b5132 13434
81ecdfbb 13435 ac_config_commands="$ac_config_commands default-1"
13b2be9c 13436
13b2be9c 13437
81ecdfbb
RW
13438
13439
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13441$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13442 # Check whether --enable-maintainer-mode was given.
13443if test "${enable_maintainer_mode+set}" = set; then :
13444 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 13445else
81ecdfbb 13446 USE_MAINTAINER_MODE=no
13b2be9c 13447fi
13b2be9c 13448
81ecdfbb
RW
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13450$as_echo "$USE_MAINTAINER_MODE" >&6; }
13451 if test $USE_MAINTAINER_MODE = yes; then
13452 MAINTAINER_MODE_TRUE=
13453 MAINTAINER_MODE_FALSE='#'
13454else
13455 MAINTAINER_MODE_TRUE='#'
13456 MAINTAINER_MODE_FALSE=
13b2be9c 13457fi
13b2be9c 13458
81ecdfbb
RW
13459 MAINT=$MAINTAINER_MODE_TRUE
13460
13461
13462 if false; then
13463 GENINSRC_NEVER_TRUE=
13464 GENINSRC_NEVER_FALSE='#'
13b2be9c 13465else
81ecdfbb
RW
13466 GENINSRC_NEVER_TRUE='#'
13467 GENINSRC_NEVER_FALSE=
252b5132 13468fi
13b2be9c 13469
81ecdfbb
RW
13470
13471
58797674 13472for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
81ecdfbb
RW
13473do :
13474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13476eval as_val=\$$as_ac_Header
13477 if test "x$as_val" = x""yes; then :
13b2be9c 13478 cat >>confdefs.h <<_ACEOF
81ecdfbb 13479#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
13480_ACEOF
13481
252b5132 13482fi
13b2be9c 13483
252b5132
RH
13484done
13485
df7b86aa
NC
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13487$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13488if test "${gcc_cv_header_string+set}" = set; then :
13489 $as_echo_n "(cached) " >&6
13490else
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492/* end confdefs.h. */
13493#include <string.h>
13494#include <strings.h>
13495int
13496main ()
13497{
13498
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503if ac_fn_c_try_compile "$LINENO"; then :
13504 gcc_cv_header_string=yes
13505else
13506 gcc_cv_header_string=no
13507fi
13508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509fi
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13511$as_echo "$gcc_cv_header_string" >&6; }
13512if test $gcc_cv_header_string = yes; then
13513
13514$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13515
13516fi
13517
d6d788bd 13518
252b5132
RH
13519# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13520# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13522$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
13523if test "${host}" = "${target}"; then
13524 cross_gas=no
13525else
13526 cross_gas=yes
13b2be9c 13527
81ecdfbb 13528$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
13529
13530fi
81ecdfbb
RW
13531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13532$as_echo "$cross_gas" >&6; }
252b5132
RH
13533
13534# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13535# for constant arguments. Useless!
81ecdfbb
RW
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13537$as_echo_n "checking for working alloca.h... " >&6; }
13538if test "${ac_cv_working_alloca_h+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13b2be9c 13540else
81ecdfbb 13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13542/* end confdefs.h. */
252b5132 13543#include <alloca.h>
13b2be9c
DJ
13544int
13545main ()
13546{
13547char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 13548 if (p) return 0;
13b2be9c
DJ
13549 ;
13550 return 0;
13551}
13552_ACEOF
81ecdfbb 13553if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13554 ac_cv_working_alloca_h=yes
13555else
81ecdfbb 13556 ac_cv_working_alloca_h=no
13b2be9c 13557fi
81ecdfbb
RW
13558rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13560fi
81ecdfbb
RW
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13562$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
13563if test $ac_cv_working_alloca_h = yes; then
13564
81ecdfbb 13565$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
13566
13567fi
13568
81ecdfbb
RW
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13570$as_echo_n "checking for alloca... " >&6; }
13571if test "${ac_cv_func_alloca_works+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
252b5132 13573else
81ecdfbb 13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13575/* end confdefs.h. */
252b5132
RH
13576#ifdef __GNUC__
13577# define alloca __builtin_alloca
13578#else
13579# ifdef _MSC_VER
13580# include <malloc.h>
13581# define alloca _alloca
13582# else
81ecdfbb 13583# ifdef HAVE_ALLOCA_H
252b5132
RH
13584# include <alloca.h>
13585# else
13586# ifdef _AIX
13587 #pragma alloca
13588# else
13589# ifndef alloca /* predefined by HP cc +Olibcalls */
13590char *alloca ();
13591# endif
13592# endif
13593# endif
13594# endif
13595#endif
13596
13b2be9c
DJ
13597int
13598main ()
13599{
13600char *p = (char *) alloca (1);
81ecdfbb 13601 if (p) return 0;
13b2be9c
DJ
13602 ;
13603 return 0;
13604}
13605_ACEOF
81ecdfbb 13606if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13607 ac_cv_func_alloca_works=yes
13608else
81ecdfbb 13609 ac_cv_func_alloca_works=no
252b5132 13610fi
81ecdfbb
RW
13611rm -f core conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
252b5132 13613fi
81ecdfbb
RW
13614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13615$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 13616
252b5132 13617if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13618
81ecdfbb 13619$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 13620
13b2be9c 13621else
c8615825 13622 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13623# that cause trouble. Some versions do not even contain alloca or
13624# contain a buggy version. If you still want to use their alloca,
13625# use ar to extract alloca.o from them instead of compiling alloca.c.
13626
81ecdfbb 13627ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 13628
81ecdfbb 13629$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 13630
d6d788bd 13631
81ecdfbb
RW
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13633$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13634if test "${ac_cv_os_cray+set}" = set; then :
13635 $as_echo_n "(cached) " >&6
252b5132 13636else
81ecdfbb 13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13638/* end confdefs.h. */
81ecdfbb 13639#if defined CRAY && ! defined CRAY2
252b5132
RH
13640webecray
13641#else
13642wenotbecray
13643#endif
13644
13b2be9c 13645_ACEOF
252b5132 13646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 13647 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
13648 ac_cv_os_cray=yes
13649else
252b5132
RH
13650 ac_cv_os_cray=no
13651fi
13652rm -f conftest*
13653
13654fi
81ecdfbb
RW
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13656$as_echo "$ac_cv_os_cray" >&6; }
252b5132 13657if test $ac_cv_os_cray = yes; then
13b2be9c 13658 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
13659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13660ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13661eval as_val=\$$as_ac_var
13662 if test "x$as_val" = x""yes; then :
13b2be9c
DJ
13663
13664cat >>confdefs.h <<_ACEOF
252b5132 13665#define CRAY_STACKSEG_END $ac_func
13b2be9c 13666_ACEOF
252b5132 13667
13b2be9c 13668 break
252b5132
RH
13669fi
13670
13b2be9c 13671 done
252b5132
RH
13672fi
13673
81ecdfbb
RW
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13675$as_echo_n "checking stack direction for C alloca... " >&6; }
13676if test "${ac_cv_c_stack_direction+set}" = set; then :
13677 $as_echo_n "(cached) " >&6
252b5132 13678else
81ecdfbb 13679 if test "$cross_compiling" = yes; then :
252b5132
RH
13680 ac_cv_c_stack_direction=0
13681else
81ecdfbb 13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13683/* end confdefs.h. */
81ecdfbb 13684$ac_includes_default
13b2be9c 13685int
252b5132
RH
13686find_stack_direction ()
13687{
13688 static char *addr = 0;
13689 auto char dummy;
13690 if (addr == 0)
13691 {
13692 addr = &dummy;
13693 return find_stack_direction ();
13694 }
13695 else
13696 return (&dummy > addr) ? 1 : -1;
13697}
13b2be9c
DJ
13698
13699int
252b5132
RH
13700main ()
13701{
81ecdfbb 13702 return find_stack_direction () < 0;
252b5132 13703}
13b2be9c 13704_ACEOF
81ecdfbb 13705if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
13706 ac_cv_c_stack_direction=1
13707else
81ecdfbb 13708 ac_cv_c_stack_direction=-1
252b5132 13709fi
81ecdfbb
RW
13710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13711 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 13712fi
252b5132 13713
81ecdfbb
RW
13714fi
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13716$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 13717cat >>confdefs.h <<_ACEOF
252b5132 13718#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
13719_ACEOF
13720
252b5132
RH
13721
13722fi
13723
81ecdfbb
RW
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13725$as_echo_n "checking for inline... " >&6; }
13726if test "${ac_cv_c_inline+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
252b5132
RH
13728else
13729 ac_cv_c_inline=no
13730for ac_kw in inline __inline__ __inline; do
81ecdfbb 13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13732/* end confdefs.h. */
13733#ifndef __cplusplus
13734typedef int foo_t;
13735static $ac_kw foo_t static_foo () {return 0; }
13736$ac_kw foo_t foo () {return 0; }
13737#endif
252b5132 13738
13b2be9c 13739_ACEOF
81ecdfbb
RW
13740if ac_fn_c_try_compile "$LINENO"; then :
13741 ac_cv_c_inline=$ac_kw
252b5132 13742fi
81ecdfbb
RW
13743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 test "$ac_cv_c_inline" != no && break
252b5132
RH
13745done
13746
13747fi
81ecdfbb
RW
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13749$as_echo "$ac_cv_c_inline" >&6; }
ab509236 13750
13b2be9c 13751case $ac_cv_c_inline in
252b5132 13752 inline | yes) ;;
ab509236
L
13753 *)
13754 case $ac_cv_c_inline in
13755 no) ac_val=;;
13756 *) ac_val=$ac_cv_c_inline;;
13757 esac
13758 cat >>confdefs.h <<_ACEOF
13759#ifndef __cplusplus
13760#define inline $ac_val
13761#endif
13b2be9c 13762_ACEOF
ab509236 13763 ;;
252b5132
RH
13764esac
13765
6840198f 13766
d6d788bd 13767# VMS doesn't have unlink.
252b5132 13768for ac_func in unlink remove
81ecdfbb
RW
13769do :
13770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13772eval as_val=\$$as_ac_var
13773 if test "x$as_val" = x""yes; then :
13b2be9c 13774 cat >>confdefs.h <<_ACEOF
81ecdfbb 13775#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13776_ACEOF
252b5132 13777 break
252b5132
RH
13778fi
13779done
13780
4b0296ce 13781for ac_func in sbrk setlocale
81ecdfbb 13782do :
a574142b
AM
13783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13784ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13785eval as_val=\$$as_ac_var
13786 if test "x$as_val" = x""yes; then :
13b2be9c 13787 cat >>confdefs.h <<_ACEOF
a574142b 13788#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13789_ACEOF
252b5132 13790
252b5132
RH
13791fi
13792done
13793
d6d788bd 13794
44350750
NC
13795
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13797$as_echo_n "checking for LC_MESSAGES... " >&6; }
13798if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13800else
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802/* end confdefs.h. */
13803#include <locale.h>
13804int
13805main ()
13806{
13807return LC_MESSAGES
13808 ;
13809 return 0;
13810}
13811_ACEOF
13812if ac_fn_c_try_link "$LINENO"; then :
13813 am_cv_val_LC_MESSAGES=yes
13814else
13815 am_cv_val_LC_MESSAGES=no
13816fi
13817rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819fi
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13821$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13822 if test $am_cv_val_LC_MESSAGES = yes; then
13823
13824$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13825
13826 fi
13827
13828
39bec121
TW
13829# do we need the math library?
13830case "${need_libm}" in
13b2be9c 13831yes)
39bec121 13832 LIBM=
f9c19112 13833case $host in
3725885a 13834*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 13835 # These system don't have libm, or don't need it
39bec121
TW
13836 ;;
13837*-ncr-sysv4.3*)
81ecdfbb
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13839$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13840if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
39bec121 13842else
13b2be9c 13843 ac_check_lib_save_LIBS=$LIBS
39bec121 13844LIBS="-lmw $LIBS"
81ecdfbb 13845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13846/* end confdefs.h. */
13847
81ecdfbb
RW
13848/* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
13851#ifdef __cplusplus
13852extern "C"
13853#endif
13b2be9c
DJ
13854char _mwvalidcheckl ();
13855int
13856main ()
13857{
81ecdfbb 13858return _mwvalidcheckl ();
13b2be9c
DJ
13859 ;
13860 return 0;
13861}
13862_ACEOF
81ecdfbb 13863if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13864 ac_cv_lib_mw__mwvalidcheckl=yes
13865else
81ecdfbb 13866 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 13867fi
81ecdfbb
RW
13868rm -f core conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13870LIBS=$ac_check_lib_save_LIBS
13871fi
81ecdfbb
RW
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13873$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13874if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
39bec121 13875 LIBM="-lmw"
39bec121
TW
13876fi
13877
81ecdfbb
RW
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13879$as_echo_n "checking for cos in -lm... " >&6; }
13880if test "${ac_cv_lib_m_cos+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
39bec121 13882else
13b2be9c 13883 ac_check_lib_save_LIBS=$LIBS
39bec121 13884LIBS="-lm $LIBS"
81ecdfbb 13885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13886/* end confdefs.h. */
39bec121 13887
81ecdfbb
RW
13888/* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13891#ifdef __cplusplus
13892extern "C"
13893#endif
d7040cdb 13894char cos ();
13b2be9c
DJ
13895int
13896main ()
13897{
81ecdfbb 13898return cos ();
13b2be9c
DJ
13899 ;
13900 return 0;
13901}
13902_ACEOF
81ecdfbb 13903if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13904 ac_cv_lib_m_cos=yes
13b2be9c 13905else
81ecdfbb 13906 ac_cv_lib_m_cos=no
13b2be9c 13907fi
81ecdfbb
RW
13908rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13910LIBS=$ac_check_lib_save_LIBS
13911fi
81ecdfbb
RW
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13913$as_echo "$ac_cv_lib_m_cos" >&6; }
13914if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13915 LIBM="$LIBM -lm"
39bec121
TW
13916fi
13917
13918 ;;
13919*)
81ecdfbb
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13921$as_echo_n "checking for cos in -lm... " >&6; }
13922if test "${ac_cv_lib_m_cos+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
39bec121 13924else
13b2be9c 13925 ac_check_lib_save_LIBS=$LIBS
39bec121 13926LIBS="-lm $LIBS"
81ecdfbb 13927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13928/* end confdefs.h. */
39bec121 13929
81ecdfbb
RW
13930/* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13933#ifdef __cplusplus
13934extern "C"
13935#endif
d7040cdb 13936char cos ();
13b2be9c
DJ
13937int
13938main ()
13939{
81ecdfbb 13940return cos ();
13b2be9c
DJ
13941 ;
13942 return 0;
13943}
13944_ACEOF
81ecdfbb 13945if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13946 ac_cv_lib_m_cos=yes
13b2be9c 13947else
81ecdfbb 13948 ac_cv_lib_m_cos=no
13b2be9c 13949fi
81ecdfbb
RW
13950rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13952LIBS=$ac_check_lib_save_LIBS
13953fi
81ecdfbb
RW
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13955$as_echo "$ac_cv_lib_m_cos" >&6; }
13956if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13957 LIBM="-lm"
39bec121
TW
13958fi
13959
13960 ;;
13961esac
13962
13b2be9c 13963
d7040cdb 13964
39bec121
TW
13965 ;;
13966esac
13967
252b5132
RH
13968# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13969# enough, but on some of those systems, the assert macro relies on requoting
13970# working properly!
81ecdfbb
RW
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13972$as_echo_n "checking for working assert macro... " >&6; }
13973if test "${gas_cv_assert_ok+set}" = set; then :
13974 $as_echo_n "(cached) " >&6
13b2be9c 13975else
81ecdfbb 13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13977/* end confdefs.h. */
252b5132
RH
13978#include <assert.h>
13979#include <stdio.h>
13b2be9c
DJ
13980int
13981main ()
13982{
252b5132
RH
13983
13984/* check for requoting problems */
13985static int a, b, c, d;
13986static char *s;
13987assert (!strcmp(s, "foo bar baz quux"));
13988/* check for newline handling */
13989assert (a == b
13990 || c == d);
13991
13b2be9c
DJ
13992 ;
13993 return 0;
81ecdfbb
RW
13994}
13995_ACEOF
13996if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13997 gas_cv_assert_ok=yes
13998else
81ecdfbb 13999 gas_cv_assert_ok=no
252b5132 14000fi
81ecdfbb
RW
14001rm -f core conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
252b5132 14003fi
81ecdfbb
RW
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14005$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 14006test $gas_cv_assert_ok = yes ||
81ecdfbb 14007$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 14008
d6d788bd
L
14009
14010
252b5132
RH
14011# On some systems, the system header files may not declare malloc, realloc,
14012# and free. There are places where gas needs these functions to have been
14013# declared -- such as when taking their addresses.
14014gas_test_headers="
14015#ifdef HAVE_MEMORY_H
14016#include <memory.h>
14017#endif
14018#ifdef HAVE_STRING_H
14019#include <string.h>
14020#else
14021#ifdef HAVE_STRINGS_H
14022#include <strings.h>
14023#endif
14024#endif
14025#ifdef HAVE_STDLIB_H
14026#include <stdlib.h>
14027#endif
14028#ifdef HAVE_UNISTD_H
14029#include <unistd.h>
14030#endif
14031"
14032
e8a38df5
AL
14033# Does errno.h declare errno, or do we have to add a separate declaration
14034# for it?
14035
81ecdfbb
RW
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14037$as_echo_n "checking whether declaration is required for errno... " >&6; }
14038if test "${gas_cv_decl_needed_errno+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
e8a38df5 14040else
81ecdfbb 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
14042/* end confdefs.h. */
14043
14044#ifdef HAVE_ERRNO_H
14045#include <errno.h>
14046#endif
14047
14048int
14049main ()
14050{
14051
14052typedef int f;
14053f x;
14054x = (f) errno;
14055
14056 ;
14057 return 0;
14058}
14059_ACEOF
81ecdfbb 14060if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
14061 gas_cv_decl_needed_errno=no
14062else
81ecdfbb 14063 gas_cv_decl_needed_errno=yes
e8a38df5 14064fi
81ecdfbb
RW
14065rm -f core conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
e8a38df5 14067fi
81ecdfbb
RW
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14069$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
14070if test $gas_cv_decl_needed_errno = yes; then
14071
81ecdfbb 14072$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
14073
14074fi
14075
14076
81ecdfbb
RW
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14078$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14079if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14080 $as_echo_n "(cached) " >&6
56f36663 14081else
81ecdfbb 14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
14083/* end confdefs.h. */
14084#include <unistd.h>
14085int
14086main ()
14087{
14088extern int getopt (int, char *const*, const char *);
14089 ;
14090 return 0;
14091}
14092_ACEOF
81ecdfbb 14093if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
14094 gas_cv_decl_getopt_unistd_h=yes
14095else
81ecdfbb 14096 gas_cv_decl_getopt_unistd_h=no
56f36663 14097fi
81ecdfbb 14098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
14099fi
14100
81ecdfbb
RW
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14102$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
14103if test $gas_cv_decl_getopt_unistd_h = yes; then
14104
81ecdfbb 14105$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
14106
14107fi
14108
e8a38df5 14109
81ecdfbb
RW
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14111$as_echo_n "checking whether declaration is required for environ... " >&6; }
14112if test "${gas_cv_decl_needed_environ+set}" = set; then :
14113 $as_echo_n "(cached) " >&6
13b2be9c 14114else
81ecdfbb 14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14116/* end confdefs.h. */
252b5132 14117$gas_test_headers
13b2be9c
DJ
14118int
14119main ()
14120{
252b5132 14121
e8a38df5 14122typedef char **f;
252b5132 14123f x;
e8a38df5 14124x = (f) environ;
252b5132 14125
13b2be9c
DJ
14126 ;
14127 return 0;
14128}
14129_ACEOF
81ecdfbb 14130if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14131 gas_cv_decl_needed_environ=no
252b5132 14132else
81ecdfbb 14133 gas_cv_decl_needed_environ=yes
252b5132 14134fi
81ecdfbb
RW
14135rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
252b5132 14137fi
81ecdfbb
RW
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14139$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 14140if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 14141
81ecdfbb 14142$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
14143
14144fi
14145
14146
81ecdfbb
RW
14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14148$as_echo_n "checking whether declaration is required for ffs... " >&6; }
14149if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
13b2be9c 14151else
81ecdfbb 14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14153/* end confdefs.h. */
14154$gas_test_headers
14155int
14156main ()
14157{
14158
e8a38df5 14159typedef int (*f)(int);
13b2be9c 14160f x;
e8a38df5 14161x = (f) ffs;
13b2be9c
DJ
14162
14163 ;
14164 return 0;
14165}
14166_ACEOF
81ecdfbb 14167if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14168 gas_cv_decl_needed_ffs=no
13b2be9c 14169else
81ecdfbb 14170 gas_cv_decl_needed_ffs=yes
13b2be9c 14171fi
81ecdfbb
RW
14172rm -f core conftest.err conftest.$ac_objext \
14173 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14174fi
81ecdfbb
RW
14175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14176$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 14177if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 14178
81ecdfbb 14179$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
14180
14181fi
14182
14183
81ecdfbb
RW
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14185$as_echo_n "checking whether declaration is required for free... " >&6; }
14186if test "${gas_cv_decl_needed_free+set}" = set; then :
14187 $as_echo_n "(cached) " >&6
13b2be9c 14188else
81ecdfbb 14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14190/* end confdefs.h. */
14191$gas_test_headers
14192int
14193main ()
14194{
14195
14196typedef void (*f)();
14197f x;
14198x = (f) free;
14199
14200 ;
14201 return 0;
14202}
14203_ACEOF
81ecdfbb 14204if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14205 gas_cv_decl_needed_free=no
14206else
81ecdfbb 14207 gas_cv_decl_needed_free=yes
13b2be9c 14208fi
81ecdfbb
RW
14209rm -f core conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14211fi
81ecdfbb
RW
14212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14213$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
14214if test $gas_cv_decl_needed_free = yes; then
14215
81ecdfbb 14216$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
14217
14218fi
14219
14220
81ecdfbb
RW
14221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14222$as_echo_n "checking whether declaration is required for malloc... " >&6; }
14223if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
13b2be9c 14225else
81ecdfbb 14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14227/* end confdefs.h. */
14228$gas_test_headers
14229int
14230main ()
14231{
14232
14233typedef char *(*f)();
14234f x;
e8a38df5 14235x = (f) malloc;
13b2be9c
DJ
14236
14237 ;
14238 return 0;
14239}
14240_ACEOF
81ecdfbb 14241if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14242 gas_cv_decl_needed_malloc=no
13b2be9c 14243else
81ecdfbb 14244 gas_cv_decl_needed_malloc=yes
13b2be9c 14245fi
81ecdfbb
RW
14246rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14248fi
81ecdfbb
RW
14249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14250$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 14251if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 14252
81ecdfbb 14253$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
14254
14255fi
14256
14257
81ecdfbb
RW
14258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14259$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14260if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
13b2be9c 14262else
81ecdfbb 14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14264/* end confdefs.h. */
14265$gas_test_headers
14266int
14267main ()
14268{
14269
e8a38df5 14270typedef char *(*f)();
13b2be9c 14271f x;
e8a38df5 14272x = (f) sbrk;
13b2be9c
DJ
14273
14274 ;
14275 return 0;
14276}
14277_ACEOF
81ecdfbb 14278if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14279 gas_cv_decl_needed_sbrk=no
13b2be9c 14280else
81ecdfbb 14281 gas_cv_decl_needed_sbrk=yes
13b2be9c 14282fi
81ecdfbb
RW
14283rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14285fi
81ecdfbb
RW
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14287$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 14288if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 14289
81ecdfbb 14290$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
14291
14292fi
14293
14294
81ecdfbb
RW
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14296$as_echo_n "checking whether declaration is required for strstr... " >&6; }
14297if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
13b2be9c 14299else
81ecdfbb 14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14301/* end confdefs.h. */
e8a38df5 14302$gas_test_headers
13b2be9c
DJ
14303int
14304main ()
14305{
14306
e8a38df5 14307typedef char *(*f)();
13b2be9c 14308f x;
e8a38df5 14309x = (f) strstr;
13b2be9c
DJ
14310
14311 ;
14312 return 0;
14313}
14314_ACEOF
81ecdfbb 14315if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14316 gas_cv_decl_needed_strstr=no
13b2be9c 14317else
81ecdfbb 14318 gas_cv_decl_needed_strstr=yes
13b2be9c 14319fi
81ecdfbb
RW
14320rm -f core conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14322fi
81ecdfbb
RW
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14324$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 14325if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 14326
81ecdfbb 14327$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
14328
14329fi
14330
14331
4b0296ce
AM
14332ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14333if test "x$ac_cv_have_decl_free" = x""yes; then :
14334 ac_have_decl=1
14335else
14336 ac_have_decl=0
14337fi
14338
14339cat >>confdefs.h <<_ACEOF
14340#define HAVE_DECL_FREE $ac_have_decl
14341_ACEOF
14342ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14343if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14344 ac_have_decl=1
14345else
14346 ac_have_decl=0
14347fi
14348
14349cat >>confdefs.h <<_ACEOF
14350#define HAVE_DECL_GETENV $ac_have_decl
14351_ACEOF
14352ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14353if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14354 ac_have_decl=1
14355else
14356 ac_have_decl=0
14357fi
14358
14359cat >>confdefs.h <<_ACEOF
14360#define HAVE_DECL_MALLOC $ac_have_decl
14361_ACEOF
0175442d
L
14362ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14363if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14364 ac_have_decl=1
14365else
14366 ac_have_decl=0
14367fi
14368
14369cat >>confdefs.h <<_ACEOF
14370#define HAVE_DECL_MEMPCPY $ac_have_decl
14371_ACEOF
4b0296ce
AM
14372ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14373if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14374 ac_have_decl=1
14375else
14376 ac_have_decl=0
14377fi
14378
14379cat >>confdefs.h <<_ACEOF
14380#define HAVE_DECL_REALLOC $ac_have_decl
14381_ACEOF
14382ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14383if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14384 ac_have_decl=1
14385else
14386 ac_have_decl=0
14387fi
14388
14389cat >>confdefs.h <<_ACEOF
14390#define HAVE_DECL_STPCPY $ac_have_decl
14391_ACEOF
14392ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14393if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14394 ac_have_decl=1
14395else
14396 ac_have_decl=0
14397fi
0175442d 14398
4b0296ce
AM
14399cat >>confdefs.h <<_ACEOF
14400#define HAVE_DECL_STRSTR $ac_have_decl
14401_ACEOF
81ecdfbb
RW
14402ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14403if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14404 ac_have_decl=1
6d74f28b 14405else
81ecdfbb 14406 ac_have_decl=0
6d74f28b 14407fi
6d74f28b
EB
14408
14409cat >>confdefs.h <<_ACEOF
81ecdfbb 14410#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b 14411_ACEOF
2a7f4fa9
NC
14412ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14413if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14414 ac_have_decl=1
14415else
14416 ac_have_decl=0
14417fi
14418
14419cat >>confdefs.h <<_ACEOF
14420#define HAVE_DECL_ASPRINTF $ac_have_decl
14421_ACEOF
6d74f28b
EB
14422
14423
13b2be9c 14424
c973bc5c
NC
14425case "${host}" in
14426*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14427
81ecdfbb 14428$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
14429 ;;
14430esac
14431
543b7933
L
14432# Link in zlib if we can. This allows us to write compressed debug sections.
14433
14434 # Use the system's zlib library.
39f3de7c
L
14435 zlibdir="-L\$(top_builddir)/../zlib"
14436 zlibinc="-I\$(top_srcdir)/../zlib"
0acf065b 14437
0138187e
L
14438# Check whether --with-system-zlib was given.
14439if test "${with_system_zlib+set}" = set; then :
afa59b79
L
14440 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14441 zlibdir=
14442 zlibinc=
14443 fi
0acf065b 14444
0acf065b 14445fi
0acf065b 14446
0acf065b
CC
14447
14448
543b7933
L
14449
14450
b11d79f2
TG
14451# Support for VMS timestamps via cross compile
14452
14453if test "$ac_cv_header_time_h" = yes; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14455$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14456 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14457 $as_echo_n "(cached) " >&6
14458else
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460/* end confdefs.h. */
14461
14462#define _BSD_SOURCE 1
14463#include <time.h>
14464int
14465main ()
14466{
14467struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14468 ;
14469 return 0;
14470}
14471_ACEOF
14472if ac_fn_c_try_compile "$LINENO"; then :
14473 gas_cv_have_time_type_member_tm_gmtoff=yes
14474else
14475 gas_cv_have_time_type_member_tm_gmtoff=no
14476
14477fi
14478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479fi
14480
14481 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14482
14483$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14484
14485 fi
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14487$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14488
14489fi
14490
14491if test "$ac_cv_header_sys_stat_h" = yes; then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14493$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14494 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14496else
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h. */
14499
14500#define _BSD_SOURCE 1
14501#include <sys/stat.h>
14502int
14503main ()
14504{
14505struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14506 ;
14507 return 0;
14508}
14509_ACEOF
14510if ac_fn_c_try_compile "$LINENO"; then :
14511 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14512else
14513 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14514
14515fi
14516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517fi
14518
14519 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14520
14521$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14522
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14525$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14528$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14529 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14531else
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533/* end confdefs.h. */
14534
14535#define _BSD_SOURCE 1
14536#include <sys/stat.h>
14537int
14538main ()
14539{
14540struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14541 ;
14542 return 0;
14543}
14544_ACEOF
14545if ac_fn_c_try_compile "$LINENO"; then :
14546 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14547else
14548 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14549
14550fi
14551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552fi
14553
14554 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14555
14556$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14557
14558 fi
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14560$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14561
14562fi
14563
14564
c973bc5c 14565
13b2be9c 14566
108a6f8e
CD
14567
14568
14569
14570
31dd3154 14571
81ecdfbb 14572ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 14573
81ecdfbb 14574ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
14575
14576
14577cat >confcache <<\_ACEOF
14578# This file is a shell script that caches the results of configure
14579# tests run on this system so they can be shared between configure
14580# scripts and configure runs, see configure's option --config-cache.
14581# It is not useful on other systems. If it contains results you don't
14582# want to keep, you may remove or edit it.
14583#
14584# config.status only pays attention to the cache file if you give it
14585# the --recheck option to rerun configure.
14586#
14587# `ac_cv_env_foo' variables (set or unset) will be overridden when
14588# loading this file, other *unset* `ac_cv_foo' will be assigned the
14589# following values.
14590
14591_ACEOF
14592
14593# The following way of writing the cache mishandles newlines in values,
14594# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14595# So, we kill variables containing newlines.
13b2be9c
DJ
14596# Ultrix sh set writes to stderr and can't be redirected directly,
14597# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14598(
14599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14600 eval ac_val=\$$ac_var
14601 case $ac_val in #(
14602 *${as_nl}*)
14603 case $ac_var in #(
14604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14605$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14606 esac
14607 case $ac_var in #(
14608 _ | IFS | as_nl) ;; #(
14609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14610 *) { eval $ac_var=; unset $ac_var;} ;;
14611 esac ;;
14612 esac
14613 done
14614
13b2be9c 14615 (set) 2>&1 |
81ecdfbb
RW
14616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14617 *${as_nl}ac_space=\ *)
14618 # `set' does not quote correctly, so add quotes: double-quote
14619 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 14620 sed -n \
ab509236
L
14621 "s/'/'\\\\''/g;
14622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14623 ;; #(
13b2be9c
DJ
14624 *)
14625 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 14627 ;;
81ecdfbb
RW
14628 esac |
14629 sort
14630) |
13b2be9c 14631 sed '
81ecdfbb 14632 /^ac_cv_env_/b end
13b2be9c 14633 t clear
81ecdfbb 14634 :clear
13b2be9c
DJ
14635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14636 t end
81ecdfbb
RW
14637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14638 :end' >>confcache
14639if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14640 if test -w "$cache_file"; then
14641 test "x$cache_file" != "x/dev/null" &&
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14643$as_echo "$as_me: updating cache $cache_file" >&6;}
13b2be9c
DJ
14644 cat confcache >$cache_file
14645 else
81ecdfbb
RW
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14647$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
14648 fi
14649fi
14650rm -f confcache
14651
14652test "x$prefix" = xNONE && prefix=$ac_default_prefix
14653# Let make expand exec_prefix.
14654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14655
13b2be9c
DJ
14656DEFS=-DHAVE_CONFIG_H
14657
14658ac_libobjs=
14659ac_ltlibobjs=
14660for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14661 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14665 # will be set to the directory where LIBOBJS objects are built.
14666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
14668done
14669LIBOBJS=$ac_libobjs
14670
14671LTLIBOBJS=$ac_ltlibobjs
14672
14673
14674if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14675 as_fn_error "conditional \"AMDEP\" was never defined.
14676Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
14677fi
14678if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14679 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14680Usually this means the macro was only invoked conditionally." "$LINENO" 5
14681fi
14682 if test -n "$EXEEXT"; then
14683 am__EXEEXT_TRUE=
14684 am__EXEEXT_FALSE='#'
14685else
14686 am__EXEEXT_TRUE='#'
14687 am__EXEEXT_FALSE=
13b2be9c 14688fi
81ecdfbb
RW
14689
14690
13b2be9c 14691if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14692 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14693Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 14694fi
d5fbea21 14695if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14696 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14697Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14698fi
13b2be9c
DJ
14699
14700: ${CONFIG_STATUS=./config.status}
81ecdfbb 14701ac_write_fail=0
13b2be9c
DJ
14702ac_clean_files_save=$ac_clean_files
14703ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14705$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14706as_write_fail=0
14707cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
14708#! $SHELL
14709# Generated by $as_me.
14710# Run this file to recreate the current configuration.
14711# Compiler output produced by configure, useful for debugging
14712# configure, is in config.log if it exists.
14713
14714debug=false
14715ac_cs_recheck=false
14716ac_cs_silent=false
13b2be9c 14717
81ecdfbb
RW
14718SHELL=\${CONFIG_SHELL-$SHELL}
14719export SHELL
14720_ASEOF
14721cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14722## -------------------- ##
14723## M4sh Initialization. ##
14724## -------------------- ##
13b2be9c 14725
81ecdfbb
RW
14726# Be more Bourne compatible
14727DUALCASE=1; export DUALCASE # for MKS sh
14728if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
14729 emulate sh
14730 NULLCMD=:
81ecdfbb 14731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
14732 # is contrary to our usage. Disable this feature.
14733 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14734 setopt NO_GLOB_SUBST
14735else
14736 case `(set -o) 2>/dev/null` in #(
14737 *posix*) :
14738 set -o posix ;; #(
14739 *) :
14740 ;;
14741esac
13b2be9c
DJ
14742fi
14743
81ecdfbb
RW
14744
14745as_nl='
14746'
14747export as_nl
14748# Printing a long string crashes Solaris 7 /usr/bin/printf.
14749as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14750as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14751as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14752# Prefer a ksh shell builtin over an external printf program on Solaris,
14753# but without wasting forks for bash or zsh.
14754if test -z "$BASH_VERSION$ZSH_VERSION" \
14755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14756 as_echo='print -r --'
14757 as_echo_n='print -rn --'
14758elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14759 as_echo='printf %s\n'
14760 as_echo_n='printf %s'
14761else
14762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14764 as_echo_n='/usr/ucb/echo -n'
14765 else
14766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14767 as_echo_n_body='eval
14768 arg=$1;
14769 case $arg in #(
14770 *"$as_nl"*)
14771 expr "X$arg" : "X\\(.*\\)$as_nl";
14772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14773 esac;
14774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14775 '
14776 export as_echo_n_body
14777 as_echo_n='sh -c $as_echo_n_body as_echo'
14778 fi
14779 export as_echo_body
14780 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
14781fi
14782
81ecdfbb
RW
14783# The user is always right.
14784if test "${PATH_SEPARATOR+set}" != set; then
14785 PATH_SEPARATOR=:
14786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14788 PATH_SEPARATOR=';'
14789 }
14790fi
14791
14792
14793# IFS
14794# We need space, tab and new line, in precisely that order. Quoting is
14795# there to prevent editors from complaining about space-tab.
14796# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14797# splitting by setting IFS to empty value.)
14798IFS=" "" $as_nl"
14799
14800# Find who we are. Look in the path if we contain no directory separator.
14801case $0 in #((
14802 *[\\/]* ) as_myself=$0 ;;
14803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804for as_dir in $PATH
14805do
14806 IFS=$as_save_IFS
14807 test -z "$as_dir" && as_dir=.
14808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14809 done
14810IFS=$as_save_IFS
14811
14812 ;;
14813esac
14814# We did not find ourselves, most probably we were run as `sh COMMAND'
14815# in which case we are not to be found in the path.
14816if test "x$as_myself" = x; then
14817 as_myself=$0
14818fi
14819if test ! -f "$as_myself"; then
14820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14821 exit 1
14822fi
13b2be9c 14823
81ecdfbb
RW
14824# Unset variables that we do not need and which cause bugs (e.g. in
14825# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14826# suppresses any "Segmentation fault" message there. '((' could
14827# trigger a bug in pdksh 5.2.14.
14828for as_var in BASH_ENV ENV MAIL MAILPATH
14829do eval test x\${$as_var+set} = xset \
14830 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14831done
13b2be9c
DJ
14832PS1='$ '
14833PS2='> '
14834PS4='+ '
14835
14836# NLS nuisances.
81ecdfbb
RW
14837LC_ALL=C
14838export LC_ALL
14839LANGUAGE=C
14840export LANGUAGE
14841
14842# CDPATH.
14843(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14844
14845
14846# as_fn_error ERROR [LINENO LOG_FD]
14847# ---------------------------------
14848# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14849# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14850# script with status $?, using 1 if that was 0.
14851as_fn_error ()
14852{
14853 as_status=$?; test $as_status -eq 0 && as_status=1
14854 if test "$3"; then
14855 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13b2be9c 14857 fi
81ecdfbb
RW
14858 $as_echo "$as_me: error: $1" >&2
14859 as_fn_exit $as_status
14860} # as_fn_error
14861
14862
14863# as_fn_set_status STATUS
14864# -----------------------
14865# Set $? to STATUS, without forking.
14866as_fn_set_status ()
14867{
14868 return $1
14869} # as_fn_set_status
14870
14871# as_fn_exit STATUS
14872# -----------------
14873# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14874as_fn_exit ()
14875{
14876 set +e
14877 as_fn_set_status $1
14878 exit $1
14879} # as_fn_exit
14880
14881# as_fn_unset VAR
14882# ---------------
14883# Portably unset VAR.
14884as_fn_unset ()
14885{
14886 { eval $1=; unset $1;}
14887}
14888as_unset=as_fn_unset
14889# as_fn_append VAR VALUE
14890# ----------------------
14891# Append the text in VALUE to the end of the definition contained in VAR. Take
14892# advantage of any shell optimizations that allow amortized linear growth over
14893# repeated appends, instead of the typical quadratic growth present in naive
14894# implementations.
14895if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14896 eval 'as_fn_append ()
14897 {
14898 eval $1+=\$2
14899 }'
14900else
14901 as_fn_append ()
14902 {
14903 eval $1=\$$1\$2
14904 }
14905fi # as_fn_append
14906
14907# as_fn_arith ARG...
14908# ------------------
14909# Perform arithmetic evaluation on the ARGs, and store the result in the
14910# global $as_val. Take advantage of shells that can avoid forks. The arguments
14911# must be portable across $(()) and expr.
14912if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14913 eval 'as_fn_arith ()
14914 {
14915 as_val=$(( $* ))
14916 }'
14917else
14918 as_fn_arith ()
14919 {
14920 as_val=`expr "$@" || test $? -eq 1`
14921 }
14922fi # as_fn_arith
14923
13b2be9c 14924
81ecdfbb
RW
14925if expr a : '\(a\)' >/dev/null 2>&1 &&
14926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
14927 as_expr=expr
14928else
14929 as_expr=false
14930fi
14931
81ecdfbb 14932if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
14933 as_basename=basename
14934else
14935 as_basename=false
14936fi
14937
81ecdfbb
RW
14938if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14939 as_dirname=dirname
14940else
14941 as_dirname=false
14942fi
13b2be9c 14943
81ecdfbb 14944as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
14945$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14946 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14948$as_echo X/"$0" |
14949 sed '/^.*\/\([^/][^/]*\)\/*$/{
14950 s//\1/
14951 q
14952 }
14953 /^X\/\(\/\/\)$/{
14954 s//\1/
14955 q
14956 }
14957 /^X\/\(\/\).*/{
14958 s//\1/
14959 q
14960 }
14961 s/.*/./; q'`
13b2be9c 14962
13b2be9c
DJ
14963# Avoid depending upon Character Ranges.
14964as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14965as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14966as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14967as_cr_digits='0123456789'
14968as_cr_alnum=$as_cr_Letters$as_cr_digits
14969
81ecdfbb
RW
14970ECHO_C= ECHO_N= ECHO_T=
14971case `echo -n x` in #(((((
14972-n*)
14973 case `echo 'xy\c'` in
14974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14975 xy) ECHO_C='\c';;
14976 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14977 ECHO_T=' ';;
14978 esac;;
14979*)
14980 ECHO_N='-n';;
13b2be9c 14981esac
252b5132 14982
81ecdfbb
RW
14983rm -f conf$$ conf$$.exe conf$$.file
14984if test -d conf$$.dir; then
14985 rm -f conf$$.dir/conf$$.file
252b5132 14986else
81ecdfbb
RW
14987 rm -f conf$$.dir
14988 mkdir conf$$.dir 2>/dev/null
252b5132 14989fi
81ecdfbb
RW
14990if (echo >conf$$.file) 2>/dev/null; then
14991 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 14992 as_ln_s='ln -s'
81ecdfbb
RW
14993 # ... but there are two gotchas:
14994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14996 # In both cases, we have to default to `cp -p'.
14997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14998 as_ln_s='cp -p'
14999 elif ln conf$$.file conf$$ 2>/dev/null; then
15000 as_ln_s=ln
15001 else
15002 as_ln_s='cp -p'
13b2be9c 15003 fi
13b2be9c
DJ
15004else
15005 as_ln_s='cp -p'
252b5132 15006fi
81ecdfbb
RW
15007rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15008rmdir conf$$.dir 2>/dev/null
252b5132 15009
81ecdfbb
RW
15010
15011# as_fn_mkdir_p
15012# -------------
15013# Create "$as_dir" as a directory, including parents if necessary.
15014as_fn_mkdir_p ()
15015{
15016
15017 case $as_dir in #(
15018 -*) as_dir=./$as_dir;;
15019 esac
15020 test -d "$as_dir" || eval $as_mkdir_p || {
15021 as_dirs=
15022 while :; do
15023 case $as_dir in #(
15024 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15025 *) as_qdir=$as_dir;;
15026 esac
15027 as_dirs="'$as_qdir' $as_dirs"
15028 as_dir=`$as_dirname -- "$as_dir" ||
15029$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15030 X"$as_dir" : 'X\(//\)[^/]' \| \
15031 X"$as_dir" : 'X\(//\)$' \| \
15032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15033$as_echo X"$as_dir" |
15034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15035 s//\1/
15036 q
15037 }
15038 /^X\(\/\/\)[^/].*/{
15039 s//\1/
15040 q
15041 }
15042 /^X\(\/\/\)$/{
15043 s//\1/
15044 q
15045 }
15046 /^X\(\/\).*/{
15047 s//\1/
15048 q
15049 }
15050 s/.*/./; q'`
15051 test -d "$as_dir" && break
15052 done
15053 test -z "$as_dirs" || eval "mkdir $as_dirs"
15054 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15055
15056
15057} # as_fn_mkdir_p
13b2be9c 15058if mkdir -p . 2>/dev/null; then
81ecdfbb 15059 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 15060else
ab509236 15061 test -d ./-p && rmdir ./-p
13b2be9c
DJ
15062 as_mkdir_p=false
15063fi
81ecdfbb
RW
15064
15065if test -x / >/dev/null 2>&1; then
15066 as_test_x='test -x'
15067else
15068 if ls -dL / >/dev/null 2>&1; then
15069 as_ls_L_option=L
15070 else
15071 as_ls_L_option=
15072 fi
15073 as_test_x='
15074 eval sh -c '\''
15075 if test -d "$1"; then
15076 test -d "$1/.";
15077 else
15078 case $1 in #(
15079 -*)set "./$1";;
15080 esac;
15081 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15082 ???[sx]*):;;*)false;;esac;fi
15083 '\'' sh
15084 '
15085fi
15086as_executable_p=$as_test_x
252b5132 15087
13b2be9c 15088# Sed expression to map a string onto a valid CPP name.
ab509236 15089as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15090
13b2be9c 15091# Sed expression to map a string onto a valid variable name.
ab509236 15092as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15093
d6d788bd 15094
13b2be9c 15095exec 6>&1
81ecdfbb
RW
15096## ----------------------------------- ##
15097## Main body of $CONFIG_STATUS script. ##
15098## ----------------------------------- ##
15099_ASEOF
15100test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 15101
81ecdfbb
RW
15102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15103# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 15104# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15105# values after options handling.
15106ac_log="
d8bd95ef 15107This file was extended by gas $as_me 2.26.51, which was
81ecdfbb 15108generated by GNU Autoconf 2.64. Invocation command line was
d6d788bd 15109
13b2be9c
DJ
15110 CONFIG_FILES = $CONFIG_FILES
15111 CONFIG_HEADERS = $CONFIG_HEADERS
15112 CONFIG_LINKS = $CONFIG_LINKS
15113 CONFIG_COMMANDS = $CONFIG_COMMANDS
15114 $ $0 $@
252b5132 15115
81ecdfbb
RW
15116on `(hostname || uname -n) 2>/dev/null | sed 1q`
15117"
15118
13b2be9c 15119_ACEOF
252b5132 15120
81ecdfbb
RW
15121case $ac_config_files in *"
15122"*) set x $ac_config_files; shift; ac_config_files=$*;;
15123esac
13b2be9c 15124
81ecdfbb
RW
15125case $ac_config_headers in *"
15126"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15127esac
252b5132 15128
252b5132 15129
81ecdfbb
RW
15130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15131# Files that config.status was made for.
15132config_files="$ac_config_files"
15133config_headers="$ac_config_headers"
15134config_commands="$ac_config_commands"
d6d788bd 15135
81ecdfbb 15136_ACEOF
252b5132 15137
81ecdfbb 15138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15139ac_cs_usage="\
81ecdfbb
RW
15140\`$as_me' instantiates files and other configuration actions
15141from templates according to the current configuration. Unless the files
15142and actions are specified as TAGs, all are instantiated by default.
252b5132 15143
81ecdfbb 15144Usage: $0 [OPTION]... [TAG]...
252b5132 15145
13b2be9c 15146 -h, --help print this help, then exit
81ecdfbb
RW
15147 -V, --version print version number and configuration settings, then exit
15148 -q, --quiet, --silent
15149 do not print progress messages
13b2be9c
DJ
15150 -d, --debug don't remove temporary files
15151 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15152 --file=FILE[:TEMPLATE]
15153 instantiate the configuration file FILE
15154 --header=FILE[:TEMPLATE]
15155 instantiate the configuration header FILE
252b5132 15156
13b2be9c
DJ
15157Configuration files:
15158$config_files
252b5132 15159
13b2be9c
DJ
15160Configuration headers:
15161$config_headers
252b5132 15162
13b2be9c
DJ
15163Configuration commands:
15164$config_commands
252b5132 15165
81ecdfbb 15166Report bugs to the package provider."
d6d788bd 15167
81ecdfbb
RW
15168_ACEOF
15169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15170ac_cs_version="\\
d8bd95ef 15171gas config.status 2.26.51
81ecdfbb
RW
15172configured by $0, generated by GNU Autoconf 2.64,
15173 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 15174
81ecdfbb 15175Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
15176This config.status script is free software; the Free Software Foundation
15177gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15178
15179ac_pwd='$ac_pwd'
15180srcdir='$srcdir'
15181INSTALL='$INSTALL'
15182MKDIR_P='$MKDIR_P'
15183AWK='$AWK'
15184test -n "\$AWK" || AWK=awk
13b2be9c 15185_ACEOF
d6d788bd 15186
81ecdfbb
RW
15187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15188# The default lists apply if the user does not specify any file.
13b2be9c
DJ
15189ac_need_defaults=:
15190while test $# != 0
15191do
15192 case $1 in
15193 --*=*)
81ecdfbb
RW
15194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15195 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 15196 ac_shift=:
c8615825 15197 ;;
81ecdfbb 15198 *)
13b2be9c
DJ
15199 ac_option=$1
15200 ac_optarg=$2
15201 ac_shift=shift
c8615825 15202 ;;
13b2be9c 15203 esac
252b5132 15204
13b2be9c
DJ
15205 case $ac_option in
15206 # Handling of the options.
13b2be9c
DJ
15207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15208 ac_cs_recheck=: ;;
81ecdfbb
RW
15209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15210 $as_echo "$ac_cs_version"; exit ;;
15211 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
15212 debug=: ;;
15213 --file | --fil | --fi | --f )
15214 $ac_shift
81ecdfbb
RW
15215 case $ac_optarg in
15216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15217 esac
15218 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
15219 ac_need_defaults=false;;
15220 --header | --heade | --head | --hea )
15221 $ac_shift
81ecdfbb
RW
15222 case $ac_optarg in
15223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15224 esac
15225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 15226 ac_need_defaults=false;;
81ecdfbb
RW
15227 --he | --h)
15228 # Conflict between --help and --header
15229 as_fn_error "ambiguous option: \`$1'
15230Try \`$0 --help' for more information.";;
15231 --help | --hel | -h )
15232 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
15233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15235 ac_cs_silent=: ;;
c8615825 15236
13b2be9c 15237 # This is an error.
81ecdfbb
RW
15238 -*) as_fn_error "unrecognized option: \`$1'
15239Try \`$0 --help' for more information." ;;
252b5132 15240
81ecdfbb
RW
15241 *) as_fn_append ac_config_targets " $1"
15242 ac_need_defaults=false ;;
252b5132 15243
13b2be9c
DJ
15244 esac
15245 shift
15246done
252b5132 15247
13b2be9c 15248ac_configure_extra_args=
d6d788bd 15249
13b2be9c
DJ
15250if $ac_cs_silent; then
15251 exec 6>/dev/null
15252 ac_configure_extra_args="$ac_configure_extra_args --silent"
15253fi
9b2b7d69 15254
13b2be9c 15255_ACEOF
81ecdfbb 15256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15257if \$ac_cs_recheck; then
81ecdfbb
RW
15258 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15259 shift
15260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15261 CONFIG_SHELL='$SHELL'
15262 export CONFIG_SHELL
15263 exec "\$@"
13b2be9c
DJ
15264fi
15265
15266_ACEOF
81ecdfbb
RW
15267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268exec 5>>config.log
15269{
15270 echo
15271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15272## Running $as_me. ##
15273_ASBOX
15274 $as_echo "$ac_log"
15275} >&5
13b2be9c 15276
81ecdfbb
RW
15277_ACEOF
15278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 15279#
81ecdfbb 15280# INIT-COMMANDS
9b2b7d69 15281#
13b2be9c 15282AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15283
15284
15285# The HP-UX ksh and POSIX shell print the target directory to stdout
15286# if CDPATH is set.
15287(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15288
15289sed_quote_subst='$sed_quote_subst'
15290double_quote_subst='$double_quote_subst'
15291delay_variable_subst='$delay_variable_subst'
3725885a
RW
15292macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15293macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15294enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15295enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15296pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15297enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15298SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15299ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15300host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15301host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15302host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15303build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15304build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15305build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15306SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15307Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15308GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15309EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15310FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15311LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15312NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15313LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15314max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15315ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15316exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15317lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15318lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15319lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15320reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15321reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15322OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15323deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15324file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15325AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15326AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15327STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15328RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15329old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15330old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15331old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15332lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15333CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15334CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15335compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15336GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15337lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15338lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15339lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15340lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15341objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15342MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15343lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15344lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15345lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15346lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15347lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15348need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15349DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15350NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15351LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15352OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15353OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15354libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15355shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15356extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15357archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15358enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15359export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15360whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15361compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15362old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15363old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15364archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15365archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15366module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15367module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15368with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15369allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15370no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15371hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15372hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15373hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15374hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15375hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15376hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15377hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15378hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15379inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15380link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15381fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15382always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15383export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15384exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15385include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15386prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15387file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15388variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15389need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15390need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15391version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15392runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15393shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15394shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15395libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15396library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15397soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15398install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15399postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15400postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15401finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15402finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15403hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15404sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15405sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15406hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15407enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15408enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15409enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15410old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15411striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15412
15413LTCC='$LTCC'
15414LTCFLAGS='$LTCFLAGS'
15415compiler='$compiler_DEFAULT'
15416
3725885a
RW
15417# A function that is used when there is no print builtin or printf.
15418func_fallback_echo ()
15419{
15420 eval 'cat <<_LTECHO_EOF
15421\$1
15422_LTECHO_EOF'
15423}
15424
d7040cdb 15425# Quote evaled strings.
3725885a
RW
15426for var in SHELL \
15427ECHO \
15428SED \
d7040cdb
SE
15429GREP \
15430EGREP \
15431FGREP \
15432LD \
15433NM \
15434LN_S \
15435lt_SP2NL \
15436lt_NL2SP \
15437reload_flag \
718a6fd8 15438OBJDUMP \
d7040cdb
SE
15439deplibs_check_method \
15440file_magic_cmd \
15441AR \
15442AR_FLAGS \
15443STRIP \
15444RANLIB \
15445CC \
15446CFLAGS \
15447compiler \
15448lt_cv_sys_global_symbol_pipe \
15449lt_cv_sys_global_symbol_to_cdecl \
15450lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15451lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15452lt_prog_compiler_no_builtin_flag \
df7b86aa 15453lt_prog_compiler_wl \
f2c621e4 15454lt_prog_compiler_pic \
d7040cdb
SE
15455lt_prog_compiler_static \
15456lt_cv_prog_compiler_c_o \
15457need_locks \
718a6fd8
SE
15458DSYMUTIL \
15459NMEDIT \
15460LIPO \
15461OTOOL \
15462OTOOL64 \
d7040cdb
SE
15463shrext_cmds \
15464export_dynamic_flag_spec \
15465whole_archive_flag_spec \
15466compiler_needs_object \
15467with_gnu_ld \
15468allow_undefined_flag \
15469no_undefined_flag \
15470hardcode_libdir_flag_spec \
15471hardcode_libdir_flag_spec_ld \
15472hardcode_libdir_separator \
f2c621e4 15473fix_srcfile_path \
d7040cdb
SE
15474exclude_expsyms \
15475include_expsyms \
15476file_list_spec \
15477variables_saved_for_relink \
15478libname_spec \
15479library_names_spec \
15480soname_spec \
3725885a 15481install_override_mode \
d7040cdb
SE
15482finish_eval \
15483old_striplib \
15484striplib; do
3725885a 15485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15486 *[\\\\\\\`\\"\\\$]*)
3725885a 15487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15488 ;;
15489 *)
15490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15491 ;;
15492 esac
15493done
15494
15495# Double-quote double-evaled strings.
15496for var in reload_cmds \
15497old_postinstall_cmds \
15498old_postuninstall_cmds \
15499old_archive_cmds \
15500extract_expsyms_cmds \
15501old_archive_from_new_cmds \
15502old_archive_from_expsyms_cmds \
15503archive_cmds \
15504archive_expsym_cmds \
15505module_cmds \
15506module_expsym_cmds \
15507export_symbols_cmds \
15508prelink_cmds \
15509postinstall_cmds \
15510postuninstall_cmds \
15511finish_cmds \
15512sys_lib_search_path_spec \
15513sys_lib_dlsearch_path_spec; do
3725885a 15514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15515 *[\\\\\\\`\\"\\\$]*)
3725885a 15516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15517 ;;
15518 *)
15519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15520 ;;
15521 esac
15522done
15523
d7040cdb
SE
15524ac_aux_dir='$ac_aux_dir'
15525xsi_shell='$xsi_shell'
15526lt_shell_append='$lt_shell_append'
15527
15528# See if we are running on zsh, and set the options which allow our
15529# commands through without removal of \ escapes INIT.
15530if test -n "\${ZSH_VERSION+set}" ; then
15531 setopt NO_GLOB_SUBST
15532fi
15533
15534
15535 PACKAGE='$PACKAGE'
15536 VERSION='$VERSION'
15537 TIMESTAMP='$TIMESTAMP'
15538 RM='$RM'
15539 ofile='$ofile'
15540
15541
15542
20e95c23
DJ
15543# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15544 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15545 # from automake.
15546 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15547 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15548 LINGUAS="${LINGUAS-%UNSET%}"
15549
13b2be9c
DJ
15550target_cpu_type=${target_cpu_type}
15551 cgen_cpu_prefix=${cgen_cpu_prefix}
15552 obj_format=${obj_format}
15553 te_file=${te_file}
15554
15555_ACEOF
15556
81ecdfbb 15557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15558
81ecdfbb 15559# Handling of arguments.
13b2be9c 15560for ac_config_target in $ac_config_targets
9b2b7d69 15561do
81ecdfbb
RW
15562 case $ac_config_target in
15563 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15564 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15565 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15566 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15567 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15568 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15570 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15571 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15572 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15573
15574 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
15575 esac
15576done
15577
81ecdfbb 15578
13b2be9c
DJ
15579# If the user did not use the arguments to specify the items to instantiate,
15580# then the envvar interface is used. Set only those that are not.
15581# We use the long form for the default assignment because of an extremely
15582# bizarre bug on SunOS 4.1.3.
15583if $ac_need_defaults; then
15584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15587fi
15588
15589# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15590# simply because there is no reason against having it here, and in addition,
13b2be9c 15591# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15592# Hook for its removal unless debugging.
15593# Note that there is a small window in which the directory will not be cleaned:
15594# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
15595$debug ||
15596{
81ecdfbb
RW
15597 tmp=
15598 trap 'exit_status=$?
15599 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15600' 0
15601 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 15602}
13b2be9c 15603# Create a (secure) tmp directory for tmp files.
9b2b7d69 15604
13b2be9c 15605{
81ecdfbb 15606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13b2be9c
DJ
15607 test -n "$tmp" && test -d "$tmp"
15608} ||
15609{
81ecdfbb
RW
15610 tmp=./conf$$-$RANDOM
15611 (umask 077 && mkdir "$tmp")
15612} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15613
15614# Set up the scripts for CONFIG_FILES section.
15615# No need to generate them if there are no CONFIG_FILES.
15616# This happens for instance with `./config.status config.h'.
15617if test -n "$CONFIG_FILES"; then
15618
15619
15620ac_cr=`echo X | tr X '\015'`
15621# On cygwin, bash can eat \r inside `` if the user requested igncr.
15622# But we know of no other shell where ac_cr would be empty at this
15623# point, so we can use a bashism as a fallback.
15624if test "x$ac_cr" = x; then
15625 eval ac_cr=\$\'\\r\'
15626fi
15627ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15628if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15629 ac_cs_awk_cr='\r'
15630else
15631 ac_cs_awk_cr=$ac_cr
15632fi
15633
15634echo 'BEGIN {' >"$tmp/subs1.awk" &&
15635_ACEOF
15636
15637
15638{
15639 echo "cat >conf$$subs.awk <<_ACEOF" &&
15640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15641 echo "_ACEOF"
15642} >conf$$subs.sh ||
15643 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15644ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15645ac_delim='%!_!# '
15646for ac_last_try in false false false false false :; do
15647 . ./conf$$subs.sh ||
15648 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15649
15650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15651 if test $ac_delim_n = $ac_delim_num; then
15652 break
15653 elif $ac_last_try; then
15654 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15655 else
15656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15657 fi
15658done
15659rm -f conf$$subs.sh
15660
15661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15662cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15663_ACEOF
15664sed -n '
15665h
15666s/^/S["/; s/!.*/"]=/
15667p
15668g
15669s/^[^!]*!//
15670:repl
15671t repl
15672s/'"$ac_delim"'$//
15673t delim
15674:nl
15675h
15676s/\(.\{148\}\).*/\1/
15677t more1
15678s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15679p
15680n
15681b repl
15682:more1
15683s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15684p
15685g
15686s/.\{148\}//
15687t nl
15688:delim
15689h
15690s/\(.\{148\}\).*/\1/
15691t more2
15692s/["\\]/\\&/g; s/^/"/; s/$/"/
15693p
15694b
15695:more2
15696s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15697p
15698g
15699s/.\{148\}//
15700t delim
15701' <conf$$subs.awk | sed '
15702/^[^""]/{
15703 N
15704 s/\n//
15705}
15706' >>$CONFIG_STATUS || ac_write_fail=1
15707rm -f conf$$subs.awk
15708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709_ACAWK
15710cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15711 for (key in S) S_is_set[key] = 1
15712 FS = "\a"
15713
15714}
13b2be9c 15715{
81ecdfbb
RW
15716 line = $ 0
15717 nfields = split(line, field, "@")
15718 substed = 0
15719 len = length(field[1])
15720 for (i = 2; i < nfields; i++) {
15721 key = field[i]
15722 keylen = length(key)
15723 if (S_is_set[key]) {
15724 value = S[key]
15725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15726 len += length(value) + length(field[++i])
15727 substed = 1
15728 } else
15729 len += 1 + keylen
15730 }
15731
15732 print line
13b2be9c 15733}
9b2b7d69 15734
81ecdfbb
RW
15735_ACAWK
15736_ACEOF
15737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15738if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15740else
15741 cat
15742fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15743 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
15744_ACEOF
15745
81ecdfbb
RW
15746# VPATH may cause trouble with some makes, so we remove $(srcdir),
15747# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15748# trailing colons and then remove the whole line if VPATH becomes empty
15749# (actually we leave an empty line to preserve line numbers).
15750if test "x$srcdir" = x.; then
15751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15752s/:*\$(srcdir):*/:/
15753s/:*\${srcdir}:*/:/
15754s/:*@srcdir@:*/:/
15755s/^\([^=]*=[ ]*\):*/\1/
15756s/:*$//
15757s/^[^=]*=[ ]*$//
15758}'
15759fi
15760
15761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762fi # test -n "$CONFIG_FILES"
13b2be9c 15763
81ecdfbb
RW
15764# Set up the scripts for CONFIG_HEADERS section.
15765# No need to generate them if there are no CONFIG_HEADERS.
15766# This happens for instance with `./config.status Makefile'.
15767if test -n "$CONFIG_HEADERS"; then
15768cat >"$tmp/defines.awk" <<\_ACAWK ||
15769BEGIN {
15770_ACEOF
13b2be9c 15771
81ecdfbb
RW
15772# Transform confdefs.h into an awk script `defines.awk', embedded as
15773# here-document in config.status, that substitutes the proper values into
15774# config.h.in to produce config.h.
9b2b7d69 15775
81ecdfbb
RW
15776# Create a delimiter string that does not exist in confdefs.h, to ease
15777# handling of long lines.
15778ac_delim='%!_!# '
15779for ac_last_try in false false :; do
15780 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15781 if test -z "$ac_t"; then
15782 break
15783 elif $ac_last_try; then
15784 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15785 else
15786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15787 fi
15788done
15789
15790# For the awk script, D is an array of macro values keyed by name,
15791# likewise P contains macro parameters if any. Preserve backslash
15792# newline sequences.
15793
15794ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15795sed -n '
15796s/.\{148\}/&'"$ac_delim"'/g
15797t rset
15798:rset
15799s/^[ ]*#[ ]*define[ ][ ]*/ /
15800t def
15801d
15802:def
15803s/\\$//
15804t bsnl
15805s/["\\]/\\&/g
15806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15807D["\1"]=" \3"/p
15808s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15809d
15810:bsnl
15811s/["\\]/\\&/g
15812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15813D["\1"]=" \3\\\\\\n"\\/p
15814t cont
15815s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15816t cont
15817d
15818:cont
15819n
15820s/.\{148\}/&'"$ac_delim"'/g
15821t clear
15822:clear
15823s/\\$//
15824t bsnlc
15825s/["\\]/\\&/g; s/^/"/; s/$/"/p
15826d
15827:bsnlc
15828s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15829b cont
15830' <confdefs.h | sed '
15831s/'"$ac_delim"'/"\\\
15832"/g' >>$CONFIG_STATUS || ac_write_fail=1
15833
15834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15835 for (key in D) D_is_set[key] = 1
15836 FS = "\a"
15837}
15838/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15839 line = \$ 0
15840 split(line, arg, " ")
15841 if (arg[1] == "#") {
15842 defundef = arg[2]
15843 mac1 = arg[3]
15844 } else {
15845 defundef = substr(arg[1], 2)
15846 mac1 = arg[2]
15847 }
15848 split(mac1, mac2, "(") #)
15849 macro = mac2[1]
15850 prefix = substr(line, 1, index(line, defundef) - 1)
15851 if (D_is_set[macro]) {
15852 # Preserve the white space surrounding the "#".
15853 print prefix "define", macro P[macro] D[macro]
15854 next
15855 } else {
15856 # Replace #undef with comments. This is necessary, for example,
15857 # in the case of _POSIX_SOURCE, which is predefined and required
15858 # on some systems where configure will not decide to define it.
15859 if (defundef == "undef") {
15860 print "/*", prefix defundef, macro, "*/"
15861 next
15862 }
15863 }
15864}
15865{ print }
15866_ACAWK
13b2be9c 15867_ACEOF
81ecdfbb
RW
15868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15869 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15870fi # test -n "$CONFIG_HEADERS"
13b2be9c 15871
81ecdfbb
RW
15872
15873eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15874shift
15875for ac_tag
15876do
15877 case $ac_tag in
15878 :[FHLC]) ac_mode=$ac_tag; continue;;
15879 esac
15880 case $ac_mode$ac_tag in
15881 :[FHL]*:*);;
15882 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15883 :[FH]-) ac_tag=-:-;;
15884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15885 esac
15886 ac_save_IFS=$IFS
15887 IFS=:
15888 set x $ac_tag
15889 IFS=$ac_save_IFS
15890 shift
15891 ac_file=$1
15892 shift
15893
15894 case $ac_mode in
15895 :L) ac_source=$1;;
15896 :[FH])
15897 ac_file_inputs=
15898 for ac_f
15899 do
15900 case $ac_f in
15901 -) ac_f="$tmp/stdin";;
15902 *) # Look for the file first in the build tree, then in the source tree
15903 # (if the path is not absolute). The absolute path cannot be DOS-style,
15904 # because $ac_f cannot contain `:'.
15905 test -f "$ac_f" ||
15906 case $ac_f in
15907 [\\/$]*) false;;
15908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15909 esac ||
15910 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15911 esac
15912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15913 as_fn_append ac_file_inputs " '$ac_f'"
15914 done
15915
15916 # Let's still pretend it is `configure' which instantiates (i.e., don't
15917 # use $as_me), people would be surprised to read:
15918 # /* config.h. Generated by config.status. */
15919 configure_input='Generated from '`
15920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15921 `' by configure.'
15922 if test x"$ac_file" != x-; then
15923 configure_input="$ac_file. $configure_input"
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15925$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 15926 fi
81ecdfbb
RW
15927 # Neutralize special characters interpreted by sed in replacement strings.
15928 case $configure_input in #(
15929 *\&* | *\|* | *\\* )
15930 ac_sed_conf_input=`$as_echo "$configure_input" |
15931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15932 *) ac_sed_conf_input=$configure_input;;
15933 esac
252b5132 15934
81ecdfbb
RW
15935 case $ac_tag in
15936 *:-:* | *:-) cat >"$tmp/stdin" \
15937 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15938 esac
15939 ;;
252b5132 15940 esac
9b2b7d69 15941
81ecdfbb 15942 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 15943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15944 X"$ac_file" : 'X\(//\)[^/]' \| \
15945 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15947$as_echo X"$ac_file" |
15948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15949 s//\1/
15950 q
15951 }
15952 /^X\(\/\/\)[^/].*/{
15953 s//\1/
15954 q
15955 }
15956 /^X\(\/\/\)$/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\).*/{
15961 s//\1/
15962 q
15963 }
15964 s/.*/./; q'`
15965 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
15966 ac_builddir=.
15967
81ecdfbb
RW
15968case "$ac_dir" in
15969.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15970*)
15971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15972 # A ".." for each directory in $ac_dir_suffix.
15973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15974 case $ac_top_builddir_sub in
15975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15977 esac ;;
15978esac
15979ac_abs_top_builddir=$ac_pwd
15980ac_abs_builddir=$ac_pwd$ac_dir_suffix
15981# for backward compatibility:
15982ac_top_builddir=$ac_top_build_prefix
9b2b7d69 15983
13b2be9c 15984case $srcdir in
81ecdfbb 15985 .) # We are building in place.
13b2be9c 15986 ac_srcdir=.
81ecdfbb
RW
15987 ac_top_srcdir=$ac_top_builddir_sub
15988 ac_abs_top_srcdir=$ac_pwd ;;
15989 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 15990 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15991 ac_top_srcdir=$srcdir
15992 ac_abs_top_srcdir=$srcdir ;;
15993 *) # Relative name.
15994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15995 ac_top_srcdir=$ac_top_build_prefix$srcdir
15996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 15997esac
81ecdfbb 15998ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 15999
252b5132 16000
81ecdfbb
RW
16001 case $ac_mode in
16002 :F)
16003 #
16004 # CONFIG_FILE
16005 #
9b2b7d69 16006
13b2be9c
DJ
16007 case $INSTALL in
16008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
16009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16010 esac
16011 ac_MKDIR_P=$MKDIR_P
16012 case $MKDIR_P in
16013 [\\/$]* | ?:[\\/]* ) ;;
16014 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 16015 esac
81ecdfbb 16016_ACEOF
9b2b7d69 16017
81ecdfbb
RW
16018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019# If the template does not know about datarootdir, expand it.
16020# FIXME: This hack should be removed a few years after 2.60.
16021ac_datarootdir_hack=; ac_datarootdir_seen=
16022ac_sed_dataroot='
16023/datarootdir/ {
16024 p
16025 q
16026}
16027/@datadir@/p
16028/@docdir@/p
16029/@infodir@/p
16030/@localedir@/p
16031/@mandir@/p'
16032case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16033*datarootdir*) ac_datarootdir_seen=yes;;
16034*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16036$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16037_ACEOF
16038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16039 ac_datarootdir_hack='
16040 s&@datadir@&$datadir&g
16041 s&@docdir@&$docdir&g
16042 s&@infodir@&$infodir&g
16043 s&@localedir@&$localedir&g
16044 s&@mandir@&$mandir&g
16045 s&\\\${datarootdir}&$datarootdir&g' ;;
16046esac
13b2be9c 16047_ACEOF
81ecdfbb
RW
16048
16049# Neutralize VPATH when `$srcdir' = `.'.
16050# Shell code in configure.ac might set extrasub.
16051# FIXME: do we really want to maintain this feature?
16052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16053ac_sed_extra="$ac_vpsub
13b2be9c
DJ
16054$extrasub
16055_ACEOF
81ecdfbb 16056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
16057:t
16058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16059s|@configure_input@|$ac_sed_conf_input|;t t
16060s&@top_builddir@&$ac_top_builddir_sub&;t t
16061s&@top_build_prefix@&$ac_top_build_prefix&;t t
16062s&@srcdir@&$ac_srcdir&;t t
16063s&@abs_srcdir@&$ac_abs_srcdir&;t t
16064s&@top_srcdir@&$ac_top_srcdir&;t t
16065s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16066s&@builddir@&$ac_builddir&;t t
16067s&@abs_builddir@&$ac_abs_builddir&;t t
16068s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16069s&@INSTALL@&$ac_INSTALL&;t t
16070s&@MKDIR_P@&$ac_MKDIR_P&;t t
16071$ac_datarootdir_hack
16072"
16073eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16074 || as_fn_error "could not create $ac_file" "$LINENO" 5
16075
16076test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16077 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16080which seems to be undefined. Please make sure it is defined." >&5
16081$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16082which seems to be undefined. Please make sure it is defined." >&2;}
16083
16084 rm -f "$tmp/stdin"
13b2be9c 16085 case $ac_file in
81ecdfbb
RW
16086 -) cat "$tmp/out" && rm -f "$tmp/out";;
16087 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16088 esac \
16089 || as_fn_error "could not create $ac_file" "$LINENO" 5
16090 ;;
16091 :H)
16092 #
16093 # CONFIG_HEADER
16094 #
13b2be9c 16095 if test x"$ac_file" != x-; then
81ecdfbb
RW
16096 {
16097 $as_echo "/* $configure_input */" \
16098 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16099 } >"$tmp/config.h" \
16100 || as_fn_error "could not create $ac_file" "$LINENO" 5
16101 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16103$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 16104 else
81ecdfbb
RW
16105 rm -f "$ac_file"
16106 mv "$tmp/config.h" "$ac_file" \
16107 || as_fn_error "could not create $ac_file" "$LINENO" 5
9b2b7d69 16108 fi
13b2be9c 16109 else
81ecdfbb
RW
16110 $as_echo "/* $configure_input */" \
16111 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16112 || as_fn_error "could not create -" "$LINENO" 5
9b2b7d69 16113 fi
81ecdfbb
RW
16114# Compute "$ac_file"'s index in $config_headers.
16115_am_arg="$ac_file"
13b2be9c
DJ
16116_am_stamp_count=1
16117for _am_header in $config_headers :; do
16118 case $_am_header in
81ecdfbb 16119 $_am_arg | $_am_arg:* )
13b2be9c
DJ
16120 break ;;
16121 * )
16122 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16123 esac
16124done
81ecdfbb
RW
16125echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16126$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16127 X"$_am_arg" : 'X\(//\)[^/]' \| \
16128 X"$_am_arg" : 'X\(//\)$' \| \
16129 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16130$as_echo X"$_am_arg" |
16131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16132 s//\1/
16133 q
16134 }
16135 /^X\(\/\/\)[^/].*/{
16136 s//\1/
16137 q
16138 }
16139 /^X\(\/\/\)$/{
16140 s//\1/
16141 q
16142 }
16143 /^X\(\/\).*/{
16144 s//\1/
16145 q
16146 }
16147 s/.*/./; q'`/stamp-h$_am_stamp_count
16148 ;;
ab509236 16149
81ecdfbb
RW
16150 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16151$as_echo "$as_me: executing $ac_file commands" >&6;}
16152 ;;
16153 esac
13b2be9c
DJ
16154
16155
81ecdfbb
RW
16156 case $ac_file$ac_mode in
16157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16158 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16159 # are listed without --file. Let's play safe and only enable the eval
16160 # if we detect the quoting.
16161 case $CONFIG_FILES in
16162 *\'*) eval set x "$CONFIG_FILES" ;;
16163 *) set x $CONFIG_FILES ;;
16164 esac
16165 shift
16166 for mf
16167 do
16168 # Strip MF so we end up with the name of the file.
16169 mf=`echo "$mf" | sed -e 's/:.*$//'`
16170 # Check whether this is an Automake generated Makefile or not.
16171 # We used to match only the files named `Makefile.in', but
16172 # some people rename them; so instead we look at the file content.
16173 # Grep'ing the first line is not enough: some people post-process
16174 # each Makefile.in and add a new line on top of each file to say so.
16175 # Grep'ing the whole file is not good either: AIX grep has a line
16176 # limit of 2048, but all sed's we know have understand at least 4000.
16177 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16178 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 16179$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16180 X"$mf" : 'X\(//\)[^/]' \| \
16181 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16182 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16183$as_echo X"$mf" |
16184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16185 s//\1/
16186 q
16187 }
16188 /^X\(\/\/\)[^/].*/{
16189 s//\1/
16190 q
16191 }
16192 /^X\(\/\/\)$/{
16193 s//\1/
16194 q
16195 }
16196 /^X\(\/\).*/{
16197 s//\1/
16198 q
16199 }
16200 s/.*/./; q'`
16201 else
16202 continue
16203 fi
16204 # Extract the definition of DEPDIR, am__include, and am__quote
16205 # from the Makefile without running `make'.
16206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16207 test -z "$DEPDIR" && continue
16208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16209 test -z "am__include" && continue
16210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16211 # When using ansi2knr, U may be empty or an underscore; expand it
16212 U=`sed -n 's/^U = //p' < "$mf"`
16213 # Find all dependency output files, they are included files with
16214 # $(DEPDIR) in their names. We invoke sed twice because it is the
16215 # simplest approach to changing $(DEPDIR) to its actual value in the
16216 # expansion.
16217 for file in `sed -n "
16218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16220 # Make sure the directory exists.
16221 test -f "$dirpart/$file" && continue
16222 fdir=`$as_dirname -- "$file" ||
13b2be9c 16223$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16224 X"$file" : 'X\(//\)[^/]' \| \
16225 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16226 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16227$as_echo X"$file" |
16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16229 s//\1/
16230 q
16231 }
16232 /^X\(\/\/\)[^/].*/{
16233 s//\1/
16234 q
16235 }
16236 /^X\(\/\/\)$/{
16237 s//\1/
16238 q
16239 }
16240 /^X\(\/\).*/{
16241 s//\1/
16242 q
16243 }
16244 s/.*/./; q'`
16245 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16246 # echo "creating $dirpart/$file"
16247 echo '# dummy' > "$dirpart/$file"
13b2be9c 16248 done
13b2be9c 16249 done
81ecdfbb 16250}
d7040cdb 16251 ;;
81ecdfbb 16252 "libtool":C)
d7040cdb
SE
16253
16254 # See if we are running on zsh, and set the options which allow our
16255 # commands through without removal of \ escapes.
16256 if test -n "${ZSH_VERSION+set}" ; then
16257 setopt NO_GLOB_SUBST
16258 fi
16259
16260 cfgfile="${ofile}T"
16261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16262 $RM "$cfgfile"
16263
16264 cat <<_LT_EOF >> "$cfgfile"
16265#! $SHELL
16266
16267# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16268# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16269# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16270# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16271#
718a6fd8 16272# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16273# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16274# Written by Gordon Matzigkeit, 1996
d7040cdb 16275#
718a6fd8 16276# This file is part of GNU Libtool.
d7040cdb 16277#
718a6fd8
SE
16278# GNU Libtool is free software; you can redistribute it and/or
16279# modify it under the terms of the GNU General Public License as
16280# published by the Free Software Foundation; either version 2 of
16281# the License, or (at your option) any later version.
d7040cdb 16282#
718a6fd8
SE
16283# As a special exception to the GNU General Public License,
16284# if you distribute this file as part of a program or library that
16285# is built using GNU Libtool, you may include this file under the
16286# same distribution terms that you use for the rest of that program.
d7040cdb 16287#
718a6fd8
SE
16288# GNU Libtool is distributed in the hope that it will be useful,
16289# but WITHOUT ANY WARRANTY; without even the implied warranty of
16290# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16291# GNU General Public License for more details.
d7040cdb 16292#
718a6fd8
SE
16293# You should have received a copy of the GNU General Public License
16294# along with GNU Libtool; see the file COPYING. If not, a copy
16295# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16296# obtained by writing to the Free Software Foundation, Inc.,
16297# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16298
16299
16300# The names of the tagged configurations supported by this script.
16301available_tags=""
16302
16303# ### BEGIN LIBTOOL CONFIG
16304
16305# Which release of libtool.m4 was used?
16306macro_version=$macro_version
16307macro_revision=$macro_revision
16308
16309# Whether or not to build shared libraries.
16310build_libtool_libs=$enable_shared
16311
16312# Whether or not to build static libraries.
16313build_old_libs=$enable_static
16314
16315# What type of objects to build.
16316pic_mode=$pic_mode
16317
16318# Whether or not to optimize for fast installation.
16319fast_install=$enable_fast_install
16320
3725885a
RW
16321# Shell to use when invoking shell scripts.
16322SHELL=$lt_SHELL
16323
16324# An echo program that protects backslashes.
16325ECHO=$lt_ECHO
16326
d7040cdb
SE
16327# The host system.
16328host_alias=$host_alias
16329host=$host
16330host_os=$host_os
16331
16332# The build system.
16333build_alias=$build_alias
16334build=$build
16335build_os=$build_os
16336
16337# A sed program that does not truncate output.
16338SED=$lt_SED
16339
16340# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16341Xsed="\$SED -e 1s/^X//"
16342
16343# A grep program that handles long lines.
16344GREP=$lt_GREP
16345
16346# An ERE matcher.
16347EGREP=$lt_EGREP
16348
16349# A literal string matcher.
16350FGREP=$lt_FGREP
16351
16352# A BSD- or MS-compatible name lister.
16353NM=$lt_NM
16354
16355# Whether we need soft or hard links.
16356LN_S=$lt_LN_S
16357
16358# What is the maximum length of a command?
16359max_cmd_len=$max_cmd_len
16360
16361# Object file suffix (normally "o").
16362objext=$ac_objext
16363
16364# Executable file suffix (normally "").
16365exeext=$exeext
16366
16367# whether the shell understands "unset".
16368lt_unset=$lt_unset
16369
16370# turn spaces into newlines.
16371SP2NL=$lt_lt_SP2NL
16372
16373# turn newlines into spaces.
16374NL2SP=$lt_lt_NL2SP
16375
718a6fd8
SE
16376# An object symbol dumper.
16377OBJDUMP=$lt_OBJDUMP
16378
d7040cdb
SE
16379# Method to check whether dependent libraries are shared objects.
16380deplibs_check_method=$lt_deplibs_check_method
16381
f2c621e4 16382# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16383file_magic_cmd=$lt_file_magic_cmd
16384
16385# The archiver.
16386AR=$lt_AR
16387AR_FLAGS=$lt_AR_FLAGS
16388
16389# A symbol stripping program.
16390STRIP=$lt_STRIP
16391
16392# Commands used to install an old-style archive.
16393RANLIB=$lt_RANLIB
16394old_postinstall_cmds=$lt_old_postinstall_cmds
16395old_postuninstall_cmds=$lt_old_postuninstall_cmds
16396
3725885a
RW
16397# Whether to use a lock for old archive extraction.
16398lock_old_archive_extraction=$lock_old_archive_extraction
16399
d7040cdb
SE
16400# A C compiler.
16401LTCC=$lt_CC
16402
16403# LTCC compiler flags.
16404LTCFLAGS=$lt_CFLAGS
16405
16406# Take the output of nm and produce a listing of raw symbols and C names.
16407global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16408
16409# Transform the output of nm in a proper C declaration.
16410global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16411
16412# Transform the output of nm in a C name address pair.
16413global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16414
718a6fd8
SE
16415# Transform the output of nm in a C name address pair when lib prefix is needed.
16416global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16417
d7040cdb
SE
16418# The name of the directory that contains temporary libtool files.
16419objdir=$objdir
16420
d7040cdb
SE
16421# Used to examine libraries when file_magic_cmd begins with "file".
16422MAGIC_CMD=$MAGIC_CMD
16423
16424# Must we lock files when doing compilation?
16425need_locks=$lt_need_locks
16426
718a6fd8
SE
16427# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16428DSYMUTIL=$lt_DSYMUTIL
16429
16430# Tool to change global to local symbols on Mac OS X.
16431NMEDIT=$lt_NMEDIT
16432
16433# Tool to manipulate fat objects and archives on Mac OS X.
16434LIPO=$lt_LIPO
16435
16436# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16437OTOOL=$lt_OTOOL
16438
16439# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16440OTOOL64=$lt_OTOOL64
16441
d7040cdb
SE
16442# Old archive suffix (normally "a").
16443libext=$libext
16444
16445# Shared library suffix (normally ".so").
16446shrext_cmds=$lt_shrext_cmds
16447
16448# The commands to extract the exported symbol list from a shared archive.
16449extract_expsyms_cmds=$lt_extract_expsyms_cmds
16450
16451# Variables whose values should be saved in libtool wrapper scripts and
16452# restored at link time.
16453variables_saved_for_relink=$lt_variables_saved_for_relink
16454
16455# Do we need the "lib" prefix for modules?
16456need_lib_prefix=$need_lib_prefix
16457
16458# Do we need a version for libraries?
16459need_version=$need_version
16460
16461# Library versioning type.
16462version_type=$version_type
16463
16464# Shared library runtime path variable.
16465runpath_var=$runpath_var
16466
16467# Shared library path variable.
16468shlibpath_var=$shlibpath_var
16469
16470# Is shlibpath searched before the hard-coded library search path?
16471shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16472
16473# Format of library name prefix.
16474libname_spec=$lt_libname_spec
16475
16476# List of archive names. First name is the real one, the rest are links.
16477# The last name is the one that the linker finds with -lNAME
16478library_names_spec=$lt_library_names_spec
16479
16480# The coded name of the library, if different from the real name.
16481soname_spec=$lt_soname_spec
16482
3725885a
RW
16483# Permission mode override for installation of shared libraries.
16484install_override_mode=$lt_install_override_mode
16485
d7040cdb
SE
16486# Command to use after installation of a shared archive.
16487postinstall_cmds=$lt_postinstall_cmds
16488
16489# Command to use after uninstallation of a shared archive.
16490postuninstall_cmds=$lt_postuninstall_cmds
16491
16492# Commands used to finish a libtool library installation in a directory.
16493finish_cmds=$lt_finish_cmds
16494
16495# As "finish_cmds", except a single script fragment to be evaled but
16496# not shown.
16497finish_eval=$lt_finish_eval
16498
16499# Whether we should hardcode library paths into libraries.
16500hardcode_into_libs=$hardcode_into_libs
16501
16502# Compile-time system search path for libraries.
16503sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16504
16505# Run-time system search path for libraries.
16506sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16507
16508# Whether dlopen is supported.
16509dlopen_support=$enable_dlopen
16510
16511# Whether dlopen of programs is supported.
16512dlopen_self=$enable_dlopen_self
16513
16514# Whether dlopen of statically linked programs is supported.
16515dlopen_self_static=$enable_dlopen_self_static
16516
16517# Commands to strip libraries.
16518old_striplib=$lt_old_striplib
16519striplib=$lt_striplib
16520
16521
16522# The linker used to build libraries.
16523LD=$lt_LD
16524
3725885a
RW
16525# How to create reloadable object files.
16526reload_flag=$lt_reload_flag
16527reload_cmds=$lt_reload_cmds
16528
d7040cdb
SE
16529# Commands used to build an old-style archive.
16530old_archive_cmds=$lt_old_archive_cmds
16531
16532# A language specific compiler.
16533CC=$lt_compiler
16534
16535# Is the compiler the GNU compiler?
16536with_gcc=$GCC
16537
16538# Compiler flag to turn off builtin functions.
16539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16540
df7b86aa
NC
16541# How to pass a linker flag through the compiler.
16542wl=$lt_lt_prog_compiler_wl
16543
f2c621e4
AS
16544# Additional compiler flags for building library objects.
16545pic_flag=$lt_lt_prog_compiler_pic
16546
d7040cdb
SE
16547# Compiler flag to prevent dynamic linking.
16548link_static_flag=$lt_lt_prog_compiler_static
16549
16550# Does compiler simultaneously support -c and -o options?
16551compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16552
16553# Whether or not to add -lc for building shared libraries.
16554build_libtool_need_lc=$archive_cmds_need_lc
16555
16556# Whether or not to disallow shared libs when runtime libs are static.
16557allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16558
16559# Compiler flag to allow reflexive dlopens.
16560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16561
16562# Compiler flag to generate shared objects directly from archives.
16563whole_archive_flag_spec=$lt_whole_archive_flag_spec
16564
16565# Whether the compiler copes with passing no objects directly.
16566compiler_needs_object=$lt_compiler_needs_object
16567
16568# Create an old-style archive from a shared archive.
16569old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16570
16571# Create a temporary old-style archive to link instead of a shared archive.
16572old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16573
16574# Commands used to build a shared archive.
16575archive_cmds=$lt_archive_cmds
16576archive_expsym_cmds=$lt_archive_expsym_cmds
16577
16578# Commands used to build a loadable module if different from building
16579# a shared archive.
16580module_cmds=$lt_module_cmds
16581module_expsym_cmds=$lt_module_expsym_cmds
16582
16583# Whether we are building with GNU ld or not.
16584with_gnu_ld=$lt_with_gnu_ld
16585
16586# Flag that allows shared libraries with undefined symbols to be built.
16587allow_undefined_flag=$lt_allow_undefined_flag
16588
16589# Flag that enforces no undefined symbols.
16590no_undefined_flag=$lt_no_undefined_flag
16591
16592# Flag to hardcode \$libdir into a binary during linking.
16593# This must work even if \$libdir does not exist
16594hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16595
16596# If ld is used when linking, flag to hardcode \$libdir into a binary
16597# during linking. This must work even if \$libdir does not exist.
16598hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16599
16600# Whether we need a single "-rpath" flag with a separated argument.
16601hardcode_libdir_separator=$lt_hardcode_libdir_separator
16602
16603# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16604# DIR into the resulting binary.
16605hardcode_direct=$hardcode_direct
16606
16607# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16608# DIR into the resulting binary and the resulting library dependency is
16609# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16610# library is relocated.
16611hardcode_direct_absolute=$hardcode_direct_absolute
16612
16613# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16614# into the resulting binary.
16615hardcode_minus_L=$hardcode_minus_L
16616
16617# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16618# into the resulting binary.
16619hardcode_shlibpath_var=$hardcode_shlibpath_var
16620
16621# Set to "yes" if building a shared library automatically hardcodes DIR
16622# into the library and all subsequent libraries and executables linked
16623# against it.
16624hardcode_automatic=$hardcode_automatic
16625
16626# Set to yes if linker adds runtime paths of dependent libraries
16627# to runtime path list.
16628inherit_rpath=$inherit_rpath
16629
16630# Whether libtool must link a program against all its dependency libraries.
16631link_all_deplibs=$link_all_deplibs
16632
f2c621e4
AS
16633# Fix the shell variable \$srcfile for the compiler.
16634fix_srcfile_path=$lt_fix_srcfile_path
16635
d7040cdb
SE
16636# Set to "yes" if exported symbols are required.
16637always_export_symbols=$always_export_symbols
16638
16639# The commands to list exported symbols.
16640export_symbols_cmds=$lt_export_symbols_cmds
16641
16642# Symbols that should not be listed in the preloaded symbols.
16643exclude_expsyms=$lt_exclude_expsyms
16644
16645# Symbols that must always be exported.
16646include_expsyms=$lt_include_expsyms
16647
16648# Commands necessary for linking programs (against libraries) with templates.
16649prelink_cmds=$lt_prelink_cmds
16650
16651# Specify filename containing input files.
16652file_list_spec=$lt_file_list_spec
16653
16654# How to hardcode a shared library path into an executable.
16655hardcode_action=$hardcode_action
16656
16657# ### END LIBTOOL CONFIG
16658
16659_LT_EOF
16660
16661 case $host_os in
16662 aix3*)
16663 cat <<\_LT_EOF >> "$cfgfile"
16664# AIX sometimes has problems with the GCC collect2 program. For some
16665# reason, if we set the COLLECT_NAMES environment variable, the problems
16666# vanish in a puff of smoke.
16667if test "X${COLLECT_NAMES+set}" != Xset; then
16668 COLLECT_NAMES=
16669 export COLLECT_NAMES
16670fi
16671_LT_EOF
16672 ;;
16673 esac
16674
16675
16676ltmain="$ac_aux_dir/ltmain.sh"
16677
16678
16679 # We use sed instead of cat because bash on DJGPP gets confused if
16680 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16681 # text mode, it properly converts lines to CR/LF. This bash problem
16682 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16683 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16684 || (rm -f "$cfgfile"; exit 1)
16685
16686 case $xsi_shell in
16687 yes)
16688 cat << \_LT_EOF >> "$cfgfile"
16689
16690# func_dirname file append nondir_replacement
16691# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16692# otherwise set result to NONDIR_REPLACEMENT.
16693func_dirname ()
16694{
16695 case ${1} in
16696 */*) func_dirname_result="${1%/*}${2}" ;;
16697 * ) func_dirname_result="${3}" ;;
16698 esac
16699}
16700
16701# func_basename file
16702func_basename ()
16703{
16704 func_basename_result="${1##*/}"
16705}
16706
16707# func_dirname_and_basename file append nondir_replacement
16708# perform func_basename and func_dirname in a single function
16709# call:
16710# dirname: Compute the dirname of FILE. If nonempty,
16711# add APPEND to the result, otherwise set result
16712# to NONDIR_REPLACEMENT.
16713# value returned in "$func_dirname_result"
16714# basename: Compute filename of FILE.
16715# value retuned in "$func_basename_result"
16716# Implementation must be kept synchronized with func_dirname
16717# and func_basename. For efficiency, we do not delegate to
16718# those functions but instead duplicate the functionality here.
16719func_dirname_and_basename ()
16720{
16721 case ${1} in
16722 */*) func_dirname_result="${1%/*}${2}" ;;
16723 * ) func_dirname_result="${3}" ;;
16724 esac
16725 func_basename_result="${1##*/}"
16726}
16727
16728# func_stripname prefix suffix name
16729# strip PREFIX and SUFFIX off of NAME.
16730# PREFIX and SUFFIX must not contain globbing or regex special
16731# characters, hashes, percent signs, but SUFFIX may contain a leading
16732# dot (in which case that matches only a dot).
16733func_stripname ()
16734{
16735 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16736 # positional parameters, so assign one to ordinary parameter first.
16737 func_stripname_result=${3}
16738 func_stripname_result=${func_stripname_result#"${1}"}
16739 func_stripname_result=${func_stripname_result%"${2}"}
16740}
16741
16742# func_opt_split
16743func_opt_split ()
16744{
16745 func_opt_split_opt=${1%%=*}
16746 func_opt_split_arg=${1#*=}
16747}
16748
16749# func_lo2o object
16750func_lo2o ()
16751{
16752 case ${1} in
16753 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16754 *) func_lo2o_result=${1} ;;
16755 esac
16756}
16757
16758# func_xform libobj-or-source
16759func_xform ()
16760{
16761 func_xform_result=${1%.*}.lo
16762}
16763
16764# func_arith arithmetic-term...
16765func_arith ()
16766{
16767 func_arith_result=$(( $* ))
16768}
16769
16770# func_len string
16771# STRING may not start with a hyphen.
16772func_len ()
16773{
16774 func_len_result=${#1}
16775}
16776
16777_LT_EOF
16778 ;;
16779 *) # Bourne compatible functions.
16780 cat << \_LT_EOF >> "$cfgfile"
16781
16782# func_dirname file append nondir_replacement
16783# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16784# otherwise set result to NONDIR_REPLACEMENT.
16785func_dirname ()
16786{
16787 # Extract subdirectory from the argument.
16788 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16789 if test "X$func_dirname_result" = "X${1}"; then
16790 func_dirname_result="${3}"
16791 else
16792 func_dirname_result="$func_dirname_result${2}"
16793 fi
16794}
16795
16796# func_basename file
16797func_basename ()
16798{
16799 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16800}
16801
16802
16803# func_stripname prefix suffix name
16804# strip PREFIX and SUFFIX off of NAME.
16805# PREFIX and SUFFIX must not contain globbing or regex special
16806# characters, hashes, percent signs, but SUFFIX may contain a leading
16807# dot (in which case that matches only a dot).
16808# func_strip_suffix prefix name
16809func_stripname ()
16810{
16811 case ${2} in
16812 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16813 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16814 esac
16815}
16816
16817# sed scripts:
16818my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16819my_sed_long_arg='1s/^-[^=]*=//'
16820
16821# func_opt_split
16822func_opt_split ()
16823{
16824 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16825 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16826}
16827
16828# func_lo2o object
16829func_lo2o ()
16830{
16831 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16832}
16833
16834# func_xform libobj-or-source
16835func_xform ()
16836{
16837 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16838}
16839
16840# func_arith arithmetic-term...
16841func_arith ()
16842{
16843 func_arith_result=`expr "$@"`
16844}
16845
16846# func_len string
16847# STRING may not start with a hyphen.
16848func_len ()
16849{
16850 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16851}
16852
16853_LT_EOF
16854esac
16855
16856case $lt_shell_append in
16857 yes)
16858 cat << \_LT_EOF >> "$cfgfile"
16859
16860# func_append var value
16861# Append VALUE to the end of shell variable VAR.
16862func_append ()
16863{
16864 eval "$1+=\$2"
16865}
16866_LT_EOF
16867 ;;
16868 *)
16869 cat << \_LT_EOF >> "$cfgfile"
16870
16871# func_append var value
16872# Append VALUE to the end of shell variable VAR.
16873func_append ()
16874{
16875 eval "$1=\$$1\$2"
16876}
16877
16878_LT_EOF
16879 ;;
16880 esac
16881
16882
16883 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16884 || (rm -f "$cfgfile"; exit 1)
16885
16886 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
16887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16888 chmod +x "$ofile"
16889
13b2be9c 16890 ;;
81ecdfbb 16891 "default-1":C)
20e95c23
DJ
16892 for ac_file in $CONFIG_FILES; do
16893 # Support "outfile[:infile[:infile...]]"
16894 case "$ac_file" in
16895 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16896 esac
16897 # PO directories have a Makefile.in generated from Makefile.in.in.
16898 case "$ac_file" in */Makefile.in)
16899 # Adjust a relative srcdir.
16900 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 16901 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
16902 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16903 # In autoconf-2.13 it is called $ac_given_srcdir.
16904 # In autoconf-2.50 it is called $srcdir.
16905 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16906 case "$ac_given_srcdir" in
16907 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16908 /*) top_srcdir="$ac_given_srcdir" ;;
16909 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16910 esac
16911 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16912 rm -f "$ac_dir/POTFILES"
16913 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16914 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16915 POMAKEFILEDEPS="POTFILES.in"
16916 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16917 # on $ac_dir but don't depend on user-specified configuration
16918 # parameters.
16919 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16920 # The LINGUAS file contains the set of available languages.
16921 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 16922 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
16923 fi
16924 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16925 # Hide the ALL_LINGUAS assigment from automake.
16926 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16927 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16928 else
37a42ee9 16929 # The set of available languages was given in configure.ac.
20e95c23
DJ
16930 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16931 fi
16932 case "$ac_given_srcdir" in
16933 .) srcdirpre= ;;
16934 *) srcdirpre='$(srcdir)/' ;;
16935 esac
16936 POFILES=
16937 GMOFILES=
16938 UPDATEPOFILES=
16939 DUMMYPOFILES=
16940 for lang in $ALL_LINGUAS; do
16941 POFILES="$POFILES $srcdirpre$lang.po"
16942 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16943 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16944 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16945 done
16946 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16947 # environment variable.
16948 INST_LINGUAS=
16949 if test -n "$ALL_LINGUAS"; then
16950 for presentlang in $ALL_LINGUAS; do
16951 useit=no
16952 if test "%UNSET%" != "$LINGUAS"; then
16953 desiredlanguages="$LINGUAS"
16954 else
16955 desiredlanguages="$ALL_LINGUAS"
16956 fi
16957 for desiredlang in $desiredlanguages; do
16958 # Use the presentlang catalog if desiredlang is
16959 # a. equal to presentlang, or
16960 # b. a variant of presentlang (because in this case,
16961 # presentlang can be used as a fallback for messages
16962 # which are not translated in the desiredlang catalog).
16963 case "$desiredlang" in
16964 "$presentlang"*) useit=yes;;
16965 esac
16966 done
16967 if test $useit = yes; then
16968 INST_LINGUAS="$INST_LINGUAS $presentlang"
16969 fi
16970 done
16971 fi
16972 CATALOGS=
16973 if test -n "$INST_LINGUAS"; then
16974 for lang in $INST_LINGUAS; do
16975 CATALOGS="$CATALOGS $lang.gmo"
16976 done
16977 fi
16978 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16979 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"
16980 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16981 if test -f "$f"; then
16982 case "$f" in
16983 *.orig | *.bak | *~) ;;
16984 *) cat "$f" >> "$ac_dir/Makefile" ;;
16985 esac
16986 fi
16987 done
16988 fi
16989 ;;
16990 esac
16991 done ;;
81ecdfbb 16992 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
16993 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16994 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16995 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16996 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16997 if test "x$cgen_cpu_prefix" != x ; then
16998 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16999 fi ;;
81ecdfbb 17000
13b2be9c 17001 esac
81ecdfbb 17002done # for ac_tag
13b2be9c 17003
13b2be9c 17004
81ecdfbb 17005as_fn_exit 0
13b2be9c 17006_ACEOF
13b2be9c
DJ
17007ac_clean_files=$ac_clean_files_save
17008
81ecdfbb
RW
17009test $ac_write_fail = 0 ||
17010 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17011
13b2be9c
DJ
17012
17013# configure is writing to config.log, and then calls config.status.
17014# config.status does its own redirection, appending to config.log.
17015# Unfortunately, on DOS this fails, as config.log is still kept open
17016# by configure, so config.status won't be able to write to it; its
17017# output is simply discarded. So we exec the FD to /dev/null,
17018# effectively closing config.log, so it can be properly (re)opened and
17019# appended to by config.status. When coming back to configure, we
17020# need to make the FD available again.
17021if test "$no_create" != yes; then
17022 ac_cs_success=:
17023 ac_config_status_args=
17024 test "$silent" = yes &&
17025 ac_config_status_args="$ac_config_status_args --quiet"
17026 exec 5>/dev/null
17027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17028 exec 5>>config.log
17029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17030 # would make configure fail if this is the last instruction.
81ecdfbb
RW
17031 $ac_cs_success || as_fn_exit $?
17032fi
17033if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17035$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 17036fi
252b5132 17037
This page took 1.880605 seconds and 4 git commands to generate.