]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/configure
cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace --enable-cet=default with...
[thirdparty/gcc.git] / libobjc / configure
CommitLineData
bce1b489 1#! /bin/sh
bce1b489 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
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.
bce1b489
BE
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
88386050 14
5213506e
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 :
88386050
NN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
88386050
NN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
88386050 31fi
88386050 32
5213506e
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 }
88386050
NN
79fi
80
81
5213506e
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
88386050
NN
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
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
43e02a8a
RW
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
5213506e
RW
180test \$(( 1 + 1 )) = 2 || exit 1"
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
88386050 192do
5213506e
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."
88386050 236 else
5213506e
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."
88386050 241 fi
5213506e
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
88386050 363
5213506e
RW
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
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
88386050
NN
383 as_expr=expr
384else
385 as_expr=false
386fi
387
5213506e 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
88386050
NN
389 as_basename=basename
390else
391 as_basename=false
392fi
393
5213506e
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
88386050 399
5213506e 400as_me=`$as_basename -- "$0" ||
88386050
NN
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
5213506e
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'`
88386050 418
88386050
NN
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
88386050 426
5213506e
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 |
88386050 436 sed '
5213506e
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
88386050 441 N
5213506e
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
88386050 444 t loop
5213506e 445 s/-\n.*//
88386050 446 ' >$as_me.lineno &&
5213506e
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; }
88386050
NN
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
5213506e
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
88386050
NN
454 # Exit status is that of the last command.
455 exit
456}
457
5213506e
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';;
88386050
NN
469esac
470
5213506e
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
88386050 474else
5213506e
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
88386050 477fi
5213506e
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
88386050 480 as_ln_s='ln -s'
5213506e
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'
88386050 491 fi
88386050
NN
492else
493 as_ln_s='cp -p'
494fi
5213506e
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
88386050
NN
497
498if mkdir -p . 2>/dev/null; then
5213506e 499 as_mkdir_p='mkdir -p "$as_dir"'
88386050
NN
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
5213506e
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
88386050
NN
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
1cf3d07d
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
1cf3d07d 536
5213506e
RW
537exec 7<&0 </dev/null 6>&1
538
88386050
NN
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`
543
88386050
NN
544#
545# Initializations.
546#
bce1b489 547ac_default_prefix=/usr/local
5213506e 548ac_clean_files=
88386050 549ac_config_libobj_dir=.
5213506e 550LIBOBJS=
88386050
NN
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
88386050
NN
555
556# Identity of this package.
684c64bf
AP
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libobjc'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
5213506e 562PACKAGE_URL=''
88386050
NN
563
564ac_unique_file="objc/objc.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
5213506e 568#ifdef HAVE_SYS_TYPES_H
88386050
NN
569# include <sys/types.h>
570#endif
5213506e 571#ifdef HAVE_SYS_STAT_H
88386050
NN
572# include <sys/stat.h>
573#endif
5213506e 574#ifdef STDC_HEADERS
88386050
NN
575# include <stdlib.h>
576# include <stddef.h>
577#else
5213506e 578# ifdef HAVE_STDLIB_H
88386050
NN
579# include <stdlib.h>
580# endif
581#endif
5213506e
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
88386050
NN
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
5213506e 588#ifdef HAVE_STRINGS_H
88386050
NN
589# include <strings.h>
590#endif
5213506e 591#ifdef HAVE_INTTYPES_H
88386050 592# include <inttypes.h>
88386050 593#endif
5213506e
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
88386050
NN
598# include <unistd.h>
599#endif"
600
5213506e
RW
601ac_subst_vars='LTLIBOBJS
602LIBOBJS
3c36aa6b 603get_gcc_base_ver
114bf3f1
MK
604OBJC_BOEHM_GC_LIBS
605OBJC_BOEHM_GC_INCLUDES
606OBJC_BOEHM_GC
607OBJC_GCFLAGS
5213506e
RW
608SET_MAKE
609CPP
610OTOOL64
611OTOOL
612LIPO
613NMEDIT
614DSYMUTIL
43e02a8a 615AWK
5213506e
RW
616STRIP
617LN_S
618NM
619ac_ct_DUMPBIN
620DUMPBIN
621LD
622FGREP
623EGREP
624GREP
625SED
626LIBTOOL
627OBJDUMP
628DLLTOOL
629MAINT
630MAINTAINER_MODE_FALSE
631MAINTAINER_MODE_TRUE
632INSTALL_DATA
633INSTALL_SCRIPT
634INSTALL_PROGRAM
635RANLIB
636AR
637AS
7b7168cf 638XCFLAGS
5213506e 639extra_ldflags_libobjc
7de6ba7a 640lt_host_flags
5213506e
RW
641OBJEXT
642EXEEXT
643ac_ct_CC
644CPPFLAGS
645LDFLAGS
646CFLAGS
647CC
648libsuffix
649includedirname
650toolexeclibdir
651toolexecdir
652glibcpp_srcdir
653target_noncanonical
654target_os
655target_vendor
656target_cpu
657target
658host_os
659host_vendor
660host_cpu
661host
662multi_basedir
5213506e
RW
663VERSION
664target_subdir
665host_subdir
666build_subdir
667build_libsubdir
668build_os
669build_vendor
670build_cpu
671build
672target_alias
673host_alias
674build_alias
675LIBS
676ECHO_T
677ECHO_N
678ECHO_C
679DEFS
680mandir
681localedir
682libdir
683psdir
684pdfdir
685dvidir
686htmldir
687infodir
688docdir
689oldincludedir
690includedir
691localstatedir
692sharedstatedir
693sysconfdir
694datadir
695datarootdir
696libexecdir
697sbindir
698bindir
699program_transform_name
700prefix
701exec_prefix
702PACKAGE_URL
703PACKAGE_BUGREPORT
704PACKAGE_STRING
705PACKAGE_VERSION
706PACKAGE_TARNAME
707PACKAGE_NAME
708PATH_SEPARATOR
709SHELL'
88386050 710ac_subst_files=''
5213506e
RW
711ac_user_opts='
712enable_option_checking
713with_build_libsubdir
714with_target_subdir
715with_cross_host
716enable_version_specific_runtime_libs
5213506e 717enable_multilib
7b7168cf 718enable_cet
5213506e
RW
719enable_maintainer_mode
720enable_shared
721enable_static
722with_pic
723enable_fast_install
724with_gnu_ld
725enable_libtool_lock
fd312537 726enable_tls
114bf3f1
MK
727enable_objc_gc
728with_target_bdw_gc
729with_target_bdw_gc_include
730with_target_bdw_gc_lib
3c36aa6b 731with_gcc_major_version_only
5213506e
RW
732'
733 ac_precious_vars='build_alias
734host_alias
735target_alias
736CPP
825fba52 737CPPFLAGS'
5213506e 738
bce1b489
BE
739
740# Initialize some variables set by options.
88386050
NN
741ac_init_help=
742ac_init_version=false
5213506e
RW
743ac_unrecognized_opts=
744ac_unrecognized_sep=
bce1b489
BE
745# The variables have the same names as the options, with
746# dashes changed to underlines.
88386050 747cache_file=/dev/null
bce1b489 748exec_prefix=NONE
bce1b489 749no_create=
bce1b489
BE
750no_recursion=
751prefix=NONE
752program_prefix=NONE
753program_suffix=NONE
754program_transform_name=s,x,x,
755silent=
756site=
757srcdir=
bce1b489
BE
758verbose=
759x_includes=NONE
760x_libraries=NONE
88386050
NN
761
762# Installation directory options.
763# These are left unexpanded so users can "make install exec_prefix=/foo"
764# and all the variables that are supposed to be based on exec_prefix
765# by default will actually change.
766# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 767# (The list follows the same order as the GNU Coding Standards.)
bce1b489
BE
768bindir='${exec_prefix}/bin'
769sbindir='${exec_prefix}/sbin'
770libexecdir='${exec_prefix}/libexec'
5213506e
RW
771datarootdir='${prefix}/share'
772datadir='${datarootdir}'
bce1b489
BE
773sysconfdir='${prefix}/etc'
774sharedstatedir='${prefix}/com'
775localstatedir='${prefix}/var'
bce1b489
BE
776includedir='${prefix}/include'
777oldincludedir='/usr/include'
5213506e
RW
778docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779infodir='${datarootdir}/info'
780htmldir='${docdir}'
781dvidir='${docdir}'
782pdfdir='${docdir}'
783psdir='${docdir}'
784libdir='${exec_prefix}/lib'
785localedir='${datarootdir}/locale'
786mandir='${datarootdir}/man'
bce1b489 787
bce1b489 788ac_prev=
5213506e 789ac_dashdash=
bce1b489
BE
790for ac_option
791do
bce1b489
BE
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
5213506e 794 eval $ac_prev=\$ac_option
bce1b489
BE
795 ac_prev=
796 continue
797 fi
798
5213506e
RW
799 case $ac_option in
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *) ac_optarg=yes ;;
802 esac
bce1b489
BE
803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
5213506e
RW
806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
bce1b489
BE
809
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88386050 813 bindir=$ac_optarg ;;
bce1b489
BE
814
815 -build | --build | --buil | --bui | --bu)
88386050 816 ac_prev=build_alias ;;
bce1b489 817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88386050 818 build_alias=$ac_optarg ;;
bce1b489
BE
819
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88386050
NN
825 cache_file=$ac_optarg ;;
826
827 --config-cache | -C)
828 cache_file=config.cache ;;
bce1b489 829
5213506e 830 -datadir | --datadir | --datadi | --datad)
bce1b489 831 ac_prev=datadir ;;
5213506e 832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
88386050 833 datadir=$ac_optarg ;;
bce1b489 834
5213506e
RW
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
841
bce1b489 842 -disable-* | --disable-*)
5213506e 843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bce1b489 844 # Reject names that are not valid shell variable names.
5213506e
RW
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851"enable_$ac_useropt"
852"*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=no ;;
857
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
862
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
bce1b489
BE
867
868 -enable-* | --enable-*)
5213506e 869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bce1b489 870 # Reject names that are not valid shell variable names.
5213506e
RW
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877"enable_$ac_useropt"
878"*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
bce1b489 881 esac
5213506e 882 eval enable_$ac_useropt=\$ac_optarg ;;
bce1b489
BE
883
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
88386050 891 exec_prefix=$ac_optarg ;;
bce1b489
BE
892
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
896
88386050
NN
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
bce1b489
BE
903
904 -host | --host | --hos | --ho)
88386050 905 ac_prev=host_alias ;;
bce1b489 906 -host=* | --host=* | --hos=* | --ho=*)
88386050 907 host_alias=$ac_optarg ;;
bce1b489 908
5213506e
RW
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
914
bce1b489
BE
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
88386050 920 includedir=$ac_optarg ;;
bce1b489
BE
921
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
88386050 925 infodir=$ac_optarg ;;
bce1b489
BE
926
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
88386050 930 libdir=$ac_optarg ;;
bce1b489
BE
931
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
88386050 937 libexecdir=$ac_optarg ;;
bce1b489 938
5213506e
RW
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
943
bce1b489 944 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 945 | --localstate | --localstat | --localsta | --localst | --locals)
bce1b489
BE
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
88386050 949 localstatedir=$ac_optarg ;;
bce1b489
BE
950
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
88386050 954 mandir=$ac_optarg ;;
bce1b489
BE
955
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
959
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
88386050 961 | --no-cr | --no-c | -n)
bce1b489
BE
962 no_create=yes ;;
963
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
967
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
88386050 975 oldincludedir=$ac_optarg ;;
bce1b489
BE
976
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
88386050 980 prefix=$ac_optarg ;;
bce1b489
BE
981
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
88386050 987 program_prefix=$ac_optarg ;;
bce1b489
BE
988
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
88386050 994 program_suffix=$ac_optarg ;;
bce1b489
BE
995
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
88386050 1011 program_transform_name=$ac_optarg ;;
bce1b489 1012
5213506e
RW
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1017
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1022
bce1b489
BE
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1026
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
88386050 1031 sbindir=$ac_optarg ;;
bce1b489
BE
1032
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
88386050 1042 sharedstatedir=$ac_optarg ;;
bce1b489
BE
1043
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
88386050 1047 site=$ac_optarg ;;
03391b53 1048
bce1b489
BE
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
88386050 1052 srcdir=$ac_optarg ;;
bce1b489
BE
1053
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
88386050 1059 sysconfdir=$ac_optarg ;;
bce1b489
BE
1060
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
88386050 1062 ac_prev=target_alias ;;
bce1b489 1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
88386050 1064 target_alias=$ac_optarg ;;
bce1b489
BE
1065
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1068
88386050
NN
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
bce1b489
BE
1071
1072 -with-* | --with-*)
5213506e 1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bce1b489 1074 # Reject names that are not valid shell variable names.
5213506e
RW
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081"with_$ac_useropt"
1082"*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
bce1b489 1085 esac
5213506e 1086 eval with_$ac_useropt=\$ac_optarg ;;
bce1b489
BE
1087
1088 -without-* | --without-*)
5213506e 1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bce1b489 1090 # Reject names that are not valid shell variable names.
5213506e
RW
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"with_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
bce1b489
BE
1103
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1107
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
88386050 1113 x_includes=$ac_optarg ;;
bce1b489
BE
1114
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
88386050 1120 x_libraries=$ac_optarg ;;
bce1b489 1121
5213506e
RW
1122 -*) as_fn_error "unrecognized option: \`$ac_option'
1123Try \`$0 --help' for more information."
bce1b489
BE
1124 ;;
1125
88386050
NN
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
5213506e
RW
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1132 esac
1133 eval $ac_envvar=\$ac_optarg
88386050
NN
1134 export $ac_envvar ;;
1135
162f5967 1136 *)
88386050 1137 # FIXME: should be removed in autoconf 3.0.
5213506e 1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
88386050 1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
88386050 1141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
bce1b489
BE
1142 ;;
1143
1144 esac
1145done
1146
1147if test -n "$ac_prev"; then
88386050 1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1149 as_fn_error "missing argument to $ac_option"
bce1b489
BE
1150fi
1151
5213506e
RW
1152if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
1155 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
88386050 1157 esac
5213506e 1158fi
03391b53 1159
5213506e
RW
1160# Check all directory arguments for consistency.
1161for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
03391b53 1165do
5213506e
RW
1166 eval ac_val=\$$ac_var
1167 # Remove trailing slashes.
1168 case $ac_val in
1169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1172 esac
1173 # Be sure to have absolute directory names.
88386050 1174 case $ac_val in
5213506e
RW
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
03391b53 1177 esac
5213506e 1178 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
03391b53 1179done
bce1b489 1180
88386050
NN
1181# There might be people who depend on the old broken behavior: `$host'
1182# used to hold the argument of --host etc.
1183# FIXME: To remove some day.
1184build=$build_alias
1185host=$host_alias
1186target=$target_alias
1187
1188# FIXME: To remove some day.
1189if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
5213506e 1192 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
88386050
NN
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1196 fi
1197fi
bce1b489 1198
88386050
NN
1199ac_tool_prefix=
1200test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202test "$silent" = yes && exec 6>/dev/null
bce1b489 1203
03391b53 1204
5213506e
RW
1205ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206ac_ls_di=`ls -di .` &&
1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error "working directory cannot be determined"
1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error "pwd does not report name of working directory"
1211
1212
03391b53
AO
1213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
5213506e
RW
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222$as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
03391b53 1240 srcdir=$ac_confdir
5213506e 1241 if test ! -r "$srcdir/$ac_unique_file"; then
03391b53
AO
1242 srcdir=..
1243 fi
1244else
1245 ac_srcdir_defaulted=no
1246fi
5213506e
RW
1247if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1250fi
1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1254 pwd)`
1255# When building in place, set srcdir=.
1256if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1258fi
1259# Remove unnecessary trailing slashes from srcdir.
1260# Double slashes in file names in object file debugging info
1261# mess up M-x gdb in Emacs.
1262case $srcdir in
1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264esac
1265for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270done
03391b53 1271
88386050
NN
1272#
1273# Report the --help message.
1274#
1275if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
684c64bf 1279\`configure' configures package-unused version-unused to adapt to many kinds of systems.
bce1b489 1280
88386050 1281Usage: $0 [OPTION]... [VAR=VALUE]...
bce1b489 1282
88386050
NN
1283To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284VAR=VALUE. See below for descriptions of some of the useful variables.
03391b53 1285
88386050 1286Defaults for the options are specified in brackets.
9c01f395 1287
88386050
NN
1288Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298
88386050
NN
1299Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1301 [$ac_default_prefix]
88386050 1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1303 [PREFIX]
9c01f395 1304
88386050
NN
1305By default, \`make install' will install all the files in
1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308for instance \`--prefix=\$HOME'.
9c01f395 1309
88386050 1310For better control, use the options below.
9c01f395 1311
88386050 1312Fine tuning of the installation directories:
5213506e
RW
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
88386050
NN
1332_ACEOF
1333
1334 cat <<\_ACEOF
1335
1336System types:
1337 --build=BUILD configure for building on BUILD [guessed]
1338 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1339 --target=TARGET configure for building compilers for TARGET [HOST]
1340_ACEOF
9c01f395
NN
1341fi
1342
88386050 1343if test -n "$ac_init_help"; then
684c64bf
AP
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of package-unused version-unused:";;
1346 esac
88386050 1347 cat <<\_ACEOF
03391b53 1348
88386050 1349Optional Features:
5213506e 1350 --disable-option-checking ignore unrecognized --enable/--with options
88386050
NN
1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
88386050 1353 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
5b043f08 1354 --enable-multilib build many library versions (default)
a0e1df88 1355 --enable-cet enable Intel CET in target libraries [default=no]
dd365157
MS
1356 --enable-maintainer-mode enable make rules and dependencies not useful
1357 (and sometimes confusing) to the casual installer
5213506e
RW
1358 --enable-shared[=PKGS] build shared libraries [default=yes]
1359 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1360 --enable-fast-install[=PKGS]
1361 optimize for fast installation [default=yes]
88386050 1362 --disable-libtool-lock avoid locking (might break parallel builds)
fd312537 1363 --enable-tls Use thread-local storage [default=yes]
114bf3f1
MK
1364 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1365 Objective-C runtime
03391b53 1366
88386050
NN
1367Optional Packages:
1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1370 --with-build-libsubdir=DIR Directory where to find libraries for build system
88386050
NN
1371 --with-target-subdir=SUBDIR
1372 configuring in a subdirectory
1373 --with-cross-host=HOST configuring with a cross compiler
1cf3d07d
SE
1374 --with-pic try to use only PIC/non-PIC objects [default=use
1375 both]
1376 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
114bf3f1
MK
1377 --with-target-bdw-gc=PATHLIST
1378 specify prefix directory for installed bdw-gc
1379 package. Equivalent to
1380 --with-target-bdw-gc-include=PATH/include plus
1381 --with-target-bdw-gc-lib=PATH/lib
1382 --with-target-bdw-gc-include=PATHLIST
1383 specify directories for installed bdw-gc include
1384 files
1385 --with-target-bdw-gc-lib=PATHLIST
1386 specify directories for installed bdw-gc library
3c36aa6b
JJ
1387 --with-gcc-major-version-only
1388 use only GCC major number in filesystem paths
1fcfac98 1389
88386050
NN
1390Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
5213506e
RW
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
88386050 1398 CPP C preprocessor
1fcfac98 1399
88386050
NN
1400Use these variables to override the choices made by `configure' or to help
1401it to find libraries and programs with nonstandard names/locations.
6706f116 1402
5213506e 1403Report bugs to the package provider.
88386050 1404_ACEOF
5213506e 1405ac_status=$?
88386050
NN
1406fi
1407
1408if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
88386050 1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 continue
88386050
NN
1414 ac_builddir=.
1415
5213506e
RW
1416case "$ac_dir" in
1417.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418*)
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 esac ;;
1426esac
1427ac_abs_top_builddir=$ac_pwd
1428ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429# for backward compatibility:
1430ac_top_builddir=$ac_top_build_prefix
aebb8c22 1431
88386050 1432case $srcdir in
5213506e 1433 .) # We are building in place.
88386050 1434 ac_srcdir=.
5213506e
RW
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
88386050 1438 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1441 *) # Relative name.
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
88386050 1445esac
5213506e
RW
1446ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure" --help=recursive
88386050 1456 else
5213506e
RW
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 fi || ac_status=$?
1459 cd "$ac_pwd" || { ac_status=$?; break; }
88386050 1460 done
aebb8c22 1461fi
88386050 1462
5213506e 1463test -n "$ac_init_help" && exit $ac_status
88386050
NN
1464if $ac_init_version; then
1465 cat <<\_ACEOF
684c64bf 1466package-unused configure version-unused
5213506e 1467generated by GNU Autoconf 2.64
88386050 1468
5213506e 1469Copyright (C) 2009 Free Software Foundation, Inc.
88386050
NN
1470This configure script is free software; the Free Software Foundation
1471gives unlimited permission to copy, distribute and modify it.
1472_ACEOF
5213506e 1473 exit
b150efee 1474fi
aebb8c22 1475
5213506e
RW
1476## ------------------------ ##
1477## Autoconf initialization. ##
1478## ------------------------ ##
aebb8c22 1479
5213506e
RW
1480# ac_fn_c_try_compile LINENO
1481# --------------------------
1482# Try to compile conftest.$ac_ext, and return whether this succeeded.
1483ac_fn_c_try_compile ()
88386050 1484{
5213506e
RW
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491esac
1492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493$as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1500 fi
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507else
1508 $as_echo "$as_me: failed program was:" >&5
1509sed 's/^/| /' conftest.$ac_ext >&5
b150efee 1510
5213506e
RW
1511 ac_retval=1
1512fi
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 return $ac_retval
b150efee 1515
5213506e 1516} # ac_fn_c_try_compile
b150efee 1517
5213506e
RW
1518# ac_fn_c_try_link LINENO
1519# -----------------------
1520# Try to link conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_link ()
1522{
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext conftest$ac_exeext
1525 if { { ac_try="$ac_link"
1526case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_link") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest$ac_exeext && {
1544 test "$cross_compiling" = yes ||
1545 $as_test_x conftest$ac_exeext
1546 }; then :
1547 ac_retval=0
1548else
1549 $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
b150efee 1551
5213506e
RW
1552 ac_retval=1
1553fi
1554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1556 # interfere with the next link command; also delete a directory that is
1557 # left behind by Apple's compiler. We do this before executing the actions.
1558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
b150efee 1561
5213506e 1562} # ac_fn_c_try_link
b150efee 1563
5213506e
RW
1564# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1565# -------------------------------------------------------
1566# Tests whether HEADER exists and can be compiled using the include files in
1567# INCLUDES, setting the cache variable VAR accordingly.
1568ac_fn_c_check_header_compile ()
1569{
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572$as_echo_n "checking for $2... " >&6; }
1573if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1574 $as_echo_n "(cached) " >&6
1575else
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577/* end confdefs.h. */
1578$4
1579#include <$2>
1580_ACEOF
1581if ac_fn_c_try_compile "$LINENO"; then :
1582 eval "$3=yes"
1583else
1584 eval "$3=no"
1585fi
1586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587fi
1588eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590$as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592
1593} # ac_fn_c_check_header_compile
1594
1595# ac_fn_c_try_cpp LINENO
1596# ----------------------
1597# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_cpp ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } >/dev/null && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621else
1622 $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626fi
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 return $ac_retval
1629
1630} # ac_fn_c_try_cpp
1631
1632# ac_fn_c_try_run LINENO
1633# ----------------------
1634# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1635# that executables *can* be run.
1636ac_fn_c_try_run ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_link"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>&5
1647 ac_status=$?
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650 { { case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_try") 2>&5
1657 ac_status=$?
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; }; }; then :
1660 ac_retval=0
1661else
1662 $as_echo "$as_me: program exited with status $ac_status" >&5
1663 $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=$ac_status
1667fi
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 return $ac_retval
1671
1672} # ac_fn_c_try_run
1673
1674# ac_fn_c_check_func LINENO FUNC VAR
1675# ----------------------------------
1676# Tests whether FUNC exists, setting the cache variable VAR accordingly
1677ac_fn_c_check_func ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681$as_echo_n "checking for $2... " >&6; }
1682if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1683 $as_echo_n "(cached) " >&6
1684else
1685 if test x$gcc_no_link = xyes; then
1686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1687fi
1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1692#define $2 innocuous_$2
1693
1694/* System header to define __stub macros and hopefully few prototypes,
1695 which can conflict with char $2 (); below.
1696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1697 <limits.h> exists even on freestanding compilers. */
1698
1699#ifdef __STDC__
1700# include <limits.h>
1701#else
1702# include <assert.h>
1703#endif
1704
1705#undef $2
1706
1707/* Override any GCC internal prototype to avoid an error.
1708 Use char because int might match the return type of a GCC
1709 builtin and then its argument prototype would still apply. */
1710#ifdef __cplusplus
1711extern "C"
1712#endif
1713char $2 ();
1714/* The GNU C library defines this for functions which it implements
1715 to always fail with ENOSYS. Some functions are actually named
1716 something starting with __ and the normal name is an alias. */
1717#if defined __stub_$2 || defined __stub___$2
1718choke me
1719#endif
1720
1721int
1722main ()
1723{
1724return $2 ();
1725 ;
1726 return 0;
1727}
1728_ACEOF
1729if ac_fn_c_try_link "$LINENO"; then :
1730 eval "$3=yes"
1731else
1732 eval "$3=no"
1733fi
1734rm -f core conftest.err conftest.$ac_objext \
1735 conftest$ac_exeext conftest.$ac_ext
1736fi
1737eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739$as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741
1742} # ac_fn_c_check_func
1743
1744# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1747# the include files in INCLUDES and setting the cache variable VAR
1748# accordingly.
1749ac_fn_c_check_header_mongrel ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1757fi
1758eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761else
1762 # Is the header compilable?
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1764$as_echo_n "checking $2 usability... " >&6; }
1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h. */
1767$4
1768#include <$2>
1769_ACEOF
1770if ac_fn_c_try_compile "$LINENO"; then :
1771 ac_header_compiler=yes
1772else
1773 ac_header_compiler=no
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1777$as_echo "$ac_header_compiler" >&6; }
1778
1779# Is the header present?
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1781$as_echo_n "checking $2 presence... " >&6; }
1782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784#include <$2>
1785_ACEOF
1786if ac_fn_c_try_cpp "$LINENO"; then :
1787 ac_header_preproc=yes
1788else
1789 ac_header_preproc=no
1790fi
1791rm -f conftest.err conftest.$ac_ext
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1793$as_echo "$ac_header_preproc" >&6; }
1794
1795# So? What about this header?
1796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1797 yes:no: )
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1799$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ;;
1803 no:yes:* )
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1805$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1807$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1809$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1811$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 ;;
1815esac
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820else
1821 eval "$3=\$ac_header_compiler"
1822fi
1823eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826fi
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828
1829} # ac_fn_c_check_header_mongrel
1830cat >config.log <<_ACEOF
1831This file contains any messages produced by compilers while
1832running configure, to aid debugging if configure makes a mistake.
1833
1834It was created by package-unused $as_me version-unused, which was
1835generated by GNU Autoconf 2.64. Invocation command line was
1836
1837 $ $0 $@
1838
1839_ACEOF
1840exec 5>>config.log
1841{
1842cat <<_ASUNAME
1843## --------- ##
1844## Platform. ##
1845## --------- ##
1846
1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852
1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1855
1856/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1857/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1860/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1861/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1862/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1863
1864_ASUNAME
1865
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 $as_echo "PATH: $as_dir"
1872 done
1873IFS=$as_save_IFS
1874
1875} >&5
1876
1877cat >&5 <<_ACEOF
b150efee 1878
b150efee 1879
88386050
NN
1880## ----------- ##
1881## Core tests. ##
1882## ----------- ##
b150efee 1883
88386050
NN
1884_ACEOF
1885
1886
1887# Keep a trace of the command line.
1888# Strip out --no-create and --no-recursion so they do not pile up.
1889# Strip out --silent because we don't want to record it for future runs.
1890# Also quote any args containing shell meta-characters.
1891# Make two passes to allow for proper duplicate-argument suppression.
1892ac_configure_args=
1893ac_configure_args0=
1894ac_configure_args1=
88386050
NN
1895ac_must_keep_next=false
1896for ac_pass in 1 2
1897do
1898 for ac_arg
1899 do
1900 case $ac_arg in
1901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903 | -silent | --silent | --silen | --sile | --sil)
1904 continue ;;
5213506e
RW
1905 *\'*)
1906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
88386050
NN
1907 esac
1908 case $ac_pass in
5213506e 1909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
88386050 1910 2)
5213506e 1911 as_fn_append ac_configure_args1 " '$ac_arg'"
88386050
NN
1912 if test $ac_must_keep_next = true; then
1913 ac_must_keep_next=false # Got value, back to normal.
1914 else
1915 case $ac_arg in
1916 *=* | --config-cache | -C | -disable-* | --disable-* \
1917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919 | -with-* | --with-* | -without-* | --without-* | --x)
1920 case "$ac_configure_args0 " in
1921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922 esac
1923 ;;
1924 -* ) ac_must_keep_next=true ;;
1925 esac
1926 fi
5213506e 1927 as_fn_append ac_configure_args " '$ac_arg'"
88386050
NN
1928 ;;
1929 esac
1930 done
1931done
5213506e
RW
1932{ ac_configure_args0=; unset ac_configure_args0;}
1933{ ac_configure_args1=; unset ac_configure_args1;}
88386050
NN
1934
1935# When interrupted or exit'd, cleanup temporary files, and complete
1936# config.log. We remove comments because anyway the quotes in there
1937# would cause problems or look ugly.
5213506e
RW
1938# WARNING: Use '\'' to represent an apostrophe within the trap.
1939# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
88386050
NN
1940trap 'exit_status=$?
1941 # Save into config.log some information that might help in debugging.
1942 {
1943 echo
1944
1945 cat <<\_ASBOX
1946## ---------------- ##
1947## Cache variables. ##
1948## ---------------- ##
1949_ASBOX
1950 echo
1951 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1952(
1953 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1954 eval ac_val=\$$ac_var
1955 case $ac_val in #(
1956 *${as_nl}*)
1957 case $ac_var in #(
1958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1959$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1960 esac
1961 case $ac_var in #(
1962 _ | IFS | as_nl) ;; #(
1963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1964 *) { eval $ac_var=; unset $ac_var;} ;;
1965 esac ;;
1966 esac
1967 done
88386050 1968 (set) 2>&1 |
5213506e
RW
1969 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1970 *${as_nl}ac_space=\ *)
88386050 1971 sed -n \
5213506e
RW
1972 "s/'\''/'\''\\\\'\'''\''/g;
1973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1974 ;; #(
88386050 1975 *)
5213506e 1976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
88386050 1977 ;;
5213506e
RW
1978 esac |
1979 sort
1980)
88386050
NN
1981 echo
1982
1983 cat <<\_ASBOX
1984## ----------------- ##
1985## Output variables. ##
1986## ----------------- ##
1987_ASBOX
1988 echo
1989 for ac_var in $ac_subst_vars
1990 do
5213506e
RW
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 esac
1995 $as_echo "$ac_var='\''$ac_val'\''"
88386050
NN
1996 done | sort
1997 echo
1998
1999 if test -n "$ac_subst_files"; then
2000 cat <<\_ASBOX
5213506e
RW
2001## ------------------- ##
2002## File substitutions. ##
2003## ------------------- ##
88386050
NN
2004_ASBOX
2005 echo
2006 for ac_var in $ac_subst_files
2007 do
5213506e
RW
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
88386050
NN
2013 done | sort
2014 echo
2015 fi
2016
2017 if test -s confdefs.h; then
2018 cat <<\_ASBOX
2019## ----------- ##
2020## confdefs.h. ##
2021## ----------- ##
2022_ASBOX
2023 echo
5213506e 2024 cat confdefs.h
88386050
NN
2025 echo
2026 fi
2027 test "$ac_signal" != 0 &&
5213506e
RW
2028 $as_echo "$as_me: caught signal $ac_signal"
2029 $as_echo "$as_me: exit $exit_status"
88386050 2030 } >&5
5213506e
RW
2031 rm -f core *.core core.conftest.* &&
2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
88386050 2033 exit $exit_status
5213506e 2034' 0
88386050 2035for ac_signal in 1 2 13 15; do
5213506e 2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
88386050
NN
2037done
2038ac_signal=0
2039
2040# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2041rm -f -r conftest* confdefs.h
2042
2043$as_echo "/* confdefs.h */" > confdefs.h
88386050
NN
2044
2045# Predefined preprocessor variables.
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_NAME "$PACKAGE_NAME"
2049_ACEOF
2050
88386050
NN
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2053_ACEOF
2054
88386050
NN
2055cat >>confdefs.h <<_ACEOF
2056#define PACKAGE_VERSION "$PACKAGE_VERSION"
2057_ACEOF
2058
88386050
NN
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_STRING "$PACKAGE_STRING"
2061_ACEOF
2062
88386050
NN
2063cat >>confdefs.h <<_ACEOF
2064#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2065_ACEOF
2066
5213506e
RW
2067cat >>confdefs.h <<_ACEOF
2068#define PACKAGE_URL "$PACKAGE_URL"
2069_ACEOF
2070
88386050
NN
2071
2072# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2073# Prefer an explicitly selected file to automatically selected ones.
2074ac_site_file1=NONE
2075ac_site_file2=NONE
2076if test -n "$CONFIG_SITE"; then
2077 ac_site_file1=$CONFIG_SITE
2078elif test "x$prefix" != xNONE; then
2079 ac_site_file1=$prefix/share/config.site
2080 ac_site_file2=$prefix/etc/config.site
2081else
2082 ac_site_file1=$ac_default_prefix/share/config.site
2083 ac_site_file2=$ac_default_prefix/etc/config.site
2084fi
2085for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2086do
2087 test "x$ac_site_file" = xNONE && continue
88386050 2088 if test -r "$ac_site_file"; then
5213506e
RW
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2090$as_echo "$as_me: loading site script $ac_site_file" >&6;}
88386050
NN
2091 sed 's/^/| /' "$ac_site_file" >&5
2092 . "$ac_site_file"
2093 fi
2094done
2095
2096if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special
2098 # files actually), so we avoid doing that.
2099 if test -f "$cache_file"; then
5213506e
RW
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2101$as_echo "$as_me: loading cache $cache_file" >&6;}
88386050 2102 case $cache_file in
5213506e
RW
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
88386050
NN
2105 esac
2106 fi
2107else
5213506e
RW
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2109$as_echo "$as_me: creating cache $cache_file" >&6;}
88386050
NN
2110 >$cache_file
2111fi
2112
2113# Check that the precious variables saved in the cache have kept the same
2114# value.
2115ac_cache_corrupted=false
5213506e 2116for ac_var in $ac_precious_vars; do
88386050
NN
2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120 eval ac_new_val=\$ac_env_${ac_var}_value
88386050
NN
2121 case $ac_old_set,$ac_new_set in
2122 set,)
5213506e
RW
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
88386050
NN
2125 ac_cache_corrupted=: ;;
2126 ,set)
5213506e
RW
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2128$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
88386050
NN
2129 ac_cache_corrupted=: ;;
2130 ,);;
2131 *)
2132 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2133 # differences in whitespace do not lead to failure.
2134 ac_old_val_w=`echo x $ac_old_val`
2135 ac_new_val_w=`echo x $ac_new_val`
2136 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2138$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2139 ac_cache_corrupted=:
2140 else
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2142$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2143 eval $ac_var=\$ac_old_val
2144 fi
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2146$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2148$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
88386050
NN
2149 fi;;
2150 esac
2151 # Pass precious variables to config.status.
2152 if test "$ac_new_set" = set; then
2153 case $ac_new_val in
5213506e 2154 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
88386050
NN
2155 *) ac_arg=$ac_var=$ac_new_val ;;
2156 esac
2157 case " $ac_configure_args " in
2158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2159 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
88386050
NN
2160 esac
2161 fi
2162done
2163if $ac_cache_corrupted; then
5213506e
RW
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2167$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2168 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
88386050 2169fi
5213506e
RW
2170## -------------------- ##
2171## Main body of script. ##
2172## -------------------- ##
88386050
NN
2173
2174ac_ext=c
2175ac_cpp='$CPP $CPPFLAGS'
2176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178ac_compiler_gnu=$ac_cv_c_compiler_gnu
2179
2180
2181
2182
2183
2184
215c351a 2185ac_aux_dir=
5213506e
RW
2186for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2187 for ac_t in install-sh install.sh shtool; do
2188 if test -f "$ac_dir/$ac_t"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/$ac_t -c"
2191 break 2
2192 fi
2193 done
215c351a
PB
2194done
2195if test -z "$ac_aux_dir"; then
5213506e 2196 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
215c351a 2197fi
5213506e
RW
2198
2199# These three variables are undocumented and unsupported,
2200# and are intended to be withdrawn in a future Autoconf release.
2201# They can cause serious problems if a builder's source tree is in a directory
2202# whose full name contains unusual characters.
2203ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2204ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2205ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2206
215c351a
PB
2207
2208# Make sure we can run config.sub.
5213506e
RW
2209$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2210 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2211
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2213$as_echo_n "checking build system type... " >&6; }
2214if test "${ac_cv_build+set}" = set; then :
2215 $as_echo_n "(cached) " >&6
2216else
2217 ac_build_alias=$build_alias
2218test "x$ac_build_alias" = x &&
2219 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2220test "x$ac_build_alias" = x &&
2221 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2222ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2223 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2224
2225fi
2226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2227$as_echo "$ac_cv_build" >&6; }
2228case $ac_cv_build in
2229*-*-*) ;;
2230*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2231esac
215c351a 2232build=$ac_cv_build
5213506e
RW
2233ac_save_IFS=$IFS; IFS='-'
2234set x $ac_cv_build
2235shift
2236build_cpu=$1
2237build_vendor=$2
2238shift; shift
2239# Remember, the first character of IFS is used to create $*,
2240# except with old shells:
2241build_os=$*
2242IFS=$ac_save_IFS
2243case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
215c351a
PB
2244
2245
2246 case ${build_alias} in
2247 "") build_noncanonical=${build} ;;
2248 *) build_noncanonical=${build_alias} ;;
2249esac
2250
2251 case ${host_alias} in
2252 "") host_noncanonical=${build_noncanonical} ;;
2253 *) host_noncanonical=${host_alias} ;;
2254esac
2255
2256 case ${target_alias} in
2257 "") target_noncanonical=${host_noncanonical} ;;
2258 *) target_noncanonical=${target_alias} ;;
2259esac
2260
57255173
PB
2261
2262# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2263# have matching libraries, they should use host libraries: Makefile.tpl
2264# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2265# However, they still use the build modules, because the corresponding
2266# host modules (e.g. bison) are only built for the host when bootstrap
2267# finishes. So:
2268# - build_subdir is where we find build modules, and never changes.
2269# - build_libsubdir is where we find build libraries, and can be overridden.
2270
2271# Prefix 'build-' so this never conflicts with target_subdir.
215c351a 2272build_subdir="build-${build_noncanonical}"
57255173 2273
5213506e
RW
2274# Check whether --with-build-libsubdir was given.
2275if test "${with_build_libsubdir+set}" = set; then :
2276 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2277else
2278 build_libsubdir="$build_subdir"
5213506e
RW
2279fi
2280
215c351a
PB
2281# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2282if ( test $srcdir = . && test -d gcc ) \
2283 || test -d $srcdir/../host-${host_noncanonical}; then
2284 host_subdir="host-${host_noncanonical}"
2285else
2286 host_subdir=.
2287fi
2288# No prefix.
2289target_subdir=${target_noncanonical}
252dde64 2290
88386050 2291
252dde64 2292# We need the following definitions because AC_PROG_LIBTOOL relies on them
88386050 2293PACKAGE=libobjc
252dde64 2294# Version is pulled out to make it a bit easier to change using sed.
c7907a55 2295VERSION=4:0:0
88386050
NN
2296
2297
2298# This works around the fact that libtool configuration may change LD
2299# for this particular configuration, but some shells, instead of
2300# keeping the changes in LD private, export them just because LD is
2301# exported.
2302ORIGINAL_LD_FOR_MULTILIBS=$LD
2303
252dde64
NN
2304# -------
2305# Options
2306# -------
2307
252dde64
NN
2308# We use these options to decide which functions to include.
2309
5213506e
RW
2310# Check whether --with-target-subdir was given.
2311if test "${with_target_subdir+set}" = set; then :
2312 withval=$with_target_subdir;
2313fi
252dde64 2314
252dde64 2315
5213506e
RW
2316# Check whether --with-cross-host was given.
2317if test "${with_cross_host+set}" = set; then :
2318 withval=$with_cross_host;
2319fi
252dde64 2320
252dde64 2321
5213506e
RW
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2323$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2324# Check whether --enable-version-specific-runtime-libs was given.
2325if test "${enable_version_specific_runtime_libs+set}" = set; then :
2326 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
252dde64
NN
2327 yes) version_specific_libs=yes ;;
2328 no) version_specific_libs=no ;;
5213506e 2329 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
252dde64
NN
2330 esac
2331else
2332 version_specific_libs=no
5213506e
RW
2333fi
2334
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2336$as_echo "$version_specific_libs" >&6; }
2337
252dde64
NN
2338# -----------
2339# Directories
2340# -----------
2341
5b043f08
GK
2342# Find the rest of the source tree framework.
2343# Default to --enable-multilib
5213506e
RW
2344# Check whether --enable-multilib was given.
2345if test "${enable_multilib+set}" = set; then :
2346 enableval=$enable_multilib; case "$enableval" in
5b043f08
GK
2347 yes) multilib=yes ;;
2348 no) multilib=no ;;
5213506e 2349 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
5b043f08
GK
2350 esac
2351else
2352 multilib=yes
5213506e
RW
2353fi
2354
5b043f08
GK
2355
2356# We may get other options which we leave undocumented:
2357# --with-target-subdir, --with-multisrctop, --with-multisubdir
2358# See config-ml.in if you want the gory details.
2359
2360if test "$srcdir" = "."; then
2361 if test "$with_target_subdir" != "."; then
2362 multi_basedir="$srcdir/$with_multisrctop../.."
88386050 2363 else
5b043f08 2364 multi_basedir="$srcdir/$with_multisrctop.."
88386050
NN
2365 fi
2366else
5b043f08 2367 multi_basedir="$srcdir/.."
88386050 2368fi
5b043f08
GK
2369
2370
2371# Even if the default multilib is not a cross compilation,
2372# it may be that some of the other multilibs are.
2373if test $cross_compiling = no && test $multilib = yes \
2374 && test "x${with_multisubdir}" != x ; then
2375 cross_compiling=maybe
88386050 2376fi
88386050 2377
5213506e 2378ac_config_commands="$ac_config_commands default-1"
88386050
NN
2379
2380
5213506e
RW
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382$as_echo_n "checking host system type... " >&6; }
2383if test "${ac_cv_host+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
2385else
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
88386050 2388else
5213506e
RW
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391fi
88386050
NN
2392
2393fi
5213506e
RW
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395$as_echo "$ac_cv_host" >&6; }
2396case $ac_cv_host in
2397*-*-*) ;;
2398*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2399esac
88386050 2400host=$ac_cv_host
5213506e
RW
2401ac_save_IFS=$IFS; IFS='-'
2402set x $ac_cv_host
2403shift
2404host_cpu=$1
2405host_vendor=$2
2406shift; shift
2407# Remember, the first character of IFS is used to create $*,
2408# except with old shells:
2409host_os=$*
2410IFS=$ac_save_IFS
2411case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
88386050
NN
2412
2413
5213506e
RW
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415$as_echo_n "checking target system type... " >&6; }
2416if test "${ac_cv_target+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
88386050 2418else
5213506e
RW
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424fi
88386050
NN
2425
2426fi
5213506e
RW
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428$as_echo "$ac_cv_target" >&6; }
2429case $ac_cv_target in
2430*-*-*) ;;
2431*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2432esac
88386050 2433target=$ac_cv_target
5213506e
RW
2434ac_save_IFS=$IFS; IFS='-'
2435set x $ac_cv_target
2436shift
2437target_cpu=$1
2438target_vendor=$2
2439shift; shift
2440# Remember, the first character of IFS is used to create $*,
2441# except with old shells:
2442target_os=$*
2443IFS=$ac_save_IFS
2444case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
88386050
NN
2445
2446
2447# The aliases save the names the user supplied, while $host etc.
2448# will get canonicalized.
2449test -n "$target_alias" &&
b150efee
FS
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
b150efee 2453
b150efee 2454
049bc404 2455
5213506e 2456
608e1e0c 2457# Export source directory.
b150efee
FS
2458# These need to be absolute paths, yet at the same time need to
2459# canonicalize only relative paths, because then amd will not unmount
2460# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
b150efee 2461case $srcdir in
252dde64
NN
2462 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2463 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
b150efee
FS
2464esac
2465
2466
608e1e0c 2467# Calculate toolexeclibdir
a42a57cb 2468# Also toolexecdir, though it's only used in toolexeclibdir
252dde64
NN
2469case ${version_specific_libs} in
2470 yes)
2471 # Need the gcc compiler version to know where to install libraries
2472 # and header files if --enable-version-specific-runtime-libs option
2473 # is selected.
a42a57cb 2474 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2b37e3d5 2475 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
252dde64
NN
2476 ;;
2477 no)
2478 if test -n "$with_cross_host" &&
2479 test x"$with_cross_host" != x"no"; then
252dde64 2480 # Install a library built with a cross compiler in tooldir, not libdir.
a42a57cb 2481 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
608e1e0c
NN
2482 toolexeclibdir='$(toolexecdir)/lib'
2483 else
a42a57cb 2484 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
608e1e0c 2485 toolexeclibdir='$(libdir)'
252dde64
NN
2486 fi
2487 multi_os_directory=`$CC -print-multi-os-directory`
2488 case $multi_os_directory in
2489 .) ;; # Avoid trailing /.
608e1e0c 2490 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
252dde64
NN
2491 esac
2492 ;;
2493esac
71205e0b 2494
252dde64 2495
a42a57cb 2496
ff65de76
AP
2497# Figure out if we want to name the include directory and the
2498# library name changes differently.
7d34a5a9 2499includedirname=include
45d5f86c 2500libsuffix=
ff65de76
AP
2501case "${host}" in
2502 *-darwin*)
2503 # Darwin is the only target so far that needs a different include directory.
7d34a5a9 2504 includedirname=include-gnu-runtime
af333b9a 2505 libsuffix=-gnu
ff65de76
AP
2506 ;;
2507esac
2508
2509
2510
5213506e 2511ac_config_headers="$ac_config_headers config.h"
049bc404
AP
2512
2513
252dde64
NN
2514# --------
2515# Programs
2516# --------
7c6b0e92 2517
b150efee 2518
db7f3c69
NN
2519
2520# We must force CC to /not/ be a precious variable; otherwise
2521# the wrong, non-multilib-adjusted value will be used in multilibs.
2522# As a side effect, we have to subst CFLAGS ourselves.
2523
2524
88386050
NN
2525ac_ext=c
2526ac_cpp='$CPP $CPPFLAGS'
2527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534$as_echo_n "checking for $ac_word... " >&6; }
2535if test "${ac_cv_prog_CC+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
88386050
NN
2537else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
5213506e
RW
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 2548 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
2550 break 2
2551 fi
2552done
5213506e
RW
2553 done
2554IFS=$as_save_IFS
b150efee 2555
88386050
NN
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
5213506e
RW
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561$as_echo "$CC" >&6; }
88386050 2562else
5213506e
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
88386050 2565fi
b150efee 2566
5213506e 2567
88386050
NN
2568fi
2569if test -z "$ac_cv_prog_CC"; then
2570 ac_ct_CC=$CC
2571 # Extract the first word of "gcc", so it can be a program name with args.
2572set dummy gcc; ac_word=$2
5213506e
RW
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
88386050
NN
2577else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
5213506e
RW
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 2588 ac_cv_prog_ac_ct_CC="gcc"
5213506e 2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
2590 break 2
2591 fi
2592done
5213506e
RW
2593 done
2594IFS=$as_save_IFS
b150efee 2595
88386050
NN
2596fi
2597fi
2598ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599if test -n "$ac_ct_CC"; then
5213506e
RW
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2601$as_echo "$ac_ct_CC" >&6; }
88386050 2602else
5213506e
RW
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
88386050 2605fi
7c6b0e92 2606
5213506e
RW
2607 if test "x$ac_ct_CC" = x; then
2608 CC=""
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611yes:)
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614ac_tool_warned=yes ;;
2615esac
2616 CC=$ac_ct_CC
2617 fi
88386050
NN
2618else
2619 CC="$ac_cv_prog_CC"
2620fi
7c6b0e92 2621
88386050 2622if test -z "$CC"; then
5213506e
RW
2623 if test -n "$ac_tool_prefix"; then
2624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
88386050 2625set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627$as_echo_n "checking for $ac_word... " >&6; }
2628if test "${ac_cv_prog_CC+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
bce1b489
BE
2630else
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2633else
88386050
NN
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
5213506e
RW
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 2641 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
2643 break 2
2644 fi
2645done
5213506e
RW
2646 done
2647IFS=$as_save_IFS
88386050 2648
bce1b489
BE
2649fi
2650fi
88386050 2651CC=$ac_cv_prog_CC
bce1b489 2652if test -n "$CC"; then
5213506e
RW
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654$as_echo "$CC" >&6; }
88386050 2655else
5213506e
RW
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657$as_echo "no" >&6; }
88386050
NN
2658fi
2659
5213506e
RW
2660
2661 fi
88386050 2662fi
5213506e 2663if test -z "$CC"; then
88386050
NN
2664 # Extract the first word of "cc", so it can be a program name with args.
2665set dummy cc; ac_word=$2
5213506e
RW
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if test "${ac_cv_prog_CC+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
88386050 2670else
5213506e
RW
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
88386050 2673else
5213506e 2674 ac_prog_rejected=no
88386050
NN
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
5213506e
RW
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2683 ac_prog_rejected=yes
2684 continue
2685 fi
2686 ac_cv_prog_CC="cc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
2688 break 2
2689 fi
2690done
5213506e
RW
2691 done
2692IFS=$as_save_IFS
88386050 2693
bce1b489
BE
2694if test $ac_prog_rejected = yes; then
2695 # We found a bogon in the path, so make sure we never use it.
2696 set dummy $ac_cv_prog_CC
2697 shift
88386050 2698 if test $# != 0; then
bce1b489
BE
2699 # We chose a different compiler from the bogus one.
2700 # However, it has the same basename, so the bogon will be chosen
2701 # first if we set CC to just the basename; use the full file name.
2702 shift
88386050 2703 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
bce1b489
BE
2704 fi
2705fi
2706fi
2707fi
88386050 2708CC=$ac_cv_prog_CC
bce1b489 2709if test -n "$CC"; then
5213506e
RW
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711$as_echo "$CC" >&6; }
bce1b489 2712else
5213506e
RW
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
bce1b489
BE
2715fi
2716
5213506e 2717
03391b53 2718fi
88386050
NN
2719if test -z "$CC"; then
2720 if test -n "$ac_tool_prefix"; then
5213506e 2721 for ac_prog in cl.exe
88386050
NN
2722 do
2723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
2727if test "${ac_cv_prog_CC+set}" = set; then :
2728 $as_echo_n "(cached) " >&6
bce1b489 2729else
88386050
NN
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
bce1b489 2732else
88386050
NN
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
5213506e
RW
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 2740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
2742 break 2
2743 fi
2744done
5213506e
RW
2745 done
2746IFS=$as_save_IFS
88386050 2747
bce1b489
BE
2748fi
2749fi
88386050
NN
2750CC=$ac_cv_prog_CC
2751if test -n "$CC"; then
5213506e
RW
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753$as_echo "$CC" >&6; }
bce1b489 2754else
5213506e
RW
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
bce1b489 2757fi
bce1b489 2758
5213506e 2759
88386050
NN
2760 test -n "$CC" && break
2761 done
bce1b489 2762fi
88386050
NN
2763if test -z "$CC"; then
2764 ac_ct_CC=$CC
5213506e 2765 for ac_prog in cl.exe
88386050
NN
2766do
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768set dummy $ac_prog; ac_word=$2
5213506e
RW
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
88386050
NN
2773else
2774 if test -n "$ac_ct_CC"; then
2775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
5213506e
RW
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 2784 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050 2786 break 2
da4b1927 2787 fi
88386050 2788done
5213506e
RW
2789 done
2790IFS=$as_save_IFS
88386050
NN
2791
2792fi
2793fi
2794ac_ct_CC=$ac_cv_prog_ac_ct_CC
2795if test -n "$ac_ct_CC"; then
5213506e
RW
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2797$as_echo "$ac_ct_CC" >&6; }
88386050 2798else
5213506e
RW
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
88386050
NN
2801fi
2802
5213506e 2803
88386050
NN
2804 test -n "$ac_ct_CC" && break
2805done
2806
5213506e
RW
2807 if test "x$ac_ct_CC" = x; then
2808 CC=""
2809 else
2810 case $cross_compiling:$ac_tool_warned in
2811yes:)
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814ac_tool_warned=yes ;;
2815esac
2816 CC=$ac_ct_CC
2817 fi
88386050
NN
2818fi
2819
2820fi
2821
2822
5213506e
RW
2823test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825as_fn_error "no acceptable C compiler found in \$PATH
2826See \`config.log' for more details." "$LINENO" 5; }
88386050
NN
2827
2828# Provide some information about the compiler.
5213506e
RW
2829$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2830set X $ac_compile
2831ac_compiler=$2
2832for ac_option in --version -v -V -qversion; do
2833 { { ac_try="$ac_compiler $ac_option >&5"
2834case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839$as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
88386050 2841 ac_status=$?
5213506e
RW
2842 if test -s conftest.err; then
2843 sed '10a\
2844... rest of stderr output deleted ...
2845 10q' conftest.err >conftest.er1
2846 cat conftest.er1 >&5
2847 rm -f conftest.er1 conftest.err
2848 fi
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }
2851done
88386050 2852
5213506e 2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
2854/* end confdefs.h. */
2855
2856int
2857main ()
2858{
2859
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864# FIXME: Cleanup?
5213506e 2865if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
88386050
NN
2866 (eval $ac_link) 2>&5
2867 ac_status=$?
5213506e
RW
2868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2869 test $ac_status = 0; }; then :
88386050
NN
2870 gcc_no_link=no
2871else
2872 gcc_no_link=yes
2873fi
88386050
NN
2874if test x$gcc_no_link = xyes; then
2875 # Setting cross_compile will disable run tests; it will
2876 # also disable AC_CHECK_FILE but that's generally
2877 # correct if we can't link.
2878 cross_compiling=yes
2879 EXEEXT=
2880else
5213506e 2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
2882/* end confdefs.h. */
2883
2884int
2885main ()
2886{
2887
2888 ;
2889 return 0;
2890}
2891_ACEOF
2892ac_clean_files_save=$ac_clean_files
5213506e 2893ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
88386050
NN
2894# Try to create an executable without -o first, disregard a.out.
2895# It will help us diagnose broken compilers, and finding out an intuition
2896# of exeext.
5213506e
RW
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2898$as_echo_n "checking for C compiler default output file name... " >&6; }
2899ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2900
2901# The possible output files:
2902ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2903
2904ac_rmfiles=
2905for ac_file in $ac_files
2906do
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2910 esac
2911done
2912rm -f $ac_rmfiles
2913
2914if { { ac_try="$ac_link_default"
2915case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
2919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920$as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_link_default") 2>&5
88386050 2922 ac_status=$?
5213506e
RW
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; then :
2925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2926# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2927# in a Makefile. We should not override ac_cv_exeext if it was cached,
2928# so that the user can short-circuit this test for compilers unknown to
2929# Autoconf.
2930for ac_file in $ac_files ''
88386050
NN
2931do
2932 test -f "$ac_file" || continue
2933 case $ac_file in
5213506e 2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
88386050
NN
2935 ;;
2936 [ab].out )
2937 # We found the default executable, but exeext='' is most
2938 # certainly right.
2939 break;;
2940 *.* )
5213506e
RW
2941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2942 then :; else
2943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 fi
2945 # We set ac_cv_exeext here because the later test for it is not
2946 # safe: cross compilers may not add the suffix if given an `-o'
2947 # argument, so we may need to know it at that point already.
2948 # Even if this section looks crufty: it has the advantage of
2949 # actually working.
88386050
NN
2950 break;;
2951 * )
2952 break;;
2953 esac
2954done
5213506e
RW
2955test "$ac_cv_exeext" = no && ac_cv_exeext=
2956
88386050 2957else
5213506e
RW
2958 ac_file=''
2959fi
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2961$as_echo "$ac_file" >&6; }
2962if test -z "$ac_file"; then :
2963 $as_echo "$as_me: failed program was:" >&5
88386050
NN
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
5213506e
RW
2966{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968{ as_fn_set_status 77
2969as_fn_error "C compiler cannot create executables
2970See \`config.log' for more details." "$LINENO" 5; }; }
88386050 2971fi
88386050 2972ac_exeext=$ac_cv_exeext
88386050 2973
5213506e 2974# Check that the compiler produces executables we can run. If not, either
88386050 2975# the compiler is broken, or we cross compile.
5213506e
RW
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2977$as_echo_n "checking whether the C compiler works... " >&6; }
88386050
NN
2978# If not cross compiling, check that we can run a simple program.
2979if test "$cross_compiling" != yes; then
2980 if { ac_try='./$ac_file'
5213506e
RW
2981 { { case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986$as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_try") 2>&5
88386050 2988 ac_status=$?
5213506e
RW
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }; }; then
88386050
NN
2991 cross_compiling=no
2992 else
2993 if test "$cross_compiling" = maybe; then
2994 cross_compiling=yes
2995 else
5213506e
RW
2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998as_fn_error "cannot run C compiled programs.
88386050 2999If you meant to cross compile, use \`--host'.
5213506e 3000See \`config.log' for more details." "$LINENO" 5; }
88386050
NN
3001 fi
3002 fi
3003fi
5213506e
RW
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005$as_echo "yes" >&6; }
88386050 3006
5213506e 3007rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
88386050 3008ac_clean_files=$ac_clean_files_save
5213506e 3009# Check that the compiler produces executables we can run. If not, either
88386050 3010# the compiler is broken, or we cross compile.
5213506e
RW
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3012$as_echo_n "checking whether we are cross compiling... " >&6; }
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3014$as_echo "$cross_compiling" >&6; }
3015
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3017$as_echo_n "checking for suffix of executables... " >&6; }
3018if { { ac_try="$ac_link"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024$as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_link") 2>&5
88386050 3026 ac_status=$?
5213506e
RW
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
88386050
NN
3029 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3030# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3031# work properly (i.e., refer to `conftest.exe'), while it won't with
3032# `rm'.
3033for ac_file in conftest.exe conftest conftest.*; do
3034 test -f "$ac_file" || continue
3035 case $ac_file in
5213506e 3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
88386050 3037 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
88386050
NN
3038 break;;
3039 * ) break;;
3040 esac
3041done
3042else
5213506e
RW
3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045as_fn_error "cannot compute suffix of executables: cannot compile and link
3046See \`config.log' for more details." "$LINENO" 5; }
88386050 3047fi
88386050 3048rm -f conftest$ac_cv_exeext
5213506e
RW
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3050$as_echo "$ac_cv_exeext" >&6; }
88386050
NN
3051
3052rm -f conftest.$ac_ext
3053EXEEXT=$ac_cv_exeext
3054ac_exeext=$EXEEXT
3055fi
5213506e
RW
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3057$as_echo_n "checking for suffix of object files... " >&6; }
3058if test "${ac_cv_objext+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
88386050 3060else
5213506e 3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
3062/* end confdefs.h. */
3063
3064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
3072rm -f conftest.o conftest.obj
5213506e
RW
3073if { { ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_compile") 2>&5
88386050 3081 ac_status=$?
5213506e
RW
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; then :
3084 for ac_file in conftest.o conftest.obj conftest.*; do
3085 test -f "$ac_file" || continue;
88386050 3086 case $ac_file in
5213506e 3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
88386050
NN
3088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089 break;;
3090 esac
3091done
3092else
5213506e 3093 $as_echo "$as_me: failed program was:" >&5
88386050
NN
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
5213506e
RW
3096{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098as_fn_error "cannot compute suffix of object files: cannot compile
3099See \`config.log' for more details." "$LINENO" 5; }
88386050 3100fi
88386050
NN
3101rm -f conftest.$ac_cv_objext conftest.$ac_ext
3102fi
5213506e
RW
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3104$as_echo "$ac_cv_objext" >&6; }
88386050
NN
3105OBJEXT=$ac_cv_objext
3106ac_objext=$OBJEXT
5213506e
RW
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3108$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3109if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
88386050 3111else
5213506e 3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
3113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118#ifndef __GNUC__
3119 choke me
3120#endif
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
5213506e 3126if ac_fn_c_try_compile "$LINENO"; then :
88386050
NN
3127 ac_compiler_gnu=yes
3128else
5213506e 3129 ac_compiler_gnu=no
88386050 3130fi
5213506e 3131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88386050
NN
3132ac_cv_c_compiler_gnu=$ac_compiler_gnu
3133
3134fi
5213506e
RW
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3136$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3137if test $ac_compiler_gnu = yes; then
3138 GCC=yes
3139else
3140 GCC=
3141fi
88386050
NN
3142ac_test_CFLAGS=${CFLAGS+set}
3143ac_save_CFLAGS=$CFLAGS
5213506e
RW
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3145$as_echo_n "checking whether $CC accepts -g... " >&6; }
3146if test "${ac_cv_prog_cc_g+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3148else
3149 ac_save_c_werror_flag=$ac_c_werror_flag
3150 ac_c_werror_flag=yes
3151 ac_cv_prog_cc_g=no
3152 CFLAGS="-g"
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
5213506e 3164if ac_fn_c_try_compile "$LINENO"; then :
88386050
NN
3165 ac_cv_prog_cc_g=yes
3166else
5213506e
RW
3167 CFLAGS=""
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169/* end confdefs.h. */
88386050 3170
5213506e
RW
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179if ac_fn_c_try_compile "$LINENO"; then :
3180
3181else
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 CFLAGS="-g"
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185/* end confdefs.h. */
3186
3187int
3188main ()
3189{
3190
3191 ;
3192 return 0;
3193}
3194_ACEOF
3195if ac_fn_c_try_compile "$LINENO"; then :
3196 ac_cv_prog_cc_g=yes
3197fi
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88386050 3199fi
5213506e 3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88386050 3201fi
5213506e
RW
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3204fi
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3206$as_echo "$ac_cv_prog_cc_g" >&6; }
88386050
NN
3207if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3211 CFLAGS="-g -O2"
3212 else
3213 CFLAGS="-g"
3214 fi
3215else
3216 if test "$GCC" = yes; then
3217 CFLAGS="-O2"
3218 else
3219 CFLAGS=
3220 fi
3221fi
5213506e
RW
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3223$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3224if test "${ac_cv_prog_cc_c89+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
88386050 3226else
5213506e 3227 ac_cv_prog_cc_c89=no
88386050 3228ac_save_CC=$CC
5213506e 3229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
3230/* end confdefs.h. */
3231#include <stdarg.h>
3232#include <stdio.h>
3233#include <sys/types.h>
3234#include <sys/stat.h>
3235/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236struct buf { int x; };
3237FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238static char *e (p, i)
3239 char **p;
3240 int i;
3241{
3242 return p[i];
3243}
3244static char *f (char * (*g) (char **, int), char **p, ...)
3245{
3246 char *s;
3247 va_list v;
3248 va_start (v,p);
3249 s = g (p, va_arg (v,int));
3250 va_end (v);
3251 return s;
3252}
3253
3254/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
5213506e 3257 as 'x'. The following induces an error, until -std is added to get
88386050
NN
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3260 that's true only with -std. */
88386050
NN
3261int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
5213506e
RW
3263/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3265#define FOO(x) 'x'
3266int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
88386050
NN
3268int test (int i, double x);
3269struct s1 {int (*f) (int a);};
3270struct s2 {int (*f) (double a);};
3271int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272int argc;
3273char **argv;
3274int
3275main ()
3276{
3277return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 ;
3279 return 0;
3280}
3281_ACEOF
5213506e
RW
3282for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
88386050
NN
3284do
3285 CC="$ac_save_CC $ac_arg"
5213506e
RW
3286 if ac_fn_c_try_compile "$LINENO"; then :
3287 ac_cv_prog_cc_c89=$ac_arg
88386050 3288fi
5213506e
RW
3289rm -f core conftest.err conftest.$ac_objext
3290 test "x$ac_cv_prog_cc_c89" != "xno" && break
88386050 3291done
5213506e 3292rm -f conftest.$ac_ext
88386050
NN
3293CC=$ac_save_CC
3294
bce1b489 3295fi
5213506e
RW
3296# AC_CACHE_VAL
3297case "x$ac_cv_prog_cc_c89" in
3298 x)
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3300$as_echo "none needed" >&6; } ;;
3301 xno)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3303$as_echo "unsupported" >&6; } ;;
88386050 3304 *)
5213506e
RW
3305 CC="$CC $ac_cv_prog_cc_c89"
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3307$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
88386050 3308esac
5213506e 3309if test "x$ac_cv_prog_cc_c89" != xno; then :
88386050
NN
3310
3311fi
88386050 3312
88386050
NN
3313ac_ext=c
3314ac_cpp='$CPP $CPPFLAGS'
3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
9c01f395 3319
db7f3c69 3320
a5a813f8 3321# extra LD Flags which are required for targets
7de6ba7a
DK
3322
3323
3324
3325case $host in
3326 *-cygwin* | *-mingw*)
3327 # 'host' will be top-level target in the case of a target lib,
3328 # we must compare to with_cross_host to decide if this is a native
3329 # or cross-compiler and select where to install dlls appropriately.
3330 if test -n "$with_cross_host" &&
3331 test x"$with_cross_host" != x"no"; then
3332 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
3333 else
3334 lt_host_flags='-no-undefined -bindir "$(bindir)"';
3335 fi
3336 ;;
3337 *)
3338 lt_host_flags=
3339 ;;
3340esac
3341
3342
3343
a5a813f8
AP
3344case "${host}" in
3345 *-darwin*)
3346 # Darwin needs -single_module when linking libobjc
7de6ba7a 3347 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
a5a813f8 3348 ;;
19222959
DK
3349 *-cygwin*|*-mingw*)
3350 # Tell libtool to build DLLs on Windows
7de6ba7a 3351 extra_ldflags_libobjc='$(lt_host_flags)'
19222959 3352 ;;
a5a813f8
AP
3353esac
3354
3355
7b7168cf
IT
3356# Add CET specific flags if CET is enabled
3357
3358 # Check whether --enable-cet was given.
3359if test "${enable_cet+set}" = set; then :
3360 enableval=$enable_cet;
3361 case "$enableval" in
a0e1df88 3362 yes|no|auto) ;;
7b7168cf
IT
3363 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
3364 esac
3365
3366else
a0e1df88 3367 enable_cet=no
7b7168cf
IT
3368fi
3369
3370
14e335ed
IT
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
3372$as_echo_n "checking for CET support... " >&6; }
3373
7b7168cf
IT
3374case "$host" in
3375 i[34567]86-*-linux* | x86_64-*-linux*)
3376 case "$enable_cet" in
a0e1df88 3377 auto)
14e335ed
IT
3378 # Check if target supports multi-byte NOPs
3379 # and if assembler supports CET insn.
7b7168cf
IT
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h. */
3382
3383int
3384main ()
3385{
14e335ed
IT
3386
3387#if !defined(__SSE2__)
3388#error target does not support multi-byte NOPs
3389#else
7b7168cf 3390asm ("setssbsy");
14e335ed
IT
3391#endif
3392
7b7168cf
IT
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"; then :
3398 enable_cet=yes
3399else
3400 enable_cet=no
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ;;
3404 yes)
3405 # Check if assembler supports CET.
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407/* end confdefs.h. */
3408
3409int
3410main ()
3411{
3412asm ("setssbsy");
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417if ac_fn_c_try_compile "$LINENO"; then :
3418
3419else
3420 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
3421fi
3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 ;;
3424 esac
3425 ;;
3426 *)
3427 enable_cet=no
3428 ;;
3429esac
3430if test x$enable_cet = xyes; then
3431 CET_FLAGS="-fcf-protection -mcet"
14e335ed
IT
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433$as_echo "yes" >&6; }
3434else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436$as_echo "no" >&6; }
7b7168cf
IT
3437fi
3438
3439XCFLAGS="$XCFLAGS $CET_FLAGS"
3440
3441
db7f3c69
NN
3442
3443
88386050
NN
3444if test -n "$ac_tool_prefix"; then
3445 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
b150efee 3446set dummy ${ac_tool_prefix}as; ac_word=$2
5213506e
RW
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448$as_echo_n "checking for $ac_word... " >&6; }
3449if test "${ac_cv_prog_AS+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
bce1b489 3451else
b150efee
FS
3452 if test -n "$AS"; then
3453 ac_cv_prog_AS="$AS" # Let the user override the test.
3454else
88386050
NN
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
5213506e
RW
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 3462 ac_cv_prog_AS="${ac_tool_prefix}as"
5213506e 3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
3464 break 2
3465 fi
3466done
5213506e
RW
3467 done
3468IFS=$as_save_IFS
88386050 3469
b150efee
FS
3470fi
3471fi
88386050 3472AS=$ac_cv_prog_AS
b150efee 3473if test -n "$AS"; then
5213506e
RW
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3475$as_echo "$AS" >&6; }
b150efee 3476else
5213506e
RW
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478$as_echo "no" >&6; }
88386050
NN
3479fi
3480
5213506e 3481
b150efee 3482fi
88386050
NN
3483if test -z "$ac_cv_prog_AS"; then
3484 ac_ct_AS=$AS
3485 # Extract the first word of "as", so it can be a program name with args.
3486set dummy as; ac_word=$2
5213506e
RW
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488$as_echo_n "checking for $ac_word... " >&6; }
3489if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
88386050
NN
3491else
3492 if test -n "$ac_ct_AS"; then
3493 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3494else
3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
5213506e
RW
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 3502 ac_cv_prog_ac_ct_AS="as"
5213506e 3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
3504 break 2
3505 fi
3506done
5213506e
RW
3507 done
3508IFS=$as_save_IFS
b150efee 3509
88386050
NN
3510fi
3511fi
3512ac_ct_AS=$ac_cv_prog_ac_ct_AS
3513if test -n "$ac_ct_AS"; then
5213506e
RW
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3515$as_echo "$ac_ct_AS" >&6; }
88386050 3516else
5213506e
RW
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518$as_echo "no" >&6; }
88386050 3519fi
b150efee 3520
5213506e
RW
3521 if test "x$ac_ct_AS" = x; then
3522 AS=""
3523 else
3524 case $cross_compiling:$ac_tool_warned in
3525yes:)
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528ac_tool_warned=yes ;;
3529esac
3530 AS=$ac_ct_AS
3531 fi
88386050
NN
3532else
3533 AS="$ac_cv_prog_AS"
3534fi
b150efee 3535
88386050
NN
3536if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
b150efee 3538set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540$as_echo_n "checking for $ac_word... " >&6; }
3541if test "${ac_cv_prog_AR+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
b150efee
FS
3543else
3544 if test -n "$AR"; then
3545 ac_cv_prog_AR="$AR" # Let the user override the test.
3546else
88386050
NN
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
5213506e
RW
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 3554 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
3556 break 2
3557 fi
3558done
5213506e
RW
3559 done
3560IFS=$as_save_IFS
88386050 3561
b150efee
FS
3562fi
3563fi
88386050 3564AR=$ac_cv_prog_AR
b150efee 3565if test -n "$AR"; then
5213506e
RW
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3567$as_echo "$AR" >&6; }
b150efee 3568else
5213506e
RW
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570$as_echo "no" >&6; }
b150efee
FS
3571fi
3572
5213506e 3573
88386050
NN
3574fi
3575if test -z "$ac_cv_prog_AR"; then
3576 ac_ct_AR=$AR
3577 # Extract the first word of "ar", so it can be a program name with args.
3578set dummy ar; ac_word=$2
5213506e
RW
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580$as_echo_n "checking for $ac_word... " >&6; }
3581if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
88386050
NN
3583else
3584 if test -n "$ac_ct_AR"; then
3585 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3586else
3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH
3589do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
5213506e
RW
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 3594 ac_cv_prog_ac_ct_AR="ar"
5213506e 3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
3596 break 2
3597 fi
3598done
5213506e
RW
3599 done
3600IFS=$as_save_IFS
88386050
NN
3601
3602fi
3603fi
3604ac_ct_AR=$ac_cv_prog_ac_ct_AR
3605if test -n "$ac_ct_AR"; then
5213506e
RW
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3607$as_echo "$ac_ct_AR" >&6; }
88386050 3608else
5213506e
RW
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
88386050 3611fi
b150efee 3612
5213506e
RW
3613 if test "x$ac_ct_AR" = x; then
3614 AR=""
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617yes:)
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620ac_tool_warned=yes ;;
3621esac
3622 AR=$ac_ct_AR
3623 fi
88386050
NN
3624else
3625 AR="$ac_cv_prog_AR"
3626fi
b150efee 3627
88386050
NN
3628if test -n "$ac_tool_prefix"; then
3629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
b150efee 3630set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632$as_echo_n "checking for $ac_word... " >&6; }
3633if test "${ac_cv_prog_RANLIB+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
b150efee
FS
3635else
3636 if test -n "$RANLIB"; then
3637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3638else
88386050
NN
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
5213506e
RW
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 3646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
3648 break 2
3649 fi
3650done
5213506e
RW
3651 done
3652IFS=$as_save_IFS
88386050 3653
b150efee
FS
3654fi
3655fi
88386050 3656RANLIB=$ac_cv_prog_RANLIB
b150efee 3657if test -n "$RANLIB"; then
5213506e
RW
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3659$as_echo "$RANLIB" >&6; }
b150efee 3660else
5213506e
RW
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
b150efee
FS
3663fi
3664
5213506e 3665
88386050 3666fi
b150efee 3667if test -z "$ac_cv_prog_RANLIB"; then
88386050 3668 ac_ct_RANLIB=$RANLIB
b150efee
FS
3669 # Extract the first word of "ranlib", so it can be a program name with args.
3670set dummy ranlib; ac_word=$2
5213506e
RW
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672$as_echo_n "checking for $ac_word... " >&6; }
3673if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
b150efee 3675else
88386050
NN
3676 if test -n "$ac_ct_RANLIB"; then
3677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
bce1b489 3678else
88386050
NN
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
5213506e
RW
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88386050 3686 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
3688 break 2
3689 fi
3690done
5213506e
RW
3691 done
3692IFS=$as_save_IFS
88386050 3693
bce1b489
BE
3694fi
3695fi
88386050
NN
3696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3697if test -n "$ac_ct_RANLIB"; then
5213506e
RW
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3699$as_echo "$ac_ct_RANLIB" >&6; }
bce1b489 3700else
5213506e
RW
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702$as_echo "no" >&6; }
bce1b489
BE
3703fi
3704
5213506e
RW
3705 if test "x$ac_ct_RANLIB" = x; then
3706 RANLIB=":"
3707 else
3708 case $cross_compiling:$ac_tool_warned in
3709yes:)
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3712ac_tool_warned=yes ;;
3713esac
3714 RANLIB=$ac_ct_RANLIB
3715 fi
b150efee 3716else
88386050 3717 RANLIB="$ac_cv_prog_RANLIB"
b150efee
FS
3718fi
3719
9c01f395 3720# Find a good install program. We prefer a C program (faster),
bce1b489
BE
3721# so one script is as good as another. But avoid the broken or
3722# incompatible versions:
3723# SysV /etc/install, /usr/sbin/install
3724# SunOS /usr/etc/install
3725# IRIX /sbin/install
3726# AIX /bin/install
88386050 3727# AmigaOS /C/install, which installs bootblocks on floppy discs
bce1b489
BE
3728# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3729# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3730# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
88386050 3731# OS/2's system install, which has a completely different semantic
bce1b489 3732# ./install, which can be erroneously created by make from ./install.sh.
deb984e6 3733# Reject install programs that cannot install multiple files.
5213506e
RW
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3735$as_echo_n "checking for a BSD-compatible install... " >&6; }
bce1b489 3736if test -z "$INSTALL"; then
5213506e
RW
3737if test "${ac_cv_path_install+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
bce1b489 3739else
88386050
NN
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
5213506e
RW
3745 # Account for people who put trailing slashes in PATH elements.
3746case $as_dir/ in #((
3747 ./ | .// | /[cC]/* | \
88386050 3748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 3749 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
88386050
NN
3750 /usr/ucb/* ) ;;
3751 *)
3752 # OSF1 and SCO ODT 3.0 have their own names for install.
3753 # Don't use installbsd from OSF since it installs stuff as root
3754 # by default.
3755 for ac_prog in ginstall scoinst install; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 3757 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bce1b489 3758 if test $ac_prog = install &&
88386050 3759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
bce1b489
BE
3760 # AIX install. It has an incompatible calling convention.
3761 :
88386050
NN
3762 elif test $ac_prog = install &&
3763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # program-specific install script used by HP pwplus--don't use.
3765 :
bce1b489 3766 else
deb984e6
PB
3767 rm -rf conftest.one conftest.two conftest.dir
3768 echo one > conftest.one
3769 echo two > conftest.two
3770 mkdir conftest.dir
3771 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3772 test -s conftest.one && test -s conftest.two &&
3773 test -s conftest.dir/conftest.one &&
3774 test -s conftest.dir/conftest.two
3775 then
3776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3777 break 3
3778 fi
bce1b489
BE
3779 fi
3780 fi
3781 done
88386050
NN
3782 done
3783 ;;
3784esac
5213506e
RW
3785
3786 done
3787IFS=$as_save_IFS
88386050 3788
deb984e6 3789rm -rf conftest.one conftest.two conftest.dir
bce1b489
BE
3790
3791fi
3792 if test "${ac_cv_path_install+set}" = set; then
88386050 3793 INSTALL=$ac_cv_path_install
bce1b489 3794 else
deb984e6
PB
3795 # As a last resort, use the slow shell script. Don't cache a
3796 # value for INSTALL within a source directory, because that will
bce1b489 3797 # break other packages using the cache if that directory is
deb984e6 3798 # removed, or if the value is a relative name.
88386050 3799 INSTALL=$ac_install_sh
bce1b489
BE
3800 fi
3801fi
5213506e
RW
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3803$as_echo "$INSTALL" >&6; }
bce1b489
BE
3804
3805# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3806# It thinks the first close brace ends the variable substitution.
3807test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3808
88386050 3809test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
da4b1927 3810
bce1b489
BE
3811test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3812
03391b53 3813
5213506e
RW
3814
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3816$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3817 # Check whether --enable-maintainer-mode was given.
3818if test "${enable_maintainer_mode+set}" = set; then :
3819 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
dd365157
MS
3820else
3821 USE_MAINTAINER_MODE=no
5213506e 3822fi
dd365157 3823
5213506e
RW
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3825$as_echo "$USE_MAINTAINER_MODE" >&6; }
3826 if test $USE_MAINTAINER_MODE = yes; then
dd365157
MS
3827 MAINTAINER_MODE_TRUE=
3828 MAINTAINER_MODE_FALSE='#'
3829else
3830 MAINTAINER_MODE_TRUE='#'
3831 MAINTAINER_MODE_FALSE=
3832fi
3833
3834 MAINT=$MAINTAINER_MODE_TRUE
3835
3836
3837
3f35ff6f 3838# Enable Win32 DLL on MS Windows - FIXME
1cf3d07d 3839enable_win32_dll=yes
3f35ff6f 3840
1cf3d07d 3841case $host in
43e02a8a 3842*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
1cf3d07d
SE
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3845set dummy ${ac_tool_prefix}as; ac_word=$2
5213506e
RW
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
3848if test "${ac_cv_prog_AS+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
03391b53 3850else
1cf3d07d
SE
3851 if test -n "$AS"; then
3852 ac_cv_prog_AS="$AS" # Let the user override the test.
03391b53 3853else
1cf3d07d
SE
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
5213506e
RW
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 3861 ac_cv_prog_AS="${ac_tool_prefix}as"
5213506e 3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
3863 break 2
3864 fi
3865done
5213506e
RW
3866 done
3867IFS=$as_save_IFS
1cf3d07d 3868
03391b53
AO
3869fi
3870fi
1cf3d07d
SE
3871AS=$ac_cv_prog_AS
3872if test -n "$AS"; then
5213506e
RW
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3874$as_echo "$AS" >&6; }
03391b53 3875else
5213506e
RW
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
03391b53 3878fi
1cf3d07d 3879
5213506e 3880
1cf3d07d
SE
3881fi
3882if test -z "$ac_cv_prog_AS"; then
3883 ac_ct_AS=$AS
3884 # Extract the first word of "as", so it can be a program name with args.
3885set dummy as; ac_word=$2
5213506e
RW
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887$as_echo_n "checking for $ac_word... " >&6; }
3888if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3889 $as_echo_n "(cached) " >&6
03391b53 3890else
1cf3d07d
SE
3891 if test -n "$ac_ct_AS"; then
3892 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
03391b53 3893else
1cf3d07d
SE
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
5213506e
RW
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 3901 ac_cv_prog_ac_ct_AS="as"
5213506e 3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
3903 break 2
3904 fi
3905done
5213506e
RW
3906 done
3907IFS=$as_save_IFS
1cf3d07d 3908
03391b53
AO
3909fi
3910fi
1cf3d07d
SE
3911ac_ct_AS=$ac_cv_prog_ac_ct_AS
3912if test -n "$ac_ct_AS"; then
5213506e
RW
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3914$as_echo "$ac_ct_AS" >&6; }
1cf3d07d 3915else
5213506e
RW
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917$as_echo "no" >&6; }
1cf3d07d 3918fi
03391b53 3919
5213506e
RW
3920 if test "x$ac_ct_AS" = x; then
3921 AS="false"
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924yes:)
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927ac_tool_warned=yes ;;
3928esac
3929 AS=$ac_ct_AS
3930 fi
03391b53 3931else
1cf3d07d 3932 AS="$ac_cv_prog_AS"
03391b53 3933fi
03391b53 3934
1cf3d07d
SE
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3937set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5213506e
RW
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939$as_echo_n "checking for $ac_word... " >&6; }
3940if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
03391b53 3942else
1cf3d07d
SE
3943 if test -n "$DLLTOOL"; then
3944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
03391b53 3945else
1cf3d07d
SE
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
5213506e
RW
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 3953 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5213506e 3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
3955 break 2
3956 fi
3957done
5213506e
RW
3958 done
3959IFS=$as_save_IFS
1cf3d07d 3960
03391b53
AO
3961fi
3962fi
1cf3d07d
SE
3963DLLTOOL=$ac_cv_prog_DLLTOOL
3964if test -n "$DLLTOOL"; then
5213506e
RW
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3966$as_echo "$DLLTOOL" >&6; }
1fcfac98 3967else
5213506e
RW
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969$as_echo "no" >&6; }
1fcfac98
NN
3970fi
3971
5213506e 3972
1cf3d07d
SE
3973fi
3974if test -z "$ac_cv_prog_DLLTOOL"; then
3975 ac_ct_DLLTOOL=$DLLTOOL
3976 # Extract the first word of "dlltool", so it can be a program name with args.
3977set dummy dlltool; ac_word=$2
5213506e
RW
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979$as_echo_n "checking for $ac_word... " >&6; }
3980if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
03391b53 3982else
1cf3d07d
SE
3983 if test -n "$ac_ct_DLLTOOL"; then
3984 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3985else
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
5213506e
RW
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 3993 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5213506e 3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
3995 break 2
3996 fi
3997done
5213506e
RW
3998 done
3999IFS=$as_save_IFS
03391b53 4000
1cf3d07d
SE
4001fi
4002fi
4003ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4004if test -n "$ac_ct_DLLTOOL"; then
5213506e
RW
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4006$as_echo "$ac_ct_DLLTOOL" >&6; }
1cf3d07d 4007else
5213506e
RW
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
1cf3d07d 4010fi
03391b53 4011
5213506e
RW
4012 if test "x$ac_ct_DLLTOOL" = x; then
4013 DLLTOOL="false"
4014 else
4015 case $cross_compiling:$ac_tool_warned in
4016yes:)
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4019ac_tool_warned=yes ;;
4020esac
4021 DLLTOOL=$ac_ct_DLLTOOL
4022 fi
1cf3d07d
SE
4023else
4024 DLLTOOL="$ac_cv_prog_DLLTOOL"
4025fi
03391b53 4026
1cf3d07d
SE
4027 if test -n "$ac_tool_prefix"; then
4028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4029set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031$as_echo_n "checking for $ac_word... " >&6; }
4032if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4034else
4035 if test -n "$OBJDUMP"; then
4036 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4037else
4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH
4040do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
5213506e
RW
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4045 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
4047 break 2
4048 fi
4049done
5213506e
RW
4050 done
4051IFS=$as_save_IFS
03391b53 4052
1cf3d07d
SE
4053fi
4054fi
4055OBJDUMP=$ac_cv_prog_OBJDUMP
4056if test -n "$OBJDUMP"; then
5213506e
RW
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4058$as_echo "$OBJDUMP" >&6; }
1cf3d07d 4059else
5213506e
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
1cf3d07d 4062fi
33456445 4063
5213506e 4064
1cf3d07d
SE
4065fi
4066if test -z "$ac_cv_prog_OBJDUMP"; then
4067 ac_ct_OBJDUMP=$OBJDUMP
4068 # Extract the first word of "objdump", so it can be a program name with args.
4069set dummy objdump; ac_word=$2
5213506e
RW
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071$as_echo_n "checking for $ac_word... " >&6; }
4072if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4074else
4075 if test -n "$ac_ct_OBJDUMP"; then
4076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4077else
4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
5213506e
RW
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4085 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 4087 break 2
03391b53 4088 fi
1cf3d07d 4089done
5213506e
RW
4090 done
4091IFS=$as_save_IFS
03391b53 4092
1cf3d07d
SE
4093fi
4094fi
4095ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4096if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4098$as_echo "$ac_ct_OBJDUMP" >&6; }
1cf3d07d 4099else
5213506e
RW
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101$as_echo "no" >&6; }
1cf3d07d 4102fi
03391b53 4103
5213506e
RW
4104 if test "x$ac_ct_OBJDUMP" = x; then
4105 OBJDUMP="false"
4106 else
4107 case $cross_compiling:$ac_tool_warned in
4108yes:)
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111ac_tool_warned=yes ;;
4112esac
4113 OBJDUMP=$ac_ct_OBJDUMP
4114 fi
1cf3d07d
SE
4115else
4116 OBJDUMP="$ac_cv_prog_OBJDUMP"
4117fi
03391b53 4118
03391b53 4119 ;;
1cf3d07d 4120esac
03391b53 4121
1cf3d07d 4122test -z "$AS" && AS=as
03391b53 4123
03391b53 4124
33456445 4125
03391b53 4126
03391b53 4127
1cf3d07d 4128test -z "$DLLTOOL" && DLLTOOL=dlltool
03391b53 4129
33456445 4130
03391b53 4131
03391b53 4132
9c01f395 4133
1cf3d07d 4134test -z "$OBJDUMP" && OBJDUMP=objdump
9c01f395 4135
9c01f395 4136
9c01f395 4137
03391b53 4138
6dab073b 4139
6dab073b 4140
6dab073b 4141
6dab073b 4142
467b2e9e
PG
4143case `pwd` in
4144 *\ * | *\ *)
5213506e
RW
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4146$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
467b2e9e 4147esac
6dab073b 4148
6dab073b 4149
1cf3d07d 4150
43e02a8a
RW
4151macro_version='2.2.7a'
4152macro_revision='1.3134'
1cf3d07d
SE
4153
4154
4155
4156
4157
4158
03391b53 4159
1cf3d07d
SE
4160
4161
4162
4163
4164
4165
467b2e9e 4166ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4167
43e02a8a
RW
4168# Backslashify metacharacters that are still active within
4169# double-quoted strings.
4170sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4171
4172# Same as above, but do not quote variable references.
4173double_quote_subst='s/\(["`\\]\)/\\\1/g'
4174
4175# Sed substitution to delay expansion of an escaped shell variable in a
4176# double_quote_subst'ed string.
4177delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4178
4179# Sed substitution to delay expansion of an escaped single quote.
4180delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4181
4182# Sed substitution to avoid accidental globbing in evaled expressions
4183no_glob_subst='s/\*/\\\*/g'
4184
4185ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4186ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4187ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4188
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4190$as_echo_n "checking how to print strings... " >&6; }
4191# Test print first, because it will be a builtin if present.
4192if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4194 ECHO='print -r --'
4195elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4196 ECHO='printf %s\n'
4197else
4198 # Use this function as a fallback that always works.
4199 func_fallback_echo ()
4200 {
4201 eval 'cat <<_LTECHO_EOF
4202$1
4203_LTECHO_EOF'
4204 }
4205 ECHO='func_fallback_echo'
4206fi
4207
4208# func_echo_all arg...
4209# Invoke $ECHO with all args, space-separated.
4210func_echo_all ()
4211{
4212 $ECHO ""
4213}
4214
4215case "$ECHO" in
4216 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4217$as_echo "printf" >&6; } ;;
4218 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4219$as_echo "print -r" >&6; } ;;
4220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4221$as_echo "cat" >&6; } ;;
4222esac
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
5213506e
RW
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4238$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4239if test "${ac_cv_path_SED+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241else
4242 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4243 for ac_i in 1 2 3 4 5 6 7; do
4244 ac_script="$ac_script$as_nl$ac_script"
4245 done
4246 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4247 { ac_script=; unset ac_script;}
4248 if test -z "$SED"; then
4249 ac_path_SED_found=false
4250 # Loop through the user's path and test for each of PROGNAME-LIST
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88386050
NN
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
5213506e 4256 for ac_prog in sed gsed; do
1cf3d07d 4257 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
4258 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4259 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4260# Check for GNU ac_path_SED and select it if it is found.
4261 # Check for GNU $ac_path_SED
4262case `"$ac_path_SED" --version 2>&1` in
4263*GNU*)
4264 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4265*)
4266 ac_count=0
4267 $as_echo_n 0123456789 >"conftest.in"
4268 while :
4269 do
4270 cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 mv "conftest.tmp" "conftest.in"
4272 cp "conftest.in" "conftest.nl"
4273 $as_echo '' >> "conftest.nl"
4274 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276 as_fn_arith $ac_count + 1 && ac_count=$as_val
4277 if test $ac_count -gt ${ac_path_SED_max-0}; then
4278 # Best one so far, save it but keep looking for a better one
4279 ac_cv_path_SED="$ac_path_SED"
4280 ac_path_SED_max=$ac_count
4281 fi
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4284 done
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286esac
4287
4288 $ac_path_SED_found && break 3
1cf3d07d
SE
4289 done
4290 done
5213506e 4291 done
1cf3d07d 4292IFS=$as_save_IFS
5213506e
RW
4293 if test -z "$ac_cv_path_SED"; then
4294 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4295 fi
5213506e
RW
4296else
4297 ac_cv_path_SED=$SED
03391b53
AO
4298fi
4299
5213506e
RW
4300fi
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4302$as_echo "$ac_cv_path_SED" >&6; }
4303 SED="$ac_cv_path_SED"
4304 rm -f conftest.sed
1cf3d07d
SE
4305
4306test -z "$SED" && SED=sed
4307Xsed="$SED -e 1s/^X//"
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
5213506e
RW
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4320$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4321if test "${ac_cv_path_GREP+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323else
4324 if test -z "$GREP"; then
4325 ac_path_GREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in grep ggrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4335 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4336# Check for GNU ac_path_GREP and select it if it is found.
4337 # Check for GNU $ac_path_GREP
4338case `"$ac_path_GREP" --version 2>&1` in
4339*GNU*)
4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341*)
4342 ac_count=0
4343 $as_echo_n 0123456789 >"conftest.in"
4344 while :
4345 do
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'GREP' >> "conftest.nl"
4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 as_fn_arith $ac_count + 1 && ac_count=$as_val
4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP="$ac_path_GREP"
4356 ac_path_GREP_max=$ac_count
4357 fi
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4360 done
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362esac
4363
4364 $ac_path_GREP_found && break 3
4365 done
4366 done
4367 done
4368IFS=$as_save_IFS
4369 if test -z "$ac_cv_path_GREP"; then
4370 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 fi
4372else
4373 ac_cv_path_GREP=$GREP
4374fi
4375
4376fi
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4378$as_echo "$ac_cv_path_GREP" >&6; }
4379 GREP="$ac_cv_path_GREP"
4380
4381
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4383$as_echo_n "checking for egrep... " >&6; }
4384if test "${ac_cv_path_EGREP+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
03391b53 4386else
5213506e
RW
4387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4388 then ac_cv_path_EGREP="$GREP -E"
4389 else
4390 if test -z "$EGREP"; then
4391 ac_path_EGREP_found=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_prog in egrep; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4401 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4402# Check for GNU ac_path_EGREP and select it if it is found.
4403 # Check for GNU $ac_path_EGREP
4404case `"$ac_path_EGREP" --version 2>&1` in
4405*GNU*)
4406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4407*)
4408 ac_count=0
4409 $as_echo_n 0123456789 >"conftest.in"
4410 while :
4411 do
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo 'EGREP' >> "conftest.nl"
4416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
4419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_EGREP="$ac_path_EGREP"
4422 ac_path_EGREP_max=$ac_count
1cf3d07d 4423 fi
5213506e
RW
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4426 done
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428esac
4429
4430 $ac_path_EGREP_found && break 3
4431 done
4432 done
4433 done
4434IFS=$as_save_IFS
4435 if test -z "$ac_cv_path_EGREP"; then
4436 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437 fi
4438else
4439 ac_cv_path_EGREP=$EGREP
4440fi
4441
4442 fi
03391b53 4443fi
5213506e
RW
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4445$as_echo "$ac_cv_path_EGREP" >&6; }
4446 EGREP="$ac_cv_path_EGREP"
03391b53 4447
1cf3d07d 4448
5213506e
RW
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4450$as_echo_n "checking for fgrep... " >&6; }
4451if test "${ac_cv_path_FGREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
03391b53 4453else
5213506e
RW
4454 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4455 then ac_cv_path_FGREP="$GREP -F"
4456 else
4457 if test -z "$FGREP"; then
4458 ac_path_FGREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in fgrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4468 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4469# Check for GNU ac_path_FGREP and select it if it is found.
4470 # Check for GNU $ac_path_FGREP
4471case `"$ac_path_FGREP" --version 2>&1` in
4472*GNU*)
4473 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4474*)
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4478 do
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'FGREP' >> "conftest.nl"
4483 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_FGREP="$ac_path_FGREP"
4489 ac_path_FGREP_max=$ac_count
1cf3d07d 4490 fi
5213506e
RW
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495esac
4496
4497 $ac_path_FGREP_found && break 3
4498 done
4499 done
4500 done
4501IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_FGREP"; then
4503 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4504 fi
4505else
4506 ac_cv_path_FGREP=$FGREP
1cf3d07d 4507fi
5213506e
RW
4508
4509 fi
4510fi
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4512$as_echo "$ac_cv_path_FGREP" >&6; }
4513 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
4514
4515
4516test -z "$GREP" && GREP=grep
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
5213506e
RW
4536# Check whether --with-gnu-ld was given.
4537if test "${with_gnu_ld+set}" = set; then :
4538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1cf3d07d
SE
4539else
4540 with_gnu_ld=no
5213506e
RW
4541fi
4542
1cf3d07d
SE
4543ac_prog=ld
4544if test "$GCC" = yes; then
4545 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4547$as_echo_n "checking for ld used by $CC... " >&6; }
1cf3d07d
SE
4548 case $host in
4549 *-*-mingw*)
4550 # gcc leaves a trailing carriage return which upsets mingw
4551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4552 *)
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4554 esac
4555 case $ac_prog in
4556 # Accept absolute paths.
4557 [\\/]* | ?:[\\/]*)
4558 re_direlt='/[^/][^/]*/\.\./'
4559 # Canonicalize the pathname of ld
4560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4563 done
4564 test -z "$LD" && LD="$ac_prog"
4565 ;;
4566 "")
4567 # If it fails, then pretend we aren't using GCC.
4568 ac_prog=ld
4569 ;;
4570 *)
4571 # If it is relative, then search for the first ld in PATH.
4572 with_gnu_ld=unknown
4573 ;;
4574 esac
4575elif test "$with_gnu_ld" = yes; then
5213506e
RW
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4577$as_echo_n "checking for GNU ld... " >&6; }
1cf3d07d 4578else
5213506e
RW
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4580$as_echo_n "checking for non-GNU ld... " >&6; }
1cf3d07d 4581fi
5213506e
RW
4582if test "${lt_cv_path_LD+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4584else
4585 if test -z "$LD"; then
4586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4587 for ac_dir in $PATH; do
4588 IFS="$lt_save_ifs"
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4591 lt_cv_path_LD="$ac_dir/$ac_prog"
4592 # Check to see if the program is GNU ld. I'd rather use --version,
4593 # but apparently some variants of GNU ld only accept -v.
4594 # Break only if it was the GNU/non-GNU ld that we prefer.
4595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4596 *GNU* | *'with BFD'*)
4597 test "$with_gnu_ld" != no && break
4598 ;;
4599 *)
4600 test "$with_gnu_ld" != yes && break
4601 ;;
4602 esac
4603 fi
4604 done
4605 IFS="$lt_save_ifs"
4606else
4607 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4608fi
4609fi
4610
4611LD="$lt_cv_path_LD"
4612if test -n "$LD"; then
5213506e
RW
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4614$as_echo "$LD" >&6; }
1cf3d07d 4615else
5213506e
RW
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617$as_echo "no" >&6; }
1cf3d07d 4618fi
5213506e
RW
4619test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4621$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4622if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4624else
4625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4626case `$LD -v 2>&1 </dev/null` in
4627*GNU* | *'with BFD'*)
4628 lt_cv_prog_gnu_ld=yes
4629 ;;
4630*)
4631 lt_cv_prog_gnu_ld=no
4632 ;;
4633esac
4634fi
5213506e
RW
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4636$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1cf3d07d
SE
4637with_gnu_ld=$lt_cv_prog_gnu_ld
4638
4639
4640
4641
4642
4643
4644
4645
4646
5213506e
RW
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4648$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4649if test "${lt_cv_path_NM+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4651else
4652 if test -n "$NM"; then
4653 # Let the user override the test.
4654 lt_cv_path_NM="$NM"
4655else
4656 lt_nm_to_check="${ac_tool_prefix}nm"
4657 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4658 lt_nm_to_check="$lt_nm_to_check nm"
4659 fi
4660 for lt_tmp_nm in $lt_nm_to_check; do
4661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4662 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4663 IFS="$lt_save_ifs"
4664 test -z "$ac_dir" && ac_dir=.
4665 tmp_nm="$ac_dir/$lt_tmp_nm"
4666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4667 # Check to see if the nm accepts a BSD-compat flag.
4668 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4669 # nm: unknown option "B" ignored
4670 # Tru64's nm complains that /dev/null is an invalid object file
4671 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4672 */dev/null* | *'Invalid file or object type'*)
4673 lt_cv_path_NM="$tmp_nm -B"
4674 break
4675 ;;
4676 *)
4677 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4678 */dev/null*)
4679 lt_cv_path_NM="$tmp_nm -p"
4680 break
4681 ;;
4682 *)
4683 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4684 continue # so that we can try to find one that supports BSD flags
4685 ;;
4686 esac
4687 ;;
4688 esac
4689 fi
4690 done
4691 IFS="$lt_save_ifs"
4692 done
4693 : ${lt_cv_path_NM=no}
4694fi
4695fi
5213506e
RW
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4697$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
4698if test "$lt_cv_path_NM" != "no"; then
4699 NM="$lt_cv_path_NM"
4700else
4701 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
4702 if test -n "$DUMPBIN"; then :
4703 # Let the user override the test.
4704 else
4705 if test -n "$ac_tool_prefix"; then
4706 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4707 do
4708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711$as_echo_n "checking for $ac_word... " >&6; }
4712if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4714else
4715 if test -n "$DUMPBIN"; then
4716 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4717else
4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721 IFS=$as_save_IFS
88386050 4722 test -z "$as_dir" && as_dir=.
5213506e
RW
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4725 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
4727 break 2
4728 fi
4729done
5213506e
RW
4730 done
4731IFS=$as_save_IFS
88386050 4732
03391b53
AO
4733fi
4734fi
1cf3d07d
SE
4735DUMPBIN=$ac_cv_prog_DUMPBIN
4736if test -n "$DUMPBIN"; then
5213506e
RW
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4738$as_echo "$DUMPBIN" >&6; }
03391b53 4739else
5213506e
RW
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
03391b53
AO
4742fi
4743
5213506e 4744
1cf3d07d
SE
4745 test -n "$DUMPBIN" && break
4746 done
88386050 4747fi
1cf3d07d
SE
4748if test -z "$DUMPBIN"; then
4749 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 4750 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4751do
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753set dummy $ac_prog; ac_word=$2
5213506e
RW
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755$as_echo_n "checking for $ac_word... " >&6; }
4756if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
03391b53 4758else
1cf3d07d
SE
4759 if test -n "$ac_ct_DUMPBIN"; then
4760 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
03391b53 4761else
88386050
NN
4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
5213506e
RW
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4769 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88386050
NN
4771 break 2
4772 fi
4773done
5213506e
RW
4774 done
4775IFS=$as_save_IFS
88386050 4776
03391b53
AO
4777fi
4778fi
1cf3d07d
SE
4779ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4780if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4782$as_echo "$ac_ct_DUMPBIN" >&6; }
03391b53 4783else
5213506e
RW
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
03391b53
AO
4786fi
4787
5213506e 4788
1cf3d07d
SE
4789 test -n "$ac_ct_DUMPBIN" && break
4790done
1cf3d07d 4791
5213506e
RW
4792 if test "x$ac_ct_DUMPBIN" = x; then
4793 DUMPBIN=":"
4794 else
4795 case $cross_compiling:$ac_tool_warned in
4796yes:)
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799ac_tool_warned=yes ;;
4800esac
4801 DUMPBIN=$ac_ct_DUMPBIN
4802 fi
1cf3d07d
SE
4803fi
4804
43e02a8a
RW
4805 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4806 *COFF*)
4807 DUMPBIN="$DUMPBIN -symbols"
4808 ;;
4809 *)
4810 DUMPBIN=:
4811 ;;
4812 esac
4813 fi
1cf3d07d
SE
4814
4815 if test "$DUMPBIN" != ":"; then
4816 NM="$DUMPBIN"
4817 fi
4818fi
4819test -z "$NM" && NM=nm
4820
4821
4822
4823
4824
4825
5213506e
RW
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4827$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4828if test "${lt_cv_nm_interface+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
03391b53 4830else
1cf3d07d
SE
4831 lt_cv_nm_interface="BSD nm"
4832 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 4833 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
4834 (eval "$ac_compile" 2>conftest.err)
4835 cat conftest.err >&5
43e02a8a 4836 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4837 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4838 cat conftest.err >&5
43e02a8a 4839 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
4840 cat conftest.out >&5
4841 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4842 lt_cv_nm_interface="MS dumpbin"
4843 fi
4844 rm -f conftest*
4845fi
5213506e
RW
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4847$as_echo "$lt_cv_nm_interface" >&6; }
1cf3d07d 4848
5213506e
RW
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4850$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
4851LN_S=$as_ln_s
4852if test "$LN_S" = "ln -s"; then
5213506e
RW
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854$as_echo "yes" >&6; }
1cf3d07d 4855else
5213506e
RW
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4857$as_echo "no, using $LN_S" >&6; }
03391b53
AO
4858fi
4859
1cf3d07d 4860# find the maximum length of command line arguments
5213506e
RW
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4862$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4863if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4865else
4866 i=0
4867 teststring="ABCD"
4868
4869 case $build_os in
4870 msdosdjgpp*)
4871 # On DJGPP, this test can blow up pretty badly due to problems in libc
4872 # (any single argument exceeding 2000 bytes causes a buffer overrun
4873 # during glob expansion). Even if it were fixed, the result of this
4874 # check would be larger than it should be.
4875 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4876 ;;
4877
4878 gnu*)
4879 # Under GNU Hurd, this test is not required because there is
4880 # no limit to the length of command line arguments.
4881 # Libtool will interpret -1 as no limit whatsoever
4882 lt_cv_sys_max_cmd_len=-1;
4883 ;;
4884
467b2e9e 4885 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
4886 # On Win9x/ME, this test blows up -- it succeeds, but takes
4887 # about 5 minutes as the teststring grows exponentially.
4888 # Worse, since 9x/ME are not pre-emptively multitasking,
4889 # you end up with a "frozen" computer, even though with patience
4890 # the test eventually succeeds (with a max line length of 256k).
4891 # Instead, let's just punt: use the minimum linelength reported by
4892 # all of the supported platforms: 8192 (on NT/2K/XP).
4893 lt_cv_sys_max_cmd_len=8192;
4894 ;;
4895
43e02a8a
RW
4896 mint*)
4897 # On MiNT this can take a long time and run out of memory.
4898 lt_cv_sys_max_cmd_len=8192;
4899 ;;
4900
1cf3d07d
SE
4901 amigaos*)
4902 # On AmigaOS with pdksh, this test takes hours, literally.
4903 # So we just punt and use a minimum line length of 8192.
4904 lt_cv_sys_max_cmd_len=8192;
4905 ;;
4906
4907 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4908 # This has been around since 386BSD, at least. Likely further.
4909 if test -x /sbin/sysctl; then
4910 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4911 elif test -x /usr/sbin/sysctl; then
4912 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4913 else
4914 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4915 fi
4916 # And add a safety zone
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4919 ;;
4920
4921 interix*)
4922 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4923 lt_cv_sys_max_cmd_len=196608
4924 ;;
4925
4926 osf*)
4927 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4928 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4929 # nice to cause kernel panics so lets avoid the loop below.
4930 # First set a reasonable default.
4931 lt_cv_sys_max_cmd_len=16384
4932 #
4933 if test -x /sbin/sysconfig; then
4934 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4935 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4936 esac
4937 fi
4938 ;;
4939 sco3.2v5*)
4940 lt_cv_sys_max_cmd_len=102400
4941 ;;
4942 sysv5* | sco5v6* | sysv4.2uw2*)
4943 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4944 if test -n "$kargmax"; then
4945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4946 else
4947 lt_cv_sys_max_cmd_len=32768
4948 fi
4949 ;;
4950 *)
467b2e9e
PG
4951 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4952 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4955 else
4956 # Make teststring a little bigger before we do anything with it.
4957 # a 1K string should be a reasonable start.
4958 for i in 1 2 3 4 5 6 7 8 ; do
4959 teststring=$teststring$teststring
4960 done
4961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4962 # If test is not a shell built-in, we'll probably end up computing a
4963 # maximum length that is only half of the actual maximum length, but
4964 # we can't tell.
43e02a8a
RW
4965 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4966 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
4967 test $i != 17 # 1/2 MB should be enough
4968 do
4969 i=`expr $i + 1`
4970 teststring=$teststring$teststring
4971 done
4972 # Only check the string length outside the loop.
4973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4974 teststring=
4975 # Add a significant safety factor because C++ compilers can tack on
4976 # massive amounts of additional arguments before passing them to the
4977 # linker. It appears as though 1/2 is a usable value.
4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4979 fi
1cf3d07d
SE
4980 ;;
4981 esac
4982
4983fi
4984
4985if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4987$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 4988else
5213506e
RW
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4990$as_echo "none" >&6; }
1cf3d07d
SE
4991fi
4992max_cmd_len=$lt_cv_sys_max_cmd_len
4993
4994
4995
4996
4997
4998
1cf3d07d
SE
4999: ${CP="cp -f"}
5000: ${MV="mv -f"}
5001: ${RM="rm -f"}
5002
5213506e
RW
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5004$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5005# Try some XSI features
5006xsi_shell=no
5007( _lt_dummy="a/b/c"
5008 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
467b2e9e
PG
5009 = c,a/b,, \
5010 && eval 'test $(( 1 + 1 )) -eq 2 \
5011 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5012 && xsi_shell=yes
5213506e
RW
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5014$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5015
5016
5213506e
RW
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5018$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5019lt_shell_append=no
5020( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5021 >/dev/null 2>&1 \
5022 && lt_shell_append=yes
5213506e
RW
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5024$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5025
5026
5027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5028 lt_unset=unset
5029else
5030 lt_unset=false
5031fi
5032
5033
5034
5035
5036
5037# test EBCDIC or ASCII
5038case `echo X|tr X '\101'` in
5039 A) # ASCII based system
5040 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5041 lt_SP2NL='tr \040 \012'
5042 lt_NL2SP='tr \015\012 \040\040'
5043 ;;
5044 *) # EBCDIC based system
5045 lt_SP2NL='tr \100 \n'
5046 lt_NL2SP='tr \r\n \100\100'
5047 ;;
5048esac
5049
5050
5051
5052
5053
5054
5055
5056
5057
5213506e
RW
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5059$as_echo_n "checking for $LD option to reload object files... " >&6; }
5060if test "${lt_cv_ld_reload_flag+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5062else
5063 lt_cv_ld_reload_flag='-r'
5064fi
5213506e
RW
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5066$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5067reload_flag=$lt_cv_ld_reload_flag
5068case $reload_flag in
5069"" | " "*) ;;
5070*) reload_flag=" $reload_flag" ;;
5071esac
5072reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073case $host_os in
5074 darwin*)
5075 if test "$GCC" = yes; then
5076 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5077 else
5078 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5079 fi
5080 ;;
5081esac
5082
5083
5084
5085
5086
5087
5088
5089
5090
467b2e9e
PG
5091if test -n "$ac_tool_prefix"; then
5092 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5093set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095$as_echo_n "checking for $ac_word... " >&6; }
5096if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
467b2e9e
PG
5098else
5099 if test -n "$OBJDUMP"; then
5100 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5213506e
RW
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 5109 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
5111 break 2
5112 fi
5113done
5213506e
RW
5114 done
5115IFS=$as_save_IFS
467b2e9e
PG
5116
5117fi
5118fi
5119OBJDUMP=$ac_cv_prog_OBJDUMP
5120if test -n "$OBJDUMP"; then
5213506e
RW
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5122$as_echo "$OBJDUMP" >&6; }
467b2e9e 5123else
5213506e
RW
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125$as_echo "no" >&6; }
467b2e9e
PG
5126fi
5127
5213506e 5128
467b2e9e
PG
5129fi
5130if test -z "$ac_cv_prog_OBJDUMP"; then
5131 ac_ct_OBJDUMP=$OBJDUMP
5132 # Extract the first word of "objdump", so it can be a program name with args.
5133set dummy objdump; ac_word=$2
5213506e
RW
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
467b2e9e
PG
5138else
5139 if test -n "$ac_ct_OBJDUMP"; then
5140 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5213506e
RW
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 5149 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
5151 break 2
5152 fi
5153done
5213506e
RW
5154 done
5155IFS=$as_save_IFS
467b2e9e 5156
467b2e9e
PG
5157fi
5158fi
5159ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5160if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5162$as_echo "$ac_ct_OBJDUMP" >&6; }
467b2e9e 5163else
5213506e
RW
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
467b2e9e
PG
5166fi
5167
5213506e
RW
5168 if test "x$ac_ct_OBJDUMP" = x; then
5169 OBJDUMP="false"
5170 else
5171 case $cross_compiling:$ac_tool_warned in
5172yes:)
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5175ac_tool_warned=yes ;;
5176esac
5177 OBJDUMP=$ac_ct_OBJDUMP
5178 fi
467b2e9e
PG
5179else
5180 OBJDUMP="$ac_cv_prog_OBJDUMP"
5181fi
5182
5183test -z "$OBJDUMP" && OBJDUMP=objdump
5184
5185
5186
5187
5188
1cf3d07d 5189
5213506e
RW
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5191$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5192if test "${lt_cv_deplibs_check_method+set}" = set; then :
5193 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5194else
5195 lt_cv_file_magic_cmd='$MAGIC_CMD'
5196lt_cv_file_magic_test_file=
5197lt_cv_deplibs_check_method='unknown'
5198# Need to set the preceding variable on all platforms that support
5199# interlibrary dependencies.
5200# 'none' -- dependencies not supported.
5201# `unknown' -- same as none, but documents that we really don't know.
5202# 'pass_all' -- all dependencies passed with no checks.
5203# 'test_compile' -- check by making test program.
5204# 'file_magic [[regex]]' -- check by looking for files in library path
5205# which responds to the $file_magic_cmd with a given extended regex.
5206# If you have `file' or equivalent on your system and you're not sure
5207# whether `pass_all' will *always* work, you probably want this one.
5208
5209case $host_os in
e7ad4ca7 5210aix[4-9]*)
1cf3d07d
SE
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213
5214beos*)
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
5217
5218bsdi[45]*)
5219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5220 lt_cv_file_magic_cmd='/usr/bin/file -L'
5221 lt_cv_file_magic_test_file=/shlib/libc.so
5222 ;;
5223
5224cygwin*)
5225 # func_win32_libid is a shell function defined in ltmain.sh
5226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5227 lt_cv_file_magic_cmd='func_win32_libid'
5228 ;;
5229
5230mingw* | pw32*)
5231 # Base MSYS/MinGW do not provide the 'file' command needed by
5232 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5233 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
5234 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5235 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
5236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237 lt_cv_file_magic_cmd='func_win32_libid'
5238 else
5239 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5240 lt_cv_file_magic_cmd='$OBJDUMP -f'
5241 fi
5242 ;;
5243
43e02a8a 5244cegcc*)
467b2e9e
PG
5245 # use the weaker test based on 'objdump'. See mingw*.
5246 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5247 lt_cv_file_magic_cmd='$OBJDUMP -f'
5248 ;;
5249
1cf3d07d
SE
5250darwin* | rhapsody*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254freebsd* | dragonfly*)
5255 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5256 case $host_cpu in
5257 i*86 )
5258 # Not sure whether the presence of OpenBSD here was a mistake.
5259 # Let's accept both of them until this is cleared up.
5260 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5261 lt_cv_file_magic_cmd=/usr/bin/file
5262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5263 ;;
5264 esac
5265 else
5266 lt_cv_deplibs_check_method=pass_all
5267 fi
5268 ;;
5269
5270gnu*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
43e02a8a
RW
5274haiku*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
1cf3d07d
SE
5278hpux10.20* | hpux11*)
5279 lt_cv_file_magic_cmd=/usr/bin/file
5280 case $host_cpu in
5281 ia64*)
5282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5284 ;;
5285 hppa*64*)
43e02a8a 5286 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]'
1cf3d07d
SE
5287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5288 ;;
5289 *)
43e02a8a 5290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
5291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5292 ;;
5293 esac
5294 ;;
5295
5296interix[3-9]*)
5297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5299 ;;
5300
5301irix5* | irix6* | nonstopux*)
5302 case $LD in
5303 *-32|*"-32 ") libmagic=32-bit;;
5304 *-n32|*"-n32 ") libmagic=N32;;
5305 *-64|*"-64 ") libmagic=64-bit;;
5306 *) libmagic=never-match;;
5307 esac
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310
5311# This must be Linux ELF.
7a9d3fe8 5312linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316netbsd*)
5317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5319 else
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5321 fi
5322 ;;
5323
5324newos6*)
5325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5326 lt_cv_file_magic_cmd=/usr/bin/file
5327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5328 ;;
5329
5330*nto* | *qnx*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
5333
5334openbsd*)
5335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5337 else
5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5339 fi
5340 ;;
5341
5342osf3* | osf4* | osf5*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
5346rdos*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
5350solaris*)
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353
5354sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357
5358sysv4 | sysv4.3*)
5359 case $host_vendor in
5360 motorola)
5361 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]'
5362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5363 ;;
5364 ncr)
5365 lt_cv_deplibs_check_method=pass_all
5366 ;;
5367 sequent)
5368 lt_cv_file_magic_cmd='/bin/file'
5369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5370 ;;
5371 sni)
5372 lt_cv_file_magic_cmd='/bin/file'
5373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5374 lt_cv_file_magic_test_file=/lib/libc.so
5375 ;;
5376 siemens)
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
5379 pc)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382 esac
5383 ;;
5384
5385tpf*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388esac
5389
5390fi
5213506e
RW
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5392$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
5393file_magic_cmd=$lt_cv_file_magic_cmd
5394deplibs_check_method=$lt_cv_deplibs_check_method
5395test -z "$deplibs_check_method" && deplibs_check_method=unknown
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408if test -n "$ac_tool_prefix"; then
5409 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5410set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412$as_echo_n "checking for $ac_word... " >&6; }
5413if test "${ac_cv_prog_AR+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5415else
5416 if test -n "$AR"; then
5417 ac_cv_prog_AR="$AR" # Let the user override the test.
5418else
5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5213506e
RW
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5426 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5428 break 2
5429 fi
5430done
5213506e
RW
5431 done
5432IFS=$as_save_IFS
1cf3d07d
SE
5433
5434fi
5435fi
5436AR=$ac_cv_prog_AR
5437if test -n "$AR"; then
5213506e
RW
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5439$as_echo "$AR" >&6; }
1cf3d07d 5440else
5213506e
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442$as_echo "no" >&6; }
1cf3d07d
SE
5443fi
5444
5213506e 5445
1cf3d07d
SE
5446fi
5447if test -z "$ac_cv_prog_AR"; then
5448 ac_ct_AR=$AR
5449 # Extract the first word of "ar", so it can be a program name with args.
5450set dummy ar; ac_word=$2
5213506e
RW
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452$as_echo_n "checking for $ac_word... " >&6; }
5453if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5455else
5456 if test -n "$ac_ct_AR"; then
5457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5458else
5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH
5461do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5213506e
RW
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5466 ac_cv_prog_ac_ct_AR="ar"
5213506e 5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5468 break 2
5469 fi
5470done
5213506e
RW
5471 done
5472IFS=$as_save_IFS
1cf3d07d 5473
1cf3d07d
SE
5474fi
5475fi
5476ac_ct_AR=$ac_cv_prog_ac_ct_AR
5477if test -n "$ac_ct_AR"; then
5213506e
RW
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5479$as_echo "$ac_ct_AR" >&6; }
1cf3d07d 5480else
5213506e
RW
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482$as_echo "no" >&6; }
1cf3d07d
SE
5483fi
5484
5213506e
RW
5485 if test "x$ac_ct_AR" = x; then
5486 AR="false"
5487 else
5488 case $cross_compiling:$ac_tool_warned in
5489yes:)
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492ac_tool_warned=yes ;;
5493esac
5494 AR=$ac_ct_AR
5495 fi
1cf3d07d
SE
5496else
5497 AR="$ac_cv_prog_AR"
5498fi
5499
5500test -z "$AR" && AR=ar
5501test -z "$AR_FLAGS" && AR_FLAGS=cru
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517$as_echo_n "checking for $ac_word... " >&6; }
5518if test "${ac_cv_prog_STRIP+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5520else
5521 if test -n "$STRIP"; then
5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5213506e
RW
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5533 break 2
5534 fi
5535done
5213506e
RW
5536 done
5537IFS=$as_save_IFS
1cf3d07d
SE
5538
5539fi
5540fi
5541STRIP=$ac_cv_prog_STRIP
5542if test -n "$STRIP"; then
5213506e
RW
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5544$as_echo "$STRIP" >&6; }
1cf3d07d 5545else
5213506e
RW
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
1cf3d07d
SE
5548fi
5549
5213506e 5550
1cf3d07d
SE
5551fi
5552if test -z "$ac_cv_prog_STRIP"; then
5553 ac_ct_STRIP=$STRIP
5554 # Extract the first word of "strip", so it can be a program name with args.
5555set dummy strip; ac_word=$2
5213506e
RW
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5560else
5561 if test -n "$ac_ct_STRIP"; then
5562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5213506e
RW
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5571 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5573 break 2
5574 fi
5575done
5213506e
RW
5576 done
5577IFS=$as_save_IFS
1cf3d07d 5578
1cf3d07d
SE
5579fi
5580fi
5581ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5582if test -n "$ac_ct_STRIP"; then
5213506e
RW
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5584$as_echo "$ac_ct_STRIP" >&6; }
1cf3d07d 5585else
5213506e
RW
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
1cf3d07d
SE
5588fi
5589
5213506e
RW
5590 if test "x$ac_ct_STRIP" = x; then
5591 STRIP=":"
5592 else
5593 case $cross_compiling:$ac_tool_warned in
5594yes:)
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597ac_tool_warned=yes ;;
5598esac
5599 STRIP=$ac_ct_STRIP
5600 fi
1cf3d07d
SE
5601else
5602 STRIP="$ac_cv_prog_STRIP"
5603fi
5604
5605test -z "$STRIP" && STRIP=:
5606
5607
5608
5609
5610
5611
5612if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5614set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if test "${ac_cv_prog_RANLIB+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5619else
5620 if test -n "$RANLIB"; then
5621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5213506e
RW
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5632 break 2
5633 fi
5634done
5213506e
RW
5635 done
5636IFS=$as_save_IFS
1cf3d07d
SE
5637
5638fi
5639fi
5640RANLIB=$ac_cv_prog_RANLIB
5641if test -n "$RANLIB"; then
5213506e
RW
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5643$as_echo "$RANLIB" >&6; }
1cf3d07d 5644else
5213506e
RW
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
1cf3d07d
SE
5647fi
5648
5213506e 5649
1cf3d07d
SE
5650fi
5651if test -z "$ac_cv_prog_RANLIB"; then
5652 ac_ct_RANLIB=$RANLIB
5653 # Extract the first word of "ranlib", so it can be a program name with args.
5654set dummy ranlib; ac_word=$2
5213506e
RW
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656$as_echo_n "checking for $ac_word... " >&6; }
5657if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5659else
5660 if test -n "$ac_ct_RANLIB"; then
5661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5213506e
RW
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5670 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5672 break 2
5673 fi
5674done
5213506e
RW
5675 done
5676IFS=$as_save_IFS
1cf3d07d 5677
1cf3d07d
SE
5678fi
5679fi
5680ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5681if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5683$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 5684else
5213506e
RW
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686$as_echo "no" >&6; }
1cf3d07d
SE
5687fi
5688
5213506e
RW
5689 if test "x$ac_ct_RANLIB" = x; then
5690 RANLIB=":"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693yes:)
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696ac_tool_warned=yes ;;
5697esac
5698 RANLIB=$ac_ct_RANLIB
5699 fi
1cf3d07d
SE
5700else
5701 RANLIB="$ac_cv_prog_RANLIB"
5702fi
5703
5704test -z "$RANLIB" && RANLIB=:
5705
5706
5707
5708
5709
5710
5711# Determine commands to create old-style static archives.
467b2e9e 5712old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5713old_postinstall_cmds='chmod 644 $oldlib'
5714old_postuninstall_cmds=
5715
5716if test -n "$RANLIB"; then
5717 case $host_os in
5718 openbsd*)
5719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5720 ;;
5721 *)
5722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5723 ;;
5724 esac
5725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5726fi
5727
43e02a8a
RW
5728case $host_os in
5729 darwin*)
5730 lock_old_archive_extraction=yes ;;
5731 *)
5732 lock_old_archive_extraction=no ;;
5733esac
1cf3d07d
SE
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
43e02a8a
RW
5754
5755for ac_prog in gawk mawk nawk awk
5756do
5757 # Extract the first word of "$ac_prog", so it can be a program name with args.
5758set dummy $ac_prog; ac_word=$2
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760$as_echo_n "checking for $ac_word... " >&6; }
5761if test "${ac_cv_prog_AWK+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763else
5764 if test -n "$AWK"; then
5765 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5766else
5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH
5769do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_AWK="$ac_prog"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778done
5779 done
5780IFS=$as_save_IFS
5781
5782fi
5783fi
5784AWK=$ac_cv_prog_AWK
5785if test -n "$AWK"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5787$as_echo "$AWK" >&6; }
5788else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790$as_echo "no" >&6; }
5791fi
5792
5793
5794 test -n "$AWK" && break
5795done
5796
5797
5798
5799
5800
5801
1cf3d07d
SE
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815# If no C compiler was specified, use CC.
5816LTCC=${LTCC-"$CC"}
5817
5818# If no C compiler flags were specified, use CFLAGS.
5819LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5820
5821# Allow CC to be a program name with arguments.
5822compiler=$CC
5823
5824
5825# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5827$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5828if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5830else
5831
5832# These are sane defaults that work on at least a few old systems.
5833# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5834
5835# Character class describing NM global symbol codes.
5836symcode='[BCDEGRST]'
5837
5838# Regexp to match symbols that can be accessed directly from C.
5839sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5840
5841# Define system-specific variables.
5842case $host_os in
5843aix*)
5844 symcode='[BCDT]'
5845 ;;
467b2e9e 5846cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
5847 symcode='[ABCDGISTW]'
5848 ;;
5849hpux*)
5850 if test "$host_cpu" = ia64; then
5851 symcode='[ABCDEGRST]'
5852 fi
5853 ;;
5854irix* | nonstopux*)
5855 symcode='[BCDEGRST]'
5856 ;;
5857osf*)
5858 symcode='[BCDEGQRST]'
5859 ;;
5860solaris*)
5861 symcode='[BDRT]'
5862 ;;
5863sco3.2v5*)
5864 symcode='[DT]'
5865 ;;
5866sysv4.2uw2*)
5867 symcode='[DT]'
5868 ;;
5869sysv5* | sco5v6* | unixware* | OpenUNIX*)
5870 symcode='[ABDT]'
5871 ;;
5872sysv4)
5873 symcode='[DFNSTU]'
5874 ;;
5875esac
5876
5877# If we're using GNU nm, then use its standard symbol codes.
5878case `$NM -V 2>&1` in
5879*GNU* | *'with BFD'*)
5880 symcode='[ABCDGIRSTW]' ;;
5881esac
5882
5883# Transform an extracted symbol line into a proper C declaration.
5884# Some systems (esp. on ia64) link data and code symbols differently,
5885# so use this general approach.
5886lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5887
5888# Transform an extracted symbol line into symbol name and symbol address
5889lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
467b2e9e 5890lt_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'"
1cf3d07d
SE
5891
5892# Handle CRLF in mingw tool chain
5893opt_cr=
5894case $build_os in
5895mingw*)
5896 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5897 ;;
5898esac
5899
5900# Try without a prefix underscore, then with it.
5901for ac_symprfx in "" "_"; do
5902
5903 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5904 symxfrm="\\1 $ac_symprfx\\2 \\2"
5905
5906 # Write the raw and C identifiers.
5907 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5908 # Fake it for dumpbin and say T for any non-static function
5909 # and D for any global variable.
5910 # Also find C++ and __fastcall symbols from MSVC++,
5911 # which start with @ or ?.
5912 lt_cv_sys_global_symbol_pipe="$AWK '"\
5913" {last_section=section; section=\$ 3};"\
5914" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5915" \$ 0!~/External *\|/{next};"\
5916" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5917" {if(hide[section]) next};"\
5918" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5919" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5920" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5921" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5922" ' prfx=^$ac_symprfx"
5923 else
5924 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5925 fi
5926
5927 # Check to see that the pipe works correctly.
5928 pipe_works=no
5929
5930 rm -f conftest*
5931 cat > conftest.$ac_ext <<_LT_EOF
5932#ifdef __cplusplus
5933extern "C" {
5934#endif
5935char nm_test_var;
5936void nm_test_func(void);
5937void nm_test_func(void){}
5938#ifdef __cplusplus
5939}
5940#endif
5941int main(){nm_test_var='a';nm_test_func();return(0);}
5942_LT_EOF
5943
5213506e 5944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
5945 (eval $ac_compile) 2>&5
5946 ac_status=$?
5213506e
RW
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948 test $ac_status = 0; }; then
1cf3d07d
SE
5949 # Now try to grab the symbols.
5950 nlist=conftest.nm
43e02a8a
RW
5951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5952 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 5953 ac_status=$?
5213506e
RW
5954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5955 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
5956 # Try sorting and uniquifying the output.
5957 if sort "$nlist" | uniq > "$nlist"T; then
5958 mv -f "$nlist"T "$nlist"
5959 else
5960 rm -f "$nlist"T
5961 fi
5962
5963 # Make sure that we snagged all the symbols we need.
5964 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5965 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5966 cat <<_LT_EOF > conftest.$ac_ext
5967#ifdef __cplusplus
5968extern "C" {
5969#endif
5970
5971_LT_EOF
5972 # Now generate the symbol file.
5973 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5974
5975 cat <<_LT_EOF >> conftest.$ac_ext
5976
5977/* The mapping between symbol names and symbols. */
5978const struct {
5979 const char *name;
5980 void *address;
5981}
5982lt__PROGRAM__LTX_preloaded_symbols[] =
5983{
5984 { "@PROGRAM@", (void *) 0 },
5985_LT_EOF
5986 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5987 cat <<\_LT_EOF >> conftest.$ac_ext
5988 {0, (void *) 0}
5989};
5990
5991/* This works around a problem in FreeBSD linker */
5992#ifdef FREEBSD_WORKAROUND
5993static const void *lt_preloaded_setup() {
5994 return lt__PROGRAM__LTX_preloaded_symbols;
5995}
5996#endif
5997
5998#ifdef __cplusplus
5999}
6000#endif
6001_LT_EOF
6002 # Now try linking the two files.
6003 mv conftest.$ac_objext conftstm.$ac_objext
6004 lt_save_LIBS="$LIBS"
6005 lt_save_CFLAGS="$CFLAGS"
6006 LIBS="conftstm.$ac_objext"
6007 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6009 (eval $ac_link) 2>&5
6010 ac_status=$?
5213506e
RW
6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6013 pipe_works=yes
6014 fi
6015 LIBS="$lt_save_LIBS"
6016 CFLAGS="$lt_save_CFLAGS"
6017 else
6018 echo "cannot find nm_test_func in $nlist" >&5
6019 fi
6020 else
6021 echo "cannot find nm_test_var in $nlist" >&5
6022 fi
6023 else
6024 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6025 fi
6026 else
6027 echo "$progname: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6029 fi
467b2e9e 6030 rm -rf conftest* conftst*
1cf3d07d
SE
6031
6032 # Do not use the global_symbol_pipe unless it works.
6033 if test "$pipe_works" = yes; then
6034 break
6035 else
6036 lt_cv_sys_global_symbol_pipe=
6037 fi
6038done
6039
6040fi
6041
6042if test -z "$lt_cv_sys_global_symbol_pipe"; then
6043 lt_cv_sys_global_symbol_to_cdecl=
6044fi
6045if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6047$as_echo "failed" >&6; }
1cf3d07d 6048else
5213506e
RW
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6050$as_echo "ok" >&6; }
1cf3d07d
SE
6051fi
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
467b2e9e
PG
6067
6068
6069
6070
6071
1cf3d07d
SE
6072
6073
5213506e
RW
6074# Check whether --enable-libtool-lock was given.
6075if test "${enable_libtool_lock+set}" = set; then :
6076 enableval=$enable_libtool_lock;
6077fi
1cf3d07d 6078
1cf3d07d
SE
6079test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6080
6081# Some flags need to be propagated to the compiler or linker for good
6082# libtool support.
6083case $host in
6084ia64-*-hpux*)
6085 # Find out which ABI we are using.
6086 echo 'int i;' > conftest.$ac_ext
5213506e 6087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6088 (eval $ac_compile) 2>&5
6089 ac_status=$?
5213506e
RW
6090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091 test $ac_status = 0; }; then
1cf3d07d
SE
6092 case `/usr/bin/file conftest.$ac_objext` in
6093 *ELF-32*)
6094 HPUX_IA64_MODE="32"
6095 ;;
6096 *ELF-64*)
6097 HPUX_IA64_MODE="64"
6098 ;;
6099 esac
6100 fi
6101 rm -rf conftest*
6102 ;;
6103*-*-irix6*)
6104 # Find out which ABI we are using.
43e02a8a 6105 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6107 (eval $ac_compile) 2>&5
6108 ac_status=$?
5213506e
RW
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }; then
1cf3d07d
SE
6111 if test "$lt_cv_prog_gnu_ld" = yes; then
6112 case `/usr/bin/file conftest.$ac_objext` in
6113 *32-bit*)
6114 LD="${LD-ld} -melf32bsmip"
6115 ;;
6116 *N32*)
6117 LD="${LD-ld} -melf32bmipn32"
6118 ;;
6119 *64-bit*)
6120 LD="${LD-ld} -melf64bmip"
6121 ;;
6122 esac
6123 else
6124 case `/usr/bin/file conftest.$ac_objext` in
6125 *32-bit*)
6126 LD="${LD-ld} -32"
6127 ;;
6128 *N32*)
6129 LD="${LD-ld} -n32"
6130 ;;
6131 *64-bit*)
6132 LD="${LD-ld} -64"
6133 ;;
6134 esac
6135 fi
6136 fi
6137 rm -rf conftest*
6138 ;;
6139
3cbe17f7 6140x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d
SE
6141s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6142 # Find out which ABI we are using.
6143 echo 'int i;' > conftest.$ac_ext
5213506e 6144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6145 (eval $ac_compile) 2>&5
6146 ac_status=$?
5213506e
RW
6147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6148 test $ac_status = 0; }; then
1cf3d07d
SE
6149 case `/usr/bin/file conftest.o` in
6150 *32-bit*)
6151 case $host in
6152 x86_64-*kfreebsd*-gnu)
6153 LD="${LD-ld} -m elf_i386_fbsd"
6154 ;;
6155 x86_64-*linux*)
e6d5f8c9
L
6156 case `/usr/bin/file conftest.o` in
6157 *x86-64*)
6158 LD="${LD-ld} -m elf32_x86_64"
6159 ;;
6160 *)
6161 LD="${LD-ld} -m elf_i386"
6162 ;;
6163 esac
1cf3d07d 6164 ;;
3cbe17f7
AM
6165 powerpc64le-*linux*)
6166 LD="${LD-ld} -m elf32lppclinux"
6167 ;;
6168 powerpc64-*linux*)
1cf3d07d
SE
6169 LD="${LD-ld} -m elf32ppclinux"
6170 ;;
6171 s390x-*linux*)
6172 LD="${LD-ld} -m elf_s390"
6173 ;;
6174 sparc64-*linux*)
6175 LD="${LD-ld} -m elf32_sparc"
6176 ;;
6177 esac
6178 ;;
6179 *64-bit*)
6180 case $host in
6181 x86_64-*kfreebsd*-gnu)
6182 LD="${LD-ld} -m elf_x86_64_fbsd"
6183 ;;
6184 x86_64-*linux*)
6185 LD="${LD-ld} -m elf_x86_64"
6186 ;;
3cbe17f7
AM
6187 powerpcle-*linux*)
6188 LD="${LD-ld} -m elf64lppc"
6189 ;;
6190 powerpc-*linux*)
1cf3d07d
SE
6191 LD="${LD-ld} -m elf64ppc"
6192 ;;
6193 s390*-*linux*|s390*-*tpf*)
6194 LD="${LD-ld} -m elf64_s390"
6195 ;;
6196 sparc*-*linux*)
6197 LD="${LD-ld} -m elf64_sparc"
6198 ;;
6199 esac
6200 ;;
6201 esac
6202 fi
6203 rm -rf conftest*
6204 ;;
6205
6206*-*-sco3.2v5*)
6207 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6208 SAVE_CFLAGS="$CFLAGS"
6209 CFLAGS="$CFLAGS -belf"
5213506e
RW
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6211$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6212if test "${lt_cv_cc_needs_belf+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6214else
6215 ac_ext=c
6216ac_cpp='$CPP $CPPFLAGS'
6217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220
6221 if test x$gcc_no_link = xyes; then
5213506e 6222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 6223fi
5213506e 6224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6225/* end confdefs.h. */
6226
6227int
6228main ()
6229{
6230
6231 ;
6232 return 0;
6233}
6234_ACEOF
5213506e 6235if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6236 lt_cv_cc_needs_belf=yes
6237else
5213506e 6238 lt_cv_cc_needs_belf=no
1cf3d07d 6239fi
5213506e
RW
6240rm -f core conftest.err conftest.$ac_objext \
6241 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6242 ac_ext=c
6243ac_cpp='$CPP $CPPFLAGS'
6244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246ac_compiler_gnu=$ac_cv_c_compiler_gnu
6247
6248fi
5213506e
RW
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6250$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6251 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6252 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6253 CFLAGS="$SAVE_CFLAGS"
6254 fi
6255 ;;
6256sparc*-*solaris*)
6257 # Find out which ABI we are using.
6258 echo 'int i;' > conftest.$ac_ext
5213506e 6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6260 (eval $ac_compile) 2>&5
6261 ac_status=$?
5213506e
RW
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263 test $ac_status = 0; }; then
1cf3d07d
SE
6264 case `/usr/bin/file conftest.o` in
6265 *64-bit*)
6266 case $lt_cv_prog_gnu_ld in
6267 yes*) LD="${LD-ld} -m elf64_sparc" ;;
467b2e9e
PG
6268 *)
6269 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6270 LD="${LD-ld} -64"
6271 fi
6272 ;;
1cf3d07d
SE
6273 esac
6274 ;;
6275 esac
6276 fi
6277 rm -rf conftest*
6278 ;;
6279esac
6280
6281need_locks="$enable_libtool_lock"
6282
467b2e9e
PG
6283
6284 case $host_os in
6285 rhapsody* | darwin*)
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
1cf3d07d 6293else
467b2e9e
PG
6294 if test -n "$DSYMUTIL"; then
6295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
1cf3d07d 6299do
467b2e9e
PG
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
5213506e
RW
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6306 break 2
6307 fi
6308done
5213506e
RW
6309 done
6310IFS=$as_save_IFS
467b2e9e
PG
6311
6312fi
6313fi
6314DSYMUTIL=$ac_cv_prog_DSYMUTIL
6315if test -n "$DSYMUTIL"; then
5213506e
RW
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6317$as_echo "$DSYMUTIL" >&6; }
467b2e9e 6318else
5213506e
RW
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320$as_echo "no" >&6; }
467b2e9e
PG
6321fi
6322
5213506e 6323
467b2e9e
PG
6324fi
6325if test -z "$ac_cv_prog_DSYMUTIL"; then
6326 ac_ct_DSYMUTIL=$DSYMUTIL
6327 # Extract the first word of "dsymutil", so it can be a program name with args.
6328set dummy dsymutil; ac_word=$2
5213506e
RW
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
467b2e9e
PG
6333else
6334 if test -n "$ac_ct_DSYMUTIL"; then
6335 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
5213506e
RW
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6344 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6346 break 2
6347 fi
6348done
5213506e
RW
6349 done
6350IFS=$as_save_IFS
467b2e9e 6351
467b2e9e
PG
6352fi
6353fi
6354ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6355if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6357$as_echo "$ac_ct_DSYMUTIL" >&6; }
467b2e9e 6358else
5213506e
RW
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
467b2e9e
PG
6361fi
6362
5213506e
RW
6363 if test "x$ac_ct_DSYMUTIL" = x; then
6364 DSYMUTIL=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367yes:)
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370ac_tool_warned=yes ;;
6371esac
6372 DSYMUTIL=$ac_ct_DSYMUTIL
6373 fi
467b2e9e
PG
6374else
6375 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6376fi
6377
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
467b2e9e
PG
6385else
6386 if test -n "$NMEDIT"; then
6387 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
5213506e
RW
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6398 break 2
6399 fi
6400done
5213506e
RW
6401 done
6402IFS=$as_save_IFS
467b2e9e
PG
6403
6404fi
6405fi
6406NMEDIT=$ac_cv_prog_NMEDIT
6407if test -n "$NMEDIT"; then
5213506e
RW
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6409$as_echo "$NMEDIT" >&6; }
467b2e9e 6410else
5213506e
RW
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
467b2e9e
PG
6413fi
6414
5213506e 6415
467b2e9e
PG
6416fi
6417if test -z "$ac_cv_prog_NMEDIT"; then
6418 ac_ct_NMEDIT=$NMEDIT
6419 # Extract the first word of "nmedit", so it can be a program name with args.
6420set dummy nmedit; ac_word=$2
5213506e
RW
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
467b2e9e
PG
6425else
6426 if test -n "$ac_ct_NMEDIT"; then
6427 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
5213506e
RW
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6436 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6438 break 2
6439 fi
6440done
5213506e
RW
6441 done
6442IFS=$as_save_IFS
467b2e9e 6443
467b2e9e
PG
6444fi
6445fi
6446ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6447if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6449$as_echo "$ac_ct_NMEDIT" >&6; }
467b2e9e 6450else
5213506e
RW
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
467b2e9e
PG
6453fi
6454
5213506e
RW
6455 if test "x$ac_ct_NMEDIT" = x; then
6456 NMEDIT=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464 NMEDIT=$ac_ct_NMEDIT
6465 fi
467b2e9e
PG
6466else
6467 NMEDIT="$ac_cv_prog_NMEDIT"
6468fi
6469
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6472set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if test "${ac_cv_prog_LIPO+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
467b2e9e
PG
6477else
6478 if test -n "$LIPO"; then
6479 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
5213506e
RW
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6488 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6490 break 2
6491 fi
6492done
5213506e
RW
6493 done
6494IFS=$as_save_IFS
467b2e9e
PG
6495
6496fi
6497fi
6498LIPO=$ac_cv_prog_LIPO
6499if test -n "$LIPO"; then
5213506e
RW
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6501$as_echo "$LIPO" >&6; }
467b2e9e 6502else
5213506e
RW
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
467b2e9e
PG
6505fi
6506
5213506e 6507
467b2e9e
PG
6508fi
6509if test -z "$ac_cv_prog_LIPO"; then
6510 ac_ct_LIPO=$LIPO
6511 # Extract the first word of "lipo", so it can be a program name with args.
6512set dummy lipo; ac_word=$2
5213506e
RW
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
467b2e9e
PG
6517else
6518 if test -n "$ac_ct_LIPO"; then
6519 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
5213506e
RW
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6528 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6530 break 2
6531 fi
6532done
5213506e
RW
6533 done
6534IFS=$as_save_IFS
467b2e9e 6535
467b2e9e
PG
6536fi
6537fi
6538ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6539if test -n "$ac_ct_LIPO"; then
5213506e
RW
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6541$as_echo "$ac_ct_LIPO" >&6; }
467b2e9e 6542else
5213506e
RW
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
467b2e9e
PG
6545fi
6546
5213506e
RW
6547 if test "x$ac_ct_LIPO" = x; then
6548 LIPO=":"
6549 else
6550 case $cross_compiling:$ac_tool_warned in
6551yes:)
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556 LIPO=$ac_ct_LIPO
6557 fi
467b2e9e
PG
6558else
6559 LIPO="$ac_cv_prog_LIPO"
6560fi
6561
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6564set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566$as_echo_n "checking for $ac_word... " >&6; }
6567if test "${ac_cv_prog_OTOOL+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
467b2e9e
PG
6569else
6570 if test -n "$OTOOL"; then
6571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6572else
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
5213506e
RW
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6580 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6582 break 2
6583 fi
6584done
5213506e
RW
6585 done
6586IFS=$as_save_IFS
467b2e9e
PG
6587
6588fi
6589fi
6590OTOOL=$ac_cv_prog_OTOOL
6591if test -n "$OTOOL"; then
5213506e
RW
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6593$as_echo "$OTOOL" >&6; }
467b2e9e 6594else
5213506e
RW
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596$as_echo "no" >&6; }
467b2e9e
PG
6597fi
6598
5213506e 6599
467b2e9e
PG
6600fi
6601if test -z "$ac_cv_prog_OTOOL"; then
6602 ac_ct_OTOOL=$OTOOL
6603 # Extract the first word of "otool", so it can be a program name with args.
6604set dummy otool; ac_word=$2
5213506e
RW
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606$as_echo_n "checking for $ac_word... " >&6; }
6607if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
467b2e9e
PG
6609else
6610 if test -n "$ac_ct_OTOOL"; then
6611 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
5213506e
RW
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6620 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6622 break 2
6623 fi
6624done
5213506e
RW
6625 done
6626IFS=$as_save_IFS
467b2e9e 6627
467b2e9e
PG
6628fi
6629fi
6630ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6631if test -n "$ac_ct_OTOOL"; then
5213506e
RW
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6633$as_echo "$ac_ct_OTOOL" >&6; }
467b2e9e 6634else
5213506e
RW
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636$as_echo "no" >&6; }
467b2e9e
PG
6637fi
6638
5213506e
RW
6639 if test "x$ac_ct_OTOOL" = x; then
6640 OTOOL=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643yes:)
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646ac_tool_warned=yes ;;
6647esac
6648 OTOOL=$ac_ct_OTOOL
6649 fi
467b2e9e
PG
6650else
6651 OTOOL="$ac_cv_prog_OTOOL"
6652fi
6653
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6656set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
6659if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
467b2e9e
PG
6661else
6662 if test -n "$OTOOL64"; then
6663 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
5213506e
RW
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6672 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6674 break 2
6675 fi
6676done
5213506e
RW
6677 done
6678IFS=$as_save_IFS
467b2e9e
PG
6679
6680fi
6681fi
6682OTOOL64=$ac_cv_prog_OTOOL64
6683if test -n "$OTOOL64"; then
5213506e
RW
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6685$as_echo "$OTOOL64" >&6; }
467b2e9e 6686else
5213506e
RW
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688$as_echo "no" >&6; }
467b2e9e
PG
6689fi
6690
5213506e 6691
467b2e9e
PG
6692fi
6693if test -z "$ac_cv_prog_OTOOL64"; then
6694 ac_ct_OTOOL64=$OTOOL64
6695 # Extract the first word of "otool64", so it can be a program name with args.
6696set dummy otool64; ac_word=$2
5213506e
RW
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698$as_echo_n "checking for $ac_word... " >&6; }
6699if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
467b2e9e
PG
6701else
6702 if test -n "$ac_ct_OTOOL64"; then
6703 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
5213506e
RW
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467b2e9e 6712 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
467b2e9e
PG
6714 break 2
6715 fi
6716done
5213506e
RW
6717 done
6718IFS=$as_save_IFS
467b2e9e 6719
467b2e9e
PG
6720fi
6721fi
6722ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6723if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6725$as_echo "$ac_ct_OTOOL64" >&6; }
467b2e9e 6726else
5213506e
RW
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
467b2e9e
PG
6729fi
6730
5213506e
RW
6731 if test "x$ac_ct_OTOOL64" = x; then
6732 OTOOL64=":"
6733 else
6734 case $cross_compiling:$ac_tool_warned in
6735yes:)
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738ac_tool_warned=yes ;;
6739esac
6740 OTOOL64=$ac_ct_OTOOL64
6741 fi
467b2e9e
PG
6742else
6743 OTOOL64="$ac_cv_prog_OTOOL64"
6744fi
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
5213506e
RW
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6773$as_echo_n "checking for -single_module linker flag... " >&6; }
6774if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
467b2e9e
PG
6776else
6777 lt_cv_apple_cc_single_mod=no
6778 if test -z "${LT_MULTI_MODULE}"; then
6779 # By default we will add the -single_module flag. You can override
6780 # by either setting the environment variable LT_MULTI_MODULE
6781 # non-empty at configure time, or by adding -multi_module to the
6782 # link flags.
6783 rm -rf libconftest.dylib*
6784 echo "int foo(void){return 1;}" > conftest.c
6785 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6786-dynamiclib -Wl,-single_module conftest.c" >&5
6787 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6788 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6789 _lt_result=$?
6790 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6791 lt_cv_apple_cc_single_mod=yes
6792 else
6793 cat conftest.err >&5
6794 fi
6795 rm -rf libconftest.dylib*
6796 rm -f conftest.*
6797 fi
6798fi
5213506e
RW
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6800$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6802$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6803if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
467b2e9e
PG
6805else
6806 lt_cv_ld_exported_symbols_list=no
6807 save_LDFLAGS=$LDFLAGS
6808 echo "_main" > conftest.sym
6809 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6810 if test x$gcc_no_link = xyes; then
5213506e 6811 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
467b2e9e 6812fi
5213506e 6813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
467b2e9e
PG
6814/* end confdefs.h. */
6815
6816int
6817main ()
6818{
6819
6820 ;
6821 return 0;
6822}
6823_ACEOF
5213506e 6824if ac_fn_c_try_link "$LINENO"; then :
467b2e9e
PG
6825 lt_cv_ld_exported_symbols_list=yes
6826else
5213506e 6827 lt_cv_ld_exported_symbols_list=no
467b2e9e 6828fi
5213506e
RW
6829rm -f core conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
467b2e9e
PG
6831 LDFLAGS="$save_LDFLAGS"
6832
6833fi
5213506e
RW
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6835$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6837$as_echo_n "checking for -force_load linker flag... " >&6; }
6838if test "${lt_cv_ld_force_load+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840else
6841 lt_cv_ld_force_load=no
6842 cat > conftest.c << _LT_EOF
6843int forced_loaded() { return 2;}
6844_LT_EOF
6845 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6846 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6847 echo "$AR cru libconftest.a conftest.o" >&5
6848 $AR cru libconftest.a conftest.o 2>&5
6849 cat > conftest.c << _LT_EOF
6850int main() { return 0;}
6851_LT_EOF
6852 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6853 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6854 _lt_result=$?
6855 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6856 lt_cv_ld_force_load=yes
6857 else
6858 cat conftest.err >&5
6859 fi
6860 rm -f conftest.err libconftest.a conftest conftest.c
6861 rm -rf conftest.dSYM
6862
6863fi
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6865$as_echo "$lt_cv_ld_force_load" >&6; }
467b2e9e
PG
6866 case $host_os in
6867 rhapsody* | darwin1.[012])
6868 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6869 darwin1.*)
6870 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6871 darwin*) # darwin 5.x on
6872 # if running on 10.5 or later, the deployment target defaults
6873 # to the OS version, if on x86, and 10.4, the deployment
6874 # target defaults to 10.4. Don't you love it?
6875 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6876 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 6878 10.[012][,.]*)
467b2e9e
PG
6879 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6880 10.*)
6881 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6882 esac
6883 ;;
6884 esac
6885 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6886 _lt_dar_single_mod='$single_module'
6887 fi
6888 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6889 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6890 else
6891 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6892 fi
43e02a8a 6893 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
467b2e9e
PG
6894 _lt_dsymutil='~$DSYMUTIL $lib || :'
6895 else
6896 _lt_dsymutil=
6897 fi
6898 ;;
6899 esac
6900
6901ac_ext=c
6902ac_cpp='$CPP $CPPFLAGS'
6903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6907$as_echo_n "checking how to run the C preprocessor... " >&6; }
467b2e9e
PG
6908# On Suns, sometimes $CPP names a directory.
6909if test -n "$CPP" && test -d "$CPP"; then
6910 CPP=
6911fi
6912if test -z "$CPP"; then
5213506e
RW
6913 if test "${ac_cv_prog_CPP+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
467b2e9e
PG
6915else
6916 # Double quotes because CPP needs to be expanded
6917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6918 do
6919 ac_preproc_ok=false
6920for ac_c_preproc_warn_flag in '' yes
6921do
6922 # Use a header file that comes with gcc, so configuring glibc
6923 # with a fresh cross-compiler works.
6924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6925 # <limits.h> exists even on freestanding compilers.
6926 # On the NeXT, cc -E runs the code through the compiler's parser,
6927 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
467b2e9e
PG
6929/* end confdefs.h. */
6930#ifdef __STDC__
6931# include <limits.h>
6932#else
6933# include <assert.h>
6934#endif
6935 Syntax error
1cf3d07d 6936_ACEOF
5213506e 6937if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 6938
5213506e 6939else
1cf3d07d
SE
6940 # Broken: fails on valid input.
6941continue
6942fi
6943rm -f conftest.err conftest.$ac_ext
6944
5213506e 6945 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 6946 # can be detected and how.
5213506e 6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6948/* end confdefs.h. */
6949#include <ac_nonexistent.h>
6950_ACEOF
5213506e 6951if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
6952 # Broken: success on invalid input.
6953continue
6954else
1cf3d07d
SE
6955 # Passes both tests.
6956ac_preproc_ok=:
6957break
6958fi
6959rm -f conftest.err conftest.$ac_ext
6960
6961done
6962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6963rm -f conftest.err conftest.$ac_ext
5213506e 6964if $ac_preproc_ok; then :
1cf3d07d
SE
6965 break
6966fi
6967
6968 done
6969 ac_cv_prog_CPP=$CPP
6970
6971fi
6972 CPP=$ac_cv_prog_CPP
6973else
6974 ac_cv_prog_CPP=$CPP
6975fi
5213506e
RW
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6977$as_echo "$CPP" >&6; }
1cf3d07d
SE
6978ac_preproc_ok=false
6979for ac_c_preproc_warn_flag in '' yes
6980do
6981 # Use a header file that comes with gcc, so configuring glibc
6982 # with a fresh cross-compiler works.
6983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6984 # <limits.h> exists even on freestanding compilers.
6985 # On the NeXT, cc -E runs the code through the compiler's parser,
6986 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6988/* end confdefs.h. */
6989#ifdef __STDC__
6990# include <limits.h>
6991#else
6992# include <assert.h>
6993#endif
6994 Syntax error
6995_ACEOF
5213506e
RW
6996if ac_fn_c_try_cpp "$LINENO"; then :
6997
1cf3d07d 6998else
1cf3d07d
SE
6999 # Broken: fails on valid input.
7000continue
7001fi
7002rm -f conftest.err conftest.$ac_ext
7003
5213506e 7004 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7005 # can be detected and how.
5213506e 7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7007/* end confdefs.h. */
7008#include <ac_nonexistent.h>
7009_ACEOF
5213506e 7010if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7011 # Broken: success on invalid input.
7012continue
7013else
1cf3d07d
SE
7014 # Passes both tests.
7015ac_preproc_ok=:
7016break
7017fi
7018rm -f conftest.err conftest.$ac_ext
7019
7020done
7021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022rm -f conftest.err conftest.$ac_ext
5213506e
RW
7023if $ac_preproc_ok; then :
7024
1cf3d07d 7025else
5213506e
RW
7026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7028as_fn_error "C preprocessor \"$CPP\" fails sanity check
7029See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7030fi
7031
7032ac_ext=c
7033ac_cpp='$CPP $CPPFLAGS'
7034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037
7038
5213506e
RW
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7040$as_echo_n "checking for ANSI C header files... " >&6; }
7041if test "${ac_cv_header_stdc+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
1cf3d07d 7043else
5213506e 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7045/* end confdefs.h. */
7046#include <stdlib.h>
7047#include <stdarg.h>
7048#include <string.h>
7049#include <float.h>
7050
7051int
7052main ()
7053{
7054
7055 ;
7056 return 0;
7057}
7058_ACEOF
5213506e 7059if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7060 ac_cv_header_stdc=yes
7061else
5213506e 7062 ac_cv_header_stdc=no
1cf3d07d 7063fi
5213506e 7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7065
7066if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7069/* end confdefs.h. */
7070#include <string.h>
7071
7072_ACEOF
7073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7074 $EGREP "memchr" >/dev/null 2>&1; then :
7075
1cf3d07d
SE
7076else
7077 ac_cv_header_stdc=no
7078fi
7079rm -f conftest*
7080
7081fi
7082
7083if test $ac_cv_header_stdc = yes; then
7084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7086/* end confdefs.h. */
7087#include <stdlib.h>
7088
7089_ACEOF
7090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7091 $EGREP "free" >/dev/null 2>&1; then :
7092
1cf3d07d
SE
7093else
7094 ac_cv_header_stdc=no
7095fi
7096rm -f conftest*
7097
7098fi
7099
7100if test $ac_cv_header_stdc = yes; then
7101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7102 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7103 :
7104else
5213506e 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7106/* end confdefs.h. */
7107#include <ctype.h>
5213506e 7108#include <stdlib.h>
1cf3d07d
SE
7109#if ((' ' & 0x0FF) == 0x020)
7110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7112#else
7113# define ISLOWER(c) \
7114 (('a' <= (c) && (c) <= 'i') \
7115 || ('j' <= (c) && (c) <= 'r') \
7116 || ('s' <= (c) && (c) <= 'z'))
7117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7118#endif
7119
7120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7121int
7122main ()
7123{
7124 int i;
7125 for (i = 0; i < 256; i++)
7126 if (XOR (islower (i), ISLOWER (i))
7127 || toupper (i) != TOUPPER (i))
5213506e
RW
7128 return 2;
7129 return 0;
1cf3d07d
SE
7130}
7131_ACEOF
5213506e 7132if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7133
5213506e
RW
7134else
7135 ac_cv_header_stdc=no
1cf3d07d 7136fi
5213506e
RW
7137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7138 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7139fi
5213506e 7140
1cf3d07d
SE
7141fi
7142fi
5213506e
RW
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7144$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7145if test $ac_cv_header_stdc = yes; then
7146
5213506e 7147$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7148
7149fi
7150
7151# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7153 inttypes.h stdint.h unistd.h
5213506e
RW
7154do :
7155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7157"
7158eval as_val=\$$as_ac_Header
7159 if test "x$as_val" = x""yes; then :
467b2e9e 7160 cat >>confdefs.h <<_ACEOF
5213506e 7161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
467b2e9e
PG
7162_ACEOF
7163
7164fi
7165
7166done
7167
7168
467b2e9e 7169for ac_header in dlfcn.h
5213506e
RW
7170do :
7171 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7172"
7173if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
467b2e9e 7174 cat >>confdefs.h <<_ACEOF
5213506e 7175#define HAVE_DLFCN_H 1
467b2e9e
PG
7176_ACEOF
7177
7178fi
7179
7180done
7181
7182
7183
43e02a8a
RW
7184
7185
467b2e9e
PG
7186# Set options
7187
7188
7189
7190 enable_dlopen=no
7191
7192
7193
5213506e
RW
7194 # Check whether --enable-shared was given.
7195if test "${enable_shared+set}" = set; then :
7196 enableval=$enable_shared; p=${PACKAGE-default}
467b2e9e
PG
7197 case $enableval in
7198 yes) enable_shared=yes ;;
7199 no) enable_shared=no ;;
7200 *)
7201 enable_shared=no
7202 # Look at the argument we got. We use all the common list separators.
7203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7204 for pkg in $enableval; do
7205 IFS="$lt_save_ifs"
7206 if test "X$pkg" = "X$p"; then
7207 enable_shared=yes
7208 fi
7209 done
7210 IFS="$lt_save_ifs"
7211 ;;
7212 esac
7213else
7214 enable_shared=yes
5213506e 7215fi
467b2e9e
PG
7216
7217
7218
7219
7220
7221
7222
7223
5213506e
RW
7224
7225 # Check whether --enable-static was given.
7226if test "${enable_static+set}" = set; then :
7227 enableval=$enable_static; p=${PACKAGE-default}
467b2e9e
PG
7228 case $enableval in
7229 yes) enable_static=yes ;;
7230 no) enable_static=no ;;
7231 *)
7232 enable_static=no
7233 # Look at the argument we got. We use all the common list separators.
7234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7235 for pkg in $enableval; do
7236 IFS="$lt_save_ifs"
7237 if test "X$pkg" = "X$p"; then
7238 enable_static=yes
7239 fi
7240 done
7241 IFS="$lt_save_ifs"
7242 ;;
7243 esac
7244else
7245 enable_static=yes
5213506e 7246fi
467b2e9e
PG
7247
7248
7249
7250
7251
7252
7253
7254
7255
5213506e
RW
7256
7257# Check whether --with-pic was given.
7258if test "${with_pic+set}" = set; then :
7259 withval=$with_pic; pic_mode="$withval"
467b2e9e
PG
7260else
7261 pic_mode=default
5213506e
RW
7262fi
7263
1cf3d07d 7264
467b2e9e 7265test -z "$pic_mode" && pic_mode=default
1cf3d07d 7266
1cf3d07d 7267
1cf3d07d
SE
7268
7269
7270
1cf3d07d 7271
467b2e9e 7272
5213506e
RW
7273 # Check whether --enable-fast-install was given.
7274if test "${enable_fast_install+set}" = set; then :
7275 enableval=$enable_fast_install; p=${PACKAGE-default}
467b2e9e
PG
7276 case $enableval in
7277 yes) enable_fast_install=yes ;;
7278 no) enable_fast_install=no ;;
7279 *)
7280 enable_fast_install=no
7281 # Look at the argument we got. We use all the common list separators.
7282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7283 for pkg in $enableval; do
7284 IFS="$lt_save_ifs"
7285 if test "X$pkg" = "X$p"; then
7286 enable_fast_install=yes
7287 fi
7288 done
7289 IFS="$lt_save_ifs"
7290 ;;
7291 esac
1cf3d07d 7292else
467b2e9e 7293 enable_fast_install=yes
5213506e
RW
7294fi
7295
467b2e9e
PG
7296
7297
7298
7299
1cf3d07d 7300
1cf3d07d 7301
1cf3d07d 7302
1cf3d07d
SE
7303
7304
7305
7306# This can be used to rebuild libtool when needed
7307LIBTOOL_DEPS="$ltmain"
7308
7309# Always use our own libtool.
7310LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
43e02a8a 7334
1cf3d07d
SE
7335
7336
7337test -z "$LN_S" && LN_S="ln -s"
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352if test -n "${ZSH_VERSION+set}" ; then
7353 setopt NO_GLOB_SUBST
7354fi
7355
5213506e
RW
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7357$as_echo_n "checking for objdir... " >&6; }
7358if test "${lt_cv_objdir+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7360else
7361 rm -f .libs 2>/dev/null
7362mkdir .libs 2>/dev/null
7363if test -d .libs; then
7364 lt_cv_objdir=.libs
7365else
7366 # MS-DOS does not allow filenames that begin with a dot.
7367 lt_cv_objdir=_libs
7368fi
7369rmdir .libs 2>/dev/null
7370fi
5213506e
RW
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7372$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7373objdir=$lt_cv_objdir
7374
7375
7376
7377
7378
7379cat >>confdefs.h <<_ACEOF
7380#define LT_OBJDIR "$lt_cv_objdir/"
7381_ACEOF
7382
7383
7384
7385
1cf3d07d
SE
7386case $host_os in
7387aix3*)
7388 # AIX sometimes has problems with the GCC collect2 program. For some
7389 # reason, if we set the COLLECT_NAMES environment variable, the problems
7390 # vanish in a puff of smoke.
7391 if test "X${COLLECT_NAMES+set}" != Xset; then
7392 COLLECT_NAMES=
7393 export COLLECT_NAMES
7394 fi
7395 ;;
7396esac
7397
1cf3d07d
SE
7398# Global variables:
7399ofile=libtool
7400can_build_shared=yes
7401
7402# All known linkers require a `.a' archive for static linking (except MSVC,
7403# which needs '.lib').
7404libext=a
7405
7406with_gnu_ld="$lt_cv_prog_gnu_ld"
7407
7408old_CC="$CC"
7409old_CFLAGS="$CFLAGS"
7410
7411# Set sane defaults for various variables
7412test -z "$CC" && CC=cc
7413test -z "$LTCC" && LTCC=$CC
7414test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7415test -z "$LD" && LD=ld
7416test -z "$ac_objext" && ac_objext=o
7417
7418for cc_temp in $compiler""; do
7419 case $cc_temp in
7420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7422 \-*) ;;
7423 *) break;;
7424 esac
7425done
43e02a8a 7426cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
7427
7428
7429# Only perform the check for file, if the check method requires it
7430test -z "$MAGIC_CMD" && MAGIC_CMD=file
7431case $deplibs_check_method in
7432file_magic*)
7433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7435$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7436if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7438else
7439 case $MAGIC_CMD in
7440[\\/*] | ?:[\\/]*)
7441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7442 ;;
7443*)
7444 lt_save_MAGIC_CMD="$MAGIC_CMD"
7445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7447 for ac_dir in $ac_dummy; do
7448 IFS="$lt_save_ifs"
7449 test -z "$ac_dir" && ac_dir=.
7450 if test -f $ac_dir/${ac_tool_prefix}file; then
7451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7452 if test -n "$file_magic_test_file"; then
7453 case $deplibs_check_method in
7454 "file_magic "*)
7455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7458 $EGREP "$file_magic_regex" > /dev/null; then
7459 :
7460 else
7461 cat <<_LT_EOF 1>&2
7462
7463*** Warning: the command libtool uses to detect shared libraries,
7464*** $file_magic_cmd, produces output that libtool cannot recognize.
7465*** The result is that libtool may fail to recognize shared libraries
7466*** as such. This will affect the creation of libtool libraries that
7467*** depend on shared libraries, but programs linked with such libtool
7468*** libraries will work regardless of this problem. Nevertheless, you
7469*** may want to report the problem to your system manager and/or to
7470*** bug-libtool@gnu.org
7471
7472_LT_EOF
7473 fi ;;
7474 esac
7475 fi
7476 break
7477 fi
7478 done
7479 IFS="$lt_save_ifs"
7480 MAGIC_CMD="$lt_save_MAGIC_CMD"
7481 ;;
7482esac
7483fi
7484
7485MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7486if test -n "$MAGIC_CMD"; then
5213506e
RW
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7488$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7489else
5213506e
RW
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491$as_echo "no" >&6; }
1cf3d07d
SE
7492fi
7493
7494
7495
7496
7497
7498if test -z "$lt_cv_path_MAGIC_CMD"; then
7499 if test -n "$ac_tool_prefix"; then
5213506e
RW
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7501$as_echo_n "checking for file... " >&6; }
7502if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7504else
7505 case $MAGIC_CMD in
7506[\\/*] | ?:[\\/]*)
7507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7508 ;;
7509*)
7510 lt_save_MAGIC_CMD="$MAGIC_CMD"
7511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7513 for ac_dir in $ac_dummy; do
7514 IFS="$lt_save_ifs"
7515 test -z "$ac_dir" && ac_dir=.
7516 if test -f $ac_dir/file; then
7517 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7518 if test -n "$file_magic_test_file"; then
7519 case $deplibs_check_method in
7520 "file_magic "*)
7521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7524 $EGREP "$file_magic_regex" > /dev/null; then
7525 :
7526 else
7527 cat <<_LT_EOF 1>&2
7528
7529*** Warning: the command libtool uses to detect shared libraries,
7530*** $file_magic_cmd, produces output that libtool cannot recognize.
7531*** The result is that libtool may fail to recognize shared libraries
7532*** as such. This will affect the creation of libtool libraries that
7533*** depend on shared libraries, but programs linked with such libtool
7534*** libraries will work regardless of this problem. Nevertheless, you
7535*** may want to report the problem to your system manager and/or to
7536*** bug-libtool@gnu.org
7537
7538_LT_EOF
7539 fi ;;
7540 esac
7541 fi
7542 break
7543 fi
7544 done
7545 IFS="$lt_save_ifs"
7546 MAGIC_CMD="$lt_save_MAGIC_CMD"
7547 ;;
7548esac
7549fi
7550
7551MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7552if test -n "$MAGIC_CMD"; then
5213506e
RW
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7554$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7555else
5213506e
RW
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557$as_echo "no" >&6; }
1cf3d07d
SE
7558fi
7559
7560
7561 else
7562 MAGIC_CMD=:
7563 fi
7564fi
7565
7566 fi
7567 ;;
7568esac
7569
7570# Use C for the default configuration in the libtool script
7571
7572lt_save_CC="$CC"
7573ac_ext=c
7574ac_cpp='$CPP $CPPFLAGS'
7575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578
7579
7580# Source file extension for C test sources.
7581ac_ext=c
7582
7583# Object file extension for compiled C test sources.
7584objext=o
7585objext=$objext
7586
7587# Code to be used in simple compile tests
7588lt_simple_compile_test_code="int some_variable = 0;"
7589
7590# Code to be used in simple link tests
7591lt_simple_link_test_code='int main(){return(0);}'
7592
7593
7594
7595
7596
7597
7598
7599# If no C compiler was specified, use CC.
7600LTCC=${LTCC-"$CC"}
7601
7602# If no C compiler flags were specified, use CFLAGS.
7603LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7604
7605# Allow CC to be a program name with arguments.
7606compiler=$CC
7607
7608# Save the default compiler, since it gets overwritten when the other
7609# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7610compiler_DEFAULT=$CC
7611
7612# save warnings/boilerplate of simple test code
7613ac_outfile=conftest.$ac_objext
7614echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7616_lt_compiler_boilerplate=`cat conftest.err`
7617$RM conftest*
7618
7619ac_outfile=conftest.$ac_objext
7620echo "$lt_simple_link_test_code" >conftest.$ac_ext
7621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7622_lt_linker_boilerplate=`cat conftest.err`
467b2e9e 7623$RM -r conftest*
1cf3d07d
SE
7624
7625
7626## CAVEAT EMPTOR:
7627## There is no encapsulation within the following macros, do not change
7628## the running order or otherwise move them around unless you know exactly
7629## what you are doing...
7630if test -n "$compiler"; then
7631
7632lt_prog_compiler_no_builtin_flag=
7633
7634if test "$GCC" = yes; then
43e02a8a
RW
7635 case $cc_basename in
7636 nvcc*)
7637 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7638 *)
7639 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7640 esac
1cf3d07d 7641
5213506e
RW
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7643$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7644if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7646else
7647 lt_cv_prog_compiler_rtti_exceptions=no
7648 ac_outfile=conftest.$ac_objext
7649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7650 lt_compiler_flag="-fno-rtti -fno-exceptions"
7651 # Insert the option either (1) after the last *FLAGS variable, or
7652 # (2) before a word containing "conftest.", or (3) at the end.
7653 # Note that $ac_compile itself does not contain backslashes and begins
7654 # with a dollar sign (not a hyphen), so the echo should work correctly.
7655 # The option is referenced via a variable to avoid confusing sed.
7656 lt_compile=`echo "$ac_compile" | $SED \
7657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7659 -e 's:$: $lt_compiler_flag:'`
43e02a8a 7660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
7661 (eval "$lt_compile" 2>conftest.err)
7662 ac_status=$?
7663 cat conftest.err >&5
43e02a8a 7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
7665 if (exit $ac_status) && test -s "$ac_outfile"; then
7666 # The compiler can only warn and ignore the option if not recognized
7667 # So say no if there are warnings other than the usual output.
43e02a8a 7668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
7669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7671 lt_cv_prog_compiler_rtti_exceptions=yes
7672 fi
7673 fi
7674 $RM conftest*
7675
7676fi
5213506e
RW
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7678$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
7679
7680if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7682else
7683 :
7684fi
7685
7686fi
7687
7688
7689
7690
7691
7692
7693 lt_prog_compiler_wl=
7694lt_prog_compiler_pic=
7695lt_prog_compiler_static=
7696
5213506e
RW
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7698$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
7699
7700 if test "$GCC" = yes; then
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_static='-static'
7703
7704 case $host_os in
7705 aix*)
7706 # All AIX code is PIC.
7707 if test "$host_cpu" = ia64; then
7708 # AIX 5 now supports IA64 processor
7709 lt_prog_compiler_static='-Bstatic'
7710 fi
a3476c48 7711 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
7712 ;;
7713
7714 amigaos*)
467b2e9e
PG
7715 case $host_cpu in
7716 powerpc)
7717 # see comment about AmigaOS4 .so support
7718 lt_prog_compiler_pic='-fPIC'
7719 ;;
7720 m68k)
7721 # FIXME: we need at least 68020 code to build shared libraries, but
7722 # adding the `-m68020' flag to GCC prevents building anything better,
7723 # like `-m68040'.
7724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7725 ;;
7726 esac
1cf3d07d
SE
7727 ;;
7728
7729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7730 # PIC is the default for these OSes.
7731 ;;
7732
467b2e9e 7733 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7734 # This hack is so that the source file can tell whether it is being
7735 # built for inclusion in a dll (and should export symbols for example).
7736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7737 # (--disable-auto-import) libraries
7738 lt_prog_compiler_pic='-DDLL_EXPORT'
7739 ;;
7740
7741 darwin* | rhapsody*)
7742 # PIC is the default on this platform
7743 # Common symbols not allowed in MH_DYLIB files
7744 lt_prog_compiler_pic='-fno-common'
7745 ;;
7746
43e02a8a
RW
7747 haiku*)
7748 # PIC is the default for Haiku.
7749 # The "-static" flag exists, but is broken.
7750 lt_prog_compiler_static=
7751 ;;
7752
1cf3d07d 7753 hpux*)
467b2e9e
PG
7754 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7755 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7756 # sets the default TLS model and affects inlining.
1cf3d07d 7757 case $host_cpu in
467b2e9e 7758 hppa*64*)
1cf3d07d
SE
7759 # +Z the default
7760 ;;
7761 *)
7762 lt_prog_compiler_pic='-fPIC'
7763 ;;
7764 esac
7765 ;;
7766
7767 interix[3-9]*)
7768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7769 # Instead, we relocate shared libraries at runtime.
7770 ;;
7771
7772 msdosdjgpp*)
7773 # Just because we use GCC doesn't mean we suddenly get shared libraries
7774 # on systems that don't support them.
7775 lt_prog_compiler_can_build_shared=no
7776 enable_shared=no
7777 ;;
7778
7779 *nto* | *qnx*)
7780 # QNX uses GNU C++, but need to define -shared option too, otherwise
7781 # it will coredump.
7782 lt_prog_compiler_pic='-fPIC -shared'
7783 ;;
7784
7785 sysv4*MP*)
7786 if test -d /usr/nec; then
7787 lt_prog_compiler_pic=-Kconform_pic
7788 fi
7789 ;;
7790
7791 *)
7792 lt_prog_compiler_pic='-fPIC'
7793 ;;
7794 esac
43e02a8a
RW
7795
7796 case $cc_basename in
7797 nvcc*) # Cuda Compiler Driver 2.2
7798 lt_prog_compiler_wl='-Xlinker '
7799 lt_prog_compiler_pic='-Xcompiler -fPIC'
7800 ;;
7801 esac
1cf3d07d
SE
7802 else
7803 # PORTME Check for flag to pass linker flags through the system compiler.
7804 case $host_os in
7805 aix*)
7806 lt_prog_compiler_wl='-Wl,'
7807 if test "$host_cpu" = ia64; then
7808 # AIX 5 now supports IA64 processor
7809 lt_prog_compiler_static='-Bstatic'
7810 else
7811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7812 fi
7813 ;;
1cf3d07d 7814
467b2e9e 7815 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7816 # This hack is so that the source file can tell whether it is being
7817 # built for inclusion in a dll (and should export symbols for example).
7818 lt_prog_compiler_pic='-DDLL_EXPORT'
7819 ;;
7820
7821 hpux9* | hpux10* | hpux11*)
7822 lt_prog_compiler_wl='-Wl,'
7823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7824 # not for PA HP-UX.
7825 case $host_cpu in
7826 hppa*64*|ia64*)
7827 # +Z the default
7828 ;;
7829 *)
7830 lt_prog_compiler_pic='+Z'
7831 ;;
7832 esac
7833 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7834 lt_prog_compiler_static='${wl}-a ${wl}archive'
7835 ;;
7836
7837 irix5* | irix6* | nonstopux*)
7838 lt_prog_compiler_wl='-Wl,'
7839 # PIC (with -KPIC) is the default.
7840 lt_prog_compiler_static='-non_shared'
7841 ;;
7842
7a9d3fe8 7843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 7844 case $cc_basename in
467b2e9e
PG
7845 # old Intel for x86_64 which still supported -KPIC.
7846 ecc*)
1cf3d07d
SE
7847 lt_prog_compiler_wl='-Wl,'
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-static'
7850 ;;
467b2e9e
PG
7851 # icc used to be incompatible with GCC.
7852 # ICC 10 doesn't accept -KPIC any more.
7853 icc* | ifort*)
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_pic='-fPIC'
7856 lt_prog_compiler_static='-static'
7857 ;;
7858 # Lahey Fortran 8.1.
7859 lf95*)
7860 lt_prog_compiler_wl='-Wl,'
7861 lt_prog_compiler_pic='--shared'
7862 lt_prog_compiler_static='--static'
7863 ;;
43e02a8a 7864 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
7865 # Portland Group compilers (*not* the Pentium gcc compiler,
7866 # which looks to be a dead project)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-fpic'
7869 lt_prog_compiler_static='-Bstatic'
7870 ;;
7871 ccc*)
7872 lt_prog_compiler_wl='-Wl,'
7873 # All Alpha code is PIC.
7874 lt_prog_compiler_static='-non_shared'
7875 ;;
43e02a8a
RW
7876 xl* | bgxl* | bgf* | mpixl*)
7877 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
467b2e9e
PG
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_pic='-qpic'
7880 lt_prog_compiler_static='-qstaticlink'
7881 ;;
1cf3d07d
SE
7882 *)
7883 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
7884 *Sun\ F* | *Sun*Fortran*)
7885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
7886 lt_prog_compiler_pic='-KPIC'
7887 lt_prog_compiler_static='-Bstatic'
43e02a8a 7888 lt_prog_compiler_wl=''
1cf3d07d 7889 ;;
43e02a8a
RW
7890 *Sun\ C*)
7891 # Sun C 5.9
1cf3d07d
SE
7892 lt_prog_compiler_pic='-KPIC'
7893 lt_prog_compiler_static='-Bstatic'
43e02a8a 7894 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
7895 ;;
7896 esac
7897 ;;
7898 esac
7899 ;;
7900
7901 newsos6)
7902 lt_prog_compiler_pic='-KPIC'
7903 lt_prog_compiler_static='-Bstatic'
7904 ;;
7905
7906 *nto* | *qnx*)
7907 # QNX uses GNU C++, but need to define -shared option too, otherwise
7908 # it will coredump.
7909 lt_prog_compiler_pic='-fPIC -shared'
7910 ;;
7911
7912 osf3* | osf4* | osf5*)
7913 lt_prog_compiler_wl='-Wl,'
7914 # All OSF/1 code is PIC.
7915 lt_prog_compiler_static='-non_shared'
7916 ;;
7917
7918 rdos*)
7919 lt_prog_compiler_static='-non_shared'
7920 ;;
7921
7922 solaris*)
7923 lt_prog_compiler_pic='-KPIC'
7924 lt_prog_compiler_static='-Bstatic'
7925 case $cc_basename in
7926 f77* | f90* | f95*)
7927 lt_prog_compiler_wl='-Qoption ld ';;
7928 *)
7929 lt_prog_compiler_wl='-Wl,';;
7930 esac
7931 ;;
7932
7933 sunos4*)
7934 lt_prog_compiler_wl='-Qoption ld '
7935 lt_prog_compiler_pic='-PIC'
7936 lt_prog_compiler_static='-Bstatic'
7937 ;;
7938
7939 sysv4 | sysv4.2uw2* | sysv4.3*)
7940 lt_prog_compiler_wl='-Wl,'
7941 lt_prog_compiler_pic='-KPIC'
7942 lt_prog_compiler_static='-Bstatic'
7943 ;;
7944
7945 sysv4*MP*)
7946 if test -d /usr/nec ;then
7947 lt_prog_compiler_pic='-Kconform_pic'
7948 lt_prog_compiler_static='-Bstatic'
7949 fi
7950 ;;
7951
7952 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='-KPIC'
7955 lt_prog_compiler_static='-Bstatic'
7956 ;;
7957
7958 unicos*)
7959 lt_prog_compiler_wl='-Wl,'
7960 lt_prog_compiler_can_build_shared=no
7961 ;;
7962
7963 uts4*)
7964 lt_prog_compiler_pic='-pic'
7965 lt_prog_compiler_static='-Bstatic'
7966 ;;
7967
7968 *)
7969 lt_prog_compiler_can_build_shared=no
7970 ;;
7971 esac
7972 fi
7973
7974case $host_os in
7975 # For platforms which do not support PIC, -DPIC is meaningless:
7976 *djgpp*)
7977 lt_prog_compiler_pic=
7978 ;;
7979 *)
7980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7981 ;;
7982esac
5213506e
RW
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7984$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
7985
7986
7987
7988
7989
7990
7991#
7992# Check to make sure the PIC flag actually works.
7993#
7994if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7996$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7997if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
1cf3d07d 7999else
467b2e9e 8000 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8001 ac_outfile=conftest.$ac_objext
8002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8003 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8004 # Insert the option either (1) after the last *FLAGS variable, or
8005 # (2) before a word containing "conftest.", or (3) at the end.
8006 # Note that $ac_compile itself does not contain backslashes and begins
8007 # with a dollar sign (not a hyphen), so the echo should work correctly.
8008 # The option is referenced via a variable to avoid confusing sed.
8009 lt_compile=`echo "$ac_compile" | $SED \
8010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8012 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8014 (eval "$lt_compile" 2>conftest.err)
8015 ac_status=$?
8016 cat conftest.err >&5
43e02a8a 8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8018 if (exit $ac_status) && test -s "$ac_outfile"; then
8019 # The compiler can only warn and ignore the option if not recognized
8020 # So say no if there are warnings other than the usual output.
43e02a8a 8021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
467b2e9e 8024 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8025 fi
8026 fi
8027 $RM conftest*
8028
8029fi
5213506e
RW
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8031$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8032
467b2e9e 8033if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8034 case $lt_prog_compiler_pic in
8035 "" | " "*) ;;
8036 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8037 esac
8038else
8039 lt_prog_compiler_pic=
8040 lt_prog_compiler_can_build_shared=no
8041fi
8042
8043fi
8044
8045
8046
8047
8048
8049
8050#
8051# Check to make sure the static flag actually works.
8052#
8053wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8055$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8056if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
1cf3d07d 8058else
467b2e9e 8059 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8060 save_LDFLAGS="$LDFLAGS"
8061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8064 # The linker can only warn and ignore the option if not recognized
8065 # So say no if there are warnings
8066 if test -s conftest.err; then
8067 # Append any errors to the config.log.
8068 cat conftest.err 1>&5
43e02a8a 8069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8071 if diff conftest.exp conftest.er2 >/dev/null; then
467b2e9e 8072 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8073 fi
8074 else
467b2e9e 8075 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8076 fi
8077 fi
467b2e9e 8078 $RM -r conftest*
1cf3d07d
SE
8079 LDFLAGS="$save_LDFLAGS"
8080
8081fi
5213506e
RW
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8083$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8084
467b2e9e 8085if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8086 :
8087else
8088 lt_prog_compiler_static=
8089fi
8090
8091
8092
8093
8094
8095
8096
5213506e
RW
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8098$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8099if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8101else
8102 lt_cv_prog_compiler_c_o=no
8103 $RM -r conftest 2>/dev/null
8104 mkdir conftest
8105 cd conftest
8106 mkdir out
8107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8108
8109 lt_compiler_flag="-o out/conftest2.$ac_objext"
8110 # Insert the option either (1) after the last *FLAGS variable, or
8111 # (2) before a word containing "conftest.", or (3) at the end.
8112 # Note that $ac_compile itself does not contain backslashes and begins
8113 # with a dollar sign (not a hyphen), so the echo should work correctly.
8114 lt_compile=`echo "$ac_compile" | $SED \
8115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8117 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8119 (eval "$lt_compile" 2>out/conftest.err)
8120 ac_status=$?
8121 cat out/conftest.err >&5
43e02a8a 8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8124 then
8125 # The compiler can only warn and ignore the option if not recognized
8126 # So say no if there are warnings
43e02a8a 8127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8130 lt_cv_prog_compiler_c_o=yes
8131 fi
8132 fi
8133 chmod u+w . 2>&5
8134 $RM conftest*
8135 # SGI C++ compiler will create directory out/ii_files/ for
8136 # template instantiation
8137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8138 $RM out/* && rmdir out
8139 cd ..
8140 $RM -r conftest
8141 $RM conftest*
8142
8143fi
5213506e
RW
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8145$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8146
8147
8148
8149
8150
8151
5213506e
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8153$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8154if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8156else
8157 lt_cv_prog_compiler_c_o=no
8158 $RM -r conftest 2>/dev/null
8159 mkdir conftest
8160 cd conftest
8161 mkdir out
8162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8163
8164 lt_compiler_flag="-o out/conftest2.$ac_objext"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 lt_compile=`echo "$ac_compile" | $SED \
8170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8172 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8174 (eval "$lt_compile" 2>out/conftest.err)
8175 ac_status=$?
8176 cat out/conftest.err >&5
43e02a8a 8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8179 then
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings
43e02a8a 8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8185 lt_cv_prog_compiler_c_o=yes
8186 fi
8187 fi
8188 chmod u+w . 2>&5
8189 $RM conftest*
8190 # SGI C++ compiler will create directory out/ii_files/ for
8191 # template instantiation
8192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8193 $RM out/* && rmdir out
8194 cd ..
8195 $RM -r conftest
8196 $RM conftest*
8197
8198fi
5213506e
RW
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8200$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8201
8202
8203
8204
8205hard_links="nottested"
8206if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8207 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8209$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8210 hard_links=yes
8211 $RM conftest*
8212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8213 touch conftest.a
8214 ln conftest.a conftest.b 2>&5 || hard_links=no
8215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8217$as_echo "$hard_links" >&6; }
1cf3d07d 8218 if test "$hard_links" = no; then
5213506e
RW
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8220$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8221 need_locks=warn
8222 fi
8223else
8224 need_locks=no
8225fi
8226
8227
8228
8229
8230
8231
5213506e
RW
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8233$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8234
8235 runpath_var=
8236 allow_undefined_flag=
8237 always_export_symbols=no
8238 archive_cmds=
8239 archive_expsym_cmds=
8240 compiler_needs_object=no
8241 enable_shared_with_static_runtimes=no
8242 export_dynamic_flag_spec=
8243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8244 hardcode_automatic=no
8245 hardcode_direct=no
8246 hardcode_direct_absolute=no
8247 hardcode_libdir_flag_spec=
8248 hardcode_libdir_flag_spec_ld=
8249 hardcode_libdir_separator=
8250 hardcode_minus_L=no
8251 hardcode_shlibpath_var=unsupported
8252 inherit_rpath=no
8253 link_all_deplibs=unknown
8254 module_cmds=
8255 module_expsym_cmds=
8256 old_archive_from_new_cmds=
8257 old_archive_from_expsyms_cmds=
8258 thread_safe_flag_spec=
8259 whole_archive_flag_spec=
8260 # include_expsyms should be a list of space-separated symbols to be *always*
8261 # included in the symbol list
8262 include_expsyms=
8263 # exclude_expsyms can be an extended regexp of symbols to exclude
8264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8266 # as well as any symbol that contains `d'.
467b2e9e 8267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8269 # platforms (ab)use it in PIC code, but their linkers get confused if
8270 # the symbol is explicitly referenced. Since portable code cannot
8271 # rely on this symbol name, it's probably fine to never include it in
8272 # preloaded symbol tables.
467b2e9e 8273 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8274 extract_expsyms_cmds=
8275
8276 case $host_os in
467b2e9e 8277 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8279 # When not using gcc, we currently assume that we are using
8280 # Microsoft Visual C++.
8281 if test "$GCC" != yes; then
8282 with_gnu_ld=no
8283 fi
8284 ;;
8285 interix*)
8286 # we just hope/assume this is gcc and not c89 (= MSVC++)
8287 with_gnu_ld=yes
8288 ;;
8289 openbsd*)
8290 with_gnu_ld=no
8291 ;;
8292 esac
8293
8294 ld_shlibs=yes
43e02a8a
RW
8295
8296 # On some targets, GNU ld is compatible enough with the native linker
8297 # that we're better off using the native interface for both.
8298 lt_use_gnu_ld_interface=no
1cf3d07d 8299 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
8300 case $host_os in
8301 aix*)
8302 # The AIX port of GNU ld has always aspired to compatibility
8303 # with the native linker. However, as the warning in the GNU ld
8304 # block says, versions before 2.19.5* couldn't really create working
8305 # shared libraries, regardless of the interface used.
8306 case `$LD -v 2>&1` in
8307 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8308 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8309 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8310 *)
8311 lt_use_gnu_ld_interface=yes
8312 ;;
8313 esac
8314 ;;
8315 *)
8316 lt_use_gnu_ld_interface=yes
8317 ;;
8318 esac
8319 fi
8320
8321 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
8322 # If archive_cmds runs LD, not CC, wlarc should be empty
8323 wlarc='${wl}'
8324
8325 # Set some defaults for GNU ld with shared library support. These
8326 # are reset later if shared libraries are not supported. Putting them
8327 # here allows them to be overridden if necessary.
8328 runpath_var=LD_RUN_PATH
8329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8330 export_dynamic_flag_spec='${wl}--export-dynamic'
8331 # ancient GNU ld didn't support --whole-archive et. al.
8332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8333 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8334 else
8335 whole_archive_flag_spec=
8336 fi
8337 supports_anon_versioning=no
8338 case `$LD -v 2>&1` in
43e02a8a 8339 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
8340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8343 *\ 2.11.*) ;; # other 2.11 versions
8344 *) supports_anon_versioning=yes ;;
8345 esac
8346
8347 # See if GNU ld supports shared libraries.
8348 case $host_os in
e7ad4ca7 8349 aix[3-9]*)
1cf3d07d
SE
8350 # On AIX/PPC, the GNU linker is very broken
8351 if test "$host_cpu" != ia64; then
8352 ld_shlibs=no
8353 cat <<_LT_EOF 1>&2
8354
43e02a8a 8355*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
8356*** to be unable to reliably create shared libraries on AIX.
8357*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
8358*** really care for shared libraries, you may want to install binutils
8359*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8360*** You will then need to restart the configuration process.
1cf3d07d
SE
8361
8362_LT_EOF
8363 fi
8364 ;;
8365
8366 amigaos*)
467b2e9e
PG
8367 case $host_cpu in
8368 powerpc)
8369 # see comment about AmigaOS4 .so support
8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 archive_expsym_cmds=''
8372 ;;
8373 m68k)
8374 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)'
8375 hardcode_libdir_flag_spec='-L$libdir'
8376 hardcode_minus_L=yes
8377 ;;
8378 esac
1cf3d07d
SE
8379 ;;
8380
8381 beos*)
8382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8383 allow_undefined_flag=unsupported
8384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8385 # support --undefined. This deserves some investigation. FIXME
8386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387 else
8388 ld_shlibs=no
8389 fi
8390 ;;
8391
467b2e9e 8392 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8393 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8394 # as there is no search path for DLLs.
8395 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 8396 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
8397 allow_undefined_flag=unsupported
8398 always_export_symbols=no
8399 enable_shared_with_static_runtimes=yes
8400 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8401
8402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8404 # If the export-symbols file already is a .def file (1st line
8405 # is EXPORTS), use it as is; otherwise, prepend...
8406 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8407 cp $export_symbols $output_objdir/$soname.def;
8408 else
8409 echo EXPORTS > $output_objdir/$soname.def;
8410 cat $export_symbols >> $output_objdir/$soname.def;
8411 fi~
8412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8413 else
8414 ld_shlibs=no
8415 fi
8416 ;;
8417
43e02a8a
RW
8418 haiku*)
8419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420 link_all_deplibs=yes
8421 ;;
8422
1cf3d07d
SE
8423 interix[3-9]*)
8424 hardcode_direct=no
8425 hardcode_shlibpath_var=no
8426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8427 export_dynamic_flag_spec='${wl}-E'
8428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8429 # Instead, shared libraries are loaded at an image base (0x10000000 by
8430 # default) and relocated if they conflict, which is a slow very memory
8431 # consuming and fragmenting process. To avoid this, we pick a random,
8432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8435 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'
8436 ;;
8437
7a9d3fe8 8438 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
8439 tmp_diet=no
8440 if test "$host_os" = linux-dietlibc; then
8441 case $cc_basename in
8442 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8443 esac
8444 fi
8445 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8446 && test "$tmp_diet" = no
8447 then
a699d672 8448 tmp_addflag=' $pic_flag'
467b2e9e 8449 tmp_sharedflag='-shared'
1cf3d07d
SE
8450 case $cc_basename,$host_cpu in
8451 pgcc*) # Portland Group C compiler
43e02a8a 8452 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'
1cf3d07d
SE
8453 tmp_addflag=' $pic_flag'
8454 ;;
43e02a8a
RW
8455 pgf77* | pgf90* | pgf95* | pgfortran*)
8456 # Portland Group f77 and f90 compilers
8457 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'
1cf3d07d
SE
8458 tmp_addflag=' $pic_flag -Mnomain' ;;
8459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8460 tmp_addflag=' -i_dynamic' ;;
8461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8462 tmp_addflag=' -i_dynamic -nofor_main' ;;
8463 ifc* | ifort*) # Intel Fortran compiler
8464 tmp_addflag=' -nofor_main' ;;
467b2e9e
PG
8465 lf95*) # Lahey Fortran 8.1
8466 whole_archive_flag_spec=
8467 tmp_sharedflag='--shared' ;;
43e02a8a 8468 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
467b2e9e
PG
8469 tmp_sharedflag='-qmkshrobj'
8470 tmp_addflag= ;;
43e02a8a
RW
8471 nvcc*) # Cuda Compiler Driver 2.2
8472 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'
8473 compiler_needs_object=yes
8474 ;;
1cf3d07d
SE
8475 esac
8476 case `$CC -V 2>&1 | sed 5q` in
8477 *Sun\ C*) # Sun C 5.9
43e02a8a 8478 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'
1cf3d07d
SE
8479 compiler_needs_object=yes
8480 tmp_sharedflag='-G' ;;
8481 *Sun\ F*) # Sun Fortran 8.3
8482 tmp_sharedflag='-G' ;;
1cf3d07d
SE
8483 esac
8484 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485
8486 if test "x$supports_anon_versioning" = xyes; then
8487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8489 echo "local: *; };" >> $output_objdir/$libname.ver~
8490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8491 fi
467b2e9e
PG
8492
8493 case $cc_basename in
43e02a8a 8494 xlf* | bgf* | bgxlf* | mpixlf*)
467b2e9e
PG
8495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8496 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8497 hardcode_libdir_flag_spec=
8498 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8499 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8500 if test "x$supports_anon_versioning" = xyes; then
8501 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8503 echo "local: *; };" >> $output_objdir/$libname.ver~
8504 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8505 fi
8506 ;;
8507 esac
1cf3d07d
SE
8508 else
8509 ld_shlibs=no
8510 fi
8511 ;;
8512
8513 netbsd*)
8514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8515 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8516 wlarc=
8517 else
8518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8520 fi
8521 ;;
8522
8523 solaris*)
8524 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8525 ld_shlibs=no
8526 cat <<_LT_EOF 1>&2
8527
8528*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8529*** create shared libraries on Solaris systems. Therefore, libtool
8530*** is disabling shared libraries support. We urge you to upgrade GNU
8531*** binutils to release 2.9.1 or newer. Another option is to modify
8532*** your PATH or compiler configuration so that the native linker is
8533*** used, and then restart.
8534
8535_LT_EOF
8536 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8539 else
8540 ld_shlibs=no
8541 fi
8542 ;;
8543
8544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8545 case `$LD -v 2>&1` in
8546 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8547 ld_shlibs=no
8548 cat <<_LT_EOF 1>&2
8549
8550*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8551*** reliably create shared libraries on SCO systems. Therefore, libtool
8552*** is disabling shared libraries support. We urge you to upgrade GNU
8553*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8554*** your PATH or compiler configuration so that the native linker is
8555*** used, and then restart.
8556
8557_LT_EOF
8558 ;;
8559 *)
8560 # For security reasons, it is highly recommended that you always
8561 # use absolute paths for naming shared libraries, and exclude the
8562 # DT_RUNPATH tag from executables and libraries. But doing so
8563 # requires that you compile everything twice, which is a pain.
8564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8568 else
8569 ld_shlibs=no
8570 fi
8571 ;;
8572 esac
8573 ;;
8574
8575 sunos4*)
8576 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8577 wlarc=
8578 hardcode_direct=yes
8579 hardcode_shlibpath_var=no
8580 ;;
8581
8582 *)
8583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8586 else
8587 ld_shlibs=no
8588 fi
8589 ;;
8590 esac
8591
8592 if test "$ld_shlibs" = no; then
8593 runpath_var=
8594 hardcode_libdir_flag_spec=
8595 export_dynamic_flag_spec=
8596 whole_archive_flag_spec=
8597 fi
8598 else
8599 # PORTME fill in a description of your system's linker (not GNU ld)
8600 case $host_os in
8601 aix3*)
8602 allow_undefined_flag=unsupported
8603 always_export_symbols=yes
8604 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'
8605 # Note: this linker hardcodes the directories in LIBPATH if there
8606 # are no directories specified by -L.
8607 hardcode_minus_L=yes
8608 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8609 # Neither direct hardcoding nor static linking is supported with a
8610 # broken collect2.
8611 hardcode_direct=unsupported
8612 fi
8613 ;;
8614
e7ad4ca7 8615 aix[4-9]*)
1cf3d07d
SE
8616 if test "$host_cpu" = ia64; then
8617 # On IA64, the linker does run time linking by default, so we don't
8618 # have to do anything special.
8619 aix_use_runtimelinking=no
8620 exp_sym_flag='-Bexport'
8621 no_entry_flag=""
8622 else
8623 # If we're using GNU nm, then we don't want the "-C" option.
8624 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
8625 # Also, AIX nm treats weak defined symbols like other global
8626 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 8627 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 8628 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'
1cf3d07d 8629 else
84c1b9d3 8630 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
8631 fi
8632 aix_use_runtimelinking=no
8633
8634 # Test if we are trying to use run time linking or normal
8635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8636 # need to do runtime linking.
e7ad4ca7 8637 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8638 for ld_flag in $LDFLAGS; do
8639 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8640 aix_use_runtimelinking=yes
8641 break
8642 fi
8643 done
8644 ;;
8645 esac
8646
8647 exp_sym_flag='-bexport'
8648 no_entry_flag='-bnoentry'
8649 fi
8650
8651 # When large executables or shared objects are built, AIX ld can
8652 # have problems creating the table of contents. If linking a library
8653 # or program results in "error TOC overflow" add -mminimal-toc to
8654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8656
8657 archive_cmds=''
8658 hardcode_direct=yes
8659 hardcode_direct_absolute=yes
8660 hardcode_libdir_separator=':'
8661 link_all_deplibs=yes
8662 file_list_spec='${wl}-f,'
8663
8664 if test "$GCC" = yes; then
8665 case $host_os in aix4.[012]|aix4.[012].*)
8666 # We only want to do this on AIX 4.2 and lower, the check
8667 # below for broken collect2 doesn't work under 4.3+
8668 collect2name=`${CC} -print-prog-name=collect2`
8669 if test -f "$collect2name" &&
8670 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8671 then
8672 # We have reworked collect2
8673 :
8674 else
8675 # We have old collect2
8676 hardcode_direct=unsupported
8677 # It fails to find uninstalled libraries when the uninstalled
8678 # path is not listed in the libpath. Setting hardcode_minus_L
8679 # to unsupported forces relinking
8680 hardcode_minus_L=yes
8681 hardcode_libdir_flag_spec='-L$libdir'
8682 hardcode_libdir_separator=
8683 fi
8684 ;;
8685 esac
8686 shared_flag='-shared'
8687 if test "$aix_use_runtimelinking" = yes; then
8688 shared_flag="$shared_flag "'${wl}-G'
8689 fi
8690 else
8691 # not using gcc
8692 if test "$host_cpu" = ia64; then
8693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8694 # chokes on -Wl,-G. The following line is correct:
8695 shared_flag='-G'
8696 else
8697 if test "$aix_use_runtimelinking" = yes; then
8698 shared_flag='${wl}-G'
8699 else
8700 shared_flag='${wl}-bM:SRE'
8701 fi
8702 fi
8703 fi
8704
467b2e9e 8705 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8706 # It seems that -bexpall does not export symbols beginning with
8707 # underscore (_), so it is better to generate a list of symbols to export.
8708 always_export_symbols=yes
8709 if test "$aix_use_runtimelinking" = yes; then
8710 # Warning - without using the other runtime loading flags (-brtl),
8711 # -berok will link without error, but may produce a broken library.
8712 allow_undefined_flag='-berok'
8713 # Determine the default libpath from the value encoded in an
8714 # empty executable.
8715 if test x$gcc_no_link = xyes; then
5213506e 8716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8717fi
5213506e 8718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8719/* end confdefs.h. */
8720
8721int
8722main ()
8723{
8724
8725 ;
8726 return 0;
8727}
8728_ACEOF
5213506e 8729if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8730
8731lt_aix_libpath_sed='
8732 /Import File Strings/,/^$/ {
8733 /^0/ {
8734 s/^0 *\(.*\)$/\1/
8735 p
8736 }
8737 }'
8738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8739# Check for a 64-bit object if we didn't find anything.
8740if test -z "$aix_libpath"; then
8741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8742fi
1cf3d07d 8743fi
5213506e
RW
8744rm -f core conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8747
8748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 8749 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"
1cf3d07d
SE
8750 else
8751 if test "$host_cpu" = ia64; then
8752 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8753 allow_undefined_flag="-z nodefs"
8754 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"
8755 else
8756 # Determine the default libpath from the value encoded in an
8757 # empty executable.
8758 if test x$gcc_no_link = xyes; then
5213506e 8759 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8760fi
5213506e 8761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8762/* end confdefs.h. */
8763
8764int
8765main ()
8766{
8767
8768 ;
8769 return 0;
8770}
8771_ACEOF
5213506e 8772if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8773
8774lt_aix_libpath_sed='
8775 /Import File Strings/,/^$/ {
8776 /^0/ {
8777 s/^0 *\(.*\)$/\1/
8778 p
8779 }
8780 }'
8781aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8782# Check for a 64-bit object if we didn't find anything.
8783if test -z "$aix_libpath"; then
8784 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8785fi
1cf3d07d 8786fi
5213506e
RW
8787rm -f core conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8789if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8790
8791 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8792 # Warning - without using the other run time loading flags,
8793 # -berok will link without error, but may produce a broken library.
8794 no_undefined_flag=' ${wl}-bernotok'
8795 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
8796 if test "$with_gnu_ld" = yes; then
8797 # We only use this code for GNU lds that support --whole-archive.
8798 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8799 else
8800 # Exported symbols can be pulled into shared objects from archives
8801 whole_archive_flag_spec='$convenience'
8802 fi
1cf3d07d
SE
8803 archive_cmds_need_lc=yes
8804 # This is similar to how AIX traditionally builds its shared libraries.
8805 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'
8806 fi
8807 fi
8808 ;;
8809
8810 amigaos*)
467b2e9e
PG
8811 case $host_cpu in
8812 powerpc)
8813 # see comment about AmigaOS4 .so support
8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815 archive_expsym_cmds=''
8816 ;;
8817 m68k)
8818 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)'
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_minus_L=yes
8821 ;;
8822 esac
1cf3d07d
SE
8823 ;;
8824
8825 bsdi[45]*)
8826 export_dynamic_flag_spec=-rdynamic
8827 ;;
8828
467b2e9e 8829 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8830 # When not using gcc, we currently assume that we are using
8831 # Microsoft Visual C++.
8832 # hardcode_libdir_flag_spec is actually meaningless, as there is
8833 # no search path for DLLs.
8834 hardcode_libdir_flag_spec=' '
8835 allow_undefined_flag=unsupported
8836 # Tell ltmain to make .lib files, not .a files.
8837 libext=lib
8838 # Tell ltmain to make .dll files, not .so files.
8839 shrext_cmds=".dll"
8840 # FIXME: Setting linknames here is a bad hack.
43e02a8a 8841 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
8842 # The linker will automatically build a .lib file if we build a DLL.
8843 old_archive_from_new_cmds='true'
8844 # FIXME: Should let the user specify the lib program.
8845 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8846 fix_srcfile_path='`cygpath -w "$srcfile"`'
8847 enable_shared_with_static_runtimes=yes
8848 ;;
8849
8850 darwin* | rhapsody*)
1cf3d07d 8851
467b2e9e
PG
8852
8853 archive_cmds_need_lc=no
8854 hardcode_direct=no
8855 hardcode_automatic=yes
8856 hardcode_shlibpath_var=unsupported
43e02a8a
RW
8857 if test "$lt_cv_ld_force_load" = "yes"; then
8858 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\"`'
8859 else
8860 whole_archive_flag_spec=''
8861 fi
467b2e9e
PG
8862 link_all_deplibs=yes
8863 allow_undefined_flag="$_lt_dar_allow_undefined"
8864 case $cc_basename in
8865 ifort*) _lt_dar_can_shared=yes ;;
8866 *) _lt_dar_can_shared=$GCC ;;
8867 esac
8868 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 8869 output_verbose_link_cmd=func_echo_all
467b2e9e
PG
8870 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8871 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8872 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}"
8873 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}"
8874
8875 else
8876 ld_shlibs=no
8877 fi
8878
1cf3d07d
SE
8879 ;;
8880
8881 dgux*)
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_libdir_flag_spec='-L$libdir'
8884 hardcode_shlibpath_var=no
8885 ;;
8886
1cf3d07d
SE
8887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8888 # support. Future versions do this automatically, but an explicit c++rt0.o
8889 # does not break anything, and helps significantly (at the cost of a little
8890 # extra space).
8891 freebsd2.2*)
8892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8893 hardcode_libdir_flag_spec='-R$libdir'
8894 hardcode_direct=yes
8895 hardcode_shlibpath_var=no
8896 ;;
8897
8898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 8899 freebsd2.*)
1cf3d07d
SE
8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_direct=yes
8902 hardcode_minus_L=yes
8903 hardcode_shlibpath_var=no
8904 ;;
8905
8906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8907 freebsd* | dragonfly*)
8908 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8909 hardcode_libdir_flag_spec='-R$libdir'
8910 hardcode_direct=yes
8911 hardcode_shlibpath_var=no
8912 ;;
8913
8914 hpux9*)
8915 if test "$GCC" = yes; then
8916 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'
8917 else
8918 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'
8919 fi
8920 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8921 hardcode_libdir_separator=:
8922 hardcode_direct=yes
8923
8924 # hardcode_minus_L: Not really in the search PATH,
8925 # but as the default location of the library.
8926 hardcode_minus_L=yes
8927 export_dynamic_flag_spec='${wl}-E'
8928 ;;
8929
8930 hpux10*)
43e02a8a 8931 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
8932 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8933 else
8934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8935 fi
8936 if test "$with_gnu_ld" = no; then
8937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8938 hardcode_libdir_flag_spec_ld='+b $libdir'
8939 hardcode_libdir_separator=:
8940 hardcode_direct=yes
8941 hardcode_direct_absolute=yes
8942 export_dynamic_flag_spec='${wl}-E'
8943 # hardcode_minus_L: Not really in the search PATH,
8944 # but as the default location of the library.
8945 hardcode_minus_L=yes
8946 fi
8947 ;;
8948
8949 hpux11*)
43e02a8a 8950 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
8951 case $host_cpu in
8952 hppa*64*)
8953 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 ;;
8955 ia64*)
467b2e9e 8956 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
8957 ;;
8958 *)
8959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8960 ;;
8961 esac
8962 else
8963 case $host_cpu in
8964 hppa*64*)
8965 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 ;;
8967 ia64*)
8968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8969 ;;
8970 *)
43e02a8a
RW
8971
8972 # Older versions of the 11.00 compiler do not understand -b yet
8973 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8975$as_echo_n "checking if $CC understands -b... " >&6; }
8976if test "${lt_cv_prog_compiler__b+set}" = set; then :
8977 $as_echo_n "(cached) " >&6
8978else
8979 lt_cv_prog_compiler__b=no
8980 save_LDFLAGS="$LDFLAGS"
8981 LDFLAGS="$LDFLAGS -b"
8982 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8984 # The linker can only warn and ignore the option if not recognized
8985 # So say no if there are warnings
8986 if test -s conftest.err; then
8987 # Append any errors to the config.log.
8988 cat conftest.err 1>&5
8989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8991 if diff conftest.exp conftest.er2 >/dev/null; then
8992 lt_cv_prog_compiler__b=yes
8993 fi
8994 else
8995 lt_cv_prog_compiler__b=yes
8996 fi
8997 fi
8998 $RM -r conftest*
8999 LDFLAGS="$save_LDFLAGS"
9000
9001fi
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9003$as_echo "$lt_cv_prog_compiler__b" >&6; }
9004
9005if test x"$lt_cv_prog_compiler__b" = xyes; then
9006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9007else
9008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9009fi
9010
1cf3d07d
SE
9011 ;;
9012 esac
9013 fi
9014 if test "$with_gnu_ld" = no; then
9015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016 hardcode_libdir_separator=:
9017
9018 case $host_cpu in
9019 hppa*64*|ia64*)
9020 hardcode_direct=no
9021 hardcode_shlibpath_var=no
9022 ;;
9023 *)
9024 hardcode_direct=yes
9025 hardcode_direct_absolute=yes
9026 export_dynamic_flag_spec='${wl}-E'
9027
9028 # hardcode_minus_L: Not really in the search PATH,
9029 # but as the default location of the library.
9030 hardcode_minus_L=yes
9031 ;;
9032 esac
9033 fi
9034 ;;
9035
9036 irix5* | irix6* | nonstopux*)
9037 if test "$GCC" = yes; then
43e02a8a 9038 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'
1cf3d07d
SE
9039 # Try to use the -exported_symbol ld option, if it does not
9040 # work, assume that -exports_file does not work either and
9041 # implicitly export all symbols.
9042 save_LDFLAGS="$LDFLAGS"
9043 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9044 if test x$gcc_no_link = xyes; then
5213506e 9045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9046fi
5213506e
RW
9047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h. */
1cf3d07d
SE
9049int foo(void) {}
9050_ACEOF
5213506e 9051if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9052 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'
1cf3d07d 9053
1cf3d07d 9054fi
5213506e
RW
9055rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9057 LDFLAGS="$save_LDFLAGS"
9058 else
43e02a8a
RW
9059 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'
9060 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'
1cf3d07d
SE
9061 fi
9062 archive_cmds_need_lc='no'
9063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9064 hardcode_libdir_separator=:
9065 inherit_rpath=yes
9066 link_all_deplibs=yes
9067 ;;
9068
9069 netbsd*)
9070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9072 else
9073 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9074 fi
9075 hardcode_libdir_flag_spec='-R$libdir'
9076 hardcode_direct=yes
9077 hardcode_shlibpath_var=no
9078 ;;
9079
9080 newsos6)
9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_direct=yes
9083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9084 hardcode_libdir_separator=:
9085 hardcode_shlibpath_var=no
9086 ;;
9087
9088 *nto* | *qnx*)
9089 ;;
9090
9091 openbsd*)
467b2e9e
PG
9092 if test -f /usr/libexec/ld.so; then
9093 hardcode_direct=yes
9094 hardcode_shlibpath_var=no
9095 hardcode_direct_absolute=yes
9096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
467b2e9e 9098 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
467b2e9e
PG
9100 export_dynamic_flag_spec='${wl}-E'
9101 else
9102 case $host_os in
9103 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105 hardcode_libdir_flag_spec='-R$libdir'
9106 ;;
9107 *)
9108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9110 ;;
9111 esac
9112 fi
9113 else
9114 ld_shlibs=no
1cf3d07d
SE
9115 fi
9116 ;;
9117
9118 os2*)
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_minus_L=yes
9121 allow_undefined_flag=unsupported
43e02a8a 9122 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'
1cf3d07d
SE
9123 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9124 ;;
9125
9126 osf3*)
9127 if test "$GCC" = yes; then
9128 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9129 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'
1cf3d07d
SE
9130 else
9131 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9132 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'
1cf3d07d
SE
9133 fi
9134 archive_cmds_need_lc='no'
9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136 hardcode_libdir_separator=:
9137 ;;
9138
9139 osf4* | osf5*) # as osf3* with the addition of -msym flag
9140 if test "$GCC" = yes; then
9141 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9142 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'
1cf3d07d
SE
9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144 else
9145 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9146 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'
1cf3d07d 9147 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~
43e02a8a 9148 $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'
1cf3d07d
SE
9149
9150 # Both c and cxx compiler support -rpath directly
9151 hardcode_libdir_flag_spec='-rpath $libdir'
9152 fi
9153 archive_cmds_need_lc='no'
9154 hardcode_libdir_separator=:
9155 ;;
9156
9157 solaris*)
9158 no_undefined_flag=' -z defs'
9159 if test "$GCC" = yes; then
9160 wlarc='${wl}'
9161 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9163 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9164 else
9165 case `$CC -V 2>&1` in
9166 *"Compilers 5.0"*)
9167 wlarc=''
9168 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9171 ;;
9172 *)
9173 wlarc='${wl}'
9174 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9176 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9177 ;;
9178 esac
9179 fi
9180 hardcode_libdir_flag_spec='-R$libdir'
9181 hardcode_shlibpath_var=no
9182 case $host_os in
9183 solaris2.[0-5] | solaris2.[0-5].*) ;;
9184 *)
9185 # The compiler driver will combine and reorder linker options,
9186 # but understands `-z linker_flag'. GCC discards it without `$wl',
9187 # but is careful enough not to reorder.
9188 # Supported since Solaris 2.6 (maybe 2.5.1?)
9189 if test "$GCC" = yes; then
9190 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9191 else
9192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9193 fi
9194 ;;
9195 esac
9196 link_all_deplibs=yes
9197 ;;
9198
9199 sunos4*)
9200 if test "x$host_vendor" = xsequent; then
9201 # Use $CC to link under sequent, because it throws in some extra .o
9202 # files that make .init and .fini sections work.
9203 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9204 else
9205 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9206 fi
9207 hardcode_libdir_flag_spec='-L$libdir'
9208 hardcode_direct=yes
9209 hardcode_minus_L=yes
9210 hardcode_shlibpath_var=no
9211 ;;
9212
9213 sysv4)
9214 case $host_vendor in
9215 sni)
9216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217 hardcode_direct=yes # is this really true???
9218 ;;
9219 siemens)
9220 ## LD is ld it makes a PLAMLIB
9221 ## CC just makes a GrossModule.
9222 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9223 reload_cmds='$CC -r -o $output$reload_objs'
9224 hardcode_direct=no
9225 ;;
9226 motorola)
9227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9229 ;;
9230 esac
9231 runpath_var='LD_RUN_PATH'
9232 hardcode_shlibpath_var=no
9233 ;;
9234
9235 sysv4.3*)
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_shlibpath_var=no
9238 export_dynamic_flag_spec='-Bexport'
9239 ;;
9240
9241 sysv4*MP*)
9242 if test -d /usr/nec; then
9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244 hardcode_shlibpath_var=no
9245 runpath_var=LD_RUN_PATH
9246 hardcode_runpath_var=yes
9247 ld_shlibs=yes
9248 fi
9249 ;;
9250
9251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9252 no_undefined_flag='${wl}-z,text'
9253 archive_cmds_need_lc=no
9254 hardcode_shlibpath_var=no
9255 runpath_var='LD_RUN_PATH'
9256
9257 if test "$GCC" = yes; then
9258 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9259 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260 else
9261 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 fi
9264 ;;
9265
9266 sysv5* | sco3.2v5* | sco5v6*)
9267 # Note: We can NOT use -z defs as we might desire, because we do not
9268 # link with -lc, and that would cause any symbols used from libc to
9269 # always be unresolved, which means just about no library would
9270 # ever link correctly. If we're not using GNU ld we use -z text
9271 # though, which does catch some bad symbols but isn't as heavy-handed
9272 # as -z defs.
9273 no_undefined_flag='${wl}-z,text'
9274 allow_undefined_flag='${wl}-z,nodefs'
9275 archive_cmds_need_lc=no
9276 hardcode_shlibpath_var=no
9277 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9278 hardcode_libdir_separator=':'
9279 link_all_deplibs=yes
9280 export_dynamic_flag_spec='${wl}-Bexport'
9281 runpath_var='LD_RUN_PATH'
9282
9283 if test "$GCC" = yes; then
9284 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286 else
9287 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 fi
9290 ;;
9291
9292 uts4*)
9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_shlibpath_var=no
9296 ;;
9297
9298 *)
9299 ld_shlibs=no
9300 ;;
9301 esac
9302
9303 if test x$host_vendor = xsni; then
9304 case $host in
9305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9306 export_dynamic_flag_spec='${wl}-Blargedynsym'
9307 ;;
9308 esac
9309 fi
9310 fi
9311
5213506e
RW
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9313$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9314test "$ld_shlibs" = no && can_build_shared=no
9315
9316with_gnu_ld=$with_gnu_ld
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332#
9333# Do we need to explicitly link libc?
9334#
9335case "x$archive_cmds_need_lc" in
9336x|xyes)
9337 # Assume -lc should be added
9338 archive_cmds_need_lc=yes
9339
9340 if test "$enable_shared" = yes && test "$GCC" = yes; then
9341 case $archive_cmds in
9342 *'~'*)
9343 # FIXME: we may have to deal with multi-command sequences.
9344 ;;
9345 '$CC '*)
9346 # Test whether the compiler implicitly links with -lc since on some
9347 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9348 # to ld, don't add -lc before -lgcc.
5213506e
RW
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9350$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9351if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
baafc534
RW
9353else
9354 $RM conftest*
9355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9356
5213506e 9357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9358 (eval $ac_compile) 2>&5
9359 ac_status=$?
5213506e
RW
9360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9361 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
9362 soname=conftest
9363 lib=conftest
9364 libobjs=conftest.$ac_objext
9365 deplibs=
9366 wl=$lt_prog_compiler_wl
9367 pic_flag=$lt_prog_compiler_pic
9368 compiler_flags=-v
9369 linker_flags=-v
9370 verstring=
9371 output_objdir=.
9372 libname=conftest
9373 lt_save_allow_undefined_flag=$allow_undefined_flag
9374 allow_undefined_flag=
5213506e 9375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9376 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9377 ac_status=$?
5213506e
RW
9378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9379 test $ac_status = 0; }
baafc534
RW
9380 then
9381 lt_cv_archive_cmds_need_lc=no
9382 else
9383 lt_cv_archive_cmds_need_lc=yes
9384 fi
9385 allow_undefined_flag=$lt_save_allow_undefined_flag
9386 else
9387 cat conftest.err 1>&5
9388 fi
9389 $RM conftest*
9390
9391fi
5213506e
RW
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9393$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 9394 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9395 ;;
9396 esac
9397 fi
9398 ;;
9399esac
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
5213506e
RW
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9558$as_echo_n "checking dynamic linker characteristics... " >&6; }
467b2e9e
PG
9559
9560if test "$GCC" = yes; then
1cf3d07d
SE
9561 case $host_os in
9562 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9563 *) lt_awk_arg="/^libraries:/" ;;
9564 esac
43e02a8a
RW
9565 case $host_os in
9566 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9567 *) lt_sed_strip_eq="s,=/,/,g" ;;
9568 esac
9569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9570 case $lt_search_path_spec in
9571 *\;*)
1cf3d07d
SE
9572 # if the path contains ";" then we assume it to be the separator
9573 # otherwise default to the standard path separator (i.e. ":") - it is
9574 # assumed that no part of a normal pathname contains ";" but that should
9575 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
9576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9577 ;;
9578 *)
9579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9580 ;;
9581 esac
1cf3d07d
SE
9582 # Ok, now we have the path, separated by spaces, we can step through it
9583 # and add multilib dir if necessary.
9584 lt_tmp_lt_search_path_spec=
9585 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9586 for lt_sys_path in $lt_search_path_spec; do
9587 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9589 else
9590 test -d "$lt_sys_path" && \
9591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9592 fi
9593 done
43e02a8a 9594 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
9595BEGIN {RS=" "; FS="/|\n";} {
9596 lt_foo="";
9597 lt_count=0;
9598 for (lt_i = NF; lt_i > 0; lt_i--) {
9599 if ($lt_i != "" && $lt_i != ".") {
9600 if ($lt_i == "..") {
9601 lt_count++;
9602 } else {
9603 if (lt_count == 0) {
9604 lt_foo="/" $lt_i lt_foo;
9605 } else {
9606 lt_count--;
9607 }
9608 }
9609 }
9610 }
9611 if (lt_foo != "") { lt_freq[lt_foo]++; }
9612 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9613}'`
43e02a8a
RW
9614 # AWK program above erroneously prepends '/' to C:/dos/paths
9615 # for these hosts.
9616 case $host_os in
9617 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9618 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9619 esac
9620 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
9621else
9622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9623fi
9624library_names_spec=
9625libname_spec='lib$name'
9626soname_spec=
9627shrext_cmds=".so"
9628postinstall_cmds=
9629postuninstall_cmds=
9630finish_cmds=
9631finish_eval=
9632shlibpath_var=
9633shlibpath_overrides_runpath=unknown
9634version_type=none
9635dynamic_linker="$host_os ld.so"
9636sys_lib_dlsearch_path_spec="/lib /usr/lib"
9637need_lib_prefix=unknown
9638hardcode_into_libs=no
9639
9640# when you set need_version to no, make sure it does not cause -set_version
9641# flags to be left without arguments
9642need_version=unknown
9643
9644case $host_os in
9645aix3*)
9646 version_type=linux
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9648 shlibpath_var=LIBPATH
9649
9650 # AIX 3 has no versioning support, so we append a major version to the name.
9651 soname_spec='${libname}${release}${shared_ext}$major'
9652 ;;
9653
e7ad4ca7 9654aix[4-9]*)
1cf3d07d
SE
9655 version_type=linux
9656 need_lib_prefix=no
9657 need_version=no
9658 hardcode_into_libs=yes
9659 if test "$host_cpu" = ia64; then
9660 # AIX 5 supports IA64
9661 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 else
9664 # With GCC up to 2.95.x, collect2 would create an import file
9665 # for dependence libraries. The import file would start with
9666 # the line `#! .'. This would cause the generated library to
9667 # depend on `.', always an invalid library. This was fixed in
9668 # development snapshots of GCC prior to 3.0.
9669 case $host_os in
9670 aix4 | aix4.[01] | aix4.[01].*)
9671 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9672 echo ' yes '
9673 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9674 :
9675 else
9676 can_build_shared=no
9677 fi
9678 ;;
9679 esac
9680 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9681 # soname into executable. Probably we can add versioning support to
9682 # collect2, so additional links can be useful in future.
9683 if test "$aix_use_runtimelinking" = yes; then
9684 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9685 # instead of lib<name>.a to let people know that these are not
9686 # typical AIX shared libraries.
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 else
9689 # We preserve .a as extension for shared libraries through AIX4.2
9690 # and later when we are not doing run time linking.
9691 library_names_spec='${libname}${release}.a $libname.a'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9693 fi
9694 shlibpath_var=LIBPATH
9695 fi
9696 ;;
9697
9698amigaos*)
467b2e9e
PG
9699 case $host_cpu in
9700 powerpc)
9701 # Since July 2007 AmigaOS4 officially supports .so libraries.
9702 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 ;;
9705 m68k)
1cf3d07d
SE
9706 library_names_spec='$libname.ixlibrary $libname.a'
9707 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 9708 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'
467b2e9e
PG
9709 ;;
9710 esac
1cf3d07d
SE
9711 ;;
9712
9713beos*)
9714 library_names_spec='${libname}${shared_ext}'
9715 dynamic_linker="$host_os ld.so"
9716 shlibpath_var=LIBRARY_PATH
9717 ;;
9718
9719bsdi[45]*)
9720 version_type=linux
9721 need_version=no
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9727 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9728 # the default ld.so.conf also contains /usr/contrib/lib and
9729 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9730 # libtool to hard-code these into programs
9731 ;;
9732
467b2e9e 9733cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9734 version_type=windows
9735 shrext_cmds=".dll"
9736 need_version=no
9737 need_lib_prefix=no
9738
467b2e9e
PG
9739 case $GCC,$host_os in
9740 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9741 library_names_spec='$libname.dll.a'
9742 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9743 postinstall_cmds='base_file=`basename \${file}`~
9744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9745 dldir=$destdir/`dirname \$dlpath`~
9746 test -d \$dldir || mkdir -p \$dldir~
9747 $install_prog $dir/$dlname \$dldir/$dlname~
9748 chmod a+x \$dldir/$dlname~
9749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9750 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9751 fi'
9752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9753 dlpath=$dir/\$dldll~
9754 $RM \$dlpath'
9755 shlibpath_overrides_runpath=yes
9756
9757 case $host_os in
9758 cygwin*)
9759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
9761
9762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 9763 ;;
467b2e9e 9764 mingw* | cegcc*)
1cf3d07d
SE
9765 # MinGW DLLs use traditional 'lib' prefix
9766 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
9767 ;;
9768 pw32*)
9769 # pw32 DLLs use 'pw' prefix rather than 'lib'
9770 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9771 ;;
9772 esac
9773 ;;
9774
9775 *)
9776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9777 ;;
9778 esac
9779 dynamic_linker='Win32 ld.exe'
9780 # FIXME: first we should search . and the directory the executable is in
9781 shlibpath_var=PATH
9782 ;;
9783
9784darwin* | rhapsody*)
9785 dynamic_linker="$host_os dyld"
9786 version_type=darwin
9787 need_lib_prefix=no
9788 need_version=no
9789 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9790 soname_spec='${libname}${release}${major}$shared_ext'
9791 shlibpath_overrides_runpath=yes
9792 shlibpath_var=DYLD_LIBRARY_PATH
9793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9794
9795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9796 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9797 ;;
9798
9799dgux*)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 ;;
9807
1cf3d07d
SE
9808freebsd* | dragonfly*)
9809 # DragonFly does not have aout. When/if they implement a new
9810 # versioning mechanism, adjust this.
9811 if test -x /usr/bin/objformat; then
9812 objformat=`/usr/bin/objformat`
9813 else
9814 case $host_os in
c6084f68 9815 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
9816 *) objformat=elf ;;
9817 esac
9818 fi
9819 version_type=freebsd-$objformat
9820 case $version_type in
9821 freebsd-elf*)
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9823 need_version=no
9824 need_lib_prefix=no
9825 ;;
9826 freebsd-*)
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9828 need_version=yes
9829 ;;
9830 esac
9831 shlibpath_var=LD_LIBRARY_PATH
9832 case $host_os in
c6084f68 9833 freebsd2.*)
1cf3d07d
SE
9834 shlibpath_overrides_runpath=yes
9835 ;;
9836 freebsd3.[01]* | freebsdelf3.[01]*)
9837 shlibpath_overrides_runpath=yes
9838 hardcode_into_libs=yes
9839 ;;
9840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9842 shlibpath_overrides_runpath=no
9843 hardcode_into_libs=yes
9844 ;;
9845 *) # from 4.6 on, and DragonFly
9846 shlibpath_overrides_runpath=yes
9847 hardcode_into_libs=yes
9848 ;;
9849 esac
9850 ;;
9851
9852gnu*)
9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 shlibpath_var=LD_LIBRARY_PATH
9859 hardcode_into_libs=yes
9860 ;;
9861
43e02a8a
RW
9862haiku*)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 dynamic_linker="$host_os runtime_loader"
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9868 soname_spec='${libname}${release}${shared_ext}$major'
9869 shlibpath_var=LIBRARY_PATH
9870 shlibpath_overrides_runpath=yes
9871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9872 hardcode_into_libs=yes
9873 ;;
9874
1cf3d07d
SE
9875hpux9* | hpux10* | hpux11*)
9876 # Give a soname corresponding to the major version so that dld.sl refuses to
9877 # link against other versions.
9878 version_type=sunos
9879 need_lib_prefix=no
9880 need_version=no
9881 case $host_cpu in
9882 ia64*)
9883 shrext_cmds='.so'
9884 hardcode_into_libs=yes
9885 dynamic_linker="$host_os dld.so"
9886 shlibpath_var=LD_LIBRARY_PATH
9887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 if test "X$HPUX_IA64_MODE" = X32; then
9891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9892 else
9893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9894 fi
9895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9896 ;;
9897 hppa*64*)
9898 shrext_cmds='.sl'
9899 hardcode_into_libs=yes
9900 dynamic_linker="$host_os dld.sl"
9901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9907 ;;
9908 *)
9909 shrext_cmds='.sl'
9910 dynamic_linker="$host_os dld.sl"
9911 shlibpath_var=SHLIB_PATH
9912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 ;;
9916 esac
43e02a8a 9917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 9918 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
9919 # or fails outright, so override atomically:
9920 install_override_mode=555
1cf3d07d
SE
9921 ;;
9922
9923interix[3-9]*)
9924 version_type=linux
9925 need_lib_prefix=no
9926 need_version=no
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=no
9932 hardcode_into_libs=yes
9933 ;;
9934
9935irix5* | irix6* | nonstopux*)
9936 case $host_os in
9937 nonstopux*) version_type=nonstopux ;;
9938 *)
9939 if test "$lt_cv_prog_gnu_ld" = yes; then
9940 version_type=linux
9941 else
9942 version_type=irix
9943 fi ;;
9944 esac
9945 need_lib_prefix=no
9946 need_version=no
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9949 case $host_os in
9950 irix5* | nonstopux*)
9951 libsuff= shlibsuff=
9952 ;;
9953 *)
9954 case $LD in # libtool.m4 will add one of these switches to LD
9955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9956 libsuff= shlibsuff= libmagic=32-bit;;
9957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9958 libsuff=32 shlibsuff=N32 libmagic=N32;;
9959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9961 *) libsuff= shlibsuff= libmagic=never-match;;
9962 esac
9963 ;;
9964 esac
9965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9966 shlibpath_overrides_runpath=no
9967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9969 hardcode_into_libs=yes
9970 ;;
9971
9972# No shared lib support for Linux oldld, aout, or coff.
9973linux*oldld* | linux*aout* | linux*coff*)
9974 dynamic_linker=no
9975 ;;
9976
9977# This must be Linux ELF.
7a9d3fe8 9978linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9979 version_type=linux
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath=no
baafc534 9987
1cf3d07d 9988 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
9989 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
baafc534
RW
9991else
9992 lt_cv_shlibpath_overrides_runpath=no
9993 save_LDFLAGS=$LDFLAGS
9994 save_libdir=$libdir
9995 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9996 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9997 if test x$gcc_no_link = xyes; then
5213506e 9998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9999fi
5213506e 10000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10001/* end confdefs.h. */
10002
10003int
10004main ()
10005{
10006
10007 ;
10008 return 0;
10009}
10010_ACEOF
5213506e
RW
10011if ac_fn_c_try_link "$LINENO"; then :
10012 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10013 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10014fi
1cf3d07d 10015fi
5213506e
RW
10016rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10018 LDFLAGS=$save_LDFLAGS
10019 libdir=$save_libdir
10020
10021fi
10022
10023 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10024
10025 # This implies no fast_install, which is unacceptable.
10026 # Some rework will be needed to allow for fast_install
10027 # before this can be enabled.
10028 hardcode_into_libs=yes
10029
10030 # Append ld.so.conf contents to the search path
10031 if test -f /etc/ld.so.conf; then
43e02a8a 10032 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' ' '`
1cf3d07d
SE
10033 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10034 fi
10035
10036 # We used to test for /lib/ld.so.1 and disable shared libraries on
10037 # powerpc, because MkLinux only supported shared libraries with the
10038 # GNU dynamic linker. Since this was broken with cross compilers,
10039 # most powerpc-linux boxes support dynamic linking these days and
10040 # people can always --disable-shared, the test was removed, and we
10041 # assume the GNU/Linux dynamic linker is in use.
10042 dynamic_linker='GNU/Linux ld.so'
10043 ;;
10044
10045netbsd*)
10046 version_type=sunos
10047 need_lib_prefix=no
10048 need_version=no
10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10052 dynamic_linker='NetBSD (a.out) ld.so'
10053 else
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 dynamic_linker='NetBSD ld.elf_so'
10057 fi
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=yes
10060 hardcode_into_libs=yes
10061 ;;
10062
10063newsos6)
10064 version_type=linux
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 shlibpath_overrides_runpath=yes
10068 ;;
10069
10070*nto* | *qnx*)
10071 version_type=qnx
10072 need_lib_prefix=no
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 hardcode_into_libs=yes
10079 dynamic_linker='ldqnx.so'
10080 ;;
10081
10082openbsd*)
10083 version_type=sunos
10084 sys_lib_dlsearch_path_spec="/usr/lib"
10085 need_lib_prefix=no
10086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10087 case $host_os in
10088 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10089 *) need_version=no ;;
10090 esac
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10095 case $host_os in
10096 openbsd2.[89] | openbsd2.[89].*)
10097 shlibpath_overrides_runpath=no
10098 ;;
10099 *)
10100 shlibpath_overrides_runpath=yes
10101 ;;
10102 esac
10103 else
10104 shlibpath_overrides_runpath=yes
10105 fi
10106 ;;
10107
10108os2*)
10109 libname_spec='$name'
10110 shrext_cmds=".dll"
10111 need_lib_prefix=no
10112 library_names_spec='$libname${shared_ext} $libname.a'
10113 dynamic_linker='OS/2 ld.exe'
10114 shlibpath_var=LIBPATH
10115 ;;
10116
10117osf3* | osf4* | osf5*)
10118 version_type=osf
10119 need_lib_prefix=no
10120 need_version=no
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10126 ;;
10127
10128rdos*)
10129 dynamic_linker=no
10130 ;;
10131
10132solaris*)
10133 version_type=linux
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 # ldd complains unless libraries are executable
10142 postinstall_cmds='chmod +x $lib'
10143 ;;
10144
10145sunos4*)
10146 version_type=sunos
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=yes
10151 if test "$with_gnu_ld" = yes; then
10152 need_lib_prefix=no
10153 fi
10154 need_version=yes
10155 ;;
10156
10157sysv4 | sysv4.3*)
10158 version_type=linux
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 case $host_vendor in
10163 sni)
10164 shlibpath_overrides_runpath=no
10165 need_lib_prefix=no
10166 runpath_var=LD_RUN_PATH
10167 ;;
10168 siemens)
10169 need_lib_prefix=no
10170 ;;
10171 motorola)
10172 need_lib_prefix=no
10173 need_version=no
10174 shlibpath_overrides_runpath=no
10175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10176 ;;
10177 esac
10178 ;;
10179
10180sysv4*MP*)
10181 if test -d /usr/nec ;then
10182 version_type=linux
10183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10184 soname_spec='$libname${shared_ext}.$major'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 fi
10187 ;;
10188
10189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10190 version_type=freebsd-elf
10191 need_lib_prefix=no
10192 need_version=no
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=yes
10197 hardcode_into_libs=yes
10198 if test "$with_gnu_ld" = yes; then
10199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10200 else
10201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10202 case $host_os in
10203 sco3.2v5*)
10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10205 ;;
10206 esac
10207 fi
10208 sys_lib_dlsearch_path_spec='/usr/lib'
10209 ;;
10210
10211tpf*)
10212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10213 version_type=linux
10214 need_lib_prefix=no
10215 need_version=no
467b2e9e 10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=no
10219 hardcode_into_libs=yes
10220 ;;
10221
10222uts4*)
10223 version_type=linux
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 ;;
10228
10229*)
10230 dynamic_linker=no
10231 ;;
10232esac
5213506e
RW
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10234$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10235test "$dynamic_linker" = no && can_build_shared=no
10236
10237variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10238if test "$GCC" = yes; then
10239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10240fi
10241
467b2e9e
PG
10242if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10243 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10244fi
10245if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10246 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10247fi
10248
1cf3d07d
SE
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
43e02a8a
RW
10329
10330
10331
10332
10333
1cf3d07d
SE
10334
10335
10336
10337
10338
10339
5213506e
RW
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10341$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
10342hardcode_action=
10343if test -n "$hardcode_libdir_flag_spec" ||
10344 test -n "$runpath_var" ||
10345 test "X$hardcode_automatic" = "Xyes" ; then
10346
10347 # We can hardcode non-existent directories.
10348 if test "$hardcode_direct" != no &&
10349 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10350 # have to relink, otherwise we might link with an installed library
10351 # when we should be linking with a yet-to-be-installed one
10352 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10353 test "$hardcode_minus_L" != no; then
10354 # Linking always hardcodes the temporary library directory.
10355 hardcode_action=relink
10356 else
10357 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10358 hardcode_action=immediate
10359 fi
10360else
10361 # We cannot hardcode anything, or else we can only hardcode existing
10362 # directories.
10363 hardcode_action=unsupported
10364fi
5213506e
RW
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10366$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
10367
10368if test "$hardcode_action" = relink ||
10369 test "$inherit_rpath" = yes; then
10370 # Fast installation is not supported
10371 enable_fast_install=no
10372elif test "$shlibpath_overrides_runpath" = yes ||
10373 test "$enable_shared" = no; then
10374 # Fast installation is not necessary
10375 enable_fast_install=needless
10376fi
03391b53 10377
03391b53 10378
88386050 10379
03391b53 10380
03391b53 10381
88386050 10382
1cf3d07d
SE
10383 if test "x$enable_dlopen" != xyes; then
10384 enable_dlopen=unknown
10385 enable_dlopen_self=unknown
10386 enable_dlopen_self_static=unknown
03391b53 10387else
1cf3d07d
SE
10388 lt_cv_dlopen=no
10389 lt_cv_dlopen_libs=
03391b53 10390
1cf3d07d
SE
10391 case $host_os in
10392 beos*)
10393 lt_cv_dlopen="load_add_on"
10394 lt_cv_dlopen_libs=
10395 lt_cv_dlopen_self=yes
10396 ;;
03391b53 10397
467b2e9e 10398 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10399 lt_cv_dlopen="LoadLibrary"
10400 lt_cv_dlopen_libs=
10401 ;;
f5cc59a7 10402
1cf3d07d
SE
10403 cygwin*)
10404 lt_cv_dlopen="dlopen"
10405 lt_cv_dlopen_libs=
10406 ;;
c5e3e1ed 10407
1cf3d07d
SE
10408 darwin*)
10409 # if libdl is installed we need to link against it
5213506e
RW
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10411$as_echo_n "checking for dlopen in -ldl... " >&6; }
10412if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
03391b53 10414else
1cf3d07d
SE
10415 ac_check_lib_save_LIBS=$LIBS
10416LIBS="-ldl $LIBS"
10417if test x$gcc_no_link = xyes; then
5213506e 10418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
88386050 10419fi
5213506e 10420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
10421/* end confdefs.h. */
10422
5213506e
RW
10423/* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10426#ifdef __cplusplus
10427extern "C"
10428#endif
1cf3d07d 10429char dlopen ();
88386050
NN
10430int
10431main ()
10432{
5213506e 10433return dlopen ();
88386050
NN
10434 ;
10435 return 0;
10436}
10437_ACEOF
5213506e 10438if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10439 ac_cv_lib_dl_dlopen=yes
03391b53 10440else
5213506e 10441 ac_cv_lib_dl_dlopen=no
03391b53 10442fi
5213506e
RW
10443rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10445LIBS=$ac_check_lib_save_LIBS
03391b53 10446fi
5213506e
RW
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10448$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10449if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
10450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10451else
88386050 10452
1cf3d07d
SE
10453 lt_cv_dlopen="dyld"
10454 lt_cv_dlopen_libs=
10455 lt_cv_dlopen_self=yes
88386050 10456
b150efee 10457fi
b150efee 10458
1cf3d07d 10459 ;;
b150efee 10460
1cf3d07d 10461 *)
5213506e
RW
10462 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10463if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
10464 lt_cv_dlopen="shl_load"
10465else
5213506e
RW
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10467$as_echo_n "checking for shl_load in -ldld... " >&6; }
10468if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
dd365157 10470else
1cf3d07d
SE
10471 ac_check_lib_save_LIBS=$LIBS
10472LIBS="-ldld $LIBS"
10473if test x$gcc_no_link = xyes; then
5213506e 10474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10475fi
5213506e 10476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd365157
MS
10477/* end confdefs.h. */
10478
5213506e
RW
10479/* Override any GCC internal prototype to avoid an error.
10480 Use char because int might match the return type of a GCC
10481 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10482#ifdef __cplusplus
10483extern "C"
10484#endif
1cf3d07d 10485char shl_load ();
dd365157
MS
10486int
10487main ()
10488{
5213506e 10489return shl_load ();
dd365157
MS
10490 ;
10491 return 0;
10492}
10493_ACEOF
5213506e 10494if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10495 ac_cv_lib_dld_shl_load=yes
dd365157 10496else
5213506e 10497 ac_cv_lib_dld_shl_load=no
b150efee 10498fi
5213506e
RW
10499rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10501LIBS=$ac_check_lib_save_LIBS
b150efee 10502fi
5213506e
RW
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10504$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10505if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
467b2e9e 10506 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
b150efee 10507else
5213506e
RW
10508 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10509if test "x$ac_cv_func_dlopen" = x""yes; then :
10510 lt_cv_dlopen="dlopen"
88386050 10511else
5213506e
RW
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10513$as_echo_n "checking for dlopen in -ldl... " >&6; }
10514if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10515 $as_echo_n "(cached) " >&6
10516else
10517 ac_check_lib_save_LIBS=$LIBS
10518LIBS="-ldl $LIBS"
10519if test x$gcc_no_link = xyes; then
10520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10521fi
5213506e 10522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050 10523/* end confdefs.h. */
88386050 10524
5213506e
RW
10525/* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10528#ifdef __cplusplus
10529extern "C"
1cf3d07d 10530#endif
1cf3d07d 10531char dlopen ();
1cf3d07d
SE
10532int
10533main ()
10534{
5213506e 10535return dlopen ();
1cf3d07d
SE
10536 ;
10537 return 0;
10538}
88386050 10539_ACEOF
5213506e
RW
10540if ac_fn_c_try_link "$LINENO"; then :
10541 ac_cv_lib_dl_dlopen=yes
88386050 10542else
5213506e 10543 ac_cv_lib_dl_dlopen=no
b150efee 10544fi
5213506e
RW
10545rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547LIBS=$ac_check_lib_save_LIBS
b150efee 10548fi
5213506e
RW
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10550$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10551if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
b150efee 10553else
5213506e
RW
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10555$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10556if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10558else
10559 ac_check_lib_save_LIBS=$LIBS
5213506e 10560LIBS="-lsvld $LIBS"
1cf3d07d 10561if test x$gcc_no_link = xyes; then
5213506e 10562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b150efee 10563fi
5213506e 10564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050 10565/* end confdefs.h. */
1cf3d07d 10566
5213506e
RW
10567/* Override any GCC internal prototype to avoid an error.
10568 Use char because int might match the return type of a GCC
10569 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10570#ifdef __cplusplus
10571extern "C"
88386050 10572#endif
1cf3d07d
SE
10573char dlopen ();
10574int
10575main ()
10576{
5213506e 10577return dlopen ();
1cf3d07d
SE
10578 ;
10579 return 0;
10580}
88386050 10581_ACEOF
5213506e
RW
10582if ac_fn_c_try_link "$LINENO"; then :
10583 ac_cv_lib_svld_dlopen=yes
b150efee 10584else
5213506e 10585 ac_cv_lib_svld_dlopen=no
88386050 10586fi
5213506e
RW
10587rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10589LIBS=$ac_check_lib_save_LIBS
10590fi
5213506e
RW
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10592$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10593if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1cf3d07d 10595else
5213506e
RW
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10597$as_echo_n "checking for dld_link in -ldld... " >&6; }
10598if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10600else
10601 ac_check_lib_save_LIBS=$LIBS
5213506e 10602LIBS="-ldld $LIBS"
1cf3d07d 10603if test x$gcc_no_link = xyes; then
5213506e 10604 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10605fi
5213506e 10606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050 10607/* end confdefs.h. */
1cf3d07d 10608
5213506e
RW
10609/* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10612#ifdef __cplusplus
10613extern "C"
10614#endif
5213506e 10615char dld_link ();
1cf3d07d
SE
10616int
10617main ()
10618{
5213506e 10619return dld_link ();
1cf3d07d
SE
10620 ;
10621 return 0;
10622}
88386050 10623_ACEOF
5213506e 10624if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10625 ac_cv_lib_dld_dld_link=yes
b150efee 10626else
5213506e 10627 ac_cv_lib_dld_dld_link=no
1cf3d07d 10628fi
5213506e
RW
10629rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10631LIBS=$ac_check_lib_save_LIBS
10632fi
5213506e
RW
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10634$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10635if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
467b2e9e 10636 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
b150efee 10637fi
b150efee 10638
88386050 10639
03391b53 10640fi
1cf3d07d 10641
b150efee 10642
03391b53
AO
10643fi
10644
88386050 10645
1cf3d07d
SE
10646fi
10647
10648
10649fi
10650
10651
10652fi
10653
10654 ;;
10655 esac
10656
10657 if test "x$lt_cv_dlopen" != xno; then
10658 enable_dlopen=yes
10659 else
10660 enable_dlopen=no
10661 fi
10662
10663 case $lt_cv_dlopen in
10664 dlopen)
10665 save_CPPFLAGS="$CPPFLAGS"
10666 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10667
10668 save_LDFLAGS="$LDFLAGS"
10669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10670
10671 save_LIBS="$LIBS"
10672 LIBS="$lt_cv_dlopen_libs $LIBS"
10673
5213506e
RW
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10675$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10676if test "${lt_cv_dlopen_self+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
03391b53 10678else
1cf3d07d
SE
10679 if test "$cross_compiling" = yes; then :
10680 lt_cv_dlopen_self=cross
10681else
10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10683 lt_status=$lt_dlunknown
10684 cat > conftest.$ac_ext <<_LT_EOF
a0e1df88 10685#line 10685 "configure"
1cf3d07d
SE
10686#include "confdefs.h"
10687
10688#if HAVE_DLFCN_H
10689#include <dlfcn.h>
10690#endif
10691
10692#include <stdio.h>
10693
10694#ifdef RTLD_GLOBAL
10695# define LT_DLGLOBAL RTLD_GLOBAL
10696#else
10697# ifdef DL_GLOBAL
10698# define LT_DLGLOBAL DL_GLOBAL
10699# else
10700# define LT_DLGLOBAL 0
10701# endif
10702#endif
10703
10704/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10705 find out it does not work in some platform. */
10706#ifndef LT_DLLAZY_OR_NOW
10707# ifdef RTLD_LAZY
10708# define LT_DLLAZY_OR_NOW RTLD_LAZY
10709# else
10710# ifdef DL_LAZY
10711# define LT_DLLAZY_OR_NOW DL_LAZY
10712# else
10713# ifdef RTLD_NOW
10714# define LT_DLLAZY_OR_NOW RTLD_NOW
10715# else
10716# ifdef DL_NOW
10717# define LT_DLLAZY_OR_NOW DL_NOW
10718# else
10719# define LT_DLLAZY_OR_NOW 0
10720# endif
10721# endif
10722# endif
10723# endif
10724#endif
10725
43e02a8a
RW
10726/* When -fvisbility=hidden is used, assume the code has been annotated
10727 correspondingly for the symbols needed. */
10728#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10729void fnord () __attribute__((visibility("default")));
10730#endif
10731
10732void fnord () { int i=42; }
1cf3d07d
SE
10733int main ()
10734{
10735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10736 int status = $lt_dlunknown;
10737
10738 if (self)
10739 {
10740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10741 else
10742 {
10743 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10744 else puts (dlerror ());
10745 }
1cf3d07d
SE
10746 /* dlclose (self); */
10747 }
10748 else
10749 puts (dlerror ());
10750
467b2e9e 10751 return status;
1cf3d07d
SE
10752}
10753_LT_EOF
5213506e 10754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
10755 (eval $ac_link) 2>&5
10756 ac_status=$?
5213506e
RW
10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10759 (./conftest; exit; ) >&5 2>/dev/null
10760 lt_status=$?
10761 case x$lt_status in
10762 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10763 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10764 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10765 esac
10766 else :
10767 # compilation failed
10768 lt_cv_dlopen_self=no
10769 fi
03391b53 10770fi
1cf3d07d
SE
10771rm -fr conftest*
10772
03391b53 10773
b150efee 10774fi
5213506e
RW
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10776$as_echo "$lt_cv_dlopen_self" >&6; }
03391b53 10777
1cf3d07d
SE
10778 if test "x$lt_cv_dlopen_self" = xyes; then
10779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10781$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10782if test "${lt_cv_dlopen_self_static+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
03391b53 10784else
1cf3d07d
SE
10785 if test "$cross_compiling" = yes; then :
10786 lt_cv_dlopen_self_static=cross
10787else
10788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10789 lt_status=$lt_dlunknown
10790 cat > conftest.$ac_ext <<_LT_EOF
a0e1df88 10791#line 10791 "configure"
1cf3d07d
SE
10792#include "confdefs.h"
10793
10794#if HAVE_DLFCN_H
10795#include <dlfcn.h>
10796#endif
10797
10798#include <stdio.h>
10799
10800#ifdef RTLD_GLOBAL
10801# define LT_DLGLOBAL RTLD_GLOBAL
88386050 10802#else
1cf3d07d
SE
10803# ifdef DL_GLOBAL
10804# define LT_DLGLOBAL DL_GLOBAL
10805# else
10806# define LT_DLGLOBAL 0
10807# endif
88386050 10808#endif
03391b53 10809
1cf3d07d
SE
10810/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10811 find out it does not work in some platform. */
10812#ifndef LT_DLLAZY_OR_NOW
10813# ifdef RTLD_LAZY
10814# define LT_DLLAZY_OR_NOW RTLD_LAZY
10815# else
10816# ifdef DL_LAZY
10817# define LT_DLLAZY_OR_NOW DL_LAZY
10818# else
10819# ifdef RTLD_NOW
10820# define LT_DLLAZY_OR_NOW RTLD_NOW
10821# else
10822# ifdef DL_NOW
10823# define LT_DLLAZY_OR_NOW DL_NOW
10824# else
10825# define LT_DLLAZY_OR_NOW 0
10826# endif
10827# endif
10828# endif
10829# endif
10830#endif
10831
43e02a8a
RW
10832/* When -fvisbility=hidden is used, assume the code has been annotated
10833 correspondingly for the symbols needed. */
10834#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10835void fnord () __attribute__((visibility("default")));
10836#endif
10837
10838void fnord () { int i=42; }
1cf3d07d 10839int main ()
88386050 10840{
1cf3d07d
SE
10841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10842 int status = $lt_dlunknown;
10843
10844 if (self)
10845 {
10846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10847 else
10848 {
10849 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10850 else puts (dlerror ());
10851 }
1cf3d07d
SE
10852 /* dlclose (self); */
10853 }
10854 else
10855 puts (dlerror ());
10856
467b2e9e 10857 return status;
88386050 10858}
1cf3d07d 10859_LT_EOF
5213506e 10860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
88386050
NN
10861 (eval $ac_link) 2>&5
10862 ac_status=$?
5213506e
RW
10863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10865 (./conftest; exit; ) >&5 2>/dev/null
10866 lt_status=$?
10867 case x$lt_status in
10868 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10869 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10870 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10871 esac
10872 else :
10873 # compilation failed
10874 lt_cv_dlopen_self_static=no
10875 fi
03391b53 10876fi
1cf3d07d
SE
10877rm -fr conftest*
10878
10879
03391b53 10880fi
5213506e
RW
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10882$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
10883 fi
10884
10885 CPPFLAGS="$save_CPPFLAGS"
10886 LDFLAGS="$save_LDFLAGS"
10887 LIBS="$save_LIBS"
10888 ;;
10889 esac
10890
10891 case $lt_cv_dlopen_self in
10892 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10893 *) enable_dlopen_self=unknown ;;
10894 esac
10895
10896 case $lt_cv_dlopen_self_static in
10897 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10898 *) enable_dlopen_self_static=unknown ;;
10899 esac
b150efee 10900fi
1cf3d07d
SE
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918striplib=
10919old_striplib=
5213506e
RW
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10921$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
10922if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10923 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10924 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10926$as_echo "yes" >&6; }
1cf3d07d
SE
10927else
10928# FIXME - insert some real tests, host_os isn't really good enough
10929 case $host_os in
10930 darwin*)
10931 if test -n "$STRIP" ; then
10932 striplib="$STRIP -x"
10933 old_striplib="$STRIP -S"
5213506e
RW
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10935$as_echo "yes" >&6; }
1cf3d07d 10936 else
5213506e
RW
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938$as_echo "no" >&6; }
1cf3d07d
SE
10939 fi
10940 ;;
10941 *)
5213506e
RW
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943$as_echo "no" >&6; }
1cf3d07d
SE
10944 ;;
10945 esac
b150efee 10946fi
88386050 10947
1cf3d07d
SE
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959 # Report which library types will actually be built
5213506e
RW
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10961$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10963$as_echo "$can_build_shared" >&6; }
1cf3d07d 10964
5213506e
RW
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10966$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
10967 test "$can_build_shared" = "no" && enable_shared=no
10968
10969 # On AIX, shared libraries and static libraries use the same namespace, and
10970 # are all built from PIC.
10971 case $host_os in
10972 aix3*)
10973 test "$enable_shared" = yes && enable_static=no
10974 if test -n "$RANLIB"; then
10975 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10976 postinstall_cmds='$RANLIB $lib'
10977 fi
10978 ;;
10979
e7ad4ca7 10980 aix[4-9]*)
1cf3d07d
SE
10981 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10982 test "$enable_shared" = yes && enable_static=no
10983 fi
10984 ;;
10985 esac
5213506e
RW
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10987$as_echo "$enable_shared" >&6; }
1cf3d07d 10988
5213506e
RW
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10990$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
10991 # Make sure either enable_shared or enable_static is yes.
10992 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10994$as_echo "$enable_static" >&6; }
1cf3d07d
SE
10995
10996
10997
b150efee
FS
10998
10999fi
1cf3d07d
SE
11000ac_ext=c
11001ac_cpp='$CPP $CPPFLAGS'
11002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004ac_compiler_gnu=$ac_cv_c_compiler_gnu
b150efee 11005
1cf3d07d 11006CC="$lt_save_CC"
b150efee 11007
88386050
NN
11008
11009
11010
11011
11012
11013
11014
11015
1cf3d07d
SE
11016
11017
11018
11019
5213506e 11020 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
11021
11022
11023
11024
11025# Only expand once:
11026
11027
11028
11029if test "x$CC" != xcc; then
5213506e
RW
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11031$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1cf3d07d 11032else
5213506e
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11034$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1cf3d07d 11035fi
5213506e 11036set dummy $CC; ac_cc=`$as_echo "$2" |
1cf3d07d 11037 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5213506e
RW
11038if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11039 $as_echo_n "(cached) " >&6
88386050 11040else
5213506e 11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050 11042/* end confdefs.h. */
88386050 11043
1cf3d07d
SE
11044int
11045main ()
11046{
11047
11048 ;
11049 return 0;
11050}
88386050 11051_ACEOF
1cf3d07d
SE
11052# Make sure it works both with $CC and with simple cc.
11053# We do the test twice because some compilers refuse to overwrite an
11054# existing .o file with -o, though they will create one.
5213506e
RW
11055ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11056rm -f conftest2.*
11057if { { case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060esac
11061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11062$as_echo "$ac_try_echo"; } >&5
11063 (eval "$ac_try") 2>&5
88386050 11064 ac_status=$?
5213506e
RW
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; } &&
11067 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11070esac
11071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11072$as_echo "$ac_try_echo"; } >&5
11073 (eval "$ac_try") 2>&5
88386050 11074 ac_status=$?
5213506e
RW
11075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11076 test $ac_status = 0; };
1cf3d07d
SE
11077then
11078 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11079 if test "x$CC" != xcc; then
11080 # Test first that cc exists at all.
11081 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
11082 { { case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11087$as_echo "$ac_try_echo"; } >&5
11088 (eval "$ac_try") 2>&5
88386050 11089 ac_status=$?
5213506e
RW
11090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11091 test $ac_status = 0; }; }; then
11092 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11093 rm -f conftest2.*
11094 if { { case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
11098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11099$as_echo "$ac_try_echo"; } >&5
11100 (eval "$ac_try") 2>&5
1cf3d07d 11101 ac_status=$?
5213506e
RW
11102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11103 test $ac_status = 0; } &&
11104 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11109$as_echo "$ac_try_echo"; } >&5
11110 (eval "$ac_try") 2>&5
1cf3d07d 11111 ac_status=$?
5213506e
RW
11112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11113 test $ac_status = 0; };
1cf3d07d
SE
11114 then
11115 # cc works too.
11116 :
11117 else
11118 # cc exists but doesn't like -o.
11119 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11120 fi
11121 fi
11122 fi
88386050 11123else
1cf3d07d
SE
11124 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11125fi
5213506e 11126rm -f core conftest*
1cf3d07d
SE
11127
11128fi
5213506e
RW
11129if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11131$as_echo "yes" >&6; }
1cf3d07d 11132else
5213506e
RW
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134$as_echo "no" >&6; }
1cf3d07d 11135
5213506e 11136$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1cf3d07d
SE
11137
11138fi
11139
11140# expand $ac_aux_dir to an absolute path
11141am_aux_dir=`cd $ac_aux_dir && pwd`
11142
11143# FIXME: we rely on the cache variable name because
11144# there is no other way.
11145set dummy $CC
5213506e
RW
11146am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11147eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11148if test "$am_t" != yes; then
1cf3d07d
SE
11149 # Losing compiler, so override with the script.
11150 # FIXME: It is wrong to rewrite CC.
11151 # But if we don't then we get into trouble of one sort or another.
11152 # A longer-term fix would be to have automake use am__CC in this case,
11153 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11154 CC="$am_aux_dir/compile $CC"
11155fi
88386050 11156
1cf3d07d 11157
5213506e
RW
11158
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11160$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11161set x ${MAKE-make}
11162ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11163if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11164 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11165else
11166 cat >conftest.make <<\_ACEOF
5213506e 11167SHELL = /bin/sh
1cf3d07d 11168all:
5213506e 11169 @echo '@@@%%%=$(MAKE)=@@@%%%'
1cf3d07d
SE
11170_ACEOF
11171# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
11172case `${MAKE-make} -f conftest.make 2>/dev/null` in
11173 *@@@%%%=?*=@@@%%%*)
11174 eval ac_cv_prog_make_${ac_make}_set=yes;;
11175 *)
11176 eval ac_cv_prog_make_${ac_make}_set=no;;
11177esac
1cf3d07d 11178rm -f conftest.make
88386050 11179fi
5213506e
RW
11180if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11182$as_echo "yes" >&6; }
1cf3d07d
SE
11183 SET_MAKE=
11184else
5213506e
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
1cf3d07d 11187 SET_MAKE="MAKE=${MAKE-make}"
88386050
NN
11188fi
11189
88386050 11190
1cf3d07d
SE
11191# -------
11192# Headers
11193# -------
88386050 11194
1cf3d07d 11195# Sanity check for the cross-compilation case:
5213506e
RW
11196ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11197if test "x$ac_cv_header_stdio_h" = x""yes; then :
88386050
NN
11198 :
11199else
5213506e 11200 as_fn_error "Can't find stdio.h.
88386050
NN
11201You must have a usable C system for the target already installed, at least
11202including headers and, preferably, the library, before you can configure
11203the Objective C runtime system. If necessary, install gcc now with
5213506e 11204\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
88386050
NN
11205fi
11206
11207
11208
5213506e
RW
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11210$as_echo_n "checking for ANSI C header files... " >&6; }
11211if test "${ac_cv_header_stdc+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
88386050 11213else
5213506e 11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
11215/* end confdefs.h. */
11216#include <stdlib.h>
11217#include <stdarg.h>
11218#include <string.h>
11219#include <float.h>
11220
11221int
11222main ()
11223{
11224
11225 ;
11226 return 0;
11227}
11228_ACEOF
5213506e 11229if ac_fn_c_try_compile "$LINENO"; then :
88386050
NN
11230 ac_cv_header_stdc=yes
11231else
5213506e 11232 ac_cv_header_stdc=no
88386050 11233fi
5213506e 11234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88386050
NN
11235
11236if test $ac_cv_header_stdc = yes; then
11237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
11239/* end confdefs.h. */
11240#include <string.h>
11241
11242_ACEOF
11243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11244 $EGREP "memchr" >/dev/null 2>&1; then :
11245
88386050
NN
11246else
11247 ac_cv_header_stdc=no
03391b53
AO
11248fi
11249rm -f conftest*
88386050 11250
03391b53 11251fi
88386050
NN
11252
11253if test $ac_cv_header_stdc = yes; then
11254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
11256/* end confdefs.h. */
11257#include <stdlib.h>
11258
11259_ACEOF
11260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11261 $EGREP "free" >/dev/null 2>&1; then :
11262
88386050
NN
11263else
11264 ac_cv_header_stdc=no
11265fi
11266rm -f conftest*
11267
11268fi
11269
11270if test $ac_cv_header_stdc = yes; then
11271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 11272 if test "$cross_compiling" = yes; then :
88386050
NN
11273 :
11274else
5213506e 11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88386050
NN
11276/* end confdefs.h. */
11277#include <ctype.h>
5213506e 11278#include <stdlib.h>
88386050
NN
11279#if ((' ' & 0x0FF) == 0x020)
11280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11282#else
11283# define ISLOWER(c) \
11284 (('a' <= (c) && (c) <= 'i') \
11285 || ('j' <= (c) && (c) <= 'r') \
11286 || ('s' <= (c) && (c) <= 'z'))
11287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11288#endif
11289
11290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11291int
11292main ()
11293{
11294 int i;
11295 for (i = 0; i < 256; i++)
11296 if (XOR (islower (i), ISLOWER (i))
11297 || toupper (i) != TOUPPER (i))
5213506e
RW
11298 return 2;
11299 return 0;
88386050
NN
11300}
11301_ACEOF
5213506e 11302if ac_fn_c_try_run "$LINENO"; then :
88386050 11303
5213506e
RW
11304else
11305 ac_cv_header_stdc=no
88386050 11306fi
5213506e
RW
11307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11308 conftest.$ac_objext conftest.beam conftest.$ac_ext
88386050 11309fi
5213506e 11310
88386050
NN
11311fi
11312fi
5213506e
RW
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11314$as_echo "$ac_cv_header_stdc" >&6; }
88386050
NN
11315if test $ac_cv_header_stdc = yes; then
11316
5213506e 11317$as_echo "#define STDC_HEADERS 1" >>confdefs.h
88386050
NN
11318
11319fi
11320
11321
88386050 11322for ac_header in sched.h
5213506e
RW
11323do :
11324 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11325if test "x$ac_cv_header_sched_h" = x""yes; then :
88386050 11326 cat >>confdefs.h <<_ACEOF
5213506e 11327#define HAVE_SCHED_H 1
88386050
NN
11328_ACEOF
11329
11330fi
11331
b150efee 11332done
bce1b489 11333
03391b53 11334
252dde64
NN
11335# -----------
11336# Miscellanea
11337# -----------
11338
fd312537
NP
11339# Check if we have thread-local storage
11340
11341
11342 # Check whether --enable-tls was given.
11343if test "${enable_tls+set}" = set; then :
11344 enableval=$enable_tls;
11345 case "$enableval" in
11346 yes|no) ;;
11347 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11348 esac
11349
11350else
11351 enable_tls=yes
11352fi
11353
11354
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11356$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11357if test "${gcc_cv_have_tls+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
11359else
11360
11361 if test "$cross_compiling" = yes; then :
11362 if test x$gcc_no_link = xyes; then
11363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11364fi
11365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h. */
11367__thread int a; int b; int main() { return a = b; }
11368_ACEOF
11369if ac_fn_c_try_link "$LINENO"; then :
11370 chktls_save_LDFLAGS="$LDFLAGS"
11371 case $host in
11372 *-*-linux*)
11373 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11374 ;;
11375 esac
11376 chktls_save_CFLAGS="$CFLAGS"
11377 CFLAGS="-fPIC $CFLAGS"
11378 if test x$gcc_no_link = xyes; then
11379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11380fi
11381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382/* end confdefs.h. */
11383int f() { return 0; }
11384_ACEOF
11385if ac_fn_c_try_link "$LINENO"; then :
11386 if test x$gcc_no_link = xyes; then
11387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11388fi
11389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390/* end confdefs.h. */
11391__thread int a; int b; int f() { return a = b; }
11392_ACEOF
11393if ac_fn_c_try_link "$LINENO"; then :
11394 gcc_cv_have_tls=yes
11395else
11396 gcc_cv_have_tls=no
11397fi
11398rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400else
11401 gcc_cv_have_tls=yes
11402fi
11403rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 CFLAGS="$chktls_save_CFLAGS"
11406 LDFLAGS="$chktls_save_LDFLAGS"
11407else
11408 gcc_cv_have_tls=no
11409fi
11410rm -f core conftest.err conftest.$ac_objext \
11411 conftest$ac_exeext conftest.$ac_ext
11412
11413
11414else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416/* end confdefs.h. */
11417__thread int a; int b; int main() { return a = b; }
11418_ACEOF
11419if ac_fn_c_try_run "$LINENO"; then :
11420 chktls_save_LDFLAGS="$LDFLAGS"
11421 LDFLAGS="-static $LDFLAGS"
11422 if test x$gcc_no_link = xyes; then
11423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11424fi
11425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426/* end confdefs.h. */
11427int main() { return 0; }
11428_ACEOF
11429if ac_fn_c_try_link "$LINENO"; then :
11430 if test "$cross_compiling" = yes; then :
11431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11433as_fn_error "cannot run test program while cross compiling
11434See \`config.log' for more details." "$LINENO" 5; }
11435else
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437/* end confdefs.h. */
11438__thread int a; int b; int main() { return a = b; }
11439_ACEOF
11440if ac_fn_c_try_run "$LINENO"; then :
11441 gcc_cv_have_tls=yes
11442else
11443 gcc_cv_have_tls=no
11444fi
11445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11446 conftest.$ac_objext conftest.beam conftest.$ac_ext
11447fi
11448
11449else
11450 gcc_cv_have_tls=yes
11451fi
11452rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LDFLAGS="$chktls_save_LDFLAGS"
11455 if test $gcc_cv_have_tls = yes; then
11456 chktls_save_CFLAGS="$CFLAGS"
11457 thread_CFLAGS=failed
11458 for flag in '' '-pthread' '-lpthread'; do
11459 CFLAGS="$flag $chktls_save_CFLAGS"
11460 if test x$gcc_no_link = xyes; then
11461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11462fi
11463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464/* end confdefs.h. */
11465#include <pthread.h>
11466 void *g(void *d) { return NULL; }
11467int
11468main ()
11469{
11470pthread_t t; pthread_create(&t,NULL,g,NULL);
11471 ;
11472 return 0;
11473}
11474_ACEOF
11475if ac_fn_c_try_link "$LINENO"; then :
11476 thread_CFLAGS="$flag"
11477fi
11478rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 if test "X$thread_CFLAGS" != Xfailed; then
11481 break
11482 fi
11483 done
11484 CFLAGS="$chktls_save_CFLAGS"
11485 if test "X$thread_CFLAGS" != Xfailed; then
11486 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11487 if test "$cross_compiling" = yes; then :
11488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11490as_fn_error "cannot run test program while cross compiling
11491See \`config.log' for more details." "$LINENO" 5; }
11492else
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494/* end confdefs.h. */
11495#include <pthread.h>
11496 __thread int a;
11497 static int *volatile a_in_other_thread;
11498 static void *
11499 thread_func (void *arg)
11500 {
11501 a_in_other_thread = &a;
11502 return (void *)0;
11503 }
11504int
11505main ()
11506{
11507pthread_t thread;
11508 void *thread_retval;
11509 int *volatile a_in_main_thread;
11510 a_in_main_thread = &a;
11511 if (pthread_create (&thread, (pthread_attr_t *)0,
11512 thread_func, (void *)0))
11513 return 0;
11514 if (pthread_join (thread, &thread_retval))
11515 return 0;
11516 return (a_in_other_thread == a_in_main_thread);
11517 ;
11518 return 0;
11519}
11520_ACEOF
11521if ac_fn_c_try_run "$LINENO"; then :
11522 gcc_cv_have_tls=yes
11523else
11524 gcc_cv_have_tls=no
11525fi
11526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11527 conftest.$ac_objext conftest.beam conftest.$ac_ext
11528fi
11529
11530 CFLAGS="$chktls_save_CFLAGS"
11531 fi
11532 fi
11533else
11534 gcc_cv_have_tls=no
11535fi
11536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11537 conftest.$ac_objext conftest.beam conftest.$ac_ext
11538fi
11539
11540fi
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11542$as_echo "$gcc_cv_have_tls" >&6; }
11543 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11544
11545$as_echo "#define HAVE_TLS 1" >>confdefs.h
11546
11547 fi
c161c99b 11548
539280a8
TS
11549
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
11551$as_echo_n "checking if the type of bitfields matters... " >&6; }
11552if test "${gt_cv_bitfield_type_matters+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11554else
11555
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h. */
d6ed95fc
TS
11558struct foo1 { char x; char y:1; char z; };
11559struct foo2 { char x; long long int y:1; char z; };
11560int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ];
539280a8
TS
11561int
11562main ()
11563{
11564
11565 ;
11566 return 0;
11567}
11568_ACEOF
11569if ac_fn_c_try_compile "$LINENO"; then :
11570 gt_cv_bitfield_type_matters=yes
11571else
11572 gt_cv_bitfield_type_matters=no
11573fi
11574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575
11576fi
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5
11578$as_echo "$gt_cv_bitfield_type_matters" >&6; }
11579 if test $gt_cv_bitfield_type_matters = yes; then
11580
11581$as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h
11582
11583 fi
11584
11585
114bf3f1
MK
11586# -----------
11587# boehm-gc
11588# -----------
11589
11590# Check whether --enable-objc-gc was given.
11591if test "${enable_objc_gc+set}" = set; then :
11592 enableval=$enable_objc_gc;
ac02e9a8
JJ
11593else
11594 enable_objc_gc=no
114bf3f1
MK
11595fi
11596
11597
11598# Check whether --with-target-bdw-gc was given.
11599if test "${with_target_bdw_gc+set}" = set; then :
11600 withval=$with_target_bdw_gc;
11601fi
11602
11603
11604# Check whether --with-target-bdw-gc-include was given.
11605if test "${with_target_bdw_gc_include+set}" = set; then :
11606 withval=$with_target_bdw_gc_include;
11607fi
11608
11609
11610# Check whether --with-target-bdw-gc-lib was given.
11611if test "${with_target_bdw_gc_lib+set}" = set; then :
11612 withval=$with_target_bdw_gc_lib;
11613fi
11614
11615
11616case "$enable_objc_gc" in
11617no)
11618 use_bdw_gc=no
11619 ;;
11620*)
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
11622$as_echo_n "checking for bdw garbage collector... " >&6; }
11623 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
11624 BDW_GC_CFLAGS=
11625 BDW_GC_LIBS="-lgc"
114bf3f1
MK
11626 else
11627 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
11628 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
11629 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
11630 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
11631 else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
11633$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
11634 fi
11635 mldir=`${CC-gcc} --print-multi-directory 2>/dev/null`
11636 bdw_val=
11637 if test "x$with_target_bdw_gc" != x; then
11638 for i in `echo $with_target_bdw_gc | tr ',' ' '`; do
11639 case "$i" in
11640 *=*) sd=${i%%=*}; d=${i#*=} ;;
11641 *) sd=.; d=$i ;;
11642 esac
11643 if test "$mldir" = "$sd"; then
11644 bdw_val=$d
11645 fi
11646 done
11647 if test "x$bdw_val" = x; then
11648 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc" "$LINENO" 5
11649 fi
11650 bdw_inc_dir="$bdw_val/include"
11651 bdw_lib_dir="$bdw_val/lib"
11652 fi
11653 bdw_val=
11654 if test "x$with_target_bdw_gc_include" != x; then
11655 for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do
11656 case "$i" in
11657 *=*) sd=${i%%=*}; d=${i#*=} ;;
8465132c 11658 *) sd=.; d=$i; fallback=$i ;;
114bf3f1
MK
11659 esac
11660 if test "$mldir" = "$sd"; then
11661 bdw_val=$d
11662 fi
11663 done
8465132c
MK
11664 if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then
11665 bdw_inc_dir="$fallback"
11666 elif test "x$bdw_val" = x; then
114bf3f1 11667 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
8465132c
MK
11668 else
11669 bdw_inc_dir="$bdw_val"
114bf3f1 11670 fi
114bf3f1
MK
11671 fi
11672 bdw_val=
11673 if test "x$with_target_bdw_gc_lib" != x; then
11674 for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do
11675 case "$i" in
11676 *=*) sd=${i%%=*}; d=${i#*=} ;;
11677 *) sd=.; d=$i ;;
11678 esac
11679 if test "$mldir" = "$sd"; then
11680 bdw_val=$d
11681 fi
11682 done
11683 if test "x$bdw_val" = x; then
11684 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11685 fi
11686 bdw_lib_dir="$bdw_val"
11687 fi
11688 if test "x$bdw_inc_dir" = x; then
11689 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11690 fi
11691 if test "x$bdw_lib_dir" = x; then
11692 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11693 fi
11694 BDW_GC_CFLAGS="-I$bdw_inc_dir"
8465132c
MK
11695 if test -f $bdw_lib_dir/libgc.la; then
11696 BDW_GC_LIBS="$bdw_lib_dir/libgc.la"
11697 else
11698 BDW_GC_LIBS="-L$bdw_lib_dir -lgc"
11699 fi
114bf3f1
MK
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11701$as_echo "found" >&6; }
11702 fi
11703
8465132c
MK
11704 case "$BDW_GC_LIBS" in
11705 *libgc.la)
11706 use_bdw_gc=yes
11707 ;;
11708 *)
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system boehm-gc" >&5
114bf3f1 11710$as_echo_n "checking for system boehm-gc... " >&6; }
8465132c
MK
11711 save_CFLAGS=$CFLAGS
11712 save_LIBS=$LIBS
11713 CFLAGS="$CFLAGS $BDW_GC_CFLAGS"
11714 LIBS="$LIBS $BDW_GC_LIBS"
11715 if test x$gcc_no_link = xyes; then
114bf3f1
MK
11716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11717fi
11718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719/* end confdefs.h. */
11720#include <gc/gc.h>
11721int
11722main ()
11723{
11724GC_init()
11725 ;
11726 return 0;
11727}
11728_ACEOF
11729if ac_fn_c_try_link "$LINENO"; then :
11730
8465132c
MK
11731 if test "$cross_compiling" = yes; then :
11732 system_bdw_gc_found=no
114bf3f1
MK
11733
11734else
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h. */
11737
8465132c
MK
11738 #include <gc/gc.h>
11739 int main() {
11740 GC_init();
11741 return 0;
11742 }
114bf3f1
MK
11743
11744_ACEOF
11745if ac_fn_c_try_run "$LINENO"; then :
11746 system_bdw_gc_found=yes
11747else
11748 system_bdw_gc_found=no
11749fi
11750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11751 conftest.$ac_objext conftest.beam conftest.$ac_ext
11752fi
11753
11754
11755else
11756 system_bdw_gc_found=no
11757fi
11758rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
8465132c
MK
11760 CFLAGS=$save_CFLAGS
11761 LIBS=$save_LIBS
11762 if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system bdw-gc not found, not building libobjc_gc" >&5
114bf3f1 11764$as_echo "$as_me: WARNING: system bdw-gc not found, not building libobjc_gc" >&2;}
8465132c
MK
11765 use_bdw_gc=no
11766 elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then
11767 as_fn_error "system bdw-gc required but not found" "$LINENO" 5
11768 else
11769 use_bdw_gc=yes
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
114bf3f1 11771$as_echo "found" >&6; }
8465132c
MK
11772 fi
11773 esac
114bf3f1
MK
11774esac
11775
11776if test "$use_bdw_gc" = no; then
11777 OBJC_GCFLAGS=''
11778 OBJC_BOEHM_GC=''
11779 OBJC_BOEHM_GC_INCLUDES=''
11780 OBJC_BOEHM_GC_LIBS=''
11781else
11782 OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
11783 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
11784 OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS
11785 OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS
11786fi
11787
11788
11789
11790
11791
3c36aa6b
JJ
11792# Determine what GCC version number to use in filesystem paths.
11793
11794 get_gcc_base_ver="cat"
11795
11796# Check whether --with-gcc-major-version-only was given.
11797if test "${with_gcc_major_version_only+set}" = set; then :
11798 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 11799 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
11800 fi
11801
11802fi
11803
11804
11805
11806
252dde64
NN
11807# ------
11808# Output
11809# ------
03391b53 11810
2c888488
L
11811if test ${multilib} = yes; then
11812 multilib_arg="--enable-multilib"
11813else
11814 multilib_arg=
11815fi
252dde64 11816
5213506e 11817ac_config_files="$ac_config_files Makefile"
252dde64 11818
88386050 11819cat >confcache <<\_ACEOF
bce1b489
BE
11820# This file is a shell script that caches the results of configure
11821# tests run on this system so they can be shared between configure
88386050
NN
11822# scripts and configure runs, see configure's option --config-cache.
11823# It is not useful on other systems. If it contains results you don't
11824# want to keep, you may remove or edit it.
bce1b489 11825#
88386050
NN
11826# config.status only pays attention to the cache file if you give it
11827# the --recheck option to rerun configure.
bce1b489 11828#
88386050
NN
11829# `ac_cv_env_foo' variables (set or unset) will be overridden when
11830# loading this file, other *unset* `ac_cv_foo' will be assigned the
11831# following values.
11832
11833_ACEOF
11834
bce1b489
BE
11835# The following way of writing the cache mishandles newlines in values,
11836# but we know of no workaround that is simple, portable, and efficient.
5213506e 11837# So, we kill variables containing newlines.
bce1b489
BE
11838# Ultrix sh set writes to stderr and can't be redirected directly,
11839# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
11840(
11841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11842 eval ac_val=\$$ac_var
11843 case $ac_val in #(
11844 *${as_nl}*)
11845 case $ac_var in #(
11846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11847$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11848 esac
11849 case $ac_var in #(
11850 _ | IFS | as_nl) ;; #(
11851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11852 *) { eval $ac_var=; unset $ac_var;} ;;
11853 esac ;;
11854 esac
11855 done
11856
88386050 11857 (set) 2>&1 |
5213506e
RW
11858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11859 *${as_nl}ac_space=\ *)
11860 # `set' does not quote correctly, so add quotes: double-quote
11861 # substitution turns \\\\ into \\, and sed turns \\ into \.
88386050
NN
11862 sed -n \
11863 "s/'/'\\\\''/g;
11864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 11865 ;; #(
88386050
NN
11866 *)
11867 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 11868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
88386050 11869 ;;
5213506e
RW
11870 esac |
11871 sort
11872) |
88386050 11873 sed '
5213506e 11874 /^ac_cv_env_/b end
88386050 11875 t clear
5213506e 11876 :clear
88386050
NN
11877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11878 t end
5213506e
RW
11879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11880 :end' >>confcache
11881if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11882 if test -w "$cache_file"; then
11883 test "x$cache_file" != "x/dev/null" &&
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11885$as_echo "$as_me: updating cache $cache_file" >&6;}
88386050 11886 cat confcache >$cache_file
bce1b489 11887 else
5213506e
RW
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11889$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bce1b489
BE
11890 fi
11891fi
11892rm -f confcache
03391b53 11893
bce1b489
BE
11894test "x$prefix" = xNONE && prefix=$ac_default_prefix
11895# Let make expand exec_prefix.
11896test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11897
049bc404 11898DEFS=-DHAVE_CONFIG_H
bce1b489 11899
88386050
NN
11900ac_libobjs=
11901ac_ltlibobjs=
11902for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11903 # 1. Remove the extension, and $U if already installed.
5213506e
RW
11904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11905 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11907 # will be set to the directory where LIBOBJS objects are built.
11908 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11909 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
88386050
NN
11910done
11911LIBOBJS=$ac_libobjs
03391b53 11912
88386050
NN
11913LTLIBOBJS=$ac_ltlibobjs
11914
11915
dd365157 11916if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
11917 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11918Usually this means the macro was only invoked conditionally." "$LINENO" 5
dd365157 11919fi
88386050
NN
11920
11921: ${CONFIG_STATUS=./config.status}
5213506e 11922ac_write_fail=0
88386050
NN
11923ac_clean_files_save=$ac_clean_files
11924ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11926$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11927as_write_fail=0
11928cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
88386050
NN
11929#! $SHELL
11930# Generated by $as_me.
bce1b489 11931# Run this file to recreate the current configuration.
bce1b489 11932# Compiler output produced by configure, useful for debugging
88386050 11933# configure, is in config.log if it exists.
bce1b489 11934
88386050
NN
11935debug=false
11936ac_cs_recheck=false
11937ac_cs_silent=false
88386050 11938
5213506e
RW
11939SHELL=\${CONFIG_SHELL-$SHELL}
11940export SHELL
11941_ASEOF
11942cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11943## -------------------- ##
11944## M4sh Initialization. ##
11945## -------------------- ##
11946
11947# Be more Bourne compatible
11948DUALCASE=1; export DUALCASE # for MKS sh
11949if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
88386050
NN
11950 emulate sh
11951 NULLCMD=:
5213506e 11952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
88386050
NN
11953 # is contrary to our usage. Disable this feature.
11954 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
11955 setopt NO_GLOB_SUBST
11956else
11957 case `(set -o) 2>/dev/null` in #(
11958 *posix*) :
11959 set -o posix ;; #(
11960 *) :
11961 ;;
11962esac
88386050 11963fi
88386050 11964
5213506e
RW
11965
11966as_nl='
11967'
11968export as_nl
11969# Printing a long string crashes Solaris 7 /usr/bin/printf.
11970as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11971as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11973# Prefer a ksh shell builtin over an external printf program on Solaris,
11974# but without wasting forks for bash or zsh.
11975if test -z "$BASH_VERSION$ZSH_VERSION" \
11976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11977 as_echo='print -r --'
11978 as_echo_n='print -rn --'
11979elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11980 as_echo='printf %s\n'
11981 as_echo_n='printf %s'
11982else
11983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11985 as_echo_n='/usr/ucb/echo -n'
11986 else
11987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11988 as_echo_n_body='eval
11989 arg=$1;
11990 case $arg in #(
11991 *"$as_nl"*)
11992 expr "X$arg" : "X\\(.*\\)$as_nl";
11993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11994 esac;
11995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11996 '
11997 export as_echo_n_body
11998 as_echo_n='sh -c $as_echo_n_body as_echo'
11999 fi
12000 export as_echo_body
12001 as_echo='sh -c $as_echo_body as_echo'
12002fi
12003
12004# The user is always right.
12005if test "${PATH_SEPARATOR+set}" != set; then
12006 PATH_SEPARATOR=:
12007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12009 PATH_SEPARATOR=';'
12010 }
88386050
NN
12011fi
12012
12013
5213506e
RW
12014# IFS
12015# We need space, tab and new line, in precisely that order. Quoting is
12016# there to prevent editors from complaining about space-tab.
12017# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12018# splitting by setting IFS to empty value.)
12019IFS=" "" $as_nl"
12020
12021# Find who we are. Look in the path if we contain no directory separator.
12022case $0 in #((
12023 *[\\/]* ) as_myself=$0 ;;
12024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12030 done
12031IFS=$as_save_IFS
12032
12033 ;;
12034esac
12035# We did not find ourselves, most probably we were run as `sh COMMAND'
12036# in which case we are not to be found in the path.
12037if test "x$as_myself" = x; then
12038 as_myself=$0
12039fi
12040if test ! -f "$as_myself"; then
12041 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12042 exit 1
12043fi
12044
12045# Unset variables that we do not need and which cause bugs (e.g. in
12046# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12047# suppresses any "Segmentation fault" message there. '((' could
12048# trigger a bug in pdksh 5.2.14.
12049for as_var in BASH_ENV ENV MAIL MAILPATH
12050do eval test x\${$as_var+set} = xset \
12051 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12052done
88386050
NN
12053PS1='$ '
12054PS2='> '
12055PS4='+ '
12056
12057# NLS nuisances.
5213506e
RW
12058LC_ALL=C
12059export LC_ALL
12060LANGUAGE=C
12061export LANGUAGE
12062
12063# CDPATH.
12064(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12065
12066
12067# as_fn_error ERROR [LINENO LOG_FD]
12068# ---------------------------------
12069# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12070# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12071# script with status $?, using 1 if that was 0.
12072as_fn_error ()
12073{
12074 as_status=$?; test $as_status -eq 0 && as_status=1
12075 if test "$3"; then
12076 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12077 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
88386050 12078 fi
5213506e
RW
12079 $as_echo "$as_me: error: $1" >&2
12080 as_fn_exit $as_status
12081} # as_fn_error
12082
bce1b489 12083
5213506e
RW
12084# as_fn_set_status STATUS
12085# -----------------------
12086# Set $? to STATUS, without forking.
12087as_fn_set_status ()
12088{
12089 return $1
12090} # as_fn_set_status
12091
12092# as_fn_exit STATUS
12093# -----------------
12094# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12095as_fn_exit ()
12096{
12097 set +e
12098 as_fn_set_status $1
12099 exit $1
12100} # as_fn_exit
12101
12102# as_fn_unset VAR
12103# ---------------
12104# Portably unset VAR.
12105as_fn_unset ()
12106{
12107 { eval $1=; unset $1;}
12108}
12109as_unset=as_fn_unset
12110# as_fn_append VAR VALUE
12111# ----------------------
12112# Append the text in VALUE to the end of the definition contained in VAR. Take
12113# advantage of any shell optimizations that allow amortized linear growth over
12114# repeated appends, instead of the typical quadratic growth present in naive
12115# implementations.
12116if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12117 eval 'as_fn_append ()
12118 {
12119 eval $1+=\$2
12120 }'
12121else
12122 as_fn_append ()
12123 {
12124 eval $1=\$$1\$2
12125 }
12126fi # as_fn_append
12127
12128# as_fn_arith ARG...
12129# ------------------
12130# Perform arithmetic evaluation on the ARGs, and store the result in the
12131# global $as_val. Take advantage of shells that can avoid forks. The arguments
12132# must be portable across $(()) and expr.
12133if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12134 eval 'as_fn_arith ()
12135 {
12136 as_val=$(( $* ))
12137 }'
12138else
12139 as_fn_arith ()
12140 {
12141 as_val=`expr "$@" || test $? -eq 1`
12142 }
12143fi # as_fn_arith
12144
12145
12146if expr a : '\(a\)' >/dev/null 2>&1 &&
12147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
88386050
NN
12148 as_expr=expr
12149else
12150 as_expr=false
12151fi
162f5967 12152
5213506e 12153if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
88386050
NN
12154 as_basename=basename
12155else
12156 as_basename=false
12157fi
162f5967 12158
5213506e
RW
12159if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12160 as_dirname=dirname
12161else
12162 as_dirname=false
12163fi
bce1b489 12164
5213506e 12165as_me=`$as_basename -- "$0" ||
88386050
NN
12166$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12167 X"$0" : 'X\(//\)$' \| \
5213506e
RW
12168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12169$as_echo X/"$0" |
12170 sed '/^.*\/\([^/][^/]*\)\/*$/{
12171 s//\1/
12172 q
12173 }
12174 /^X\/\(\/\/\)$/{
12175 s//\1/
12176 q
12177 }
12178 /^X\/\(\/\).*/{
12179 s//\1/
12180 q
12181 }
12182 s/.*/./; q'`
bce1b489 12183
88386050
NN
12184# Avoid depending upon Character Ranges.
12185as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12186as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12187as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12188as_cr_digits='0123456789'
12189as_cr_alnum=$as_cr_Letters$as_cr_digits
12190
5213506e
RW
12191ECHO_C= ECHO_N= ECHO_T=
12192case `echo -n x` in #(((((
12193-n*)
12194 case `echo 'xy\c'` in
12195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12196 xy) ECHO_C='\c';;
12197 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12198 ECHO_T=' ';;
12199 esac;;
12200*)
12201 ECHO_N='-n';;
12202esac
12203
12204rm -f conf$$ conf$$.exe conf$$.file
12205if test -d conf$$.dir; then
12206 rm -f conf$$.dir/conf$$.file
12207else
12208 rm -f conf$$.dir
12209 mkdir conf$$.dir 2>/dev/null
12210fi
12211if (echo >conf$$.file) 2>/dev/null; then
12212 if ln -s conf$$.file conf$$ 2>/dev/null; then
12213 as_ln_s='ln -s'
12214 # ... but there are two gotchas:
12215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12217 # In both cases, we have to default to `cp -p'.
12218 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12219 as_ln_s='cp -p'
12220 elif ln conf$$.file conf$$ 2>/dev/null; then
12221 as_ln_s=ln
03391b53 12222 else
5213506e 12223 as_ln_s='cp -p'
88386050 12224 fi
5213506e
RW
12225else
12226 as_ln_s='cp -p'
88386050 12227fi
5213506e
RW
12228rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12229rmdir conf$$.dir 2>/dev/null
88386050
NN
12230
12231
5213506e
RW
12232# as_fn_mkdir_p
12233# -------------
12234# Create "$as_dir" as a directory, including parents if necessary.
12235as_fn_mkdir_p ()
12236{
88386050 12237
5213506e
RW
12238 case $as_dir in #(
12239 -*) as_dir=./$as_dir;;
88386050 12240 esac
5213506e
RW
12241 test -d "$as_dir" || eval $as_mkdir_p || {
12242 as_dirs=
12243 while :; do
12244 case $as_dir in #(
12245 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12246 *) as_qdir=$as_dir;;
12247 esac
12248 as_dirs="'$as_qdir' $as_dirs"
12249 as_dir=`$as_dirname -- "$as_dir" ||
12250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12251 X"$as_dir" : 'X\(//\)[^/]' \| \
12252 X"$as_dir" : 'X\(//\)$' \| \
12253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12254$as_echo X"$as_dir" |
12255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12256 s//\1/
12257 q
12258 }
12259 /^X\(\/\/\)[^/].*/{
12260 s//\1/
12261 q
12262 }
12263 /^X\(\/\/\)$/{
12264 s//\1/
12265 q
12266 }
12267 /^X\(\/\).*/{
12268 s//\1/
12269 q
12270 }
12271 s/.*/./; q'`
12272 test -d "$as_dir" && break
12273 done
12274 test -z "$as_dirs" || eval "mkdir $as_dirs"
12275 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
88386050 12276
88386050 12277
5213506e 12278} # as_fn_mkdir_p
88386050 12279if mkdir -p . 2>/dev/null; then
5213506e 12280 as_mkdir_p='mkdir -p "$as_dir"'
88386050
NN
12281else
12282 test -d ./-p && rmdir ./-p
12283 as_mkdir_p=false
12284fi
12285
5213506e
RW
12286if test -x / >/dev/null 2>&1; then
12287 as_test_x='test -x'
12288else
12289 if ls -dL / >/dev/null 2>&1; then
12290 as_ls_L_option=L
12291 else
12292 as_ls_L_option=
12293 fi
12294 as_test_x='
12295 eval sh -c '\''
12296 if test -d "$1"; then
12297 test -d "$1/.";
12298 else
12299 case $1 in #(
12300 -*)set "./$1";;
12301 esac;
12302 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12303 ???[sx]*):;;*)false;;esac;fi
12304 '\'' sh
12305 '
12306fi
12307as_executable_p=$as_test_x
88386050
NN
12308
12309# Sed expression to map a string onto a valid CPP name.
12310as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12311
12312# Sed expression to map a string onto a valid variable name.
12313as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12314
12315
88386050 12316exec 6>&1
5213506e
RW
12317## ----------------------------------- ##
12318## Main body of $CONFIG_STATUS script. ##
12319## ----------------------------------- ##
12320_ASEOF
12321test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12322
12323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12324# Save the log message, to keep $0 and so on meaningful, and to
88386050 12325# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
12326# values after options handling.
12327ac_log="
684c64bf 12328This file was extended by package-unused $as_me version-unused, which was
5213506e 12329generated by GNU Autoconf 2.64. Invocation command line was
88386050
NN
12330
12331 CONFIG_FILES = $CONFIG_FILES
12332 CONFIG_HEADERS = $CONFIG_HEADERS
12333 CONFIG_LINKS = $CONFIG_LINKS
12334 CONFIG_COMMANDS = $CONFIG_COMMANDS
12335 $ $0 $@
12336
5213506e
RW
12337on `(hostname || uname -n) 2>/dev/null | sed 1q`
12338"
12339
88386050
NN
12340_ACEOF
12341
5213506e
RW
12342case $ac_config_files in *"
12343"*) set x $ac_config_files; shift; ac_config_files=$*;;
12344esac
88386050 12345
5213506e
RW
12346case $ac_config_headers in *"
12347"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12348esac
88386050 12349
88386050 12350
5213506e
RW
12351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12352# Files that config.status was made for.
12353config_files="$ac_config_files"
12354config_headers="$ac_config_headers"
12355config_commands="$ac_config_commands"
88386050 12356
5213506e 12357_ACEOF
88386050 12358
5213506e 12359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
88386050 12360ac_cs_usage="\
5213506e
RW
12361\`$as_me' instantiates files and other configuration actions
12362from templates according to the current configuration. Unless the files
12363and actions are specified as TAGs, all are instantiated by default.
88386050 12364
5213506e 12365Usage: $0 [OPTION]... [TAG]...
88386050
NN
12366
12367 -h, --help print this help, then exit
5213506e
RW
12368 -V, --version print version number and configuration settings, then exit
12369 -q, --quiet, --silent
12370 do not print progress messages
88386050
NN
12371 -d, --debug don't remove temporary files
12372 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
12373 --file=FILE[:TEMPLATE]
12374 instantiate the configuration file FILE
12375 --header=FILE[:TEMPLATE]
12376 instantiate the configuration header FILE
88386050
NN
12377
12378Configuration files:
12379$config_files
12380
049bc404
AP
12381Configuration headers:
12382$config_headers
12383
88386050
NN
12384Configuration commands:
12385$config_commands
12386
5213506e 12387Report bugs to the package provider."
88386050 12388
5213506e
RW
12389_ACEOF
12390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88386050 12391ac_cs_version="\\
684c64bf 12392package-unused config.status version-unused
5213506e
RW
12393configured by $0, generated by GNU Autoconf 2.64,
12394 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
88386050 12395
5213506e 12396Copyright (C) 2009 Free Software Foundation, Inc.
88386050
NN
12397This config.status script is free software; the Free Software Foundation
12398gives unlimited permission to copy, distribute and modify it."
5213506e
RW
12399
12400ac_pwd='$ac_pwd'
12401srcdir='$srcdir'
12402INSTALL='$INSTALL'
43e02a8a 12403AWK='$AWK'
5213506e 12404test -n "\$AWK" || AWK=awk
88386050
NN
12405_ACEOF
12406
5213506e
RW
12407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408# The default lists apply if the user does not specify any file.
88386050
NN
12409ac_need_defaults=:
12410while test $# != 0
12411do
12412 case $1 in
12413 --*=*)
5213506e
RW
12414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
88386050
NN
12416 ac_shift=:
12417 ;;
5213506e 12418 *)
88386050
NN
12419 ac_option=$1
12420 ac_optarg=$2
12421 ac_shift=shift
12422 ;;
88386050
NN
12423 esac
12424
12425 case $ac_option in
12426 # Handling of the options.
88386050
NN
12427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12428 ac_cs_recheck=: ;;
5213506e
RW
12429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12430 $as_echo "$ac_cs_version"; exit ;;
12431 --debug | --debu | --deb | --de | --d | -d )
88386050
NN
12432 debug=: ;;
12433 --file | --fil | --fi | --f )
12434 $ac_shift
5213506e
RW
12435 case $ac_optarg in
12436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12437 esac
12438 as_fn_append CONFIG_FILES " '$ac_optarg'"
88386050
NN
12439 ac_need_defaults=false;;
12440 --header | --heade | --head | --hea )
12441 $ac_shift
5213506e
RW
12442 case $ac_optarg in
12443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12444 esac
12445 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
88386050 12446 ac_need_defaults=false;;
5213506e
RW
12447 --he | --h)
12448 # Conflict between --help and --header
12449 as_fn_error "ambiguous option: \`$1'
12450Try \`$0 --help' for more information.";;
12451 --help | --hel | -h )
12452 $as_echo "$ac_cs_usage"; exit ;;
88386050
NN
12453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12454 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12455 ac_cs_silent=: ;;
12456
12457 # This is an error.
5213506e
RW
12458 -*) as_fn_error "unrecognized option: \`$1'
12459Try \`$0 --help' for more information." ;;
88386050 12460
5213506e
RW
12461 *) as_fn_append ac_config_targets " $1"
12462 ac_need_defaults=false ;;
88386050
NN
12463
12464 esac
12465 shift
03391b53 12466done
88386050
NN
12467
12468ac_configure_extra_args=
12469
12470if $ac_cs_silent; then
12471 exec 6>/dev/null
12472 ac_configure_extra_args="$ac_configure_extra_args --silent"
03391b53 12473fi
bce1b489 12474
88386050 12475_ACEOF
5213506e 12476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88386050 12477if \$ac_cs_recheck; then
5213506e
RW
12478 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12479 shift
12480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12481 CONFIG_SHELL='$SHELL'
12482 export CONFIG_SHELL
12483 exec "\$@"
88386050 12484fi
03391b53 12485
88386050 12486_ACEOF
5213506e
RW
12487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12488exec 5>>config.log
12489{
12490 echo
12491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12492## Running $as_me. ##
12493_ASBOX
12494 $as_echo "$ac_log"
12495} >&5
88386050 12496
5213506e
RW
12497_ACEOF
12498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88386050 12499#
5213506e 12500# INIT-COMMANDS
88386050
NN
12501#
12502
5b043f08
GK
12503srcdir="$srcdir"
12504host="$host"
12505target="$target"
12506with_multisubdir="$with_multisubdir"
12507with_multisrctop="$with_multisrctop"
12508with_target_subdir="$with_target_subdir"
12509ac_configure_args="${multilib_arg} ${ac_configure_args}"
12510multi_basedir="$multi_basedir"
12511CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12512CC="$CC"
5213506e
RW
12513CXX="$CXX"
12514GFORTRAN="$GFORTRAN"
1cf3d07d
SE
12515
12516
12517# The HP-UX ksh and POSIX shell print the target directory to stdout
12518# if CDPATH is set.
12519(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12520
12521sed_quote_subst='$sed_quote_subst'
12522double_quote_subst='$double_quote_subst'
12523delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
12524AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12525DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12526OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12527macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12528macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12529enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12530enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12531pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12532enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12533SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12534ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12535host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12536host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12537host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12538build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12539build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12540build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12541SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12542Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12543GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12544EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12545FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12546LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12547NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12548LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12549max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12550ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12551exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12552lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12553lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12554lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12555reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12556reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12557deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12558file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12559AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12560AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12561STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12562RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12563old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12564old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12565old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12566lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12567CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12568CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12569compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12570GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12571lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12572lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12573lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12574lt_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"`'
12575objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12576MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12577lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12578lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12579lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12580lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12581lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12582need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12583DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12584NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12585LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12586OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12587OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12588libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12589shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12590extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12591archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12592enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12593export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12594whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12595compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12596old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12597old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12598archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12599archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12600module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12601module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12602with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12603allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12604no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12605hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12606hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12607hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12608hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12609hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12610hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12611hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12612hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12613inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12614link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12615fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12616always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12617export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12618exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12619include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12620prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12621file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12622variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12623need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12624need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12625version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12626runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12627shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12628shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12629libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12630library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12631soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12632install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12633postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12634postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12635finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12636finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12637hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12638sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12639sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12640hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12641enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12642enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12643enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12644old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12645striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
12646
12647LTCC='$LTCC'
12648LTCFLAGS='$LTCFLAGS'
12649compiler='$compiler_DEFAULT'
12650
43e02a8a
RW
12651# A function that is used when there is no print builtin or printf.
12652func_fallback_echo ()
12653{
12654 eval 'cat <<_LTECHO_EOF
12655\$1
12656_LTECHO_EOF'
12657}
12658
1cf3d07d 12659# Quote evaled strings.
43e02a8a
RW
12660for var in AS \
12661DLLTOOL \
12662OBJDUMP \
12663SHELL \
12664ECHO \
12665SED \
1cf3d07d
SE
12666GREP \
12667EGREP \
12668FGREP \
12669LD \
12670NM \
12671LN_S \
12672lt_SP2NL \
12673lt_NL2SP \
12674reload_flag \
12675deplibs_check_method \
12676file_magic_cmd \
12677AR \
12678AR_FLAGS \
12679STRIP \
12680RANLIB \
12681CC \
12682CFLAGS \
12683compiler \
12684lt_cv_sys_global_symbol_pipe \
12685lt_cv_sys_global_symbol_to_cdecl \
12686lt_cv_sys_global_symbol_to_c_name_address \
467b2e9e 12687lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
12688lt_prog_compiler_no_builtin_flag \
12689lt_prog_compiler_wl \
12690lt_prog_compiler_pic \
12691lt_prog_compiler_static \
12692lt_cv_prog_compiler_c_o \
12693need_locks \
467b2e9e
PG
12694DSYMUTIL \
12695NMEDIT \
12696LIPO \
12697OTOOL \
12698OTOOL64 \
1cf3d07d
SE
12699shrext_cmds \
12700export_dynamic_flag_spec \
12701whole_archive_flag_spec \
12702compiler_needs_object \
12703with_gnu_ld \
12704allow_undefined_flag \
12705no_undefined_flag \
12706hardcode_libdir_flag_spec \
12707hardcode_libdir_flag_spec_ld \
12708hardcode_libdir_separator \
12709fix_srcfile_path \
12710exclude_expsyms \
12711include_expsyms \
12712file_list_spec \
12713variables_saved_for_relink \
12714libname_spec \
12715library_names_spec \
12716soname_spec \
43e02a8a 12717install_override_mode \
1cf3d07d
SE
12718finish_eval \
12719old_striplib \
12720striplib; do
43e02a8a 12721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 12722 *[\\\\\\\`\\"\\\$]*)
43e02a8a 12723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
12724 ;;
12725 *)
12726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12727 ;;
12728 esac
12729done
12730
12731# Double-quote double-evaled strings.
12732for var in reload_cmds \
12733old_postinstall_cmds \
12734old_postuninstall_cmds \
12735old_archive_cmds \
12736extract_expsyms_cmds \
12737old_archive_from_new_cmds \
12738old_archive_from_expsyms_cmds \
12739archive_cmds \
12740archive_expsym_cmds \
12741module_cmds \
12742module_expsym_cmds \
12743export_symbols_cmds \
12744prelink_cmds \
12745postinstall_cmds \
12746postuninstall_cmds \
12747finish_cmds \
12748sys_lib_search_path_spec \
12749sys_lib_dlsearch_path_spec; do
43e02a8a 12750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 12751 *[\\\\\\\`\\"\\\$]*)
43e02a8a 12752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
12753 ;;
12754 *)
12755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12756 ;;
12757 esac
12758done
12759
1cf3d07d
SE
12760ac_aux_dir='$ac_aux_dir'
12761xsi_shell='$xsi_shell'
12762lt_shell_append='$lt_shell_append'
12763
12764# See if we are running on zsh, and set the options which allow our
12765# commands through without removal of \ escapes INIT.
12766if test -n "\${ZSH_VERSION+set}" ; then
12767 setopt NO_GLOB_SUBST
12768fi
12769
12770
12771 PACKAGE='$PACKAGE'
12772 VERSION='$VERSION'
12773 TIMESTAMP='$TIMESTAMP'
12774 RM='$RM'
12775 ofile='$ofile'
12776
12777
12778
88386050
NN
12779
12780_ACEOF
12781
5213506e 12782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
88386050 12783
5213506e 12784# Handling of arguments.
88386050
NN
12785for ac_config_target in $ac_config_targets
12786do
5213506e
RW
12787 case $ac_config_target in
12788 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12789 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12790 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12791 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12792
12793 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
bce1b489 12794 esac
88386050 12795done
bce1b489 12796
5213506e 12797
88386050
NN
12798# If the user did not use the arguments to specify the items to instantiate,
12799# then the envvar interface is used. Set only those that are not.
12800# We use the long form for the default assignment because of an extremely
12801# bizarre bug on SunOS 4.1.3.
12802if $ac_need_defaults; then
12803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
049bc404 12804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
88386050
NN
12805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12806fi
12807
12808# Have a temporary directory for convenience. Make it in the build tree
5213506e 12809# simply because there is no reason against having it here, and in addition,
88386050 12810# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
12811# Hook for its removal unless debugging.
12812# Note that there is a small window in which the directory will not be cleaned:
12813# after its creation but before its name has been assigned to `$tmp'.
88386050
NN
12814$debug ||
12815{
5213506e
RW
12816 tmp=
12817 trap 'exit_status=$?
12818 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12819' 0
12820 trap 'as_fn_exit 1' 1 2 13 15
88386050 12821}
88386050
NN
12822# Create a (secure) tmp directory for tmp files.
12823
12824{
5213506e 12825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
88386050
NN
12826 test -n "$tmp" && test -d "$tmp"
12827} ||
12828{
5213506e
RW
12829 tmp=./conf$$-$RANDOM
12830 (umask 077 && mkdir "$tmp")
12831} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12832
12833# Set up the scripts for CONFIG_FILES section.
12834# No need to generate them if there are no CONFIG_FILES.
12835# This happens for instance with `./config.status config.h'.
12836if test -n "$CONFIG_FILES"; then
12837
12838
12839ac_cr=`echo X | tr X '\015'`
12840# On cygwin, bash can eat \r inside `` if the user requested igncr.
12841# But we know of no other shell where ac_cr would be empty at this
12842# point, so we can use a bashism as a fallback.
12843if test "x$ac_cr" = x; then
12844 eval ac_cr=\$\'\\r\'
12845fi
12846ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12847if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12848 ac_cs_awk_cr='\r'
12849else
12850 ac_cs_awk_cr=$ac_cr
12851fi
12852
12853echo 'BEGIN {' >"$tmp/subs1.awk" &&
12854_ACEOF
12855
12856
88386050 12857{
5213506e
RW
12858 echo "cat >conf$$subs.awk <<_ACEOF" &&
12859 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12860 echo "_ACEOF"
12861} >conf$$subs.sh ||
12862 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12863ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12864ac_delim='%!_!# '
12865for ac_last_try in false false false false false :; do
12866 . ./conf$$subs.sh ||
12867 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12868
12869 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12870 if test $ac_delim_n = $ac_delim_num; then
12871 break
12872 elif $ac_last_try; then
12873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12874 else
12875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12876 fi
12877done
12878rm -f conf$$subs.sh
88386050 12879
5213506e
RW
12880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12881cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
88386050 12882_ACEOF
5213506e
RW
12883sed -n '
12884h
12885s/^/S["/; s/!.*/"]=/
12886p
12887g
12888s/^[^!]*!//
12889:repl
12890t repl
12891s/'"$ac_delim"'$//
12892t delim
12893:nl
12894h
12895s/\(.\{148\}\).*/\1/
12896t more1
12897s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12898p
12899n
12900b repl
12901:more1
12902s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12903p
12904g
12905s/.\{148\}//
12906t nl
12907:delim
12908h
12909s/\(.\{148\}\).*/\1/
12910t more2
12911s/["\\]/\\&/g; s/^/"/; s/$/"/
12912p
12913b
12914:more2
12915s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12916p
12917g
12918s/.\{148\}//
12919t delim
12920' <conf$$subs.awk | sed '
12921/^[^""]/{
12922 N
12923 s/\n//
12924}
12925' >>$CONFIG_STATUS || ac_write_fail=1
12926rm -f conf$$subs.awk
12927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12928_ACAWK
12929cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12930 for (key in S) S_is_set[key] = 1
12931 FS = "\a"
88386050 12932
5213506e
RW
12933}
12934{
12935 line = $ 0
12936 nfields = split(line, field, "@")
12937 substed = 0
12938 len = length(field[1])
12939 for (i = 2; i < nfields; i++) {
12940 key = field[i]
12941 keylen = length(key)
12942 if (S_is_set[key]) {
12943 value = S[key]
12944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12945 len += length(value) + length(field[++i])
12946 substed = 1
12947 } else
12948 len += 1 + keylen
12949 }
bce1b489 12950
5213506e
RW
12951 print line
12952}
12953
12954_ACAWK
12955_ACEOF
12956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12957if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12958 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12959else
12960 cat
12961fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12962 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12963_ACEOF
12964
12965# VPATH may cause trouble with some makes, so we remove $(srcdir),
12966# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12967# trailing colons and then remove the whole line if VPATH becomes empty
12968# (actually we leave an empty line to preserve line numbers).
12969if test "x$srcdir" = x.; then
12970 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12971s/:*\$(srcdir):*/:/
12972s/:*\${srcdir}:*/:/
12973s/:*@srcdir@:*/:/
12974s/^\([^=]*=[ ]*\):*/\1/
12975s/:*$//
12976s/^[^=]*=[ ]*$//
12977}'
12978fi
88386050 12979
5213506e
RW
12980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12981fi # test -n "$CONFIG_FILES"
88386050 12982
5213506e
RW
12983# Set up the scripts for CONFIG_HEADERS section.
12984# No need to generate them if there are no CONFIG_HEADERS.
12985# This happens for instance with `./config.status Makefile'.
12986if test -n "$CONFIG_HEADERS"; then
12987cat >"$tmp/defines.awk" <<\_ACAWK ||
12988BEGIN {
88386050
NN
12989_ACEOF
12990
5213506e
RW
12991# Transform confdefs.h into an awk script `defines.awk', embedded as
12992# here-document in config.status, that substitutes the proper values into
12993# config.h.in to produce config.h.
12994
12995# Create a delimiter string that does not exist in confdefs.h, to ease
12996# handling of long lines.
12997ac_delim='%!_!# '
12998for ac_last_try in false false :; do
12999 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13000 if test -z "$ac_t"; then
13001 break
13002 elif $ac_last_try; then
13003 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13004 else
13005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
bce1b489 13006 fi
5213506e 13007done
bce1b489 13008
5213506e
RW
13009# For the awk script, D is an array of macro values keyed by name,
13010# likewise P contains macro parameters if any. Preserve backslash
13011# newline sequences.
13012
13013ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13014sed -n '
13015s/.\{148\}/&'"$ac_delim"'/g
13016t rset
13017:rset
13018s/^[ ]*#[ ]*define[ ][ ]*/ /
13019t def
13020d
13021:def
13022s/\\$//
13023t bsnl
13024s/["\\]/\\&/g
13025s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13026D["\1"]=" \3"/p
13027s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13028d
13029:bsnl
13030s/["\\]/\\&/g
13031s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13032D["\1"]=" \3\\\\\\n"\\/p
13033t cont
13034s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13035t cont
13036d
13037:cont
13038n
13039s/.\{148\}/&'"$ac_delim"'/g
13040t clear
13041:clear
13042s/\\$//
13043t bsnlc
13044s/["\\]/\\&/g; s/^/"/; s/$/"/p
13045d
13046:bsnlc
13047s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13048b cont
13049' <confdefs.h | sed '
13050s/'"$ac_delim"'/"\\\
13051"/g' >>$CONFIG_STATUS || ac_write_fail=1
13052
13053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13054 for (key in D) D_is_set[key] = 1
13055 FS = "\a"
13056}
13057/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13058 line = \$ 0
13059 split(line, arg, " ")
13060 if (arg[1] == "#") {
13061 defundef = arg[2]
13062 mac1 = arg[3]
13063 } else {
13064 defundef = substr(arg[1], 2)
13065 mac1 = arg[2]
13066 }
13067 split(mac1, mac2, "(") #)
13068 macro = mac2[1]
13069 prefix = substr(line, 1, index(line, defundef) - 1)
13070 if (D_is_set[macro]) {
13071 # Preserve the white space surrounding the "#".
13072 print prefix "define", macro P[macro] D[macro]
13073 next
13074 } else {
13075 # Replace #undef with comments. This is necessary, for example,
13076 # in the case of _POSIX_SOURCE, which is predefined and required
13077 # on some systems where configure will not decide to define it.
13078 if (defundef == "undef") {
13079 print "/*", prefix defundef, macro, "*/"
13080 next
13081 }
13082 }
13083}
13084{ print }
13085_ACAWK
88386050 13086_ACEOF
5213506e
RW
13087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13089fi # test -n "$CONFIG_HEADERS"
13090
13091
13092eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13093shift
13094for ac_tag
13095do
13096 case $ac_tag in
13097 :[FHLC]) ac_mode=$ac_tag; continue;;
13098 esac
13099 case $ac_mode$ac_tag in
13100 :[FHL]*:*);;
13101 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13102 :[FH]-) ac_tag=-:-;;
13103 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13104 esac
13105 ac_save_IFS=$IFS
13106 IFS=:
13107 set x $ac_tag
13108 IFS=$ac_save_IFS
13109 shift
13110 ac_file=$1
13111 shift
13112
13113 case $ac_mode in
13114 :L) ac_source=$1;;
13115 :[FH])
13116 ac_file_inputs=
13117 for ac_f
13118 do
13119 case $ac_f in
13120 -) ac_f="$tmp/stdin";;
13121 *) # Look for the file first in the build tree, then in the source tree
13122 # (if the path is not absolute). The absolute path cannot be DOS-style,
13123 # because $ac_f cannot contain `:'.
13124 test -f "$ac_f" ||
13125 case $ac_f in
13126 [\\/$]*) false;;
13127 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13128 esac ||
13129 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13130 esac
13131 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13132 as_fn_append ac_file_inputs " '$ac_f'"
13133 done
13134
13135 # Let's still pretend it is `configure' which instantiates (i.e., don't
13136 # use $as_me), people would be surprised to read:
13137 # /* config.h. Generated by config.status. */
13138 configure_input='Generated from '`
13139 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13140 `' by configure.'
13141 if test x"$ac_file" != x-; then
13142 configure_input="$ac_file. $configure_input"
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13144$as_echo "$as_me: creating $ac_file" >&6;}
13145 fi
13146 # Neutralize special characters interpreted by sed in replacement strings.
13147 case $configure_input in #(
13148 *\&* | *\|* | *\\* )
13149 ac_sed_conf_input=`$as_echo "$configure_input" |
13150 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13151 *) ac_sed_conf_input=$configure_input;;
13152 esac
13153
13154 case $ac_tag in
13155 *:-:* | *:-) cat >"$tmp/stdin" \
13156 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13157 esac
13158 ;;
bce1b489
BE
13159 esac
13160
5213506e 13161 ac_dir=`$as_dirname -- "$ac_file" ||
88386050
NN
13162$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13163 X"$ac_file" : 'X\(//\)[^/]' \| \
13164 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
13165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13166$as_echo X"$ac_file" |
13167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13168 s//\1/
13169 q
13170 }
13171 /^X\(\/\/\)[^/].*/{
13172 s//\1/
13173 q
13174 }
13175 /^X\(\/\/\)$/{
13176 s//\1/
13177 q
13178 }
13179 /^X\(\/\).*/{
13180 s//\1/
13181 q
13182 }
13183 s/.*/./; q'`
13184 as_dir="$ac_dir"; as_fn_mkdir_p
88386050
NN
13185 ac_builddir=.
13186
5213506e
RW
13187case "$ac_dir" in
13188.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13189*)
13190 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13191 # A ".." for each directory in $ac_dir_suffix.
13192 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13193 case $ac_top_builddir_sub in
13194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13196 esac ;;
13197esac
13198ac_abs_top_builddir=$ac_pwd
13199ac_abs_builddir=$ac_pwd$ac_dir_suffix
13200# for backward compatibility:
13201ac_top_builddir=$ac_top_build_prefix
88386050
NN
13202
13203case $srcdir in
5213506e 13204 .) # We are building in place.
88386050 13205 ac_srcdir=.
5213506e
RW
13206 ac_top_srcdir=$ac_top_builddir_sub
13207 ac_abs_top_srcdir=$ac_pwd ;;
13208 [\\/]* | ?:[\\/]* ) # Absolute name.
88386050 13209 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
13210 ac_top_srcdir=$srcdir
13211 ac_abs_top_srcdir=$srcdir ;;
13212 *) # Relative name.
13213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13214 ac_top_srcdir=$ac_top_build_prefix$srcdir
13215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
88386050 13216esac
5213506e 13217ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
88386050 13218
88386050 13219
5213506e
RW
13220 case $ac_mode in
13221 :F)
13222 #
13223 # CONFIG_FILE
13224 #
bce1b489 13225
88386050
NN
13226 case $INSTALL in
13227 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 13228 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
03391b53 13229 esac
5213506e 13230_ACEOF
bce1b489 13231
5213506e
RW
13232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13233# If the template does not know about datarootdir, expand it.
13234# FIXME: This hack should be removed a few years after 2.60.
13235ac_datarootdir_hack=; ac_datarootdir_seen=
13236ac_sed_dataroot='
13237/datarootdir/ {
13238 p
13239 q
13240}
13241/@datadir@/p
13242/@docdir@/p
13243/@infodir@/p
13244/@localedir@/p
13245/@mandir@/p'
13246case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13247*datarootdir*) ac_datarootdir_seen=yes;;
13248*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13250$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13251_ACEOF
13252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13253 ac_datarootdir_hack='
13254 s&@datadir@&$datadir&g
13255 s&@docdir@&$docdir&g
13256 s&@infodir@&$infodir&g
13257 s&@localedir@&$localedir&g
13258 s&@mandir@&$mandir&g
13259 s&\\\${datarootdir}&$datarootdir&g' ;;
13260esac
88386050 13261_ACEOF
5213506e
RW
13262
13263# Neutralize VPATH when `$srcdir' = `.'.
13264# Shell code in configure.ac might set extrasub.
13265# FIXME: do we really want to maintain this feature?
13266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13267ac_sed_extra="$ac_vpsub
88386050
NN
13268$extrasub
13269_ACEOF
5213506e 13270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
88386050
NN
13271:t
13272/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
13273s|@configure_input@|$ac_sed_conf_input|;t t
13274s&@top_builddir@&$ac_top_builddir_sub&;t t
13275s&@top_build_prefix@&$ac_top_build_prefix&;t t
13276s&@srcdir@&$ac_srcdir&;t t
13277s&@abs_srcdir@&$ac_abs_srcdir&;t t
13278s&@top_srcdir@&$ac_top_srcdir&;t t
13279s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13280s&@builddir@&$ac_builddir&;t t
13281s&@abs_builddir@&$ac_abs_builddir&;t t
13282s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13283s&@INSTALL@&$ac_INSTALL&;t t
13284$ac_datarootdir_hack
13285"
13286eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13287 || as_fn_error "could not create $ac_file" "$LINENO" 5
13288
13289test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13290 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13293which seems to be undefined. Please make sure it is defined." >&5
13294$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13295which seems to be undefined. Please make sure it is defined." >&2;}
13296
13297 rm -f "$tmp/stdin"
049bc404 13298 case $ac_file in
5213506e
RW
13299 -) cat "$tmp/out" && rm -f "$tmp/out";;
13300 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13301 esac \
13302 || as_fn_error "could not create $ac_file" "$LINENO" 5
13303 ;;
13304 :H)
13305 #
13306 # CONFIG_HEADER
13307 #
049bc404 13308 if test x"$ac_file" != x-; then
5213506e
RW
13309 {
13310 $as_echo "/* $configure_input */" \
13311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13312 } >"$tmp/config.h" \
13313 || as_fn_error "could not create $ac_file" "$LINENO" 5
13314 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13316$as_echo "$as_me: $ac_file is unchanged" >&6;}
049bc404 13317 else
5213506e
RW
13318 rm -f "$ac_file"
13319 mv "$tmp/config.h" "$ac_file" \
13320 || as_fn_error "could not create $ac_file" "$LINENO" 5
049bc404
AP
13321 fi
13322 else
5213506e
RW
13323 $as_echo "/* $configure_input */" \
13324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13325 || as_fn_error "could not create -" "$LINENO" 5
049bc404 13326 fi
5213506e 13327 ;;
88386050 13328
5213506e
RW
13329 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13330$as_echo "$as_me: executing $ac_file commands" >&6;}
13331 ;;
13332 esac
88386050
NN
13333
13334
5213506e
RW
13335 case $ac_file$ac_mode in
13336 "default-1":C)
5b043f08
GK
13337# Only add multilib support code if we just rebuilt the top-level
13338# Makefile.
13339case " $CONFIG_FILES " in
13340 *" Makefile "*)
13341 ac_file=Makefile . ${multi_basedir}/config-ml.in
13342 ;;
13343esac ;;
5213506e 13344 "libtool":C)
1cf3d07d
SE
13345
13346 # See if we are running on zsh, and set the options which allow our
13347 # commands through without removal of \ escapes.
13348 if test -n "${ZSH_VERSION+set}" ; then
13349 setopt NO_GLOB_SUBST
13350 fi
13351
13352 cfgfile="${ofile}T"
13353 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13354 $RM "$cfgfile"
13355
13356 cat <<_LT_EOF >> "$cfgfile"
13357#! $SHELL
13358
13359# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
467b2e9e 13360# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
13361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13362# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13363#
467b2e9e 13364# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 13365# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
467b2e9e 13366# Written by Gordon Matzigkeit, 1996
1cf3d07d 13367#
467b2e9e 13368# This file is part of GNU Libtool.
1cf3d07d 13369#
467b2e9e
PG
13370# GNU Libtool is free software; you can redistribute it and/or
13371# modify it under the terms of the GNU General Public License as
13372# published by the Free Software Foundation; either version 2 of
13373# the License, or (at your option) any later version.
1cf3d07d 13374#
467b2e9e
PG
13375# As a special exception to the GNU General Public License,
13376# if you distribute this file as part of a program or library that
13377# is built using GNU Libtool, you may include this file under the
13378# same distribution terms that you use for the rest of that program.
1cf3d07d 13379#
467b2e9e
PG
13380# GNU Libtool is distributed in the hope that it will be useful,
13381# but WITHOUT ANY WARRANTY; without even the implied warranty of
13382# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13383# GNU General Public License for more details.
1cf3d07d 13384#
467b2e9e
PG
13385# You should have received a copy of the GNU General Public License
13386# along with GNU Libtool; see the file COPYING. If not, a copy
13387# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13388# obtained by writing to the Free Software Foundation, Inc.,
13389# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
13390
13391
13392# The names of the tagged configurations supported by this script.
13393available_tags=""
13394
13395# ### BEGIN LIBTOOL CONFIG
13396
13397# Assembler program.
43e02a8a 13398AS=$lt_AS
1cf3d07d
SE
13399
13400# DLL creation program.
43e02a8a 13401DLLTOOL=$lt_DLLTOOL
1cf3d07d
SE
13402
13403# Object dumper program.
43e02a8a 13404OBJDUMP=$lt_OBJDUMP
1cf3d07d
SE
13405
13406# Which release of libtool.m4 was used?
13407macro_version=$macro_version
13408macro_revision=$macro_revision
13409
13410# Whether or not to build shared libraries.
13411build_libtool_libs=$enable_shared
13412
13413# Whether or not to build static libraries.
13414build_old_libs=$enable_static
13415
13416# What type of objects to build.
13417pic_mode=$pic_mode
13418
13419# Whether or not to optimize for fast installation.
13420fast_install=$enable_fast_install
13421
43e02a8a
RW
13422# Shell to use when invoking shell scripts.
13423SHELL=$lt_SHELL
13424
13425# An echo program that protects backslashes.
13426ECHO=$lt_ECHO
13427
1cf3d07d
SE
13428# The host system.
13429host_alias=$host_alias
13430host=$host
13431host_os=$host_os
13432
13433# The build system.
13434build_alias=$build_alias
13435build=$build
13436build_os=$build_os
13437
13438# A sed program that does not truncate output.
13439SED=$lt_SED
13440
13441# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13442Xsed="\$SED -e 1s/^X//"
13443
13444# A grep program that handles long lines.
13445GREP=$lt_GREP
13446
13447# An ERE matcher.
13448EGREP=$lt_EGREP
13449
13450# A literal string matcher.
13451FGREP=$lt_FGREP
13452
13453# A BSD- or MS-compatible name lister.
13454NM=$lt_NM
13455
13456# Whether we need soft or hard links.
13457LN_S=$lt_LN_S
13458
13459# What is the maximum length of a command?
13460max_cmd_len=$max_cmd_len
13461
13462# Object file suffix (normally "o").
13463objext=$ac_objext
13464
13465# Executable file suffix (normally "").
13466exeext=$exeext
13467
13468# whether the shell understands "unset".
13469lt_unset=$lt_unset
13470
13471# turn spaces into newlines.
13472SP2NL=$lt_lt_SP2NL
13473
13474# turn newlines into spaces.
13475NL2SP=$lt_lt_NL2SP
13476
1cf3d07d
SE
13477# Method to check whether dependent libraries are shared objects.
13478deplibs_check_method=$lt_deplibs_check_method
13479
13480# Command to use when deplibs_check_method == "file_magic".
13481file_magic_cmd=$lt_file_magic_cmd
13482
13483# The archiver.
13484AR=$lt_AR
13485AR_FLAGS=$lt_AR_FLAGS
13486
13487# A symbol stripping program.
13488STRIP=$lt_STRIP
13489
13490# Commands used to install an old-style archive.
13491RANLIB=$lt_RANLIB
13492old_postinstall_cmds=$lt_old_postinstall_cmds
13493old_postuninstall_cmds=$lt_old_postuninstall_cmds
13494
43e02a8a
RW
13495# Whether to use a lock for old archive extraction.
13496lock_old_archive_extraction=$lock_old_archive_extraction
13497
1cf3d07d
SE
13498# A C compiler.
13499LTCC=$lt_CC
13500
13501# LTCC compiler flags.
13502LTCFLAGS=$lt_CFLAGS
13503
13504# Take the output of nm and produce a listing of raw symbols and C names.
13505global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13506
13507# Transform the output of nm in a proper C declaration.
13508global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13509
13510# Transform the output of nm in a C name address pair.
13511global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13512
467b2e9e
PG
13513# Transform the output of nm in a C name address pair when lib prefix is needed.
13514global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13515
1cf3d07d
SE
13516# The name of the directory that contains temporary libtool files.
13517objdir=$objdir
13518
1cf3d07d
SE
13519# Used to examine libraries when file_magic_cmd begins with "file".
13520MAGIC_CMD=$MAGIC_CMD
13521
13522# Must we lock files when doing compilation?
13523need_locks=$lt_need_locks
13524
467b2e9e
PG
13525# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13526DSYMUTIL=$lt_DSYMUTIL
13527
13528# Tool to change global to local symbols on Mac OS X.
13529NMEDIT=$lt_NMEDIT
13530
13531# Tool to manipulate fat objects and archives on Mac OS X.
13532LIPO=$lt_LIPO
13533
13534# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13535OTOOL=$lt_OTOOL
13536
13537# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13538OTOOL64=$lt_OTOOL64
13539
1cf3d07d
SE
13540# Old archive suffix (normally "a").
13541libext=$libext
13542
13543# Shared library suffix (normally ".so").
13544shrext_cmds=$lt_shrext_cmds
13545
13546# The commands to extract the exported symbol list from a shared archive.
13547extract_expsyms_cmds=$lt_extract_expsyms_cmds
13548
13549# Variables whose values should be saved in libtool wrapper scripts and
13550# restored at link time.
13551variables_saved_for_relink=$lt_variables_saved_for_relink
13552
13553# Do we need the "lib" prefix for modules?
13554need_lib_prefix=$need_lib_prefix
13555
13556# Do we need a version for libraries?
13557need_version=$need_version
13558
13559# Library versioning type.
13560version_type=$version_type
13561
13562# Shared library runtime path variable.
13563runpath_var=$runpath_var
13564
13565# Shared library path variable.
13566shlibpath_var=$shlibpath_var
13567
13568# Is shlibpath searched before the hard-coded library search path?
13569shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13570
13571# Format of library name prefix.
13572libname_spec=$lt_libname_spec
13573
13574# List of archive names. First name is the real one, the rest are links.
13575# The last name is the one that the linker finds with -lNAME
13576library_names_spec=$lt_library_names_spec
13577
13578# The coded name of the library, if different from the real name.
13579soname_spec=$lt_soname_spec
13580
43e02a8a
RW
13581# Permission mode override for installation of shared libraries.
13582install_override_mode=$lt_install_override_mode
13583
1cf3d07d
SE
13584# Command to use after installation of a shared archive.
13585postinstall_cmds=$lt_postinstall_cmds
13586
13587# Command to use after uninstallation of a shared archive.
13588postuninstall_cmds=$lt_postuninstall_cmds
13589
13590# Commands used to finish a libtool library installation in a directory.
13591finish_cmds=$lt_finish_cmds
13592
13593# As "finish_cmds", except a single script fragment to be evaled but
13594# not shown.
13595finish_eval=$lt_finish_eval
13596
13597# Whether we should hardcode library paths into libraries.
13598hardcode_into_libs=$hardcode_into_libs
13599
13600# Compile-time system search path for libraries.
13601sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13602
13603# Run-time system search path for libraries.
13604sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13605
13606# Whether dlopen is supported.
13607dlopen_support=$enable_dlopen
13608
13609# Whether dlopen of programs is supported.
13610dlopen_self=$enable_dlopen_self
13611
13612# Whether dlopen of statically linked programs is supported.
13613dlopen_self_static=$enable_dlopen_self_static
13614
13615# Commands to strip libraries.
13616old_striplib=$lt_old_striplib
13617striplib=$lt_striplib
13618
13619
13620# The linker used to build libraries.
13621LD=$lt_LD
13622
43e02a8a
RW
13623# How to create reloadable object files.
13624reload_flag=$lt_reload_flag
13625reload_cmds=$lt_reload_cmds
13626
1cf3d07d
SE
13627# Commands used to build an old-style archive.
13628old_archive_cmds=$lt_old_archive_cmds
13629
13630# A language specific compiler.
13631CC=$lt_compiler
13632
13633# Is the compiler the GNU compiler?
13634with_gcc=$GCC
13635
13636# Compiler flag to turn off builtin functions.
13637no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13638
13639# How to pass a linker flag through the compiler.
13640wl=$lt_lt_prog_compiler_wl
13641
13642# Additional compiler flags for building library objects.
13643pic_flag=$lt_lt_prog_compiler_pic
13644
13645# Compiler flag to prevent dynamic linking.
13646link_static_flag=$lt_lt_prog_compiler_static
13647
13648# Does compiler simultaneously support -c and -o options?
13649compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13650
13651# Whether or not to add -lc for building shared libraries.
13652build_libtool_need_lc=$archive_cmds_need_lc
13653
13654# Whether or not to disallow shared libs when runtime libs are static.
13655allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13656
13657# Compiler flag to allow reflexive dlopens.
13658export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13659
13660# Compiler flag to generate shared objects directly from archives.
13661whole_archive_flag_spec=$lt_whole_archive_flag_spec
13662
13663# Whether the compiler copes with passing no objects directly.
13664compiler_needs_object=$lt_compiler_needs_object
13665
13666# Create an old-style archive from a shared archive.
13667old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13668
13669# Create a temporary old-style archive to link instead of a shared archive.
13670old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13671
13672# Commands used to build a shared archive.
13673archive_cmds=$lt_archive_cmds
13674archive_expsym_cmds=$lt_archive_expsym_cmds
13675
13676# Commands used to build a loadable module if different from building
13677# a shared archive.
13678module_cmds=$lt_module_cmds
13679module_expsym_cmds=$lt_module_expsym_cmds
13680
13681# Whether we are building with GNU ld or not.
13682with_gnu_ld=$lt_with_gnu_ld
13683
13684# Flag that allows shared libraries with undefined symbols to be built.
13685allow_undefined_flag=$lt_allow_undefined_flag
13686
13687# Flag that enforces no undefined symbols.
13688no_undefined_flag=$lt_no_undefined_flag
13689
13690# Flag to hardcode \$libdir into a binary during linking.
13691# This must work even if \$libdir does not exist
13692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13693
13694# If ld is used when linking, flag to hardcode \$libdir into a binary
13695# during linking. This must work even if \$libdir does not exist.
13696hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13697
13698# Whether we need a single "-rpath" flag with a separated argument.
13699hardcode_libdir_separator=$lt_hardcode_libdir_separator
13700
13701# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13702# DIR into the resulting binary.
13703hardcode_direct=$hardcode_direct
13704
13705# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13706# DIR into the resulting binary and the resulting library dependency is
13707# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13708# library is relocated.
13709hardcode_direct_absolute=$hardcode_direct_absolute
13710
13711# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13712# into the resulting binary.
13713hardcode_minus_L=$hardcode_minus_L
13714
13715# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13716# into the resulting binary.
13717hardcode_shlibpath_var=$hardcode_shlibpath_var
13718
13719# Set to "yes" if building a shared library automatically hardcodes DIR
13720# into the library and all subsequent libraries and executables linked
13721# against it.
13722hardcode_automatic=$hardcode_automatic
13723
13724# Set to yes if linker adds runtime paths of dependent libraries
13725# to runtime path list.
13726inherit_rpath=$inherit_rpath
13727
13728# Whether libtool must link a program against all its dependency libraries.
13729link_all_deplibs=$link_all_deplibs
13730
13731# Fix the shell variable \$srcfile for the compiler.
13732fix_srcfile_path=$lt_fix_srcfile_path
13733
13734# Set to "yes" if exported symbols are required.
13735always_export_symbols=$always_export_symbols
13736
13737# The commands to list exported symbols.
13738export_symbols_cmds=$lt_export_symbols_cmds
13739
13740# Symbols that should not be listed in the preloaded symbols.
13741exclude_expsyms=$lt_exclude_expsyms
13742
13743# Symbols that must always be exported.
13744include_expsyms=$lt_include_expsyms
13745
13746# Commands necessary for linking programs (against libraries) with templates.
13747prelink_cmds=$lt_prelink_cmds
13748
13749# Specify filename containing input files.
13750file_list_spec=$lt_file_list_spec
13751
13752# How to hardcode a shared library path into an executable.
13753hardcode_action=$hardcode_action
13754
13755# ### END LIBTOOL CONFIG
13756
13757_LT_EOF
13758
13759 case $host_os in
13760 aix3*)
13761 cat <<\_LT_EOF >> "$cfgfile"
13762# AIX sometimes has problems with the GCC collect2 program. For some
13763# reason, if we set the COLLECT_NAMES environment variable, the problems
13764# vanish in a puff of smoke.
13765if test "X${COLLECT_NAMES+set}" != Xset; then
13766 COLLECT_NAMES=
13767 export COLLECT_NAMES
13768fi
13769_LT_EOF
13770 ;;
13771 esac
13772
13773
13774ltmain="$ac_aux_dir/ltmain.sh"
13775
13776
13777 # We use sed instead of cat because bash on DJGPP gets confused if
13778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13779 # text mode, it properly converts lines to CR/LF. This bash problem
13780 # is reportedly fixed, but why not run on old versions too?
13781 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13782 || (rm -f "$cfgfile"; exit 1)
13783
13784 case $xsi_shell in
13785 yes)
13786 cat << \_LT_EOF >> "$cfgfile"
467b2e9e 13787
1cf3d07d
SE
13788# func_dirname file append nondir_replacement
13789# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13790# otherwise set result to NONDIR_REPLACEMENT.
13791func_dirname ()
13792{
13793 case ${1} in
13794 */*) func_dirname_result="${1%/*}${2}" ;;
13795 * ) func_dirname_result="${3}" ;;
13796 esac
13797}
13798
13799# func_basename file
13800func_basename ()
13801{
13802 func_basename_result="${1##*/}"
13803}
13804
467b2e9e
PG
13805# func_dirname_and_basename file append nondir_replacement
13806# perform func_basename and func_dirname in a single function
13807# call:
13808# dirname: Compute the dirname of FILE. If nonempty,
13809# add APPEND to the result, otherwise set result
13810# to NONDIR_REPLACEMENT.
13811# value returned in "$func_dirname_result"
13812# basename: Compute filename of FILE.
13813# value retuned in "$func_basename_result"
13814# Implementation must be kept synchronized with func_dirname
13815# and func_basename. For efficiency, we do not delegate to
13816# those functions but instead duplicate the functionality here.
13817func_dirname_and_basename ()
13818{
13819 case ${1} in
13820 */*) func_dirname_result="${1%/*}${2}" ;;
13821 * ) func_dirname_result="${3}" ;;
13822 esac
13823 func_basename_result="${1##*/}"
13824}
13825
1cf3d07d
SE
13826# func_stripname prefix suffix name
13827# strip PREFIX and SUFFIX off of NAME.
13828# PREFIX and SUFFIX must not contain globbing or regex special
13829# characters, hashes, percent signs, but SUFFIX may contain a leading
13830# dot (in which case that matches only a dot).
13831func_stripname ()
13832{
13833 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13834 # positional parameters, so assign one to ordinary parameter first.
13835 func_stripname_result=${3}
13836 func_stripname_result=${func_stripname_result#"${1}"}
13837 func_stripname_result=${func_stripname_result%"${2}"}
13838}
13839
13840# func_opt_split
13841func_opt_split ()
13842{
13843 func_opt_split_opt=${1%%=*}
13844 func_opt_split_arg=${1#*=}
13845}
13846
13847# func_lo2o object
13848func_lo2o ()
13849{
13850 case ${1} in
13851 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13852 *) func_lo2o_result=${1} ;;
13853 esac
13854}
467b2e9e
PG
13855
13856# func_xform libobj-or-source
13857func_xform ()
13858{
13859 func_xform_result=${1%.*}.lo
13860}
13861
13862# func_arith arithmetic-term...
13863func_arith ()
13864{
13865 func_arith_result=$(( $* ))
13866}
13867
13868# func_len string
13869# STRING may not start with a hyphen.
13870func_len ()
13871{
13872 func_len_result=${#1}
13873}
13874
1cf3d07d
SE
13875_LT_EOF
13876 ;;
13877 *) # Bourne compatible functions.
13878 cat << \_LT_EOF >> "$cfgfile"
467b2e9e 13879
1cf3d07d
SE
13880# func_dirname file append nondir_replacement
13881# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13882# otherwise set result to NONDIR_REPLACEMENT.
13883func_dirname ()
13884{
13885 # Extract subdirectory from the argument.
43e02a8a 13886 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
13887 if test "X$func_dirname_result" = "X${1}"; then
13888 func_dirname_result="${3}"
13889 else
13890 func_dirname_result="$func_dirname_result${2}"
13891 fi
13892}
13893
13894# func_basename file
13895func_basename ()
13896{
43e02a8a 13897 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
13898}
13899
467b2e9e 13900
1cf3d07d
SE
13901# func_stripname prefix suffix name
13902# strip PREFIX and SUFFIX off of NAME.
13903# PREFIX and SUFFIX must not contain globbing or regex special
13904# characters, hashes, percent signs, but SUFFIX may contain a leading
13905# dot (in which case that matches only a dot).
13906# func_strip_suffix prefix name
13907func_stripname ()
13908{
13909 case ${2} in
43e02a8a
RW
13910 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13911 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
13912 esac
13913}
13914
13915# sed scripts:
13916my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13917my_sed_long_arg='1s/^-[^=]*=//'
13918
13919# func_opt_split
13920func_opt_split ()
13921{
43e02a8a
RW
13922 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13923 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
13924}
13925
13926# func_lo2o object
13927func_lo2o ()
13928{
43e02a8a 13929 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 13930}
467b2e9e
PG
13931
13932# func_xform libobj-or-source
13933func_xform ()
13934{
43e02a8a 13935 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
467b2e9e
PG
13936}
13937
13938# func_arith arithmetic-term...
13939func_arith ()
13940{
13941 func_arith_result=`expr "$@"`
13942}
13943
13944# func_len string
13945# STRING may not start with a hyphen.
13946func_len ()
13947{
13948 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13949}
13950
1cf3d07d
SE
13951_LT_EOF
13952esac
13953
13954case $lt_shell_append in
13955 yes)
13956 cat << \_LT_EOF >> "$cfgfile"
13957
13958# func_append var value
13959# Append VALUE to the end of shell variable VAR.
13960func_append ()
13961{
13962 eval "$1+=\$2"
13963}
13964_LT_EOF
13965 ;;
13966 *)
13967 cat << \_LT_EOF >> "$cfgfile"
13968
13969# func_append var value
13970# Append VALUE to the end of shell variable VAR.
13971func_append ()
13972{
13973 eval "$1=\$$1\$2"
13974}
467b2e9e 13975
1cf3d07d
SE
13976_LT_EOF
13977 ;;
13978 esac
13979
13980
13981 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13982 || (rm -f "$cfgfile"; exit 1)
13983
13984 mv -f "$cfgfile" "$ofile" ||
13985 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13986 chmod +x "$ofile"
13987
13988 ;;
5213506e 13989
88386050 13990 esac
5213506e 13991done # for ac_tag
88386050 13992
88386050 13993
5213506e 13994as_fn_exit 0
88386050 13995_ACEOF
88386050
NN
13996ac_clean_files=$ac_clean_files_save
13997
5213506e
RW
13998test $ac_write_fail = 0 ||
13999 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14000
88386050
NN
14001
14002# configure is writing to config.log, and then calls config.status.
14003# config.status does its own redirection, appending to config.log.
14004# Unfortunately, on DOS this fails, as config.log is still kept open
14005# by configure, so config.status won't be able to write to it; its
14006# output is simply discarded. So we exec the FD to /dev/null,
14007# effectively closing config.log, so it can be properly (re)opened and
14008# appended to by config.status. When coming back to configure, we
14009# need to make the FD available again.
14010if test "$no_create" != yes; then
14011 ac_cs_success=:
14012 ac_config_status_args=
14013 test "$silent" = yes &&
14014 ac_config_status_args="$ac_config_status_args --quiet"
14015 exec 5>/dev/null
14016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14017 exec 5>>config.log
14018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14019 # would make configure fail if this is the last instruction.
5213506e
RW
14020 $ac_cs_success || as_fn_exit $?
14021fi
14022if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14024$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
88386050 14025fi
bce1b489 14026