Gold: Don't fail on R_X86_64_[REX_]GOTPCRELX relocations
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
91dc4e0a 3# Generated by GNU Autoconf 2.64 for gas 2.25.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'
91dc4e0a
TG
559PACKAGE_VERSION='2.25.51'
560PACKAGE_STRING='gas 2.25.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
81ecdfbb
RW
768enable_werror
769enable_build_warnings
770enable_nls
771enable_maintainer_mode
0138187e 772with_system_zlib
81ecdfbb
RW
773'
774 ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
782CPP
783YACC
784YFLAGS'
785
252b5132
RH
786
787# Initialize some variables set by options.
13b2be9c
DJ
788ac_init_help=
789ac_init_version=false
81ecdfbb
RW
790ac_unrecognized_opts=
791ac_unrecognized_sep=
252b5132
RH
792# The variables have the same names as the options, with
793# dashes changed to underlines.
13b2be9c 794cache_file=/dev/null
252b5132 795exec_prefix=NONE
252b5132 796no_create=
252b5132
RH
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
252b5132
RH
805verbose=
806x_includes=NONE
807x_libraries=NONE
13b2be9c
DJ
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 814# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
252b5132
RH
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
252b5132
RH
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
2e98a7bd 825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
252b5132 834
252b5132 835ac_prev=
81ecdfbb 836ac_dashdash=
252b5132
RH
837for ac_option
838do
252b5132
RH
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
81ecdfbb 841 eval $ac_prev=\$ac_option
252b5132
RH
842 ac_prev=
843 continue
844 fi
845
81ecdfbb
RW
846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
252b5132
RH
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
81ecdfbb
RW
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
252b5132
RH
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 860 bindir=$ac_optarg ;;
252b5132
RH
861
862 -build | --build | --buil | --bui | --bu)
13b2be9c 863 ac_prev=build_alias ;;
252b5132 864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 865 build_alias=$ac_optarg ;;
252b5132
RH
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
252b5132 876
81ecdfbb 877 -datadir | --datadir | --datadi | --datad)
252b5132 878 ac_prev=datadir ;;
81ecdfbb 879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 880 datadir=$ac_optarg ;;
252b5132 881
81ecdfbb
RW
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
252b5132 889 -disable-* | --disable-*)
81ecdfbb 890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 891 # Reject names that are not valid shell variable names.
81ecdfbb
RW
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
252b5132
RH
914
915 -enable-* | --enable-*)
81ecdfbb 916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 917 # Reject names that are not valid shell variable names.
81ecdfbb
RW
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924"enable_$ac_useropt"
925"*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
252b5132 928 esac
81ecdfbb 929 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
13b2be9c 938 exec_prefix=$ac_optarg ;;
252b5132
RH
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
13b2be9c
DJ
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
252b5132
RH
950
951 -host | --host | --hos | --ho)
13b2be9c 952 ac_prev=host_alias ;;
252b5132 953 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 954 host_alias=$ac_optarg ;;
252b5132 955
81ecdfbb
RW
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
252b5132
RH
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 967 includedir=$ac_optarg ;;
252b5132
RH
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 972 infodir=$ac_optarg ;;
252b5132
RH
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 977 libdir=$ac_optarg ;;
252b5132
RH
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
13b2be9c 984 libexecdir=$ac_optarg ;;
252b5132 985
81ecdfbb
RW
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
252b5132 991 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 992 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 996 localstatedir=$ac_optarg ;;
252b5132
RH
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1001 mandir=$ac_optarg ;;
252b5132
RH
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1008 | --no-cr | --no-c | -n)
252b5132
RH
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1022 oldincludedir=$ac_optarg ;;
252b5132
RH
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1027 prefix=$ac_optarg ;;
252b5132
RH
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1034 program_prefix=$ac_optarg ;;
252b5132
RH
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1041 program_suffix=$ac_optarg ;;
252b5132
RH
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1058 program_transform_name=$ac_optarg ;;
252b5132 1059
81ecdfbb
RW
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
252b5132
RH
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
13b2be9c 1078 sbindir=$ac_optarg ;;
252b5132
RH
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
13b2be9c 1089 sharedstatedir=$ac_optarg ;;
252b5132
RH
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
13b2be9c 1094 site=$ac_optarg ;;
76bff705 1095
252b5132
RH
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1099 srcdir=$ac_optarg ;;
252b5132
RH
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1106 sysconfdir=$ac_optarg ;;
252b5132
RH
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1109 ac_prev=target_alias ;;
252b5132 1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1111 target_alias=$ac_optarg ;;
252b5132
RH
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
13b2be9c
DJ
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
252b5132
RH
1118
1119 -with-* | --with-*)
81ecdfbb 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1121 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
252b5132 1132 esac
81ecdfbb 1133 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1134
1135 -without-* | --without-*)
81ecdfbb 1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1137 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
252b5132
RH
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1160 x_includes=$ac_optarg ;;
252b5132
RH
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1167 x_libraries=$ac_optarg ;;
252b5132 1168
81ecdfbb
RW
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information."
252b5132
RH
1171 ;;
1172
13b2be9c
DJ
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1181 export $ac_envvar ;;
1182
252b5132 1183 *)
13b2be9c 1184 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13b2be9c 1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
13b2be9c 1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1196 as_fn_error "missing argument to $ac_option"
c8615825 1197fi
c8615825 1198
81ecdfbb
RW
1199if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1204 esac
81ecdfbb 1205fi
252b5132 1206
81ecdfbb
RW
1207# Check all directory arguments for consistency.
1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
252b5132 1212do
81ecdfbb
RW
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
13b2be9c 1221 case $ac_val in
81ecdfbb
RW
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1224 esac
81ecdfbb 1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1226done
1227
13b2be9c
DJ
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
81ecdfbb 1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13b2be9c
DJ
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
9b2b7d69 1245
13b2be9c
DJ
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
252b5132 1250
252b5132 1251
81ecdfbb
RW
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1258
1259
252b5132
RH
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
81ecdfbb
RW
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
252b5132 1287 srcdir=$ac_confdir
81ecdfbb 1288 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
81ecdfbb
RW
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
d6d788bd 1318
13b2be9c
DJ
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
91dc4e0a 1326\`configure' configures gas 2.25.51 to adapt to many kinds of systems.
9b2b7d69 1327
13b2be9c 1328Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1329
13b2be9c
DJ
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1332
13b2be9c 1333Defaults for the options are specified in brackets.
9b2b7d69 1334
13b2be9c
DJ
1335Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
13b2be9c
DJ
1346Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1348 [$ac_default_prefix]
13b2be9c 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1350 [PREFIX]
9b2b7d69 1351
13b2be9c
DJ
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
9b2b7d69 1356
13b2be9c 1357For better control, use the options below.
9b2b7d69 1358
13b2be9c 1359Fine tuning of the installation directories:
81ecdfbb
RW
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1374 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
81ecdfbb
RW
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1379_ACEOF
9b2b7d69 1380
13b2be9c 1381 cat <<\_ACEOF
9b2b7d69 1382
13b2be9c
DJ
1383Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1387
13b2be9c
DJ
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF
9b2b7d69 1393fi
9b2b7d69 1394
13b2be9c 1395if test -n "$ac_init_help"; then
2e98a7bd 1396 case $ac_init_help in
91dc4e0a 1397 short | recursive ) echo "Configuration of gas 2.25.51:";;
2e98a7bd 1398 esac
13b2be9c 1399 cat <<\_ACEOF
9b2b7d69 1400
13b2be9c 1401Optional Features:
81ecdfbb 1402 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1405 --disable-dependency-tracking speeds up one-time build
1406 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
13b2be9c 1411 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1412 --enable-plugins Enable support for plugins
1413 --disable-largefile omit support for large files
241a6c40 1414 --enable-targets alternative target configurations besides the primary
c43a438d 1415 --enable-checking enable run-time checks
1283d92f 1416 --enable-compressed-debug-sections={all,gas,none} compress debug sections by default
241a6c40
AM
1417 --enable-werror treat compile warnings as errors
1418 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1419 --disable-nls do not use Native Language Support
ab509236
L
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
9b2b7d69 1422
13b2be9c
DJ
1423Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1426 --with-pic try to use only PIC/non-PIC objects [default=use
1427 both]
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
0138187e 1429 --with-system-zlib use installed libz
9b2b7d69 1430
13b2be9c
DJ
1431Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
81ecdfbb
RW
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
13b2be9c 1439 CPP C preprocessor
81ecdfbb
RW
1440 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1441 the first program found out of: `bison -y', `byacc', `yacc'.
1442 YFLAGS The list of arguments that will be passed by default to $YACC.
1443 This script will default YFLAGS to the empty string to avoid a
1444 default value of `-d' given by some make applications.
13b2be9c
DJ
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
81ecdfbb 1449Report bugs to the package provider.
13b2be9c 1450_ACEOF
81ecdfbb 1451ac_status=$?
9b2b7d69 1452fi
9b2b7d69 1453
13b2be9c
DJ
1454if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
13b2be9c 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
13b2be9c
DJ
1460 ac_builddir=.
1461
81ecdfbb
RW
1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1477
13b2be9c 1478case $srcdir in
81ecdfbb 1479 .) # We are building in place.
13b2be9c 1480 ac_srcdir=.
81ecdfbb
RW
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1484 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1491esac
81ecdfbb
RW
1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1502 else
81ecdfbb
RW
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1506 done
1507fi
6840198f 1508
81ecdfbb 1509test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1510if $ac_init_version; then
1511 cat <<\_ACEOF
91dc4e0a 1512gas configure 2.25.51
81ecdfbb 1513generated by GNU Autoconf 2.64
c8615825 1514
81ecdfbb 1515Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
1516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
1518_ACEOF
81ecdfbb 1519 exit
13b2be9c 1520fi
c8615825 1521
81ecdfbb
RW
1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
c8615825 1525
81ecdfbb
RW
1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
13b2be9c 1530{
81ecdfbb
RW
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553else
1554 $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1556
81ecdfbb
RW
1557 ac_retval=1
1558fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
13b2be9c 1561
81ecdfbb 1562} # ac_fn_c_try_compile
13b2be9c 1563
81ecdfbb
RW
1564# ac_fn_c_try_link LINENO
1565# -----------------------
1566# Try to link conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_link ()
1568{
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594else
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 return $ac_retval
1607
1608} # ac_fn_c_try_link
1609
1610# ac_fn_c_try_cpp LINENO
1611# ----------------------
1612# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_cpp ()
1614{
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } >/dev/null && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
1644
1645} # ac_fn_c_try_cpp
1646
1647# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1650# the include files in INCLUDES and setting the cache variable VAR
1651# accordingly.
1652ac_fn_c_check_header_mongrel ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657$as_echo_n "checking for $2... " >&6; }
1658if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1659 $as_echo_n "(cached) " >&6
1660fi
1661eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663$as_echo "$ac_res" >&6; }
1664else
1665 # Is the header compilable?
1666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1667$as_echo_n "checking $2 usability... " >&6; }
1668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h. */
1670$4
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_header_compiler=yes
1675else
1676 ac_header_compiler=no
1677fi
1678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1680$as_echo "$ac_header_compiler" >&6; }
1681
1682# Is the header present?
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1684$as_echo_n "checking $2 presence... " >&6; }
1685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h. */
1687#include <$2>
1688_ACEOF
1689if ac_fn_c_try_cpp "$LINENO"; then :
1690 ac_header_preproc=yes
1691else
1692 ac_header_preproc=no
1693fi
1694rm -f conftest.err conftest.$ac_ext
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1696$as_echo "$ac_header_preproc" >&6; }
1697
1698# So? What about this header?
1699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700 yes:no: )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1702$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 ;;
1706 no:yes:* )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1708$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1710$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1712$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1714$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 ;;
1718esac
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
1721if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723else
1724 eval "$3=\$ac_header_compiler"
1725fi
1726eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728$as_echo "$ac_res" >&6; }
1729fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
1732} # ac_fn_c_check_header_mongrel
1733
1734# ac_fn_c_try_run LINENO
1735# ----------------------
1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737# that executables *can* be run.
1738ac_fn_c_try_run ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_link"
1742case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752 { { case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_try") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; }; }; then :
1762 ac_retval=0
1763else
1764 $as_echo "$as_me: program exited with status $ac_status" >&5
1765 $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=$ac_status
1769fi
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 return $ac_retval
1773
1774} # ac_fn_c_try_run
1775
1776# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777# -------------------------------------------------------
1778# Tests whether HEADER exists and can be compiled using the include files in
1779# INCLUDES, setting the cache variable VAR accordingly.
1780ac_fn_c_check_header_compile ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790$4
1791#include <$2>
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795else
1796 eval "$3=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805} # ac_fn_c_check_header_compile
1806
1807# ac_fn_c_check_func LINENO FUNC VAR
1808# ----------------------------------
1809# Tests whether FUNC exists, setting the cache variable VAR accordingly
1810ac_fn_c_check_func ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1817else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h. */
1820/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822#define $2 innocuous_$2
1823
1824/* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1828
1829#ifdef __STDC__
1830# include <limits.h>
1831#else
1832# include <assert.h>
1833#endif
1834
1835#undef $2
1836
1837/* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1840#ifdef __cplusplus
1841extern "C"
1842#endif
1843char $2 ();
1844/* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847#if defined __stub_$2 || defined __stub___$2
1848choke me
1849#endif
1850
1851int
1852main ()
1853{
1854return $2 ();
1855 ;
1856 return 0;
1857}
1858_ACEOF
1859if ac_fn_c_try_link "$LINENO"; then :
1860 eval "$3=yes"
1861else
1862 eval "$3=no"
1863fi
1864rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872} # ac_fn_c_check_func
1873
1874# ac_fn_c_check_decl LINENO SYMBOL VAR
1875# ------------------------------------
1876# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1877ac_fn_c_check_decl ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1880 as_decl_name=`echo $2|sed 's/ *(.*//'`
1881 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1883$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1886else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889$4
1890int
1891main ()
1892{
360cfc9c
AM
1893#ifndef $as_decl_name
1894#ifdef __cplusplus
1895 (void) $as_decl_use;
1896#else
1897 (void) $as_decl_name;
1898#endif
81ecdfbb
RW
1899#endif
1900
1901 ;
1902 return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906 eval "$3=yes"
1907else
1908 eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911fi
1912eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917} # ac_fn_c_check_decl
1918cat >config.log <<_ACEOF
1919This file contains any messages produced by compilers while
1920running configure, to aid debugging if configure makes a mistake.
1921
91dc4e0a 1922It was created by gas $as_me 2.25.51, which was
81ecdfbb
RW
1923generated by GNU Autoconf 2.64. Invocation command line was
1924
1925 $ $0 $@
1926
1927_ACEOF
1928exec 5>>config.log
1929{
1930cat <<_ASUNAME
1931## --------- ##
1932## Platform. ##
1933## --------- ##
1934
1935hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940
1941/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1943
1944/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
1945/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1946/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1947/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
1948/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1949/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1950/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951
1952_ASUNAME
1953
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1959 $as_echo "PATH: $as_dir"
1960 done
1961IFS=$as_save_IFS
9b2b7d69 1962
13b2be9c 1963} >&5
6840198f 1964
13b2be9c 1965cat >&5 <<_ACEOF
c8615825 1966
9b2b7d69 1967
13b2be9c
DJ
1968## ----------- ##
1969## Core tests. ##
1970## ----------- ##
87ccc1b0 1971
13b2be9c 1972_ACEOF
9b2b7d69 1973
13b2be9c
DJ
1974
1975# Keep a trace of the command line.
1976# Strip out --no-create and --no-recursion so they do not pile up.
1977# Strip out --silent because we don't want to record it for future runs.
1978# Also quote any args containing shell meta-characters.
1979# Make two passes to allow for proper duplicate-argument suppression.
1980ac_configure_args=
1981ac_configure_args0=
1982ac_configure_args1=
13b2be9c
DJ
1983ac_must_keep_next=false
1984for ac_pass in 1 2
1985do
1986 for ac_arg
1987 do
1988 case $ac_arg in
1989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1991 | -silent | --silent | --silen | --sile | --sil)
1992 continue ;;
81ecdfbb
RW
1993 *\'*)
1994 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
1995 esac
1996 case $ac_pass in
81ecdfbb 1997 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 1998 2)
81ecdfbb 1999 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 2000 if test $ac_must_keep_next = true; then
ab509236 2001 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2002 else
ab509236
L
2003 case $ac_arg in
2004 *=* | --config-cache | -C | -disable-* | --disable-* \
2005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2007 | -with-* | --with-* | -without-* | --without-* | --x)
2008 case "$ac_configure_args0 " in
2009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2010 esac
2011 ;;
2012 -* ) ac_must_keep_next=true ;;
2013 esac
13b2be9c 2014 fi
81ecdfbb 2015 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2016 ;;
2017 esac
2018 done
13b2be9c 2019done
81ecdfbb
RW
2020{ ac_configure_args0=; unset ac_configure_args0;}
2021{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2022
2023# When interrupted or exit'd, cleanup temporary files, and complete
2024# config.log. We remove comments because anyway the quotes in there
2025# would cause problems or look ugly.
81ecdfbb
RW
2026# WARNING: Use '\'' to represent an apostrophe within the trap.
2027# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2028trap 'exit_status=$?
2029 # Save into config.log some information that might help in debugging.
2030 {
2031 echo
2032
2033 cat <<\_ASBOX
2034## ---------------- ##
2035## Cache variables. ##
2036## ---------------- ##
2037_ASBOX
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2040(
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
13b2be9c 2056 (set) 2>&1 |
81ecdfbb
RW
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
13b2be9c 2059 sed -n \
81ecdfbb
RW
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
13b2be9c 2063 *)
81ecdfbb 2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2065 ;;
81ecdfbb
RW
2066 esac |
2067 sort
2068)
13b2be9c
DJ
2069 echo
2070
2071 cat <<\_ASBOX
2072## ----------------- ##
2073## Output variables. ##
2074## ----------------- ##
2075_ASBOX
2076 echo
2077 for ac_var in $ac_subst_vars
2078 do
81ecdfbb
RW
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2084 done | sort
2085 echo
2086
2087 if test -n "$ac_subst_files"; then
2088 cat <<\_ASBOX
81ecdfbb
RW
2089## ------------------- ##
2090## File substitutions. ##
2091## ------------------- ##
13b2be9c
DJ
2092_ASBOX
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
81ecdfbb
RW
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 cat <<\_ASBOX
2107## ----------- ##
2108## confdefs.h. ##
2109## ----------- ##
2110_ASBOX
2111 echo
81ecdfbb 2112 cat confdefs.h
13b2be9c
DJ
2113 echo
2114 fi
2115 test "$ac_signal" != 0 &&
81ecdfbb
RW
2116 $as_echo "$as_me: caught signal $ac_signal"
2117 $as_echo "$as_me: exit $exit_status"
13b2be9c 2118 } >&5
81ecdfbb
RW
2119 rm -f core *.core core.conftest.* &&
2120 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2121 exit $exit_status
81ecdfbb 2122' 0
13b2be9c 2123for ac_signal in 1 2 13 15; do
81ecdfbb 2124 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2125done
2126ac_signal=0
2127
2128# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2129rm -f -r conftest* confdefs.h
2130
2131$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2132
2133# Predefined preprocessor variables.
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_NAME "$PACKAGE_NAME"
2137_ACEOF
2138
13b2be9c
DJ
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2141_ACEOF
2142
13b2be9c
DJ
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_VERSION "$PACKAGE_VERSION"
2145_ACEOF
2146
13b2be9c
DJ
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_STRING "$PACKAGE_STRING"
2149_ACEOF
2150
13b2be9c
DJ
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2153_ACEOF
2154
81ecdfbb
RW
2155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_URL "$PACKAGE_URL"
2157_ACEOF
2158
13b2be9c
DJ
2159
2160# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2161# Prefer an explicitly selected file to automatically selected ones.
2162ac_site_file1=NONE
2163ac_site_file2=NONE
2164if test -n "$CONFIG_SITE"; then
2165 ac_site_file1=$CONFIG_SITE
2166elif test "x$prefix" != xNONE; then
2167 ac_site_file1=$prefix/share/config.site
2168 ac_site_file2=$prefix/etc/config.site
2169else
2170 ac_site_file1=$ac_default_prefix/share/config.site
2171 ac_site_file2=$ac_default_prefix/etc/config.site
2172fi
2173for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174do
2175 test "x$ac_site_file" = xNONE && continue
13b2be9c 2176 if test -r "$ac_site_file"; then
81ecdfbb
RW
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2178$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c
DJ
2179 sed 's/^/| /' "$ac_site_file" >&5
2180 . "$ac_site_file"
2181 fi
2182done
2183
2184if test -r "$cache_file"; then
2185 # Some versions of bash will fail to source /dev/null (special
2186 # files actually), so we avoid doing that.
2187 if test -f "$cache_file"; then
81ecdfbb
RW
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2190 case $cache_file in
81ecdfbb
RW
2191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192 *) . "./$cache_file";;
13b2be9c
DJ
2193 esac
2194 fi
2195else
81ecdfbb
RW
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2198 >$cache_file
2199fi
2200
2201# Check that the precious variables saved in the cache have kept the same
2202# value.
2203ac_cache_corrupted=false
81ecdfbb 2204for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2206 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2208 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2209 case $ac_old_set,$ac_new_set in
2210 set,)
81ecdfbb
RW
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2212$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2213 ac_cache_corrupted=: ;;
2214 ,set)
81ecdfbb
RW
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2216$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2217 ac_cache_corrupted=: ;;
2218 ,);;
2219 *)
2220 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2221 # differences in whitespace do not lead to failure.
2222 ac_old_val_w=`echo x $ac_old_val`
2223 ac_new_val_w=`echo x $ac_new_val`
2224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2226$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2227 ac_cache_corrupted=:
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2230$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2231 eval $ac_var=\$ac_old_val
2232 fi
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2234$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2236$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2237 fi;;
2238 esac
2239 # Pass precious variables to config.status.
2240 if test "$ac_new_set" = set; then
2241 case $ac_new_val in
81ecdfbb 2242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2243 *) ac_arg=$ac_var=$ac_new_val ;;
2244 esac
2245 case " $ac_configure_args " in
2246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2248 esac
2249 fi
2250done
2251if $ac_cache_corrupted; then
81ecdfbb
RW
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2255$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2256 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2257fi
81ecdfbb
RW
2258## -------------------- ##
2259## Main body of script. ##
2260## -------------------- ##
13b2be9c
DJ
2261
2262ac_ext=c
2263ac_cpp='$CPP $CPPFLAGS'
2264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267
2268
2269
13b2be9c 2270
da594c4a 2271
13b2be9c
DJ
2272
2273
2274ac_aux_dir=
81ecdfbb
RW
2275for ac_dir in .. "$srcdir"/..; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
13b2be9c
DJ
2283done
2284if test -z "$ac_aux_dir"; then
81ecdfbb 2285 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2286fi
81ecdfbb
RW
2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
13b2be9c
DJ
2296
2297# Make sure we can run config.sub.
81ecdfbb
RW
2298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302$as_echo_n "checking build system type... " >&6; }
2303if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305else
2306 ac_build_alias=$build_alias
2307test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316$as_echo "$ac_cv_build" >&6; }
2317case $ac_cv_build in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320esac
13b2be9c 2321build=$ac_cv_build
81ecdfbb
RW
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_build
2324shift
2325build_cpu=$1
2326build_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330build_os=$*
2331IFS=$ac_save_IFS
2332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2333
2334
81ecdfbb
RW
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2336$as_echo_n "checking host system type... " >&6; }
2337if test "${ac_cv_host+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
13b2be9c 2339else
81ecdfbb
RW
2340 if test "x$host_alias" = x; then
2341 ac_cv_host=$ac_cv_build
2342else
2343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2344 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2345fi
13b2be9c
DJ
2346
2347fi
81ecdfbb
RW
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2349$as_echo "$ac_cv_host" >&6; }
2350case $ac_cv_host in
2351*-*-*) ;;
2352*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2353esac
13b2be9c 2354host=$ac_cv_host
81ecdfbb
RW
2355ac_save_IFS=$IFS; IFS='-'
2356set x $ac_cv_host
2357shift
2358host_cpu=$1
2359host_vendor=$2
2360shift; shift
2361# Remember, the first character of IFS is used to create $*,
2362# except with old shells:
2363host_os=$*
2364IFS=$ac_save_IFS
2365case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2366
2367
81ecdfbb
RW
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2369$as_echo_n "checking target system type... " >&6; }
2370if test "${ac_cv_target+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372else
2373 if test "x$target_alias" = x; then
2374 ac_cv_target=$ac_cv_host
13b2be9c 2375else
81ecdfbb
RW
2376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2378fi
13b2be9c
DJ
2379
2380fi
81ecdfbb
RW
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2382$as_echo "$ac_cv_target" >&6; }
2383case $ac_cv_target in
2384*-*-*) ;;
2385*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2386esac
13b2be9c 2387target=$ac_cv_target
81ecdfbb
RW
2388ac_save_IFS=$IFS; IFS='-'
2389set x $ac_cv_target
2390shift
2391target_cpu=$1
2392target_vendor=$2
2393shift; shift
2394# Remember, the first character of IFS is used to create $*,
2395# except with old shells:
2396target_os=$*
2397IFS=$ac_save_IFS
2398case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2399
2400
2401# The aliases save the names the user supplied, while $host etc.
2402# will get canonicalized.
2403test -n "$target_alias" &&
2404 test "$program_prefix$program_suffix$program_transform_name" = \
2405 NONENONEs,x,x, &&
2406 program_prefix=${target_alias}-
2407ac_ext=c
2408ac_cpp='$CPP $CPPFLAGS'
2409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
2417if test "${ac_cv_prog_CC+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2419else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2432 break 2
2433 fi
2434done
81ecdfbb
RW
2435 done
2436IFS=$as_save_IFS
13b2be9c
DJ
2437
2438fi
2439fi
2440CC=$ac_cv_prog_CC
2441if test -n "$CC"; then
81ecdfbb
RW
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2443$as_echo "$CC" >&6; }
13b2be9c 2444else
81ecdfbb
RW
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446$as_echo "no" >&6; }
13b2be9c
DJ
2447fi
2448
81ecdfbb 2449
13b2be9c
DJ
2450fi
2451if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454set dummy gcc; ac_word=$2
81ecdfbb
RW
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456$as_echo_n "checking for $ac_word... " >&6; }
2457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2459else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2470 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2472 break 2
2473 fi
2474done
81ecdfbb
RW
2475 done
2476IFS=$as_save_IFS
13b2be9c
DJ
2477
2478fi
2479fi
2480ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2483$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2484else
81ecdfbb
RW
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486$as_echo "no" >&6; }
13b2be9c
DJ
2487fi
2488
81ecdfbb
RW
2489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493yes:)
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498 CC=$ac_ct_CC
2499 fi
13b2be9c
DJ
2500else
2501 CC="$ac_cv_prog_CC"
2502fi
2503
2504if test -z "$CC"; then
81ecdfbb
RW
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2507set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
2510if test "${ac_cv_prog_CC+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2523 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2525 break 2
2526 fi
2527done
81ecdfbb
RW
2528 done
2529IFS=$as_save_IFS
13b2be9c
DJ
2530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
81ecdfbb
RW
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2536$as_echo "$CC" >&6; }
13b2be9c 2537else
81ecdfbb
RW
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
13b2be9c
DJ
2540fi
2541
13b2be9c 2542
81ecdfbb 2543 fi
13b2be9c
DJ
2544fi
2545if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547set dummy cc; ac_word=$2
81ecdfbb
RW
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549$as_echo_n "checking for $ac_word... " >&6; }
2550if test "${ac_cv_prog_CC+set}" = set; then :
2551 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556 ac_prog_rejected=no
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c
DJ
2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
81ecdfbb 2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2570 break 2
2571 fi
2572done
81ecdfbb
RW
2573 done
2574IFS=$as_save_IFS
2575
13b2be9c
DJ
2576if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
81ecdfbb
RW
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593$as_echo "$CC" >&6; }
13b2be9c 2594else
81ecdfbb
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596$as_echo "no" >&6; }
13b2be9c
DJ
2597fi
2598
81ecdfbb 2599
13b2be9c
DJ
2600fi
2601if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
81ecdfbb 2603 for ac_prog in cl.exe
13b2be9c
DJ
2604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if test "${ac_cv_prog_CC+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2611else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2624 break 2
2625 fi
2626done
81ecdfbb
RW
2627 done
2628IFS=$as_save_IFS
13b2be9c
DJ
2629
2630fi
2631fi
2632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
81ecdfbb
RW
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2635$as_echo "$CC" >&6; }
13b2be9c 2636else
81ecdfbb
RW
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
13b2be9c
DJ
2639fi
2640
81ecdfbb 2641
13b2be9c
DJ
2642 test -n "$CC" && break
2643 done
2644fi
2645if test -z "$CC"; then
2646 ac_ct_CC=$CC
81ecdfbb 2647 for ac_prog in cl.exe
13b2be9c
DJ
2648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2655else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2666 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2668 break 2
2669 fi
2670done
81ecdfbb
RW
2671 done
2672IFS=$as_save_IFS
13b2be9c
DJ
2673
2674fi
2675fi
2676ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2679$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2680else
81ecdfbb
RW
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
13b2be9c
DJ
2683fi
2684
81ecdfbb 2685
13b2be9c
DJ
2686 test -n "$ac_ct_CC" && break
2687done
2688
81ecdfbb
RW
2689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696ac_tool_warned=yes ;;
2697esac
2698 CC=$ac_ct_CC
2699 fi
13b2be9c
DJ
2700fi
2701
2702fi
2703
2704
81ecdfbb
RW
2705test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707as_fn_error "no acceptable C compiler found in \$PATH
2708See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2709
2710# Provide some information about the compiler.
81ecdfbb
RW
2711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2712set X $ac_compile
2713ac_compiler=$2
2714for ac_option in --version -v -V -qversion; do
2715 { { ac_try="$ac_compiler $ac_option >&5"
2716case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719esac
2720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721$as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2723 ac_status=$?
81ecdfbb
RW
2724 if test -s conftest.err; then
2725 sed '10a\
2726... rest of stderr output deleted ...
2727 10q' conftest.err >conftest.er1
2728 cat conftest.er1 >&5
2729 rm -f conftest.er1 conftest.err
2730 fi
2731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2732 test $ac_status = 0; }
2733done
13b2be9c 2734
81ecdfbb 2735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2736/* end confdefs.h. */
2737
2738int
2739main ()
2740{
2741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746ac_clean_files_save=$ac_clean_files
81ecdfbb 2747ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
13b2be9c
DJ
2748# Try to create an executable without -o first, disregard a.out.
2749# It will help us diagnose broken compilers, and finding out an intuition
2750# of exeext.
81ecdfbb
RW
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2752$as_echo_n "checking for C compiler default output file name... " >&6; }
2753ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754
2755# The possible output files:
2756ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2757
2758ac_rmfiles=
2759for ac_file in $ac_files
2760do
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764 esac
2765done
2766rm -f $ac_rmfiles
2767
2768if { { ac_try="$ac_link_default"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774$as_echo "$ac_try_echo"; } >&5
2775 (eval "$ac_link_default") 2>&5
2776 ac_status=$?
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }; then :
2779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2780# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2781# in a Makefile. We should not override ac_cv_exeext if it was cached,
2782# so that the user can short-circuit this test for compilers unknown to
2783# Autoconf.
2784for ac_file in $ac_files ''
13b2be9c
DJ
2785do
2786 test -f "$ac_file" || continue
2787 case $ac_file in
81ecdfbb 2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2789 ;;
13b2be9c 2790 [ab].out )
ab509236
L
2791 # We found the default executable, but exeext='' is most
2792 # certainly right.
2793 break;;
13b2be9c 2794 *.* )
81ecdfbb
RW
2795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796 then :; else
2797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 fi
2799 # We set ac_cv_exeext here because the later test for it is not
2800 # safe: cross compilers may not add the suffix if given an `-o'
2801 # argument, so we may need to know it at that point already.
2802 # Even if this section looks crufty: it has the advantage of
2803 # actually working.
ab509236 2804 break;;
13b2be9c 2805 * )
ab509236 2806 break;;
13b2be9c
DJ
2807 esac
2808done
81ecdfbb
RW
2809test "$ac_cv_exeext" = no && ac_cv_exeext=
2810
13b2be9c 2811else
81ecdfbb
RW
2812 ac_file=''
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2815$as_echo "$ac_file" >&6; }
2816if test -z "$ac_file"; then :
2817 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
81ecdfbb
RW
2820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822{ as_fn_set_status 77
2823as_fn_error "C compiler cannot create executables
2824See \`config.log' for more details." "$LINENO" 5; }; }
13b2be9c 2825fi
13b2be9c 2826ac_exeext=$ac_cv_exeext
13b2be9c 2827
81ecdfbb 2828# Check that the compiler produces executables we can run. If not, either
13b2be9c 2829# the compiler is broken, or we cross compile.
81ecdfbb
RW
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2831$as_echo_n "checking whether the C compiler works... " >&6; }
13b2be9c
DJ
2832# If not cross compiling, check that we can run a simple program.
2833if test "$cross_compiling" != yes; then
2834 if { ac_try='./$ac_file'
81ecdfbb
RW
2835 { { case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838esac
2839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840$as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_try") 2>&5
13b2be9c 2842 ac_status=$?
81ecdfbb
RW
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }; }; then
13b2be9c
DJ
2845 cross_compiling=no
2846 else
2847 if test "$cross_compiling" = maybe; then
2848 cross_compiling=yes
2849 else
81ecdfbb
RW
2850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852as_fn_error "cannot run C compiled programs.
13b2be9c 2853If you meant to cross compile, use \`--host'.
81ecdfbb 2854See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2855 fi
2856 fi
2857fi
81ecdfbb
RW
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2859$as_echo "yes" >&6; }
13b2be9c 2860
81ecdfbb 2861rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
13b2be9c 2862ac_clean_files=$ac_clean_files_save
81ecdfbb 2863# Check that the compiler produces executables we can run. If not, either
13b2be9c 2864# the compiler is broken, or we cross compile.
81ecdfbb
RW
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2866$as_echo_n "checking whether we are cross compiling... " >&6; }
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2868$as_echo "$cross_compiling" >&6; }
2869
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2871$as_echo_n "checking for suffix of executables... " >&6; }
2872if { { ac_try="$ac_link"
2873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878$as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_link") 2>&5
13b2be9c 2880 ac_status=$?
81ecdfbb
RW
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }; then :
13b2be9c
DJ
2883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2884# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2885# work properly (i.e., refer to `conftest.exe'), while it won't with
2886# `rm'.
2887for ac_file in conftest.exe conftest conftest.*; do
2888 test -f "$ac_file" || continue
2889 case $ac_file in
81ecdfbb 2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 2891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 2892 break;;
13b2be9c
DJ
2893 * ) break;;
2894 esac
2895done
2896else
81ecdfbb
RW
2897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899as_fn_error "cannot compute suffix of executables: cannot compile and link
2900See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2901fi
13b2be9c 2902rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2904$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
2905
2906rm -f conftest.$ac_ext
2907EXEEXT=$ac_cv_exeext
2908ac_exeext=$EXEEXT
81ecdfbb
RW
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2910$as_echo_n "checking for suffix of object files... " >&6; }
2911if test "${ac_cv_objext+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
13b2be9c 2913else
81ecdfbb 2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2915/* end confdefs.h. */
2916
2917int
2918main ()
2919{
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925rm -f conftest.o conftest.obj
81ecdfbb
RW
2926if { { ac_try="$ac_compile"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932$as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_compile") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }; then :
2937 for ac_file in conftest.o conftest.obj conftest.*; do
2938 test -f "$ac_file" || continue;
13b2be9c 2939 case $ac_file in
81ecdfbb 2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
2941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942 break;;
2943 esac
2944done
2945else
81ecdfbb 2946 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
81ecdfbb
RW
2949{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951as_fn_error "cannot compute suffix of object files: cannot compile
2952See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2953fi
13b2be9c
DJ
2954rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955fi
81ecdfbb
RW
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2957$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
2958OBJEXT=$ac_cv_objext
2959ac_objext=$OBJEXT
81ecdfbb
RW
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2961$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2962if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
13b2be9c 2964else
81ecdfbb 2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2966/* end confdefs.h. */
2967
2968int
2969main ()
2970{
2971#ifndef __GNUC__
2972 choke me
2973#endif
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
81ecdfbb 2979if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
2980 ac_compiler_gnu=yes
2981else
81ecdfbb 2982 ac_compiler_gnu=no
13b2be9c 2983fi
81ecdfbb 2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2985ac_cv_c_compiler_gnu=$ac_compiler_gnu
2986
2987fi
81ecdfbb
RW
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2989$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2990if test $ac_compiler_gnu = yes; then
2991 GCC=yes
2992else
2993 GCC=
2994fi
13b2be9c
DJ
2995ac_test_CFLAGS=${CFLAGS+set}
2996ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2998$as_echo_n "checking whether $CC accepts -g... " >&6; }
2999if test "${ac_cv_prog_cc_g+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 ac_save_c_werror_flag=$ac_c_werror_flag
3003 ac_c_werror_flag=yes
3004 ac_cv_prog_cc_g=no
3005 CFLAGS="-g"
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
81ecdfbb 3017if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3018 ac_cv_prog_cc_g=yes
3019else
81ecdfbb
RW
3020 CFLAGS=""
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h. */
13b2be9c 3023
81ecdfbb
RW
3024int
3025main ()
3026{
3027
3028 ;
3029 return 0;
3030}
3031_ACEOF
3032if ac_fn_c_try_compile "$LINENO"; then :
3033
3034else
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3036 CFLAGS="-g"
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038/* end confdefs.h. */
3039
3040int
3041main ()
3042{
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
3048if ac_fn_c_try_compile "$LINENO"; then :
3049 ac_cv_prog_cc_g=yes
3050fi
3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3052fi
81ecdfbb 3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3054fi
81ecdfbb
RW
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_c_werror_flag=$ac_save_c_werror_flag
3057fi
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3059$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3060if test "$ac_test_CFLAGS" = set; then
3061 CFLAGS=$ac_save_CFLAGS
3062elif test $ac_cv_prog_cc_g = yes; then
3063 if test "$GCC" = yes; then
3064 CFLAGS="-g -O2"
3065 else
3066 CFLAGS="-g"
3067 fi
3068else
3069 if test "$GCC" = yes; then
3070 CFLAGS="-O2"
3071 else
3072 CFLAGS=
3073 fi
3074fi
81ecdfbb
RW
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3076$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3077if test "${ac_cv_prog_cc_c89+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
13b2be9c 3079else
81ecdfbb 3080 ac_cv_prog_cc_c89=no
13b2be9c 3081ac_save_CC=$CC
81ecdfbb 3082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3083/* end confdefs.h. */
3084#include <stdarg.h>
3085#include <stdio.h>
3086#include <sys/types.h>
3087#include <sys/stat.h>
3088/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3089struct buf { int x; };
3090FILE * (*rcsopen) (struct buf *, struct stat *, int);
3091static char *e (p, i)
3092 char **p;
3093 int i;
3094{
3095 return p[i];
3096}
3097static char *f (char * (*g) (char **, int), char **p, ...)
3098{
3099 char *s;
3100 va_list v;
3101 va_start (v,p);
3102 s = g (p, va_arg (v,int));
3103 va_end (v);
3104 return s;
3105}
ab509236
L
3106
3107/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3108 function prototypes and stuff, but not '\xHH' hex character constants.
3109 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3110 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3112 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3113 that's true only with -std. */
ab509236
L
3114int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3115
81ecdfbb
RW
3116/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3117 inside strings and character constants. */
3118#define FOO(x) 'x'
3119int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3120
13b2be9c
DJ
3121int test (int i, double x);
3122struct s1 {int (*f) (int a);};
3123struct s2 {int (*f) (double a);};
3124int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3125int argc;
3126char **argv;
3127int
3128main ()
3129{
3130return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3131 ;
3132 return 0;
3133}
3134_ACEOF
81ecdfbb
RW
3135for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3137do
3138 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3141fi
81ecdfbb
RW
3142rm -f core conftest.err conftest.$ac_objext
3143 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3144done
81ecdfbb 3145rm -f conftest.$ac_ext
13b2be9c
DJ
3146CC=$ac_save_CC
3147
3148fi
81ecdfbb
RW
3149# AC_CACHE_VAL
3150case "x$ac_cv_prog_cc_c89" in
3151 x)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3153$as_echo "none needed" >&6; } ;;
3154 xno)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3156$as_echo "unsupported" >&6; } ;;
13b2be9c 3157 *)
81ecdfbb
RW
3158 CC="$CC $ac_cv_prog_cc_c89"
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3160$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3161esac
81ecdfbb 3162if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3163
13b2be9c
DJ
3164fi
3165
13b2be9c
DJ
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
81ecdfbb
RW
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3174$as_echo_n "checking for library containing strerror... " >&6; }
3175if test "${ac_cv_search_strerror+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
13b2be9c 3177else
ab509236 3178 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3180/* end confdefs.h. */
3181
81ecdfbb
RW
3182/* Override any GCC internal prototype to avoid an error.
3183 Use char because int might match the return type of a GCC
3184 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3185#ifdef __cplusplus
3186extern "C"
3187#endif
13b2be9c
DJ
3188char strerror ();
3189int
3190main ()
3191{
81ecdfbb 3192return strerror ();
13b2be9c
DJ
3193 ;
3194 return 0;
3195}
3196_ACEOF
81ecdfbb
RW
3197for ac_lib in '' cposix; do
3198 if test -z "$ac_lib"; then
3199 ac_res="none required"
3200 else
3201 ac_res=-l$ac_lib
ab509236 3202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3203 fi
3204 if ac_fn_c_try_link "$LINENO"; then :
3205 ac_cv_search_strerror=$ac_res
3206fi
3207rm -f core conftest.err conftest.$ac_objext \
3208 conftest$ac_exeext
3209 if test "${ac_cv_search_strerror+set}" = set; then :
3210 break
3211fi
3212done
3213if test "${ac_cv_search_strerror+set}" = set; then :
ab509236 3214
ab509236 3215else
81ecdfbb 3216 ac_cv_search_strerror=no
13b2be9c 3217fi
81ecdfbb 3218rm conftest.$ac_ext
ab509236
L
3219LIBS=$ac_func_search_save_LIBS
3220fi
81ecdfbb
RW
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3222$as_echo "$ac_cv_search_strerror" >&6; }
3223ac_res=$ac_cv_search_strerror
3224if test "$ac_res" != no; then :
3225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3226
ab509236 3227fi
13b2be9c
DJ
3228
3229
81ecdfbb
RW
3230am__api_version='1.11'
3231
13b2be9c
DJ
3232# Find a good install program. We prefer a C program (faster),
3233# so one script is as good as another. But avoid the broken or
3234# incompatible versions:
3235# SysV /etc/install, /usr/sbin/install
3236# SunOS /usr/etc/install
3237# IRIX /sbin/install
3238# AIX /bin/install
3239# AmigaOS /C/install, which installs bootblocks on floppy discs
3240# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3243# OS/2's system install, which has a completely different semantic
13b2be9c 3244# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3245# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3247$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3248if test -z "$INSTALL"; then
81ecdfbb
RW
3249if test "${ac_cv_path_install+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3251else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3257 # Account for people who put trailing slashes in PATH elements.
3258case $as_dir/ in #((
3259 ./ | .// | /[cC]/* | \
13b2be9c 3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3262 /usr/ucb/* ) ;;
3263 *)
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3266 # by default.
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ab509236
L
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3273 :
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3277 :
3278 else
58c85be7
RW
3279 rm -rf conftest.one conftest.two conftest.dir
3280 echo one > conftest.one
3281 echo two > conftest.two
3282 mkdir conftest.dir
3283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3284 test -s conftest.one && test -s conftest.two &&
3285 test -s conftest.dir/conftest.one &&
3286 test -s conftest.dir/conftest.two
3287 then
3288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3289 break 3
3290 fi
ab509236
L
3291 fi
3292 fi
13b2be9c
DJ
3293 done
3294 done
3295 ;;
3296esac
81ecdfbb
RW
3297
3298 done
3299IFS=$as_save_IFS
13b2be9c 3300
58c85be7 3301rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3302
3303fi
3304 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3305 INSTALL=$ac_cv_path_install
252b5132 3306 else
58c85be7
RW
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for INSTALL within a source directory, because that will
252b5132 3309 # break other packages using the cache if that directory is
58c85be7 3310 # removed, or if the value is a relative name.
13b2be9c 3311 INSTALL=$ac_install_sh
252b5132
RH
3312 fi
3313fi
81ecdfbb
RW
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3315$as_echo "$INSTALL" >&6; }
252b5132
RH
3316
3317# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3318# It thinks the first close brace ends the variable substitution.
3319test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3320
13b2be9c 3321test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3322
3323test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3324
81ecdfbb
RW
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3326$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3327# Just in case
3328sleep 1
13b2be9c 3329echo timestamp > conftest.file
81ecdfbb
RW
3330# Reject unsafe characters in $srcdir or the absolute working directory
3331# name. Accept space and tab only in the latter.
3332am_lf='
3333'
3334case `pwd` in
3335 *[\\\"\#\$\&\'\`$am_lf]*)
3336 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3337esac
3338case $srcdir in
3339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3340 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3341esac
3342
252b5132
RH
3343# Do `set' in a subshell so we don't clobber the current shell's
3344# arguments. Must try -L first in case configure is actually a
3345# symlink; some systems play weird games with the mod time of symlinks
3346# (eg FreeBSD returns the mod time of the symlink's containing
3347# directory).
3348if (
81ecdfbb 3349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3350 if test "$*" = "X"; then
3351 # -L didn't work.
81ecdfbb 3352 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3353 fi
13b2be9c
DJ
3354 rm -f conftest.file
3355 if test "$*" != "X $srcdir/configure conftest.file" \
3356 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3357
3358 # If neither matched, then we have a broken ls. This can happen
3359 # if, for instance, CONFIG_SHELL is bash and it inherits a
3360 # broken ls alias from the environment. This has actually
3361 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3362 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3363alias in your environment" "$LINENO" 5
252b5132
RH
3364 fi
3365
13b2be9c
DJ
3366 test "$2" = conftest.file
3367 )
3368then
3369 # Ok.
3370 :
3371else
81ecdfbb
RW
3372 as_fn_error "newly created file is older than distributed files!
3373Check your system clock" "$LINENO" 5
13b2be9c 3374fi
81ecdfbb
RW
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376$as_echo "yes" >&6; }
13b2be9c 3377test "$program_prefix" != NONE &&
81ecdfbb 3378 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3379# Use a double $ so make ignores it.
3380test "$program_suffix" != NONE &&
81ecdfbb
RW
3381 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3382# Double any \ or $.
13b2be9c 3383# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3384ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3385program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3386
13b2be9c
DJ
3387# expand $ac_aux_dir to an absolute path
3388am_aux_dir=`cd $ac_aux_dir && pwd`
3389
81ecdfbb
RW
3390if test x"${MISSING+set}" != xset; then
3391 case $am_aux_dir in
3392 *\ * | *\ *)
3393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3394 *)
3395 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3396 esac
3397fi
13b2be9c
DJ
3398# Use eval to expand $SHELL
3399if eval "$MISSING --run true"; then
3400 am_missing_run="$MISSING --run "
3401else
3402 am_missing_run=
81ecdfbb
RW
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3404$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ab509236
L
3405fi
3406
81ecdfbb
RW
3407if test x"${install_sh}" != xset; then
3408 case $am_aux_dir in
3409 *\ * | *\ *)
3410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3411 *)
3412 install_sh="\${SHELL} $am_aux_dir/install-sh"
3413 esac
3414fi
3415
3416# Installed binaries are usually stripped using `strip' when the user
3417# run `make install-strip'. However `strip' might not be the right
3418# tool to use in cross-compilation environments, therefore Automake
3419# will honor the `STRIP' environment variable to overrule this program.
3420if test "$cross_compiling" != no; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3423set dummy ${ac_tool_prefix}strip; ac_word=$2
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425$as_echo_n "checking for $ac_word... " >&6; }
3426if test "${ac_cv_prog_STRIP+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
13b2be9c 3428else
81ecdfbb
RW
3429 if test -n "$STRIP"; then
3430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3431else
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3441 break 2
3442 fi
3443done
81ecdfbb
RW
3444 done
3445IFS=$as_save_IFS
13b2be9c
DJ
3446
3447fi
3448fi
81ecdfbb
RW
3449STRIP=$ac_cv_prog_STRIP
3450if test -n "$STRIP"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3452$as_echo "$STRIP" >&6; }
13b2be9c 3453else
81ecdfbb
RW
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455$as_echo "no" >&6; }
13b2be9c
DJ
3456fi
3457
13b2be9c 3458
81ecdfbb
RW
3459fi
3460if test -z "$ac_cv_prog_STRIP"; then
3461 ac_ct_STRIP=$STRIP
3462 # Extract the first word of "strip", so it can be a program name with args.
3463set dummy strip; ac_word=$2
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465$as_echo_n "checking for $ac_word... " >&6; }
3466if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
13b2be9c 3468else
81ecdfbb
RW
3469 if test -n "$ac_ct_STRIP"; then
3470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3471else
81ecdfbb
RW
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_STRIP="strip"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483done
3484 done
3485IFS=$as_save_IFS
3486
3487fi
3488fi
3489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3490if test -n "$ac_ct_STRIP"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3492$as_echo "$ac_ct_STRIP" >&6; }
3493else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495$as_echo "no" >&6; }
3496fi
3497
3498 if test "x$ac_ct_STRIP" = x; then
3499 STRIP=":"
3500 else
3501 case $cross_compiling:$ac_tool_warned in
3502yes:)
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505ac_tool_warned=yes ;;
3506esac
3507 STRIP=$ac_ct_STRIP
3508 fi
3509else
3510 STRIP="$ac_cv_prog_STRIP"
3511fi
3512
3513fi
3514INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3515
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3517$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3518if test -z "$MKDIR_P"; then
3519 if test "${ac_cv_path_mkdir+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_prog in mkdir gmkdir; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3531 'mkdir (GNU coreutils) '* | \
3532 'mkdir (coreutils) '* | \
3533 'mkdir (fileutils) '4.1*)
3534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3535 break 3;;
3536 esac
3537 done
3538 done
3539 done
3540IFS=$as_save_IFS
3541
3542fi
3543
3544 if test "${ac_cv_path_mkdir+set}" = set; then
3545 MKDIR_P="$ac_cv_path_mkdir -p"
3546 else
3547 # As a last resort, use the slow shell script. Don't cache a
3548 # value for MKDIR_P within a source directory, because that will
3549 # break other packages using the cache if that directory is
3550 # removed, or if the value is a relative name.
3551 test -d ./--version && rmdir ./--version
3552 MKDIR_P="$ac_install_sh -d"
3553 fi
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3556$as_echo "$MKDIR_P" >&6; }
3557
3558mkdir_p="$MKDIR_P"
3559case $mkdir_p in
3560 [\\/$]* | ?:[\\/]*) ;;
3561 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3562esac
3563
3564for ac_prog in gawk mawk nawk awk
3565do
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567set dummy $ac_prog; ac_word=$2
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569$as_echo_n "checking for $ac_word... " >&6; }
3570if test "${ac_cv_prog_AWK+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572else
3573 if test -n "$AWK"; then
3574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3575else
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_AWK="$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587done
3588 done
3589IFS=$as_save_IFS
3590
3591fi
3592fi
3593AWK=$ac_cv_prog_AWK
3594if test -n "$AWK"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3596$as_echo "$AWK" >&6; }
3597else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599$as_echo "no" >&6; }
13b2be9c 3600fi
81ecdfbb
RW
3601
3602
3603 test -n "$AWK" && break
3604done
3605
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3607$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3608set x ${MAKE-make}
3609ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3610if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3611 $as_echo_n "(cached) " >&6
3612else
3613 cat >conftest.make <<\_ACEOF
3614SHELL = /bin/sh
3615all:
3616 @echo '@@@%%%=$(MAKE)=@@@%%%'
3617_ACEOF
3618# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3619case `${MAKE-make} -f conftest.make 2>/dev/null` in
3620 *@@@%%%=?*=@@@%%%*)
3621 eval ac_cv_prog_make_${ac_make}_set=yes;;
3622 *)
3623 eval ac_cv_prog_make_${ac_make}_set=no;;
3624esac
13b2be9c
DJ
3625rm -f conftest.make
3626fi
81ecdfbb
RW
3627if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629$as_echo "yes" >&6; }
13b2be9c
DJ
3630 SET_MAKE=
3631else
81ecdfbb
RW
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633$as_echo "no" >&6; }
13b2be9c
DJ
3634 SET_MAKE="MAKE=${MAKE-make}"
3635fi
3636
3637rm -rf .tst 2>/dev/null
3638mkdir .tst 2>/dev/null
3639if test -d .tst; then
3640 am__leading_dot=.
3641else
3642 am__leading_dot=_
3643fi
3644rmdir .tst 2>/dev/null
3645
3646DEPDIR="${am__leading_dot}deps"
3647
81ecdfbb 3648ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3649
3650
3651am_make=${MAKE-make}
3652cat > confinc << 'END'
3653am__doit:
81ecdfbb 3654 @echo this is the am__doit target
13b2be9c
DJ
3655.PHONY: am__doit
3656END
3657# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3659$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3660am__include="#"
3661am__quote=
3662_am_result=none
3663# First try GNU make style include.
3664echo "include confinc" > confmf
81ecdfbb
RW
3665# Ignore all kinds of additional output from `make'.
3666case `$am_make -s -f confmf 2> /dev/null` in #(
3667*the\ am__doit\ target*)
3668 am__include=include
3669 am__quote=
3670 _am_result=GNU
3671 ;;
3672esac
13b2be9c
DJ
3673# Now try BSD make style include.
3674if test "$am__include" = "#"; then
3675 echo '.include "confinc"' > confmf
81ecdfbb
RW
3676 case `$am_make -s -f confmf 2> /dev/null` in #(
3677 *the\ am__doit\ target*)
3678 am__include=.include
3679 am__quote="\""
3680 _am_result=BSD
3681 ;;
3682 esac
13b2be9c
DJ
3683fi
3684
3685
81ecdfbb
RW
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3687$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3688rm -f confinc confmf
3689
81ecdfbb
RW
3690# Check whether --enable-dependency-tracking was given.
3691if test "${enable_dependency_tracking+set}" = set; then :
3692 enableval=$enable_dependency_tracking;
3693fi
13b2be9c 3694
13b2be9c
DJ
3695if test "x$enable_dependency_tracking" != xno; then
3696 am_depcomp="$ac_aux_dir/depcomp"
3697 AMDEPBACKSLASH='\'
3698fi
81ecdfbb 3699 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3700 AMDEP_TRUE=
3701 AMDEP_FALSE='#'
3702else
3703 AMDEP_TRUE='#'
3704 AMDEP_FALSE=
3705fi
3706
3707
81ecdfbb
RW
3708if test "`cd $srcdir && pwd`" != "`pwd`"; then
3709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3710 # is not polluted with repeated "-I."
3711 am__isrc=' -I$(srcdir)'
3712 # test to see if srcdir already configured
3713 if test -f $srcdir/config.status; then
3714 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3715 fi
13b2be9c
DJ
3716fi
3717
3718# test whether we have cygpath
3719if test -z "$CYGPATH_W"; then
3720 if (cygpath --version) >/dev/null 2>/dev/null; then
3721 CYGPATH_W='cygpath -w'
3722 else
3723 CYGPATH_W=echo
3724 fi
3725fi
3726
3727
3728# Define the identity of the package.
2e98a7bd 3729 PACKAGE='gas'
91dc4e0a 3730 VERSION='2.25.51'
13b2be9c
DJ
3731
3732
3733cat >>confdefs.h <<_ACEOF
3734#define PACKAGE "$PACKAGE"
3735_ACEOF
3736
3737
3738cat >>confdefs.h <<_ACEOF
3739#define VERSION "$VERSION"
3740_ACEOF
3741
3742# Some tools Automake needs.
3743
3744ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3745
3746
3747AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3748
3749
3750AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3751
3752
3753AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3754
3755
3756MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3757
13b2be9c
DJ
3758# We need awk for the "check" target. The system "awk" is bad on
3759# some platforms.
8ea2b00f
AM
3760# Always define AMTAR for backward compatibility.
3761
3762AMTAR=${AMTAR-"${am_missing_run}tar"}
3763
3764am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3765
3766
252b5132 3767
d6d788bd 3768
13b2be9c 3769depcc="$CC" am_compiler_list=
d6d788bd 3770
81ecdfbb
RW
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772$as_echo_n "checking dependency style of $depcc... " >&6; }
3773if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
252b5132 3775else
13b2be9c
DJ
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
252b5132 3794
13b2be9c
DJ
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 fi
81ecdfbb
RW
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3803
13b2be9c
DJ
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3808 #
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
13b2be9c
DJ
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
81ecdfbb
RW
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
13b2be9c 3827 case $depmode in
81ecdfbb
RW
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3831 ;;
13b2be9c
DJ
3832 nosideeffect)
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3839 fi
3840 ;;
81ecdfbb
RW
3841 msvisualcpp | msvcmsys)
3842 # This compiler won't grok `-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3847 ;;
13b2be9c
DJ
3848 none) break ;;
3849 esac
13b2be9c 3850 if depmode=$depmode \
81ecdfbb 3851 source=sub/conftest.c object=$am__obj \
13b2be9c 3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 3854 >/dev/null 2>conftest.err &&
81ecdfbb 3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3870 fi
3871 fi
3872 done
252b5132 3873
13b2be9c
DJ
3874 cd ..
3875 rm -rf conftest.dir
252b5132 3876else
13b2be9c 3877 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3878fi
3879
252b5132 3880fi
81ecdfbb
RW
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 3883CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3884
81ecdfbb 3885 if
13b2be9c
DJ
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
252b5132 3890else
13b2be9c
DJ
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
252b5132
RH
3893fi
3894
d6d788bd
L
3895
3896
13b2be9c 3897
ce2cded5
L
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3905set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
3908if test "${ac_cv_prog_CC+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
252b5132 3910else
ce2cded5
L
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3913else
ce2cded5
L
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3923 break 2
3924 fi
3925done
81ecdfbb
RW
3926 done
3927IFS=$as_save_IFS
d7040cdb 3928
ce2cded5
L
3929fi
3930fi
3931CC=$ac_cv_prog_CC
3932if test -n "$CC"; then
81ecdfbb
RW
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934$as_echo "$CC" >&6; }
bedf545c 3935else
81ecdfbb
RW
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937$as_echo "no" >&6; }
ce2cded5 3938fi
d7040cdb 3939
81ecdfbb 3940
ce2cded5
L
3941fi
3942if test -z "$ac_cv_prog_CC"; then
3943 ac_ct_CC=$CC
3944 # Extract the first word of "gcc", so it can be a program name with args.
3945set dummy gcc; ac_word=$2
81ecdfbb
RW
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947$as_echo_n "checking for $ac_word... " >&6; }
3948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
d7040cdb 3950else
ce2cded5
L
3951 if test -n "$ac_ct_CC"; then
3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3953else
d7040cdb
SE
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3961 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3963 break 2
d7040cdb 3964 fi
ce2cded5 3965done
81ecdfbb
RW
3966 done
3967IFS=$as_save_IFS
d7040cdb 3968
ce2cded5
L
3969fi
3970fi
3971ac_ct_CC=$ac_cv_prog_ac_ct_CC
3972if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3974$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3975else
81ecdfbb
RW
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977$as_echo "no" >&6; }
d7040cdb
SE
3978fi
3979
81ecdfbb
RW
3980 if test "x$ac_ct_CC" = x; then
3981 CC=""
3982 else
3983 case $cross_compiling:$ac_tool_warned in
3984yes:)
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3987ac_tool_warned=yes ;;
3988esac
3989 CC=$ac_ct_CC
3990 fi
ce2cded5
L
3991else
3992 CC="$ac_cv_prog_CC"
3993fi
d7040cdb 3994
ce2cded5 3995if test -z "$CC"; then
81ecdfbb
RW
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 3998set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
4001if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
d7040cdb 4003else
ce2cded5
L
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4006else
ce2cded5
L
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4014 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4016 break 2
4017 fi
4018done
81ecdfbb
RW
4019 done
4020IFS=$as_save_IFS
d7040cdb 4021
252b5132
RH
4022fi
4023fi
ce2cded5
L
4024CC=$ac_cv_prog_CC
4025if test -n "$CC"; then
81ecdfbb
RW
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027$as_echo "$CC" >&6; }
ce2cded5 4028else
81ecdfbb
RW
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
d7040cdb 4031fi
f9c19112 4032
ce2cded5 4033
81ecdfbb 4034 fi
ce2cded5
L
4035fi
4036if test -z "$CC"; then
4037 # Extract the first word of "cc", so it can be a program name with args.
4038set dummy cc; ac_word=$2
81ecdfbb
RW
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040$as_echo_n "checking for $ac_word... " >&6; }
4041if test "${ac_cv_prog_CC+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
ce2cded5
L
4043else
4044 if test -n "$CC"; then
4045 ac_cv_prog_CC="$CC" # Let the user override the test.
4046else
4047 ac_prog_rejected=no
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4056 ac_prog_rejected=yes
4057 continue
4058 fi
4059 ac_cv_prog_CC="cc"
81ecdfbb 4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4061 break 2
4062 fi
4063done
81ecdfbb
RW
4064 done
4065IFS=$as_save_IFS
ce2cded5
L
4066
4067if test $ac_prog_rejected = yes; then
4068 # We found a bogon in the path, so make sure we never use it.
4069 set dummy $ac_cv_prog_CC
4070 shift
4071 if test $# != 0; then
4072 # We chose a different compiler from the bogus one.
4073 # However, it has the same basename, so the bogon will be chosen
4074 # first if we set CC to just the basename; use the full file name.
4075 shift
4076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4077 fi
4078fi
4079fi
4080fi
4081CC=$ac_cv_prog_CC
4082if test -n "$CC"; then
81ecdfbb
RW
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4084$as_echo "$CC" >&6; }
ce2cded5 4085else
81ecdfbb
RW
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087$as_echo "no" >&6; }
ce2cded5
L
4088fi
4089
81ecdfbb 4090
ce2cded5
L
4091fi
4092if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
81ecdfbb 4094 for ac_prog in cl.exe
ce2cded5
L
4095 do
4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099$as_echo_n "checking for $ac_word... " >&6; }
4100if test "${ac_cv_prog_CC+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
ce2cded5
L
4102else
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105else
4106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107for as_dir in $PATH
4108do
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4115 break 2
4116 fi
4117done
81ecdfbb
RW
4118 done
4119IFS=$as_save_IFS
ce2cded5
L
4120
4121fi
4122fi
4123CC=$ac_cv_prog_CC
4124if test -n "$CC"; then
81ecdfbb
RW
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126$as_echo "$CC" >&6; }
ce2cded5 4127else
81ecdfbb
RW
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129$as_echo "no" >&6; }
ce2cded5
L
4130fi
4131
81ecdfbb 4132
ce2cded5 4133 test -n "$CC" && break
d7040cdb
SE
4134 done
4135fi
ce2cded5
L
4136if test -z "$CC"; then
4137 ac_ct_CC=$CC
81ecdfbb 4138 for ac_prog in cl.exe
d7040cdb
SE
4139do
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143$as_echo_n "checking for $ac_word... " >&6; }
4144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
d7040cdb 4146else
ce2cded5
L
4147 if test -n "$ac_ct_CC"; then
4148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4149else
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4157 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4159 break 2
ac48eca1 4160 fi
d7040cdb 4161done
81ecdfbb
RW
4162 done
4163IFS=$as_save_IFS
ac48eca1 4164
d7040cdb
SE
4165fi
4166fi
ce2cded5
L
4167ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4170$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4171else
81ecdfbb
RW
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173$as_echo "no" >&6; }
d7040cdb 4174fi
ac48eca1 4175
81ecdfbb 4176
ce2cded5 4177 test -n "$ac_ct_CC" && break
d7040cdb 4178done
ac48eca1 4179
81ecdfbb
RW
4180 if test "x$ac_ct_CC" = x; then
4181 CC=""
4182 else
4183 case $cross_compiling:$ac_tool_warned in
4184yes:)
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187ac_tool_warned=yes ;;
4188esac
4189 CC=$ac_ct_CC
4190 fi
d7040cdb 4191fi
ac48eca1 4192
d7040cdb 4193fi
ac48eca1 4194
ac48eca1 4195
81ecdfbb
RW
4196test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198as_fn_error "no acceptable C compiler found in \$PATH
4199See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4200
ce2cded5 4201# Provide some information about the compiler.
81ecdfbb
RW
4202$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4203set X $ac_compile
4204ac_compiler=$2
4205for ac_option in --version -v -V -qversion; do
4206 { { ac_try="$ac_compiler $ac_option >&5"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212$as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4214 ac_status=$?
81ecdfbb
RW
4215 if test -s conftest.err; then
4216 sed '10a\
4217... rest of stderr output deleted ...
4218 10q' conftest.err >conftest.er1
4219 cat conftest.er1 >&5
4220 rm -f conftest.er1 conftest.err
4221 fi
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224done
ac48eca1 4225
81ecdfbb
RW
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4227$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4228if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
d7040cdb 4230else
81ecdfbb 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4232/* end confdefs.h. */
c8615825 4233
ce2cded5
L
4234int
4235main ()
4236{
4237#ifndef __GNUC__
4238 choke me
4239#endif
4240
4241 ;
4242 return 0;
4243}
4244_ACEOF
81ecdfbb 4245if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4246 ac_compiler_gnu=yes
d7040cdb 4247else
81ecdfbb 4248 ac_compiler_gnu=no
d7040cdb 4249fi
81ecdfbb 4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4251ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4252
ce2cded5 4253fi
81ecdfbb
RW
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4255$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4256if test $ac_compiler_gnu = yes; then
4257 GCC=yes
4258else
4259 GCC=
4260fi
ce2cded5
L
4261ac_test_CFLAGS=${CFLAGS+set}
4262ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4264$as_echo_n "checking whether $CC accepts -g... " >&6; }
4265if test "${ac_cv_prog_cc_g+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267else
4268 ac_save_c_werror_flag=$ac_c_werror_flag
4269 ac_c_werror_flag=yes
4270 ac_cv_prog_cc_g=no
4271 CFLAGS="-g"
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4273/* end confdefs.h. */
d7040cdb 4274
ce2cded5
L
4275int
4276main ()
4277{
d7040cdb 4278
ce2cded5
L
4279 ;
4280 return 0;
4281}
4282_ACEOF
81ecdfbb 4283if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4284 ac_cv_prog_cc_g=yes
4285else
81ecdfbb
RW
4286 CFLAGS=""
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h. */
4289
4290int
4291main ()
4292{
4293
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_compile "$LINENO"; then :
4299
4300else
4301 ac_c_werror_flag=$ac_save_c_werror_flag
4302 CFLAGS="-g"
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
d70c5fc7 4305
81ecdfbb
RW
4306int
4307main ()
4308{
4309
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_g=yes
4316fi
4317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4318fi
81ecdfbb 4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4320fi
81ecdfbb
RW
4321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 ac_c_werror_flag=$ac_save_c_werror_flag
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4325$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4326if test "$ac_test_CFLAGS" = set; then
4327 CFLAGS=$ac_save_CFLAGS
4328elif test $ac_cv_prog_cc_g = yes; then
4329 if test "$GCC" = yes; then
4330 CFLAGS="-g -O2"
4331 else
4332 CFLAGS="-g"
4333 fi
ac48eca1 4334else
ce2cded5
L
4335 if test "$GCC" = yes; then
4336 CFLAGS="-O2"
4337 else
4338 CFLAGS=
4339 fi
ac48eca1 4340fi
81ecdfbb
RW
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4342$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4343if test "${ac_cv_prog_cc_c89+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
ac48eca1 4345else
81ecdfbb 4346 ac_cv_prog_cc_c89=no
ce2cded5 4347ac_save_CC=$CC
81ecdfbb 4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4349/* end confdefs.h. */
4350#include <stdarg.h>
4351#include <stdio.h>
4352#include <sys/types.h>
4353#include <sys/stat.h>
4354/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4355struct buf { int x; };
4356FILE * (*rcsopen) (struct buf *, struct stat *, int);
4357static char *e (p, i)
4358 char **p;
4359 int i;
4360{
4361 return p[i];
4362}
4363static char *f (char * (*g) (char **, int), char **p, ...)
4364{
4365 char *s;
4366 va_list v;
4367 va_start (v,p);
4368 s = g (p, va_arg (v,int));
4369 va_end (v);
4370 return s;
4371}
4372
4373/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4374 function prototypes and stuff, but not '\xHH' hex character constants.
4375 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4376 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4378 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4379 that's true only with -std. */
ce2cded5
L
4380int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4381
81ecdfbb
RW
4382/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4383 inside strings and character constants. */
4384#define FOO(x) 'x'
4385int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4386
ce2cded5
L
4387int test (int i, double x);
4388struct s1 {int (*f) (int a);};
4389struct s2 {int (*f) (double a);};
4390int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4391int argc;
4392char **argv;
4393int
4394main ()
4395{
4396return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4397 ;
4398 return 0;
4399}
4400_ACEOF
81ecdfbb
RW
4401for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4403do
4404 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4407fi
81ecdfbb
RW
4408rm -f core conftest.err conftest.$ac_objext
4409 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4410done
81ecdfbb 4411rm -f conftest.$ac_ext
ce2cded5
L
4412CC=$ac_save_CC
4413
4414fi
81ecdfbb
RW
4415# AC_CACHE_VAL
4416case "x$ac_cv_prog_cc_c89" in
4417 x)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4419$as_echo "none needed" >&6; } ;;
4420 xno)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4422$as_echo "unsupported" >&6; } ;;
ce2cded5 4423 *)
81ecdfbb
RW
4424 CC="$CC $ac_cv_prog_cc_c89"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4427esac
81ecdfbb 4428if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4429
ce2cded5 4430fi
d7040cdb 4431
ce2cded5
L
4432ac_ext=c
4433ac_cpp='$CPP $CPPFLAGS'
4434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4437
7357c5b6
AM
4438ac_ext=c
4439ac_cpp='$CPP $CPPFLAGS'
4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4444$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4445# On Suns, sometimes $CPP names a directory.
4446if test -n "$CPP" && test -d "$CPP"; then
4447 CPP=
4448fi
4449if test -z "$CPP"; then
81ecdfbb
RW
4450 if test "${ac_cv_prog_CPP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
7357c5b6
AM
4452else
4453 # Double quotes because CPP needs to be expanded
4454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4455 do
4456 ac_preproc_ok=false
4457for ac_c_preproc_warn_flag in '' yes
4458do
4459 # Use a header file that comes with gcc, so configuring glibc
4460 # with a fresh cross-compiler works.
4461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462 # <limits.h> exists even on freestanding compilers.
4463 # On the NeXT, cc -E runs the code through the compiler's parser,
4464 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4466/* end confdefs.h. */
4467#ifdef __STDC__
4468# include <limits.h>
4469#else
4470# include <assert.h>
4471#endif
4472 Syntax error
4473_ACEOF
81ecdfbb 4474if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4475
81ecdfbb 4476else
7357c5b6
AM
4477 # Broken: fails on valid input.
4478continue
4479fi
4480rm -f conftest.err conftest.$ac_ext
d7040cdb 4481
81ecdfbb 4482 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4483 # can be detected and how.
81ecdfbb 4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4485/* end confdefs.h. */
4486#include <ac_nonexistent.h>
4487_ACEOF
81ecdfbb 4488if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4489 # Broken: success on invalid input.
4490continue
4491else
7357c5b6
AM
4492 # Passes both tests.
4493ac_preproc_ok=:
4494break
4495fi
4496rm -f conftest.err conftest.$ac_ext
d7040cdb 4497
7357c5b6
AM
4498done
4499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500rm -f conftest.err conftest.$ac_ext
81ecdfbb 4501if $ac_preproc_ok; then :
7357c5b6
AM
4502 break
4503fi
d7040cdb 4504
7357c5b6
AM
4505 done
4506 ac_cv_prog_CPP=$CPP
d7040cdb 4507
7357c5b6
AM
4508fi
4509 CPP=$ac_cv_prog_CPP
4510else
4511 ac_cv_prog_CPP=$CPP
4512fi
81ecdfbb
RW
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4514$as_echo "$CPP" >&6; }
7357c5b6
AM
4515ac_preproc_ok=false
4516for ac_c_preproc_warn_flag in '' yes
4517do
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4525/* end confdefs.h. */
4526#ifdef __STDC__
4527# include <limits.h>
4528#else
4529# include <assert.h>
4530#endif
4531 Syntax error
4532_ACEOF
81ecdfbb 4533if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4534
81ecdfbb 4535else
7357c5b6
AM
4536 # Broken: fails on valid input.
4537continue
4538fi
4539rm -f conftest.err conftest.$ac_ext
d7040cdb 4540
81ecdfbb 4541 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4542 # can be detected and how.
81ecdfbb 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4544/* end confdefs.h. */
4545#include <ac_nonexistent.h>
4546_ACEOF
81ecdfbb 4547if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4548 # Broken: success on invalid input.
4549continue
4550else
7357c5b6
AM
4551 # Passes both tests.
4552ac_preproc_ok=:
4553break
4554fi
4555rm -f conftest.err conftest.$ac_ext
d7040cdb 4556
7357c5b6
AM
4557done
4558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4560if $ac_preproc_ok; then :
4561
7357c5b6 4562else
81ecdfbb
RW
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565as_fn_error "C preprocessor \"$CPP\" fails sanity check
4566See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4567fi
ac48eca1 4568
7357c5b6
AM
4569ac_ext=c
4570ac_cpp='$CPP $CPPFLAGS'
4571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4574
ac48eca1 4575
81ecdfbb
RW
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4577$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578if test "${ac_cv_path_GREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
7357c5b6 4580else
81ecdfbb
RW
4581 if test -z "$GREP"; then
4582 ac_path_GREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in grep ggrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593# Check for GNU ac_path_GREP and select it if it is found.
4594 # Check for GNU $ac_path_GREP
4595case `"$ac_path_GREP" --version 2>&1` in
4596*GNU*)
4597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4598*)
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4602 do
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'GREP' >> "conftest.nl"
4607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_GREP="$ac_path_GREP"
4613 ac_path_GREP_max=$ac_count
7357c5b6 4614 fi
81ecdfbb
RW
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619esac
4620
4621 $ac_path_GREP_found && break 3
4622 done
4623 done
4624 done
4625IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_GREP"; then
4627 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 fi
4629else
4630 ac_cv_path_GREP=$GREP
7357c5b6 4631fi
81ecdfbb
RW
4632
4633fi
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4635$as_echo "$ac_cv_path_GREP" >&6; }
4636 GREP="$ac_cv_path_GREP"
ac48eca1 4637
d7040cdb 4638
81ecdfbb
RW
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4640$as_echo_n "checking for egrep... " >&6; }
4641if test "${ac_cv_path_EGREP+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
7357c5b6 4643else
81ecdfbb
RW
4644 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4645 then ac_cv_path_EGREP="$GREP -E"
4646 else
4647 if test -z "$EGREP"; then
4648 ac_path_EGREP_found=false
4649 # Loop through the user's path and test for each of PROGNAME-LIST
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in egrep; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4658 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4659# Check for GNU ac_path_EGREP and select it if it is found.
4660 # Check for GNU $ac_path_EGREP
4661case `"$ac_path_EGREP" --version 2>&1` in
4662*GNU*)
4663 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664*)
4665 ac_count=0
4666 $as_echo_n 0123456789 >"conftest.in"
4667 while :
4668 do
4669 cat "conftest.in" "conftest.in" >"conftest.tmp"
4670 mv "conftest.tmp" "conftest.in"
4671 cp "conftest.in" "conftest.nl"
4672 $as_echo 'EGREP' >> "conftest.nl"
4673 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675 as_fn_arith $ac_count + 1 && ac_count=$as_val
4676 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4677 # Best one so far, save it but keep looking for a better one
4678 ac_cv_path_EGREP="$ac_path_EGREP"
4679 ac_path_EGREP_max=$ac_count
4680 fi
4681 # 10*(2^10) chars as input seems more than enough
4682 test $ac_count -gt 10 && break
4683 done
4684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685esac
4686
4687 $ac_path_EGREP_found && break 3
4688 done
4689 done
4690 done
4691IFS=$as_save_IFS
4692 if test -z "$ac_cv_path_EGREP"; then
4693 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4694 fi
4695else
4696 ac_cv_path_EGREP=$EGREP
4697fi
4698
4699 fi
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4702$as_echo "$ac_cv_path_EGREP" >&6; }
4703 EGREP="$ac_cv_path_EGREP"
4704
4705
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4707$as_echo_n "checking for ANSI C header files... " >&6; }
4708if test "${ac_cv_header_stdc+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710else
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4712/* end confdefs.h. */
4713#include <stdlib.h>
4714#include <stdarg.h>
4715#include <string.h>
4716#include <float.h>
d7040cdb 4717
7357c5b6
AM
4718int
4719main ()
4720{
d7040cdb 4721
7357c5b6
AM
4722 ;
4723 return 0;
4724}
4725_ACEOF
81ecdfbb 4726if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4727 ac_cv_header_stdc=yes
4728else
81ecdfbb 4729 ac_cv_header_stdc=no
7357c5b6 4730fi
81ecdfbb 4731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4732
7357c5b6
AM
4733if test $ac_cv_header_stdc = yes; then
4734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4736/* end confdefs.h. */
4737#include <string.h>
d7040cdb 4738
7357c5b6
AM
4739_ACEOF
4740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4741 $EGREP "memchr" >/dev/null 2>&1; then :
4742
ce2cded5 4743else
7357c5b6
AM
4744 ac_cv_header_stdc=no
4745fi
4746rm -f conftest*
d7040cdb 4747
7357c5b6 4748fi
d7040cdb 4749
7357c5b6
AM
4750if test $ac_cv_header_stdc = yes; then
4751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4753/* end confdefs.h. */
4754#include <stdlib.h>
ac48eca1 4755
7357c5b6
AM
4756_ACEOF
4757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4758 $EGREP "free" >/dev/null 2>&1; then :
4759
7357c5b6
AM
4760else
4761 ac_cv_header_stdc=no
4762fi
4763rm -f conftest*
d7040cdb 4764
7357c5b6 4765fi
d7040cdb 4766
7357c5b6
AM
4767if test $ac_cv_header_stdc = yes; then
4768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4769 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4770 :
4771else
81ecdfbb 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4773/* end confdefs.h. */
4774#include <ctype.h>
81ecdfbb 4775#include <stdlib.h>
7357c5b6
AM
4776#if ((' ' & 0x0FF) == 0x020)
4777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4779#else
4780# define ISLOWER(c) \
4781 (('a' <= (c) && (c) <= 'i') \
4782 || ('j' <= (c) && (c) <= 'r') \
4783 || ('s' <= (c) && (c) <= 'z'))
4784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4785#endif
d7040cdb 4786
7357c5b6
AM
4787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4788int
4789main ()
4790{
4791 int i;
4792 for (i = 0; i < 256; i++)
4793 if (XOR (islower (i), ISLOWER (i))
4794 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4795 return 2;
4796 return 0;
7357c5b6
AM
4797}
4798_ACEOF
81ecdfbb 4799if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4800
81ecdfbb
RW
4801else
4802 ac_cv_header_stdc=no
7357c5b6 4803fi
81ecdfbb
RW
4804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4805 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4806fi
81ecdfbb 4807
7357c5b6
AM
4808fi
4809fi
81ecdfbb
RW
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4811$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4812if test $ac_cv_header_stdc = yes; then
d7040cdb 4813
81ecdfbb 4814$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4815
7357c5b6 4816fi
d7040cdb 4817
7357c5b6 4818# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4819for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4820 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4821do :
4822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4823ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4824"
4825eval as_val=\$$as_ac_Header
4826 if test "x$as_val" = x""yes; then :
7357c5b6 4827 cat >>confdefs.h <<_ACEOF
81ecdfbb 4828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4829_ACEOF
ce2cded5 4830
7357c5b6 4831fi
ce2cded5 4832
7357c5b6 4833done
ce2cded5
L
4834
4835
4836
81ecdfbb
RW
4837 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4838if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4839 MINIX=yes
4840else
4841 MINIX=
4842fi
d7040cdb
SE
4843
4844
7357c5b6 4845 if test "$MINIX" = yes; then
d7040cdb 4846
81ecdfbb 4847$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
4848
4849
81ecdfbb 4850$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4851
4852
81ecdfbb 4853$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4854
7357c5b6 4855 fi
d7040cdb
SE
4856
4857
81ecdfbb
RW
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4859$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4860if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
ac48eca1 4862else
81ecdfbb 4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4864/* end confdefs.h. */
ac48eca1 4865
7357c5b6
AM
4866# define __EXTENSIONS__ 1
4867 $ac_includes_default
4868int
4869main ()
4870{
13b2be9c 4871
7357c5b6
AM
4872 ;
4873 return 0;
4874}
4875_ACEOF
81ecdfbb 4876if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4877 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4878else
81ecdfbb 4879 ac_cv_safe_to_define___extensions__=no
d6d788bd 4880fi
81ecdfbb 4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4882fi
81ecdfbb
RW
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4884$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4885 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4886 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 4887
81ecdfbb 4888 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 4889
81ecdfbb 4890 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 4891
81ecdfbb 4892 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 4893
81ecdfbb 4894 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 4895
a74801ba 4896
d053aef8 4897
81ecdfbb 4898
da2f07f1 4899
718a6fd8
SE
4900case `pwd` in
4901 *\ * | *\ *)
81ecdfbb
RW
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4903$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4904esac
13b2be9c 4905
252b5132 4906
7357c5b6 4907
f2c621e4
AS
4908macro_version='2.2.7a'
4909macro_revision='1.3134'
7357c5b6
AM
4910
4911
4912
4913
4914
4915
7357c5b6
AM
4916
4917
4918
4919
4920
4921
4922
718a6fd8 4923ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4924
3725885a
RW
4925# Backslashify metacharacters that are still active within
4926# double-quoted strings.
4927sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4928
4929# Same as above, but do not quote variable references.
4930double_quote_subst='s/\(["`\\]\)/\\\1/g'
4931
4932# Sed substitution to delay expansion of an escaped shell variable in a
4933# double_quote_subst'ed string.
4934delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4935
4936# Sed substitution to delay expansion of an escaped single quote.
4937delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4938
4939# Sed substitution to avoid accidental globbing in evaled expressions
4940no_glob_subst='s/\*/\\\*/g'
4941
4942ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4944ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4945
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4947$as_echo_n "checking how to print strings... " >&6; }
4948# Test print first, because it will be a builtin if present.
f2c621e4 4949if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4950 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4951 ECHO='print -r --'
4952elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4953 ECHO='printf %s\n'
4954else
4955 # Use this function as a fallback that always works.
4956 func_fallback_echo ()
4957 {
4958 eval 'cat <<_LTECHO_EOF
4959$1
4960_LTECHO_EOF'
4961 }
4962 ECHO='func_fallback_echo'
4963fi
4964
4965# func_echo_all arg...
4966# Invoke $ECHO with all args, space-separated.
4967func_echo_all ()
4968{
4969 $ECHO ""
4970}
4971
4972case "$ECHO" in
4973 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4974$as_echo "printf" >&6; } ;;
4975 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4976$as_echo "print -r" >&6; } ;;
4977 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4978$as_echo "cat" >&6; } ;;
4979esac
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
81ecdfbb
RW
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4995$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4996if test "${ac_cv_path_SED+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5000 for ac_i in 1 2 3 4 5 6 7; do
5001 ac_script="$ac_script$as_nl$ac_script"
5002 done
5003 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5004 { ac_script=; unset ac_script;}
5005 if test -z "$SED"; then
5006 ac_path_SED_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5009for as_dir in $PATH
5010do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
81ecdfbb 5013 for ac_prog in sed gsed; do
7357c5b6 5014 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5015 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5016 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5017# Check for GNU ac_path_SED and select it if it is found.
5018 # Check for GNU $ac_path_SED
5019case `"$ac_path_SED" --version 2>&1` in
5020*GNU*)
5021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5022*)
5023 ac_count=0
5024 $as_echo_n 0123456789 >"conftest.in"
5025 while :
5026 do
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo '' >> "conftest.nl"
5031 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_SED_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_SED="$ac_path_SED"
5037 ac_path_SED_max=$ac_count
5038 fi
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5041 done
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043esac
5044
5045 $ac_path_SED_found && break 3
7357c5b6
AM
5046 done
5047 done
81ecdfbb 5048 done
7357c5b6 5049IFS=$as_save_IFS
81ecdfbb
RW
5050 if test -z "$ac_cv_path_SED"; then
5051 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5052 fi
81ecdfbb
RW
5053else
5054 ac_cv_path_SED=$SED
7357c5b6
AM
5055fi
5056
81ecdfbb
RW
5057fi
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5059$as_echo "$ac_cv_path_SED" >&6; }
5060 SED="$ac_cv_path_SED"
5061 rm -f conftest.sed
7357c5b6
AM
5062
5063test -z "$SED" && SED=sed
5064Xsed="$SED -e 1s/^X//"
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
81ecdfbb
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5077$as_echo_n "checking for fgrep... " >&6; }
5078if test "${ac_cv_path_FGREP+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
7357c5b6 5080else
81ecdfbb
RW
5081 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5082 then ac_cv_path_FGREP="$GREP -F"
5083 else
5084 if test -z "$FGREP"; then
5085 ac_path_FGREP_found=false
5086 # Loop through the user's path and test for each of PROGNAME-LIST
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_prog in fgrep; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5095 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5096# Check for GNU ac_path_FGREP and select it if it is found.
5097 # Check for GNU $ac_path_FGREP
5098case `"$ac_path_FGREP" --version 2>&1` in
5099*GNU*)
5100 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5101*)
5102 ac_count=0
5103 $as_echo_n 0123456789 >"conftest.in"
5104 while :
5105 do
5106 cat "conftest.in" "conftest.in" >"conftest.tmp"
5107 mv "conftest.tmp" "conftest.in"
5108 cp "conftest.in" "conftest.nl"
5109 $as_echo 'FGREP' >> "conftest.nl"
5110 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112 as_fn_arith $ac_count + 1 && ac_count=$as_val
5113 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5114 # Best one so far, save it but keep looking for a better one
5115 ac_cv_path_FGREP="$ac_path_FGREP"
5116 ac_path_FGREP_max=$ac_count
7357c5b6 5117 fi
81ecdfbb
RW
5118 # 10*(2^10) chars as input seems more than enough
5119 test $ac_count -gt 10 && break
5120 done
5121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122esac
5123
5124 $ac_path_FGREP_found && break 3
5125 done
5126 done
5127 done
5128IFS=$as_save_IFS
5129 if test -z "$ac_cv_path_FGREP"; then
5130 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5131 fi
5132else
5133 ac_cv_path_FGREP=$FGREP
7357c5b6 5134fi
81ecdfbb
RW
5135
5136 fi
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5139$as_echo "$ac_cv_path_FGREP" >&6; }
5140 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5141
5142
5143test -z "$GREP" && GREP=grep
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
81ecdfbb
RW
5163# Check whether --with-gnu-ld was given.
5164if test "${with_gnu_ld+set}" = set; then :
5165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5166else
5167 with_gnu_ld=no
81ecdfbb
RW
5168fi
5169
ce2cded5
L
5170ac_prog=ld
5171if test "$GCC" = yes; then
5172 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5174$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5175 case $host in
5176 *-*-mingw*)
5177 # gcc leaves a trailing carriage return which upsets mingw
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5179 *)
5180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5181 esac
5182 case $ac_prog in
5183 # Accept absolute paths.
5184 [\\/]* | ?:[\\/]*)
5185 re_direlt='/[^/][^/]*/\.\./'
5186 # Canonicalize the pathname of ld
5187 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5188 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5189 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5190 done
5191 test -z "$LD" && LD="$ac_prog"
5192 ;;
5193 "")
5194 # If it fails, then pretend we aren't using GCC.
5195 ac_prog=ld
5196 ;;
5197 *)
5198 # If it is relative, then search for the first ld in PATH.
5199 with_gnu_ld=unknown
5200 ;;
5201 esac
5202elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5204$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5205else
81ecdfbb
RW
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5207$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5208fi
81ecdfbb
RW
5209if test "${lt_cv_path_LD+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
ce2cded5
L
5211else
5212 if test -z "$LD"; then
5213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5214 for ac_dir in $PATH; do
5215 IFS="$lt_save_ifs"
5216 test -z "$ac_dir" && ac_dir=.
5217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5218 lt_cv_path_LD="$ac_dir/$ac_prog"
5219 # Check to see if the program is GNU ld. I'd rather use --version,
5220 # but apparently some variants of GNU ld only accept -v.
5221 # Break only if it was the GNU/non-GNU ld that we prefer.
5222 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5223 *GNU* | *'with BFD'*)
5224 test "$with_gnu_ld" != no && break
5225 ;;
5226 *)
5227 test "$with_gnu_ld" != yes && break
5228 ;;
5229 esac
5230 fi
5231 done
5232 IFS="$lt_save_ifs"
5233else
5234 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5235fi
5236fi
5237
5238LD="$lt_cv_path_LD"
5239if test -n "$LD"; then
81ecdfbb
RW
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5241$as_echo "$LD" >&6; }
ce2cded5 5242else
81ecdfbb
RW
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
ce2cded5 5245fi
81ecdfbb
RW
5246test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5248$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5249if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
ce2cded5
L
5251else
5252 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5253case `$LD -v 2>&1 </dev/null` in
5254*GNU* | *'with BFD'*)
5255 lt_cv_prog_gnu_ld=yes
5256 ;;
5257*)
5258 lt_cv_prog_gnu_ld=no
5259 ;;
5260esac
5261fi
81ecdfbb
RW
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5263$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5264with_gnu_ld=$lt_cv_prog_gnu_ld
5265
5266
5267
5268
5269
5270
5271
5272
5273
81ecdfbb
RW
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5275$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5276if test "${lt_cv_path_NM+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
ce2cded5
L
5278else
5279 if test -n "$NM"; then
5280 # Let the user override the test.
5281 lt_cv_path_NM="$NM"
5282else
5283 lt_nm_to_check="${ac_tool_prefix}nm"
5284 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5285 lt_nm_to_check="$lt_nm_to_check nm"
5286 fi
5287 for lt_tmp_nm in $lt_nm_to_check; do
5288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5289 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5290 IFS="$lt_save_ifs"
5291 test -z "$ac_dir" && ac_dir=.
5292 tmp_nm="$ac_dir/$lt_tmp_nm"
5293 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5294 # Check to see if the nm accepts a BSD-compat flag.
5295 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5296 # nm: unknown option "B" ignored
5297 # Tru64's nm complains that /dev/null is an invalid object file
5298 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5299 */dev/null* | *'Invalid file or object type'*)
5300 lt_cv_path_NM="$tmp_nm -B"
5301 break
5302 ;;
5303 *)
5304 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5305 */dev/null*)
5306 lt_cv_path_NM="$tmp_nm -p"
5307 break
5308 ;;
5309 *)
5310 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5311 continue # so that we can try to find one that supports BSD flags
5312 ;;
5313 esac
5314 ;;
5315 esac
5316 fi
5317 done
5318 IFS="$lt_save_ifs"
5319 done
5320 : ${lt_cv_path_NM=no}
5321fi
5322fi
81ecdfbb
RW
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5324$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5325if test "$lt_cv_path_NM" != "no"; then
5326 NM="$lt_cv_path_NM"
5327else
5328 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5329 if test -n "$DUMPBIN"; then :
5330 # Let the user override the test.
5331 else
5332 if test -n "$ac_tool_prefix"; then
5333 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5334 do
5335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338$as_echo_n "checking for $ac_word... " >&6; }
5339if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
d7040cdb 5341else
ce2cded5
L
5342 if test -n "$DUMPBIN"; then
5343 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5352 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5354 break 2
d70c5fc7 5355 fi
d7040cdb 5356done
81ecdfbb
RW
5357 done
5358IFS=$as_save_IFS
d70c5fc7 5359
d7040cdb
SE
5360fi
5361fi
ce2cded5
L
5362DUMPBIN=$ac_cv_prog_DUMPBIN
5363if test -n "$DUMPBIN"; then
81ecdfbb
RW
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5365$as_echo "$DUMPBIN" >&6; }
bedf545c 5366else
81ecdfbb
RW
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368$as_echo "no" >&6; }
d7040cdb 5369fi
13b2be9c 5370
81ecdfbb 5371
ce2cded5
L
5372 test -n "$DUMPBIN" && break
5373 done
5374fi
5375if test -z "$DUMPBIN"; then
5376 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5377 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5378do
5379 # Extract the first word of "$ac_prog", so it can be a program name with args.
5380set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382$as_echo_n "checking for $ac_word... " >&6; }
5383if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
d7040cdb 5385else
ce2cded5
L
5386 if test -n "$ac_ct_DUMPBIN"; then
5387 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5388else
5389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5396 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5398 break 2
5399 fi
5400done
81ecdfbb
RW
5401 done
5402IFS=$as_save_IFS
ce2cded5
L
5403
5404fi
5405fi
5406ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5407if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5409$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5410else
81ecdfbb
RW
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412$as_echo "no" >&6; }
d7040cdb
SE
5413fi
5414
81ecdfbb 5415
ce2cded5
L
5416 test -n "$ac_ct_DUMPBIN" && break
5417done
13b2be9c 5418
81ecdfbb
RW
5419 if test "x$ac_ct_DUMPBIN" = x; then
5420 DUMPBIN=":"
5421 else
5422 case $cross_compiling:$ac_tool_warned in
5423yes:)
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426ac_tool_warned=yes ;;
5427esac
5428 DUMPBIN=$ac_ct_DUMPBIN
5429 fi
ce2cded5 5430fi
13b2be9c 5431
3725885a
RW
5432 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5433 *COFF*)
5434 DUMPBIN="$DUMPBIN -symbols"
5435 ;;
5436 *)
5437 DUMPBIN=:
5438 ;;
5439 esac
5440 fi
bedf545c 5441
ce2cded5
L
5442 if test "$DUMPBIN" != ":"; then
5443 NM="$DUMPBIN"
5444 fi
5445fi
5446test -z "$NM" && NM=nm
6840198f 5447
13b2be9c 5448
ac48eca1 5449
d7040cdb 5450
ce2cded5
L
5451
5452
81ecdfbb
RW
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5454$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5455if test "${lt_cv_nm_interface+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
ce2cded5
L
5457else
5458 lt_cv_nm_interface="BSD nm"
5459 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5460 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5461 (eval "$ac_compile" 2>conftest.err)
5462 cat conftest.err >&5
3725885a 5463 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5464 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5465 cat conftest.err >&5
3725885a 5466 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5467 cat conftest.out >&5
5468 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5469 lt_cv_nm_interface="MS dumpbin"
5470 fi
5471 rm -f conftest*
5472fi
81ecdfbb
RW
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5474$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5475
81ecdfbb
RW
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5477$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5478LN_S=$as_ln_s
5479if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481$as_echo "yes" >&6; }
ce2cded5 5482else
81ecdfbb
RW
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5484$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5485fi
5486
5487# find the maximum length of command line arguments
81ecdfbb
RW
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5489$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5490if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
ce2cded5
L
5492else
5493 i=0
5494 teststring="ABCD"
5495
5496 case $build_os in
5497 msdosdjgpp*)
5498 # On DJGPP, this test can blow up pretty badly due to problems in libc
5499 # (any single argument exceeding 2000 bytes causes a buffer overrun
5500 # during glob expansion). Even if it were fixed, the result of this
5501 # check would be larger than it should be.
5502 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5503 ;;
5504
5505 gnu*)
5506 # Under GNU Hurd, this test is not required because there is
5507 # no limit to the length of command line arguments.
5508 # Libtool will interpret -1 as no limit whatsoever
5509 lt_cv_sys_max_cmd_len=-1;
5510 ;;
5511
718a6fd8 5512 cygwin* | mingw* | cegcc*)
ce2cded5
L
5513 # On Win9x/ME, this test blows up -- it succeeds, but takes
5514 # about 5 minutes as the teststring grows exponentially.
5515 # Worse, since 9x/ME are not pre-emptively multitasking,
5516 # you end up with a "frozen" computer, even though with patience
5517 # the test eventually succeeds (with a max line length of 256k).
5518 # Instead, let's just punt: use the minimum linelength reported by
5519 # all of the supported platforms: 8192 (on NT/2K/XP).
5520 lt_cv_sys_max_cmd_len=8192;
5521 ;;
5522
3725885a
RW
5523 mint*)
5524 # On MiNT this can take a long time and run out of memory.
5525 lt_cv_sys_max_cmd_len=8192;
5526 ;;
5527
ce2cded5
L
5528 amigaos*)
5529 # On AmigaOS with pdksh, this test takes hours, literally.
5530 # So we just punt and use a minimum line length of 8192.
5531 lt_cv_sys_max_cmd_len=8192;
5532 ;;
5533
5534 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5535 # This has been around since 386BSD, at least. Likely further.
5536 if test -x /sbin/sysctl; then
5537 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5538 elif test -x /usr/sbin/sysctl; then
5539 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5540 else
5541 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5542 fi
5543 # And add a safety zone
5544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5546 ;;
5547
5548 interix*)
5549 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5550 lt_cv_sys_max_cmd_len=196608
5551 ;;
5552
5553 osf*)
5554 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5555 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5556 # nice to cause kernel panics so lets avoid the loop below.
5557 # First set a reasonable default.
5558 lt_cv_sys_max_cmd_len=16384
5559 #
5560 if test -x /sbin/sysconfig; then
5561 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5562 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5563 esac
5564 fi
5565 ;;
5566 sco3.2v5*)
5567 lt_cv_sys_max_cmd_len=102400
5568 ;;
5569 sysv5* | sco5v6* | sysv4.2uw2*)
5570 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5571 if test -n "$kargmax"; then
5572 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5573 else
5574 lt_cv_sys_max_cmd_len=32768
5575 fi
d7040cdb
SE
5576 ;;
5577 *)
718a6fd8
SE
5578 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5579 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5582 else
5583 # Make teststring a little bigger before we do anything with it.
5584 # a 1K string should be a reasonable start.
5585 for i in 1 2 3 4 5 6 7 8 ; do
5586 teststring=$teststring$teststring
5587 done
5588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5589 # If test is not a shell built-in, we'll probably end up computing a
5590 # maximum length that is only half of the actual maximum length, but
5591 # we can't tell.
3725885a
RW
5592 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5593 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5594 test $i != 17 # 1/2 MB should be enough
5595 do
5596 i=`expr $i + 1`
5597 teststring=$teststring$teststring
5598 done
5599 # Only check the string length outside the loop.
5600 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5601 teststring=
5602 # Add a significant safety factor because C++ compilers can tack on
5603 # massive amounts of additional arguments before passing them to the
5604 # linker. It appears as though 1/2 is a usable value.
5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5606 fi
d7040cdb
SE
5607 ;;
5608 esac
252b5132 5609
ce2cded5 5610fi
d6d788bd 5611
ce2cded5 5612if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5614$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5615else
81ecdfbb
RW
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5617$as_echo "none" >&6; }
ce2cded5
L
5618fi
5619max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5620
d6d788bd 5621
13b2be9c 5622
13b2be9c 5623
bedf545c 5624
252b5132 5625
ce2cded5
L
5626: ${CP="cp -f"}
5627: ${MV="mv -f"}
5628: ${RM="rm -f"}
d6d788bd 5629
81ecdfbb
RW
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5631$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
5632# Try some XSI features
5633xsi_shell=no
5634( _lt_dummy="a/b/c"
f2c621e4
AS
5635 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5636 = c,a/b,, \
718a6fd8
SE
5637 && eval 'test $(( 1 + 1 )) -eq 2 \
5638 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 5639 && xsi_shell=yes
81ecdfbb
RW
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5641$as_echo "$xsi_shell" >&6; }
bedf545c 5642
bedf545c 5643
81ecdfbb
RW
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5645$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
5646lt_shell_append=no
5647( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5648 >/dev/null 2>&1 \
5649 && lt_shell_append=yes
81ecdfbb
RW
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5651$as_echo "$lt_shell_append" >&6; }
252b5132 5652
d6d788bd 5653
ce2cded5
L
5654if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5655 lt_unset=unset
5656else
5657 lt_unset=false
5658fi
13b2be9c
DJ
5659
5660
5661
5662
d6d788bd 5663
ce2cded5
L
5664# test EBCDIC or ASCII
5665case `echo X|tr X '\101'` in
5666 A) # ASCII based system
5667 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5668 lt_SP2NL='tr \040 \012'
5669 lt_NL2SP='tr \015\012 \040\040'
5670 ;;
5671 *) # EBCDIC based system
5672 lt_SP2NL='tr \100 \n'
5673 lt_NL2SP='tr \r\n \100\100'
5674 ;;
5675esac
c43a438d 5676
c43a438d 5677
c43a438d 5678
252b5132 5679
ad22bfe8 5680
1ad12f97 5681
1ad12f97 5682
9e9b66a9 5683
1ad12f97 5684
81ecdfbb
RW
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5686$as_echo_n "checking for $LD option to reload object files... " >&6; }
5687if test "${lt_cv_ld_reload_flag+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
ce2cded5
L
5689else
5690 lt_cv_ld_reload_flag='-r'
5691fi
81ecdfbb
RW
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5693$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
5694reload_flag=$lt_cv_ld_reload_flag
5695case $reload_flag in
5696"" | " "*) ;;
5697*) reload_flag=" $reload_flag" ;;
5698esac
5699reload_cmds='$LD$reload_flag -o $output$reload_objs'
5700case $host_os in
5701 darwin*)
5702 if test "$GCC" = yes; then
5703 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5704 else
5705 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5706 fi
5707 ;;
5708esac
a541e3ce 5709
9e9b66a9 5710
a2d91340 5711
d6d788bd 5712
9e9b66a9
AM
5713
5714
5715
d6d788bd 5716
252b5132 5717
718a6fd8
SE
5718if test -n "$ac_tool_prefix"; then
5719 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5720set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
5723if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
718a6fd8
SE
5725else
5726 if test -n "$OBJDUMP"; then
5727 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5736 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5738 break 2
5739 fi
5740done
81ecdfbb
RW
5741 done
5742IFS=$as_save_IFS
718a6fd8
SE
5743
5744fi
5745fi
5746OBJDUMP=$ac_cv_prog_OBJDUMP
5747if test -n "$OBJDUMP"; then
81ecdfbb
RW
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5749$as_echo "$OBJDUMP" >&6; }
718a6fd8 5750else
81ecdfbb
RW
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
718a6fd8
SE
5753fi
5754
81ecdfbb 5755
718a6fd8
SE
5756fi
5757if test -z "$ac_cv_prog_OBJDUMP"; then
5758 ac_ct_OBJDUMP=$OBJDUMP
5759 # Extract the first word of "objdump", so it can be a program name with args.
5760set dummy objdump; ac_word=$2
81ecdfbb
RW
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
718a6fd8
SE
5765else
5766 if test -n "$ac_ct_OBJDUMP"; then
5767 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5776 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5778 break 2
5779 fi
5780done
81ecdfbb
RW
5781 done
5782IFS=$as_save_IFS
718a6fd8 5783
718a6fd8
SE
5784fi
5785fi
5786ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5787if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5789$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5790else
81ecdfbb
RW
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792$as_echo "no" >&6; }
718a6fd8
SE
5793fi
5794
81ecdfbb
RW
5795 if test "x$ac_ct_OBJDUMP" = x; then
5796 OBJDUMP="false"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799yes:)
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802ac_tool_warned=yes ;;
5803esac
5804 OBJDUMP=$ac_ct_OBJDUMP
5805 fi
718a6fd8
SE
5806else
5807 OBJDUMP="$ac_cv_prog_OBJDUMP"
5808fi
5809
5810test -z "$OBJDUMP" && OBJDUMP=objdump
5811
5812
5813
5814
5815
5816
5817
5818
13b2be9c 5819
81ecdfbb
RW
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5821$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5822if test "${lt_cv_deplibs_check_method+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
d7040cdb 5824else
ce2cded5
L
5825 lt_cv_file_magic_cmd='$MAGIC_CMD'
5826lt_cv_file_magic_test_file=
5827lt_cv_deplibs_check_method='unknown'
5828# Need to set the preceding variable on all platforms that support
5829# interlibrary dependencies.
5830# 'none' -- dependencies not supported.
5831# `unknown' -- same as none, but documents that we really don't know.
5832# 'pass_all' -- all dependencies passed with no checks.
5833# 'test_compile' -- check by making test program.
5834# 'file_magic [[regex]]' -- check by looking for files in library path
5835# which responds to the $file_magic_cmd with a given extended regex.
5836# If you have `file' or equivalent on your system and you're not sure
5837# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 5838
ce2cded5 5839case $host_os in
50e7d84b 5840aix[4-9]*)
ce2cded5
L
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
d7040cdb 5843
ce2cded5
L
5844beos*)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
d7040cdb 5847
ce2cded5
L
5848bsdi[45]*)
5849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5850 lt_cv_file_magic_cmd='/usr/bin/file -L'
5851 lt_cv_file_magic_test_file=/shlib/libc.so
5852 ;;
d7040cdb 5853
ce2cded5
L
5854cygwin*)
5855 # func_win32_libid is a shell function defined in ltmain.sh
5856 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5857 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5858 ;;
ce2cded5
L
5859
5860mingw* | pw32*)
5861 # Base MSYS/MinGW do not provide the 'file' command needed by
5862 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5863 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5864 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5865 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
5866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5867 lt_cv_file_magic_cmd='func_win32_libid'
5868 else
f2c621e4 5869 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ce2cded5
L
5870 lt_cv_file_magic_cmd='$OBJDUMP -f'
5871 fi
d7040cdb 5872 ;;
ce2cded5 5873
3725885a 5874cegcc*)
718a6fd8
SE
5875 # use the weaker test based on 'objdump'. See mingw*.
5876 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5877 lt_cv_file_magic_cmd='$OBJDUMP -f'
5878 ;;
5879
ce2cded5
L
5880darwin* | rhapsody*)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883
5884freebsd* | dragonfly*)
5885 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5886 case $host_cpu in
5887 i*86 )
5888 # Not sure whether the presence of OpenBSD here was a mistake.
5889 # Let's accept both of them until this is cleared up.
5890 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5891 lt_cv_file_magic_cmd=/usr/bin/file
5892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5893 ;;
5894 esac
5895 else
5896 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5897 fi
5898 ;;
ce2cded5
L
5899
5900gnu*)
5901 lt_cv_deplibs_check_method=pass_all
d7040cdb 5902 ;;
ce2cded5 5903
3725885a
RW
5904haiku*)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907
ce2cded5
L
5908hpux10.20* | hpux11*)
5909 lt_cv_file_magic_cmd=/usr/bin/file
5910 case $host_cpu in
5911 ia64*)
5912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5913 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5914 ;;
5915 hppa*64*)
3725885a 5916 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
5917 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5918 ;;
5919 *)
3725885a 5920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
5921 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5922 ;;
5923 esac
d7040cdb 5924 ;;
ce2cded5
L
5925
5926interix[3-9]*)
5927 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5929 ;;
ce2cded5
L
5930
5931irix5* | irix6* | nonstopux*)
5932 case $LD in
5933 *-32|*"-32 ") libmagic=32-bit;;
5934 *-n32|*"-n32 ") libmagic=N32;;
5935 *-64|*"-64 ") libmagic=64-bit;;
5936 *) libmagic=never-match;;
5937 esac
5938 lt_cv_deplibs_check_method=pass_all
d7040cdb 5939 ;;
ce2cded5
L
5940
5941# This must be Linux ELF.
58e24671 5942linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 5943 lt_cv_deplibs_check_method=pass_all
d7040cdb 5944 ;;
ce2cded5
L
5945
5946netbsd*)
5947 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5949 else
5950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5951 fi
d7040cdb 5952 ;;
ce2cded5
L
5953
5954newos6*)
5955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5956 lt_cv_file_magic_cmd=/usr/bin/file
5957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 5958 ;;
76a27922 5959
ce2cded5
L
5960*nto* | *qnx*)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
d6d788bd 5963
ce2cded5
L
5964openbsd*)
5965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5967 else
5968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969 fi
5970 ;;
44f2f9d2 5971
ce2cded5
L
5972osf3* | osf4* | osf5*)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
44f2f9d2 5975
ce2cded5
L
5976rdos*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980solaris*)
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983
5984sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988sysv4 | sysv4.3*)
5989 case $host_vendor in
5990 motorola)
5991 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]'
5992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5993 ;;
5994 ncr)
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997 sequent)
5998 lt_cv_file_magic_cmd='/bin/file'
5999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6000 ;;
6001 sni)
6002 lt_cv_file_magic_cmd='/bin/file'
6003 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6004 lt_cv_file_magic_test_file=/lib/libc.so
6005 ;;
6006 siemens)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009 pc)
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012 esac
6013 ;;
6014
6015tpf*)
6016 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6017 ;;
6018esac
6019
ce2cded5 6020fi
81ecdfbb
RW
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6022$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6023file_magic_cmd=$lt_cv_file_magic_cmd
6024deplibs_check_method=$lt_cv_deplibs_check_method
6025test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6026
d7040cdb 6027
d7040cdb 6028
d7040cdb 6029
d7040cdb 6030
44f2f9d2 6031
d7040cdb 6032
d7040cdb 6033
d7040cdb 6034
d7040cdb 6035
44f2f9d2 6036
d7040cdb 6037
ce2cded5 6038if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6040set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if test "${ac_cv_prog_AR+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
ce2cded5
L
6045else
6046 if test -n "$AR"; then
6047 ac_cv_prog_AR="$AR" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6056 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6058 break 2
d7040cdb
SE
6059 fi
6060done
81ecdfbb
RW
6061 done
6062IFS=$as_save_IFS
44f2f9d2 6063
ce2cded5
L
6064fi
6065fi
6066AR=$ac_cv_prog_AR
6067if test -n "$AR"; then
81ecdfbb
RW
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6069$as_echo "$AR" >&6; }
ce2cded5 6070else
81ecdfbb
RW
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
44f2f9d2 6073fi
d7040cdb 6074
81ecdfbb 6075
d7040cdb 6076fi
f2c621e4 6077if test -z "$ac_cv_prog_AR"; then
ce2cded5 6078 ac_ct_AR=$AR
f2c621e4
AS
6079 # Extract the first word of "ar", so it can be a program name with args.
6080set dummy ar; ac_word=$2
81ecdfbb
RW
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082$as_echo_n "checking for $ac_word... " >&6; }
6083if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
44f2f9d2 6085else
ce2cded5
L
6086 if test -n "$ac_ct_AR"; then
6087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6096 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6098 break 2
6099 fi
6100done
81ecdfbb
RW
6101 done
6102IFS=$as_save_IFS
ce2cded5 6103
ce2cded5
L
6104fi
6105fi
6106ac_ct_AR=$ac_cv_prog_ac_ct_AR
6107if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6109$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6110else
81ecdfbb
RW
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
d7040cdb 6113fi
44f2f9d2 6114
81ecdfbb
RW
6115 if test "x$ac_ct_AR" = x; then
6116 AR="false"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119yes:)
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122ac_tool_warned=yes ;;
6123esac
6124 AR=$ac_ct_AR
6125 fi
df7b86aa 6126else
f2c621e4
AS
6127 AR="$ac_cv_prog_AR"
6128fi
df7b86aa 6129
f2c621e4
AS
6130test -z "$AR" && AR=ar
6131test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6132
df7b86aa 6133
df7b86aa 6134
df7b86aa 6135
df7b86aa
NC
6136
6137
6138
6139
6140
6141
d7040cdb 6142
ce2cded5
L
6143if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6145set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147$as_echo_n "checking for $ac_word... " >&6; }
6148if test "${ac_cv_prog_STRIP+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
ce2cded5
L
6150else
6151 if test -n "$STRIP"; then
6152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6153else
6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6163 break 2
6164 fi
6165done
81ecdfbb
RW
6166 done
6167IFS=$as_save_IFS
d7040cdb 6168
ce2cded5
L
6169fi
6170fi
6171STRIP=$ac_cv_prog_STRIP
6172if test -n "$STRIP"; then
81ecdfbb
RW
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6174$as_echo "$STRIP" >&6; }
ce2cded5 6175else
81ecdfbb
RW
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177$as_echo "no" >&6; }
ce2cded5 6178fi
d7040cdb 6179
81ecdfbb 6180
ce2cded5
L
6181fi
6182if test -z "$ac_cv_prog_STRIP"; then
6183 ac_ct_STRIP=$STRIP
6184 # Extract the first word of "strip", so it can be a program name with args.
6185set dummy strip; ac_word=$2
81ecdfbb
RW
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187$as_echo_n "checking for $ac_word... " >&6; }
6188if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
ce2cded5
L
6190else
6191 if test -n "$ac_ct_STRIP"; then
6192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6201 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6203 break 2
6204 fi
6205done
81ecdfbb
RW
6206 done
6207IFS=$as_save_IFS
d7040cdb 6208
ce2cded5
L
6209fi
6210fi
6211ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6212if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6214$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6215else
81ecdfbb
RW
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217$as_echo "no" >&6; }
ce2cded5 6218fi
d7040cdb 6219
81ecdfbb
RW
6220 if test "x$ac_ct_STRIP" = x; then
6221 STRIP=":"
6222 else
6223 case $cross_compiling:$ac_tool_warned in
6224yes:)
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227ac_tool_warned=yes ;;
6228esac
6229 STRIP=$ac_ct_STRIP
6230 fi
ce2cded5
L
6231else
6232 STRIP="$ac_cv_prog_STRIP"
6233fi
d7040cdb 6234
ce2cded5 6235test -z "$STRIP" && STRIP=:
d7040cdb 6236
d7040cdb 6237
d7040cdb 6238
d7040cdb 6239
d7040cdb 6240
d7040cdb 6241
ce2cded5
L
6242if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if test "${ac_cv_prog_RANLIB+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
44f2f9d2 6249else
ce2cded5
L
6250 if test -n "$RANLIB"; then
6251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6262 break 2
6263 fi
6264done
81ecdfbb
RW
6265 done
6266IFS=$as_save_IFS
44f2f9d2 6267
d7040cdb 6268fi
44f2f9d2 6269fi
ce2cded5
L
6270RANLIB=$ac_cv_prog_RANLIB
6271if test -n "$RANLIB"; then
81ecdfbb
RW
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6273$as_echo "$RANLIB" >&6; }
ce2cded5 6274else
81ecdfbb
RW
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
ce2cded5 6277fi
d7040cdb 6278
81ecdfbb 6279
d7040cdb 6280fi
ce2cded5
L
6281if test -z "$ac_cv_prog_RANLIB"; then
6282 ac_ct_RANLIB=$RANLIB
6283 # Extract the first word of "ranlib", so it can be a program name with args.
6284set dummy ranlib; ac_word=$2
81ecdfbb
RW
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
44f2f9d2 6289else
ce2cded5
L
6290 if test -n "$ac_ct_RANLIB"; then
6291 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
d7040cdb 6295do
ce2cded5
L
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6300 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6302 break 2
d7040cdb 6303 fi
ce2cded5 6304done
81ecdfbb
RW
6305 done
6306IFS=$as_save_IFS
ce2cded5 6307
d7040cdb 6308fi
ce2cded5
L
6309fi
6310ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6311if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6313$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6314else
81ecdfbb
RW
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
44f2f9d2 6317fi
44f2f9d2 6318
81ecdfbb
RW
6319 if test "x$ac_ct_RANLIB" = x; then
6320 RANLIB=":"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326ac_tool_warned=yes ;;
6327esac
6328 RANLIB=$ac_ct_RANLIB
6329 fi
d7040cdb 6330else
ce2cded5 6331 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6332fi
252b5132 6333
ce2cded5 6334test -z "$RANLIB" && RANLIB=:
252b5132 6335
252b5132 6336
ae57792d 6337
252b5132 6338
13b2be9c 6339
14ee9f48 6340
ce2cded5 6341# Determine commands to create old-style static archives.
718a6fd8 6342old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6343old_postinstall_cmds='chmod 644 $oldlib'
6344old_postuninstall_cmds=
14ee9f48 6345
ce2cded5
L
6346if test -n "$RANLIB"; then
6347 case $host_os in
6348 openbsd*)
6349 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6350 ;;
6351 *)
6352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6353 ;;
6354 esac
6355 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6356fi
14ee9f48 6357
3725885a
RW
6358case $host_os in
6359 darwin*)
6360 lock_old_archive_extraction=yes ;;
6361 *)
6362 lock_old_archive_extraction=no ;;
6363esac
6364
6365
6366
6367
6368
6369
f8fc3443 6370
f8fc3443 6371
252b5132 6372
85fbca6a 6373
85fbca6a 6374
13b2be9c 6375
13b2be9c 6376
d7040cdb 6377
d7040cdb
SE
6378
6379
6380
252b5132 6381
93fbbb04 6382
93fbbb04 6383
d70c5fc7 6384
e0001a05 6385
252b5132 6386
252b5132 6387
252b5132 6388
252b5132 6389
252b5132 6390
3bcbcc3d 6391
252b5132 6392
252b5132 6393
252b5132 6394
15886821 6395
252b5132 6396
252b5132 6397
13b2be9c
DJ
6398
6399
252b5132 6400
252b5132 6401
d6d788bd 6402
ce2cded5
L
6403# If no C compiler was specified, use CC.
6404LTCC=${LTCC-"$CC"}
252b5132 6405
ce2cded5
L
6406# If no C compiler flags were specified, use CFLAGS.
6407LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6408
ce2cded5
L
6409# Allow CC to be a program name with arguments.
6410compiler=$CC
252b5132 6411
252b5132 6412
ce2cded5 6413# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6415$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6416if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
ce2cded5 6418else
252b5132 6419
ce2cded5
L
6420# These are sane defaults that work on at least a few old systems.
6421# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6422
ce2cded5
L
6423# Character class describing NM global symbol codes.
6424symcode='[BCDEGRST]'
252b5132 6425
ce2cded5
L
6426# Regexp to match symbols that can be accessed directly from C.
6427sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6428
ce2cded5
L
6429# Define system-specific variables.
6430case $host_os in
6431aix*)
6432 symcode='[BCDT]'
6433 ;;
718a6fd8 6434cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6435 symcode='[ABCDGISTW]'
6436 ;;
6437hpux*)
6438 if test "$host_cpu" = ia64; then
6439 symcode='[ABCDEGRST]'
6440 fi
6441 ;;
6442irix* | nonstopux*)
6443 symcode='[BCDEGRST]'
6444 ;;
6445osf*)
6446 symcode='[BCDEGQRST]'
6447 ;;
6448solaris*)
6449 symcode='[BDRT]'
6450 ;;
6451sco3.2v5*)
6452 symcode='[DT]'
6453 ;;
6454sysv4.2uw2*)
6455 symcode='[DT]'
6456 ;;
6457sysv5* | sco5v6* | unixware* | OpenUNIX*)
6458 symcode='[ABDT]'
6459 ;;
6460sysv4)
6461 symcode='[DFNSTU]'
6462 ;;
6463esac
6464
6465# If we're using GNU nm, then use its standard symbol codes.
6466case `$NM -V 2>&1` in
6467*GNU* | *'with BFD'*)
6468 symcode='[ABCDGIRSTW]' ;;
6469esac
252b5132 6470
ce2cded5
L
6471# Transform an extracted symbol line into a proper C declaration.
6472# Some systems (esp. on ia64) link data and code symbols differently,
6473# so use this general approach.
6474lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6475
ce2cded5 6476# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6477lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6478lt_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 6479
7357c5b6
AM
6480# Handle CRLF in mingw tool chain
6481opt_cr=
6482case $build_os in
6483mingw*)
6484 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6485 ;;
6486esac
d7040cdb 6487
7357c5b6
AM
6488# Try without a prefix underscore, then with it.
6489for ac_symprfx in "" "_"; do
d7040cdb 6490
7357c5b6
AM
6491 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6492 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6493
7357c5b6
AM
6494 # Write the raw and C identifiers.
6495 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6496 # Fake it for dumpbin and say T for any non-static function
6497 # and D for any global variable.
6498 # Also find C++ and __fastcall symbols from MSVC++,
6499 # which start with @ or ?.
6500 lt_cv_sys_global_symbol_pipe="$AWK '"\
6501" {last_section=section; section=\$ 3};"\
6502" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6503" \$ 0!~/External *\|/{next};"\
6504" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6505" {if(hide[section]) next};"\
6506" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6507" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6508" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6509" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6510" ' prfx=^$ac_symprfx"
6511 else
6512 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6513 fi
d7040cdb 6514
7357c5b6
AM
6515 # Check to see that the pipe works correctly.
6516 pipe_works=no
d7040cdb 6517
7357c5b6
AM
6518 rm -f conftest*
6519 cat > conftest.$ac_ext <<_LT_EOF
6520#ifdef __cplusplus
6521extern "C" {
6522#endif
6523char nm_test_var;
6524void nm_test_func(void);
6525void nm_test_func(void){}
6526#ifdef __cplusplus
ce2cded5 6527}
7357c5b6
AM
6528#endif
6529int main(){nm_test_var='a';nm_test_func();return(0);}
6530_LT_EOF
6531
81ecdfbb 6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6533 (eval $ac_compile) 2>&5
ce2cded5 6534 ac_status=$?
81ecdfbb
RW
6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536 test $ac_status = 0; }; then
7357c5b6
AM
6537 # Now try to grab the symbols.
6538 nlist=conftest.nm
3725885a
RW
6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6540 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6541 ac_status=$?
81ecdfbb
RW
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6544 # Try sorting and uniquifying the output.
6545 if sort "$nlist" | uniq > "$nlist"T; then
6546 mv -f "$nlist"T "$nlist"
6547 else
6548 rm -f "$nlist"T
6549 fi
13b2be9c 6550
7357c5b6
AM
6551 # Make sure that we snagged all the symbols we need.
6552 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6553 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6554 cat <<_LT_EOF > conftest.$ac_ext
6555#ifdef __cplusplus
6556extern "C" {
6557#endif
13b2be9c 6558
7357c5b6
AM
6559_LT_EOF
6560 # Now generate the symbol file.
6561 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6562
7357c5b6 6563 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6564
7357c5b6 6565/* The mapping between symbol names and symbols. */
f2c621e4 6566const struct {
7357c5b6
AM
6567 const char *name;
6568 void *address;
6569}
6570lt__PROGRAM__LTX_preloaded_symbols[] =
6571{
6572 { "@PROGRAM@", (void *) 0 },
6573_LT_EOF
6574 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6575 cat <<\_LT_EOF >> conftest.$ac_ext
6576 {0, (void *) 0}
6577};
d7040cdb 6578
7357c5b6
AM
6579/* This works around a problem in FreeBSD linker */
6580#ifdef FREEBSD_WORKAROUND
6581static const void *lt_preloaded_setup() {
6582 return lt__PROGRAM__LTX_preloaded_symbols;
6583}
ce2cded5 6584#endif
d7040cdb 6585
7357c5b6 6586#ifdef __cplusplus
ce2cded5 6587}
7357c5b6
AM
6588#endif
6589_LT_EOF
6590 # Now try linking the two files.
6591 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6592 lt_save_LIBS="$LIBS"
6593 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6594 LIBS="conftstm.$ac_objext"
6595 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6597 (eval $ac_link) 2>&5
6598 ac_status=$?
81ecdfbb
RW
6599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6601 pipe_works=yes
6602 fi
f2c621e4
AS
6603 LIBS="$lt_save_LIBS"
6604 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6605 else
6606 echo "cannot find nm_test_func in $nlist" >&5
6607 fi
6608 else
6609 echo "cannot find nm_test_var in $nlist" >&5
6610 fi
6611 else
6612 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6613 fi
6614 else
6615 echo "$progname: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6617 fi
718a6fd8 6618 rm -rf conftest* conftst*
7357c5b6
AM
6619
6620 # Do not use the global_symbol_pipe unless it works.
6621 if test "$pipe_works" = yes; then
6622 break
6623 else
6624 lt_cv_sys_global_symbol_pipe=
6625 fi
6626done
d7040cdb 6627
ce2cded5 6628fi
7357c5b6
AM
6629
6630if test -z "$lt_cv_sys_global_symbol_pipe"; then
6631 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6632fi
7357c5b6 6633if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6635$as_echo "failed" >&6; }
7357c5b6 6636else
81ecdfbb
RW
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6638$as_echo "ok" >&6; }
ce2cded5 6639fi
d7040cdb 6640
df7b86aa
NC
6641
6642
6643
d7040cdb 6644
d7040cdb 6645
d7040cdb 6646
d7040cdb 6647
d7040cdb 6648
d7040cdb 6649
d7040cdb 6650
d7040cdb 6651
d7040cdb 6652
d7040cdb 6653
d7040cdb 6654
7357c5b6
AM
6655
6656
718a6fd8
SE
6657
6658
6659
7357c5b6
AM
6660
6661
81ecdfbb
RW
6662# Check whether --enable-libtool-lock was given.
6663if test "${enable_libtool_lock+set}" = set; then :
6664 enableval=$enable_libtool_lock;
6665fi
7357c5b6 6666
7357c5b6
AM
6667test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6668
6669# Some flags need to be propagated to the compiler or linker for good
6670# libtool support.
6671case $host in
6672ia64-*-hpux*)
6673 # Find out which ABI we are using.
6674 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6676 (eval $ac_compile) 2>&5
6677 ac_status=$?
81ecdfbb
RW
6678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6679 test $ac_status = 0; }; then
7357c5b6
AM
6680 case `/usr/bin/file conftest.$ac_objext` in
6681 *ELF-32*)
6682 HPUX_IA64_MODE="32"
6683 ;;
6684 *ELF-64*)
6685 HPUX_IA64_MODE="64"
6686 ;;
6687 esac
6688 fi
6689 rm -rf conftest*
6690 ;;
6691*-*-irix6*)
6692 # Find out which ABI we are using.
3725885a 6693 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6695 (eval $ac_compile) 2>&5
6696 ac_status=$?
81ecdfbb
RW
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; }; then
7357c5b6
AM
6699 if test "$lt_cv_prog_gnu_ld" = yes; then
6700 case `/usr/bin/file conftest.$ac_objext` in
6701 *32-bit*)
6702 LD="${LD-ld} -melf32bsmip"
6703 ;;
6704 *N32*)
6705 LD="${LD-ld} -melf32bmipn32"
6706 ;;
6707 *64-bit*)
6708 LD="${LD-ld} -melf64bmip"
6709 ;;
6710 esac
6711 else
6712 case `/usr/bin/file conftest.$ac_objext` in
6713 *32-bit*)
6714 LD="${LD-ld} -32"
6715 ;;
6716 *N32*)
6717 LD="${LD-ld} -n32"
6718 ;;
6719 *64-bit*)
6720 LD="${LD-ld} -64"
6721 ;;
6722 esac
6723 fi
6724 fi
6725 rm -rf conftest*
6726 ;;
6727
cc9afea3 6728x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6729s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6730 # Find out which ABI we are using.
6731 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6733 (eval $ac_compile) 2>&5
6734 ac_status=$?
81ecdfbb
RW
6735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736 test $ac_status = 0; }; then
7357c5b6
AM
6737 case `/usr/bin/file conftest.o` in
6738 *32-bit*)
6739 case $host in
6740 x86_64-*kfreebsd*-gnu)
6741 LD="${LD-ld} -m elf_i386_fbsd"
6742 ;;
6743 x86_64-*linux*)
6d2920c8
L
6744 case `/usr/bin/file conftest.o` in
6745 *x86-64*)
6746 LD="${LD-ld} -m elf32_x86_64"
6747 ;;
6748 *)
6749 LD="${LD-ld} -m elf_i386"
6750 ;;
6751 esac
7357c5b6 6752 ;;
cc9afea3
AM
6753 powerpc64le-*linux*)
6754 LD="${LD-ld} -m elf32lppclinux"
6755 ;;
6756 powerpc64-*linux*)
7357c5b6
AM
6757 LD="${LD-ld} -m elf32ppclinux"
6758 ;;
6759 s390x-*linux*)
6760 LD="${LD-ld} -m elf_s390"
6761 ;;
6762 sparc64-*linux*)
6763 LD="${LD-ld} -m elf32_sparc"
6764 ;;
6765 esac
6766 ;;
6767 *64-bit*)
6768 case $host in
6769 x86_64-*kfreebsd*-gnu)
6770 LD="${LD-ld} -m elf_x86_64_fbsd"
6771 ;;
6772 x86_64-*linux*)
6773 LD="${LD-ld} -m elf_x86_64"
6774 ;;
cc9afea3
AM
6775 powerpcle-*linux*)
6776 LD="${LD-ld} -m elf64lppc"
6777 ;;
6778 powerpc-*linux*)
7357c5b6
AM
6779 LD="${LD-ld} -m elf64ppc"
6780 ;;
6781 s390*-*linux*|s390*-*tpf*)
6782 LD="${LD-ld} -m elf64_s390"
6783 ;;
6784 sparc*-*linux*)
6785 LD="${LD-ld} -m elf64_sparc"
6786 ;;
6787 esac
6788 ;;
6789 esac
6790 fi
6791 rm -rf conftest*
6792 ;;
6793
6794*-*-sco3.2v5*)
6795 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6796 SAVE_CFLAGS="$CFLAGS"
6797 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6799$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6800if test "${lt_cv_cc_needs_belf+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
ce2cded5 6802else
7357c5b6
AM
6803 ac_ext=c
6804ac_cpp='$CPP $CPPFLAGS'
6805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808
81ecdfbb 6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 6810/* end confdefs.h. */
d7040cdb 6811
7357c5b6
AM
6812int
6813main ()
6814{
6815
6816 ;
6817 return 0;
6818}
ce2cded5 6819_ACEOF
81ecdfbb 6820if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6821 lt_cv_cc_needs_belf=yes
ce2cded5 6822else
81ecdfbb 6823 lt_cv_cc_needs_belf=no
ce2cded5 6824fi
81ecdfbb
RW
6825rm -f core conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6827 ac_ext=c
6828ac_cpp='$CPP $CPPFLAGS'
6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6832
ce2cded5 6833fi
81ecdfbb
RW
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6835$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
6836 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6837 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6838 CFLAGS="$SAVE_CFLAGS"
6839 fi
6840 ;;
6841sparc*-*solaris*)
6842 # Find out which ABI we are using.
6843 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6845 (eval $ac_compile) 2>&5
6846 ac_status=$?
81ecdfbb
RW
6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }; then
7357c5b6
AM
6849 case `/usr/bin/file conftest.o` in
6850 *64-bit*)
6851 case $lt_cv_prog_gnu_ld in
6852 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
6853 *)
6854 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6855 LD="${LD-ld} -64"
6856 fi
6857 ;;
7357c5b6
AM
6858 esac
6859 ;;
6860 esac
6861 fi
6862 rm -rf conftest*
6863 ;;
6864esac
d7040cdb 6865
df7b86aa
NC
6866need_locks="$enable_libtool_lock"
6867
718a6fd8
SE
6868
6869 case $host_os in
6870 rhapsody* | darwin*)
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6873set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
718a6fd8
SE
6878else
6879 if test -n "$DSYMUTIL"; then
6880 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6889 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6891 break 2
6892 fi
6893done
81ecdfbb
RW
6894 done
6895IFS=$as_save_IFS
718a6fd8
SE
6896
6897fi
6898fi
6899DSYMUTIL=$ac_cv_prog_DSYMUTIL
6900if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6902$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6903else
81ecdfbb
RW
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
718a6fd8
SE
6906fi
6907
81ecdfbb 6908
718a6fd8
SE
6909fi
6910if test -z "$ac_cv_prog_DSYMUTIL"; then
6911 ac_ct_DSYMUTIL=$DSYMUTIL
6912 # Extract the first word of "dsymutil", so it can be a program name with args.
6913set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
6916if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
718a6fd8
SE
6918else
6919 if test -n "$ac_ct_DSYMUTIL"; then
6920 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6929 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6931 break 2
6932 fi
6933done
81ecdfbb
RW
6934 done
6935IFS=$as_save_IFS
718a6fd8 6936
718a6fd8
SE
6937fi
6938fi
6939ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6940if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6942$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6943else
81ecdfbb
RW
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945$as_echo "no" >&6; }
718a6fd8
SE
6946fi
6947
81ecdfbb
RW
6948 if test "x$ac_ct_DSYMUTIL" = x; then
6949 DSYMUTIL=":"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952yes:)
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955ac_tool_warned=yes ;;
6956esac
6957 DSYMUTIL=$ac_ct_DSYMUTIL
6958 fi
718a6fd8
SE
6959else
6960 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6961fi
6962
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6965set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967$as_echo_n "checking for $ac_word... " >&6; }
6968if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
718a6fd8
SE
6970else
6971 if test -n "$NMEDIT"; then
6972 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6981 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6983 break 2
6984 fi
6985done
81ecdfbb
RW
6986 done
6987IFS=$as_save_IFS
718a6fd8
SE
6988
6989fi
6990fi
6991NMEDIT=$ac_cv_prog_NMEDIT
6992if test -n "$NMEDIT"; then
81ecdfbb
RW
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6994$as_echo "$NMEDIT" >&6; }
718a6fd8 6995else
81ecdfbb
RW
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997$as_echo "no" >&6; }
718a6fd8
SE
6998fi
6999
81ecdfbb 7000
718a6fd8
SE
7001fi
7002if test -z "$ac_cv_prog_NMEDIT"; then
7003 ac_ct_NMEDIT=$NMEDIT
7004 # Extract the first word of "nmedit", so it can be a program name with args.
7005set dummy nmedit; ac_word=$2
81ecdfbb
RW
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007$as_echo_n "checking for $ac_word... " >&6; }
7008if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
718a6fd8
SE
7010else
7011 if test -n "$ac_ct_NMEDIT"; then
7012 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7021 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7023 break 2
7024 fi
7025done
81ecdfbb
RW
7026 done
7027IFS=$as_save_IFS
718a6fd8 7028
718a6fd8
SE
7029fi
7030fi
7031ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7032if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7034$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7035else
81ecdfbb
RW
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037$as_echo "no" >&6; }
718a6fd8
SE
7038fi
7039
81ecdfbb
RW
7040 if test "x$ac_ct_NMEDIT" = x; then
7041 NMEDIT=":"
7042 else
7043 case $cross_compiling:$ac_tool_warned in
7044yes:)
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047ac_tool_warned=yes ;;
7048esac
7049 NMEDIT=$ac_ct_NMEDIT
7050 fi
718a6fd8
SE
7051else
7052 NMEDIT="$ac_cv_prog_NMEDIT"
7053fi
7054
7055 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7057set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
7060if test "${ac_cv_prog_LIPO+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
718a6fd8
SE
7062else
7063 if test -n "$LIPO"; then
7064 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7073 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7075 break 2
7076 fi
7077done
81ecdfbb
RW
7078 done
7079IFS=$as_save_IFS
718a6fd8
SE
7080
7081fi
7082fi
7083LIPO=$ac_cv_prog_LIPO
7084if test -n "$LIPO"; then
81ecdfbb
RW
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7086$as_echo "$LIPO" >&6; }
718a6fd8 7087else
81ecdfbb
RW
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
718a6fd8
SE
7090fi
7091
81ecdfbb 7092
718a6fd8
SE
7093fi
7094if test -z "$ac_cv_prog_LIPO"; then
7095 ac_ct_LIPO=$LIPO
7096 # Extract the first word of "lipo", so it can be a program name with args.
7097set dummy lipo; ac_word=$2
81ecdfbb
RW
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099$as_echo_n "checking for $ac_word... " >&6; }
7100if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
718a6fd8
SE
7102else
7103 if test -n "$ac_ct_LIPO"; then
7104 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7113 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7115 break 2
7116 fi
7117done
81ecdfbb
RW
7118 done
7119IFS=$as_save_IFS
718a6fd8 7120
718a6fd8
SE
7121fi
7122fi
7123ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7124if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7126$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7127else
81ecdfbb
RW
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
718a6fd8
SE
7130fi
7131
81ecdfbb
RW
7132 if test "x$ac_ct_LIPO" = x; then
7133 LIPO=":"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139ac_tool_warned=yes ;;
7140esac
7141 LIPO=$ac_ct_LIPO
7142 fi
718a6fd8
SE
7143else
7144 LIPO="$ac_cv_prog_LIPO"
7145fi
7146
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if test "${ac_cv_prog_OTOOL+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
718a6fd8
SE
7154else
7155 if test -n "$OTOOL"; then
7156 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7165 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7167 break 2
7168 fi
7169done
81ecdfbb
RW
7170 done
7171IFS=$as_save_IFS
718a6fd8
SE
7172
7173fi
7174fi
7175OTOOL=$ac_cv_prog_OTOOL
7176if test -n "$OTOOL"; then
81ecdfbb
RW
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7178$as_echo "$OTOOL" >&6; }
718a6fd8 7179else
81ecdfbb
RW
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
718a6fd8
SE
7182fi
7183
81ecdfbb 7184
718a6fd8
SE
7185fi
7186if test -z "$ac_cv_prog_OTOOL"; then
7187 ac_ct_OTOOL=$OTOOL
7188 # Extract the first word of "otool", so it can be a program name with args.
7189set dummy otool; ac_word=$2
81ecdfbb
RW
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
718a6fd8
SE
7194else
7195 if test -n "$ac_ct_OTOOL"; then
7196 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7205 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7207 break 2
7208 fi
7209done
81ecdfbb
RW
7210 done
7211IFS=$as_save_IFS
718a6fd8 7212
718a6fd8
SE
7213fi
7214fi
7215ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7216if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7218$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7219else
81ecdfbb
RW
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
718a6fd8
SE
7222fi
7223
81ecdfbb
RW
7224 if test "x$ac_ct_OTOOL" = x; then
7225 OTOOL=":"
7226 else
7227 case $cross_compiling:$ac_tool_warned in
7228yes:)
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233 OTOOL=$ac_ct_OTOOL
7234 fi
718a6fd8
SE
7235else
7236 OTOOL="$ac_cv_prog_OTOOL"
7237fi
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7241set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243$as_echo_n "checking for $ac_word... " >&6; }
7244if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
718a6fd8
SE
7246else
7247 if test -n "$OTOOL64"; then
7248 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7249else
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7257 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7259 break 2
7260 fi
7261done
81ecdfbb
RW
7262 done
7263IFS=$as_save_IFS
718a6fd8
SE
7264
7265fi
7266fi
7267OTOOL64=$ac_cv_prog_OTOOL64
7268if test -n "$OTOOL64"; then
81ecdfbb
RW
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7270$as_echo "$OTOOL64" >&6; }
718a6fd8 7271else
81ecdfbb
RW
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273$as_echo "no" >&6; }
718a6fd8
SE
7274fi
7275
81ecdfbb 7276
718a6fd8
SE
7277fi
7278if test -z "$ac_cv_prog_OTOOL64"; then
7279 ac_ct_OTOOL64=$OTOOL64
7280 # Extract the first word of "otool64", so it can be a program name with args.
7281set dummy otool64; ac_word=$2
81ecdfbb
RW
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283$as_echo_n "checking for $ac_word... " >&6; }
7284if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
718a6fd8
SE
7286else
7287 if test -n "$ac_ct_OTOOL64"; then
7288 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7297 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7299 break 2
7300 fi
7301done
81ecdfbb
RW
7302 done
7303IFS=$as_save_IFS
718a6fd8 7304
718a6fd8
SE
7305fi
7306fi
7307ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7308if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7310$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7311else
81ecdfbb
RW
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313$as_echo "no" >&6; }
718a6fd8
SE
7314fi
7315
81ecdfbb
RW
7316 if test "x$ac_ct_OTOOL64" = x; then
7317 OTOOL64=":"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320yes:)
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323ac_tool_warned=yes ;;
7324esac
7325 OTOOL64=$ac_ct_OTOOL64
7326 fi
718a6fd8
SE
7327else
7328 OTOOL64="$ac_cv_prog_OTOOL64"
7329fi
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
81ecdfbb
RW
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7358$as_echo_n "checking for -single_module linker flag... " >&6; }
7359if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
718a6fd8
SE
7361else
7362 lt_cv_apple_cc_single_mod=no
7363 if test -z "${LT_MULTI_MODULE}"; then
7364 # By default we will add the -single_module flag. You can override
7365 # by either setting the environment variable LT_MULTI_MODULE
7366 # non-empty at configure time, or by adding -multi_module to the
7367 # link flags.
7368 rm -rf libconftest.dylib*
7369 echo "int foo(void){return 1;}" > conftest.c
7370 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371-dynamiclib -Wl,-single_module conftest.c" >&5
7372 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7373 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7374 _lt_result=$?
7375 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7376 lt_cv_apple_cc_single_mod=yes
7377 else
7378 cat conftest.err >&5
7379 fi
7380 rm -rf libconftest.dylib*
7381 rm -f conftest.*
7382 fi
7383fi
81ecdfbb
RW
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7385$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7387$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7388if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
718a6fd8
SE
7390else
7391 lt_cv_ld_exported_symbols_list=no
7392 save_LDFLAGS=$LDFLAGS
7393 echo "_main" > conftest.sym
7394 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7396/* end confdefs.h. */
7397
7398int
7399main ()
7400{
7401
7402 ;
7403 return 0;
7404}
7405_ACEOF
81ecdfbb 7406if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7407 lt_cv_ld_exported_symbols_list=yes
7408else
81ecdfbb 7409 lt_cv_ld_exported_symbols_list=no
718a6fd8 7410fi
81ecdfbb
RW
7411rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7413 LDFLAGS="$save_LDFLAGS"
7414
7415fi
81ecdfbb
RW
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7417$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7419$as_echo_n "checking for -force_load linker flag... " >&6; }
7420if test "${lt_cv_ld_force_load+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7422else
7423 lt_cv_ld_force_load=no
7424 cat > conftest.c << _LT_EOF
7425int forced_loaded() { return 2;}
7426_LT_EOF
7427 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7428 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7429 echo "$AR cru libconftest.a conftest.o" >&5
7430 $AR cru libconftest.a conftest.o 2>&5
7431 cat > conftest.c << _LT_EOF
7432int main() { return 0;}
7433_LT_EOF
7434 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7435 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7436 _lt_result=$?
7437 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7438 lt_cv_ld_force_load=yes
7439 else
7440 cat conftest.err >&5
7441 fi
7442 rm -f conftest.err libconftest.a conftest conftest.c
7443 rm -rf conftest.dSYM
7444
7445fi
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7447$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7448 case $host_os in
7449 rhapsody* | darwin1.[012])
7450 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7451 darwin1.*)
7452 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7453 darwin*) # darwin 5.x on
7454 # if running on 10.5 or later, the deployment target defaults
7455 # to the OS version, if on x86, and 10.4, the deployment
7456 # target defaults to 10.4. Don't you love it?
7457 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7458 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7459 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7460 10.[012][,.]*)
718a6fd8
SE
7461 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7462 10.*)
7463 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7464 esac
7465 ;;
7466 esac
7467 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7468 _lt_dar_single_mod='$single_module'
7469 fi
7470 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7471 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7472 else
7473 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7474 fi
3725885a 7475 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7476 _lt_dsymutil='~$DSYMUTIL $lib || :'
7477 else
7478 _lt_dsymutil=
7479 fi
7480 ;;
7481 esac
7482
718a6fd8 7483for ac_header in dlfcn.h
81ecdfbb
RW
7484do :
7485 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7486"
7487if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7488 cat >>confdefs.h <<_ACEOF
81ecdfbb 7489#define HAVE_DLFCN_H 1
718a6fd8
SE
7490_ACEOF
7491
7492fi
7493
7494done
7495
7496
7497
3725885a
RW
7498
7499
718a6fd8
SE
7500# Set options
7501
7502
7503
7504 enable_dlopen=no
7505
7506
7507 enable_win32_dll=no
7508
7509
81ecdfbb
RW
7510 # Check whether --enable-shared was given.
7511if test "${enable_shared+set}" = set; then :
7512 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7513 case $enableval in
7514 yes) enable_shared=yes ;;
7515 no) enable_shared=no ;;
7516 *)
7517 enable_shared=no
7518 # Look at the argument we got. We use all the common list separators.
7519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7520 for pkg in $enableval; do
7521 IFS="$lt_save_ifs"
7522 if test "X$pkg" = "X$p"; then
7523 enable_shared=yes
7524 fi
7525 done
7526 IFS="$lt_save_ifs"
7527 ;;
7528 esac
7529else
7530 enable_shared=yes
81ecdfbb
RW
7531fi
7532
718a6fd8
SE
7533
7534
7535
7536
7537
7538
7539
7540
81ecdfbb
RW
7541 # Check whether --enable-static was given.
7542if test "${enable_static+set}" = set; then :
7543 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7544 case $enableval in
7545 yes) enable_static=yes ;;
7546 no) enable_static=no ;;
7547 *)
7548 enable_static=no
7549 # Look at the argument we got. We use all the common list separators.
7550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7551 for pkg in $enableval; do
7552 IFS="$lt_save_ifs"
7553 if test "X$pkg" = "X$p"; then
7554 enable_static=yes
7555 fi
7556 done
7557 IFS="$lt_save_ifs"
7558 ;;
7559 esac
7560else
7561 enable_static=yes
81ecdfbb
RW
7562fi
7563
718a6fd8
SE
7564
7565
d7040cdb 7566
d7040cdb 7567
718a6fd8
SE
7568
7569
7570
7571
7572
81ecdfbb
RW
7573# Check whether --with-pic was given.
7574if test "${with_pic+set}" = set; then :
7575 withval=$with_pic; pic_mode="$withval"
ce2cded5 7576else
718a6fd8 7577 pic_mode=default
81ecdfbb
RW
7578fi
7579
d7040cdb 7580
718a6fd8
SE
7581test -z "$pic_mode" && pic_mode=default
7582
7583
7584
7585
7586
7587
7588
81ecdfbb
RW
7589 # Check whether --enable-fast-install was given.
7590if test "${enable_fast_install+set}" = set; then :
7591 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7592 case $enableval in
7593 yes) enable_fast_install=yes ;;
7594 no) enable_fast_install=no ;;
7595 *)
7596 enable_fast_install=no
7597 # Look at the argument we got. We use all the common list separators.
7598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7599 for pkg in $enableval; do
7600 IFS="$lt_save_ifs"
7601 if test "X$pkg" = "X$p"; then
7602 enable_fast_install=yes
7603 fi
7604 done
7605 IFS="$lt_save_ifs"
7606 ;;
7607 esac
ce2cded5 7608else
718a6fd8 7609 enable_fast_install=yes
81ecdfbb
RW
7610fi
7611
718a6fd8
SE
7612
7613
7614
7615
d7040cdb 7616
d7040cdb 7617
d7040cdb 7618
d7040cdb 7619
d7040cdb 7620
d7040cdb 7621
ce2cded5
L
7622# This can be used to rebuild libtool when needed
7623LIBTOOL_DEPS="$ltmain"
d7040cdb 7624
ce2cded5
L
7625# Always use our own libtool.
7626LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7627
d7040cdb 7628
d7040cdb 7629
d7040cdb
SE
7630
7631
7632
7633
7634
7635
d7040cdb 7636
d7040cdb 7637
ab509236 7638
ab509236 7639
d7040cdb
SE
7640
7641
7642
7643
7644
13b2be9c 7645
13b2be9c 7646
13b2be9c 7647
13b2be9c 7648
d7040cdb 7649
3725885a 7650
d7040cdb
SE
7651
7652
ce2cded5 7653test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7654
7655
d7040cdb 7656
d7040cdb 7657
d7040cdb
SE
7658
7659
7660
7661
7662
7663
ce2cded5
L
7664
7665
7666
7667
7668if test -n "${ZSH_VERSION+set}" ; then
7669 setopt NO_GLOB_SUBST
7670fi
7671
81ecdfbb
RW
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7673$as_echo_n "checking for objdir... " >&6; }
7674if test "${lt_cv_objdir+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
d7040cdb 7676else
ce2cded5
L
7677 rm -f .libs 2>/dev/null
7678mkdir .libs 2>/dev/null
7679if test -d .libs; then
7680 lt_cv_objdir=.libs
7681else
7682 # MS-DOS does not allow filenames that begin with a dot.
7683 lt_cv_objdir=_libs
d7040cdb 7684fi
ce2cded5
L
7685rmdir .libs 2>/dev/null
7686fi
81ecdfbb
RW
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7688$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7689objdir=$lt_cv_objdir
d7040cdb
SE
7690
7691
7692
7693
d7040cdb 7694
ce2cded5
L
7695cat >>confdefs.h <<_ACEOF
7696#define LT_OBJDIR "$lt_cv_objdir/"
7697_ACEOF
d7040cdb
SE
7698
7699
7700
7701
ce2cded5
L
7702case $host_os in
7703aix3*)
7704 # AIX sometimes has problems with the GCC collect2 program. For some
7705 # reason, if we set the COLLECT_NAMES environment variable, the problems
7706 # vanish in a puff of smoke.
7707 if test "X${COLLECT_NAMES+set}" != Xset; then
7708 COLLECT_NAMES=
7709 export COLLECT_NAMES
7710 fi
7711 ;;
7712esac
d7040cdb 7713
ce2cded5
L
7714# Global variables:
7715ofile=libtool
7716can_build_shared=yes
d7040cdb 7717
ce2cded5
L
7718# All known linkers require a `.a' archive for static linking (except MSVC,
7719# which needs '.lib').
7720libext=a
d7040cdb 7721
ce2cded5 7722with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7723
ce2cded5
L
7724old_CC="$CC"
7725old_CFLAGS="$CFLAGS"
d7040cdb 7726
ce2cded5
L
7727# Set sane defaults for various variables
7728test -z "$CC" && CC=cc
7729test -z "$LTCC" && LTCC=$CC
7730test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7731test -z "$LD" && LD=ld
7732test -z "$ac_objext" && ac_objext=o
7733
7734for cc_temp in $compiler""; do
7735 case $cc_temp in
7736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7738 \-*) ;;
7739 *) break;;
7740 esac
7741done
3725885a 7742cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
7743
7744
7745# Only perform the check for file, if the check method requires it
7746test -z "$MAGIC_CMD" && MAGIC_CMD=file
7747case $deplibs_check_method in
7748file_magic*)
7749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7751$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7752if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
ce2cded5
L
7754else
7755 case $MAGIC_CMD in
7756[\\/*] | ?:[\\/]*)
7757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7758 ;;
7759*)
7760 lt_save_MAGIC_CMD="$MAGIC_CMD"
7761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7763 for ac_dir in $ac_dummy; do
7764 IFS="$lt_save_ifs"
7765 test -z "$ac_dir" && ac_dir=.
7766 if test -f $ac_dir/${ac_tool_prefix}file; then
7767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7768 if test -n "$file_magic_test_file"; then
7769 case $deplibs_check_method in
7770 "file_magic "*)
7771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7774 $EGREP "$file_magic_regex" > /dev/null; then
7775 :
d7040cdb 7776 else
ce2cded5 7777 cat <<_LT_EOF 1>&2
d7040cdb 7778
ce2cded5
L
7779*** Warning: the command libtool uses to detect shared libraries,
7780*** $file_magic_cmd, produces output that libtool cannot recognize.
7781*** The result is that libtool may fail to recognize shared libraries
7782*** as such. This will affect the creation of libtool libraries that
7783*** depend on shared libraries, but programs linked with such libtool
7784*** libraries will work regardless of this problem. Nevertheless, you
7785*** may want to report the problem to your system manager and/or to
7786*** bug-libtool@gnu.org
d7040cdb 7787
ce2cded5
L
7788_LT_EOF
7789 fi ;;
7790 esac
d7040cdb 7791 fi
ce2cded5 7792 break
d7040cdb 7793 fi
ce2cded5
L
7794 done
7795 IFS="$lt_save_ifs"
7796 MAGIC_CMD="$lt_save_MAGIC_CMD"
7797 ;;
7798esac
7799fi
d7040cdb 7800
ce2cded5
L
7801MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7802if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7804$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7805else
81ecdfbb
RW
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
ce2cded5 7808fi
d7040cdb 7809
d7040cdb 7810
d7040cdb 7811
d7040cdb 7812
d7040cdb 7813
ce2cded5
L
7814if test -z "$lt_cv_path_MAGIC_CMD"; then
7815 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7817$as_echo_n "checking for file... " >&6; }
7818if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
ce2cded5
L
7820else
7821 case $MAGIC_CMD in
7822[\\/*] | ?:[\\/]*)
7823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7824 ;;
7825*)
7826 lt_save_MAGIC_CMD="$MAGIC_CMD"
7827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7829 for ac_dir in $ac_dummy; do
7830 IFS="$lt_save_ifs"
7831 test -z "$ac_dir" && ac_dir=.
7832 if test -f $ac_dir/file; then
7833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7834 if test -n "$file_magic_test_file"; then
7835 case $deplibs_check_method in
7836 "file_magic "*)
7837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7840 $EGREP "$file_magic_regex" > /dev/null; then
7841 :
d7040cdb 7842 else
ce2cded5
L
7843 cat <<_LT_EOF 1>&2
7844
7845*** Warning: the command libtool uses to detect shared libraries,
7846*** $file_magic_cmd, produces output that libtool cannot recognize.
7847*** The result is that libtool may fail to recognize shared libraries
7848*** as such. This will affect the creation of libtool libraries that
7849*** depend on shared libraries, but programs linked with such libtool
7850*** libraries will work regardless of this problem. Nevertheless, you
7851*** may want to report the problem to your system manager and/or to
7852*** bug-libtool@gnu.org
7853
7854_LT_EOF
7855 fi ;;
d7040cdb 7856 esac
d7040cdb 7857 fi
ce2cded5
L
7858 break
7859 fi
7860 done
7861 IFS="$lt_save_ifs"
7862 MAGIC_CMD="$lt_save_MAGIC_CMD"
7863 ;;
7864esac
7865fi
d7040cdb 7866
ce2cded5
L
7867MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7868if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7870$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7871else
81ecdfbb
RW
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
ce2cded5 7874fi
d7040cdb 7875
d7040cdb 7876
ce2cded5
L
7877 else
7878 MAGIC_CMD=:
7879 fi
d7040cdb 7880fi
d7040cdb 7881
ce2cded5
L
7882 fi
7883 ;;
7884esac
d7040cdb 7885
ce2cded5 7886# Use C for the default configuration in the libtool script
d7040cdb 7887
ce2cded5
L
7888lt_save_CC="$CC"
7889ac_ext=c
7890ac_cpp='$CPP $CPPFLAGS'
7891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7894
d7040cdb 7895
ce2cded5
L
7896# Source file extension for C test sources.
7897ac_ext=c
d7040cdb 7898
ce2cded5
L
7899# Object file extension for compiled C test sources.
7900objext=o
7901objext=$objext
d7040cdb 7902
ce2cded5
L
7903# Code to be used in simple compile tests
7904lt_simple_compile_test_code="int some_variable = 0;"
7905
7906# Code to be used in simple link tests
7907lt_simple_link_test_code='int main(){return(0);}'
7908
7909
7910
7911
7912
7913
7914
7915# If no C compiler was specified, use CC.
7916LTCC=${LTCC-"$CC"}
7917
7918# If no C compiler flags were specified, use CFLAGS.
7919LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7920
7921# Allow CC to be a program name with arguments.
7922compiler=$CC
7923
7924# Save the default compiler, since it gets overwritten when the other
7925# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7926compiler_DEFAULT=$CC
7927
7928# save warnings/boilerplate of simple test code
7929ac_outfile=conftest.$ac_objext
7930echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7931eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7932_lt_compiler_boilerplate=`cat conftest.err`
7933$RM conftest*
7934
7935ac_outfile=conftest.$ac_objext
7936echo "$lt_simple_link_test_code" >conftest.$ac_ext
7937eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7938_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7939$RM -r conftest*
ce2cded5
L
7940
7941
f2c621e4
AS
7942## CAVEAT EMPTOR:
7943## There is no encapsulation within the following macros, do not change
7944## the running order or otherwise move them around unless you know exactly
7945## what you are doing...
ce2cded5
L
7946if test -n "$compiler"; then
7947
7948lt_prog_compiler_no_builtin_flag=
7949
7950if test "$GCC" = yes; then
3725885a
RW
7951 case $cc_basename in
7952 nvcc*)
7953 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7954 *)
7955 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7956 esac
ce2cded5 7957
81ecdfbb
RW
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7959$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7960if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
ce2cded5
L
7962else
7963 lt_cv_prog_compiler_rtti_exceptions=no
7964 ac_outfile=conftest.$ac_objext
7965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966 lt_compiler_flag="-fno-rtti -fno-exceptions"
7967 # Insert the option either (1) after the last *FLAGS variable, or
7968 # (2) before a word containing "conftest.", or (3) at the end.
7969 # Note that $ac_compile itself does not contain backslashes and begins
7970 # with a dollar sign (not a hyphen), so the echo should work correctly.
7971 # The option is referenced via a variable to avoid confusing sed.
7972 lt_compile=`echo "$ac_compile" | $SED \
7973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975 -e 's:$: $lt_compiler_flag:'`
3725885a 7976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
7977 (eval "$lt_compile" 2>conftest.err)
7978 ac_status=$?
7979 cat conftest.err >&5
3725885a 7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
7981 if (exit $ac_status) && test -s "$ac_outfile"; then
7982 # The compiler can only warn and ignore the option if not recognized
7983 # So say no if there are warnings other than the usual output.
3725885a 7984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
7985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7987 lt_cv_prog_compiler_rtti_exceptions=yes
7988 fi
7989 fi
7990 $RM conftest*
7991
7992fi
81ecdfbb
RW
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7994$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
7995
7996if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7998else
7999 :
8000fi
8001
8002fi
8003
8004
8005
8006
8007
8008
8009 lt_prog_compiler_wl=
8010lt_prog_compiler_pic=
8011lt_prog_compiler_static=
8012
f2c621e4
AS
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8014$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8015
8016 if test "$GCC" = yes; then
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_static='-static'
8019
8020 case $host_os in
8021 aix*)
8022 # All AIX code is PIC.
8023 if test "$host_cpu" = ia64; then
8024 # AIX 5 now supports IA64 processor
8025 lt_prog_compiler_static='-Bstatic'
8026 fi
6c9c0a50 8027 lt_prog_compiler_pic='-fPIC'
ce2cded5 8028 ;;
d7040cdb
SE
8029
8030 amigaos*)
718a6fd8
SE
8031 case $host_cpu in
8032 powerpc)
8033 # see comment about AmigaOS4 .so support
8034 lt_prog_compiler_pic='-fPIC'
8035 ;;
8036 m68k)
8037 # FIXME: we need at least 68020 code to build shared libraries, but
8038 # adding the `-m68020' flag to GCC prevents building anything better,
8039 # like `-m68040'.
8040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8041 ;;
8042 esac
d7040cdb
SE
8043 ;;
8044
ce2cded5
L
8045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8046 # PIC is the default for these OSes.
d7040cdb
SE
8047 ;;
8048
718a6fd8 8049 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8050 # This hack is so that the source file can tell whether it is being
8051 # built for inclusion in a dll (and should export symbols for example).
8052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8053 # (--disable-auto-import) libraries
8054 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8055 ;;
8056
8057 darwin* | rhapsody*)
ce2cded5
L
8058 # PIC is the default on this platform
8059 # Common symbols not allowed in MH_DYLIB files
8060 lt_prog_compiler_pic='-fno-common'
8061 ;;
8062
3725885a
RW
8063 haiku*)
8064 # PIC is the default for Haiku.
8065 # The "-static" flag exists, but is broken.
8066 lt_prog_compiler_static=
8067 ;;
8068
ce2cded5 8069 hpux*)
718a6fd8
SE
8070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8072 # sets the default TLS model and affects inlining.
ce2cded5 8073 case $host_cpu in
718a6fd8 8074 hppa*64*)
ce2cded5 8075 # +Z the default
d7040cdb 8076 ;;
ce2cded5
L
8077 *)
8078 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8079 ;;
8080 esac
ce2cded5 8081 ;;
d7040cdb 8082
ce2cded5
L
8083 interix[3-9]*)
8084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8085 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8086 ;;
8087
ce2cded5
L
8088 msdosdjgpp*)
8089 # Just because we use GCC doesn't mean we suddenly get shared libraries
8090 # on systems that don't support them.
8091 lt_prog_compiler_can_build_shared=no
8092 enable_shared=no
d7040cdb
SE
8093 ;;
8094
ce2cded5
L
8095 *nto* | *qnx*)
8096 # QNX uses GNU C++, but need to define -shared option too, otherwise
8097 # it will coredump.
8098 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8099 ;;
8100
ce2cded5
L
8101 sysv4*MP*)
8102 if test -d /usr/nec; then
8103 lt_prog_compiler_pic=-Kconform_pic
8104 fi
d7040cdb
SE
8105 ;;
8106
ce2cded5
L
8107 *)
8108 lt_prog_compiler_pic='-fPIC'
d7040cdb 8109 ;;
ce2cded5 8110 esac
3725885a
RW
8111
8112 case $cc_basename in
8113 nvcc*) # Cuda Compiler Driver 2.2
8114 lt_prog_compiler_wl='-Xlinker '
8115 lt_prog_compiler_pic='-Xcompiler -fPIC'
8116 ;;
8117 esac
ce2cded5
L
8118 else
8119 # PORTME Check for flag to pass linker flags through the system compiler.
8120 case $host_os in
8121 aix*)
8122 lt_prog_compiler_wl='-Wl,'
8123 if test "$host_cpu" = ia64; then
8124 # AIX 5 now supports IA64 processor
8125 lt_prog_compiler_static='-Bstatic'
d7040cdb 8126 else
ce2cded5 8127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8128 fi
ce2cded5 8129 ;;
d7040cdb 8130
718a6fd8 8131 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8132 # This hack is so that the source file can tell whether it is being
8133 # built for inclusion in a dll (and should export symbols for example).
8134 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8135 ;;
8136
ce2cded5
L
8137 hpux9* | hpux10* | hpux11*)
8138 lt_prog_compiler_wl='-Wl,'
8139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8140 # not for PA HP-UX.
8141 case $host_cpu in
8142 hppa*64*|ia64*)
8143 # +Z the default
8144 ;;
8145 *)
8146 lt_prog_compiler_pic='+Z'
8147 ;;
8148 esac
8149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8150 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8151 ;;
8152
ce2cded5
L
8153 irix5* | irix6* | nonstopux*)
8154 lt_prog_compiler_wl='-Wl,'
8155 # PIC (with -KPIC) is the default.
8156 lt_prog_compiler_static='-non_shared'
8157 ;;
d7040cdb 8158
58e24671 8159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8160 case $cc_basename in
718a6fd8
SE
8161 # old Intel for x86_64 which still supported -KPIC.
8162 ecc*)
ce2cded5
L
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-static'
8166 ;;
718a6fd8
SE
8167 # icc used to be incompatible with GCC.
8168 # ICC 10 doesn't accept -KPIC any more.
8169 icc* | ifort*)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-fPIC'
8172 lt_prog_compiler_static='-static'
8173 ;;
8174 # Lahey Fortran 8.1.
8175 lf95*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='--shared'
8178 lt_prog_compiler_static='--static'
8179 ;;
3725885a 8180 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8181 # Portland Group compilers (*not* the Pentium gcc compiler,
8182 # which looks to be a dead project)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-fpic'
8185 lt_prog_compiler_static='-Bstatic'
8186 ;;
8187 ccc*)
8188 lt_prog_compiler_wl='-Wl,'
8189 # All Alpha code is PIC.
8190 lt_prog_compiler_static='-non_shared'
8191 ;;
3725885a
RW
8192 xl* | bgxl* | bgf* | mpixl*)
8193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_pic='-qpic'
8196 lt_prog_compiler_static='-qstaticlink'
8197 ;;
ce2cded5
L
8198 *)
8199 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8200 *Sun\ F* | *Sun*Fortran*)
8201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8202 lt_prog_compiler_pic='-KPIC'
8203 lt_prog_compiler_static='-Bstatic'
3725885a 8204 lt_prog_compiler_wl=''
d7040cdb 8205 ;;
3725885a
RW
8206 *Sun\ C*)
8207 # Sun C 5.9
ce2cded5
L
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-Bstatic'
3725885a 8210 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8211 ;;
8212 esac
ce2cded5
L
8213 ;;
8214 esac
d7040cdb
SE
8215 ;;
8216
ce2cded5
L
8217 newsos6)
8218 lt_prog_compiler_pic='-KPIC'
8219 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8220 ;;
8221
ce2cded5
L
8222 *nto* | *qnx*)
8223 # QNX uses GNU C++, but need to define -shared option too, otherwise
8224 # it will coredump.
8225 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8226 ;;
8227
ce2cded5
L
8228 osf3* | osf4* | osf5*)
8229 lt_prog_compiler_wl='-Wl,'
8230 # All OSF/1 code is PIC.
8231 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8232 ;;
8233
ce2cded5
L
8234 rdos*)
8235 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8236 ;;
8237
8238 solaris*)
ce2cded5
L
8239 lt_prog_compiler_pic='-KPIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 case $cc_basename in
f2c621e4 8242 f77* | f90* | f95*)
ce2cded5 8243 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8244 *)
ce2cded5 8245 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8246 esac
d7040cdb
SE
8247 ;;
8248
8249 sunos4*)
ce2cded5
L
8250 lt_prog_compiler_wl='-Qoption ld '
8251 lt_prog_compiler_pic='-PIC'
8252 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8253 ;;
8254
ce2cded5
L
8255 sysv4 | sysv4.2uw2* | sysv4.3*)
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8259 ;;
8260
8261 sysv4*MP*)
ce2cded5
L
8262 if test -d /usr/nec ;then
8263 lt_prog_compiler_pic='-Kconform_pic'
8264 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8265 fi
8266 ;;
8267
ce2cded5
L
8268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8269 lt_prog_compiler_wl='-Wl,'
8270 lt_prog_compiler_pic='-KPIC'
8271 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8272 ;;
8273
ce2cded5
L
8274 unicos*)
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8277 ;;
8278
8279 uts4*)
ce2cded5
L
8280 lt_prog_compiler_pic='-pic'
8281 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8282 ;;
8283
8284 *)
ce2cded5 8285 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8286 ;;
8287 esac
d7040cdb
SE
8288 fi
8289
ce2cded5
L
8290case $host_os in
8291 # For platforms which do not support PIC, -DPIC is meaningless:
8292 *djgpp*)
8293 lt_prog_compiler_pic=
8294 ;;
8295 *)
8296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8297 ;;
8298esac
f2c621e4
AS
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8300$as_echo "$lt_prog_compiler_pic" >&6; }
8301
8302
8303
8304
d7040cdb
SE
8305
8306
8307#
ce2cded5 8308# Check to make sure the PIC flag actually works.
d7040cdb 8309#
ce2cded5 8310if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8312$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8313if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
ce2cded5 8315else
718a6fd8 8316 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8317 ac_outfile=conftest.$ac_objext
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 # The option is referenced via a variable to avoid confusing sed.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
3725885a 8329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8330 (eval "$lt_compile" 2>conftest.err)
8331 ac_status=$?
8332 cat conftest.err >&5
3725885a 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8334 if (exit $ac_status) && test -s "$ac_outfile"; then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings other than the usual output.
3725885a 8337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8340 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8341 fi
8342 fi
8343 $RM conftest*
d7040cdb 8344
ce2cded5 8345fi
81ecdfbb
RW
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8347$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8348
718a6fd8 8349if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8350 case $lt_prog_compiler_pic in
8351 "" | " "*) ;;
8352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8353 esac
8354else
8355 lt_prog_compiler_pic=
8356 lt_prog_compiler_can_build_shared=no
8357fi
d7040cdb 8358
ce2cded5 8359fi
d7040cdb
SE
8360
8361
8362
8363
8364
8365
ce2cded5
L
8366#
8367# Check to make sure the static flag actually works.
8368#
8369wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8371$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8372if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
ce2cded5 8374else
718a6fd8 8375 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8376 save_LDFLAGS="$LDFLAGS"
8377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8380 # The linker can only warn and ignore the option if not recognized
8381 # So say no if there are warnings
8382 if test -s conftest.err; then
8383 # Append any errors to the config.log.
8384 cat conftest.err 1>&5
3725885a 8385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8387 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8388 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8389 fi
8390 else
718a6fd8 8391 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8392 fi
8393 fi
718a6fd8 8394 $RM -r conftest*
ce2cded5 8395 LDFLAGS="$save_LDFLAGS"
d7040cdb 8396
ce2cded5 8397fi
81ecdfbb
RW
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8399$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8400
718a6fd8 8401if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8402 :
8403else
8404 lt_prog_compiler_static=
8405fi
d7040cdb
SE
8406
8407
8408
8409
8410
8411
8412
81ecdfbb
RW
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8414$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8415if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
ce2cded5
L
8417else
8418 lt_cv_prog_compiler_c_o=no
8419 $RM -r conftest 2>/dev/null
8420 mkdir conftest
8421 cd conftest
8422 mkdir out
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8424
ce2cded5
L
8425 lt_compiler_flag="-o out/conftest2.$ac_objext"
8426 # Insert the option either (1) after the last *FLAGS variable, or
8427 # (2) before a word containing "conftest.", or (3) at the end.
8428 # Note that $ac_compile itself does not contain backslashes and begins
8429 # with a dollar sign (not a hyphen), so the echo should work correctly.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
3725885a 8434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8435 (eval "$lt_compile" 2>out/conftest.err)
8436 ac_status=$?
8437 cat out/conftest.err >&5
3725885a 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8440 then
8441 # The compiler can only warn and ignore the option if not recognized
8442 # So say no if there are warnings
3725885a 8443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler_c_o=yes
8447 fi
8448 fi
8449 chmod u+w . 2>&5
8450 $RM conftest*
8451 # SGI C++ compiler will create directory out/ii_files/ for
8452 # template instantiation
8453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8454 $RM out/* && rmdir out
8455 cd ..
8456 $RM -r conftest
8457 $RM conftest*
d7040cdb 8458
ce2cded5 8459fi
81ecdfbb
RW
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8461$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8462
8463
8464
8465
8466
8467
81ecdfbb
RW
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8469$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8470if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
ce2cded5
L
8472else
8473 lt_cv_prog_compiler_c_o=no
8474 $RM -r conftest 2>/dev/null
8475 mkdir conftest
8476 cd conftest
8477 mkdir out
8478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8479
ce2cded5
L
8480 lt_compiler_flag="-o out/conftest2.$ac_objext"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 lt_compile=`echo "$ac_compile" | $SED \
8486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8488 -e 's:$: $lt_compiler_flag:'`
3725885a 8489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8490 (eval "$lt_compile" 2>out/conftest.err)
8491 ac_status=$?
8492 cat out/conftest.err >&5
3725885a 8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8495 then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings
3725885a 8498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_c_o=yes
8502 fi
8503 fi
8504 chmod u+w . 2>&5
8505 $RM conftest*
8506 # SGI C++ compiler will create directory out/ii_files/ for
8507 # template instantiation
8508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8509 $RM out/* && rmdir out
8510 cd ..
8511 $RM -r conftest
8512 $RM conftest*
d7040cdb 8513
ce2cded5 8514fi
81ecdfbb
RW
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8516$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8517
8518
8519
8520
ce2cded5
L
8521hard_links="nottested"
8522if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8523 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8525$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8526 hard_links=yes
8527 $RM conftest*
8528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8529 touch conftest.a
8530 ln conftest.a conftest.b 2>&5 || hard_links=no
8531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8533$as_echo "$hard_links" >&6; }
ce2cded5 8534 if test "$hard_links" = no; then
81ecdfbb
RW
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8536$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8537 need_locks=warn
8538 fi
8539else
8540 need_locks=no
8541fi
d7040cdb
SE
8542
8543
8544
8545
8546
8547
81ecdfbb
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8549$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8550
ce2cded5
L
8551 runpath_var=
8552 allow_undefined_flag=
8553 always_export_symbols=no
8554 archive_cmds=
8555 archive_expsym_cmds=
8556 compiler_needs_object=no
8557 enable_shared_with_static_runtimes=no
8558 export_dynamic_flag_spec=
8559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8560 hardcode_automatic=no
8561 hardcode_direct=no
8562 hardcode_direct_absolute=no
8563 hardcode_libdir_flag_spec=
8564 hardcode_libdir_flag_spec_ld=
8565 hardcode_libdir_separator=
8566 hardcode_minus_L=no
8567 hardcode_shlibpath_var=unsupported
8568 inherit_rpath=no
8569 link_all_deplibs=unknown
8570 module_cmds=
8571 module_expsym_cmds=
8572 old_archive_from_new_cmds=
8573 old_archive_from_expsyms_cmds=
8574 thread_safe_flag_spec=
8575 whole_archive_flag_spec=
8576 # include_expsyms should be a list of space-separated symbols to be *always*
8577 # included in the symbol list
8578 include_expsyms=
8579 # exclude_expsyms can be an extended regexp of symbols to exclude
8580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8582 # as well as any symbol that contains `d'.
718a6fd8 8583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8585 # platforms (ab)use it in PIC code, but their linkers get confused if
8586 # the symbol is explicitly referenced. Since portable code cannot
8587 # rely on this symbol name, it's probably fine to never include it in
8588 # preloaded symbol tables.
718a6fd8 8589 # Exclude shared library initialization/finalization symbols.
ce2cded5 8590 extract_expsyms_cmds=
d7040cdb 8591
ce2cded5 8592 case $host_os in
718a6fd8 8593 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8595 # When not using gcc, we currently assume that we are using
8596 # Microsoft Visual C++.
8597 if test "$GCC" != yes; then
8598 with_gnu_ld=no
8599 fi
8600 ;;
8601 interix*)
8602 # we just hope/assume this is gcc and not c89 (= MSVC++)
8603 with_gnu_ld=yes
8604 ;;
8605 openbsd*)
8606 with_gnu_ld=no
8607 ;;
8608 esac
d7040cdb 8609
ce2cded5 8610 ld_shlibs=yes
3725885a
RW
8611
8612 # On some targets, GNU ld is compatible enough with the native linker
8613 # that we're better off using the native interface for both.
8614 lt_use_gnu_ld_interface=no
ce2cded5 8615 if test "$with_gnu_ld" = yes; then
3725885a
RW
8616 case $host_os in
8617 aix*)
8618 # The AIX port of GNU ld has always aspired to compatibility
8619 # with the native linker. However, as the warning in the GNU ld
8620 # block says, versions before 2.19.5* couldn't really create working
8621 # shared libraries, regardless of the interface used.
8622 case `$LD -v 2>&1` in
8623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8626 *)
8627 lt_use_gnu_ld_interface=yes
8628 ;;
8629 esac
8630 ;;
8631 *)
8632 lt_use_gnu_ld_interface=yes
8633 ;;
8634 esac
8635 fi
8636
8637 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8638 # If archive_cmds runs LD, not CC, wlarc should be empty
8639 wlarc='${wl}'
d7040cdb 8640
ce2cded5
L
8641 # Set some defaults for GNU ld with shared library support. These
8642 # are reset later if shared libraries are not supported. Putting them
8643 # here allows them to be overridden if necessary.
8644 runpath_var=LD_RUN_PATH
8645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646 export_dynamic_flag_spec='${wl}--export-dynamic'
8647 # ancient GNU ld didn't support --whole-archive et. al.
8648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8650 else
8651 whole_archive_flag_spec=
8652 fi
8653 supports_anon_versioning=no
8654 case `$LD -v 2>&1` in
3725885a 8655 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8659 *\ 2.11.*) ;; # other 2.11 versions
8660 *) supports_anon_versioning=yes ;;
8661 esac
d7040cdb 8662
ce2cded5
L
8663 # See if GNU ld supports shared libraries.
8664 case $host_os in
50e7d84b 8665 aix[3-9]*)
ce2cded5
L
8666 # On AIX/PPC, the GNU linker is very broken
8667 if test "$host_cpu" != ia64; then
8668 ld_shlibs=no
8669 cat <<_LT_EOF 1>&2
d7040cdb 8670
3725885a 8671*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8672*** to be unable to reliably create shared libraries on AIX.
8673*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8674*** really care for shared libraries, you may want to install binutils
8675*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8676*** You will then need to restart the configuration process.
d7040cdb 8677
ce2cded5
L
8678_LT_EOF
8679 fi
8680 ;;
d7040cdb 8681
ce2cded5 8682 amigaos*)
718a6fd8
SE
8683 case $host_cpu in
8684 powerpc)
8685 # see comment about AmigaOS4 .so support
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds=''
8688 ;;
8689 m68k)
8690 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)'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_minus_L=yes
8693 ;;
8694 esac
ce2cded5 8695 ;;
d7040cdb 8696
ce2cded5
L
8697 beos*)
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 allow_undefined_flag=unsupported
8700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8701 # support --undefined. This deserves some investigation. FIXME
8702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 else
8704 ld_shlibs=no
8705 fi
8706 ;;
d7040cdb 8707
718a6fd8 8708 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8710 # as there is no search path for DLLs.
8711 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8712 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8713 allow_undefined_flag=unsupported
8714 always_export_symbols=no
8715 enable_shared_with_static_runtimes=yes
f2c621e4 8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8717
ce2cded5
L
8718 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8720 # If the export-symbols file already is a .def file (1st line
8721 # is EXPORTS), use it as is; otherwise, prepend...
8722 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8723 cp $export_symbols $output_objdir/$soname.def;
8724 else
8725 echo EXPORTS > $output_objdir/$soname.def;
8726 cat $export_symbols >> $output_objdir/$soname.def;
8727 fi~
8728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8729 else
8730 ld_shlibs=no
8731 fi
8732 ;;
d7040cdb 8733
3725885a
RW
8734 haiku*)
8735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8736 link_all_deplibs=yes
8737 ;;
8738
ce2cded5
L
8739 interix[3-9]*)
8740 hardcode_direct=no
8741 hardcode_shlibpath_var=no
8742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8743 export_dynamic_flag_spec='${wl}-E'
8744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8745 # Instead, shared libraries are loaded at an image base (0x10000000 by
8746 # default) and relocated if they conflict, which is a slow very memory
8747 # consuming and fragmenting process. To avoid this, we pick a random,
8748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8751 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'
8752 ;;
d7040cdb 8753
58e24671 8754 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8755 tmp_diet=no
8756 if test "$host_os" = linux-dietlibc; then
8757 case $cc_basename in
8758 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8759 esac
8760 fi
8761 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8762 && test "$tmp_diet" = no
8763 then
6e733cce 8764 tmp_addflag=' $pic_flag'
718a6fd8 8765 tmp_sharedflag='-shared'
ce2cded5
L
8766 case $cc_basename,$host_cpu in
8767 pgcc*) # Portland Group C compiler
3725885a 8768 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
8769 tmp_addflag=' $pic_flag'
8770 ;;
3725885a
RW
8771 pgf77* | pgf90* | pgf95* | pgfortran*)
8772 # Portland Group f77 and f90 compilers
8773 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
8774 tmp_addflag=' $pic_flag -Mnomain' ;;
8775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8776 tmp_addflag=' -i_dynamic' ;;
8777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8778 tmp_addflag=' -i_dynamic -nofor_main' ;;
8779 ifc* | ifort*) # Intel Fortran compiler
8780 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8781 lf95*) # Lahey Fortran 8.1
8782 whole_archive_flag_spec=
8783 tmp_sharedflag='--shared' ;;
3725885a 8784 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8785 tmp_sharedflag='-qmkshrobj'
8786 tmp_addflag= ;;
3725885a
RW
8787 nvcc*) # Cuda Compiler Driver 2.2
8788 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'
8789 compiler_needs_object=yes
8790 ;;
ce2cded5
L
8791 esac
8792 case `$CC -V 2>&1 | sed 5q` in
8793 *Sun\ C*) # Sun C 5.9
3725885a 8794 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
8795 compiler_needs_object=yes
8796 tmp_sharedflag='-G' ;;
8797 *Sun\ F*) # Sun Fortran 8.3
8798 tmp_sharedflag='-G' ;;
ce2cded5
L
8799 esac
8800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8801
ce2cded5
L
8802 if test "x$supports_anon_versioning" = xyes; then
8803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8805 echo "local: *; };" >> $output_objdir/$libname.ver~
8806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8807 fi
718a6fd8
SE
8808
8809 case $cc_basename in
3725885a 8810 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8811 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8812 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8813 hardcode_libdir_flag_spec=
8814 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8815 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8816 if test "x$supports_anon_versioning" = xyes; then
8817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8819 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8820 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8821 fi
8822 ;;
8823 esac
ce2cded5
L
8824 else
8825 ld_shlibs=no
8826 fi
8827 ;;
d7040cdb 8828
ce2cded5
L
8829 netbsd*)
8830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8832 wlarc=
8833 else
f2c621e4
AS
8834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8836 fi
8837 ;;
d7040cdb 8838
ce2cded5
L
8839 solaris*)
8840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8841 ld_shlibs=no
8842 cat <<_LT_EOF 1>&2
d7040cdb 8843
ce2cded5
L
8844*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8845*** create shared libraries on Solaris systems. Therefore, libtool
8846*** is disabling shared libraries support. We urge you to upgrade GNU
8847*** binutils to release 2.9.1 or newer. Another option is to modify
8848*** your PATH or compiler configuration so that the native linker is
8849*** used, and then restart.
d7040cdb 8850
ce2cded5
L
8851_LT_EOF
8852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
d7040cdb 8859
ce2cded5
L
8860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8861 case `$LD -v 2>&1` in
8862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8863 ld_shlibs=no
8864 cat <<_LT_EOF 1>&2
d7040cdb 8865
ce2cded5
L
8866*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8867*** reliably create shared libraries on SCO systems. Therefore, libtool
8868*** is disabling shared libraries support. We urge you to upgrade GNU
8869*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8870*** your PATH or compiler configuration so that the native linker is
8871*** used, and then restart.
d7040cdb 8872
ce2cded5
L
8873_LT_EOF
8874 ;;
8875 *)
8876 # For security reasons, it is highly recommended that you always
8877 # use absolute paths for naming shared libraries, and exclude the
8878 # DT_RUNPATH tag from executables and libraries. But doing so
8879 # requires that you compile everything twice, which is a pain.
8880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8884 else
8885 ld_shlibs=no
8886 fi
8887 ;;
8888 esac
8889 ;;
d7040cdb 8890
ce2cded5
L
8891 sunos4*)
8892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8893 wlarc=
8894 hardcode_direct=yes
8895 hardcode_shlibpath_var=no
8896 ;;
d7040cdb 8897
ce2cded5
L
8898 *)
8899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8902 else
8903 ld_shlibs=no
8904 fi
8905 ;;
8906 esac
d7040cdb 8907
ce2cded5
L
8908 if test "$ld_shlibs" = no; then
8909 runpath_var=
8910 hardcode_libdir_flag_spec=
8911 export_dynamic_flag_spec=
8912 whole_archive_flag_spec=
8913 fi
8914 else
8915 # PORTME fill in a description of your system's linker (not GNU ld)
8916 case $host_os in
8917 aix3*)
8918 allow_undefined_flag=unsupported
8919 always_export_symbols=yes
8920 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'
8921 # Note: this linker hardcodes the directories in LIBPATH if there
8922 # are no directories specified by -L.
8923 hardcode_minus_L=yes
8924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8925 # Neither direct hardcoding nor static linking is supported with a
8926 # broken collect2.
8927 hardcode_direct=unsupported
8928 fi
8929 ;;
d7040cdb 8930
50e7d84b 8931 aix[4-9]*)
ce2cded5
L
8932 if test "$host_cpu" = ia64; then
8933 # On IA64, the linker does run time linking by default, so we don't
8934 # have to do anything special.
8935 aix_use_runtimelinking=no
8936 exp_sym_flag='-Bexport'
8937 no_entry_flag=""
8938 else
8939 # If we're using GNU nm, then we don't want the "-C" option.
8940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8941 # Also, AIX nm treats weak defined symbols like other global
8942 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 8943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8944 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
L
8945 else
8946 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8947 fi
8948 aix_use_runtimelinking=no
d7040cdb 8949
ce2cded5
L
8950 # Test if we are trying to use run time linking or normal
8951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8952 # need to do runtime linking.
50e7d84b 8953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8954 for ld_flag in $LDFLAGS; do
8955 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8956 aix_use_runtimelinking=yes
8957 break
8958 fi
8959 done
8960 ;;
8961 esac
d7040cdb 8962
ce2cded5
L
8963 exp_sym_flag='-bexport'
8964 no_entry_flag='-bnoentry'
8965 fi
d7040cdb 8966
ce2cded5
L
8967 # When large executables or shared objects are built, AIX ld can
8968 # have problems creating the table of contents. If linking a library
8969 # or program results in "error TOC overflow" add -mminimal-toc to
8970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8972
ce2cded5
L
8973 archive_cmds=''
8974 hardcode_direct=yes
8975 hardcode_direct_absolute=yes
8976 hardcode_libdir_separator=':'
8977 link_all_deplibs=yes
8978 file_list_spec='${wl}-f,'
d7040cdb 8979
ce2cded5
L
8980 if test "$GCC" = yes; then
8981 case $host_os in aix4.[012]|aix4.[012].*)
8982 # We only want to do this on AIX 4.2 and lower, the check
8983 # below for broken collect2 doesn't work under 4.3+
8984 collect2name=`${CC} -print-prog-name=collect2`
8985 if test -f "$collect2name" &&
8986 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8987 then
8988 # We have reworked collect2
8989 :
8990 else
8991 # We have old collect2
8992 hardcode_direct=unsupported
8993 # It fails to find uninstalled libraries when the uninstalled
8994 # path is not listed in the libpath. Setting hardcode_minus_L
8995 # to unsupported forces relinking
8996 hardcode_minus_L=yes
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_libdir_separator=
8999 fi
9000 ;;
9001 esac
9002 shared_flag='-shared'
9003 if test "$aix_use_runtimelinking" = yes; then
9004 shared_flag="$shared_flag "'${wl}-G'
9005 fi
9006 else
9007 # not using gcc
9008 if test "$host_cpu" = ia64; then
9009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9010 # chokes on -Wl,-G. The following line is correct:
9011 shared_flag='-G'
9012 else
9013 if test "$aix_use_runtimelinking" = yes; then
9014 shared_flag='${wl}-G'
9015 else
9016 shared_flag='${wl}-bM:SRE'
9017 fi
9018 fi
9019 fi
d7040cdb 9020
718a6fd8 9021 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9022 # It seems that -bexpall does not export symbols beginning with
9023 # underscore (_), so it is better to generate a list of symbols to export.
9024 always_export_symbols=yes
9025 if test "$aix_use_runtimelinking" = yes; then
9026 # Warning - without using the other runtime loading flags (-brtl),
9027 # -berok will link without error, but may produce a broken library.
9028 allow_undefined_flag='-berok'
9029 # Determine the default libpath from the value encoded in an
9030 # empty executable.
f2c621e4 9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9032/* end confdefs.h. */
d7040cdb 9033
ce2cded5
L
9034int
9035main ()
9036{
d7040cdb 9037
ce2cded5
L
9038 ;
9039 return 0;
9040}
9041_ACEOF
81ecdfbb 9042if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9043
f2c621e4
AS
9044lt_aix_libpath_sed='
9045 /Import File Strings/,/^$/ {
9046 /^0/ {
9047 s/^0 *\(.*\)$/\1/
9048 p
9049 }
9050 }'
9051aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9052# Check for a 64-bit object if we didn't find anything.
9053if test -z "$aix_libpath"; then
9054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9055fi
ce2cded5 9056fi
81ecdfbb
RW
9057rm -f core conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9060
ce2cded5 9061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9062 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
9063 else
9064 if test "$host_cpu" = ia64; then
9065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9066 allow_undefined_flag="-z nodefs"
9067 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"
9068 else
9069 # Determine the default libpath from the value encoded in an
9070 # empty executable.
f2c621e4 9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9072/* end confdefs.h. */
d7040cdb 9073
ce2cded5
L
9074int
9075main ()
9076{
d7040cdb 9077
ce2cded5
L
9078 ;
9079 return 0;
9080}
9081_ACEOF
81ecdfbb 9082if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9083
f2c621e4
AS
9084lt_aix_libpath_sed='
9085 /Import File Strings/,/^$/ {
9086 /^0/ {
9087 s/^0 *\(.*\)$/\1/
9088 p
9089 }
9090 }'
9091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9092# Check for a 64-bit object if we didn't find anything.
9093if test -z "$aix_libpath"; then
9094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9095fi
ce2cded5 9096fi
81ecdfbb
RW
9097rm -f core conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9100
ce2cded5
L
9101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9102 # Warning - without using the other run time loading flags,
9103 # -berok will link without error, but may produce a broken library.
9104 no_undefined_flag=' ${wl}-bernotok'
9105 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9106 if test "$with_gnu_ld" = yes; then
9107 # We only use this code for GNU lds that support --whole-archive.
9108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9109 else
9110 # Exported symbols can be pulled into shared objects from archives
9111 whole_archive_flag_spec='$convenience'
9112 fi
ce2cded5
L
9113 archive_cmds_need_lc=yes
9114 # This is similar to how AIX traditionally builds its shared libraries.
9115 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'
9116 fi
9117 fi
9118 ;;
d7040cdb 9119
ce2cded5 9120 amigaos*)
718a6fd8
SE
9121 case $host_cpu in
9122 powerpc)
9123 # see comment about AmigaOS4 .so support
9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125 archive_expsym_cmds=''
9126 ;;
9127 m68k)
9128 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)'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_minus_L=yes
9131 ;;
9132 esac
ce2cded5 9133 ;;
d7040cdb 9134
ce2cded5
L
9135 bsdi[45]*)
9136 export_dynamic_flag_spec=-rdynamic
9137 ;;
d7040cdb 9138
718a6fd8 9139 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9140 # When not using gcc, we currently assume that we are using
9141 # Microsoft Visual C++.
9142 # hardcode_libdir_flag_spec is actually meaningless, as there is
9143 # no search path for DLLs.
f2c621e4
AS
9144 hardcode_libdir_flag_spec=' '
9145 allow_undefined_flag=unsupported
9146 # Tell ltmain to make .lib files, not .a files.
9147 libext=lib
9148 # Tell ltmain to make .dll files, not .so files.
9149 shrext_cmds=".dll"
9150 # FIXME: Setting linknames here is a bad hack.
9151 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9152 # The linker will automatically build a .lib file if we build a DLL.
9153 old_archive_from_new_cmds='true'
9154 # FIXME: Should let the user specify the lib program.
9155 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9156 fix_srcfile_path='`cygpath -w "$srcfile"`'
9157 enable_shared_with_static_runtimes=yes
ce2cded5 9158 ;;
d7040cdb 9159
ce2cded5 9160 darwin* | rhapsody*)
d7040cdb 9161
718a6fd8
SE
9162
9163 archive_cmds_need_lc=no
9164 hardcode_direct=no
9165 hardcode_automatic=yes
9166 hardcode_shlibpath_var=unsupported
3725885a
RW
9167 if test "$lt_cv_ld_force_load" = "yes"; then
9168 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\"`'
9169 else
9170 whole_archive_flag_spec=''
9171 fi
718a6fd8
SE
9172 link_all_deplibs=yes
9173 allow_undefined_flag="$_lt_dar_allow_undefined"
9174 case $cc_basename in
9175 ifort*) _lt_dar_can_shared=yes ;;
9176 *) _lt_dar_can_shared=$GCC ;;
9177 esac
9178 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9179 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9182 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}"
9183 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}"
9184
9185 else
9186 ld_shlibs=no
9187 fi
9188
ce2cded5 9189 ;;
d7040cdb 9190
ce2cded5
L
9191 dgux*)
9192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9193 hardcode_libdir_flag_spec='-L$libdir'
9194 hardcode_shlibpath_var=no
9195 ;;
d7040cdb 9196
ce2cded5
L
9197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9198 # support. Future versions do this automatically, but an explicit c++rt0.o
9199 # does not break anything, and helps significantly (at the cost of a little
9200 # extra space).
9201 freebsd2.2*)
9202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9203 hardcode_libdir_flag_spec='-R$libdir'
9204 hardcode_direct=yes
9205 hardcode_shlibpath_var=no
9206 ;;
d7040cdb 9207
ce2cded5 9208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9209 freebsd2.*)
ce2cded5
L
9210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9211 hardcode_direct=yes
9212 hardcode_minus_L=yes
9213 hardcode_shlibpath_var=no
9214 ;;
d7040cdb 9215
ce2cded5
L
9216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9217 freebsd* | dragonfly*)
f2c621e4 9218 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9219 hardcode_libdir_flag_spec='-R$libdir'
9220 hardcode_direct=yes
9221 hardcode_shlibpath_var=no
9222 ;;
d7040cdb 9223
ce2cded5
L
9224 hpux9*)
9225 if test "$GCC" = yes; then
f2c621e4 9226 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
9227 else
9228 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'
9229 fi
9230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9231 hardcode_libdir_separator=:
9232 hardcode_direct=yes
d7040cdb 9233
ce2cded5
L
9234 # hardcode_minus_L: Not really in the search PATH,
9235 # but as the default location of the library.
9236 hardcode_minus_L=yes
9237 export_dynamic_flag_spec='${wl}-E'
9238 ;;
d7040cdb 9239
ce2cded5 9240 hpux10*)
3725885a 9241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9243 else
9244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9245 fi
9246 if test "$with_gnu_ld" = no; then
9247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248 hardcode_libdir_flag_spec_ld='+b $libdir'
9249 hardcode_libdir_separator=:
9250 hardcode_direct=yes
9251 hardcode_direct_absolute=yes
9252 export_dynamic_flag_spec='${wl}-E'
9253 # hardcode_minus_L: Not really in the search PATH,
9254 # but as the default location of the library.
9255 hardcode_minus_L=yes
9256 fi
9257 ;;
d7040cdb 9258
ce2cded5 9259 hpux11*)
3725885a 9260 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9261 case $host_cpu in
9262 hppa*64*)
9263 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 ;;
9265 ia64*)
f2c621e4 9266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9267 ;;
9268 *)
f2c621e4 9269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9270 ;;
9271 esac
9272 else
9273 case $host_cpu in
9274 hppa*64*)
9275 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 ;;
9277 ia64*)
9278 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9279 ;;
9280 *)
3725885a
RW
9281
9282 # Older versions of the 11.00 compiler do not understand -b yet
9283 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9285$as_echo_n "checking if $CC understands -b... " >&6; }
9286if test "${lt_cv_prog_compiler__b+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9288else
9289 lt_cv_prog_compiler__b=no
9290 save_LDFLAGS="$LDFLAGS"
9291 LDFLAGS="$LDFLAGS -b"
9292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9294 # The linker can only warn and ignore the option if not recognized
9295 # So say no if there are warnings
9296 if test -s conftest.err; then
9297 # Append any errors to the config.log.
9298 cat conftest.err 1>&5
9299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9301 if diff conftest.exp conftest.er2 >/dev/null; then
9302 lt_cv_prog_compiler__b=yes
9303 fi
9304 else
9305 lt_cv_prog_compiler__b=yes
9306 fi
9307 fi
9308 $RM -r conftest*
9309 LDFLAGS="$save_LDFLAGS"
9310
9311fi
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9313$as_echo "$lt_cv_prog_compiler__b" >&6; }
9314
9315if test x"$lt_cv_prog_compiler__b" = xyes; then
9316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9317else
9318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9319fi
9320
ce2cded5
L
9321 ;;
9322 esac
9323 fi
9324 if test "$with_gnu_ld" = no; then
9325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9326 hardcode_libdir_separator=:
d7040cdb 9327
ce2cded5
L
9328 case $host_cpu in
9329 hppa*64*|ia64*)
9330 hardcode_direct=no
9331 hardcode_shlibpath_var=no
9332 ;;
9333 *)
9334 hardcode_direct=yes
9335 hardcode_direct_absolute=yes
9336 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9337
ce2cded5
L
9338 # hardcode_minus_L: Not really in the search PATH,
9339 # but as the default location of the library.
9340 hardcode_minus_L=yes
9341 ;;
9342 esac
9343 fi
9344 ;;
9345
9346 irix5* | irix6* | nonstopux*)
9347 if test "$GCC" = yes; then
f2c621e4 9348 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
9349 # Try to use the -exported_symbol ld option, if it does not
9350 # work, assume that -exports_file does not work either and
9351 # implicitly export all symbols.
f2c621e4
AS
9352 save_LDFLAGS="$LDFLAGS"
9353 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9355/* end confdefs.h. */
f2c621e4 9356int foo(void) {}
ce2cded5 9357_ACEOF
81ecdfbb 9358if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9359 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'
9360
d7040cdb 9361fi
81ecdfbb
RW
9362rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9364 LDFLAGS="$save_LDFLAGS"
ce2cded5 9365 else
3725885a
RW
9366 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'
9367 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
9368 fi
9369 archive_cmds_need_lc='no'
9370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371 hardcode_libdir_separator=:
9372 inherit_rpath=yes
9373 link_all_deplibs=yes
9374 ;;
d7040cdb 9375
ce2cded5
L
9376 netbsd*)
9377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9379 else
9380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9381 fi
9382 hardcode_libdir_flag_spec='-R$libdir'
9383 hardcode_direct=yes
9384 hardcode_shlibpath_var=no
9385 ;;
d7040cdb 9386
ce2cded5
L
9387 newsos6)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_direct=yes
9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9391 hardcode_libdir_separator=:
9392 hardcode_shlibpath_var=no
9393 ;;
d7040cdb 9394
ce2cded5
L
9395 *nto* | *qnx*)
9396 ;;
d7040cdb 9397
ce2cded5 9398 openbsd*)
718a6fd8
SE
9399 if test -f /usr/libexec/ld.so; then
9400 hardcode_direct=yes
9401 hardcode_shlibpath_var=no
9402 hardcode_direct_absolute=yes
9403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9407 export_dynamic_flag_spec='${wl}-E'
9408 else
9409 case $host_os in
9410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9412 hardcode_libdir_flag_spec='-R$libdir'
9413 ;;
9414 *)
9415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9417 ;;
9418 esac
9419 fi
9420 else
9421 ld_shlibs=no
d7040cdb
SE
9422 fi
9423 ;;
d7040cdb 9424
ce2cded5
L
9425 os2*)
9426 hardcode_libdir_flag_spec='-L$libdir'
9427 hardcode_minus_L=yes
9428 allow_undefined_flag=unsupported
3725885a 9429 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
9430 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9431 ;;
d7040cdb 9432
ce2cded5
L
9433 osf3*)
9434 if test "$GCC" = yes; then
9435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9436 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
9437 else
9438 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9439 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
9440 fi
9441 archive_cmds_need_lc='no'
9442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9443 hardcode_libdir_separator=:
9444 ;;
d7040cdb 9445
ce2cded5
L
9446 osf4* | osf5*) # as osf3* with the addition of -msym flag
9447 if test "$GCC" = yes; then
9448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9449 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
9450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451 else
9452 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9453 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 9454 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 9455 $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 9456
ce2cded5
L
9457 # Both c and cxx compiler support -rpath directly
9458 hardcode_libdir_flag_spec='-rpath $libdir'
9459 fi
9460 archive_cmds_need_lc='no'
9461 hardcode_libdir_separator=:
9462 ;;
d7040cdb 9463
ce2cded5
L
9464 solaris*)
9465 no_undefined_flag=' -z defs'
9466 if test "$GCC" = yes; then
9467 wlarc='${wl}'
f2c621e4 9468 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5 9469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9470 $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
9471 else
9472 case `$CC -V 2>&1` in
9473 *"Compilers 5.0"*)
9474 wlarc=''
9475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9478 ;;
9479 *)
9480 wlarc='${wl}'
9481 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9484 ;;
9485 esac
9486 fi
9487 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_shlibpath_var=no
9489 case $host_os in
9490 solaris2.[0-5] | solaris2.[0-5].*) ;;
9491 *)
9492 # The compiler driver will combine and reorder linker options,
9493 # but understands `-z linker_flag'. GCC discards it without `$wl',
9494 # but is careful enough not to reorder.
9495 # Supported since Solaris 2.6 (maybe 2.5.1?)
9496 if test "$GCC" = yes; then
9497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9498 else
9499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9500 fi
9501 ;;
9502 esac
9503 link_all_deplibs=yes
d7040cdb 9504 ;;
ce2cded5
L
9505
9506 sunos4*)
9507 if test "x$host_vendor" = xsequent; then
9508 # Use $CC to link under sequent, because it throws in some extra .o
9509 # files that make .init and .fini sections work.
9510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9511 else
ce2cded5 9512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9513 fi
ce2cded5
L
9514 hardcode_libdir_flag_spec='-L$libdir'
9515 hardcode_direct=yes
9516 hardcode_minus_L=yes
9517 hardcode_shlibpath_var=no
d7040cdb 9518 ;;
ce2cded5
L
9519
9520 sysv4)
9521 case $host_vendor in
9522 sni)
9523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_direct=yes # is this really true???
9525 ;;
9526 siemens)
9527 ## LD is ld it makes a PLAMLIB
9528 ## CC just makes a GrossModule.
9529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9530 reload_cmds='$CC -r -o $output$reload_objs'
9531 hardcode_direct=no
9532 ;;
9533 motorola)
9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9536 ;;
9537 esac
9538 runpath_var='LD_RUN_PATH'
9539 hardcode_shlibpath_var=no
d7040cdb 9540 ;;
d7040cdb 9541
ce2cded5
L
9542 sysv4.3*)
9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_shlibpath_var=no
9545 export_dynamic_flag_spec='-Bexport'
9546 ;;
d7040cdb 9547
ce2cded5
L
9548 sysv4*MP*)
9549 if test -d /usr/nec; then
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_shlibpath_var=no
9552 runpath_var=LD_RUN_PATH
9553 hardcode_runpath_var=yes
9554 ld_shlibs=yes
9555 fi
9556 ;;
d7040cdb 9557
ce2cded5
L
9558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9559 no_undefined_flag='${wl}-z,text'
9560 archive_cmds_need_lc=no
9561 hardcode_shlibpath_var=no
9562 runpath_var='LD_RUN_PATH'
d7040cdb 9563
ce2cded5
L
9564 if test "$GCC" = yes; then
9565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 else
9568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9570 fi
9571 ;;
d7040cdb 9572
ce2cded5
L
9573 sysv5* | sco3.2v5* | sco5v6*)
9574 # Note: We can NOT use -z defs as we might desire, because we do not
9575 # link with -lc, and that would cause any symbols used from libc to
9576 # always be unresolved, which means just about no library would
9577 # ever link correctly. If we're not using GNU ld we use -z text
9578 # though, which does catch some bad symbols but isn't as heavy-handed
9579 # as -z defs.
9580 no_undefined_flag='${wl}-z,text'
9581 allow_undefined_flag='${wl}-z,nodefs'
9582 archive_cmds_need_lc=no
9583 hardcode_shlibpath_var=no
9584 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9585 hardcode_libdir_separator=':'
9586 link_all_deplibs=yes
9587 export_dynamic_flag_spec='${wl}-Bexport'
9588 runpath_var='LD_RUN_PATH'
d7040cdb 9589
ce2cded5
L
9590 if test "$GCC" = yes; then
9591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 else
9594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9596 fi
d7040cdb 9597 ;;
d7040cdb 9598
ce2cded5
L
9599 uts4*)
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_libdir_flag_spec='-L$libdir'
9602 hardcode_shlibpath_var=no
9603 ;;
d7040cdb 9604
ce2cded5
L
9605 *)
9606 ld_shlibs=no
9607 ;;
9608 esac
9609
9610 if test x$host_vendor = xsni; then
9611 case $host in
9612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9613 export_dynamic_flag_spec='${wl}-Blargedynsym'
9614 ;;
9615 esac
d7040cdb 9616 fi
ce2cded5 9617 fi
d7040cdb 9618
81ecdfbb
RW
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9620$as_echo "$ld_shlibs" >&6; }
ce2cded5 9621test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9622
ce2cded5 9623with_gnu_ld=$with_gnu_ld
d7040cdb 9624
d7040cdb 9625
d7040cdb 9626
d7040cdb 9627
d7040cdb 9628
d7040cdb 9629
d7040cdb 9630
d7040cdb 9631
d7040cdb 9632
d7040cdb 9633
d7040cdb 9634
d7040cdb 9635
d7040cdb 9636
d7040cdb 9637
d7040cdb 9638
ce2cded5
L
9639#
9640# Do we need to explicitly link libc?
9641#
9642case "x$archive_cmds_need_lc" in
9643x|xyes)
9644 # Assume -lc should be added
9645 archive_cmds_need_lc=yes
d7040cdb 9646
ce2cded5
L
9647 if test "$enable_shared" = yes && test "$GCC" = yes; then
9648 case $archive_cmds in
9649 *'~'*)
9650 # FIXME: we may have to deal with multi-command sequences.
9651 ;;
9652 '$CC '*)
9653 # Test whether the compiler implicitly links with -lc since on some
9654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9655 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9657$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9658if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
39144654
RW
9660else
9661 $RM conftest*
9662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9663
81ecdfbb 9664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9665 (eval $ac_compile) 2>&5
9666 ac_status=$?
81ecdfbb
RW
9667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9668 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9669 soname=conftest
9670 lib=conftest
9671 libobjs=conftest.$ac_objext
9672 deplibs=
9673 wl=$lt_prog_compiler_wl
9674 pic_flag=$lt_prog_compiler_pic
9675 compiler_flags=-v
9676 linker_flags=-v
9677 verstring=
9678 output_objdir=.
9679 libname=conftest
9680 lt_save_allow_undefined_flag=$allow_undefined_flag
9681 allow_undefined_flag=
81ecdfbb 9682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9683 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9684 ac_status=$?
81ecdfbb
RW
9685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9686 test $ac_status = 0; }
39144654
RW
9687 then
9688 lt_cv_archive_cmds_need_lc=no
9689 else
9690 lt_cv_archive_cmds_need_lc=yes
9691 fi
9692 allow_undefined_flag=$lt_save_allow_undefined_flag
9693 else
9694 cat conftest.err 1>&5
9695 fi
9696 $RM conftest*
9697
9698fi
81ecdfbb
RW
9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9700$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9701 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9702 ;;
9703 esac
d7040cdb 9704 fi
d7040cdb 9705 ;;
ce2cded5 9706esac
d7040cdb 9707
d7040cdb 9708
d7040cdb 9709
d7040cdb 9710
d7040cdb 9711
d7040cdb 9712
d7040cdb 9713
d7040cdb
SE
9714
9715
9716
9717
9718
9719
9720
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
d7040cdb 9801
d7040cdb 9802
d7040cdb
SE
9803
9804
9805
9806
9807
9808
d7040cdb 9809
d7040cdb 9810
d7040cdb 9811
d7040cdb 9812
d7040cdb 9813
d7040cdb 9814
d7040cdb 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
ce2cded5
L
9832
9833
9834
9835
9836
9837
9838
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
81ecdfbb
RW
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9865$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9866
9867if test "$GCC" = yes; then
ce2cded5
L
9868 case $host_os in
9869 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9870 *) lt_awk_arg="/^libraries:/" ;;
9871 esac
3725885a
RW
9872 case $host_os in
9873 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9874 *) lt_sed_strip_eq="s,=/,/,g" ;;
9875 esac
9876 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9877 case $lt_search_path_spec in
9878 *\;*)
ce2cded5
L
9879 # if the path contains ";" then we assume it to be the separator
9880 # otherwise default to the standard path separator (i.e. ":") - it is
9881 # assumed that no part of a normal pathname contains ";" but that should
9882 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9884 ;;
9885 *)
9886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9887 ;;
9888 esac
ce2cded5
L
9889 # Ok, now we have the path, separated by spaces, we can step through it
9890 # and add multilib dir if necessary.
9891 lt_tmp_lt_search_path_spec=
9892 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9893 for lt_sys_path in $lt_search_path_spec; do
9894 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9896 else
9897 test -d "$lt_sys_path" && \
9898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9899 fi
9900 done
3725885a 9901 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
9902BEGIN {RS=" "; FS="/|\n";} {
9903 lt_foo="";
9904 lt_count=0;
9905 for (lt_i = NF; lt_i > 0; lt_i--) {
9906 if ($lt_i != "" && $lt_i != ".") {
9907 if ($lt_i == "..") {
9908 lt_count++;
9909 } else {
9910 if (lt_count == 0) {
9911 lt_foo="/" $lt_i lt_foo;
9912 } else {
9913 lt_count--;
9914 }
9915 }
9916 }
9917 }
9918 if (lt_foo != "") { lt_freq[lt_foo]++; }
9919 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9920}'`
3725885a
RW
9921 # AWK program above erroneously prepends '/' to C:/dos/paths
9922 # for these hosts.
9923 case $host_os in
9924 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9925 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9926 esac
9927 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 9928else
ce2cded5
L
9929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9930fi
9931library_names_spec=
9932libname_spec='lib$name'
9933soname_spec=
9934shrext_cmds=".so"
9935postinstall_cmds=
9936postuninstall_cmds=
9937finish_cmds=
9938finish_eval=
9939shlibpath_var=
9940shlibpath_overrides_runpath=unknown
9941version_type=none
9942dynamic_linker="$host_os ld.so"
9943sys_lib_dlsearch_path_spec="/lib /usr/lib"
9944need_lib_prefix=unknown
9945hardcode_into_libs=no
9946
9947# when you set need_version to no, make sure it does not cause -set_version
9948# flags to be left without arguments
9949need_version=unknown
9950
9951case $host_os in
9952aix3*)
9953 version_type=linux
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9955 shlibpath_var=LIBPATH
9956
9957 # AIX 3 has no versioning support, so we append a major version to the name.
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 ;;
9960
50e7d84b 9961aix[4-9]*)
ce2cded5
L
9962 version_type=linux
9963 need_lib_prefix=no
9964 need_version=no
9965 hardcode_into_libs=yes
9966 if test "$host_cpu" = ia64; then
9967 # AIX 5 supports IA64
9968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 else
9971 # With GCC up to 2.95.x, collect2 would create an import file
9972 # for dependence libraries. The import file would start with
9973 # the line `#! .'. This would cause the generated library to
9974 # depend on `.', always an invalid library. This was fixed in
9975 # development snapshots of GCC prior to 3.0.
9976 case $host_os in
9977 aix4 | aix4.[01] | aix4.[01].*)
9978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9979 echo ' yes '
9980 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9981 :
9982 else
9983 can_build_shared=no
9984 fi
9985 ;;
9986 esac
9987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9988 # soname into executable. Probably we can add versioning support to
9989 # collect2, so additional links can be useful in future.
9990 if test "$aix_use_runtimelinking" = yes; then
9991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9992 # instead of lib<name>.a to let people know that these are not
9993 # typical AIX shared libraries.
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 else
9996 # We preserve .a as extension for shared libraries through AIX4.2
9997 # and later when we are not doing run time linking.
9998 library_names_spec='${libname}${release}.a $libname.a'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 fi
10001 shlibpath_var=LIBPATH
10002 fi
10003 ;;
10004
10005amigaos*)
718a6fd8
SE
10006 case $host_cpu in
10007 powerpc)
10008 # Since July 2007 AmigaOS4 officially supports .so libraries.
10009 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 ;;
10012 m68k)
ce2cded5
L
10013 library_names_spec='$libname.ixlibrary $libname.a'
10014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10015 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
10016 ;;
10017 esac
ce2cded5
L
10018 ;;
10019
10020beos*)
10021 library_names_spec='${libname}${shared_ext}'
10022 dynamic_linker="$host_os ld.so"
10023 shlibpath_var=LIBRARY_PATH
10024 ;;
10025
10026bsdi[45]*)
10027 version_type=linux
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10035 # the default ld.so.conf also contains /usr/contrib/lib and
10036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10037 # libtool to hard-code these into programs
10038 ;;
10039
718a6fd8 10040cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10041 version_type=windows
10042 shrext_cmds=".dll"
10043 need_version=no
10044 need_lib_prefix=no
10045
f2c621e4
AS
10046 case $GCC,$host_os in
10047 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10048 library_names_spec='$libname.dll.a'
10049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10050 postinstall_cmds='base_file=`basename \${file}`~
10051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10052 dldir=$destdir/`dirname \$dlpath`~
10053 test -d \$dldir || mkdir -p \$dldir~
10054 $install_prog $dir/$dlname \$dldir/$dlname~
10055 chmod a+x \$dldir/$dlname~
10056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10058 fi'
10059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10060 dlpath=$dir/\$dldll~
10061 $RM \$dlpath'
10062 shlibpath_overrides_runpath=yes
10063
10064 case $host_os in
10065 cygwin*)
10066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10068
10069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10070 ;;
718a6fd8 10071 mingw* | cegcc*)
ce2cded5
L
10072 # MinGW DLLs use traditional 'lib' prefix
10073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10074 ;;
10075 pw32*)
10076 # pw32 DLLs use 'pw' prefix rather than 'lib'
10077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10078 ;;
10079 esac
10080 ;;
10081
10082 *)
10083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10084 ;;
10085 esac
f2c621e4 10086 dynamic_linker='Win32 ld.exe'
ce2cded5
L
10087 # FIXME: first we should search . and the directory the executable is in
10088 shlibpath_var=PATH
10089 ;;
10090
10091darwin* | rhapsody*)
10092 dynamic_linker="$host_os dyld"
10093 version_type=darwin
10094 need_lib_prefix=no
10095 need_version=no
10096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10097 soname_spec='${libname}${release}${major}$shared_ext'
10098 shlibpath_overrides_runpath=yes
10099 shlibpath_var=DYLD_LIBRARY_PATH
10100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10101
10102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10104 ;;
10105
10106dgux*)
10107 version_type=linux
10108 need_lib_prefix=no
10109 need_version=no
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 ;;
10114
ce2cded5
L
10115freebsd* | dragonfly*)
10116 # DragonFly does not have aout. When/if they implement a new
10117 # versioning mechanism, adjust this.
10118 if test -x /usr/bin/objformat; then
10119 objformat=`/usr/bin/objformat`
10120 else
10121 case $host_os in
6d2920c8 10122 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10123 *) objformat=elf ;;
10124 esac
10125 fi
10126 version_type=freebsd-$objformat
10127 case $version_type in
10128 freebsd-elf*)
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10130 need_version=no
10131 need_lib_prefix=no
10132 ;;
10133 freebsd-*)
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10135 need_version=yes
10136 ;;
10137 esac
10138 shlibpath_var=LD_LIBRARY_PATH
10139 case $host_os in
6d2920c8 10140 freebsd2.*)
ce2cded5
L
10141 shlibpath_overrides_runpath=yes
10142 ;;
10143 freebsd3.[01]* | freebsdelf3.[01]*)
10144 shlibpath_overrides_runpath=yes
10145 hardcode_into_libs=yes
10146 ;;
10147 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10148 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10149 shlibpath_overrides_runpath=no
10150 hardcode_into_libs=yes
10151 ;;
10152 *) # from 4.6 on, and DragonFly
10153 shlibpath_overrides_runpath=yes
10154 hardcode_into_libs=yes
10155 ;;
10156 esac
10157 ;;
10158
10159gnu*)
10160 version_type=linux
10161 need_lib_prefix=no
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 hardcode_into_libs=yes
10167 ;;
10168
3725885a
RW
10169haiku*)
10170 version_type=linux
10171 need_lib_prefix=no
10172 need_version=no
10173 dynamic_linker="$host_os runtime_loader"
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
f2c621e4 10178 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10179 hardcode_into_libs=yes
10180 ;;
10181
ce2cded5
L
10182hpux9* | hpux10* | hpux11*)
10183 # Give a soname corresponding to the major version so that dld.sl refuses to
10184 # link against other versions.
10185 version_type=sunos
10186 need_lib_prefix=no
10187 need_version=no
10188 case $host_cpu in
10189 ia64*)
10190 shrext_cmds='.so'
10191 hardcode_into_libs=yes
10192 dynamic_linker="$host_os dld.so"
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 if test "X$HPUX_IA64_MODE" = X32; then
10198 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10199 else
10200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10201 fi
10202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10203 ;;
10204 hppa*64*)
10205 shrext_cmds='.sl'
10206 hardcode_into_libs=yes
10207 dynamic_linker="$host_os dld.sl"
10208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10214 ;;
10215 *)
10216 shrext_cmds='.sl'
10217 dynamic_linker="$host_os dld.sl"
10218 shlibpath_var=SHLIB_PATH
10219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 ;;
10223 esac
3725885a 10224 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10225 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10226 # or fails outright, so override atomically:
10227 install_override_mode=555
ce2cded5
L
10228 ;;
10229
10230interix[3-9]*)
10231 version_type=linux
10232 need_lib_prefix=no
10233 need_version=no
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=no
10239 hardcode_into_libs=yes
10240 ;;
10241
10242irix5* | irix6* | nonstopux*)
10243 case $host_os in
10244 nonstopux*) version_type=nonstopux ;;
10245 *)
10246 if test "$lt_cv_prog_gnu_ld" = yes; then
10247 version_type=linux
10248 else
10249 version_type=irix
10250 fi ;;
10251 esac
10252 need_lib_prefix=no
10253 need_version=no
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10256 case $host_os in
10257 irix5* | nonstopux*)
10258 libsuff= shlibsuff=
10259 ;;
10260 *)
10261 case $LD in # libtool.m4 will add one of these switches to LD
10262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10263 libsuff= shlibsuff= libmagic=32-bit;;
10264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10265 libsuff=32 shlibsuff=N32 libmagic=N32;;
10266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10267 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10268 *) libsuff= shlibsuff= libmagic=never-match;;
10269 esac
10270 ;;
10271 esac
10272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10273 shlibpath_overrides_runpath=no
10274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10276 hardcode_into_libs=yes
10277 ;;
d7040cdb 10278
ce2cded5
L
10279# No shared lib support for Linux oldld, aout, or coff.
10280linux*oldld* | linux*aout* | linux*coff*)
10281 dynamic_linker=no
10282 ;;
10283
10284# This must be Linux ELF.
58e24671 10285linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10286 version_type=linux
10287 need_lib_prefix=no
10288 need_version=no
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=no
39144654 10294
ce2cded5 10295 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10296 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
39144654
RW
10298else
10299 lt_cv_shlibpath_overrides_runpath=no
10300 save_LDFLAGS=$LDFLAGS
10301 save_libdir=$libdir
10302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10305/* end confdefs.h. */
10306
d7040cdb
SE
10307int
10308main ()
10309{
ce2cded5 10310
d7040cdb
SE
10311 ;
10312 return 0;
10313}
10314_ACEOF
81ecdfbb
RW
10315if ac_fn_c_try_link "$LINENO"; then :
10316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10317 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10318fi
ce2cded5 10319fi
81ecdfbb
RW
10320rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10322 LDFLAGS=$save_LDFLAGS
10323 libdir=$save_libdir
10324
10325fi
10326
10327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10328
10329 # This implies no fast_install, which is unacceptable.
10330 # Some rework will be needed to allow for fast_install
10331 # before this can be enabled.
10332 hardcode_into_libs=yes
10333
10334 # Append ld.so.conf contents to the search path
10335 if test -f /etc/ld.so.conf; then
3725885a 10336 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 10337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
ce2cded5
L
10338 fi
10339
10340 # We used to test for /lib/ld.so.1 and disable shared libraries on
10341 # powerpc, because MkLinux only supported shared libraries with the
10342 # GNU dynamic linker. Since this was broken with cross compilers,
10343 # most powerpc-linux boxes support dynamic linking these days and
10344 # people can always --disable-shared, the test was removed, and we
10345 # assume the GNU/Linux dynamic linker is in use.
10346 dynamic_linker='GNU/Linux ld.so'
10347 ;;
10348
10349netbsd*)
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356 dynamic_linker='NetBSD (a.out) ld.so'
10357 else
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 dynamic_linker='NetBSD ld.elf_so'
10361 fi
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 ;;
10366
10367newsos6)
10368 version_type=linux
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 ;;
10373
10374*nto* | *qnx*)
10375 version_type=qnx
10376 need_lib_prefix=no
10377 need_version=no
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10383 dynamic_linker='ldqnx.so'
10384 ;;
10385
10386openbsd*)
10387 version_type=sunos
10388 sys_lib_dlsearch_path_spec="/usr/lib"
10389 need_lib_prefix=no
10390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391 case $host_os in
10392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10393 *) need_version=no ;;
10394 esac
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399 case $host_os in
10400 openbsd2.[89] | openbsd2.[89].*)
10401 shlibpath_overrides_runpath=no
10402 ;;
10403 *)
10404 shlibpath_overrides_runpath=yes
10405 ;;
10406 esac
10407 else
10408 shlibpath_overrides_runpath=yes
10409 fi
10410 ;;
10411
10412os2*)
10413 libname_spec='$name'
10414 shrext_cmds=".dll"
10415 need_lib_prefix=no
10416 library_names_spec='$libname${shared_ext} $libname.a'
10417 dynamic_linker='OS/2 ld.exe'
10418 shlibpath_var=LIBPATH
10419 ;;
10420
10421osf3* | osf4* | osf5*)
10422 version_type=osf
10423 need_lib_prefix=no
10424 need_version=no
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10430 ;;
10431
10432rdos*)
10433 dynamic_linker=no
10434 ;;
10435
10436solaris*)
10437 version_type=linux
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 hardcode_into_libs=yes
10445 # ldd complains unless libraries are executable
10446 postinstall_cmds='chmod +x $lib'
10447 ;;
10448
10449sunos4*)
10450 version_type=sunos
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 if test "$with_gnu_ld" = yes; then
10456 need_lib_prefix=no
10457 fi
10458 need_version=yes
10459 ;;
10460
10461sysv4 | sysv4.3*)
10462 version_type=linux
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 case $host_vendor in
10467 sni)
10468 shlibpath_overrides_runpath=no
10469 need_lib_prefix=no
10470 runpath_var=LD_RUN_PATH
10471 ;;
10472 siemens)
10473 need_lib_prefix=no
10474 ;;
10475 motorola)
10476 need_lib_prefix=no
10477 need_version=no
10478 shlibpath_overrides_runpath=no
10479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10480 ;;
10481 esac
10482 ;;
10483
10484sysv4*MP*)
10485 if test -d /usr/nec ;then
10486 version_type=linux
10487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10488 soname_spec='$libname${shared_ext}.$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 fi
10491 ;;
10492
10493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494 version_type=freebsd-elf
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10502 if test "$with_gnu_ld" = yes; then
10503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10504 else
10505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506 case $host_os in
10507 sco3.2v5*)
10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10509 ;;
10510 esac
10511 fi
10512 sys_lib_dlsearch_path_spec='/usr/lib'
10513 ;;
10514
10515tpf*)
10516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10517 version_type=linux
10518 need_lib_prefix=no
10519 need_version=no
718a6fd8 10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523 hardcode_into_libs=yes
10524 ;;
d7040cdb 10525
ce2cded5
L
10526uts4*)
10527 version_type=linux
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 ;;
d7040cdb 10532
ce2cded5
L
10533*)
10534 dynamic_linker=no
10535 ;;
10536esac
81ecdfbb
RW
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10538$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10539test "$dynamic_linker" = no && can_build_shared=no
10540
10541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10542if test "$GCC" = yes; then
10543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10544fi
d7040cdb 10545
718a6fd8
SE
10546if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10548fi
10549if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10551fi
10552
d7040cdb 10553
d7040cdb
SE
10554
10555
d7040cdb
SE
10556
10557
d7040cdb
SE
10558
10559
d7040cdb
SE
10560
10561
d7040cdb
SE
10562
10563
d7040cdb 10564
d7040cdb 10565
d7040cdb 10566
d7040cdb 10567
d7040cdb 10568
d7040cdb 10569
d7040cdb 10570
d7040cdb 10571
d7040cdb 10572
d7040cdb 10573
d7040cdb 10574
d7040cdb 10575
d7040cdb 10576
d7040cdb 10577
d7040cdb
SE
10578
10579
d7040cdb 10580
d7040cdb 10581
d7040cdb 10582
d7040cdb 10583
d7040cdb 10584
d7040cdb 10585
d7040cdb 10586
d7040cdb 10587
d7040cdb 10588
d7040cdb
SE
10589
10590
d7040cdb 10591
d7040cdb 10592
d7040cdb 10593
d7040cdb
SE
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
d7040cdb
SE
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
d7040cdb 10623
d7040cdb 10624
d7040cdb 10625
d7040cdb 10626
d7040cdb
SE
10627
10628
10629
10630
ce2cded5
L
10631
10632
3725885a
RW
10633
10634
10635
10636
10637
ce2cded5
L
10638
10639
10640
10641
10642
10643
81ecdfbb
RW
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10645$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10646hardcode_action=
10647if test -n "$hardcode_libdir_flag_spec" ||
10648 test -n "$runpath_var" ||
10649 test "X$hardcode_automatic" = "Xyes" ; then
10650
10651 # We can hardcode non-existent directories.
10652 if test "$hardcode_direct" != no &&
10653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654 # have to relink, otherwise we might link with an installed library
10655 # when we should be linking with a yet-to-be-installed one
10656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10657 test "$hardcode_minus_L" != no; then
10658 # Linking always hardcodes the temporary library directory.
10659 hardcode_action=relink
10660 else
10661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662 hardcode_action=immediate
10663 fi
10664else
10665 # We cannot hardcode anything, or else we can only hardcode existing
10666 # directories.
10667 hardcode_action=unsupported
10668fi
81ecdfbb
RW
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10670$as_echo "$hardcode_action" >&6; }
ce2cded5
L
10671
10672if test "$hardcode_action" = relink ||
10673 test "$inherit_rpath" = yes; then
10674 # Fast installation is not supported
10675 enable_fast_install=no
10676elif test "$shlibpath_overrides_runpath" = yes ||
10677 test "$enable_shared" = no; then
10678 # Fast installation is not necessary
10679 enable_fast_install=needless
d7040cdb 10680fi
d7040cdb 10681
d7040cdb
SE
10682
10683
10684
10685
10686
ce2cded5
L
10687 if test "x$enable_dlopen" != xyes; then
10688 enable_dlopen=unknown
10689 enable_dlopen_self=unknown
10690 enable_dlopen_self_static=unknown
10691else
10692 lt_cv_dlopen=no
10693 lt_cv_dlopen_libs=
10694
10695 case $host_os in
10696 beos*)
10697 lt_cv_dlopen="load_add_on"
10698 lt_cv_dlopen_libs=
10699 lt_cv_dlopen_self=yes
10700 ;;
d7040cdb 10701
718a6fd8 10702 mingw* | pw32* | cegcc*)
ce2cded5
L
10703 lt_cv_dlopen="LoadLibrary"
10704 lt_cv_dlopen_libs=
10705 ;;
d7040cdb 10706
ce2cded5
L
10707 cygwin*)
10708 lt_cv_dlopen="dlopen"
10709 lt_cv_dlopen_libs=
10710 ;;
d7040cdb 10711
ce2cded5
L
10712 darwin*)
10713 # if libdl is installed we need to link against it
81ecdfbb
RW
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10715$as_echo_n "checking for dlopen in -ldl... " >&6; }
10716if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
ce2cded5
L
10718else
10719 ac_check_lib_save_LIBS=$LIBS
10720LIBS="-ldl $LIBS"
81ecdfbb 10721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10722/* end confdefs.h. */
d7040cdb 10723
81ecdfbb
RW
10724/* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
ce2cded5
L
10727#ifdef __cplusplus
10728extern "C"
10729#endif
ce2cded5
L
10730char dlopen ();
10731int
10732main ()
10733{
81ecdfbb 10734return dlopen ();
ce2cded5
L
10735 ;
10736 return 0;
10737}
10738_ACEOF
81ecdfbb 10739if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10740 ac_cv_lib_dl_dlopen=yes
10741else
81ecdfbb 10742 ac_cv_lib_dl_dlopen=no
ce2cded5 10743fi
81ecdfbb
RW
10744rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10746LIBS=$ac_check_lib_save_LIBS
10747fi
81ecdfbb
RW
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10749$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10750if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752else
d7040cdb 10753
ce2cded5
L
10754 lt_cv_dlopen="dyld"
10755 lt_cv_dlopen_libs=
10756 lt_cv_dlopen_self=yes
d7040cdb 10757
ce2cded5 10758fi
d7040cdb 10759
ce2cded5 10760 ;;
d7040cdb 10761
ce2cded5 10762 *)
81ecdfbb
RW
10763 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10764if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10765 lt_cv_dlopen="shl_load"
10766else
81ecdfbb
RW
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10768$as_echo_n "checking for shl_load in -ldld... " >&6; }
10769if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
ce2cded5
L
10771else
10772 ac_check_lib_save_LIBS=$LIBS
10773LIBS="-ldld $LIBS"
81ecdfbb 10774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10775/* end confdefs.h. */
d7040cdb 10776
81ecdfbb
RW
10777/* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
ce2cded5
L
10780#ifdef __cplusplus
10781extern "C"
10782#endif
ce2cded5
L
10783char shl_load ();
10784int
10785main ()
10786{
81ecdfbb 10787return shl_load ();
ce2cded5
L
10788 ;
10789 return 0;
10790}
d7040cdb 10791_ACEOF
81ecdfbb 10792if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10793 ac_cv_lib_dld_shl_load=yes
10794else
81ecdfbb 10795 ac_cv_lib_dld_shl_load=no
d7040cdb 10796fi
81ecdfbb
RW
10797rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10799LIBS=$ac_check_lib_save_LIBS
10800fi
81ecdfbb
RW
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10802$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10803if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 10804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10805else
81ecdfbb
RW
10806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10807if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10808 lt_cv_dlopen="dlopen"
10809else
81ecdfbb
RW
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10811$as_echo_n "checking for dlopen in -ldl... " >&6; }
10812if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
d7040cdb 10814else
ce2cded5
L
10815 ac_check_lib_save_LIBS=$LIBS
10816LIBS="-ldl $LIBS"
81ecdfbb 10817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10818/* end confdefs.h. */
d7040cdb 10819
81ecdfbb
RW
10820/* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
ce2cded5
L
10823#ifdef __cplusplus
10824extern "C"
10825#endif
ce2cded5 10826char dlopen ();
d7040cdb
SE
10827int
10828main ()
10829{
81ecdfbb 10830return dlopen ();
d7040cdb
SE
10831 ;
10832 return 0;
10833}
10834_ACEOF
81ecdfbb 10835if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10836 ac_cv_lib_dl_dlopen=yes
10837else
81ecdfbb 10838 ac_cv_lib_dl_dlopen=no
ce2cded5 10839fi
81ecdfbb
RW
10840rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10842LIBS=$ac_check_lib_save_LIBS
10843fi
81ecdfbb
RW
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10845$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10846if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10848else
81ecdfbb
RW
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10850$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10851if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
ce2cded5
L
10853else
10854 ac_check_lib_save_LIBS=$LIBS
10855LIBS="-lsvld $LIBS"
81ecdfbb 10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10857/* end confdefs.h. */
d7040cdb 10858
81ecdfbb
RW
10859/* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
ce2cded5
L
10862#ifdef __cplusplus
10863extern "C"
10864#endif
ce2cded5 10865char dlopen ();
d7040cdb
SE
10866int
10867main ()
10868{
81ecdfbb 10869return dlopen ();
d7040cdb
SE
10870 ;
10871 return 0;
10872}
10873_ACEOF
81ecdfbb 10874if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10875 ac_cv_lib_svld_dlopen=yes
d7040cdb 10876else
81ecdfbb 10877 ac_cv_lib_svld_dlopen=no
d7040cdb 10878fi
81ecdfbb
RW
10879rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10881LIBS=$ac_check_lib_save_LIBS
10882fi
81ecdfbb
RW
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10884$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10885if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10887else
81ecdfbb
RW
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10889$as_echo_n "checking for dld_link in -ldld... " >&6; }
10890if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
d7040cdb 10892else
ce2cded5
L
10893 ac_check_lib_save_LIBS=$LIBS
10894LIBS="-ldld $LIBS"
81ecdfbb 10895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10896/* end confdefs.h. */
ce2cded5 10897
81ecdfbb
RW
10898/* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
ce2cded5
L
10901#ifdef __cplusplus
10902extern "C"
10903#endif
ce2cded5 10904char dld_link ();
d7040cdb
SE
10905int
10906main ()
10907{
81ecdfbb 10908return dld_link ();
d7040cdb
SE
10909 ;
10910 return 0;
10911}
10912_ACEOF
81ecdfbb 10913if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10914 ac_cv_lib_dld_dld_link=yes
10915else
81ecdfbb 10916 ac_cv_lib_dld_dld_link=no
d7040cdb 10917fi
81ecdfbb
RW
10918rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10920LIBS=$ac_check_lib_save_LIBS
10921fi
81ecdfbb
RW
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10923$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10924if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 10925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10926fi
10927
10928
10929fi
10930
10931
10932fi
10933
10934
10935fi
10936
10937
10938fi
10939
10940
10941fi
10942
10943 ;;
10944 esac
10945
10946 if test "x$lt_cv_dlopen" != xno; then
10947 enable_dlopen=yes
d7040cdb 10948 else
ce2cded5 10949 enable_dlopen=no
d7040cdb 10950 fi
ce2cded5
L
10951
10952 case $lt_cv_dlopen in
10953 dlopen)
10954 save_CPPFLAGS="$CPPFLAGS"
10955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10956
10957 save_LDFLAGS="$LDFLAGS"
10958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10959
10960 save_LIBS="$LIBS"
10961 LIBS="$lt_cv_dlopen_libs $LIBS"
10962
81ecdfbb
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10964$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10965if test "${lt_cv_dlopen_self+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
d7040cdb 10967else
ce2cded5
L
10968 if test "$cross_compiling" = yes; then :
10969 lt_cv_dlopen_self=cross
10970else
10971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10972 lt_status=$lt_dlunknown
10973 cat > conftest.$ac_ext <<_LT_EOF
6c3bc0f8 10974#line 10974 "configure"
ce2cded5
L
10975#include "confdefs.h"
10976
10977#if HAVE_DLFCN_H
10978#include <dlfcn.h>
10979#endif
10980
10981#include <stdio.h>
10982
10983#ifdef RTLD_GLOBAL
10984# define LT_DLGLOBAL RTLD_GLOBAL
10985#else
10986# ifdef DL_GLOBAL
10987# define LT_DLGLOBAL DL_GLOBAL
10988# else
10989# define LT_DLGLOBAL 0
10990# endif
10991#endif
10992
10993/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10994 find out it does not work in some platform. */
10995#ifndef LT_DLLAZY_OR_NOW
10996# ifdef RTLD_LAZY
10997# define LT_DLLAZY_OR_NOW RTLD_LAZY
10998# else
10999# ifdef DL_LAZY
11000# define LT_DLLAZY_OR_NOW DL_LAZY
11001# else
11002# ifdef RTLD_NOW
11003# define LT_DLLAZY_OR_NOW RTLD_NOW
11004# else
11005# ifdef DL_NOW
11006# define LT_DLLAZY_OR_NOW DL_NOW
11007# else
11008# define LT_DLLAZY_OR_NOW 0
11009# endif
11010# endif
11011# endif
11012# endif
11013#endif
11014
3725885a
RW
11015/* When -fvisbility=hidden is used, assume the code has been annotated
11016 correspondingly for the symbols needed. */
11017#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11018void fnord () __attribute__((visibility("default")));
3725885a
RW
11019#endif
11020
f2c621e4 11021void fnord () { int i=42; }
ce2cded5
L
11022int main ()
11023{
11024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11025 int status = $lt_dlunknown;
11026
11027 if (self)
11028 {
11029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11030 else
11031 {
11032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11033 else puts (dlerror ());
11034 }
ce2cded5
L
11035 /* dlclose (self); */
11036 }
11037 else
11038 puts (dlerror ());
11039
718a6fd8 11040 return status;
ce2cded5
L
11041}
11042_LT_EOF
81ecdfbb 11043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11044 (eval $ac_link) 2>&5
11045 ac_status=$?
81ecdfbb
RW
11046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11048 (./conftest; exit; ) >&5 2>/dev/null
11049 lt_status=$?
11050 case x$lt_status in
11051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11054 esac
11055 else :
11056 # compilation failed
11057 lt_cv_dlopen_self=no
11058 fi
11059fi
11060rm -fr conftest*
11061
d7040cdb
SE
11062
11063fi
81ecdfbb
RW
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11065$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11066
11067 if test "x$lt_cv_dlopen_self" = xyes; then
11068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11070$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11071if test "${lt_cv_dlopen_self_static+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
d7040cdb 11073else
ce2cded5
L
11074 if test "$cross_compiling" = yes; then :
11075 lt_cv_dlopen_self_static=cross
11076else
11077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11078 lt_status=$lt_dlunknown
11079 cat > conftest.$ac_ext <<_LT_EOF
6c3bc0f8 11080#line 11080 "configure"
ce2cded5
L
11081#include "confdefs.h"
11082
11083#if HAVE_DLFCN_H
11084#include <dlfcn.h>
11085#endif
11086
11087#include <stdio.h>
11088
11089#ifdef RTLD_GLOBAL
11090# define LT_DLGLOBAL RTLD_GLOBAL
11091#else
11092# ifdef DL_GLOBAL
11093# define LT_DLGLOBAL DL_GLOBAL
11094# else
11095# define LT_DLGLOBAL 0
11096# endif
11097#endif
11098
11099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11100 find out it does not work in some platform. */
11101#ifndef LT_DLLAZY_OR_NOW
11102# ifdef RTLD_LAZY
11103# define LT_DLLAZY_OR_NOW RTLD_LAZY
11104# else
11105# ifdef DL_LAZY
11106# define LT_DLLAZY_OR_NOW DL_LAZY
11107# else
11108# ifdef RTLD_NOW
11109# define LT_DLLAZY_OR_NOW RTLD_NOW
11110# else
11111# ifdef DL_NOW
11112# define LT_DLLAZY_OR_NOW DL_NOW
11113# else
11114# define LT_DLLAZY_OR_NOW 0
11115# endif
11116# endif
11117# endif
11118# endif
11119#endif
11120
3725885a
RW
11121/* When -fvisbility=hidden is used, assume the code has been annotated
11122 correspondingly for the symbols needed. */
11123#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11124void fnord () __attribute__((visibility("default")));
3725885a
RW
11125#endif
11126
f2c621e4 11127void fnord () { int i=42; }
ce2cded5 11128int main ()
d7040cdb 11129{
ce2cded5
L
11130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131 int status = $lt_dlunknown;
11132
11133 if (self)
11134 {
11135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11136 else
11137 {
11138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139 else puts (dlerror ());
11140 }
ce2cded5
L
11141 /* dlclose (self); */
11142 }
11143 else
11144 puts (dlerror ());
11145
718a6fd8 11146 return status;
d7040cdb 11147}
ce2cded5 11148_LT_EOF
81ecdfbb 11149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11150 (eval $ac_link) 2>&5
11151 ac_status=$?
81ecdfbb
RW
11152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11154 (./conftest; exit; ) >&5 2>/dev/null
11155 lt_status=$?
11156 case x$lt_status in
11157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160 esac
11161 else :
11162 # compilation failed
11163 lt_cv_dlopen_self_static=no
11164 fi
d7040cdb 11165fi
ce2cded5
L
11166rm -fr conftest*
11167
11168
d7040cdb 11169fi
81ecdfbb
RW
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11172 fi
11173
11174 CPPFLAGS="$save_CPPFLAGS"
11175 LDFLAGS="$save_LDFLAGS"
11176 LIBS="$save_LIBS"
11177 ;;
11178 esac
11179
11180 case $lt_cv_dlopen_self in
11181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182 *) enable_dlopen_self=unknown ;;
11183 esac
11184
11185 case $lt_cv_dlopen_self_static in
11186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187 *) enable_dlopen_self_static=unknown ;;
11188 esac
d7040cdb 11189fi
d7040cdb 11190
d7040cdb
SE
11191
11192
d7040cdb 11193
d7040cdb 11194
ce2cded5
L
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207striplib=
11208old_striplib=
81ecdfbb
RW
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11211if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215$as_echo "yes" >&6; }
ce2cded5
L
11216else
11217# FIXME - insert some real tests, host_os isn't really good enough
11218 case $host_os in
11219 darwin*)
11220 if test -n "$STRIP" ; then
11221 striplib="$STRIP -x"
11222 old_striplib="$STRIP -S"
81ecdfbb
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224$as_echo "yes" >&6; }
ce2cded5 11225 else
81ecdfbb
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
d7040cdb 11228 fi
ce2cded5
L
11229 ;;
11230 *)
81ecdfbb
RW
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232$as_echo "no" >&6; }
ce2cded5 11233 ;;
d7040cdb 11234 esac
d7040cdb
SE
11235fi
11236
d7040cdb 11237
d7040cdb 11238
d7040cdb 11239
d7040cdb 11240
d7040cdb 11241
d7040cdb 11242
d7040cdb 11243
d7040cdb 11244
d7040cdb 11245
d7040cdb 11246
d7040cdb 11247
ce2cded5 11248 # Report which library types will actually be built
81ecdfbb
RW
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252$as_echo "$can_build_shared" >&6; }
d7040cdb 11253
81ecdfbb
RW
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11256 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11257
ce2cded5
L
11258 # On AIX, shared libraries and static libraries use the same namespace, and
11259 # are all built from PIC.
11260 case $host_os in
11261 aix3*)
11262 test "$enable_shared" = yes && enable_static=no
11263 if test -n "$RANLIB"; then
11264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265 postinstall_cmds='$RANLIB $lib'
11266 fi
11267 ;;
d7040cdb 11268
50e7d84b 11269 aix[4-9]*)
ce2cded5
L
11270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271 test "$enable_shared" = yes && enable_static=no
11272 fi
11273 ;;
11274 esac
81ecdfbb
RW
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276$as_echo "$enable_shared" >&6; }
ce2cded5 11277
81ecdfbb
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11280 # Make sure either enable_shared or enable_static is yes.
11281 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283$as_echo "$enable_static" >&6; }
d7040cdb 11284
d7040cdb 11285
d7040cdb 11286
d7040cdb 11287
ce2cded5
L
11288fi
11289ac_ext=c
11290ac_cpp='$CPP $CPPFLAGS'
11291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11294
ce2cded5 11295CC="$lt_save_CC"
d7040cdb 11296
d7040cdb 11297
d7040cdb 11298
d7040cdb 11299
d7040cdb 11300
d7040cdb 11301
d7040cdb 11302
d7040cdb 11303
d7040cdb 11304
d7040cdb
SE
11305
11306
d7040cdb
SE
11307
11308
81ecdfbb 11309 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11310
11311
d7040cdb 11312
d7040cdb 11313
ce2cded5 11314# Only expand once:
d7040cdb 11315
d7040cdb 11316
d7040cdb 11317
b879806f
AM
11318# The tests for host and target for $enable_largefile require
11319# canonical names.
11320
11321
11322
11323# As the $enable_largefile decision depends on --enable-plugins we must set it
11324# even in directories otherwise not depending on the $plugins option.
11325
11326
11327 maybe_plugins=no
11328 for ac_header in dlfcn.h
11329do :
11330 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11331"
11332if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11333 cat >>confdefs.h <<_ACEOF
11334#define HAVE_DLFCN_H 1
11335_ACEOF
11336 maybe_plugins=yes
11337fi
11338
11339done
11340
11341 for ac_header in windows.h
11342do :
11343 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11344"
11345if test "x$ac_cv_header_windows_h" = x""yes; then :
11346 cat >>confdefs.h <<_ACEOF
11347#define HAVE_WINDOWS_H 1
11348_ACEOF
11349 maybe_plugins=yes
11350fi
11351
11352done
11353
11354
11355 # Check whether --enable-plugins was given.
11356if test "${enable_plugins+set}" = set; then :
11357 enableval=$enable_plugins; case "${enableval}" in
11358 no) plugins=no ;;
11359 *) plugins=yes
11360 if test "$maybe_plugins" != "yes" ; then
11361 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11362 fi ;;
11363 esac
11364else
11365 plugins=$maybe_plugins
11366
11367fi
11368
2974be62
AM
11369 if test "$plugins" = "yes"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11371$as_echo_n "checking for library containing dlopen... " >&6; }
11372if test "${ac_cv_search_dlopen+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
11374else
11375 ac_func_search_save_LIBS=$LIBS
11376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377/* end confdefs.h. */
11378
11379/* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11382#ifdef __cplusplus
11383extern "C"
11384#endif
11385char dlopen ();
11386int
11387main ()
11388{
11389return dlopen ();
11390 ;
11391 return 0;
11392}
11393_ACEOF
11394for ac_lib in '' dl; do
11395 if test -z "$ac_lib"; then
11396 ac_res="none required"
11397 else
11398 ac_res=-l$ac_lib
11399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11400 fi
11401 if ac_fn_c_try_link "$LINENO"; then :
11402 ac_cv_search_dlopen=$ac_res
11403fi
11404rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext
11406 if test "${ac_cv_search_dlopen+set}" = set; then :
11407 break
11408fi
11409done
11410if test "${ac_cv_search_dlopen+set}" = set; then :
11411
11412else
11413 ac_cv_search_dlopen=no
11414fi
11415rm conftest.$ac_ext
11416LIBS=$ac_func_search_save_LIBS
11417fi
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11419$as_echo "$ac_cv_search_dlopen" >&6; }
11420ac_res=$ac_cv_search_dlopen
11421if test "$ac_res" != no; then :
11422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11423
11424fi
11425
11426 fi
b879806f
AM
11427
11428
11429case "${host}" in
11430 sparc-*-solaris*|i[3-7]86-*-solaris*)
11431 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11432 # are mutually exclusive; and without procfs support, the bfd/ elf module
11433 # cannot provide certain routines such as elfcore_write_prpsinfo
11434 # or elfcore_write_prstatus. So unless the user explicitly requested
11435 # large-file support through the --enable-largefile switch, disable
11436 # large-file support in favor of procfs support.
11437 test "${target}" = "${host}" -a "x$plugins" = xno \
11438 && : ${enable_largefile="no"}
11439 ;;
11440esac
11441
11442# Check whether --enable-largefile was given.
11443if test "${enable_largefile+set}" = set; then :
11444 enableval=$enable_largefile;
11445fi
11446
11447if test "$enable_largefile" != no; then
11448
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11450$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11451if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11453else
11454 ac_cv_sys_largefile_CC=no
11455 if test "$GCC" != yes; then
11456 ac_save_CC=$CC
11457 while :; do
11458 # IRIX 6.2 and later do not support large files by default,
11459 # so use the C compiler's -n32 option if that helps.
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h. */
11462#include <sys/types.h>
11463 /* Check that off_t can represent 2**63 - 1 correctly.
11464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11465 since some C++ compilers masquerading as C compilers
11466 incorrectly reject 9223372036854775807. */
11467#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11469 && LARGE_OFF_T % 2147483647 == 1)
11470 ? 1 : -1];
11471int
11472main ()
11473{
11474
11475 ;
11476 return 0;
11477}
11478_ACEOF
11479 if ac_fn_c_try_compile "$LINENO"; then :
11480 break
11481fi
11482rm -f core conftest.err conftest.$ac_objext
11483 CC="$CC -n32"
11484 if ac_fn_c_try_compile "$LINENO"; then :
11485 ac_cv_sys_largefile_CC=' -n32'; break
11486fi
11487rm -f core conftest.err conftest.$ac_objext
11488 break
11489 done
11490 CC=$ac_save_CC
11491 rm -f conftest.$ac_ext
11492 fi
11493fi
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11495$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11496 if test "$ac_cv_sys_largefile_CC" != no; then
11497 CC=$CC$ac_cv_sys_largefile_CC
11498 fi
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11501$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11502if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504else
11505 while :; do
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507/* end confdefs.h. */
11508#include <sys/types.h>
11509 /* Check that off_t can represent 2**63 - 1 correctly.
11510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11511 since some C++ compilers masquerading as C compilers
11512 incorrectly reject 9223372036854775807. */
11513#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11515 && LARGE_OFF_T % 2147483647 == 1)
11516 ? 1 : -1];
11517int
11518main ()
11519{
11520
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525if ac_fn_c_try_compile "$LINENO"; then :
11526 ac_cv_sys_file_offset_bits=no; break
11527fi
11528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530/* end confdefs.h. */
11531#define _FILE_OFFSET_BITS 64
11532#include <sys/types.h>
11533 /* Check that off_t can represent 2**63 - 1 correctly.
11534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11535 since some C++ compilers masquerading as C compilers
11536 incorrectly reject 9223372036854775807. */
11537#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11539 && LARGE_OFF_T % 2147483647 == 1)
11540 ? 1 : -1];
11541int
11542main ()
11543{
11544
11545 ;
11546 return 0;
11547}
11548_ACEOF
11549if ac_fn_c_try_compile "$LINENO"; then :
11550 ac_cv_sys_file_offset_bits=64; break
11551fi
11552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553 ac_cv_sys_file_offset_bits=unknown
11554 break
11555done
11556fi
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11558$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11559case $ac_cv_sys_file_offset_bits in #(
11560 no | unknown) ;;
11561 *)
11562cat >>confdefs.h <<_ACEOF
11563#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11564_ACEOF
11565;;
11566esac
11567rm -rf conftest*
11568 if test $ac_cv_sys_file_offset_bits = unknown; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11570$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11571if test "${ac_cv_sys_large_files+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11573else
11574 while :; do
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576/* end confdefs.h. */
11577#include <sys/types.h>
11578 /* Check that off_t can represent 2**63 - 1 correctly.
11579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11580 since some C++ compilers masquerading as C compilers
11581 incorrectly reject 9223372036854775807. */
11582#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11584 && LARGE_OFF_T % 2147483647 == 1)
11585 ? 1 : -1];
11586int
11587main ()
11588{
11589
11590 ;
11591 return 0;
11592}
11593_ACEOF
11594if ac_fn_c_try_compile "$LINENO"; then :
11595 ac_cv_sys_large_files=no; break
11596fi
11597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599/* end confdefs.h. */
11600#define _LARGE_FILES 1
11601#include <sys/types.h>
11602 /* Check that off_t can represent 2**63 - 1 correctly.
11603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11604 since some C++ compilers masquerading as C compilers
11605 incorrectly reject 9223372036854775807. */
11606#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11608 && LARGE_OFF_T % 2147483647 == 1)
11609 ? 1 : -1];
11610int
11611main ()
11612{
11613
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_compile "$LINENO"; then :
11619 ac_cv_sys_large_files=1; break
11620fi
11621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 ac_cv_sys_large_files=unknown
11623 break
11624done
11625fi
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11627$as_echo "$ac_cv_sys_large_files" >&6; }
11628case $ac_cv_sys_large_files in #(
11629 no | unknown) ;;
11630 *)
11631cat >>confdefs.h <<_ACEOF
11632#define _LARGE_FILES $ac_cv_sys_large_files
11633_ACEOF
11634;;
11635esac
11636rm -rf conftest*
11637 fi
11638fi
11639
11640
11641
81ecdfbb
RW
11642# Check whether --enable-targets was given.
11643if test "${enable_targets+set}" = set; then :
11644 enableval=$enable_targets; case "${enableval}" in
11645 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
11646 ;;
11647 no) enable_targets= ;;
11648 *) enable_targets=$enableval ;;
11649esac
81ecdfbb
RW
11650fi
11651
ce2cded5
L
11652ac_checking=yes
11653if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11654 ac_checking=
11655fi
81ecdfbb
RW
11656# Check whether --enable-checking was given.
11657if test "${enable_checking+set}" = set; then :
11658 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
11659 no|none) ac_checking= ;;
11660 *) ac_checking=yes ;;
11661esac
81ecdfbb
RW
11662fi
11663if test x$ac_checking != x ; then
d7040cdb 11664
81ecdfbb 11665$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 11666
ce2cded5 11667fi
d7040cdb 11668
6c3bc0f8
NC
11669# PR gas/19109
11670# Decide the default method for compressing debug sections.
11671ac_default_compressed_debug_sections=unset
11672# Provide a configure time option to override our default.
11673# Check whether --enable-compressed_debug_sections was given.
11674if test "${enable_compressed_debug_sections+set}" = set; then :
11675 enableval=$enable_compressed_debug_sections; case "${enableval}" in
11676 yes | all | gas) ac_default_compressed_debug_sections=yes ;;
11677 no | none) ac_default_compressed_debug_sections=no ;;
11678 *) ac_default_compressed_debug_sections=unset ;;
11679esac
11680fi
11681
ce2cded5 11682using_cgen=no
d7040cdb 11683
d7040cdb 11684
270c9937
JB
11685# Set the 'development' global.
11686. $srcdir/../bfd/development.sh
11687
397841b5
AM
11688GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690/* end confdefs.h. */
11691__GNUC__
11692_ACEOF
11693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11694 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11695
11696else
11697 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11698fi
11699rm -f conftest*
11700
d7040cdb 11701
81ecdfbb
RW
11702# Check whether --enable-werror was given.
11703if test "${enable_werror+set}" = set; then :
11704 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
11705 yes | y) ERROR_ON_WARNING="yes" ;;
11706 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11707 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 11708 esac
81ecdfbb
RW
11709fi
11710
d7040cdb 11711
397841b5 11712# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11713case "${host}" in
11714 *-*-mingw32*)
11715 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11716 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11717 fi
11718 ;;
11719 *) ;;
11720esac
11721
270c9937
JB
11722# Enable -Werror by default when using gcc. Turn it off for releases.
11723if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
ce2cded5
L
11724 ERROR_ON_WARNING=yes
11725fi
11726
11727NO_WERROR=
11728if test "${ERROR_ON_WARNING}" = yes ; then
11729 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11730 NO_WERROR="-Wno-error"
11731fi
11732
11733if test "${GCC}" = yes ; then
11734 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11735fi
11736
81ecdfbb
RW
11737# Check whether --enable-build-warnings was given.
11738if test "${enable_build_warnings+set}" = set; then :
11739 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
11740 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11741 no) if test "${GCC}" = yes ; then
11742 WARN_CFLAGS="-w"
11743 fi;;
11744 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11745 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11746 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11747 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11748 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11749esac
81ecdfbb
RW
11750fi
11751
d7040cdb 11752
ce2cded5
L
11753if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11754 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11755fi
d7040cdb 11756
d7040cdb 11757
d7040cdb 11758
d7040cdb 11759
d7040cdb 11760
ce2cded5 11761# Generate a header file
81ecdfbb 11762ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 11763
d7040cdb 11764
df7b86aa
NC
11765# PR 14072
11766
11767
ce2cded5
L
11768# If we are on a DOS filesystem, we must use gdb.ini rather than
11769# .gdbinit.
11770case "${host}" in
11771 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11772 GDBINIT="gdb.ini"
81ecdfbb 11773 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 11774
ce2cded5
L
11775 ;;
11776 *)
11777 GDBINIT=".gdbinit"
81ecdfbb 11778 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 11779
ce2cded5
L
11780 ;;
11781esac
d7040cdb 11782
d7040cdb 11783
ce2cded5 11784#We need this for the host. BOUT header is in host order.
81ecdfbb
RW
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11786$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11787if test "${ac_cv_c_bigendian+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11789else
11790 ac_cv_c_bigendian=unknown
11791 # See if we're dealing with a universal compiler.
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h. */
11794#ifndef __APPLE_CC__
11795 not a universal capable compiler
11796 #endif
11797 typedef int dummy;
11798
11799_ACEOF
11800if ac_fn_c_try_compile "$LINENO"; then :
11801
11802 # Check for potential -arch flags. It is not universal unless
11803 # there are at least two -arch flags with different values.
11804 ac_arch=
11805 ac_prev=
11806 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11807 if test -n "$ac_prev"; then
11808 case $ac_word in
11809 i?86 | x86_64 | ppc | ppc64)
11810 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11811 ac_arch=$ac_word
11812 else
11813 ac_cv_c_bigendian=universal
11814 break
11815 fi
11816 ;;
11817 esac
11818 ac_prev=
11819 elif test "x$ac_word" = "x-arch"; then
11820 ac_prev=arch
11821 fi
11822 done
11823fi
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 if test $ac_cv_c_bigendian = unknown; then
11826 # See if sys/param.h defines the BYTE_ORDER macro.
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11828/* end confdefs.h. */
11829#include <sys/types.h>
81ecdfbb 11830 #include <sys/param.h>
d7040cdb 11831
ce2cded5
L
11832int
11833main ()
11834{
81ecdfbb
RW
11835#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11836 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11837 && LITTLE_ENDIAN)
11838 bogus endian macros
11839 #endif
d7040cdb 11840
ce2cded5
L
11841 ;
11842 return 0;
11843}
11844_ACEOF
81ecdfbb 11845if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11846 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11848/* end confdefs.h. */
11849#include <sys/types.h>
81ecdfbb 11850 #include <sys/param.h>
d7040cdb 11851
ce2cded5
L
11852int
11853main ()
11854{
11855#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11856 not big endian
11857 #endif
d7040cdb 11858
ce2cded5
L
11859 ;
11860 return 0;
11861}
11862_ACEOF
81ecdfbb 11863if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
11864 ac_cv_c_bigendian=yes
11865else
81ecdfbb 11866 ac_cv_c_bigendian=no
ce2cded5 11867fi
81ecdfbb
RW
11868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869fi
11870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 fi
11872 if test $ac_cv_c_bigendian = unknown; then
11873 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h. */
11876#include <limits.h>
d7040cdb 11877
81ecdfbb
RW
11878int
11879main ()
11880{
11881#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11882 bogus endian macros
11883 #endif
11884
11885 ;
11886 return 0;
11887}
ce2cded5 11888_ACEOF
81ecdfbb
RW
11889if ac_fn_c_try_compile "$LINENO"; then :
11890 # It does; now see whether it defined to _BIG_ENDIAN or not.
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11892/* end confdefs.h. */
81ecdfbb
RW
11893#include <limits.h>
11894
ce2cded5
L
11895int
11896main ()
11897{
81ecdfbb
RW
11898#ifndef _BIG_ENDIAN
11899 not big endian
11900 #endif
11901
ce2cded5
L
11902 ;
11903 return 0;
11904}
11905_ACEOF
81ecdfbb 11906if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11907 ac_cv_c_bigendian=yes
81ecdfbb
RW
11908else
11909 ac_cv_c_bigendian=no
d7040cdb 11910fi
81ecdfbb 11911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11912fi
81ecdfbb
RW
11913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914 fi
11915 if test $ac_cv_c_bigendian = unknown; then
11916 # Compile a test program.
11917 if test "$cross_compiling" = yes; then :
11918 # Try to guess by grepping values from an object file.
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h. */
11921short int ascii_mm[] =
11922 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11923 short int ascii_ii[] =
11924 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11925 int use_ascii (int i) {
11926 return ascii_mm[i] + ascii_ii[i];
11927 }
11928 short int ebcdic_ii[] =
11929 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11930 short int ebcdic_mm[] =
11931 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11932 int use_ebcdic (int i) {
11933 return ebcdic_mm[i] + ebcdic_ii[i];
11934 }
11935 extern int foo;
d7040cdb 11936
81ecdfbb
RW
11937int
11938main ()
11939{
11940return use_ascii (foo) == use_ebcdic (foo);
11941 ;
11942 return 0;
11943}
11944_ACEOF
11945if ac_fn_c_try_compile "$LINENO"; then :
11946 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11947 ac_cv_c_bigendian=yes
11948 fi
11949 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11950 if test "$ac_cv_c_bigendian" = unknown; then
11951 ac_cv_c_bigendian=no
11952 else
11953 # finding both strings is unlikely to happen, but who knows?
11954 ac_cv_c_bigendian=unknown
11955 fi
11956 fi
ce2cded5 11957fi
81ecdfbb 11958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11959else
81ecdfbb 11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11961/* end confdefs.h. */
81ecdfbb 11962$ac_includes_default
ce2cded5
L
11963int
11964main ()
11965{
81ecdfbb
RW
11966
11967 /* Are we little or big endian? From Harbison&Steele. */
11968 union
11969 {
11970 long int l;
11971 char c[sizeof (long int)];
11972 } u;
11973 u.l = 1;
11974 return u.c[sizeof (long int) - 1] == 1;
11975
11976 ;
11977 return 0;
ce2cded5 11978}
d7040cdb 11979_ACEOF
81ecdfbb 11980if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
11981 ac_cv_c_bigendian=no
11982else
81ecdfbb 11983 ac_cv_c_bigendian=yes
d7040cdb 11984fi
81ecdfbb
RW
11985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11986 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 11987fi
81ecdfbb
RW
11988
11989 fi
ce2cded5 11990fi
81ecdfbb
RW
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11992$as_echo "$ac_cv_c_bigendian" >&6; }
11993 case $ac_cv_c_bigendian in #(
11994 yes)
11995 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11996;; #(
11997 no)
11998 ;; #(
11999 universal)
d7040cdb 12000
81ecdfbb
RW
12001$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12002
12003 ;; #(
12004 *)
12005 as_fn_error "unknown endianness
12006 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12007 esac
d7040cdb 12008
d7040cdb 12009
ce2cded5 12010te_file=generic
d7040cdb 12011
ce2cded5
L
12012# Makefile target for installing gas in $(tooldir)/bin.
12013install_tooldir=install-exec-tooldir
d7040cdb 12014
ce2cded5
L
12015canon_targets=""
12016all_targets=no
12017if test -n "$enable_targets" ; then
12018 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12019 if test $t = "all"; then
12020 all_targets=yes
12021 continue
12022 fi
12023 result=`$ac_config_sub $t 2>/dev/null`
12024 if test -n "$result" ; then
12025 canon_targets="$canon_targets $result"
12026# else
12027# # Permit "all", etc. We don't support it yet though.
12028# canon_targets="$canon_targets $t"
12029 fi
12030 done
12031 _gas_uniq_list="$canon_targets"
d7040cdb
SE
12032_gas_uniq_newlist=""
12033for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12034 case $_gas_uniq_i in
12035 _gas_uniq_dummy) ;;
12036 *) case " $_gas_uniq_newlist " in
12037 *" $_gas_uniq_i "*) ;;
12038 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12039 esac ;;
12040 esac
12041done
ce2cded5 12042canon_targets=$_gas_uniq_newlist
d7040cdb 12043
ce2cded5
L
12044fi
12045
12046emulations=""
12047
12048for this_target in $target $canon_targets ; do
12049
12050 targ=${this_target}
12051 . ${srcdir}/configure.tgt
12052
12053 case ${target_cpu} in
12054 crisv32)
12055
12056cat >>confdefs.h <<_ACEOF
12057#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12058_ACEOF
ce2cded5
L
12059
12060 ;;
12061 esac
12062
12063 if test ${this_target} = $target ; then
12064 target_cpu_type=${cpu_type}
12065 elif test ${target_cpu_type} != ${cpu_type} ; then
12066 continue
12067 fi
12068
12069 generic_target=${cpu_type}-${target_vendor}-${target_os}
12070 case ${generic_target} in
12071 i386-*-sco3.2v5*)
12072 if test ${this_target} = $target; then
12073
81ecdfbb 12074$as_echo "#define SCO_ELF 1" >>confdefs.h
ce2cded5
L
12075
12076 fi
12077 ;;
12078
12079 i386-*-msdosdjgpp* \
12080 | i386-*-go32* \
12081 | i386-go32-rtems*)
12082
81ecdfbb 12083$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
12084
12085 ;;
12086
12087 i860-*-*)
81ecdfbb
RW
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12089$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
ce2cded5
L
12090 ;;
12091
7ba29e2a
NC
12092 microblaze*)
12093 ;;
12094
e5231592 12095 ppc-*-aix[5-9].*)
ce2cded5 12096
81ecdfbb 12097$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5 12098
ce2cded5
L
12099 ;;
12100 ppc-*-solaris*)
12101 if test ${this_target} = $target; then
12102
81ecdfbb 12103$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
12104
12105 fi
12106 if test x${endian} = xbig; then
81ecdfbb 12107 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
12108 fi
12109 ;;
12110
12111 sh*-*-symbianelf*)
12112
81ecdfbb 12113$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
ce2cded5
L
12114
12115 ;;
d7040cdb 12116 esac
d7040cdb 12117
ce2cded5
L
12118 if test ${this_target} = $target ; then
12119 endian_def=
12120 if test x${endian} = xbig; then
12121 endian_def=1
12122 elif test x${endian} = xlittle; then
12123 endian_def=0
12124 fi
12125 if test x${endian_def} != x; then
12126
12127cat >>confdefs.h <<_ACEOF
12128#define TARGET_BYTES_BIG_ENDIAN $endian_def
12129_ACEOF
12130
12131 fi
12132 fi
12133
12134# Other random stuff.
12135
12136 case ${cpu_type} in
12137 mips)
12138 # Set mips_cpu to the name of the default CPU.
12139 case ${target_cpu} in
12140 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12141 mips_cpu=from-abi
12142 ;;
12143 mipsisa32 | mipsisa32el)
12144 mips_cpu=mips32
12145 ;;
12146 mipsisa32r2 | mipsisa32r2el)
12147 mips_cpu=mips32r2
12148 ;;
ae52f483
AB
12149 mipsisa32r3 | mipsisa32r3el)
12150 mips_cpu=mips32r3
12151 ;;
12152 mipsisa32r5 | mipsisa32r5el)
12153 mips_cpu=mips32r5
12154 ;;
7361da2c
AB
12155 mipsisa32r6 | mipsisa32r6el)
12156 mips_cpu=mips32r6
12157 ;;
ce2cded5
L
12158 mipsisa64 | mipsisa64el)
12159 mips_cpu=mips64
12160 ;;
12161 mipsisa64r2 | mipsisa64r2el)
12162 mips_cpu=mips64r2
12163 ;;
ae52f483
AB
12164 mipsisa64r3 | mipsisa64r3el)
12165 mips_cpu=mips64r3
12166 ;;
12167 mipsisa64r5 | mipsisa64r5el)
12168 mips_cpu=mips64r5
12169 ;;
7361da2c
AB
12170 mipsisa64r6 | mipsisa64r6el)
12171 mips_cpu=mips64r6
12172 ;;
ce2cded5
L
12173 mipstx39 | mipstx39el)
12174 mips_cpu=r3900
12175 ;;
12176 mips64vr | mips64vrel)
12177 mips_cpu=vr4100
12178 ;;
12179 mipsisa32r2* | mipsisa64r2*)
12180 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12181 ;;
7361da2c
AB
12182 mipsisa32r6* | mipsisa64r6*)
12183 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12184 ;;
ce2cded5
L
12185 mips64* | mipsisa64* | mipsisa32*)
12186 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12187 ;;
e407c74b
NC
12188 mips*)
12189 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12190 ;;
ce2cded5 12191 *)
81ecdfbb 12192 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12193 ;;
12194 esac
12195 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12196 # binaries. It's a GNU extension that some OSes don't understand.
ce2cded5
L
12197 case ${target} in
12198 *-*-irix*)
12199 use_e_mips_abi_o32=0
12200 ;;
12201 *)
12202 use_e_mips_abi_o32=1
12203 ;;
12204 esac
12205 # Decide whether to generate 32-bit or 64-bit code by default.
12206 # Used to resolve -march=from-abi when an embedded ABI is selected.
12207 case ${target} in
12208 mips64*-*-* | mipsisa64*-*-*)
12209 mips_default_64bit=1
12210 ;;
12211 *)
12212 mips_default_64bit=0
12213 ;;
12214 esac
12215 # Decide which ABI to target by default.
12216 case ${target} in
aeffff67 12217 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
ce2cded5
L
12218 mips_default_abi=N32_ABI
12219 ;;
aeffff67 12220 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
ce2cded5
L
12221 mips_default_abi=O32_ABI
12222 ;;
12223 mips64*-openbsd*)
12224 mips_default_abi=N64_ABI
12225 ;;
12226 *)
12227 mips_default_abi=NO_ABI
12228 ;;
12229 esac
12230
12231cat >>confdefs.h <<_ACEOF
12232#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12233_ACEOF
d7040cdb
SE
12234
12235
12236cat >>confdefs.h <<_ACEOF
ce2cded5 12237#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12238_ACEOF
12239
12240
12241cat >>confdefs.h <<_ACEOF
ce2cded5 12242#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12243_ACEOF
12244
12245
ce2cded5
L
12246cat >>confdefs.h <<_ACEOF
12247#define MIPS_DEFAULT_ABI $mips_default_abi
12248_ACEOF
d7040cdb 12249
ce2cded5
L
12250 ;;
12251 esac
d7040cdb 12252
ce2cded5
L
12253 # Do we need the opcodes library?
12254 case ${cpu_type} in
12255 vax | tic30)
12256 ;;
d7040cdb 12257
ce2cded5
L
12258 *)
12259 need_opcodes=yes
d7040cdb 12260
ce2cded5
L
12261 case "${enable_shared}" in
12262 yes) shared_opcodes=true ;;
12263 *opcodes*) shared_opcodes=true ;;
12264 *) shared_opcodes=false ;;
12265 esac
12266 ;;
12267 esac
d7040cdb 12268
ce2cded5
L
12269 # Any other special object files needed ?
12270 case ${cpu_type} in
d7040cdb 12271
ce2cded5
L
12272 bfin)
12273 echo ${extra_objects} | grep -s "bfin-parse.o"
12274 if test $? -ne 0 ; then
12275 extra_objects="$extra_objects bfin-parse.o"
12276 fi
d7040cdb 12277
df7b86aa 12278 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
ce2cded5 12279 if test $? -ne 0 ; then
df7b86aa 12280 extra_objects="$extra_objects bfin-lex-wrapper.o"
ce2cded5
L
12281 fi
12282 ;;
d7040cdb 12283
73589c9d 12284 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
ce2cded5
L
12285 using_cgen=yes
12286 ;;
d7040cdb 12287
ce2cded5
L
12288 m32c)
12289 using_cgen=yes
12290 ;;
12291 frv)
12292 using_cgen=yes
12293 ;;
12294 m68k)
12295 case ${extra_objects} in
12296 *m68k-parse.o*) ;;
12297 *) extra_objects="$extra_objects m68k-parse.o" ;;
12298 esac
12299 ;;
d7040cdb 12300
ce2cded5
L
12301 mep)
12302 using_cgen=yes
12303 ;;
d7040cdb 12304
ce2cded5
L
12305 mips)
12306 echo ${extra_objects} | grep -s "itbl-parse.o"
12307 if test $? -ne 0 ; then
12308 extra_objects="$extra_objects itbl-parse.o"
12309 fi
d7040cdb 12310
df7b86aa 12311 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
ce2cded5 12312 if test $? -ne 0 ; then
df7b86aa 12313 extra_objects="$extra_objects itbl-lex-wrapper.o"
ce2cded5 12314 fi
d7040cdb 12315
ce2cded5
L
12316 echo ${extra_objects} | grep -s "itbl-ops.o"
12317 if test $? -ne 0 ; then
12318 extra_objects="$extra_objects itbl-ops.o"
12319 fi
12320 ;;
d7040cdb 12321
ce2cded5
L
12322 mt)
12323 using_cgen=yes
12324 ;;
d7040cdb 12325
35c08157
KLC
12326 nds32)
12327 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12328 # based on arch_name.
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12330$as_echo_n "checking for default configuration of --with-arch... " >&6; }
12331 if test "x${with_arch}" != x; then
12332 case ${with_arch} in
12333 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12334
12335cat >>confdefs.h <<_ACEOF
12336#define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12337_ACEOF
12338
12339 ;;
12340 *)
12341 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12342 ;;
12343 esac
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12346$as_echo "$with_arch" >&6; }
12347
12348 # Decide features one by one.
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12350$as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
6cd8405e 12351 if test "x${enable_dx_regs}" = xyes; then
35c08157
KLC
12352
12353$as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12354
12355 else
12356
12357$as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12358
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12361$as_echo "$enable_dx_regs" >&6; }
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12364$as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
6cd8405e 12365 if test "x${enable_perf_ext}" = xno; then
35c08157
KLC
12366
12367$as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12368
12369 else
12370
12371$as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12372
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12375$as_echo "$enable_perf_ext" >&6; }
12376
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12378$as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
6cd8405e 12379 if test "x${enable_perf_ext2}" = xno; then
35c08157
KLC
12380
12381$as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12382
12383 else
12384
12385$as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12386
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12389$as_echo "$enable_perf_ext2" >&6; }
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12392$as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
6cd8405e 12393 if test "x${enable_string_ext}" = xno; then
35c08157
KLC
12394
12395$as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12396
12397 else
12398
12399$as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12400
12401 fi
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12403$as_echo "$enable_string_ext" >&6; }
12404
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12406$as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
6cd8405e 12407 if test "x${enable_audio_ext}" = xno; then
35c08157
KLC
12408
12409$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12410
12411 else
12412
12413$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12414
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12417$as_echo "$enable_audio_ext" >&6; }
12418 ;;
12419
ce2cded5
L
12420 i386 | s390 | sparc)
12421 if test $this_target = $target ; then
d7040cdb
SE
12422
12423cat >>confdefs.h <<_ACEOF
ce2cded5 12424#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12425_ACEOF
12426
ce2cded5
L
12427 fi
12428 ;;
d7040cdb 12429
99c513f6
DD
12430 rl78)
12431 echo ${extra_objects} | grep -s "rl78-parse.o"
12432 if test $? -ne 0 ; then
12433 extra_objects="$extra_objects rl78-parse.o"
12434 fi
12435 ;;
12436
c7927a3c
NC
12437 rx)
12438 echo ${extra_objects} | grep -s "rx-parse.o"
12439 if test $? -ne 0 ; then
12440 extra_objects="$extra_objects rx-parse.o"
12441 fi
12442 ;;
12443
ce2cded5
L
12444 xstormy16)
12445 using_cgen=yes
12446 ;;
d7040cdb 12447
ce2cded5
L
12448 xc16x)
12449 using_cgen=yes
12450 ;;
d7040cdb 12451
ce2cded5
L
12452 xtensa)
12453 echo ${extra_objects} | grep -s "xtensa-relax.o"
12454 if test $? -ne 0 ; then
12455 extra_objects="$extra_objects xtensa-relax.o"
12456 fi
12457 ;;
d7040cdb 12458
ce2cded5
L
12459 *)
12460 ;;
12461 esac
d7040cdb 12462
ce2cded5
L
12463 if test $using_cgen = yes ; then
12464 case "x${extra_objects}" in
12465 *cgen.o*) ;;
12466 *) extra_objects="$extra_objects cgen.o" ;;
12467 esac
12468 fi
d7040cdb 12469
ce2cded5 12470# See if we really can support this configuration with the emulation code.
d7040cdb 12471
ce2cded5
L
12472 if test $this_target = $target ; then
12473 obj_format=$fmt
12474 te_file=$em
12475 fi
d7040cdb 12476
b11d79f2
TG
12477 case ${te_file} in
12478 vms) extra_objects="$extra_objects te-vms.o" ;;
12479 esac
12480
ce2cded5 12481# From target name and format, produce a list of supported emulations.
d7040cdb 12482
ce2cded5 12483 case ${generic_target}-${fmt} in
e8044f35 12484 mips-*-*-*) case "$endian" in
ce2cded5
L
12485 big) emulation="mipsbelf mipslelf mipself" ;;
12486 *) emulation="mipslelf mipsbelf mipself" ;;
12487 esac ;;
ce2cded5
L
12488 # i386-pc-pe-coff != i386-pc-coff.
12489 i386-*-pe-coff) ;;
12490 # Uncommenting the next line will turn on support for i386 AOUT
12491 # for the default linux configuration
12492 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12493 #
12494 i386-*-aout) emulation="i386aout" ;;
12495 i386-*-coff) emulation="i386coff" ;;
12496 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12497
ce2cded5
L
12498 # Always all formats. The first stated emulation becomes the default.
12499 cris-*-*aout*) emulation="crisaout criself" ;;
12500 cris-*-*) emulation="criself crisaout" ;;
12501 esac
13b2be9c 12502
ce2cded5 12503 emulations="$emulations $emulation"
13b2be9c 12504
13b2be9c 12505done
13b2be9c 12506
6c3bc0f8 12507if test x$ac_default_compressed_debug_sections == xyes ; then
e12fe555
NC
12508
12509$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12510
6c3bc0f8 12511fi
e12fe555 12512
ce2cded5
L
12513# Turn on all targets if possible
12514if test ${all_targets} = "yes"; then
12515 case ${target_cpu_type} in
12516 i386)
12517 case ${obj_format} in
12518 aout)
12519 emulations="$emulations i386coff i386elf"
12520 ;;
12521 coff)
12522 emulations="$emulations i386aout i386elf"
12523 ;;
12524 elf)
12525 emulations="$emulations i386aout i386coff"
12526 ;;
12527 esac
12528 ;;
12529 x86_64)
12530 case ${obj_format} in
12531 aout)
12532 emulations="$emulations i386coff i386elf"
12533 ;;
12534 coff)
12535 emulations="$emulations i386aout i386elf"
12536 ;;
12537 elf)
12538 emulations="$emulations i386aout i386coff"
12539 ;;
12540 esac
12541 ;;
12542 esac
13b2be9c 12543fi
c8615825 12544
39871c07
AM
12545# PE code has way too many macros tweaking behaviour
12546case ${te_file} in
12547 pe*) emulations="" ;;
12548esac
12549
ce2cded5
L
12550# Assign floating point type. Most processors with FP support
12551# IEEE FP. On those that don't support FP at all, usually IEEE
12552# is emulated.
12553case ${target_cpu} in
12554 vax | pdp11 ) atof=vax ;;
12555 *) atof=ieee ;;
12556esac
c8615825 12557
ce2cded5 12558case "${obj_format}" in
81ecdfbb 12559 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 12560esac
13b2be9c 12561
ce2cded5
L
12562# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12563cgen_cpu_prefix=""
12564if test $using_cgen = yes ; then
12565 case ${target_cpu} in
73589c9d
CS
12566 or1knd)
12567 cgen_cpu_prefix=or1k ;;
ce2cded5
L
12568 *) cgen_cpu_prefix=${target_cpu} ;;
12569 esac
c8615825 12570
c8615825 12571
81ecdfbb 12572$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 12573
d7040cdb 12574fi
13b2be9c 12575
ce2cded5
L
12576
12577if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
81ecdfbb 12578 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 12579fi
ce2cded5
L
12580
12581if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
81ecdfbb 12582 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
12583fi
12584
ce2cded5
L
12585# Some COFF configurations want these random other flags set.
12586case ${obj_format} in
12587 coff)
12588 case ${target_cpu_type} in
12589 i386)
81ecdfbb 12590$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12591 ;;
12592 m68k)
81ecdfbb 12593$as_echo "#define M68KCOFF 1" >>confdefs.h
ce2cded5
L
12594 ;;
12595 m88k)
81ecdfbb 12596$as_echo "#define M88KCOFF 1" >>confdefs.h
ce2cded5
L
12597 ;;
12598 x86_64)
81ecdfbb 12599$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12600 ;;
12601 esac
12602 ;;
12603esac
12604
12605# Getting this done right is going to be a bitch. Each configuration specified
12606# with --enable-targets=... should be checked for environment, format, cpu
12607# setting.
12608#
12609# For each configuration, the necessary object file support code must be linked
12610# in. This might be only one, it might be up to four. The necessary emulation
12611# code needs to be provided, too.
12612#
12613# And then there's "--enable-targets=all"....
12614#
e8044f35 12615# For now, just always do it for MIPS ELF configurations. Sigh.
ce2cded5
L
12616
12617formats="${obj_format}"
12618emfiles=""
12619EMULATIONS=""
12620_gas_uniq_list="$emulations"
12621_gas_uniq_newlist=""
12622for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12623 case $_gas_uniq_i in
12624 _gas_uniq_dummy) ;;
12625 *) case " $_gas_uniq_newlist " in
12626 *" $_gas_uniq_i "*) ;;
12627 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12628 esac ;;
12629 esac
12630done
12631emulations=$_gas_uniq_newlist
12632
12633for em in . $emulations ; do
12634 case $em in
12635 .) continue ;;
12636 mipsbelf | mipslelf | mipself)
12637 fmt=elf file=mipself ;;
ce2cded5
L
12638 *coff)
12639 fmt=coff file=$em ;;
12640 *aout)
12641 fmt=aout file=$em ;;
12642 *elf)
12643 fmt=elf file=$em ;;
12644 esac
12645 formats="$formats $fmt"
12646 emfiles="$emfiles e-$file.o"
12647 EMULATIONS="$EMULATIONS &$em,"
12648done
12649_gas_uniq_list="$formats"
12650_gas_uniq_newlist=""
12651for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12652 case $_gas_uniq_i in
12653 _gas_uniq_dummy) ;;
12654 *) case " $_gas_uniq_newlist " in
12655 *" $_gas_uniq_i "*) ;;
12656 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12657 esac ;;
12658 esac
13b2be9c 12659done
ce2cded5 12660formats=$_gas_uniq_newlist
13b2be9c 12661
ce2cded5
L
12662_gas_uniq_list="$emfiles"
12663_gas_uniq_newlist=""
12664for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12665 case $_gas_uniq_i in
12666 _gas_uniq_dummy) ;;
12667 *) case " $_gas_uniq_newlist " in
12668 *" $_gas_uniq_i "*) ;;
12669 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12670 esac ;;
12671 esac
12672done
12673emfiles=$_gas_uniq_newlist
d7040cdb 12674
ce2cded5
L
12675if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12676 for fmt in $formats ; do
12677 case $fmt in
12678 aout)
81ecdfbb 12679$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
12680 ;;
12681 bout)
81ecdfbb 12682$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
ce2cded5
L
12683 ;;
12684 coff)
81ecdfbb 12685$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
12686 ;;
12687 ecoff)
81ecdfbb 12688$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
12689 ;;
12690 elf)
81ecdfbb 12691$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
12692 ;;
12693 generic)
81ecdfbb 12694$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
12695 ;;
12696 som)
81ecdfbb 12697$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
12698 ;;
12699 esac
12700 extra_objects="$extra_objects obj-$fmt.o"
12701 done
12702 obj_format=multi
13b2be9c 12703fi
ce2cded5
L
12704if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12705 DEFAULT_EMULATION=`set . $emulations ; echo $2`
e8044f35 12706 # e-mipself has more than one emulation per file, e-i386* has just one at the
ce2cded5
L
12707 # moment. If only one emulation is specified, then don't define
12708 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12709 case "${obj_format}${emfiles}" in
e8044f35 12710 multi* | *mipself*)
ce2cded5 12711 extra_objects="$extra_objects $emfiles"
d7040cdb 12712
81ecdfbb 12713$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
12714 ;;
12715 esac
12716fi
d7040cdb 12717
13b2be9c 12718
ce2cded5
L
12719cat >>confdefs.h <<_ACEOF
12720#define EMULATIONS $EMULATIONS
13b2be9c 12721_ACEOF
d7040cdb 12722
d7040cdb 12723
ce2cded5
L
12724cat >>confdefs.h <<_ACEOF
12725#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 12726_ACEOF
d7040cdb 12727
d7040cdb 12728
ce2cded5 12729reject_dev_configs=yes
252b5132 12730
ce2cded5
L
12731case ${reject_dev_configs}-${dev} in
12732 yes-yes) # Oops.
81ecdfbb 12733 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 12734 ;;
d7040cdb
SE
12735esac
12736
13b2be9c 12737
ce2cded5
L
12738
12739
12740
12741
12742
12743# do we need the opcodes library?
12744case "${need_opcodes}" in
12745yes)
12746 OPCODES_LIB=../opcodes/libopcodes.la
12747 ;;
12748esac
12749
12750
12751
12752
12753cat >>confdefs.h <<_ACEOF
12754#define TARGET_ALIAS "${target_alias}"
d7040cdb 12755_ACEOF
20e95c23 12756
20e95c23 12757
ce2cded5
L
12758cat >>confdefs.h <<_ACEOF
12759#define TARGET_CANONICAL "${target}"
12760_ACEOF
20e95c23 12761
d6d788bd 12762
ce2cded5
L
12763cat >>confdefs.h <<_ACEOF
12764#define TARGET_CPU "${target_cpu}"
12765_ACEOF
20e95c23 12766
ce2cded5
L
12767
12768cat >>confdefs.h <<_ACEOF
12769#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
12770_ACEOF
12771
12772
ce2cded5
L
12773cat >>confdefs.h <<_ACEOF
12774#define TARGET_OS "${target_os}"
12775_ACEOF
12776
0efedc4c 12777
d7040cdb
SE
12778for ac_prog in 'bison -y' byacc
12779do
12780 # Extract the first word of "$ac_prog", so it can be a program name with args.
12781set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783$as_echo_n "checking for $ac_word... " >&6; }
12784if test "${ac_cv_prog_YACC+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
20e95c23 12786else
d7040cdb
SE
12787 if test -n "$YACC"; then
12788 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 12789else
d7040cdb
SE
12790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791for as_dir in $PATH
12792do
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12795 for ac_exec_ext in '' $ac_executable_extensions; do
12796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12797 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 12799 break 2
20e95c23 12800 fi
d7040cdb 12801done
81ecdfbb
RW
12802 done
12803IFS=$as_save_IFS
20e95c23 12804
d7040cdb
SE
12805fi
12806fi
12807YACC=$ac_cv_prog_YACC
12808if test -n "$YACC"; then
81ecdfbb
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12810$as_echo "$YACC" >&6; }
d7040cdb 12811else
81ecdfbb
RW
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813$as_echo "no" >&6; }
d7040cdb 12814fi
20e95c23 12815
81ecdfbb 12816
d7040cdb
SE
12817 test -n "$YACC" && break
12818done
12819test -n "$YACC" || YACC="yacc"
20e95c23 12820
d7040cdb
SE
12821for ac_prog in flex lex
12822do
12823 # Extract the first word of "$ac_prog", so it can be a program name with args.
12824set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826$as_echo_n "checking for $ac_word... " >&6; }
12827if test "${ac_cv_prog_LEX+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
d6d788bd 12829else
d7040cdb
SE
12830 if test -n "$LEX"; then
12831 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12832else
12833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834for as_dir in $PATH
12835do
12836 IFS=$as_save_IFS
12837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12838 for ac_exec_ext in '' $ac_executable_extensions; do
12839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12840 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12842 break 2
12843 fi
12844done
81ecdfbb
RW
12845 done
12846IFS=$as_save_IFS
20e95c23 12847
d7040cdb
SE
12848fi
12849fi
12850LEX=$ac_cv_prog_LEX
12851if test -n "$LEX"; then
81ecdfbb
RW
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12853$as_echo "$LEX" >&6; }
20e95c23 12854else
81ecdfbb
RW
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856$as_echo "no" >&6; }
13b2be9c
DJ
12857fi
12858
81ecdfbb 12859
d7040cdb
SE
12860 test -n "$LEX" && break
12861done
12862test -n "$LEX" || LEX=":"
20e95c23 12863
81ecdfbb
RW
12864if test "x$LEX" != "x:"; then
12865 cat >conftest.l <<_ACEOF
12866%%
12867a { ECHO; }
12868b { REJECT; }
12869c { yymore (); }
12870d { yyless (1); }
12871e { yyless (input () != 0); }
12872f { unput (yytext[0]); }
12873. { BEGIN INITIAL; }
12874%%
12875#ifdef YYTEXT_POINTER
12876extern char *yytext;
d7040cdb 12877#endif
d7040cdb 12878int
81ecdfbb 12879main (void)
d7040cdb 12880{
81ecdfbb 12881 return ! yylex () + ! yywrap ();
d7040cdb
SE
12882}
12883_ACEOF
81ecdfbb
RW
12884{ { ac_try="$LEX conftest.l"
12885case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888esac
12889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12890$as_echo "$ac_try_echo"; } >&5
12891 (eval "$LEX conftest.l") 2>&5
d7040cdb 12892 ac_status=$?
81ecdfbb
RW
12893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894 test $ac_status = 0; }
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12896$as_echo_n "checking lex output file root... " >&6; }
12897if test "${ac_cv_prog_lex_root+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
d7040cdb 12899else
d5fbea21 12900
81ecdfbb
RW
12901if test -f lex.yy.c; then
12902 ac_cv_prog_lex_root=lex.yy
12903elif test -f lexyy.c; then
12904 ac_cv_prog_lex_root=lexyy
12905else
12906 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 12907fi
d7040cdb 12908fi
81ecdfbb
RW
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12910$as_echo "$ac_cv_prog_lex_root" >&6; }
12911LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12912
81ecdfbb
RW
12913if test -z "${LEXLIB+set}"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12915$as_echo_n "checking lex library... " >&6; }
12916if test "${ac_cv_lib_lex+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
d7040cdb 12918else
d7040cdb 12919
81ecdfbb
RW
12920 ac_save_LIBS=$LIBS
12921 ac_cv_lib_lex='none needed'
12922 for ac_lib in '' -lfl -ll; do
12923 LIBS="$ac_lib $ac_save_LIBS"
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925/* end confdefs.h. */
12926`cat $LEX_OUTPUT_ROOT.c`
12927_ACEOF
12928if ac_fn_c_try_link "$LINENO"; then :
12929 ac_cv_lib_lex=$ac_lib
d7040cdb 12930fi
81ecdfbb
RW
12931rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 test "$ac_cv_lib_lex" != 'none needed' && break
12934 done
12935 LIBS=$ac_save_LIBS
d7040cdb
SE
12936
12937fi
81ecdfbb
RW
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12939$as_echo "$ac_cv_lib_lex" >&6; }
12940 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12941fi
12942
13b2be9c 12943
81ecdfbb
RW
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12945$as_echo_n "checking whether yytext is a pointer... " >&6; }
12946if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
d7040cdb
SE
12948else
12949 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12950# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12951# not all implementations provide the %pointer and %array declarations.
12952ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12953ac_save_LIBS=$LIBS
81ecdfbb
RW
12954LIBS="$LEXLIB $ac_save_LIBS"
12955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956/* end confdefs.h. */
12957#define YYTEXT_POINTER 1
d7040cdb 12958`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 12959_ACEOF
81ecdfbb 12960if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12961 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 12962fi
81ecdfbb
RW
12963rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12965LIBS=$ac_save_LIBS
252b5132 12966
9b2b7d69 12967fi
81ecdfbb
RW
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12969$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 12970if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 12971
81ecdfbb 12972$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 12973
d6d788bd 12974fi
81ecdfbb 12975rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb 12976
c8615825 12977fi
d7040cdb
SE
12978if test "$LEX" = :; then
12979 LEX=${am_missing_run}flex
12980fi
12981
006ad0a1 12982ALL_LINGUAS="fr tr es rw id ru fi ja"
d7040cdb
SE
12983# If we haven't got the data from the intl directory,
12984# assume NLS is disabled.
12985USE_NLS=no
12986LIBINTL=
12987LIBINTL_DEP=
12988INCINTL=
12989XGETTEXT=
12990GMSGFMT=
12991POSUB=
12992
12993if test -f ../intl/config.intl; then
12994 . ../intl/config.intl
12995fi
81ecdfbb
RW
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12997$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12998if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000$as_echo "no" >&6; }
d7040cdb 13001else
81ecdfbb
RW
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003$as_echo "yes" >&6; }
d7040cdb 13004
81ecdfbb 13005$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
13006
13007
81ecdfbb
RW
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13009$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
13010 # Look for .po and .gmo files in the source directory.
13011 CATALOGS=
13012 XLINGUAS=
13013 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13014 # If there aren't any .gmo files the shell will give us the
13015 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13016 # weeded out.
13017 case "$cat" in *\**)
13018 continue;;
13019 esac
13020 # The quadruple backslash is collapsed to a double backslash
13021 # by the backticks, then collapsed again by the double quotes,
13022 # leaving us with one backslash in the sed expression (right
13023 # before the dot that mustn't act as a wildcard).
13024 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13025 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13026 # The user is allowed to set LINGUAS to a list of languages to
13027 # install catalogs for. If it's empty that means "all of them."
13028 if test "x$LINGUAS" = x; then
13029 CATALOGS="$CATALOGS $cat"
13030 XLINGUAS="$XLINGUAS $lang"
13031 else
13032 case "$LINGUAS" in *$lang*)
13033 CATALOGS="$CATALOGS $cat"
13034 XLINGUAS="$XLINGUAS $lang"
13035 ;;
13036 esac
13037 fi
13038 done
13039 LINGUAS="$XLINGUAS"
81ecdfbb
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13041$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
13042
13043
13044 DATADIRNAME=share
13045
13046 INSTOBJEXT=.mo
13047
13048 GENCAT=gencat
13049
13050 CATOBJEXT=.gmo
13051
13052fi
13053
13054 MKINSTALLDIRS=
13055 if test -n "$ac_aux_dir"; then
13056 case "$ac_aux_dir" in
13057 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13058 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13059 esac
13060 fi
13061 if test -z "$MKINSTALLDIRS"; then
13062 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13063 fi
13064
13065
13066
81ecdfbb
RW
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13068$as_echo_n "checking whether NLS is requested... " >&6; }
13069 # Check whether --enable-nls was given.
13070if test "${enable_nls+set}" = set; then :
13071 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
13072else
13073 USE_NLS=yes
81ecdfbb
RW
13074fi
13075
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13077$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
13078
13079
13080
13081
13082
13083
13084# Prepare PATH_SEPARATOR.
13085# The user is always right.
13086if test "${PATH_SEPARATOR+set}" != set; then
13087 echo "#! /bin/sh" >conf$$.sh
13088 echo "exit 0" >>conf$$.sh
13089 chmod +x conf$$.sh
13090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13091 PATH_SEPARATOR=';'
13b2be9c 13092 else
d7040cdb 13093 PATH_SEPARATOR=:
13b2be9c 13094 fi
d7040cdb 13095 rm -f conf$$.sh
252b5132 13096fi
13b2be9c 13097
d7040cdb
SE
13098# Find out how to test for executable files. Don't use a zero-byte file,
13099# as systems may use methods other than mode bits to determine executability.
13100cat >conf$$.file <<_ASEOF
13101#! /bin/sh
13102exit 0
13103_ASEOF
13104chmod +x conf$$.file
13105if test -x conf$$.file >/dev/null 2>&1; then
13106 ac_executable_p="test -x"
13107else
13108 ac_executable_p="test -f"
13b2be9c 13109fi
d7040cdb 13110rm -f conf$$.file
13b2be9c 13111
d7040cdb
SE
13112# Extract the first word of "msgfmt", so it can be a program name with args.
13113set dummy msgfmt; ac_word=$2
81ecdfbb
RW
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115$as_echo_n "checking for $ac_word... " >&6; }
13116if test "${ac_cv_path_MSGFMT+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
252b5132 13118else
d7040cdb
SE
13119 case "$MSGFMT" in
13120 [\\/]* | ?:[\\/]*)
13121 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13122 ;;
13123 *)
13124 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13125 for ac_dir in $PATH; do
13126 IFS="$ac_save_IFS"
13127 test -z "$ac_dir" && ac_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13130 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13131 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13132 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13133 break 2
13134 fi
13135 fi
13136 done
13137 done
13138 IFS="$ac_save_IFS"
13139 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13140 ;;
13141esac
252b5132 13142fi
d7040cdb
SE
13143MSGFMT="$ac_cv_path_MSGFMT"
13144if test "$MSGFMT" != ":"; then
81ecdfbb
RW
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13146$as_echo "$MSGFMT" >&6; }
252b5132 13147else
81ecdfbb
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
252b5132 13150fi
252b5132 13151
d7040cdb
SE
13152 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13153set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155$as_echo_n "checking for $ac_word... " >&6; }
13156if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13b2be9c 13158else
d7040cdb
SE
13159 case $GMSGFMT in
13160 [\\/]* | ?:[\\/]*)
13161 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13162 ;;
13163 *)
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 13171 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13173 break 2
13174 fi
13175done
81ecdfbb
RW
13176 done
13177IFS=$as_save_IFS
252b5132 13178
d7040cdb
SE
13179 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13180 ;;
13181esac
13182fi
13183GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 13184if test -n "$GMSGFMT"; then
81ecdfbb
RW
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13186$as_echo "$GMSGFMT" >&6; }
ac48eca1 13187else
81ecdfbb
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189$as_echo "no" >&6; }
6840198f 13190fi
6840198f 13191
13b2be9c 13192
20e95c23 13193
81ecdfbb 13194
d7040cdb
SE
13195# Prepare PATH_SEPARATOR.
13196# The user is always right.
13197if test "${PATH_SEPARATOR+set}" != set; then
13198 echo "#! /bin/sh" >conf$$.sh
13199 echo "exit 0" >>conf$$.sh
13200 chmod +x conf$$.sh
13201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13202 PATH_SEPARATOR=';'
13203 else
13204 PATH_SEPARATOR=:
13205 fi
13206 rm -f conf$$.sh
13207fi
20e95c23 13208
d7040cdb
SE
13209# Find out how to test for executable files. Don't use a zero-byte file,
13210# as systems may use methods other than mode bits to determine executability.
13211cat >conf$$.file <<_ASEOF
13212#! /bin/sh
13213exit 0
13214_ASEOF
13215chmod +x conf$$.file
13216if test -x conf$$.file >/dev/null 2>&1; then
13217 ac_executable_p="test -x"
13b2be9c 13218else
d7040cdb 13219 ac_executable_p="test -f"
13b2be9c 13220fi
d7040cdb 13221rm -f conf$$.file
20e95c23 13222
d7040cdb
SE
13223# Extract the first word of "xgettext", so it can be a program name with args.
13224set dummy xgettext; ac_word=$2
81ecdfbb
RW
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226$as_echo_n "checking for $ac_word... " >&6; }
13227if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
252b5132 13229else
d7040cdb
SE
13230 case "$XGETTEXT" in
13231 [\\/]* | ?:[\\/]*)
13232 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13233 ;;
13234 *)
13235 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13236 for ac_dir in $PATH; do
13237 IFS="$ac_save_IFS"
13238 test -z "$ac_dir" && ac_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13241 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13242 (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
13243 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13244 break 2
13245 fi
13246 fi
13247 done
13248 done
13249 IFS="$ac_save_IFS"
13250 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13251 ;;
13252esac
13b2be9c 13253fi
d7040cdb
SE
13254XGETTEXT="$ac_cv_path_XGETTEXT"
13255if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13257$as_echo "$XGETTEXT" >&6; }
d7040cdb 13258else
81ecdfbb
RW
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260$as_echo "no" >&6; }
13b2be9c 13261fi
13b2be9c 13262
d7040cdb 13263 rm -f messages.po
20e95c23 13264
13b2be9c 13265
d7040cdb
SE
13266# Prepare PATH_SEPARATOR.
13267# The user is always right.
13268if test "${PATH_SEPARATOR+set}" != set; then
13269 echo "#! /bin/sh" >conf$$.sh
13270 echo "exit 0" >>conf$$.sh
13271 chmod +x conf$$.sh
13272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13273 PATH_SEPARATOR=';'
13274 else
13275 PATH_SEPARATOR=:
13276 fi
13277 rm -f conf$$.sh
252b5132 13278fi
20e95c23 13279
d7040cdb
SE
13280# Find out how to test for executable files. Don't use a zero-byte file,
13281# as systems may use methods other than mode bits to determine executability.
13282cat >conf$$.file <<_ASEOF
13283#! /bin/sh
13284exit 0
13285_ASEOF
13286chmod +x conf$$.file
13287if test -x conf$$.file >/dev/null 2>&1; then
13288 ac_executable_p="test -x"
252b5132 13289else
d7040cdb
SE
13290 ac_executable_p="test -f"
13291fi
13292rm -f conf$$.file
20e95c23 13293
d7040cdb
SE
13294# Extract the first word of "msgmerge", so it can be a program name with args.
13295set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297$as_echo_n "checking for $ac_word... " >&6; }
13298if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
20e95c23 13300else
d7040cdb
SE
13301 case "$MSGMERGE" in
13302 [\\/]* | ?:[\\/]*)
13303 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13304 ;;
13305 *)
13306 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13307 for ac_dir in $PATH; do
13308 IFS="$ac_save_IFS"
13309 test -z "$ac_dir" && ac_dir=.
13310 for ac_exec_ext in '' $ac_executable_extensions; do
13311 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13312 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13313 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13314 break 2
13315 fi
13316 fi
13317 done
13318 done
13319 IFS="$ac_save_IFS"
13320 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13321 ;;
13322esac
20e95c23 13323fi
d7040cdb
SE
13324MSGMERGE="$ac_cv_path_MSGMERGE"
13325if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13327$as_echo "$MSGMERGE" >&6; }
d7040cdb 13328else
81ecdfbb
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330$as_echo "no" >&6; }
20e95c23 13331fi
252b5132 13332
252b5132 13333
d7040cdb
SE
13334 if test "$GMSGFMT" != ":"; then
13335 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13336 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13337 : ;
13338 else
13339 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13341$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
13342 GMSGFMT=":"
13343 fi
13344 fi
13b2be9c 13345
d7040cdb
SE
13346 if test "$XGETTEXT" != ":"; then
13347 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13348 (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
13349 : ;
13350 else
81ecdfbb
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13352$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
13353 XGETTEXT=":"
13354 fi
13355 rm -f messages.po
13356 fi
252b5132 13357
81ecdfbb 13358 ac_config_commands="$ac_config_commands default-1"
13b2be9c 13359
13b2be9c 13360
81ecdfbb
RW
13361
13362
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13364$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13365 # Check whether --enable-maintainer-mode was given.
13366if test "${enable_maintainer_mode+set}" = set; then :
13367 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 13368else
81ecdfbb 13369 USE_MAINTAINER_MODE=no
13b2be9c 13370fi
13b2be9c 13371
81ecdfbb
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13373$as_echo "$USE_MAINTAINER_MODE" >&6; }
13374 if test $USE_MAINTAINER_MODE = yes; then
13375 MAINTAINER_MODE_TRUE=
13376 MAINTAINER_MODE_FALSE='#'
13377else
13378 MAINTAINER_MODE_TRUE='#'
13379 MAINTAINER_MODE_FALSE=
13b2be9c 13380fi
13b2be9c 13381
81ecdfbb
RW
13382 MAINT=$MAINTAINER_MODE_TRUE
13383
13384
13385 if false; then
13386 GENINSRC_NEVER_TRUE=
13387 GENINSRC_NEVER_FALSE='#'
13b2be9c 13388else
81ecdfbb
RW
13389 GENINSRC_NEVER_TRUE='#'
13390 GENINSRC_NEVER_FALSE=
252b5132 13391fi
13b2be9c 13392
81ecdfbb
RW
13393
13394
58797674 13395for 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
13396do :
13397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13398ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13399eval as_val=\$$as_ac_Header
13400 if test "x$as_val" = x""yes; then :
13b2be9c 13401 cat >>confdefs.h <<_ACEOF
81ecdfbb 13402#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
13403_ACEOF
13404
252b5132 13405fi
13b2be9c 13406
252b5132
RH
13407done
13408
df7b86aa
NC
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13410$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13411if test "${gcc_cv_header_string+set}" = set; then :
13412 $as_echo_n "(cached) " >&6
13413else
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415/* end confdefs.h. */
13416#include <string.h>
13417#include <strings.h>
13418int
13419main ()
13420{
13421
13422 ;
13423 return 0;
13424}
13425_ACEOF
13426if ac_fn_c_try_compile "$LINENO"; then :
13427 gcc_cv_header_string=yes
13428else
13429 gcc_cv_header_string=no
13430fi
13431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432fi
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13434$as_echo "$gcc_cv_header_string" >&6; }
13435if test $gcc_cv_header_string = yes; then
13436
13437$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13438
13439fi
13440
d6d788bd 13441
252b5132
RH
13442# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13443# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
13444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13445$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
13446if test "${host}" = "${target}"; then
13447 cross_gas=no
13448else
13449 cross_gas=yes
13b2be9c 13450
81ecdfbb 13451$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
13452
13453fi
81ecdfbb
RW
13454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13455$as_echo "$cross_gas" >&6; }
252b5132
RH
13456
13457# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13458# for constant arguments. Useless!
81ecdfbb
RW
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13460$as_echo_n "checking for working alloca.h... " >&6; }
13461if test "${ac_cv_working_alloca_h+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13b2be9c 13463else
81ecdfbb 13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13465/* end confdefs.h. */
252b5132 13466#include <alloca.h>
13b2be9c
DJ
13467int
13468main ()
13469{
13470char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 13471 if (p) return 0;
13b2be9c
DJ
13472 ;
13473 return 0;
13474}
13475_ACEOF
81ecdfbb 13476if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13477 ac_cv_working_alloca_h=yes
13478else
81ecdfbb 13479 ac_cv_working_alloca_h=no
13b2be9c 13480fi
81ecdfbb
RW
13481rm -f core conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13483fi
81ecdfbb
RW
13484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13485$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
13486if test $ac_cv_working_alloca_h = yes; then
13487
81ecdfbb 13488$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
13489
13490fi
13491
81ecdfbb
RW
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13493$as_echo_n "checking for alloca... " >&6; }
13494if test "${ac_cv_func_alloca_works+set}" = set; then :
13495 $as_echo_n "(cached) " >&6
252b5132 13496else
81ecdfbb 13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13498/* end confdefs.h. */
252b5132
RH
13499#ifdef __GNUC__
13500# define alloca __builtin_alloca
13501#else
13502# ifdef _MSC_VER
13503# include <malloc.h>
13504# define alloca _alloca
13505# else
81ecdfbb 13506# ifdef HAVE_ALLOCA_H
252b5132
RH
13507# include <alloca.h>
13508# else
13509# ifdef _AIX
13510 #pragma alloca
13511# else
13512# ifndef alloca /* predefined by HP cc +Olibcalls */
13513char *alloca ();
13514# endif
13515# endif
13516# endif
13517# endif
13518#endif
13519
13b2be9c
DJ
13520int
13521main ()
13522{
13523char *p = (char *) alloca (1);
81ecdfbb 13524 if (p) return 0;
13b2be9c
DJ
13525 ;
13526 return 0;
13527}
13528_ACEOF
81ecdfbb 13529if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13530 ac_cv_func_alloca_works=yes
13531else
81ecdfbb 13532 ac_cv_func_alloca_works=no
252b5132 13533fi
81ecdfbb
RW
13534rm -f core conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
252b5132 13536fi
81ecdfbb
RW
13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13538$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 13539
252b5132 13540if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13541
81ecdfbb 13542$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 13543
13b2be9c 13544else
c8615825 13545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13546# that cause trouble. Some versions do not even contain alloca or
13547# contain a buggy version. If you still want to use their alloca,
13548# use ar to extract alloca.o from them instead of compiling alloca.c.
13549
81ecdfbb 13550ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 13551
81ecdfbb 13552$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 13553
d6d788bd 13554
81ecdfbb
RW
13555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13556$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13557if test "${ac_cv_os_cray+set}" = set; then :
13558 $as_echo_n "(cached) " >&6
252b5132 13559else
81ecdfbb 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13561/* end confdefs.h. */
81ecdfbb 13562#if defined CRAY && ! defined CRAY2
252b5132
RH
13563webecray
13564#else
13565wenotbecray
13566#endif
13567
13b2be9c 13568_ACEOF
252b5132 13569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 13570 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
13571 ac_cv_os_cray=yes
13572else
252b5132
RH
13573 ac_cv_os_cray=no
13574fi
13575rm -f conftest*
13576
13577fi
81ecdfbb
RW
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13579$as_echo "$ac_cv_os_cray" >&6; }
252b5132 13580if test $ac_cv_os_cray = yes; then
13b2be9c 13581 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
13582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13583ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13584eval as_val=\$$as_ac_var
13585 if test "x$as_val" = x""yes; then :
13b2be9c
DJ
13586
13587cat >>confdefs.h <<_ACEOF
252b5132 13588#define CRAY_STACKSEG_END $ac_func
13b2be9c 13589_ACEOF
252b5132 13590
13b2be9c 13591 break
252b5132
RH
13592fi
13593
13b2be9c 13594 done
252b5132
RH
13595fi
13596
81ecdfbb
RW
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13598$as_echo_n "checking stack direction for C alloca... " >&6; }
13599if test "${ac_cv_c_stack_direction+set}" = set; then :
13600 $as_echo_n "(cached) " >&6
252b5132 13601else
81ecdfbb 13602 if test "$cross_compiling" = yes; then :
252b5132
RH
13603 ac_cv_c_stack_direction=0
13604else
81ecdfbb 13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13606/* end confdefs.h. */
81ecdfbb 13607$ac_includes_default
13b2be9c 13608int
252b5132
RH
13609find_stack_direction ()
13610{
13611 static char *addr = 0;
13612 auto char dummy;
13613 if (addr == 0)
13614 {
13615 addr = &dummy;
13616 return find_stack_direction ();
13617 }
13618 else
13619 return (&dummy > addr) ? 1 : -1;
13620}
13b2be9c
DJ
13621
13622int
252b5132
RH
13623main ()
13624{
81ecdfbb 13625 return find_stack_direction () < 0;
252b5132 13626}
13b2be9c 13627_ACEOF
81ecdfbb 13628if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
13629 ac_cv_c_stack_direction=1
13630else
81ecdfbb 13631 ac_cv_c_stack_direction=-1
252b5132 13632fi
81ecdfbb
RW
13633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13634 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 13635fi
252b5132 13636
81ecdfbb
RW
13637fi
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13639$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 13640cat >>confdefs.h <<_ACEOF
252b5132 13641#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
13642_ACEOF
13643
252b5132
RH
13644
13645fi
13646
81ecdfbb
RW
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13648$as_echo_n "checking for inline... " >&6; }
13649if test "${ac_cv_c_inline+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
252b5132
RH
13651else
13652 ac_cv_c_inline=no
13653for ac_kw in inline __inline__ __inline; do
81ecdfbb 13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13655/* end confdefs.h. */
13656#ifndef __cplusplus
13657typedef int foo_t;
13658static $ac_kw foo_t static_foo () {return 0; }
13659$ac_kw foo_t foo () {return 0; }
13660#endif
252b5132 13661
13b2be9c 13662_ACEOF
81ecdfbb
RW
13663if ac_fn_c_try_compile "$LINENO"; then :
13664 ac_cv_c_inline=$ac_kw
252b5132 13665fi
81ecdfbb
RW
13666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 test "$ac_cv_c_inline" != no && break
252b5132
RH
13668done
13669
13670fi
81ecdfbb
RW
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13672$as_echo "$ac_cv_c_inline" >&6; }
ab509236 13673
13b2be9c 13674case $ac_cv_c_inline in
252b5132 13675 inline | yes) ;;
ab509236
L
13676 *)
13677 case $ac_cv_c_inline in
13678 no) ac_val=;;
13679 *) ac_val=$ac_cv_c_inline;;
13680 esac
13681 cat >>confdefs.h <<_ACEOF
13682#ifndef __cplusplus
13683#define inline $ac_val
13684#endif
13b2be9c 13685_ACEOF
ab509236 13686 ;;
252b5132
RH
13687esac
13688
6840198f 13689
d6d788bd 13690# VMS doesn't have unlink.
252b5132 13691for ac_func in unlink remove
81ecdfbb
RW
13692do :
13693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13694ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13695eval as_val=\$$as_ac_var
13696 if test "x$as_val" = x""yes; then :
13b2be9c 13697 cat >>confdefs.h <<_ACEOF
81ecdfbb 13698#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13699_ACEOF
252b5132 13700 break
252b5132
RH
13701fi
13702done
13703
4b0296ce 13704for ac_func in sbrk setlocale
81ecdfbb 13705do :
a574142b
AM
13706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13707ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13708eval as_val=\$$as_ac_var
13709 if test "x$as_val" = x""yes; then :
13b2be9c 13710 cat >>confdefs.h <<_ACEOF
a574142b 13711#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13712_ACEOF
252b5132 13713
252b5132
RH
13714fi
13715done
13716
d6d788bd 13717
44350750
NC
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13720$as_echo_n "checking for LC_MESSAGES... " >&6; }
13721if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13722 $as_echo_n "(cached) " >&6
13723else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725/* end confdefs.h. */
13726#include <locale.h>
13727int
13728main ()
13729{
13730return LC_MESSAGES
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735if ac_fn_c_try_link "$LINENO"; then :
13736 am_cv_val_LC_MESSAGES=yes
13737else
13738 am_cv_val_LC_MESSAGES=no
13739fi
13740rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742fi
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13744$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13745 if test $am_cv_val_LC_MESSAGES = yes; then
13746
13747$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13748
13749 fi
13750
13751
39bec121
TW
13752# do we need the math library?
13753case "${need_libm}" in
13b2be9c 13754yes)
39bec121 13755 LIBM=
f9c19112 13756case $host in
3725885a 13757*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 13758 # These system don't have libm, or don't need it
39bec121
TW
13759 ;;
13760*-ncr-sysv4.3*)
81ecdfbb
RW
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13762$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13763if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
39bec121 13765else
13b2be9c 13766 ac_check_lib_save_LIBS=$LIBS
39bec121 13767LIBS="-lmw $LIBS"
81ecdfbb 13768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13769/* end confdefs.h. */
13770
81ecdfbb
RW
13771/* Override any GCC internal prototype to avoid an error.
13772 Use char because int might match the return type of a GCC
13773 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
13774#ifdef __cplusplus
13775extern "C"
13776#endif
13b2be9c
DJ
13777char _mwvalidcheckl ();
13778int
13779main ()
13780{
81ecdfbb 13781return _mwvalidcheckl ();
13b2be9c
DJ
13782 ;
13783 return 0;
13784}
13785_ACEOF
81ecdfbb 13786if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13787 ac_cv_lib_mw__mwvalidcheckl=yes
13788else
81ecdfbb 13789 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 13790fi
81ecdfbb
RW
13791rm -f core conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13793LIBS=$ac_check_lib_save_LIBS
13794fi
81ecdfbb
RW
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13796$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13797if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
39bec121 13798 LIBM="-lmw"
39bec121
TW
13799fi
13800
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13802$as_echo_n "checking for cos in -lm... " >&6; }
13803if test "${ac_cv_lib_m_cos+set}" = set; then :
13804 $as_echo_n "(cached) " >&6
39bec121 13805else
13b2be9c 13806 ac_check_lib_save_LIBS=$LIBS
39bec121 13807LIBS="-lm $LIBS"
81ecdfbb 13808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13809/* end confdefs.h. */
39bec121 13810
81ecdfbb
RW
13811/* Override any GCC internal prototype to avoid an error.
13812 Use char because int might match the return type of a GCC
13813 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13814#ifdef __cplusplus
13815extern "C"
13816#endif
d7040cdb 13817char cos ();
13b2be9c
DJ
13818int
13819main ()
13820{
81ecdfbb 13821return cos ();
13b2be9c
DJ
13822 ;
13823 return 0;
13824}
13825_ACEOF
81ecdfbb 13826if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13827 ac_cv_lib_m_cos=yes
13b2be9c 13828else
81ecdfbb 13829 ac_cv_lib_m_cos=no
13b2be9c 13830fi
81ecdfbb
RW
13831rm -f core conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13833LIBS=$ac_check_lib_save_LIBS
13834fi
81ecdfbb
RW
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13836$as_echo "$ac_cv_lib_m_cos" >&6; }
13837if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13838 LIBM="$LIBM -lm"
39bec121
TW
13839fi
13840
13841 ;;
13842*)
81ecdfbb
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13844$as_echo_n "checking for cos in -lm... " >&6; }
13845if test "${ac_cv_lib_m_cos+set}" = set; then :
13846 $as_echo_n "(cached) " >&6
39bec121 13847else
13b2be9c 13848 ac_check_lib_save_LIBS=$LIBS
39bec121 13849LIBS="-lm $LIBS"
81ecdfbb 13850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13851/* end confdefs.h. */
39bec121 13852
81ecdfbb
RW
13853/* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13856#ifdef __cplusplus
13857extern "C"
13858#endif
d7040cdb 13859char cos ();
13b2be9c
DJ
13860int
13861main ()
13862{
81ecdfbb 13863return cos ();
13b2be9c
DJ
13864 ;
13865 return 0;
13866}
13867_ACEOF
81ecdfbb 13868if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13869 ac_cv_lib_m_cos=yes
13b2be9c 13870else
81ecdfbb 13871 ac_cv_lib_m_cos=no
13b2be9c 13872fi
81ecdfbb
RW
13873rm -f core conftest.err conftest.$ac_objext \
13874 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13875LIBS=$ac_check_lib_save_LIBS
13876fi
81ecdfbb
RW
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13878$as_echo "$ac_cv_lib_m_cos" >&6; }
13879if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13880 LIBM="-lm"
39bec121
TW
13881fi
13882
13883 ;;
13884esac
13885
13b2be9c 13886
d7040cdb 13887
39bec121
TW
13888 ;;
13889esac
13890
252b5132
RH
13891# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13892# enough, but on some of those systems, the assert macro relies on requoting
13893# working properly!
81ecdfbb
RW
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13895$as_echo_n "checking for working assert macro... " >&6; }
13896if test "${gas_cv_assert_ok+set}" = set; then :
13897 $as_echo_n "(cached) " >&6
13b2be9c 13898else
81ecdfbb 13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13900/* end confdefs.h. */
252b5132
RH
13901#include <assert.h>
13902#include <stdio.h>
13b2be9c
DJ
13903int
13904main ()
13905{
252b5132
RH
13906
13907/* check for requoting problems */
13908static int a, b, c, d;
13909static char *s;
13910assert (!strcmp(s, "foo bar baz quux"));
13911/* check for newline handling */
13912assert (a == b
13913 || c == d);
13914
13b2be9c
DJ
13915 ;
13916 return 0;
81ecdfbb
RW
13917}
13918_ACEOF
13919if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13920 gas_cv_assert_ok=yes
13921else
81ecdfbb 13922 gas_cv_assert_ok=no
252b5132 13923fi
81ecdfbb
RW
13924rm -f core conftest.err conftest.$ac_objext \
13925 conftest$ac_exeext conftest.$ac_ext
252b5132 13926fi
81ecdfbb
RW
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13928$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 13929test $gas_cv_assert_ok = yes ||
81ecdfbb 13930$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 13931
d6d788bd
L
13932
13933
252b5132
RH
13934# On some systems, the system header files may not declare malloc, realloc,
13935# and free. There are places where gas needs these functions to have been
13936# declared -- such as when taking their addresses.
13937gas_test_headers="
13938#ifdef HAVE_MEMORY_H
13939#include <memory.h>
13940#endif
13941#ifdef HAVE_STRING_H
13942#include <string.h>
13943#else
13944#ifdef HAVE_STRINGS_H
13945#include <strings.h>
13946#endif
13947#endif
13948#ifdef HAVE_STDLIB_H
13949#include <stdlib.h>
13950#endif
13951#ifdef HAVE_UNISTD_H
13952#include <unistd.h>
13953#endif
13954"
13955
e8a38df5
AL
13956# Does errno.h declare errno, or do we have to add a separate declaration
13957# for it?
13958
81ecdfbb
RW
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13960$as_echo_n "checking whether declaration is required for errno... " >&6; }
13961if test "${gas_cv_decl_needed_errno+set}" = set; then :
13962 $as_echo_n "(cached) " >&6
e8a38df5 13963else
81ecdfbb 13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
13965/* end confdefs.h. */
13966
13967#ifdef HAVE_ERRNO_H
13968#include <errno.h>
13969#endif
13970
13971int
13972main ()
13973{
13974
13975typedef int f;
13976f x;
13977x = (f) errno;
13978
13979 ;
13980 return 0;
13981}
13982_ACEOF
81ecdfbb 13983if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
13984 gas_cv_decl_needed_errno=no
13985else
81ecdfbb 13986 gas_cv_decl_needed_errno=yes
e8a38df5 13987fi
81ecdfbb
RW
13988rm -f core conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
e8a38df5 13990fi
81ecdfbb
RW
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13992$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
13993if test $gas_cv_decl_needed_errno = yes; then
13994
81ecdfbb 13995$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
13996
13997fi
13998
13999
81ecdfbb
RW
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14001$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14002if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
56f36663 14004else
81ecdfbb 14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
14006/* end confdefs.h. */
14007#include <unistd.h>
14008int
14009main ()
14010{
14011extern int getopt (int, char *const*, const char *);
14012 ;
14013 return 0;
14014}
14015_ACEOF
81ecdfbb 14016if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
14017 gas_cv_decl_getopt_unistd_h=yes
14018else
81ecdfbb 14019 gas_cv_decl_getopt_unistd_h=no
56f36663 14020fi
81ecdfbb 14021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
14022fi
14023
81ecdfbb
RW
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14025$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
14026if test $gas_cv_decl_getopt_unistd_h = yes; then
14027
81ecdfbb 14028$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
14029
14030fi
14031
e8a38df5 14032
81ecdfbb
RW
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14034$as_echo_n "checking whether declaration is required for environ... " >&6; }
14035if test "${gas_cv_decl_needed_environ+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
13b2be9c 14037else
81ecdfbb 14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14039/* end confdefs.h. */
252b5132 14040$gas_test_headers
13b2be9c
DJ
14041int
14042main ()
14043{
252b5132 14044
e8a38df5 14045typedef char **f;
252b5132 14046f x;
e8a38df5 14047x = (f) environ;
252b5132 14048
13b2be9c
DJ
14049 ;
14050 return 0;
14051}
14052_ACEOF
81ecdfbb 14053if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14054 gas_cv_decl_needed_environ=no
252b5132 14055else
81ecdfbb 14056 gas_cv_decl_needed_environ=yes
252b5132 14057fi
81ecdfbb
RW
14058rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
252b5132 14060fi
81ecdfbb
RW
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14062$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 14063if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 14064
81ecdfbb 14065$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
14066
14067fi
14068
14069
81ecdfbb
RW
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14071$as_echo_n "checking whether declaration is required for ffs... " >&6; }
14072if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14073 $as_echo_n "(cached) " >&6
13b2be9c 14074else
81ecdfbb 14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14076/* end confdefs.h. */
14077$gas_test_headers
14078int
14079main ()
14080{
14081
e8a38df5 14082typedef int (*f)(int);
13b2be9c 14083f x;
e8a38df5 14084x = (f) ffs;
13b2be9c
DJ
14085
14086 ;
14087 return 0;
14088}
14089_ACEOF
81ecdfbb 14090if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14091 gas_cv_decl_needed_ffs=no
13b2be9c 14092else
81ecdfbb 14093 gas_cv_decl_needed_ffs=yes
13b2be9c 14094fi
81ecdfbb
RW
14095rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14097fi
81ecdfbb
RW
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14099$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 14100if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 14101
81ecdfbb 14102$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
14103
14104fi
14105
14106
81ecdfbb
RW
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14108$as_echo_n "checking whether declaration is required for free... " >&6; }
14109if test "${gas_cv_decl_needed_free+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
13b2be9c 14111else
81ecdfbb 14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14113/* end confdefs.h. */
14114$gas_test_headers
14115int
14116main ()
14117{
14118
14119typedef void (*f)();
14120f x;
14121x = (f) free;
14122
14123 ;
14124 return 0;
14125}
14126_ACEOF
81ecdfbb 14127if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14128 gas_cv_decl_needed_free=no
14129else
81ecdfbb 14130 gas_cv_decl_needed_free=yes
13b2be9c 14131fi
81ecdfbb
RW
14132rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14134fi
81ecdfbb
RW
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14136$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
14137if test $gas_cv_decl_needed_free = yes; then
14138
81ecdfbb 14139$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
14140
14141fi
14142
14143
81ecdfbb
RW
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14145$as_echo_n "checking whether declaration is required for malloc... " >&6; }
14146if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14147 $as_echo_n "(cached) " >&6
13b2be9c 14148else
81ecdfbb 14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14150/* end confdefs.h. */
14151$gas_test_headers
14152int
14153main ()
14154{
14155
14156typedef char *(*f)();
14157f x;
e8a38df5 14158x = (f) malloc;
13b2be9c
DJ
14159
14160 ;
14161 return 0;
14162}
14163_ACEOF
81ecdfbb 14164if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14165 gas_cv_decl_needed_malloc=no
13b2be9c 14166else
81ecdfbb 14167 gas_cv_decl_needed_malloc=yes
13b2be9c 14168fi
81ecdfbb
RW
14169rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14171fi
81ecdfbb
RW
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14173$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 14174if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 14175
81ecdfbb 14176$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
14177
14178fi
14179
14180
81ecdfbb
RW
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14182$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14183if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14184 $as_echo_n "(cached) " >&6
13b2be9c 14185else
81ecdfbb 14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14187/* end confdefs.h. */
14188$gas_test_headers
14189int
14190main ()
14191{
14192
e8a38df5 14193typedef char *(*f)();
13b2be9c 14194f x;
e8a38df5 14195x = (f) sbrk;
13b2be9c
DJ
14196
14197 ;
14198 return 0;
14199}
14200_ACEOF
81ecdfbb 14201if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14202 gas_cv_decl_needed_sbrk=no
13b2be9c 14203else
81ecdfbb 14204 gas_cv_decl_needed_sbrk=yes
13b2be9c 14205fi
81ecdfbb
RW
14206rm -f core conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14208fi
81ecdfbb
RW
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14210$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 14211if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 14212
81ecdfbb 14213$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
14214
14215fi
14216
14217
81ecdfbb
RW
14218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14219$as_echo_n "checking whether declaration is required for strstr... " >&6; }
14220if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
13b2be9c 14222else
81ecdfbb 14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14224/* end confdefs.h. */
e8a38df5 14225$gas_test_headers
13b2be9c
DJ
14226int
14227main ()
14228{
14229
e8a38df5 14230typedef char *(*f)();
13b2be9c 14231f x;
e8a38df5 14232x = (f) strstr;
13b2be9c
DJ
14233
14234 ;
14235 return 0;
14236}
14237_ACEOF
81ecdfbb 14238if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14239 gas_cv_decl_needed_strstr=no
13b2be9c 14240else
81ecdfbb 14241 gas_cv_decl_needed_strstr=yes
13b2be9c 14242fi
81ecdfbb
RW
14243rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14245fi
81ecdfbb
RW
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14247$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 14248if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 14249
81ecdfbb 14250$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
14251
14252fi
14253
14254
4b0296ce
AM
14255ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14256if test "x$ac_cv_have_decl_free" = x""yes; then :
14257 ac_have_decl=1
14258else
14259 ac_have_decl=0
14260fi
14261
14262cat >>confdefs.h <<_ACEOF
14263#define HAVE_DECL_FREE $ac_have_decl
14264_ACEOF
14265ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14266if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14267 ac_have_decl=1
14268else
14269 ac_have_decl=0
14270fi
14271
14272cat >>confdefs.h <<_ACEOF
14273#define HAVE_DECL_GETENV $ac_have_decl
14274_ACEOF
14275ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14276if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14277 ac_have_decl=1
14278else
14279 ac_have_decl=0
14280fi
14281
14282cat >>confdefs.h <<_ACEOF
14283#define HAVE_DECL_MALLOC $ac_have_decl
14284_ACEOF
0175442d
L
14285ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14286if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14287 ac_have_decl=1
14288else
14289 ac_have_decl=0
14290fi
14291
14292cat >>confdefs.h <<_ACEOF
14293#define HAVE_DECL_MEMPCPY $ac_have_decl
14294_ACEOF
4b0296ce
AM
14295ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14296if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14297 ac_have_decl=1
14298else
14299 ac_have_decl=0
14300fi
14301
14302cat >>confdefs.h <<_ACEOF
14303#define HAVE_DECL_REALLOC $ac_have_decl
14304_ACEOF
14305ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14306if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14307 ac_have_decl=1
14308else
14309 ac_have_decl=0
14310fi
14311
14312cat >>confdefs.h <<_ACEOF
14313#define HAVE_DECL_STPCPY $ac_have_decl
14314_ACEOF
14315ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14316if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14317 ac_have_decl=1
14318else
14319 ac_have_decl=0
14320fi
0175442d 14321
4b0296ce
AM
14322cat >>confdefs.h <<_ACEOF
14323#define HAVE_DECL_STRSTR $ac_have_decl
14324_ACEOF
81ecdfbb
RW
14325ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14326if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14327 ac_have_decl=1
6d74f28b 14328else
81ecdfbb 14329 ac_have_decl=0
6d74f28b 14330fi
6d74f28b
EB
14331
14332cat >>confdefs.h <<_ACEOF
81ecdfbb 14333#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b 14334_ACEOF
2a7f4fa9
NC
14335ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14336if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14337 ac_have_decl=1
14338else
14339 ac_have_decl=0
14340fi
14341
14342cat >>confdefs.h <<_ACEOF
14343#define HAVE_DECL_ASPRINTF $ac_have_decl
14344_ACEOF
6d74f28b
EB
14345
14346
13b2be9c 14347
c973bc5c
NC
14348case "${host}" in
14349*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14350
81ecdfbb 14351$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
14352 ;;
14353esac
14354
543b7933
L
14355# Link in zlib if we can. This allows us to write compressed debug sections.
14356
14357 # Use the system's zlib library.
39f3de7c
L
14358 zlibdir="-L\$(top_builddir)/../zlib"
14359 zlibinc="-I\$(top_srcdir)/../zlib"
0acf065b 14360
0138187e
L
14361# Check whether --with-system-zlib was given.
14362if test "${with_system_zlib+set}" = set; then :
afa59b79
L
14363 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14364 zlibdir=
14365 zlibinc=
14366 fi
0acf065b 14367
0acf065b 14368fi
0acf065b 14369
0acf065b
CC
14370
14371
543b7933
L
14372
14373
b11d79f2
TG
14374# Support for VMS timestamps via cross compile
14375
14376if test "$ac_cv_header_time_h" = yes; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14378$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14379 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14380 $as_echo_n "(cached) " >&6
14381else
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383/* end confdefs.h. */
14384
14385#define _BSD_SOURCE 1
14386#include <time.h>
14387int
14388main ()
14389{
14390struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14391 ;
14392 return 0;
14393}
14394_ACEOF
14395if ac_fn_c_try_compile "$LINENO"; then :
14396 gas_cv_have_time_type_member_tm_gmtoff=yes
14397else
14398 gas_cv_have_time_type_member_tm_gmtoff=no
14399
14400fi
14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402fi
14403
14404 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14405
14406$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14407
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14410$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14411
14412fi
14413
14414if test "$ac_cv_header_sys_stat_h" = yes; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14416$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14417 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14419else
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421/* end confdefs.h. */
14422
14423#define _BSD_SOURCE 1
14424#include <sys/stat.h>
14425int
14426main ()
14427{
14428struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14429 ;
14430 return 0;
14431}
14432_ACEOF
14433if ac_fn_c_try_compile "$LINENO"; then :
14434 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14435else
14436 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14437
14438fi
14439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440fi
14441
14442 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14443
14444$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14448$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14451$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14452 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454else
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456/* end confdefs.h. */
14457
14458#define _BSD_SOURCE 1
14459#include <sys/stat.h>
14460int
14461main ()
14462{
14463struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14464 ;
14465 return 0;
14466}
14467_ACEOF
14468if ac_fn_c_try_compile "$LINENO"; then :
14469 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14470else
14471 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14472
14473fi
14474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475fi
14476
14477 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14478
14479$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14480
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14483$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14484
14485fi
14486
14487
c973bc5c 14488
13b2be9c 14489
108a6f8e
CD
14490
14491
14492
14493
31dd3154 14494
81ecdfbb 14495ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 14496
81ecdfbb 14497ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
14498
14499
14500cat >confcache <<\_ACEOF
14501# This file is a shell script that caches the results of configure
14502# tests run on this system so they can be shared between configure
14503# scripts and configure runs, see configure's option --config-cache.
14504# It is not useful on other systems. If it contains results you don't
14505# want to keep, you may remove or edit it.
14506#
14507# config.status only pays attention to the cache file if you give it
14508# the --recheck option to rerun configure.
14509#
14510# `ac_cv_env_foo' variables (set or unset) will be overridden when
14511# loading this file, other *unset* `ac_cv_foo' will be assigned the
14512# following values.
14513
14514_ACEOF
14515
14516# The following way of writing the cache mishandles newlines in values,
14517# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14518# So, we kill variables containing newlines.
13b2be9c
DJ
14519# Ultrix sh set writes to stderr and can't be redirected directly,
14520# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14521(
14522 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14523 eval ac_val=\$$ac_var
14524 case $ac_val in #(
14525 *${as_nl}*)
14526 case $ac_var in #(
14527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14528$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14529 esac
14530 case $ac_var in #(
14531 _ | IFS | as_nl) ;; #(
14532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14533 *) { eval $ac_var=; unset $ac_var;} ;;
14534 esac ;;
14535 esac
14536 done
14537
13b2be9c 14538 (set) 2>&1 |
81ecdfbb
RW
14539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14540 *${as_nl}ac_space=\ *)
14541 # `set' does not quote correctly, so add quotes: double-quote
14542 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 14543 sed -n \
ab509236
L
14544 "s/'/'\\\\''/g;
14545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14546 ;; #(
13b2be9c
DJ
14547 *)
14548 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 14550 ;;
81ecdfbb
RW
14551 esac |
14552 sort
14553) |
13b2be9c 14554 sed '
81ecdfbb 14555 /^ac_cv_env_/b end
13b2be9c 14556 t clear
81ecdfbb 14557 :clear
13b2be9c
DJ
14558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14559 t end
81ecdfbb
RW
14560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14561 :end' >>confcache
14562if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14563 if test -w "$cache_file"; then
14564 test "x$cache_file" != "x/dev/null" &&
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14566$as_echo "$as_me: updating cache $cache_file" >&6;}
13b2be9c
DJ
14567 cat confcache >$cache_file
14568 else
81ecdfbb
RW
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14570$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
14571 fi
14572fi
14573rm -f confcache
14574
14575test "x$prefix" = xNONE && prefix=$ac_default_prefix
14576# Let make expand exec_prefix.
14577test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14578
13b2be9c
DJ
14579DEFS=-DHAVE_CONFIG_H
14580
14581ac_libobjs=
14582ac_ltlibobjs=
14583for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14584 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14588 # will be set to the directory where LIBOBJS objects are built.
14589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
14591done
14592LIBOBJS=$ac_libobjs
14593
14594LTLIBOBJS=$ac_ltlibobjs
14595
14596
14597if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14598 as_fn_error "conditional \"AMDEP\" was never defined.
14599Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
14600fi
14601if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14602 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14603Usually this means the macro was only invoked conditionally." "$LINENO" 5
14604fi
14605 if test -n "$EXEEXT"; then
14606 am__EXEEXT_TRUE=
14607 am__EXEEXT_FALSE='#'
14608else
14609 am__EXEEXT_TRUE='#'
14610 am__EXEEXT_FALSE=
13b2be9c 14611fi
81ecdfbb
RW
14612
14613
13b2be9c 14614if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14615 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14616Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 14617fi
d5fbea21 14618if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14619 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14620Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14621fi
13b2be9c
DJ
14622
14623: ${CONFIG_STATUS=./config.status}
81ecdfbb 14624ac_write_fail=0
13b2be9c
DJ
14625ac_clean_files_save=$ac_clean_files
14626ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14627{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14628$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14629as_write_fail=0
14630cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
14631#! $SHELL
14632# Generated by $as_me.
14633# Run this file to recreate the current configuration.
14634# Compiler output produced by configure, useful for debugging
14635# configure, is in config.log if it exists.
14636
14637debug=false
14638ac_cs_recheck=false
14639ac_cs_silent=false
13b2be9c 14640
81ecdfbb
RW
14641SHELL=\${CONFIG_SHELL-$SHELL}
14642export SHELL
14643_ASEOF
14644cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14645## -------------------- ##
14646## M4sh Initialization. ##
14647## -------------------- ##
13b2be9c 14648
81ecdfbb
RW
14649# Be more Bourne compatible
14650DUALCASE=1; export DUALCASE # for MKS sh
14651if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
14652 emulate sh
14653 NULLCMD=:
81ecdfbb 14654 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
14655 # is contrary to our usage. Disable this feature.
14656 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14657 setopt NO_GLOB_SUBST
14658else
14659 case `(set -o) 2>/dev/null` in #(
14660 *posix*) :
14661 set -o posix ;; #(
14662 *) :
14663 ;;
14664esac
13b2be9c
DJ
14665fi
14666
81ecdfbb
RW
14667
14668as_nl='
14669'
14670export as_nl
14671# Printing a long string crashes Solaris 7 /usr/bin/printf.
14672as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14673as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14674as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14675# Prefer a ksh shell builtin over an external printf program on Solaris,
14676# but without wasting forks for bash or zsh.
14677if test -z "$BASH_VERSION$ZSH_VERSION" \
14678 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14679 as_echo='print -r --'
14680 as_echo_n='print -rn --'
14681elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14682 as_echo='printf %s\n'
14683 as_echo_n='printf %s'
14684else
14685 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14686 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14687 as_echo_n='/usr/ucb/echo -n'
14688 else
14689 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14690 as_echo_n_body='eval
14691 arg=$1;
14692 case $arg in #(
14693 *"$as_nl"*)
14694 expr "X$arg" : "X\\(.*\\)$as_nl";
14695 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14696 esac;
14697 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14698 '
14699 export as_echo_n_body
14700 as_echo_n='sh -c $as_echo_n_body as_echo'
14701 fi
14702 export as_echo_body
14703 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
14704fi
14705
81ecdfbb
RW
14706# The user is always right.
14707if test "${PATH_SEPARATOR+set}" != set; then
14708 PATH_SEPARATOR=:
14709 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14710 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14711 PATH_SEPARATOR=';'
14712 }
14713fi
14714
14715
14716# IFS
14717# We need space, tab and new line, in precisely that order. Quoting is
14718# there to prevent editors from complaining about space-tab.
14719# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14720# splitting by setting IFS to empty value.)
14721IFS=" "" $as_nl"
14722
14723# Find who we are. Look in the path if we contain no directory separator.
14724case $0 in #((
14725 *[\\/]* ) as_myself=$0 ;;
14726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727for as_dir in $PATH
14728do
14729 IFS=$as_save_IFS
14730 test -z "$as_dir" && as_dir=.
14731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14732 done
14733IFS=$as_save_IFS
14734
14735 ;;
14736esac
14737# We did not find ourselves, most probably we were run as `sh COMMAND'
14738# in which case we are not to be found in the path.
14739if test "x$as_myself" = x; then
14740 as_myself=$0
14741fi
14742if test ! -f "$as_myself"; then
14743 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14744 exit 1
14745fi
13b2be9c 14746
81ecdfbb
RW
14747# Unset variables that we do not need and which cause bugs (e.g. in
14748# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14749# suppresses any "Segmentation fault" message there. '((' could
14750# trigger a bug in pdksh 5.2.14.
14751for as_var in BASH_ENV ENV MAIL MAILPATH
14752do eval test x\${$as_var+set} = xset \
14753 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14754done
13b2be9c
DJ
14755PS1='$ '
14756PS2='> '
14757PS4='+ '
14758
14759# NLS nuisances.
81ecdfbb
RW
14760LC_ALL=C
14761export LC_ALL
14762LANGUAGE=C
14763export LANGUAGE
14764
14765# CDPATH.
14766(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14767
14768
14769# as_fn_error ERROR [LINENO LOG_FD]
14770# ---------------------------------
14771# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14772# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14773# script with status $?, using 1 if that was 0.
14774as_fn_error ()
14775{
14776 as_status=$?; test $as_status -eq 0 && as_status=1
14777 if test "$3"; then
14778 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14779 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13b2be9c 14780 fi
81ecdfbb
RW
14781 $as_echo "$as_me: error: $1" >&2
14782 as_fn_exit $as_status
14783} # as_fn_error
14784
14785
14786# as_fn_set_status STATUS
14787# -----------------------
14788# Set $? to STATUS, without forking.
14789as_fn_set_status ()
14790{
14791 return $1
14792} # as_fn_set_status
14793
14794# as_fn_exit STATUS
14795# -----------------
14796# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14797as_fn_exit ()
14798{
14799 set +e
14800 as_fn_set_status $1
14801 exit $1
14802} # as_fn_exit
14803
14804# as_fn_unset VAR
14805# ---------------
14806# Portably unset VAR.
14807as_fn_unset ()
14808{
14809 { eval $1=; unset $1;}
14810}
14811as_unset=as_fn_unset
14812# as_fn_append VAR VALUE
14813# ----------------------
14814# Append the text in VALUE to the end of the definition contained in VAR. Take
14815# advantage of any shell optimizations that allow amortized linear growth over
14816# repeated appends, instead of the typical quadratic growth present in naive
14817# implementations.
14818if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14819 eval 'as_fn_append ()
14820 {
14821 eval $1+=\$2
14822 }'
14823else
14824 as_fn_append ()
14825 {
14826 eval $1=\$$1\$2
14827 }
14828fi # as_fn_append
14829
14830# as_fn_arith ARG...
14831# ------------------
14832# Perform arithmetic evaluation on the ARGs, and store the result in the
14833# global $as_val. Take advantage of shells that can avoid forks. The arguments
14834# must be portable across $(()) and expr.
14835if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14836 eval 'as_fn_arith ()
14837 {
14838 as_val=$(( $* ))
14839 }'
14840else
14841 as_fn_arith ()
14842 {
14843 as_val=`expr "$@" || test $? -eq 1`
14844 }
14845fi # as_fn_arith
14846
13b2be9c 14847
81ecdfbb
RW
14848if expr a : '\(a\)' >/dev/null 2>&1 &&
14849 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
14850 as_expr=expr
14851else
14852 as_expr=false
14853fi
14854
81ecdfbb 14855if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
14856 as_basename=basename
14857else
14858 as_basename=false
14859fi
14860
81ecdfbb
RW
14861if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14862 as_dirname=dirname
14863else
14864 as_dirname=false
14865fi
13b2be9c 14866
81ecdfbb 14867as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
14868$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14869 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14871$as_echo X/"$0" |
14872 sed '/^.*\/\([^/][^/]*\)\/*$/{
14873 s//\1/
14874 q
14875 }
14876 /^X\/\(\/\/\)$/{
14877 s//\1/
14878 q
14879 }
14880 /^X\/\(\/\).*/{
14881 s//\1/
14882 q
14883 }
14884 s/.*/./; q'`
13b2be9c 14885
13b2be9c
DJ
14886# Avoid depending upon Character Ranges.
14887as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14888as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14889as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14890as_cr_digits='0123456789'
14891as_cr_alnum=$as_cr_Letters$as_cr_digits
14892
81ecdfbb
RW
14893ECHO_C= ECHO_N= ECHO_T=
14894case `echo -n x` in #(((((
14895-n*)
14896 case `echo 'xy\c'` in
14897 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14898 xy) ECHO_C='\c';;
14899 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14900 ECHO_T=' ';;
14901 esac;;
14902*)
14903 ECHO_N='-n';;
13b2be9c 14904esac
252b5132 14905
81ecdfbb
RW
14906rm -f conf$$ conf$$.exe conf$$.file
14907if test -d conf$$.dir; then
14908 rm -f conf$$.dir/conf$$.file
252b5132 14909else
81ecdfbb
RW
14910 rm -f conf$$.dir
14911 mkdir conf$$.dir 2>/dev/null
252b5132 14912fi
81ecdfbb
RW
14913if (echo >conf$$.file) 2>/dev/null; then
14914 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 14915 as_ln_s='ln -s'
81ecdfbb
RW
14916 # ... but there are two gotchas:
14917 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14918 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14919 # In both cases, we have to default to `cp -p'.
14920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14921 as_ln_s='cp -p'
14922 elif ln conf$$.file conf$$ 2>/dev/null; then
14923 as_ln_s=ln
14924 else
14925 as_ln_s='cp -p'
13b2be9c 14926 fi
13b2be9c
DJ
14927else
14928 as_ln_s='cp -p'
252b5132 14929fi
81ecdfbb
RW
14930rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14931rmdir conf$$.dir 2>/dev/null
252b5132 14932
81ecdfbb
RW
14933
14934# as_fn_mkdir_p
14935# -------------
14936# Create "$as_dir" as a directory, including parents if necessary.
14937as_fn_mkdir_p ()
14938{
14939
14940 case $as_dir in #(
14941 -*) as_dir=./$as_dir;;
14942 esac
14943 test -d "$as_dir" || eval $as_mkdir_p || {
14944 as_dirs=
14945 while :; do
14946 case $as_dir in #(
14947 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14948 *) as_qdir=$as_dir;;
14949 esac
14950 as_dirs="'$as_qdir' $as_dirs"
14951 as_dir=`$as_dirname -- "$as_dir" ||
14952$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14953 X"$as_dir" : 'X\(//\)[^/]' \| \
14954 X"$as_dir" : 'X\(//\)$' \| \
14955 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14956$as_echo X"$as_dir" |
14957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14958 s//\1/
14959 q
14960 }
14961 /^X\(\/\/\)[^/].*/{
14962 s//\1/
14963 q
14964 }
14965 /^X\(\/\/\)$/{
14966 s//\1/
14967 q
14968 }
14969 /^X\(\/\).*/{
14970 s//\1/
14971 q
14972 }
14973 s/.*/./; q'`
14974 test -d "$as_dir" && break
14975 done
14976 test -z "$as_dirs" || eval "mkdir $as_dirs"
14977 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14978
14979
14980} # as_fn_mkdir_p
13b2be9c 14981if mkdir -p . 2>/dev/null; then
81ecdfbb 14982 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 14983else
ab509236 14984 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14985 as_mkdir_p=false
14986fi
81ecdfbb
RW
14987
14988if test -x / >/dev/null 2>&1; then
14989 as_test_x='test -x'
14990else
14991 if ls -dL / >/dev/null 2>&1; then
14992 as_ls_L_option=L
14993 else
14994 as_ls_L_option=
14995 fi
14996 as_test_x='
14997 eval sh -c '\''
14998 if test -d "$1"; then
14999 test -d "$1/.";
15000 else
15001 case $1 in #(
15002 -*)set "./$1";;
15003 esac;
15004 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15005 ???[sx]*):;;*)false;;esac;fi
15006 '\'' sh
15007 '
15008fi
15009as_executable_p=$as_test_x
252b5132 15010
13b2be9c 15011# Sed expression to map a string onto a valid CPP name.
ab509236 15012as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15013
13b2be9c 15014# Sed expression to map a string onto a valid variable name.
ab509236 15015as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15016
d6d788bd 15017
13b2be9c 15018exec 6>&1
81ecdfbb
RW
15019## ----------------------------------- ##
15020## Main body of $CONFIG_STATUS script. ##
15021## ----------------------------------- ##
15022_ASEOF
15023test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 15024
81ecdfbb
RW
15025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15026# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 15027# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15028# values after options handling.
15029ac_log="
91dc4e0a 15030This file was extended by gas $as_me 2.25.51, which was
81ecdfbb 15031generated by GNU Autoconf 2.64. Invocation command line was
d6d788bd 15032
13b2be9c
DJ
15033 CONFIG_FILES = $CONFIG_FILES
15034 CONFIG_HEADERS = $CONFIG_HEADERS
15035 CONFIG_LINKS = $CONFIG_LINKS
15036 CONFIG_COMMANDS = $CONFIG_COMMANDS
15037 $ $0 $@
252b5132 15038
81ecdfbb
RW
15039on `(hostname || uname -n) 2>/dev/null | sed 1q`
15040"
15041
13b2be9c 15042_ACEOF
252b5132 15043
81ecdfbb
RW
15044case $ac_config_files in *"
15045"*) set x $ac_config_files; shift; ac_config_files=$*;;
15046esac
13b2be9c 15047
81ecdfbb
RW
15048case $ac_config_headers in *"
15049"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15050esac
252b5132 15051
252b5132 15052
81ecdfbb
RW
15053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054# Files that config.status was made for.
15055config_files="$ac_config_files"
15056config_headers="$ac_config_headers"
15057config_commands="$ac_config_commands"
d6d788bd 15058
81ecdfbb 15059_ACEOF
252b5132 15060
81ecdfbb 15061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15062ac_cs_usage="\
81ecdfbb
RW
15063\`$as_me' instantiates files and other configuration actions
15064from templates according to the current configuration. Unless the files
15065and actions are specified as TAGs, all are instantiated by default.
252b5132 15066
81ecdfbb 15067Usage: $0 [OPTION]... [TAG]...
252b5132 15068
13b2be9c 15069 -h, --help print this help, then exit
81ecdfbb
RW
15070 -V, --version print version number and configuration settings, then exit
15071 -q, --quiet, --silent
15072 do not print progress messages
13b2be9c
DJ
15073 -d, --debug don't remove temporary files
15074 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15075 --file=FILE[:TEMPLATE]
15076 instantiate the configuration file FILE
15077 --header=FILE[:TEMPLATE]
15078 instantiate the configuration header FILE
252b5132 15079
13b2be9c
DJ
15080Configuration files:
15081$config_files
252b5132 15082
13b2be9c
DJ
15083Configuration headers:
15084$config_headers
252b5132 15085
13b2be9c
DJ
15086Configuration commands:
15087$config_commands
252b5132 15088
81ecdfbb 15089Report bugs to the package provider."
d6d788bd 15090
81ecdfbb
RW
15091_ACEOF
15092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15093ac_cs_version="\\
91dc4e0a 15094gas config.status 2.25.51
81ecdfbb
RW
15095configured by $0, generated by GNU Autoconf 2.64,
15096 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 15097
81ecdfbb 15098Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
15099This config.status script is free software; the Free Software Foundation
15100gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15101
15102ac_pwd='$ac_pwd'
15103srcdir='$srcdir'
15104INSTALL='$INSTALL'
15105MKDIR_P='$MKDIR_P'
15106AWK='$AWK'
15107test -n "\$AWK" || AWK=awk
13b2be9c 15108_ACEOF
d6d788bd 15109
81ecdfbb
RW
15110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15111# The default lists apply if the user does not specify any file.
13b2be9c
DJ
15112ac_need_defaults=:
15113while test $# != 0
15114do
15115 case $1 in
15116 --*=*)
81ecdfbb
RW
15117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 15119 ac_shift=:
c8615825 15120 ;;
81ecdfbb 15121 *)
13b2be9c
DJ
15122 ac_option=$1
15123 ac_optarg=$2
15124 ac_shift=shift
c8615825 15125 ;;
13b2be9c 15126 esac
252b5132 15127
13b2be9c
DJ
15128 case $ac_option in
15129 # Handling of the options.
13b2be9c
DJ
15130 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15131 ac_cs_recheck=: ;;
81ecdfbb
RW
15132 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15133 $as_echo "$ac_cs_version"; exit ;;
15134 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
15135 debug=: ;;
15136 --file | --fil | --fi | --f )
15137 $ac_shift
81ecdfbb
RW
15138 case $ac_optarg in
15139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15140 esac
15141 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
15142 ac_need_defaults=false;;
15143 --header | --heade | --head | --hea )
15144 $ac_shift
81ecdfbb
RW
15145 case $ac_optarg in
15146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15147 esac
15148 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 15149 ac_need_defaults=false;;
81ecdfbb
RW
15150 --he | --h)
15151 # Conflict between --help and --header
15152 as_fn_error "ambiguous option: \`$1'
15153Try \`$0 --help' for more information.";;
15154 --help | --hel | -h )
15155 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
15156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15158 ac_cs_silent=: ;;
c8615825 15159
13b2be9c 15160 # This is an error.
81ecdfbb
RW
15161 -*) as_fn_error "unrecognized option: \`$1'
15162Try \`$0 --help' for more information." ;;
252b5132 15163
81ecdfbb
RW
15164 *) as_fn_append ac_config_targets " $1"
15165 ac_need_defaults=false ;;
252b5132 15166
13b2be9c
DJ
15167 esac
15168 shift
15169done
252b5132 15170
13b2be9c 15171ac_configure_extra_args=
d6d788bd 15172
13b2be9c
DJ
15173if $ac_cs_silent; then
15174 exec 6>/dev/null
15175 ac_configure_extra_args="$ac_configure_extra_args --silent"
15176fi
9b2b7d69 15177
13b2be9c 15178_ACEOF
81ecdfbb 15179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15180if \$ac_cs_recheck; then
81ecdfbb
RW
15181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15182 shift
15183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15184 CONFIG_SHELL='$SHELL'
15185 export CONFIG_SHELL
15186 exec "\$@"
13b2be9c
DJ
15187fi
15188
15189_ACEOF
81ecdfbb
RW
15190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15191exec 5>>config.log
15192{
15193 echo
15194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15195## Running $as_me. ##
15196_ASBOX
15197 $as_echo "$ac_log"
15198} >&5
13b2be9c 15199
81ecdfbb
RW
15200_ACEOF
15201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 15202#
81ecdfbb 15203# INIT-COMMANDS
9b2b7d69 15204#
13b2be9c 15205AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15206
15207
15208# The HP-UX ksh and POSIX shell print the target directory to stdout
15209# if CDPATH is set.
15210(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15211
15212sed_quote_subst='$sed_quote_subst'
15213double_quote_subst='$double_quote_subst'
15214delay_variable_subst='$delay_variable_subst'
3725885a
RW
15215macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15216macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15217enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15218enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15219pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15220enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15221SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15222ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15223host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15224host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15225host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15226build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15227build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15228build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15229SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15230Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15231GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15232EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15233FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15234LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15235NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15236LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15237max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15238ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15239exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15240lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15241lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15242lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15243reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15244reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15245OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15246deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15247file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15248AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15249AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15250STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15251RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15252old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15253old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15254old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15255lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15256CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15257CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15258compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15259GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15260lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15261lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15262lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15263lt_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"`'
15264objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15265MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15266lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15267lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15268lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15269lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15270lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15271need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15272DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15273NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15274LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15275OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15276OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15277libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15278shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15279extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15280archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15281enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15282export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15283whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15284compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15285old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15286old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15287archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15288archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15289module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15290module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15291with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15292allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15293no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15294hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15295hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15296hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15297hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15298hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15299hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15300hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15301hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15302inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15303link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15304fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15305always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15306export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15307exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15308include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15309prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15310file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15311variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15312need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15313need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15314version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15315runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15316shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15317shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15318libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15319library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15320soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15321install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15322postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15323postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15324finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15325finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15326hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15327sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15328sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15329hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15330enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15331enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15332enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15333old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15334striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15335
15336LTCC='$LTCC'
15337LTCFLAGS='$LTCFLAGS'
15338compiler='$compiler_DEFAULT'
15339
3725885a
RW
15340# A function that is used when there is no print builtin or printf.
15341func_fallback_echo ()
15342{
15343 eval 'cat <<_LTECHO_EOF
15344\$1
15345_LTECHO_EOF'
15346}
15347
d7040cdb 15348# Quote evaled strings.
3725885a
RW
15349for var in SHELL \
15350ECHO \
15351SED \
d7040cdb
SE
15352GREP \
15353EGREP \
15354FGREP \
15355LD \
15356NM \
15357LN_S \
15358lt_SP2NL \
15359lt_NL2SP \
15360reload_flag \
718a6fd8 15361OBJDUMP \
d7040cdb
SE
15362deplibs_check_method \
15363file_magic_cmd \
15364AR \
15365AR_FLAGS \
15366STRIP \
15367RANLIB \
15368CC \
15369CFLAGS \
15370compiler \
15371lt_cv_sys_global_symbol_pipe \
15372lt_cv_sys_global_symbol_to_cdecl \
15373lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15374lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15375lt_prog_compiler_no_builtin_flag \
df7b86aa 15376lt_prog_compiler_wl \
f2c621e4 15377lt_prog_compiler_pic \
d7040cdb
SE
15378lt_prog_compiler_static \
15379lt_cv_prog_compiler_c_o \
15380need_locks \
718a6fd8
SE
15381DSYMUTIL \
15382NMEDIT \
15383LIPO \
15384OTOOL \
15385OTOOL64 \
d7040cdb
SE
15386shrext_cmds \
15387export_dynamic_flag_spec \
15388whole_archive_flag_spec \
15389compiler_needs_object \
15390with_gnu_ld \
15391allow_undefined_flag \
15392no_undefined_flag \
15393hardcode_libdir_flag_spec \
15394hardcode_libdir_flag_spec_ld \
15395hardcode_libdir_separator \
f2c621e4 15396fix_srcfile_path \
d7040cdb
SE
15397exclude_expsyms \
15398include_expsyms \
15399file_list_spec \
15400variables_saved_for_relink \
15401libname_spec \
15402library_names_spec \
15403soname_spec \
3725885a 15404install_override_mode \
d7040cdb
SE
15405finish_eval \
15406old_striplib \
15407striplib; do
3725885a 15408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15409 *[\\\\\\\`\\"\\\$]*)
3725885a 15410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15411 ;;
15412 *)
15413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15414 ;;
15415 esac
15416done
15417
15418# Double-quote double-evaled strings.
15419for var in reload_cmds \
15420old_postinstall_cmds \
15421old_postuninstall_cmds \
15422old_archive_cmds \
15423extract_expsyms_cmds \
15424old_archive_from_new_cmds \
15425old_archive_from_expsyms_cmds \
15426archive_cmds \
15427archive_expsym_cmds \
15428module_cmds \
15429module_expsym_cmds \
15430export_symbols_cmds \
15431prelink_cmds \
15432postinstall_cmds \
15433postuninstall_cmds \
15434finish_cmds \
15435sys_lib_search_path_spec \
15436sys_lib_dlsearch_path_spec; do
3725885a 15437 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15438 *[\\\\\\\`\\"\\\$]*)
3725885a 15439 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15440 ;;
15441 *)
15442 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15443 ;;
15444 esac
15445done
15446
d7040cdb
SE
15447ac_aux_dir='$ac_aux_dir'
15448xsi_shell='$xsi_shell'
15449lt_shell_append='$lt_shell_append'
15450
15451# See if we are running on zsh, and set the options which allow our
15452# commands through without removal of \ escapes INIT.
15453if test -n "\${ZSH_VERSION+set}" ; then
15454 setopt NO_GLOB_SUBST
15455fi
15456
15457
15458 PACKAGE='$PACKAGE'
15459 VERSION='$VERSION'
15460 TIMESTAMP='$TIMESTAMP'
15461 RM='$RM'
15462 ofile='$ofile'
15463
15464
15465
20e95c23
DJ
15466# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15467 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15468 # from automake.
15469 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15470 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15471 LINGUAS="${LINGUAS-%UNSET%}"
15472
13b2be9c
DJ
15473target_cpu_type=${target_cpu_type}
15474 cgen_cpu_prefix=${cgen_cpu_prefix}
15475 obj_format=${obj_format}
15476 te_file=${te_file}
15477
15478_ACEOF
15479
81ecdfbb 15480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15481
81ecdfbb 15482# Handling of arguments.
13b2be9c 15483for ac_config_target in $ac_config_targets
9b2b7d69 15484do
81ecdfbb
RW
15485 case $ac_config_target in
15486 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15487 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15488 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15489 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15490 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15491 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15492 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15493 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15494 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15495 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15496
15497 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
15498 esac
15499done
15500
81ecdfbb 15501
13b2be9c
DJ
15502# If the user did not use the arguments to specify the items to instantiate,
15503# then the envvar interface is used. Set only those that are not.
15504# We use the long form for the default assignment because of an extremely
15505# bizarre bug on SunOS 4.1.3.
15506if $ac_need_defaults; then
15507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15509 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15510fi
15511
15512# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15513# simply because there is no reason against having it here, and in addition,
13b2be9c 15514# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15515# Hook for its removal unless debugging.
15516# Note that there is a small window in which the directory will not be cleaned:
15517# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
15518$debug ||
15519{
81ecdfbb
RW
15520 tmp=
15521 trap 'exit_status=$?
15522 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15523' 0
15524 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 15525}
13b2be9c 15526# Create a (secure) tmp directory for tmp files.
9b2b7d69 15527
13b2be9c 15528{
81ecdfbb 15529 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13b2be9c
DJ
15530 test -n "$tmp" && test -d "$tmp"
15531} ||
15532{
81ecdfbb
RW
15533 tmp=./conf$$-$RANDOM
15534 (umask 077 && mkdir "$tmp")
15535} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15536
15537# Set up the scripts for CONFIG_FILES section.
15538# No need to generate them if there are no CONFIG_FILES.
15539# This happens for instance with `./config.status config.h'.
15540if test -n "$CONFIG_FILES"; then
15541
15542
15543ac_cr=`echo X | tr X '\015'`
15544# On cygwin, bash can eat \r inside `` if the user requested igncr.
15545# But we know of no other shell where ac_cr would be empty at this
15546# point, so we can use a bashism as a fallback.
15547if test "x$ac_cr" = x; then
15548 eval ac_cr=\$\'\\r\'
15549fi
15550ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15551if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15552 ac_cs_awk_cr='\r'
15553else
15554 ac_cs_awk_cr=$ac_cr
15555fi
15556
15557echo 'BEGIN {' >"$tmp/subs1.awk" &&
15558_ACEOF
15559
15560
15561{
15562 echo "cat >conf$$subs.awk <<_ACEOF" &&
15563 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15564 echo "_ACEOF"
15565} >conf$$subs.sh ||
15566 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15567ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15568ac_delim='%!_!# '
15569for ac_last_try in false false false false false :; do
15570 . ./conf$$subs.sh ||
15571 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15572
15573 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15574 if test $ac_delim_n = $ac_delim_num; then
15575 break
15576 elif $ac_last_try; then
15577 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15578 else
15579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15580 fi
15581done
15582rm -f conf$$subs.sh
15583
15584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15586_ACEOF
15587sed -n '
15588h
15589s/^/S["/; s/!.*/"]=/
15590p
15591g
15592s/^[^!]*!//
15593:repl
15594t repl
15595s/'"$ac_delim"'$//
15596t delim
15597:nl
15598h
15599s/\(.\{148\}\).*/\1/
15600t more1
15601s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15602p
15603n
15604b repl
15605:more1
15606s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15607p
15608g
15609s/.\{148\}//
15610t nl
15611:delim
15612h
15613s/\(.\{148\}\).*/\1/
15614t more2
15615s/["\\]/\\&/g; s/^/"/; s/$/"/
15616p
15617b
15618:more2
15619s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15620p
15621g
15622s/.\{148\}//
15623t delim
15624' <conf$$subs.awk | sed '
15625/^[^""]/{
15626 N
15627 s/\n//
15628}
15629' >>$CONFIG_STATUS || ac_write_fail=1
15630rm -f conf$$subs.awk
15631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15632_ACAWK
15633cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15634 for (key in S) S_is_set[key] = 1
15635 FS = "\a"
15636
15637}
13b2be9c 15638{
81ecdfbb
RW
15639 line = $ 0
15640 nfields = split(line, field, "@")
15641 substed = 0
15642 len = length(field[1])
15643 for (i = 2; i < nfields; i++) {
15644 key = field[i]
15645 keylen = length(key)
15646 if (S_is_set[key]) {
15647 value = S[key]
15648 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15649 len += length(value) + length(field[++i])
15650 substed = 1
15651 } else
15652 len += 1 + keylen
15653 }
15654
15655 print line
13b2be9c 15656}
9b2b7d69 15657
81ecdfbb
RW
15658_ACAWK
15659_ACEOF
15660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15662 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15663else
15664 cat
15665fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15666 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
15667_ACEOF
15668
81ecdfbb
RW
15669# VPATH may cause trouble with some makes, so we remove $(srcdir),
15670# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15671# trailing colons and then remove the whole line if VPATH becomes empty
15672# (actually we leave an empty line to preserve line numbers).
15673if test "x$srcdir" = x.; then
15674 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15675s/:*\$(srcdir):*/:/
15676s/:*\${srcdir}:*/:/
15677s/:*@srcdir@:*/:/
15678s/^\([^=]*=[ ]*\):*/\1/
15679s/:*$//
15680s/^[^=]*=[ ]*$//
15681}'
15682fi
15683
15684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685fi # test -n "$CONFIG_FILES"
13b2be9c 15686
81ecdfbb
RW
15687# Set up the scripts for CONFIG_HEADERS section.
15688# No need to generate them if there are no CONFIG_HEADERS.
15689# This happens for instance with `./config.status Makefile'.
15690if test -n "$CONFIG_HEADERS"; then
15691cat >"$tmp/defines.awk" <<\_ACAWK ||
15692BEGIN {
15693_ACEOF
13b2be9c 15694
81ecdfbb
RW
15695# Transform confdefs.h into an awk script `defines.awk', embedded as
15696# here-document in config.status, that substitutes the proper values into
15697# config.h.in to produce config.h.
9b2b7d69 15698
81ecdfbb
RW
15699# Create a delimiter string that does not exist in confdefs.h, to ease
15700# handling of long lines.
15701ac_delim='%!_!# '
15702for ac_last_try in false false :; do
15703 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15704 if test -z "$ac_t"; then
15705 break
15706 elif $ac_last_try; then
15707 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15708 else
15709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15710 fi
15711done
15712
15713# For the awk script, D is an array of macro values keyed by name,
15714# likewise P contains macro parameters if any. Preserve backslash
15715# newline sequences.
15716
15717ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15718sed -n '
15719s/.\{148\}/&'"$ac_delim"'/g
15720t rset
15721:rset
15722s/^[ ]*#[ ]*define[ ][ ]*/ /
15723t def
15724d
15725:def
15726s/\\$//
15727t bsnl
15728s/["\\]/\\&/g
15729s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15730D["\1"]=" \3"/p
15731s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15732d
15733:bsnl
15734s/["\\]/\\&/g
15735s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15736D["\1"]=" \3\\\\\\n"\\/p
15737t cont
15738s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15739t cont
15740d
15741:cont
15742n
15743s/.\{148\}/&'"$ac_delim"'/g
15744t clear
15745:clear
15746s/\\$//
15747t bsnlc
15748s/["\\]/\\&/g; s/^/"/; s/$/"/p
15749d
15750:bsnlc
15751s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15752b cont
15753' <confdefs.h | sed '
15754s/'"$ac_delim"'/"\\\
15755"/g' >>$CONFIG_STATUS || ac_write_fail=1
15756
15757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 for (key in D) D_is_set[key] = 1
15759 FS = "\a"
15760}
15761/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15762 line = \$ 0
15763 split(line, arg, " ")
15764 if (arg[1] == "#") {
15765 defundef = arg[2]
15766 mac1 = arg[3]
15767 } else {
15768 defundef = substr(arg[1], 2)
15769 mac1 = arg[2]
15770 }
15771 split(mac1, mac2, "(") #)
15772 macro = mac2[1]
15773 prefix = substr(line, 1, index(line, defundef) - 1)
15774 if (D_is_set[macro]) {
15775 # Preserve the white space surrounding the "#".
15776 print prefix "define", macro P[macro] D[macro]
15777 next
15778 } else {
15779 # Replace #undef with comments. This is necessary, for example,
15780 # in the case of _POSIX_SOURCE, which is predefined and required
15781 # on some systems where configure will not decide to define it.
15782 if (defundef == "undef") {
15783 print "/*", prefix defundef, macro, "*/"
15784 next
15785 }
15786 }
15787}
15788{ print }
15789_ACAWK
13b2be9c 15790_ACEOF
81ecdfbb
RW
15791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15793fi # test -n "$CONFIG_HEADERS"
13b2be9c 15794
81ecdfbb
RW
15795
15796eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15797shift
15798for ac_tag
15799do
15800 case $ac_tag in
15801 :[FHLC]) ac_mode=$ac_tag; continue;;
15802 esac
15803 case $ac_mode$ac_tag in
15804 :[FHL]*:*);;
15805 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15806 :[FH]-) ac_tag=-:-;;
15807 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15808 esac
15809 ac_save_IFS=$IFS
15810 IFS=:
15811 set x $ac_tag
15812 IFS=$ac_save_IFS
15813 shift
15814 ac_file=$1
15815 shift
15816
15817 case $ac_mode in
15818 :L) ac_source=$1;;
15819 :[FH])
15820 ac_file_inputs=
15821 for ac_f
15822 do
15823 case $ac_f in
15824 -) ac_f="$tmp/stdin";;
15825 *) # Look for the file first in the build tree, then in the source tree
15826 # (if the path is not absolute). The absolute path cannot be DOS-style,
15827 # because $ac_f cannot contain `:'.
15828 test -f "$ac_f" ||
15829 case $ac_f in
15830 [\\/$]*) false;;
15831 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15832 esac ||
15833 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15834 esac
15835 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15836 as_fn_append ac_file_inputs " '$ac_f'"
15837 done
15838
15839 # Let's still pretend it is `configure' which instantiates (i.e., don't
15840 # use $as_me), people would be surprised to read:
15841 # /* config.h. Generated by config.status. */
15842 configure_input='Generated from '`
15843 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15844 `' by configure.'
15845 if test x"$ac_file" != x-; then
15846 configure_input="$ac_file. $configure_input"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15848$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 15849 fi
81ecdfbb
RW
15850 # Neutralize special characters interpreted by sed in replacement strings.
15851 case $configure_input in #(
15852 *\&* | *\|* | *\\* )
15853 ac_sed_conf_input=`$as_echo "$configure_input" |
15854 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15855 *) ac_sed_conf_input=$configure_input;;
15856 esac
252b5132 15857
81ecdfbb
RW
15858 case $ac_tag in
15859 *:-:* | *:-) cat >"$tmp/stdin" \
15860 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15861 esac
15862 ;;
252b5132 15863 esac
9b2b7d69 15864
81ecdfbb 15865 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 15866$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15867 X"$ac_file" : 'X\(//\)[^/]' \| \
15868 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15870$as_echo X"$ac_file" |
15871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15872 s//\1/
15873 q
15874 }
15875 /^X\(\/\/\)[^/].*/{
15876 s//\1/
15877 q
15878 }
15879 /^X\(\/\/\)$/{
15880 s//\1/
15881 q
15882 }
15883 /^X\(\/\).*/{
15884 s//\1/
15885 q
15886 }
15887 s/.*/./; q'`
15888 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
15889 ac_builddir=.
15890
81ecdfbb
RW
15891case "$ac_dir" in
15892.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893*)
15894 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15895 # A ".." for each directory in $ac_dir_suffix.
15896 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15897 case $ac_top_builddir_sub in
15898 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15899 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15900 esac ;;
15901esac
15902ac_abs_top_builddir=$ac_pwd
15903ac_abs_builddir=$ac_pwd$ac_dir_suffix
15904# for backward compatibility:
15905ac_top_builddir=$ac_top_build_prefix
9b2b7d69 15906
13b2be9c 15907case $srcdir in
81ecdfbb 15908 .) # We are building in place.
13b2be9c 15909 ac_srcdir=.
81ecdfbb
RW
15910 ac_top_srcdir=$ac_top_builddir_sub
15911 ac_abs_top_srcdir=$ac_pwd ;;
15912 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 15913 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15914 ac_top_srcdir=$srcdir
15915 ac_abs_top_srcdir=$srcdir ;;
15916 *) # Relative name.
15917 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15918 ac_top_srcdir=$ac_top_build_prefix$srcdir
15919 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 15920esac
81ecdfbb 15921ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 15922
252b5132 15923
81ecdfbb
RW
15924 case $ac_mode in
15925 :F)
15926 #
15927 # CONFIG_FILE
15928 #
9b2b7d69 15929
13b2be9c
DJ
15930 case $INSTALL in
15931 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15932 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15933 esac
15934 ac_MKDIR_P=$MKDIR_P
15935 case $MKDIR_P in
15936 [\\/$]* | ?:[\\/]* ) ;;
15937 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 15938 esac
81ecdfbb 15939_ACEOF
9b2b7d69 15940
81ecdfbb
RW
15941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15942# If the template does not know about datarootdir, expand it.
15943# FIXME: This hack should be removed a few years after 2.60.
15944ac_datarootdir_hack=; ac_datarootdir_seen=
15945ac_sed_dataroot='
15946/datarootdir/ {
15947 p
15948 q
15949}
15950/@datadir@/p
15951/@docdir@/p
15952/@infodir@/p
15953/@localedir@/p
15954/@mandir@/p'
15955case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15956*datarootdir*) ac_datarootdir_seen=yes;;
15957*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15959$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15960_ACEOF
15961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962 ac_datarootdir_hack='
15963 s&@datadir@&$datadir&g
15964 s&@docdir@&$docdir&g
15965 s&@infodir@&$infodir&g
15966 s&@localedir@&$localedir&g
15967 s&@mandir@&$mandir&g
15968 s&\\\${datarootdir}&$datarootdir&g' ;;
15969esac
13b2be9c 15970_ACEOF
81ecdfbb
RW
15971
15972# Neutralize VPATH when `$srcdir' = `.'.
15973# Shell code in configure.ac might set extrasub.
15974# FIXME: do we really want to maintain this feature?
15975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976ac_sed_extra="$ac_vpsub
13b2be9c
DJ
15977$extrasub
15978_ACEOF
81ecdfbb 15979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
15980:t
15981/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15982s|@configure_input@|$ac_sed_conf_input|;t t
15983s&@top_builddir@&$ac_top_builddir_sub&;t t
15984s&@top_build_prefix@&$ac_top_build_prefix&;t t
15985s&@srcdir@&$ac_srcdir&;t t
15986s&@abs_srcdir@&$ac_abs_srcdir&;t t
15987s&@top_srcdir@&$ac_top_srcdir&;t t
15988s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15989s&@builddir@&$ac_builddir&;t t
15990s&@abs_builddir@&$ac_abs_builddir&;t t
15991s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15992s&@INSTALL@&$ac_INSTALL&;t t
15993s&@MKDIR_P@&$ac_MKDIR_P&;t t
15994$ac_datarootdir_hack
15995"
15996eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15997 || as_fn_error "could not create $ac_file" "$LINENO" 5
15998
15999test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16000 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16003which seems to be undefined. Please make sure it is defined." >&5
16004$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16005which seems to be undefined. Please make sure it is defined." >&2;}
16006
16007 rm -f "$tmp/stdin"
13b2be9c 16008 case $ac_file in
81ecdfbb
RW
16009 -) cat "$tmp/out" && rm -f "$tmp/out";;
16010 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16011 esac \
16012 || as_fn_error "could not create $ac_file" "$LINENO" 5
16013 ;;
16014 :H)
16015 #
16016 # CONFIG_HEADER
16017 #
13b2be9c 16018 if test x"$ac_file" != x-; then
81ecdfbb
RW
16019 {
16020 $as_echo "/* $configure_input */" \
16021 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16022 } >"$tmp/config.h" \
16023 || as_fn_error "could not create $ac_file" "$LINENO" 5
16024 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16026$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 16027 else
81ecdfbb
RW
16028 rm -f "$ac_file"
16029 mv "$tmp/config.h" "$ac_file" \
16030 || as_fn_error "could not create $ac_file" "$LINENO" 5
9b2b7d69 16031 fi
13b2be9c 16032 else
81ecdfbb
RW
16033 $as_echo "/* $configure_input */" \
16034 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16035 || as_fn_error "could not create -" "$LINENO" 5
9b2b7d69 16036 fi
81ecdfbb
RW
16037# Compute "$ac_file"'s index in $config_headers.
16038_am_arg="$ac_file"
13b2be9c
DJ
16039_am_stamp_count=1
16040for _am_header in $config_headers :; do
16041 case $_am_header in
81ecdfbb 16042 $_am_arg | $_am_arg:* )
13b2be9c
DJ
16043 break ;;
16044 * )
16045 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16046 esac
16047done
81ecdfbb
RW
16048echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16049$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16050 X"$_am_arg" : 'X\(//\)[^/]' \| \
16051 X"$_am_arg" : 'X\(//\)$' \| \
16052 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16053$as_echo X"$_am_arg" |
16054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16055 s//\1/
16056 q
16057 }
16058 /^X\(\/\/\)[^/].*/{
16059 s//\1/
16060 q
16061 }
16062 /^X\(\/\/\)$/{
16063 s//\1/
16064 q
16065 }
16066 /^X\(\/\).*/{
16067 s//\1/
16068 q
16069 }
16070 s/.*/./; q'`/stamp-h$_am_stamp_count
16071 ;;
ab509236 16072
81ecdfbb
RW
16073 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16074$as_echo "$as_me: executing $ac_file commands" >&6;}
16075 ;;
16076 esac
13b2be9c
DJ
16077
16078
81ecdfbb
RW
16079 case $ac_file$ac_mode in
16080 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16081 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16082 # are listed without --file. Let's play safe and only enable the eval
16083 # if we detect the quoting.
16084 case $CONFIG_FILES in
16085 *\'*) eval set x "$CONFIG_FILES" ;;
16086 *) set x $CONFIG_FILES ;;
16087 esac
16088 shift
16089 for mf
16090 do
16091 # Strip MF so we end up with the name of the file.
16092 mf=`echo "$mf" | sed -e 's/:.*$//'`
16093 # Check whether this is an Automake generated Makefile or not.
16094 # We used to match only the files named `Makefile.in', but
16095 # some people rename them; so instead we look at the file content.
16096 # Grep'ing the first line is not enough: some people post-process
16097 # each Makefile.in and add a new line on top of each file to say so.
16098 # Grep'ing the whole file is not good either: AIX grep has a line
16099 # limit of 2048, but all sed's we know have understand at least 4000.
16100 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16101 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 16102$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16103 X"$mf" : 'X\(//\)[^/]' \| \
16104 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16105 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16106$as_echo X"$mf" |
16107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16108 s//\1/
16109 q
16110 }
16111 /^X\(\/\/\)[^/].*/{
16112 s//\1/
16113 q
16114 }
16115 /^X\(\/\/\)$/{
16116 s//\1/
16117 q
16118 }
16119 /^X\(\/\).*/{
16120 s//\1/
16121 q
16122 }
16123 s/.*/./; q'`
16124 else
16125 continue
16126 fi
16127 # Extract the definition of DEPDIR, am__include, and am__quote
16128 # from the Makefile without running `make'.
16129 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16130 test -z "$DEPDIR" && continue
16131 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16132 test -z "am__include" && continue
16133 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16134 # When using ansi2knr, U may be empty or an underscore; expand it
16135 U=`sed -n 's/^U = //p' < "$mf"`
16136 # Find all dependency output files, they are included files with
16137 # $(DEPDIR) in their names. We invoke sed twice because it is the
16138 # simplest approach to changing $(DEPDIR) to its actual value in the
16139 # expansion.
16140 for file in `sed -n "
16141 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16142 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16143 # Make sure the directory exists.
16144 test -f "$dirpart/$file" && continue
16145 fdir=`$as_dirname -- "$file" ||
13b2be9c 16146$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16147 X"$file" : 'X\(//\)[^/]' \| \
16148 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16149 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16150$as_echo X"$file" |
16151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16152 s//\1/
16153 q
16154 }
16155 /^X\(\/\/\)[^/].*/{
16156 s//\1/
16157 q
16158 }
16159 /^X\(\/\/\)$/{
16160 s//\1/
16161 q
16162 }
16163 /^X\(\/\).*/{
16164 s//\1/
16165 q
16166 }
16167 s/.*/./; q'`
16168 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16169 # echo "creating $dirpart/$file"
16170 echo '# dummy' > "$dirpart/$file"
13b2be9c 16171 done
13b2be9c 16172 done
81ecdfbb 16173}
d7040cdb 16174 ;;
81ecdfbb 16175 "libtool":C)
d7040cdb
SE
16176
16177 # See if we are running on zsh, and set the options which allow our
16178 # commands through without removal of \ escapes.
16179 if test -n "${ZSH_VERSION+set}" ; then
16180 setopt NO_GLOB_SUBST
16181 fi
16182
16183 cfgfile="${ofile}T"
16184 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16185 $RM "$cfgfile"
16186
16187 cat <<_LT_EOF >> "$cfgfile"
16188#! $SHELL
16189
16190# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16191# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16192# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16193# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16194#
718a6fd8 16195# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16196# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16197# Written by Gordon Matzigkeit, 1996
d7040cdb 16198#
718a6fd8 16199# This file is part of GNU Libtool.
d7040cdb 16200#
718a6fd8
SE
16201# GNU Libtool is free software; you can redistribute it and/or
16202# modify it under the terms of the GNU General Public License as
16203# published by the Free Software Foundation; either version 2 of
16204# the License, or (at your option) any later version.
d7040cdb 16205#
718a6fd8
SE
16206# As a special exception to the GNU General Public License,
16207# if you distribute this file as part of a program or library that
16208# is built using GNU Libtool, you may include this file under the
16209# same distribution terms that you use for the rest of that program.
d7040cdb 16210#
718a6fd8
SE
16211# GNU Libtool is distributed in the hope that it will be useful,
16212# but WITHOUT ANY WARRANTY; without even the implied warranty of
16213# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16214# GNU General Public License for more details.
d7040cdb 16215#
718a6fd8
SE
16216# You should have received a copy of the GNU General Public License
16217# along with GNU Libtool; see the file COPYING. If not, a copy
16218# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16219# obtained by writing to the Free Software Foundation, Inc.,
16220# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16221
16222
16223# The names of the tagged configurations supported by this script.
16224available_tags=""
16225
16226# ### BEGIN LIBTOOL CONFIG
16227
16228# Which release of libtool.m4 was used?
16229macro_version=$macro_version
16230macro_revision=$macro_revision
16231
16232# Whether or not to build shared libraries.
16233build_libtool_libs=$enable_shared
16234
16235# Whether or not to build static libraries.
16236build_old_libs=$enable_static
16237
16238# What type of objects to build.
16239pic_mode=$pic_mode
16240
16241# Whether or not to optimize for fast installation.
16242fast_install=$enable_fast_install
16243
3725885a
RW
16244# Shell to use when invoking shell scripts.
16245SHELL=$lt_SHELL
16246
16247# An echo program that protects backslashes.
16248ECHO=$lt_ECHO
16249
d7040cdb
SE
16250# The host system.
16251host_alias=$host_alias
16252host=$host
16253host_os=$host_os
16254
16255# The build system.
16256build_alias=$build_alias
16257build=$build
16258build_os=$build_os
16259
16260# A sed program that does not truncate output.
16261SED=$lt_SED
16262
16263# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16264Xsed="\$SED -e 1s/^X//"
16265
16266# A grep program that handles long lines.
16267GREP=$lt_GREP
16268
16269# An ERE matcher.
16270EGREP=$lt_EGREP
16271
16272# A literal string matcher.
16273FGREP=$lt_FGREP
16274
16275# A BSD- or MS-compatible name lister.
16276NM=$lt_NM
16277
16278# Whether we need soft or hard links.
16279LN_S=$lt_LN_S
16280
16281# What is the maximum length of a command?
16282max_cmd_len=$max_cmd_len
16283
16284# Object file suffix (normally "o").
16285objext=$ac_objext
16286
16287# Executable file suffix (normally "").
16288exeext=$exeext
16289
16290# whether the shell understands "unset".
16291lt_unset=$lt_unset
16292
16293# turn spaces into newlines.
16294SP2NL=$lt_lt_SP2NL
16295
16296# turn newlines into spaces.
16297NL2SP=$lt_lt_NL2SP
16298
718a6fd8
SE
16299# An object symbol dumper.
16300OBJDUMP=$lt_OBJDUMP
16301
d7040cdb
SE
16302# Method to check whether dependent libraries are shared objects.
16303deplibs_check_method=$lt_deplibs_check_method
16304
f2c621e4 16305# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16306file_magic_cmd=$lt_file_magic_cmd
16307
16308# The archiver.
16309AR=$lt_AR
16310AR_FLAGS=$lt_AR_FLAGS
16311
16312# A symbol stripping program.
16313STRIP=$lt_STRIP
16314
16315# Commands used to install an old-style archive.
16316RANLIB=$lt_RANLIB
16317old_postinstall_cmds=$lt_old_postinstall_cmds
16318old_postuninstall_cmds=$lt_old_postuninstall_cmds
16319
3725885a
RW
16320# Whether to use a lock for old archive extraction.
16321lock_old_archive_extraction=$lock_old_archive_extraction
16322
d7040cdb
SE
16323# A C compiler.
16324LTCC=$lt_CC
16325
16326# LTCC compiler flags.
16327LTCFLAGS=$lt_CFLAGS
16328
16329# Take the output of nm and produce a listing of raw symbols and C names.
16330global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16331
16332# Transform the output of nm in a proper C declaration.
16333global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16334
16335# Transform the output of nm in a C name address pair.
16336global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16337
718a6fd8
SE
16338# Transform the output of nm in a C name address pair when lib prefix is needed.
16339global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16340
d7040cdb
SE
16341# The name of the directory that contains temporary libtool files.
16342objdir=$objdir
16343
d7040cdb
SE
16344# Used to examine libraries when file_magic_cmd begins with "file".
16345MAGIC_CMD=$MAGIC_CMD
16346
16347# Must we lock files when doing compilation?
16348need_locks=$lt_need_locks
16349
718a6fd8
SE
16350# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16351DSYMUTIL=$lt_DSYMUTIL
16352
16353# Tool to change global to local symbols on Mac OS X.
16354NMEDIT=$lt_NMEDIT
16355
16356# Tool to manipulate fat objects and archives on Mac OS X.
16357LIPO=$lt_LIPO
16358
16359# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16360OTOOL=$lt_OTOOL
16361
16362# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16363OTOOL64=$lt_OTOOL64
16364
d7040cdb
SE
16365# Old archive suffix (normally "a").
16366libext=$libext
16367
16368# Shared library suffix (normally ".so").
16369shrext_cmds=$lt_shrext_cmds
16370
16371# The commands to extract the exported symbol list from a shared archive.
16372extract_expsyms_cmds=$lt_extract_expsyms_cmds
16373
16374# Variables whose values should be saved in libtool wrapper scripts and
16375# restored at link time.
16376variables_saved_for_relink=$lt_variables_saved_for_relink
16377
16378# Do we need the "lib" prefix for modules?
16379need_lib_prefix=$need_lib_prefix
16380
16381# Do we need a version for libraries?
16382need_version=$need_version
16383
16384# Library versioning type.
16385version_type=$version_type
16386
16387# Shared library runtime path variable.
16388runpath_var=$runpath_var
16389
16390# Shared library path variable.
16391shlibpath_var=$shlibpath_var
16392
16393# Is shlibpath searched before the hard-coded library search path?
16394shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16395
16396# Format of library name prefix.
16397libname_spec=$lt_libname_spec
16398
16399# List of archive names. First name is the real one, the rest are links.
16400# The last name is the one that the linker finds with -lNAME
16401library_names_spec=$lt_library_names_spec
16402
16403# The coded name of the library, if different from the real name.
16404soname_spec=$lt_soname_spec
16405
3725885a
RW
16406# Permission mode override for installation of shared libraries.
16407install_override_mode=$lt_install_override_mode
16408
d7040cdb
SE
16409# Command to use after installation of a shared archive.
16410postinstall_cmds=$lt_postinstall_cmds
16411
16412# Command to use after uninstallation of a shared archive.
16413postuninstall_cmds=$lt_postuninstall_cmds
16414
16415# Commands used to finish a libtool library installation in a directory.
16416finish_cmds=$lt_finish_cmds
16417
16418# As "finish_cmds", except a single script fragment to be evaled but
16419# not shown.
16420finish_eval=$lt_finish_eval
16421
16422# Whether we should hardcode library paths into libraries.
16423hardcode_into_libs=$hardcode_into_libs
16424
16425# Compile-time system search path for libraries.
16426sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16427
16428# Run-time system search path for libraries.
16429sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16430
16431# Whether dlopen is supported.
16432dlopen_support=$enable_dlopen
16433
16434# Whether dlopen of programs is supported.
16435dlopen_self=$enable_dlopen_self
16436
16437# Whether dlopen of statically linked programs is supported.
16438dlopen_self_static=$enable_dlopen_self_static
16439
16440# Commands to strip libraries.
16441old_striplib=$lt_old_striplib
16442striplib=$lt_striplib
16443
16444
16445# The linker used to build libraries.
16446LD=$lt_LD
16447
3725885a
RW
16448# How to create reloadable object files.
16449reload_flag=$lt_reload_flag
16450reload_cmds=$lt_reload_cmds
16451
d7040cdb
SE
16452# Commands used to build an old-style archive.
16453old_archive_cmds=$lt_old_archive_cmds
16454
16455# A language specific compiler.
16456CC=$lt_compiler
16457
16458# Is the compiler the GNU compiler?
16459with_gcc=$GCC
16460
16461# Compiler flag to turn off builtin functions.
16462no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16463
df7b86aa
NC
16464# How to pass a linker flag through the compiler.
16465wl=$lt_lt_prog_compiler_wl
16466
f2c621e4
AS
16467# Additional compiler flags for building library objects.
16468pic_flag=$lt_lt_prog_compiler_pic
16469
d7040cdb
SE
16470# Compiler flag to prevent dynamic linking.
16471link_static_flag=$lt_lt_prog_compiler_static
16472
16473# Does compiler simultaneously support -c and -o options?
16474compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16475
16476# Whether or not to add -lc for building shared libraries.
16477build_libtool_need_lc=$archive_cmds_need_lc
16478
16479# Whether or not to disallow shared libs when runtime libs are static.
16480allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16481
16482# Compiler flag to allow reflexive dlopens.
16483export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16484
16485# Compiler flag to generate shared objects directly from archives.
16486whole_archive_flag_spec=$lt_whole_archive_flag_spec
16487
16488# Whether the compiler copes with passing no objects directly.
16489compiler_needs_object=$lt_compiler_needs_object
16490
16491# Create an old-style archive from a shared archive.
16492old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16493
16494# Create a temporary old-style archive to link instead of a shared archive.
16495old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16496
16497# Commands used to build a shared archive.
16498archive_cmds=$lt_archive_cmds
16499archive_expsym_cmds=$lt_archive_expsym_cmds
16500
16501# Commands used to build a loadable module if different from building
16502# a shared archive.
16503module_cmds=$lt_module_cmds
16504module_expsym_cmds=$lt_module_expsym_cmds
16505
16506# Whether we are building with GNU ld or not.
16507with_gnu_ld=$lt_with_gnu_ld
16508
16509# Flag that allows shared libraries with undefined symbols to be built.
16510allow_undefined_flag=$lt_allow_undefined_flag
16511
16512# Flag that enforces no undefined symbols.
16513no_undefined_flag=$lt_no_undefined_flag
16514
16515# Flag to hardcode \$libdir into a binary during linking.
16516# This must work even if \$libdir does not exist
16517hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16518
16519# If ld is used when linking, flag to hardcode \$libdir into a binary
16520# during linking. This must work even if \$libdir does not exist.
16521hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16522
16523# Whether we need a single "-rpath" flag with a separated argument.
16524hardcode_libdir_separator=$lt_hardcode_libdir_separator
16525
16526# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16527# DIR into the resulting binary.
16528hardcode_direct=$hardcode_direct
16529
16530# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16531# DIR into the resulting binary and the resulting library dependency is
16532# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16533# library is relocated.
16534hardcode_direct_absolute=$hardcode_direct_absolute
16535
16536# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16537# into the resulting binary.
16538hardcode_minus_L=$hardcode_minus_L
16539
16540# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16541# into the resulting binary.
16542hardcode_shlibpath_var=$hardcode_shlibpath_var
16543
16544# Set to "yes" if building a shared library automatically hardcodes DIR
16545# into the library and all subsequent libraries and executables linked
16546# against it.
16547hardcode_automatic=$hardcode_automatic
16548
16549# Set to yes if linker adds runtime paths of dependent libraries
16550# to runtime path list.
16551inherit_rpath=$inherit_rpath
16552
16553# Whether libtool must link a program against all its dependency libraries.
16554link_all_deplibs=$link_all_deplibs
16555
f2c621e4
AS
16556# Fix the shell variable \$srcfile for the compiler.
16557fix_srcfile_path=$lt_fix_srcfile_path
16558
d7040cdb
SE
16559# Set to "yes" if exported symbols are required.
16560always_export_symbols=$always_export_symbols
16561
16562# The commands to list exported symbols.
16563export_symbols_cmds=$lt_export_symbols_cmds
16564
16565# Symbols that should not be listed in the preloaded symbols.
16566exclude_expsyms=$lt_exclude_expsyms
16567
16568# Symbols that must always be exported.
16569include_expsyms=$lt_include_expsyms
16570
16571# Commands necessary for linking programs (against libraries) with templates.
16572prelink_cmds=$lt_prelink_cmds
16573
16574# Specify filename containing input files.
16575file_list_spec=$lt_file_list_spec
16576
16577# How to hardcode a shared library path into an executable.
16578hardcode_action=$hardcode_action
16579
16580# ### END LIBTOOL CONFIG
16581
16582_LT_EOF
16583
16584 case $host_os in
16585 aix3*)
16586 cat <<\_LT_EOF >> "$cfgfile"
16587# AIX sometimes has problems with the GCC collect2 program. For some
16588# reason, if we set the COLLECT_NAMES environment variable, the problems
16589# vanish in a puff of smoke.
16590if test "X${COLLECT_NAMES+set}" != Xset; then
16591 COLLECT_NAMES=
16592 export COLLECT_NAMES
16593fi
16594_LT_EOF
16595 ;;
16596 esac
16597
16598
16599ltmain="$ac_aux_dir/ltmain.sh"
16600
16601
16602 # We use sed instead of cat because bash on DJGPP gets confused if
16603 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16604 # text mode, it properly converts lines to CR/LF. This bash problem
16605 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16606 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16607 || (rm -f "$cfgfile"; exit 1)
16608
16609 case $xsi_shell in
16610 yes)
16611 cat << \_LT_EOF >> "$cfgfile"
16612
16613# func_dirname file append nondir_replacement
16614# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16615# otherwise set result to NONDIR_REPLACEMENT.
16616func_dirname ()
16617{
16618 case ${1} in
16619 */*) func_dirname_result="${1%/*}${2}" ;;
16620 * ) func_dirname_result="${3}" ;;
16621 esac
16622}
16623
16624# func_basename file
16625func_basename ()
16626{
16627 func_basename_result="${1##*/}"
16628}
16629
16630# func_dirname_and_basename file append nondir_replacement
16631# perform func_basename and func_dirname in a single function
16632# call:
16633# dirname: Compute the dirname of FILE. If nonempty,
16634# add APPEND to the result, otherwise set result
16635# to NONDIR_REPLACEMENT.
16636# value returned in "$func_dirname_result"
16637# basename: Compute filename of FILE.
16638# value retuned in "$func_basename_result"
16639# Implementation must be kept synchronized with func_dirname
16640# and func_basename. For efficiency, we do not delegate to
16641# those functions but instead duplicate the functionality here.
16642func_dirname_and_basename ()
16643{
16644 case ${1} in
16645 */*) func_dirname_result="${1%/*}${2}" ;;
16646 * ) func_dirname_result="${3}" ;;
16647 esac
16648 func_basename_result="${1##*/}"
16649}
16650
16651# func_stripname prefix suffix name
16652# strip PREFIX and SUFFIX off of NAME.
16653# PREFIX and SUFFIX must not contain globbing or regex special
16654# characters, hashes, percent signs, but SUFFIX may contain a leading
16655# dot (in which case that matches only a dot).
16656func_stripname ()
16657{
16658 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16659 # positional parameters, so assign one to ordinary parameter first.
16660 func_stripname_result=${3}
16661 func_stripname_result=${func_stripname_result#"${1}"}
16662 func_stripname_result=${func_stripname_result%"${2}"}
16663}
16664
16665# func_opt_split
16666func_opt_split ()
16667{
16668 func_opt_split_opt=${1%%=*}
16669 func_opt_split_arg=${1#*=}
16670}
16671
16672# func_lo2o object
16673func_lo2o ()
16674{
16675 case ${1} in
16676 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16677 *) func_lo2o_result=${1} ;;
16678 esac
16679}
16680
16681# func_xform libobj-or-source
16682func_xform ()
16683{
16684 func_xform_result=${1%.*}.lo
16685}
16686
16687# func_arith arithmetic-term...
16688func_arith ()
16689{
16690 func_arith_result=$(( $* ))
16691}
16692
16693# func_len string
16694# STRING may not start with a hyphen.
16695func_len ()
16696{
16697 func_len_result=${#1}
16698}
16699
16700_LT_EOF
16701 ;;
16702 *) # Bourne compatible functions.
16703 cat << \_LT_EOF >> "$cfgfile"
16704
16705# func_dirname file append nondir_replacement
16706# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16707# otherwise set result to NONDIR_REPLACEMENT.
16708func_dirname ()
16709{
16710 # Extract subdirectory from the argument.
16711 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16712 if test "X$func_dirname_result" = "X${1}"; then
16713 func_dirname_result="${3}"
16714 else
16715 func_dirname_result="$func_dirname_result${2}"
16716 fi
16717}
16718
16719# func_basename file
16720func_basename ()
16721{
16722 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16723}
16724
16725
16726# func_stripname prefix suffix name
16727# strip PREFIX and SUFFIX off of NAME.
16728# PREFIX and SUFFIX must not contain globbing or regex special
16729# characters, hashes, percent signs, but SUFFIX may contain a leading
16730# dot (in which case that matches only a dot).
16731# func_strip_suffix prefix name
16732func_stripname ()
16733{
16734 case ${2} in
16735 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16736 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16737 esac
16738}
16739
16740# sed scripts:
16741my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16742my_sed_long_arg='1s/^-[^=]*=//'
16743
16744# func_opt_split
16745func_opt_split ()
16746{
16747 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16748 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16749}
16750
16751# func_lo2o object
16752func_lo2o ()
16753{
16754 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16755}
16756
16757# func_xform libobj-or-source
16758func_xform ()
16759{
16760 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16761}
16762
16763# func_arith arithmetic-term...
16764func_arith ()
16765{
16766 func_arith_result=`expr "$@"`
16767}
16768
16769# func_len string
16770# STRING may not start with a hyphen.
16771func_len ()
16772{
16773 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16774}
16775
16776_LT_EOF
16777esac
16778
16779case $lt_shell_append in
16780 yes)
16781 cat << \_LT_EOF >> "$cfgfile"
16782
16783# func_append var value
16784# Append VALUE to the end of shell variable VAR.
16785func_append ()
16786{
16787 eval "$1+=\$2"
16788}
16789_LT_EOF
16790 ;;
16791 *)
16792 cat << \_LT_EOF >> "$cfgfile"
16793
16794# func_append var value
16795# Append VALUE to the end of shell variable VAR.
16796func_append ()
16797{
16798 eval "$1=\$$1\$2"
16799}
16800
16801_LT_EOF
16802 ;;
16803 esac
16804
16805
16806 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16807 || (rm -f "$cfgfile"; exit 1)
16808
16809 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
16810 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16811 chmod +x "$ofile"
16812
13b2be9c 16813 ;;
81ecdfbb 16814 "default-1":C)
20e95c23
DJ
16815 for ac_file in $CONFIG_FILES; do
16816 # Support "outfile[:infile[:infile...]]"
16817 case "$ac_file" in
16818 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16819 esac
16820 # PO directories have a Makefile.in generated from Makefile.in.in.
16821 case "$ac_file" in */Makefile.in)
16822 # Adjust a relative srcdir.
16823 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 16824 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
16825 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16826 # In autoconf-2.13 it is called $ac_given_srcdir.
16827 # In autoconf-2.50 it is called $srcdir.
16828 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16829 case "$ac_given_srcdir" in
16830 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16831 /*) top_srcdir="$ac_given_srcdir" ;;
16832 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16833 esac
16834 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16835 rm -f "$ac_dir/POTFILES"
16836 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16837 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16838 POMAKEFILEDEPS="POTFILES.in"
16839 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16840 # on $ac_dir but don't depend on user-specified configuration
16841 # parameters.
16842 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16843 # The LINGUAS file contains the set of available languages.
16844 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 16845 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
16846 fi
16847 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16848 # Hide the ALL_LINGUAS assigment from automake.
16849 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16850 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16851 else
37a42ee9 16852 # The set of available languages was given in configure.ac.
20e95c23
DJ
16853 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16854 fi
16855 case "$ac_given_srcdir" in
16856 .) srcdirpre= ;;
16857 *) srcdirpre='$(srcdir)/' ;;
16858 esac
16859 POFILES=
16860 GMOFILES=
16861 UPDATEPOFILES=
16862 DUMMYPOFILES=
16863 for lang in $ALL_LINGUAS; do
16864 POFILES="$POFILES $srcdirpre$lang.po"
16865 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16866 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16867 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16868 done
16869 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16870 # environment variable.
16871 INST_LINGUAS=
16872 if test -n "$ALL_LINGUAS"; then
16873 for presentlang in $ALL_LINGUAS; do
16874 useit=no
16875 if test "%UNSET%" != "$LINGUAS"; then
16876 desiredlanguages="$LINGUAS"
16877 else
16878 desiredlanguages="$ALL_LINGUAS"
16879 fi
16880 for desiredlang in $desiredlanguages; do
16881 # Use the presentlang catalog if desiredlang is
16882 # a. equal to presentlang, or
16883 # b. a variant of presentlang (because in this case,
16884 # presentlang can be used as a fallback for messages
16885 # which are not translated in the desiredlang catalog).
16886 case "$desiredlang" in
16887 "$presentlang"*) useit=yes;;
16888 esac
16889 done
16890 if test $useit = yes; then
16891 INST_LINGUAS="$INST_LINGUAS $presentlang"
16892 fi
16893 done
16894 fi
16895 CATALOGS=
16896 if test -n "$INST_LINGUAS"; then
16897 for lang in $INST_LINGUAS; do
16898 CATALOGS="$CATALOGS $lang.gmo"
16899 done
16900 fi
16901 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16902 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"
16903 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16904 if test -f "$f"; then
16905 case "$f" in
16906 *.orig | *.bak | *~) ;;
16907 *) cat "$f" >> "$ac_dir/Makefile" ;;
16908 esac
16909 fi
16910 done
16911 fi
16912 ;;
16913 esac
16914 done ;;
81ecdfbb 16915 "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
16916 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16917 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16918 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16919 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16920 if test "x$cgen_cpu_prefix" != x ; then
16921 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16922 fi ;;
81ecdfbb 16923
13b2be9c 16924 esac
81ecdfbb 16925done # for ac_tag
13b2be9c 16926
13b2be9c 16927
81ecdfbb 16928as_fn_exit 0
13b2be9c 16929_ACEOF
13b2be9c
DJ
16930ac_clean_files=$ac_clean_files_save
16931
81ecdfbb
RW
16932test $ac_write_fail = 0 ||
16933 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16934
13b2be9c
DJ
16935
16936# configure is writing to config.log, and then calls config.status.
16937# config.status does its own redirection, appending to config.log.
16938# Unfortunately, on DOS this fails, as config.log is still kept open
16939# by configure, so config.status won't be able to write to it; its
16940# output is simply discarded. So we exec the FD to /dev/null,
16941# effectively closing config.log, so it can be properly (re)opened and
16942# appended to by config.status. When coming back to configure, we
16943# need to make the FD available again.
16944if test "$no_create" != yes; then
16945 ac_cs_success=:
16946 ac_config_status_args=
16947 test "$silent" = yes &&
16948 ac_config_status_args="$ac_config_status_args --quiet"
16949 exec 5>/dev/null
16950 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16951 exec 5>>config.log
16952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16953 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16954 $ac_cs_success || as_fn_exit $?
16955fi
16956if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16958$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 16959fi
252b5132 16960
This page took 2.113901 seconds and 4 git commands to generate.