]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
x86: Default CET run-time support to auto
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13 1#! /bin/sh
dfac8a13 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for zlib 1.1.4.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
c45f211e 8#
dfac8a13
TT
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## -------------------- ##
a8aea176 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 :
a8aea176
NN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a8aea176
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
a8aea176 31fi
a8aea176 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 }
a8aea176
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.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
a8aea176
NN
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
43e02a8a
RW
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
5213506e
RW
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
a8aea176 219do
5213506e
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
5213506e
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
a8aea176 274 else
5213506e
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
a8aea176 279 fi
5213506e
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
5213506e
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
a8aea176 409
5213506e 410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
5213506e
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
5213506e
RW
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
5213506e
RW
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a8aea176
NN
429 as_expr=expr
430else
431 as_expr=false
432fi
433
5213506e 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
a8aea176
NN
435 as_basename=basename
436else
437 as_basename=false
438fi
439
5213506e
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
a8aea176 445
5213506e 446as_me=`$as_basename -- "$0" ||
a8aea176
NN
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
5213506e
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
a8aea176 464
a8aea176
NN
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
a8aea176 472
5213506e
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
a8aea176 482 sed '
5213506e
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
a8aea176 487 N
5213506e
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a8aea176 490 t loop
5213506e 491 s/-\n.*//
a8aea176 492 ' >$as_me.lineno &&
5213506e
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a8aea176 495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
a8aea176
NN
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
a8aea176
NN
504 # Exit status is that of the last command.
505 exit
506}
dfac8a13 507
5213506e
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
a8aea176
NN
519esac
520
5213506e
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
a8aea176 524else
5213506e
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
a8aea176 527fi
5213506e
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
a8aea176 530 as_ln_s='ln -s'
5213506e
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
5213506e 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
5213506e
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
a8aea176 541 fi
a8aea176 542else
22e05272 543 as_ln_s='cp -pR'
a8aea176 544fi
5213506e
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
a8aea176
NN
547
548if mkdir -p . 2>/dev/null; then
5213506e 549 as_mkdir_p='mkdir -p "$as_dir"'
a8aea176
NN
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
a8aea176
NN
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
1cf3d07d
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
1cf3d07d 566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
5213506e 569
a8aea176 570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
a8aea176
NN
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
a8aea176
NN
575#
576# Initializations.
577#
dfac8a13 578ac_default_prefix=/usr/local
5213506e 579ac_clean_files=
a8aea176 580ac_config_libobj_dir=.
5213506e 581LIBOBJS=
a8aea176
NN
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
a8aea176
NN
586
587# Identity of this package.
22e05272
JM
588PACKAGE_NAME='zlib'
589PACKAGE_TARNAME='zlib'
590PACKAGE_VERSION='1.1.4'
591PACKAGE_STRING='zlib 1.1.4'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
a8aea176
NN
594
595ac_unique_file="zlib.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
5213506e 599#ifdef HAVE_SYS_TYPES_H
a8aea176
NN
600# include <sys/types.h>
601#endif
5213506e 602#ifdef HAVE_SYS_STAT_H
a8aea176
NN
603# include <sys/stat.h>
604#endif
5213506e 605#ifdef STDC_HEADERS
a8aea176
NN
606# include <stdlib.h>
607# include <stddef.h>
608#else
5213506e 609# ifdef HAVE_STDLIB_H
a8aea176
NN
610# include <stdlib.h>
611# endif
612#endif
5213506e
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a8aea176
NN
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
5213506e 619#ifdef HAVE_STRINGS_H
a8aea176
NN
620# include <strings.h>
621#endif
5213506e 622#ifdef HAVE_INTTYPES_H
a8aea176 623# include <inttypes.h>
a8aea176 624#endif
5213506e
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
a8aea176
NN
629# include <unistd.h>
630#endif"
631
22e05272 632ac_header_list=
5213506e
RW
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
459260ec 637PICFLAG
5213506e
RW
638TARGET_LIBRARY_FALSE
639TARGET_LIBRARY_TRUE
640toolexeclibdir
641toolexecdir
5213506e
RW
642CPP
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
5213506e
RW
648RANLIB
649AR
650OBJDUMP
651LN_S
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657EGREP
658GREP
659SED
660LIBTOOL
c0827870 661CET_FLAGS
5213506e
RW
662am__fastdepCC_FALSE
663am__fastdepCC_TRUE
664CCDEPMODE
39ba2a0e 665am__nodep
5213506e
RW
666AMDEPBACKSLASH
667AMDEP_FALSE
668AMDEP_TRUE
669am__quote
670am__include
671DEPDIR
672OBJEXT
673EXEEXT
674ac_ct_CC
675CPPFLAGS
676LDFLAGS
677CFLAGS
678CC
679COMPPATH
680MAINT
681MAINTAINER_MODE_FALSE
682MAINTAINER_MODE_TRUE
22e05272
JM
683AM_BACKSLASH
684AM_DEFAULT_VERBOSITY
685AM_DEFAULT_V
686AM_V
5213506e
RW
687am__untar
688am__tar
689AMTAR
690am__leading_dot
691SET_MAKE
692AWK
693mkdir_p
694MKDIR_P
695INSTALL_STRIP_PROGRAM
696STRIP
697install_sh
698MAKEINFO
699AUTOHEADER
700AUTOMAKE
701AUTOCONF
702ACLOCAL
703VERSION
704PACKAGE
705CYGPATH_W
706am__isrc
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710mkinstalldirs
711target_os
712target_vendor
713target_cpu
714target
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723multi_basedir
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
a8aea176 762ac_subst_files=''
5213506e
RW
763ac_user_opts='
764enable_option_checking
765enable_multilib
22e05272 766enable_silent_rules
5213506e
RW
767enable_maintainer_mode
768with_target_subdir
769with_cross_host
770with_system_zlib
771enable_dependency_tracking
c0827870 772enable_cet
5213506e
RW
773enable_shared
774enable_static
775with_pic
776enable_fast_install
777with_gnu_ld
778enable_libtool_lock
e8e66971 779with_toolexeclibdir
459260ec 780enable_host_shared
5213506e
RW
781'
782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CPP
786CPPFLAGS'
787
dfac8a13
TT
788
789# Initialize some variables set by options.
a8aea176
NN
790ac_init_help=
791ac_init_version=false
5213506e
RW
792ac_unrecognized_opts=
793ac_unrecognized_sep=
dfac8a13
TT
794# The variables have the same names as the options, with
795# dashes changed to underlines.
a8aea176 796cache_file=/dev/null
dfac8a13 797exec_prefix=NONE
dfac8a13 798no_create=
dfac8a13
TT
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
dfac8a13
TT
807verbose=
808x_includes=NONE
809x_libraries=NONE
a8aea176
NN
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 816# (The list follows the same order as the GNU Coding Standards.)
dfac8a13
TT
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
5213506e
RW
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
dfac8a13
TT
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
dfac8a13
TT
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
22e05272 827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
5213506e
RW
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
dfac8a13 836
dfac8a13 837ac_prev=
5213506e 838ac_dashdash=
dfac8a13
TT
839for ac_option
840do
dfac8a13
TT
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
5213506e 843 eval $ac_prev=\$ac_option
dfac8a13
TT
844 ac_prev=
845 continue
846 fi
847
5213506e 848 case $ac_option in
22e05272
JM
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
5213506e 852 esac
dfac8a13
TT
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
5213506e
RW
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
dfac8a13
TT
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a8aea176 863 bindir=$ac_optarg ;;
dfac8a13
TT
864
865 -build | --build | --buil | --bui | --bu)
a8aea176 866 ac_prev=build_alias ;;
dfac8a13 867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a8aea176 868 build_alias=$ac_optarg ;;
dfac8a13
TT
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a8aea176
NN
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
dfac8a13 879
5213506e 880 -datadir | --datadir | --datadi | --datad)
dfac8a13 881 ac_prev=datadir ;;
5213506e 882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
a8aea176 883 datadir=$ac_optarg ;;
dfac8a13 884
5213506e
RW
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
dfac8a13 892 -disable-* | --disable-*)
5213506e 893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
dfac8a13 894 # Reject names that are not valid shell variable names.
5213506e 895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 896 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901"enable_$ac_useropt"
902"*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
dfac8a13
TT
917
918 -enable-* | --enable-*)
5213506e 919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
dfac8a13 920 # Reject names that are not valid shell variable names.
5213506e 921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 922 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
dfac8a13 931 esac
5213506e 932 eval enable_$ac_useropt=\$ac_optarg ;;
dfac8a13
TT
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
a8aea176 941 exec_prefix=$ac_optarg ;;
dfac8a13
TT
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
a8aea176
NN
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
dfac8a13
TT
953
954 -host | --host | --hos | --ho)
a8aea176 955 ac_prev=host_alias ;;
dfac8a13 956 -host=* | --host=* | --hos=* | --ho=*)
a8aea176 957 host_alias=$ac_optarg ;;
dfac8a13 958
5213506e
RW
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
dfac8a13
TT
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
a8aea176 970 includedir=$ac_optarg ;;
dfac8a13
TT
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a8aea176 975 infodir=$ac_optarg ;;
dfac8a13
TT
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a8aea176 980 libdir=$ac_optarg ;;
dfac8a13
TT
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
a8aea176 987 libexecdir=$ac_optarg ;;
dfac8a13 988
5213506e
RW
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
dfac8a13 994 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 995 | --localstate | --localstat | --localsta | --localst | --locals)
dfac8a13
TT
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
a8aea176 999 localstatedir=$ac_optarg ;;
dfac8a13
TT
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a8aea176 1004 mandir=$ac_optarg ;;
dfac8a13
TT
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a8aea176 1011 | --no-cr | --no-c | -n)
dfac8a13
TT
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a8aea176 1025 oldincludedir=$ac_optarg ;;
dfac8a13
TT
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a8aea176 1030 prefix=$ac_optarg ;;
dfac8a13
TT
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a8aea176 1037 program_prefix=$ac_optarg ;;
dfac8a13
TT
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a8aea176 1044 program_suffix=$ac_optarg ;;
dfac8a13
TT
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
a8aea176 1061 program_transform_name=$ac_optarg ;;
dfac8a13 1062
5213506e
RW
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
dfac8a13
TT
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
a8aea176 1081 sbindir=$ac_optarg ;;
dfac8a13
TT
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
a8aea176 1092 sharedstatedir=$ac_optarg ;;
dfac8a13
TT
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
a8aea176 1097 site=$ac_optarg ;;
dfac8a13
TT
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a8aea176 1102 srcdir=$ac_optarg ;;
dfac8a13
TT
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a8aea176 1109 sysconfdir=$ac_optarg ;;
dfac8a13
TT
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
a8aea176 1112 ac_prev=target_alias ;;
dfac8a13 1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a8aea176 1114 target_alias=$ac_optarg ;;
dfac8a13
TT
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
a8aea176
NN
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
dfac8a13
TT
1121
1122 -with-* | --with-*)
5213506e 1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
dfac8a13 1124 # Reject names that are not valid shell variable names.
5213506e 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1126 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
dfac8a13 1135 esac
5213506e 1136 eval with_$ac_useropt=\$ac_optarg ;;
dfac8a13
TT
1137
1138 -without-* | --without-*)
5213506e 1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
dfac8a13 1140 # Reject names that are not valid shell variable names.
5213506e 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1142 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"with_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
dfac8a13
TT
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a8aea176 1163 x_includes=$ac_optarg ;;
dfac8a13
TT
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a8aea176 1170 x_libraries=$ac_optarg ;;
dfac8a13 1171
22e05272
JM
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
dfac8a13
TT
1174 ;;
1175
a8aea176
NN
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
5213506e
RW
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1182 esac
1183 eval $ac_envvar=\$ac_optarg
a8aea176
NN
1184 export $ac_envvar ;;
1185
dfac8a13 1186 *)
a8aea176 1187 # FIXME: should be removed in autoconf 3.0.
5213506e 1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
a8aea176 1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
dfac8a13
TT
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
a8aea176 1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1199 as_fn_error $? "missing argument to $ac_option"
dfac8a13 1200fi
dfac8a13 1201
5213506e
RW
1202if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
22e05272 1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
a8aea176 1207 esac
5213506e 1208fi
dfac8a13 1209
5213506e
RW
1210# Check all directory arguments for consistency.
1211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
c45f211e 1215do
5213506e
RW
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
a8aea176 1224 case $ac_val in
5213506e
RW
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
dfac8a13 1227 esac
22e05272 1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
dfac8a13
TT
1229done
1230
a8aea176
NN
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
a8aea176
NN
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
dfac8a13 1246
a8aea176
NN
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
dfac8a13 1251
dfac8a13 1252
5213506e
RW
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1256 as_fn_error $? "working directory cannot be determined"
5213506e 1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1258 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1259
1260
dfac8a13
TT
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
5213506e
RW
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
dfac8a13 1288 srcdir=$ac_confdir
5213506e 1289 if test ! -r "$srcdir/$ac_unique_file"; then
dfac8a13
TT
1290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
5213506e
RW
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
22e05272 1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1302 pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
a8aea176
NN
1319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
22e05272 1327\`configure' configures zlib 1.1.4 to adapt to many kinds of systems.
a8aea176
NN
1328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
22e05272 1341 -q, --quiet, --silent do not print \`checking ...' messages
a8aea176
NN
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
a8aea176
NN
1347Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1349 [$ac_default_prefix]
a8aea176 1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1351 [PREFIX]
a8aea176
NN
1352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
5213506e
RW
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
22e05272 1375 --docdir=DIR documentation root [DATAROOTDIR/doc/zlib]
5213506e
RW
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
a8aea176
NN
1380_ACEOF
1381
1382 cat <<\_ACEOF
1383
1384Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
22e05272
JM
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of zlib 1.1.4:";;
1399 esac
a8aea176
NN
1400 cat <<\_ACEOF
1401
1402Optional Features:
5213506e 1403 --disable-option-checking ignore unrecognized --enable/--with options
a8aea176
NN
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a8aea176 1406 --enable-multilib build many library versions (default)
22e05272
JM
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-maintainer-mode
1410 enable make rules and dependencies not useful (and
1411 sometimes confusing) to the casual installer
1412 --enable-dependency-tracking
1413 do not reject slow dependency extractors
1414 --disable-dependency-tracking
1415 speeds up one-time build
8d286dd1 1416 --enable-cet enable Intel CET in target libraries [default=auto]
5213506e
RW
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
a8aea176 1421 --disable-libtool-lock avoid locking (might break parallel builds)
459260ec 1422 --enable-host-shared build host code as shared libraries
a8aea176
NN
1423
1424Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-target-subdir=SUBDIR
1428 configuring in a subdirectory
1429 --with-cross-host=HOST configuring with a cross compiler
1430 --with-system-zlib use installed libz
1cf3d07d
SE
1431 --with-pic try to use only PIC/non-PIC objects [default=use
1432 both]
1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
e8e66971
MR
1434 --with-toolexeclibdir=DIR
1435 install libraries built with a cross compiler within
1436 DIR
a8aea176
NN
1437
1438Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
5213506e 1443 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1445 you have headers in a nonstandard directory <include dir>
a8aea176
NN
1446 CPP C preprocessor
1447
1448Use these variables to override the choices made by `configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
1450
5213506e 1451Report bugs to the package provider.
a8aea176 1452_ACEOF
5213506e 1453ac_status=$?
a8aea176
NN
1454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
a8aea176 1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
a8aea176
NN
1462 ac_builddir=.
1463
5213506e
RW
1464case "$ac_dir" in
1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466*)
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474esac
1475ac_abs_top_builddir=$ac_pwd
1476ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477# for backward compatibility:
1478ac_top_builddir=$ac_top_build_prefix
a8aea176
NN
1479
1480case $srcdir in
5213506e 1481 .) # We are building in place.
a8aea176 1482 ac_srcdir=.
5213506e
RW
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
a8aea176 1486 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a8aea176 1493esac
5213506e
RW
1494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
a8aea176 1504 else
5213506e
RW
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
a8aea176
NN
1508 done
1509fi
1510
5213506e 1511test -n "$ac_init_help" && exit $ac_status
a8aea176
NN
1512if $ac_init_version; then
1513 cat <<\_ACEOF
22e05272
JM
1514zlib configure 1.1.4
1515generated by GNU Autoconf 2.69
a8aea176 1516
22e05272 1517Copyright (C) 2012 Free Software Foundation, Inc.
a8aea176
NN
1518This configure script is free software; the Free Software Foundation
1519gives unlimited permission to copy, distribute and modify it.
1520_ACEOF
5213506e 1521 exit
a8aea176 1522fi
a8aea176 1523
5213506e
RW
1524## ------------------------ ##
1525## Autoconf initialization. ##
1526## ------------------------ ##
a8aea176 1527
5213506e
RW
1528# ac_fn_c_try_compile LINENO
1529# --------------------------
1530# Try to compile conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_c_try_compile ()
a8aea176 1532{
5213506e
RW
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539esac
1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541$as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555else
1556 $as_echo "$as_me: failed program was:" >&5
1557sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 1558
5213506e
RW
1559 ac_retval=1
1560fi
22e05272
JM
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
a8aea176 1563
5213506e 1564} # ac_fn_c_try_compile
a8aea176 1565
5213506e
RW
1566# ac_fn_c_try_link LINENO
1567# -----------------------
1568# Try to link conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_link ()
1570{
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1574case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
22e05272 1593 test -x conftest$ac_exeext
5213506e
RW
1594 }; then :
1595 ac_retval=0
1596else
1597 $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 1599
5213506e
RW
1600 ac_retval=1
1601fi
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
a8aea176 1609
5213506e
RW
1610} # ac_fn_c_try_link
1611
1612# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613# -------------------------------------------------------
1614# Tests whether HEADER exists and can be compiled using the include files in
1615# INCLUDES, setting the cache variable VAR accordingly.
1616ac_fn_c_check_header_compile ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620$as_echo_n "checking for $2... " >&6; }
22e05272 1621if eval \${$3+:} false; then :
5213506e
RW
1622 $as_echo_n "(cached) " >&6
1623else
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625/* end confdefs.h. */
1626$4
1627#include <$2>
1628_ACEOF
1629if ac_fn_c_try_compile "$LINENO"; then :
1630 eval "$3=yes"
1631else
1632 eval "$3=no"
1633fi
1634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635fi
1636eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638$as_echo "$ac_res" >&6; }
22e05272 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1640
1641} # ac_fn_c_check_header_compile
1642
1643# ac_fn_c_try_cpp LINENO
1644# ----------------------
1645# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_cpp ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650case "(($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_cpp conftest.$ac_ext") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1664 test $ac_status = 0; } > conftest.i && {
5213506e
RW
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 }; then :
1668 ac_retval=0
1669else
1670 $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674fi
22e05272
JM
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
5213506e
RW
1677
1678} # ac_fn_c_try_cpp
1679
1680# ac_fn_c_try_run LINENO
1681# ----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683# that executables *can* be run.
1684ac_fn_c_try_run ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=$ac_status
1715fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
5213506e
RW
1719
1720} # ac_fn_c_try_run
1721
1722# ac_fn_c_check_func LINENO FUNC VAR
1723# ----------------------------------
1724# Tests whether FUNC exists, setting the cache variable VAR accordingly
1725ac_fn_c_check_func ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729$as_echo_n "checking for $2... " >&6; }
22e05272 1730if eval \${$3+:} false; then :
5213506e
RW
1731 $as_echo_n "(cached) " >&6
1732else
1733 if test x$gcc_no_link = xyes; then
22e05272 1734 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
1735fi
1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740#define $2 innocuous_$2
1741
1742/* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below.
1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745 <limits.h> exists even on freestanding compilers. */
1746
1747#ifdef __STDC__
1748# include <limits.h>
1749#else
1750# include <assert.h>
1751#endif
1752
1753#undef $2
1754
1755/* Override any GCC internal prototype to avoid an error.
1756 Use char because int might match the return type of a GCC
1757 builtin and then its argument prototype would still apply. */
1758#ifdef __cplusplus
1759extern "C"
1760#endif
1761char $2 ();
1762/* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765#if defined __stub_$2 || defined __stub___$2
1766choke me
1767#endif
1768
1769int
1770main ()
1771{
1772return $2 ();
1773 ;
1774 return 0;
1775}
1776_ACEOF
1777if ac_fn_c_try_link "$LINENO"; then :
1778 eval "$3=yes"
1779else
1780 eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext \
1783 conftest$ac_exeext conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
22e05272 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1789
1790} # ac_fn_c_check_func
1791
1792# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795# the include files in INCLUDES and setting the cache variable VAR
1796# accordingly.
1797ac_fn_c_check_header_mongrel ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1800 if eval \${$3+:} false; then :
5213506e
RW
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
22e05272 1803if eval \${$3+:} false; then :
5213506e
RW
1804 $as_echo_n "(cached) " >&6
1805fi
1806eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809else
1810 # Is the header compilable?
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812$as_echo_n "checking $2 usability... " >&6; }
1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815$4
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1820else
1821 ac_header_compiler=no
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825$as_echo "$ac_header_compiler" >&6; }
1826
1827# Is the header present?
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829$as_echo_n "checking $2 presence... " >&6; }
1830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h. */
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1836else
1837 ac_header_preproc=no
1838fi
22e05272 1839rm -f conftest.err conftest.i conftest.$ac_ext
5213506e
RW
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841$as_echo "$ac_header_preproc" >&6; }
1842
1843# So? What about this header?
1844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845 yes:no: )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 ;;
1851 no:yes:* )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ;;
1863esac
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
22e05272 1866if eval \${$3+:} false; then :
5213506e
RW
1867 $as_echo_n "(cached) " >&6
1868else
1869 eval "$3=\$ac_header_compiler"
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874fi
22e05272 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1876
1877} # ac_fn_c_check_header_mongrel
1878cat >config.log <<_ACEOF
1879This file contains any messages produced by compilers while
1880running configure, to aid debugging if configure makes a mistake.
1881
22e05272
JM
1882It was created by zlib $as_me 1.1.4, which was
1883generated by GNU Autoconf 2.69. Invocation command line was
5213506e
RW
1884
1885 $ $0 $@
1886
1887_ACEOF
1888exec 5>>config.log
1889{
1890cat <<_ASUNAME
1891## --------- ##
1892## Platform. ##
1893## --------- ##
1894
1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903
1904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911
1912_ASUNAME
1913
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917 IFS=$as_save_IFS
a8aea176 1918 test -z "$as_dir" && as_dir=.
5213506e
RW
1919 $as_echo "PATH: $as_dir"
1920 done
1921IFS=$as_save_IFS
a8aea176
NN
1922
1923} >&5
1924
1925cat >&5 <<_ACEOF
1926
1927
1928## ----------- ##
1929## Core tests. ##
1930## ----------- ##
1931
1932_ACEOF
1933
1934
1935# Keep a trace of the command line.
1936# Strip out --no-create and --no-recursion so they do not pile up.
1937# Strip out --silent because we don't want to record it for future runs.
1938# Also quote any args containing shell meta-characters.
1939# Make two passes to allow for proper duplicate-argument suppression.
1940ac_configure_args=
1941ac_configure_args0=
1942ac_configure_args1=
a8aea176
NN
1943ac_must_keep_next=false
1944for ac_pass in 1 2
1945do
1946 for ac_arg
1947 do
1948 case $ac_arg in
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1952 continue ;;
5213506e
RW
1953 *\'*)
1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a8aea176
NN
1955 esac
1956 case $ac_pass in
5213506e 1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a8aea176 1958 2)
5213506e 1959 as_fn_append ac_configure_args1 " '$ac_arg'"
a8aea176
NN
1960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1962 else
1963 case $ac_arg in
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 esac
1971 ;;
1972 -* ) ac_must_keep_next=true ;;
1973 esac
1974 fi
5213506e 1975 as_fn_append ac_configure_args " '$ac_arg'"
a8aea176
NN
1976 ;;
1977 esac
1978 done
1979done
5213506e
RW
1980{ ac_configure_args0=; unset ac_configure_args0;}
1981{ ac_configure_args1=; unset ac_configure_args1;}
a8aea176
NN
1982
1983# When interrupted or exit'd, cleanup temporary files, and complete
1984# config.log. We remove comments because anyway the quotes in there
1985# would cause problems or look ugly.
5213506e
RW
1986# WARNING: Use '\'' to represent an apostrophe within the trap.
1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
a8aea176
NN
1988trap 'exit_status=$?
1989 # Save into config.log some information that might help in debugging.
1990 {
1991 echo
1992
22e05272 1993 $as_echo "## ---------------- ##
a8aea176 1994## Cache variables. ##
22e05272 1995## ---------------- ##"
a8aea176
NN
1996 echo
1997 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1998(
1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in #(
2002 *${as_nl}*)
2003 case $ac_var in #(
2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 esac
2007 case $ac_var in #(
2008 _ | IFS | as_nl) ;; #(
2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010 *) { eval $ac_var=; unset $ac_var;} ;;
2011 esac ;;
2012 esac
2013 done
a8aea176 2014 (set) 2>&1 |
5213506e
RW
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
a8aea176 2017 sed -n \
5213506e
RW
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 ;; #(
a8aea176 2021 *)
5213506e 2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a8aea176 2023 ;;
5213506e
RW
2024 esac |
2025 sort
2026)
a8aea176
NN
2027 echo
2028
22e05272 2029 $as_echo "## ----------------- ##
a8aea176 2030## Output variables. ##
22e05272 2031## ----------------- ##"
a8aea176
NN
2032 echo
2033 for ac_var in $ac_subst_vars
2034 do
5213506e
RW
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
a8aea176
NN
2040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
22e05272 2044 $as_echo "## ------------------- ##
5213506e 2045## File substitutions. ##
22e05272 2046## ------------------- ##"
a8aea176
NN
2047 echo
2048 for ac_var in $ac_subst_files
2049 do
5213506e
RW
2050 eval ac_val=\$$ac_var
2051 case $ac_val in
2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 esac
2054 $as_echo "$ac_var='\''$ac_val'\''"
a8aea176
NN
2055 done | sort
2056 echo
2057 fi
2058
2059 if test -s confdefs.h; then
22e05272 2060 $as_echo "## ----------- ##
a8aea176 2061## confdefs.h. ##
22e05272 2062## ----------- ##"
a8aea176 2063 echo
5213506e 2064 cat confdefs.h
a8aea176
NN
2065 echo
2066 fi
2067 test "$ac_signal" != 0 &&
5213506e
RW
2068 $as_echo "$as_me: caught signal $ac_signal"
2069 $as_echo "$as_me: exit $exit_status"
a8aea176 2070 } >&5
5213506e
RW
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
a8aea176 2073 exit $exit_status
5213506e 2074' 0
a8aea176 2075for ac_signal in 1 2 13 15; do
5213506e 2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
a8aea176
NN
2077done
2078ac_signal=0
dfac8a13 2079
a8aea176 2080# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2081rm -f -r conftest* confdefs.h
2082
2083$as_echo "/* confdefs.h */" > confdefs.h
a8aea176
NN
2084
2085# Predefined preprocessor variables.
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_NAME "$PACKAGE_NAME"
2089_ACEOF
2090
a8aea176
NN
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093_ACEOF
2094
a8aea176
NN
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_VERSION "$PACKAGE_VERSION"
2097_ACEOF
2098
a8aea176
NN
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_STRING "$PACKAGE_STRING"
2101_ACEOF
2102
a8aea176
NN
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105_ACEOF
2106
5213506e
RW
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_URL "$PACKAGE_URL"
2109_ACEOF
2110
a8aea176
NN
2111
2112# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2113# Prefer an explicitly selected file to automatically selected ones.
2114ac_site_file1=NONE
2115ac_site_file2=NONE
2116if test -n "$CONFIG_SITE"; then
22e05272
JM
2117 # We do not want a PATH search for config.site.
2118 case $CONFIG_SITE in #((
2119 -*) ac_site_file1=./$CONFIG_SITE;;
2120 */*) ac_site_file1=$CONFIG_SITE;;
2121 *) ac_site_file1=./$CONFIG_SITE;;
2122 esac
5213506e
RW
2123elif test "x$prefix" != xNONE; then
2124 ac_site_file1=$prefix/share/config.site
2125 ac_site_file2=$prefix/etc/config.site
2126else
2127 ac_site_file1=$ac_default_prefix/share/config.site
2128 ac_site_file2=$ac_default_prefix/etc/config.site
2129fi
2130for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131do
2132 test "x$ac_site_file" = xNONE && continue
22e05272 2133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2135$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a8aea176 2136 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2137 . "$ac_site_file" \
2138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140as_fn_error $? "failed to load site script $ac_site_file
2141See \`config.log' for more details" "$LINENO" 5; }
dfac8a13
TT
2142 fi
2143done
2144
2145if test -r "$cache_file"; then
22e05272
JM
2146 # Some versions of bash will fail to source /dev/null (special files
2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150$as_echo "$as_me: loading cache $cache_file" >&6;}
a8aea176 2151 case $cache_file in
5213506e
RW
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
a8aea176
NN
2154 esac
2155 fi
dfac8a13 2156else
5213506e
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158$as_echo "$as_me: creating cache $cache_file" >&6;}
a8aea176
NN
2159 >$cache_file
2160fi
2161
22e05272
JM
2162as_fn_append ac_header_list " stdlib.h"
2163as_fn_append ac_header_list " unistd.h"
2164as_fn_append ac_header_list " sys/param.h"
a8aea176
NN
2165# Check that the precious variables saved in the cache have kept the same
2166# value.
2167ac_cache_corrupted=false
5213506e 2168for ac_var in $ac_precious_vars; do
a8aea176
NN
2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172 eval ac_new_val=\$ac_env_${ac_var}_value
a8aea176
NN
2173 case $ac_old_set,$ac_new_set in
2174 set,)
5213506e
RW
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
a8aea176
NN
2177 ac_cache_corrupted=: ;;
2178 ,set)
5213506e
RW
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
a8aea176
NN
2181 ac_cache_corrupted=: ;;
2182 ,);;
2183 *)
2184 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2185 # differences in whitespace do not lead to failure.
2186 ac_old_val_w=`echo x $ac_old_val`
2187 ac_new_val_w=`echo x $ac_new_val`
2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191 ac_cache_corrupted=:
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195 eval $ac_var=\$ac_old_val
2196 fi
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
a8aea176
NN
2201 fi;;
2202 esac
2203 # Pass precious variables to config.status.
2204 if test "$ac_new_set" = set; then
2205 case $ac_new_val in
5213506e 2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a8aea176
NN
2207 *) ac_arg=$ac_var=$ac_new_val ;;
2208 esac
2209 case " $ac_configure_args " in
2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
a8aea176
NN
2212 esac
2213 fi
2214done
2215if $ac_cache_corrupted; then
5213506e
RW
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2220 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
dfac8a13 2221fi
5213506e
RW
2222## -------------------- ##
2223## Main body of script. ##
2224## -------------------- ##
dfac8a13
TT
2225
2226ac_ext=c
dfac8a13 2227ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
2228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233
a8aea176 2234
dfac8a13
TT
2235
2236
0fd91e0a 2237
8006534c
NC
2238if test -n "${with_target_subdir}"; then
2239 # Default to --enable-multilib
5213506e
RW
2240# Check whether --enable-multilib was given.
2241if test "${enable_multilib+set}" = set; then :
2242 enableval=$enable_multilib; case "$enableval" in
076e5443
PB
2243 yes) multilib=yes ;;
2244 no) multilib=no ;;
22e05272 2245 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
076e5443
PB
2246 esac
2247else
2248 multilib=yes
5213506e
RW
2249fi
2250
6706f116 2251
076e5443
PB
2252# We may get other options which we leave undocumented:
2253# --with-target-subdir, --with-multisrctop, --with-multisubdir
2254# See config-ml.in if you want the gory details.
0fd91e0a 2255
076e5443
PB
2256if test "$srcdir" = "."; then
2257 if test "$with_target_subdir" != "."; then
2258 multi_basedir="$srcdir/$with_multisrctop../.."
0fd91e0a 2259 else
076e5443 2260 multi_basedir="$srcdir/$with_multisrctop.."
0fd91e0a
AO
2261 fi
2262else
076e5443 2263 multi_basedir="$srcdir/.."
0fd91e0a
AO
2264fi
2265
dfac8a13 2266
8a489465
JH
2267# Even if the default multilib is not a cross compilation,
2268# it may be that some of the other multilibs are.
2269if test $cross_compiling = no && test $multilib = yes \
2270 && test "x${with_multisubdir}" != x ; then
2271 cross_compiling=maybe
2272fi
2273
5213506e 2274ac_config_commands="$ac_config_commands default-1"
076e5443 2275
8006534c 2276fi
076e5443
PB
2277
2278ac_aux_dir=
5213506e 2279for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2280 if test -f "$ac_dir/install-sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install-sh -c"
2283 break
2284 elif test -f "$ac_dir/install.sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install.sh -c"
2287 break
2288 elif test -f "$ac_dir/shtool"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/shtool install -c"
2291 break
2292 fi
0fd91e0a
AO
2293done
2294if test -z "$ac_aux_dir"; then
22e05272 2295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
0fd91e0a 2296fi
5213506e
RW
2297
2298# These three variables are undocumented and unsupported,
2299# and are intended to be withdrawn in a future Autoconf release.
2300# They can cause serious problems if a builder's source tree is in a directory
2301# whose full name contains unusual characters.
2302ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2303ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2304ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2305
0fd91e0a 2306
dfac8a13 2307# Make sure we can run config.sub.
5213506e 2308$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2309 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2310
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2312$as_echo_n "checking build system type... " >&6; }
22e05272 2313if ${ac_cv_build+:} false; then :
5213506e
RW
2314 $as_echo_n "(cached) " >&6
2315else
2316 ac_build_alias=$build_alias
2317test "x$ac_build_alias" = x &&
2318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2319test "x$ac_build_alias" = x &&
22e05272 2320 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2321ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2322 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2323
2324fi
2325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2326$as_echo "$ac_cv_build" >&6; }
2327case $ac_cv_build in
2328*-*-*) ;;
22e05272 2329*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2330esac
a8aea176 2331build=$ac_cv_build
5213506e
RW
2332ac_save_IFS=$IFS; IFS='-'
2333set x $ac_cv_build
2334shift
2335build_cpu=$1
2336build_vendor=$2
2337shift; shift
2338# Remember, the first character of IFS is used to create $*,
2339# except with old shells:
2340build_os=$*
2341IFS=$ac_save_IFS
2342case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a8aea176
NN
2343
2344
5213506e
RW
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2346$as_echo_n "checking host system type... " >&6; }
22e05272 2347if ${ac_cv_host+:} false; then :
5213506e
RW
2348 $as_echo_n "(cached) " >&6
2349else
2350 if test "x$host_alias" = x; then
2351 ac_cv_host=$ac_cv_build
a8aea176 2352else
5213506e 2353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2355fi
a8aea176
NN
2356
2357fi
5213506e
RW
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2359$as_echo "$ac_cv_host" >&6; }
2360case $ac_cv_host in
2361*-*-*) ;;
22e05272 2362*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2363esac
a8aea176 2364host=$ac_cv_host
5213506e
RW
2365ac_save_IFS=$IFS; IFS='-'
2366set x $ac_cv_host
2367shift
2368host_cpu=$1
2369host_vendor=$2
2370shift; shift
2371# Remember, the first character of IFS is used to create $*,
2372# except with old shells:
2373host_os=$*
2374IFS=$ac_save_IFS
2375case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
a8aea176
NN
2376
2377
5213506e
RW
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2379$as_echo_n "checking target system type... " >&6; }
22e05272 2380if ${ac_cv_target+:} false; then :
5213506e 2381 $as_echo_n "(cached) " >&6
a8aea176 2382else
5213506e
RW
2383 if test "x$target_alias" = x; then
2384 ac_cv_target=$ac_cv_host
2385else
2386 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2388fi
dfac8a13 2389
a8aea176 2390fi
5213506e
RW
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2392$as_echo "$ac_cv_target" >&6; }
2393case $ac_cv_target in
2394*-*-*) ;;
22e05272 2395*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2396esac
a8aea176 2397target=$ac_cv_target
5213506e
RW
2398ac_save_IFS=$IFS; IFS='-'
2399set x $ac_cv_target
2400shift
2401target_cpu=$1
2402target_vendor=$2
2403shift; shift
2404# Remember, the first character of IFS is used to create $*,
2405# except with old shells:
2406target_os=$*
2407IFS=$ac_save_IFS
2408case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
dfac8a13 2409
dfac8a13 2410
a8aea176
NN
2411# The aliases save the names the user supplied, while $host etc.
2412# will get canonicalized.
2413test -n "$target_alias" &&
dfac8a13
TT
2414 test "$program_prefix$program_suffix$program_transform_name" = \
2415 NONENONEs,x,x, &&
2416 program_prefix=${target_alias}-
2417
5213506e 2418
8b55628e 2419# This works around an automake problem.
1e6347d8 2420mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
8b55628e
TT
2421
2422
22e05272 2423am__api_version='1.15'
5213506e 2424
dfac8a13
TT
2425# Find a good install program. We prefer a C program (faster),
2426# so one script is as good as another. But avoid the broken or
2427# incompatible versions:
2428# SysV /etc/install, /usr/sbin/install
2429# SunOS /usr/etc/install
2430# IRIX /sbin/install
2431# AIX /bin/install
a8aea176 2432# AmigaOS /C/install, which installs bootblocks on floppy discs
dfac8a13
TT
2433# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a8aea176 2436# OS/2's system install, which has a completely different semantic
dfac8a13 2437# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2438# Reject install programs that cannot install multiple files.
5213506e
RW
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440$as_echo_n "checking for a BSD-compatible install... " >&6; }
dfac8a13 2441if test -z "$INSTALL"; then
22e05272 2442if ${ac_cv_path_install+:} false; then :
5213506e 2443 $as_echo_n "(cached) " >&6
dfac8a13 2444else
a8aea176
NN
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
5213506e
RW
2450 # Account for people who put trailing slashes in PATH elements.
2451case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
a8aea176 2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a8aea176
NN
2455 /usr/ucb/* ) ;;
2456 *)
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2459 # by default.
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2462 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
dfac8a13 2463 if test $ac_prog = install &&
a8aea176 2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
dfac8a13
TT
2465 # AIX install. It has an incompatible calling convention.
2466 :
a8aea176
NN
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2470 :
dfac8a13 2471 else
38d24731
RW
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2475 mkdir conftest.dir
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2480 then
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482 break 3
2483 fi
dfac8a13
TT
2484 fi
2485 fi
2486 done
a8aea176
NN
2487 done
2488 ;;
2489esac
5213506e
RW
2490
2491 done
2492IFS=$as_save_IFS
a8aea176 2493
38d24731 2494rm -rf conftest.one conftest.two conftest.dir
dfac8a13
TT
2495
2496fi
2497 if test "${ac_cv_path_install+set}" = set; then
a8aea176 2498 INSTALL=$ac_cv_path_install
dfac8a13 2499 else
38d24731
RW
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
dfac8a13 2502 # break other packages using the cache if that directory is
38d24731 2503 # removed, or if the value is a relative name.
a8aea176 2504 INSTALL=$ac_install_sh
dfac8a13
TT
2505 fi
2506fi
5213506e
RW
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508$as_echo "$INSTALL" >&6; }
dfac8a13
TT
2509
2510# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511# It thinks the first close brace ends the variable substitution.
2512test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2513
a8aea176 2514test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
dfac8a13
TT
2515
2516test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2517
5213506e
RW
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519$as_echo_n "checking whether build environment is sane... " >&6; }
5213506e
RW
2520# Reject unsafe characters in $srcdir or the absolute working directory
2521# name. Accept space and tab only in the latter.
2522am_lf='
2523'
2524case `pwd` in
2525 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2526 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5213506e
RW
2527esac
2528case $srcdir in
2529 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2530 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5213506e
RW
2531esac
2532
22e05272 2533# Do 'set' in a subshell so we don't clobber the current shell's
dfac8a13
TT
2534# arguments. Must try -L first in case configure is actually a
2535# symlink; some systems play weird games with the mod time of symlinks
2536# (eg FreeBSD returns the mod time of the symlink's containing
2537# directory).
2538if (
22e05272
JM
2539 am_has_slept=no
2540 for am_try in 1 2; do
2541 echo "timestamp, slept: $am_has_slept" > conftest.file
2542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543 if test "$*" = "X"; then
2544 # -L didn't work.
2545 set X `ls -t "$srcdir/configure" conftest.file`
2546 fi
2547 if test "$*" != "X $srcdir/configure conftest.file" \
2548 && test "$*" != "X conftest.file $srcdir/configure"; then
2549
2550 # If neither matched, then we have a broken ls. This can happen
2551 # if, for instance, CONFIG_SHELL is bash and it inherits a
2552 # broken ls alias from the environment. This has actually
2553 # happened. Such a system could not be considered "sane".
2554 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2556 fi
2557 if test "$2" = conftest.file || test $am_try -eq 2; then
2558 break
2559 fi
2560 # Just in case.
2561 sleep 1
2562 am_has_slept=yes
2563 done
9fabf579 2564 test "$2" = conftest.file
dfac8a13
TT
2565 )
2566then
2567 # Ok.
2568 :
2569else
22e05272 2570 as_fn_error $? "newly created file is older than distributed files!
5213506e 2571Check your system clock" "$LINENO" 5
dfac8a13 2572fi
5213506e
RW
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574$as_echo "yes" >&6; }
22e05272
JM
2575# If we didn't sleep, we still need to ensure time stamps of config.status and
2576# generated files are strictly newer.
2577am_sleep_pid=
2578if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2579 ( sleep 1 ) &
2580 am_sleep_pid=$!
2581fi
2582
2583rm -f conftest.file
2584
dfac8a13 2585test "$program_prefix" != NONE &&
5213506e 2586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
dfac8a13
TT
2587# Use a double $ so make ignores it.
2588test "$program_suffix" != NONE &&
5213506e
RW
2589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590# Double any \ or $.
a8aea176 2591# By default was `s,x,x', remove it if useless.
5213506e
RW
2592ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
a8aea176 2594
22e05272
JM
2595# Expand $ac_aux_dir to an absolute path.
2596am_aux_dir=`cd "$ac_aux_dir" && pwd`
9fabf579 2597
5213506e
RW
2598if test x"${MISSING+set}" != xset; then
2599 case $am_aux_dir in
2600 *\ * | *\ *)
2601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2602 *)
2603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2604 esac
2605fi
9fabf579 2606# Use eval to expand $SHELL
22e05272
JM
2607if eval "$MISSING --is-lightweight"; then
2608 am_missing_run="$MISSING "
9fabf579
KC
2609else
2610 am_missing_run=
22e05272
JM
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2612$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
076e5443
PB
2613fi
2614
22e05272 2615if test x"${install_sh+set}" != xset; then
5213506e
RW
2616 case $am_aux_dir in
2617 *\ * | *\ *)
2618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2619 *)
2620 install_sh="\${SHELL} $am_aux_dir/install-sh"
2621 esac
2622fi
2623
22e05272
JM
2624# Installed binaries are usually stripped using 'strip' when the user
2625# run "make install-strip". However 'strip' might not be the right
5213506e 2626# tool to use in cross-compilation environments, therefore Automake
22e05272 2627# will honor the 'STRIP' environment variable to overrule this program.
5213506e
RW
2628if test "$cross_compiling" != no; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631set dummy ${ac_tool_prefix}strip; ac_word=$2
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2634if ${ac_cv_prog_STRIP+:} false; then :
5213506e 2635 $as_echo_n "(cached) " >&6
9fabf579 2636else
5213506e
RW
2637 if test -n "$STRIP"; then
2638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9fabf579
KC
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
5213506e 2645 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
2647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9fabf579
KC
2649 break 2
2650 fi
2651done
5213506e
RW
2652 done
2653IFS=$as_save_IFS
9fabf579
KC
2654
2655fi
2656fi
5213506e
RW
2657STRIP=$ac_cv_prog_STRIP
2658if test -n "$STRIP"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660$as_echo "$STRIP" >&6; }
9fabf579 2661else
5213506e
RW
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663$as_echo "no" >&6; }
9fabf579
KC
2664fi
2665
9fabf579 2666
5213506e
RW
2667fi
2668if test -z "$ac_cv_prog_STRIP"; then
2669 ac_ct_STRIP=$STRIP
2670 # Extract the first word of "strip", so it can be a program name with args.
2671set dummy strip; ac_word=$2
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2674if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e
RW
2675 $as_echo_n "(cached) " >&6
2676else
2677 if test -n "$ac_ct_STRIP"; then
2678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
2687 ac_cv_prog_ac_ct_STRIP="strip"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691done
2692 done
2693IFS=$as_save_IFS
2694
2695fi
2696fi
2697ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698if test -n "$ac_ct_STRIP"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700$as_echo "$ac_ct_STRIP" >&6; }
2701else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704fi
2705
2706 if test "x$ac_ct_STRIP" = x; then
2707 STRIP=":"
2708 else
2709 case $cross_compiling:$ac_tool_warned in
2710yes:)
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713ac_tool_warned=yes ;;
2714esac
2715 STRIP=$ac_ct_STRIP
2716 fi
2717else
2718 STRIP="$ac_cv_prog_STRIP"
2719fi
2720
2721fi
2722INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2723
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726if test -z "$MKDIR_P"; then
22e05272 2727 if ${ac_cv_path_mkdir+:} false; then :
5213506e
RW
2728 $as_echo_n "(cached) " >&6
2729else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_prog in mkdir gmkdir; do
2736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2737 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5213506e
RW
2738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739 'mkdir (GNU coreutils) '* | \
2740 'mkdir (coreutils) '* | \
2741 'mkdir (fileutils) '4.1*)
2742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2743 break 3;;
2744 esac
2745 done
2746 done
2747 done
2748IFS=$as_save_IFS
2749
2750fi
2751
22e05272 2752 test -d ./--version && rmdir ./--version
5213506e
RW
2753 if test "${ac_cv_path_mkdir+set}" = set; then
2754 MKDIR_P="$ac_cv_path_mkdir -p"
2755 else
2756 # As a last resort, use the slow shell script. Don't cache a
2757 # value for MKDIR_P within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the value is a relative name.
5213506e
RW
2760 MKDIR_P="$ac_install_sh -d"
2761 fi
2762fi
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764$as_echo "$MKDIR_P" >&6; }
2765
5213506e
RW
2766for ac_prog in gawk mawk nawk awk
2767do
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769set dummy $ac_prog; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2772if ${ac_cv_prog_AWK+:} false; then :
5213506e 2773 $as_echo_n "(cached) " >&6
dfac8a13 2774else
5213506e
RW
2775 if test -n "$AWK"; then
2776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
2785 ac_cv_prog_AWK="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790 done
2791IFS=$as_save_IFS
2792
dfac8a13 2793fi
5213506e
RW
2794fi
2795AWK=$ac_cv_prog_AWK
2796if test -n "$AWK"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2798$as_echo "$AWK" >&6; }
2799else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805 test -n "$AWK" && break
2806done
2807
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2809$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2810set x ${MAKE-make}
2811ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2812if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e
RW
2813 $as_echo_n "(cached) " >&6
2814else
2815 cat >conftest.make <<\_ACEOF
2816SHELL = /bin/sh
2817all:
2818 @echo '@@@%%%=$(MAKE)=@@@%%%'
2819_ACEOF
22e05272 2820# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
2821case `${MAKE-make} -f conftest.make 2>/dev/null` in
2822 *@@@%%%=?*=@@@%%%*)
2823 eval ac_cv_prog_make_${ac_make}_set=yes;;
2824 *)
2825 eval ac_cv_prog_make_${ac_make}_set=no;;
2826esac
a8aea176 2827rm -f conftest.make
dfac8a13 2828fi
5213506e
RW
2829if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831$as_echo "yes" >&6; }
dfac8a13
TT
2832 SET_MAKE=
2833else
5213506e
RW
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
dfac8a13
TT
2836 SET_MAKE="MAKE=${MAKE-make}"
2837fi
2838
9fabf579
KC
2839rm -rf .tst 2>/dev/null
2840mkdir .tst 2>/dev/null
2841if test -d .tst; then
2842 am__leading_dot=.
2843else
2844 am__leading_dot=_
2845fi
2846rmdir .tst 2>/dev/null
dfac8a13 2847
22e05272
JM
2848# Check whether --enable-silent-rules was given.
2849if test "${enable_silent_rules+set}" = set; then :
2850 enableval=$enable_silent_rules;
2851fi
2852
2853case $enable_silent_rules in # (((
2854 yes) AM_DEFAULT_VERBOSITY=0;;
2855 no) AM_DEFAULT_VERBOSITY=1;;
2856 *) AM_DEFAULT_VERBOSITY=1;;
2857esac
2858am_make=${MAKE-make}
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861if ${am_cv_make_support_nested_variables+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863else
2864 if $as_echo 'TRUE=$(BAR$(V))
2865BAR0=false
2866BAR1=true
2867V=1
2868am__doit:
2869 @$(TRUE)
2870.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871 am_cv_make_support_nested_variables=yes
2872else
2873 am_cv_make_support_nested_variables=no
2874fi
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877$as_echo "$am_cv_make_support_nested_variables" >&6; }
2878if test $am_cv_make_support_nested_variables = yes; then
2879 AM_V='$(V)'
2880 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2881else
2882 AM_V=$AM_DEFAULT_VERBOSITY
2883 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2884fi
2885AM_BACKSLASH='\'
2886
5213506e
RW
2887if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
22e05272 2893 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5213506e 2894 fi
dfac8a13 2895fi
a8aea176 2896
9fabf579
KC
2897# test whether we have cygpath
2898if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2901 else
2902 CYGPATH_W=echo
2903 fi
2904fi
2905
2906
2907# Define the identity of the package.
22e05272
JM
2908 PACKAGE='zlib'
2909 VERSION='1.1.4'
9fabf579
KC
2910
2911
a8aea176 2912cat >>confdefs.h <<_ACEOF
dfac8a13 2913#define PACKAGE "$PACKAGE"
a8aea176 2914_ACEOF
dfac8a13 2915
a8aea176
NN
2916
2917cat >>confdefs.h <<_ACEOF
dfac8a13 2918#define VERSION "$VERSION"
a8aea176 2919_ACEOF
dfac8a13 2920
9fabf579
KC
2921# Some tools Automake needs.
2922
2923ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
dfac8a13
TT
2930
2931
9fabf579
KC
2932AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
22e05272
JM
2937# For better backward compatibility. To be removed once Automake 1.9.x
2938# dies out for good. For more background, see:
2939# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941mkdir_p='$(MKDIR_P)'
2942
2943# We need awk for the "check" target (and possibly the TAP driver). The
2944# system "awk" is bad on some platforms.
39ba2a0e
MH
2945# Always define AMTAR for backward compatibility. Yes, it's still used
2946# in the wild :-( We should find a proper way to deprecate it ...
2947AMTAR='$${TAR-tar}'
17210dff 2948
22e05272
JM
2949
2950# We'll loop over all known methods to create a tar archive until one works.
2951_am_tools='gnutar pax cpio none'
2952
39ba2a0e 2953am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
17210dff
TT
2954
2955
9fabf579 2956
dfac8a13
TT
2957
2958
2959
22e05272
JM
2960# POSIX will say in a future version that running "rm -f" with no argument
2961# is OK; and we want to be able to make that assumption in our Makefile
2962# recipes. So use an aggressive probe to check that the usage we want is
2963# actually supported "in the wild" to an acceptable degree.
2964# See automake bug#10828.
2965# To make any issue more visible, cause the running configure to be aborted
2966# by default if the 'rm' program in use doesn't match our expectations; the
2967# user can still override this though.
2968if rm -f && rm -fr && rm -rf; then : OK; else
2969 cat >&2 <<'END'
2970Oops!
2971
2972Your 'rm' program seems unable to run without file operands specified
2973on the command line, even when the '-f' option is present. This is contrary
2974to the behaviour of most rm programs out there, and not conforming with
2975the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2976
2977Please tell bug-automake@gnu.org about your system, including the value
2978of your $PATH and any error possibly output before this message. This
2979can help us improve future automake versions.
2980
2981END
2982 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2983 echo 'Configuration will proceed anyway, since you have set the' >&2
2984 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2985 echo >&2
2986 else
2987 cat >&2 <<'END'
2988Aborting the configuration process, to ensure you take notice of the issue.
2989
2990You can download and install GNU coreutils to get an 'rm' implementation
2991that behaves properly: <http://www.gnu.org/software/coreutils/>.
2992
2993If you want to complete the configuration process using your problematic
2994'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2995to "yes", and re-run configure.
2996
2997END
2998 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2999 fi
3000fi
3001
3002
5213506e
RW
3003
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3005$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3006 # Check whether --enable-maintainer-mode was given.
3007if test "${enable_maintainer_mode+set}" = set; then :
3008 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
e093c992
AG
3009else
3010 USE_MAINTAINER_MODE=no
5213506e 3011fi
e093c992 3012
5213506e
RW
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3014$as_echo "$USE_MAINTAINER_MODE" >&6; }
3015 if test $USE_MAINTAINER_MODE = yes; then
e093c992
AG
3016 MAINTAINER_MODE_TRUE=
3017 MAINTAINER_MODE_FALSE='#'
3018else
3019 MAINTAINER_MODE_TRUE='#'
3020 MAINTAINER_MODE_FALSE=
3021fi
9fabf579 3022
e093c992 3023 MAINT=$MAINTAINER_MODE_TRUE
a8aea176
NN
3024
3025
e093c992
AG
3026
3027
5213506e
RW
3028# Check whether --with-target-subdir was given.
3029if test "${with_target_subdir+set}" = set; then :
3030 withval=$with_target_subdir;
3031fi
a8aea176 3032
a8aea176
NN
3033
3034if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
3035 COMPPATH=.
3036else
3037 COMPPATH=..
dfac8a13
TT
3038fi
3039
a8aea176
NN
3040
3041
5213506e
RW
3042# Check whether --with-cross-host was given.
3043if test "${with_cross_host+set}" = set; then :
3044 withval=$with_cross_host;
3045fi
dfac8a13
TT
3046
3047
5213506e
RW
3048# Check whether --enable-multilib was given.
3049if test "${enable_multilib+set}" = set; then :
3050 enableval=$enable_multilib; case "${enableval}" in
dfac8a13
TT
3051 yes) multilib=yes ;;
3052 no) multilib=no ;;
22e05272 3053 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
dfac8a13
TT
3054 esac
3055else
67d08194 3056 test -z "$with_target_subdir" && multilib=no || multilib=yes
5213506e 3057fi
dfac8a13 3058
79a9a529 3059
5213506e
RW
3060# Check whether --with-system-zlib was given.
3061if test "${with_system_zlib+set}" = set; then :
3062 withval=$with_system_zlib;
3063fi
3064
a8aea176
NN
3065
3066# Make sure we don't test executables when making cross-tools.
3067
3068
076e5443
PB
3069# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3070# We must force CC to /not/ be precious variables; otherwise
3071# the wrong, non-multilib-adjusted value will be used in multilibs.
3072# As a side effect, we have to subst CFLAGS ourselves.
3073
3074
3075
a8aea176
NN
3076ac_ext=c
3077ac_cpp='$CPP $CPPFLAGS'
3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3083set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3086if ${ac_cv_prog_CC+:} false; then :
5213506e 3087 $as_echo_n "(cached) " >&6
a8aea176
NN
3088else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
5213506e 3097 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3101 break 2
3102 fi
3103done
5213506e
RW
3104 done
3105IFS=$as_save_IFS
79a9a529 3106
a8aea176
NN
3107fi
3108fi
3109CC=$ac_cv_prog_CC
3110if test -n "$CC"; then
5213506e
RW
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112$as_echo "$CC" >&6; }
a8aea176 3113else
5213506e
RW
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
a8aea176 3116fi
025fd00e 3117
5213506e 3118
a8aea176
NN
3119fi
3120if test -z "$ac_cv_prog_CC"; then
3121 ac_ct_CC=$CC
3122 # Extract the first word of "gcc", so it can be a program name with args.
dfac8a13 3123set dummy gcc; ac_word=$2
5213506e
RW
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3126if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3127 $as_echo_n "(cached) " >&6
a8aea176
NN
3128else
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131else
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
5213506e 3137 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3139 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3141 break 2
3142 fi
3143done
5213506e
RW
3144 done
3145IFS=$as_save_IFS
a8aea176
NN
3146
3147fi
3148fi
3149ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150if test -n "$ac_ct_CC"; then
5213506e
RW
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152$as_echo "$ac_ct_CC" >&6; }
a8aea176 3153else
5213506e
RW
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155$as_echo "no" >&6; }
a8aea176
NN
3156fi
3157
5213506e
RW
3158 if test "x$ac_ct_CC" = x; then
3159 CC=""
3160 else
3161 case $cross_compiling:$ac_tool_warned in
3162yes:)
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165ac_tool_warned=yes ;;
3166esac
3167 CC=$ac_ct_CC
3168 fi
a8aea176
NN
3169else
3170 CC="$ac_cv_prog_CC"
3171fi
3172
3173if test -z "$CC"; then
5213506e
RW
3174 if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
a8aea176 3176set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3179if ${ac_cv_prog_CC+:} false; then :
5213506e 3180 $as_echo_n "(cached) " >&6
dfac8a13
TT
3181else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
a8aea176
NN
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
5213506e 3190 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3192 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3194 break 2
3195 fi
3196done
5213506e
RW
3197 done
3198IFS=$as_save_IFS
a8aea176 3199
dfac8a13
TT
3200fi
3201fi
a8aea176 3202CC=$ac_cv_prog_CC
dfac8a13 3203if test -n "$CC"; then
5213506e
RW
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205$as_echo "$CC" >&6; }
dfac8a13 3206else
5213506e
RW
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
dfac8a13
TT
3209fi
3210
a8aea176 3211
5213506e 3212 fi
a8aea176 3213fi
dfac8a13
TT
3214if test -z "$CC"; then
3215 # Extract the first word of "cc", so it can be a program name with args.
3216set dummy cc; ac_word=$2
5213506e
RW
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3219if ${ac_cv_prog_CC+:} false; then :
5213506e 3220 $as_echo_n "(cached) " >&6
dfac8a13
TT
3221else
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3224else
dfac8a13 3225 ac_prog_rejected=no
a8aea176
NN
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
5213506e 3231 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176
NN
3233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234 ac_prog_rejected=yes
3235 continue
3236 fi
3237 ac_cv_prog_CC="cc"
5213506e 3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3239 break 2
3240 fi
3241done
5213506e
RW
3242 done
3243IFS=$as_save_IFS
a8aea176 3244
dfac8a13
TT
3245if test $ac_prog_rejected = yes; then
3246 # We found a bogon in the path, so make sure we never use it.
3247 set dummy $ac_cv_prog_CC
3248 shift
a8aea176 3249 if test $# != 0; then
dfac8a13
TT
3250 # We chose a different compiler from the bogus one.
3251 # However, it has the same basename, so the bogon will be chosen
3252 # first if we set CC to just the basename; use the full file name.
3253 shift
a8aea176 3254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
dfac8a13
TT
3255 fi
3256fi
3257fi
3258fi
a8aea176 3259CC=$ac_cv_prog_CC
dfac8a13 3260if test -n "$CC"; then
5213506e
RW
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262$as_echo "$CC" >&6; }
dfac8a13 3263else
5213506e
RW
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265$as_echo "no" >&6; }
dfac8a13
TT
3266fi
3267
5213506e 3268
dfac8a13 3269fi
a8aea176
NN
3270if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
5213506e 3272 for ac_prog in cl.exe
a8aea176
NN
3273 do
3274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3278if ${ac_cv_prog_CC+:} false; then :
5213506e 3279 $as_echo_n "(cached) " >&6
dfac8a13 3280else
a8aea176
NN
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
dfac8a13 3283else
a8aea176
NN
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
5213506e 3289 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3293 break 2
3294 fi
3295done
5213506e
RW
3296 done
3297IFS=$as_save_IFS
a8aea176 3298
dfac8a13 3299fi
a8aea176
NN
3300fi
3301CC=$ac_cv_prog_CC
3302if test -n "$CC"; then
5213506e
RW
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304$as_echo "$CC" >&6; }
a8aea176 3305else
5213506e
RW
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
dfac8a13
TT
3308fi
3309
5213506e 3310
a8aea176
NN
3311 test -n "$CC" && break
3312 done
3313fi
3314if test -z "$CC"; then
3315 ac_ct_CC=$CC
5213506e 3316 for ac_prog in cl.exe
a8aea176
NN
3317do
3318 # Extract the first word of "$ac_prog", so it can be a program name with args.
3319set dummy $ac_prog; ac_word=$2
5213506e
RW
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3322if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3323 $as_echo_n "(cached) " >&6
dfac8a13 3324else
a8aea176
NN
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
5213506e 3333 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3335 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3337 break 2
3338 fi
3339done
5213506e
RW
3340 done
3341IFS=$as_save_IFS
a8aea176
NN
3342
3343fi
3344fi
3345ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346if test -n "$ac_ct_CC"; then
5213506e
RW
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348$as_echo "$ac_ct_CC" >&6; }
dfac8a13 3349else
5213506e
RW
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
dfac8a13 3352fi
dfac8a13 3353
5213506e 3354
a8aea176
NN
3355 test -n "$ac_ct_CC" && break
3356done
3357
5213506e
RW
3358 if test "x$ac_ct_CC" = x; then
3359 CC=""
3360 else
3361 case $cross_compiling:$ac_tool_warned in
3362yes:)
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365ac_tool_warned=yes ;;
3366esac
3367 CC=$ac_ct_CC
3368 fi
a8aea176
NN
3369fi
3370
3371fi
3372
3373
5213506e
RW
3374test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3376as_fn_error $? "no acceptable C compiler found in \$PATH
3377See \`config.log' for more details" "$LINENO" 5; }
a8aea176
NN
3378
3379# Provide some information about the compiler.
5213506e
RW
3380$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3381set X $ac_compile
3382ac_compiler=$2
3383for ac_option in --version -v -V -qversion; do
3384 { { ac_try="$ac_compiler $ac_option >&5"
3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
a8aea176 3392 ac_status=$?
5213506e
RW
3393 if test -s conftest.err; then
3394 sed '10a\
3395... rest of stderr output deleted ...
3396 10q' conftest.err >conftest.er1
3397 cat conftest.er1 >&5
5213506e 3398 fi
22e05272 3399 rm -f conftest.er1 conftest.err
5213506e
RW
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3402done
a8aea176 3403
5213506e 3404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 3405/* end confdefs.h. */
c0827870 3406#include <stdio.h>
a8aea176
NN
3407int
3408main ()
3409{
c0827870 3410printf ("hello world\n");
a8aea176
NN
3411 ;
3412 return 0;
3413}
3414_ACEOF
3415# FIXME: Cleanup?
5213506e 3416if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
a8aea176
NN
3417 (eval $ac_link) 2>&5
3418 ac_status=$?
5213506e
RW
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; then :
a8aea176
NN
3421 gcc_no_link=no
3422else
3423 gcc_no_link=yes
dfac8a13 3424fi
a8aea176
NN
3425if test x$gcc_no_link = xyes; then
3426 # Setting cross_compile will disable run tests; it will
3427 # also disable AC_CHECK_FILE but that's generally
3428 # correct if we can't link.
3429 cross_compiling=yes
3430 EXEEXT=
3431else
5213506e 3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176
NN
3433/* end confdefs.h. */
3434
3435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443ac_clean_files_save=$ac_clean_files
22e05272 3444ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
a8aea176
NN
3445# Try to create an executable without -o first, disregard a.out.
3446# It will help us diagnose broken compilers, and finding out an intuition
3447# of exeext.
22e05272
JM
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3449$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
3450ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3451
3452# The possible output files:
3453ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3454
3455ac_rmfiles=
3456for ac_file in $ac_files
3457do
3458 case $ac_file in
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3461 esac
3462done
3463rm -f $ac_rmfiles
3464
3465if { { ac_try="$ac_link_default"
3466case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469esac
3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471$as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_link_default") 2>&5
a8aea176 3473 ac_status=$?
5213506e
RW
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478# in a Makefile. We should not override ac_cv_exeext if it was cached,
3479# so that the user can short-circuit this test for compilers unknown to
3480# Autoconf.
3481for ac_file in $ac_files ''
a8aea176
NN
3482do
3483 test -f "$ac_file" || continue
3484 case $ac_file in
5213506e 3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a8aea176
NN
3486 ;;
3487 [ab].out )
3488 # We found the default executable, but exeext='' is most
3489 # certainly right.
3490 break;;
3491 *.* )
5213506e
RW
3492 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3493 then :; else
3494 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495 fi
3496 # We set ac_cv_exeext here because the later test for it is not
3497 # safe: cross compilers may not add the suffix if given an `-o'
3498 # argument, so we may need to know it at that point already.
3499 # Even if this section looks crufty: it has the advantage of
3500 # actually working.
a8aea176
NN
3501 break;;
3502 * )
3503 break;;
3504 esac
3505done
5213506e
RW
3506test "$ac_cv_exeext" = no && ac_cv_exeext=
3507
a8aea176 3508else
5213506e
RW
3509 ac_file=''
3510fi
5213506e 3511if test -z "$ac_file"; then :
22e05272
JM
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513$as_echo "no" >&6; }
3514$as_echo "$as_me: failed program was:" >&5
a8aea176
NN
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
5213506e
RW
3517{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3519as_fn_error 77 "C compiler cannot create executables
3520See \`config.log' for more details" "$LINENO" 5; }
3521else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3523$as_echo "yes" >&6; }
a8aea176 3524fi
22e05272
JM
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3526$as_echo_n "checking for C compiler default output file name... " >&6; }
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3528$as_echo "$ac_file" >&6; }
a8aea176 3529ac_exeext=$ac_cv_exeext
a8aea176 3530
22e05272 3531rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
a8aea176 3532ac_clean_files=$ac_clean_files_save
5213506e
RW
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3534$as_echo_n "checking for suffix of executables... " >&6; }
3535if { { ac_try="$ac_link"
3536case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541$as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link") 2>&5
a8aea176 3543 ac_status=$?
5213506e
RW
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; then :
a8aea176
NN
3546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3547# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3548# work properly (i.e., refer to `conftest.exe'), while it won't with
3549# `rm'.
3550for ac_file in conftest.exe conftest conftest.*; do
3551 test -f "$ac_file" || continue
3552 case $ac_file in
5213506e 3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
a8aea176 3554 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a8aea176
NN
3555 break;;
3556 * ) break;;
3557 esac
3558done
dfac8a13 3559else
5213506e
RW
3560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3562as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3563See \`config.log' for more details" "$LINENO" 5; }
a8aea176 3564fi
22e05272 3565rm -f conftest conftest$ac_cv_exeext
5213506e
RW
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3567$as_echo "$ac_cv_exeext" >&6; }
a8aea176
NN
3568
3569rm -f conftest.$ac_ext
3570EXEEXT=$ac_cv_exeext
3571ac_exeext=$EXEEXT
22e05272
JM
3572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h. */
3574#include <stdio.h>
3575int
3576main ()
3577{
3578FILE *f = fopen ("conftest.out", "w");
3579 return ferror (f) || fclose (f) != 0;
3580
3581 ;
3582 return 0;
3583}
3584_ACEOF
3585ac_clean_files="$ac_clean_files conftest.out"
3586# Check that the compiler produces executables we can run. If not, either
3587# the compiler is broken, or we cross compile.
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3589$as_echo_n "checking whether we are cross compiling... " >&6; }
3590if test "$cross_compiling" != yes; then
3591 { { ac_try="$ac_link"
3592case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597$as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }
3602 if { ac_try='./conftest$ac_cv_exeext'
3603 { { case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608$as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_try") 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; }; then
3613 cross_compiling=no
3614 else
3615 if test "$cross_compiling" = maybe; then
3616 cross_compiling=yes
3617 else
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620as_fn_error $? "cannot run C compiled programs.
3621If you meant to cross compile, use \`--host'.
3622See \`config.log' for more details" "$LINENO" 5; }
3623 fi
3624 fi
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3627$as_echo "$cross_compiling" >&6; }
3628
3629rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3630ac_clean_files=$ac_clean_files_save
a8aea176 3631fi
5213506e
RW
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3633$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3634if ${ac_cv_objext+:} false; then :
5213506e 3635 $as_echo_n "(cached) " >&6
5d836b57 3636else
5213506e 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 3638/* end confdefs.h. */
5d836b57 3639
a8aea176
NN
3640int
3641main ()
3642{
5d836b57 3643
a8aea176
NN
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648rm -f conftest.o conftest.obj
5213506e
RW
3649if { { ac_try="$ac_compile"
3650case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653esac
3654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655$as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_compile") 2>&5
a8aea176 3657 ac_status=$?
5213506e
RW
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; then :
3660 for ac_file in conftest.o conftest.obj conftest.*; do
3661 test -f "$ac_file" || continue;
a8aea176 3662 case $ac_file in
5213506e 3663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
a8aea176
NN
3664 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3665 break;;
3666 esac
3667done
5d836b57 3668else
5213506e 3669 $as_echo "$as_me: failed program was:" >&5
a8aea176
NN
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
5213506e
RW
3672{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3674as_fn_error $? "cannot compute suffix of object files: cannot compile
3675See \`config.log' for more details" "$LINENO" 5; }
5d836b57 3676fi
a8aea176
NN
3677rm -f conftest.$ac_cv_objext conftest.$ac_ext
3678fi
5213506e
RW
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3680$as_echo "$ac_cv_objext" >&6; }
a8aea176
NN
3681OBJEXT=$ac_cv_objext
3682ac_objext=$OBJEXT
5213506e
RW
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3684$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3685if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 3686 $as_echo_n "(cached) " >&6
5d836b57 3687else
5213506e 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 3689/* end confdefs.h. */
5d836b57 3690
a8aea176
NN
3691int
3692main ()
3693{
3694#ifndef __GNUC__
3695 choke me
3696#endif
3697
3698 ;
3699 return 0;
3700}
3701_ACEOF
5213506e 3702if ac_fn_c_try_compile "$LINENO"; then :
a8aea176 3703 ac_compiler_gnu=yes
5d836b57 3704else
5213506e 3705 ac_compiler_gnu=no
5d836b57 3706fi
5213506e 3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8aea176 3708ac_cv_c_compiler_gnu=$ac_compiler_gnu
5d836b57 3709
a8aea176 3710fi
5213506e
RW
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3712$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3713if test $ac_compiler_gnu = yes; then
3714 GCC=yes
3715else
3716 GCC=
3717fi
a8aea176
NN
3718ac_test_CFLAGS=${CFLAGS+set}
3719ac_save_CFLAGS=$CFLAGS
5213506e
RW
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3721$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3722if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
3723 $as_echo_n "(cached) " >&6
3724else
3725 ac_save_c_werror_flag=$ac_c_werror_flag
3726 ac_c_werror_flag=yes
3727 ac_cv_prog_cc_g=no
3728 CFLAGS="-g"
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 3730/* end confdefs.h. */
5d836b57 3731
a8aea176
NN
3732int
3733main ()
3734{
5d836b57 3735
a8aea176
NN
3736 ;
3737 return 0;
3738}
3739_ACEOF
5213506e 3740if ac_fn_c_try_compile "$LINENO"; then :
a8aea176 3741 ac_cv_prog_cc_g=yes
5d836b57 3742else
5213506e
RW
3743 CFLAGS=""
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h. */
3746
3747int
3748main ()
3749{
3750
3751 ;
3752 return 0;
3753}
3754_ACEOF
3755if ac_fn_c_try_compile "$LINENO"; then :
3756
3757else
3758 ac_c_werror_flag=$ac_save_c_werror_flag
3759 CFLAGS="-g"
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761/* end confdefs.h. */
3762
3763int
3764main ()
3765{
a8aea176 3766
5213506e
RW
3767 ;
3768 return 0;
3769}
3770_ACEOF
3771if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_g=yes
3773fi
3774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8aea176 3775fi
5213506e 3776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8aea176 3777fi
5213506e
RW
3778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_c_werror_flag=$ac_save_c_werror_flag
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3782$as_echo "$ac_cv_prog_cc_g" >&6; }
a8aea176
NN
3783if test "$ac_test_CFLAGS" = set; then
3784 CFLAGS=$ac_save_CFLAGS
3785elif test $ac_cv_prog_cc_g = yes; then
3786 if test "$GCC" = yes; then
3787 CFLAGS="-g -O2"
3788 else
3789 CFLAGS="-g"
3790 fi
5d836b57 3791else
a8aea176
NN
3792 if test "$GCC" = yes; then
3793 CFLAGS="-O2"
5d836b57 3794 else
a8aea176 3795 CFLAGS=
5d836b57 3796 fi
5d836b57 3797fi
5213506e
RW
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3799$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3800if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 3801 $as_echo_n "(cached) " >&6
a8aea176 3802else
5213506e 3803 ac_cv_prog_cc_c89=no
a8aea176 3804ac_save_CC=$CC
5213506e 3805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176
NN
3806/* end confdefs.h. */
3807#include <stdarg.h>
3808#include <stdio.h>
22e05272 3809struct stat;
a8aea176
NN
3810/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3811struct buf { int x; };
3812FILE * (*rcsopen) (struct buf *, struct stat *, int);
3813static char *e (p, i)
3814 char **p;
3815 int i;
3816{
3817 return p[i];
3818}
3819static char *f (char * (*g) (char **, int), char **p, ...)
3820{
3821 char *s;
3822 va_list v;
3823 va_start (v,p);
3824 s = g (p, va_arg (v,int));
3825 va_end (v);
3826 return s;
3827}
5d836b57 3828
a8aea176
NN
3829/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3830 function prototypes and stuff, but not '\xHH' hex character constants.
3831 These don't provoke an error unfortunately, instead are silently treated
5213506e 3832 as 'x'. The following induces an error, until -std is added to get
a8aea176
NN
3833 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3834 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3835 that's true only with -std. */
a8aea176
NN
3836int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3837
5213506e
RW
3838/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3839 inside strings and character constants. */
3840#define FOO(x) 'x'
3841int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3842
a8aea176
NN
3843int test (int i, double x);
3844struct s1 {int (*f) (int a);};
3845struct s2 {int (*f) (double a);};
3846int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3847int argc;
3848char **argv;
3849int
3850main ()
3851{
3852return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3853 ;
3854 return 0;
3855}
3856_ACEOF
5213506e
RW
3857for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3858 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a8aea176
NN
3859do
3860 CC="$ac_save_CC $ac_arg"
5213506e
RW
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv_prog_cc_c89=$ac_arg
a8aea176 3863fi
5213506e
RW
3864rm -f core conftest.err conftest.$ac_objext
3865 test "x$ac_cv_prog_cc_c89" != "xno" && break
a8aea176 3866done
5213506e 3867rm -f conftest.$ac_ext
a8aea176
NN
3868CC=$ac_save_CC
3869
3870fi
5213506e
RW
3871# AC_CACHE_VAL
3872case "x$ac_cv_prog_cc_c89" in
3873 x)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3875$as_echo "none needed" >&6; } ;;
3876 xno)
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3878$as_echo "unsupported" >&6; } ;;
a8aea176 3879 *)
5213506e
RW
3880 CC="$CC $ac_cv_prog_cc_c89"
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3882$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a8aea176 3883esac
5213506e 3884if test "x$ac_cv_prog_cc_c89" != xno; then :
a8aea176 3885
a8aea176
NN
3886fi
3887
a8aea176
NN
3888ac_ext=c
3889ac_cpp='$CPP $CPPFLAGS'
3890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
3893
3894ac_ext=c
3895ac_cpp='$CPP $CPPFLAGS'
3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3900$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3901if ${am_cv_prog_cc_c_o+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h. */
3906
3907int
3908main ()
3909{
3910
3911 ;
3912 return 0;
3913}
3914_ACEOF
3915 # Make sure it works both with $CC and with simple cc.
3916 # Following AC_PROG_CC_C_O, we do the test twice because some
3917 # compilers refuse to overwrite an existing .o file with -o,
3918 # though they will create one.
3919 am_cv_prog_cc_c_o=yes
3920 for am_i in 1 2; do
3921 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3922 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } \
3926 && test -f conftest2.$ac_objext; then
3927 : OK
3928 else
3929 am_cv_prog_cc_c_o=no
3930 break
3931 fi
3932 done
3933 rm -f core conftest*
3934 unset am_i
3935fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3937$as_echo "$am_cv_prog_cc_c_o" >&6; }
3938if test "$am_cv_prog_cc_c_o" != yes; then
3939 # Losing compiler, so override with the script.
3940 # FIXME: It is wrong to rewrite CC.
3941 # But if we don't then we get into trouble of one sort or another.
3942 # A longer-term fix would be to have automake use am__CC in this case,
3943 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3944 CC="$am_aux_dir/compile $CC"
3945fi
3946ac_ext=c
3947ac_cpp='$CPP $CPPFLAGS'
3948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951
9fabf579
KC
3952DEPDIR="${am__leading_dot}deps"
3953
5213506e 3954ac_config_commands="$ac_config_commands depfiles"
9fabf579
KC
3955
3956
3957am_make=${MAKE-make}
3958cat > confinc << 'END'
3959am__doit:
5213506e 3960 @echo this is the am__doit target
9fabf579
KC
3961.PHONY: am__doit
3962END
3963# If we don't find an include directive, just comment out the code.
5213506e
RW
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3965$as_echo_n "checking for style of include used by $am_make... " >&6; }
9fabf579
KC
3966am__include="#"
3967am__quote=
3968_am_result=none
3969# First try GNU make style include.
3970echo "include confinc" > confmf
22e05272 3971# Ignore all kinds of additional output from 'make'.
5213506e
RW
3972case `$am_make -s -f confmf 2> /dev/null` in #(
3973*the\ am__doit\ target*)
3974 am__include=include
3975 am__quote=
3976 _am_result=GNU
3977 ;;
3978esac
9fabf579
KC
3979# Now try BSD make style include.
3980if test "$am__include" = "#"; then
3981 echo '.include "confinc"' > confmf
5213506e
RW
3982 case `$am_make -s -f confmf 2> /dev/null` in #(
3983 *the\ am__doit\ target*)
3984 am__include=.include
3985 am__quote="\""
3986 _am_result=BSD
3987 ;;
3988 esac
9fabf579
KC
3989fi
3990
3991
5213506e
RW
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3993$as_echo "$_am_result" >&6; }
9fabf579
KC
3994rm -f confinc confmf
3995
5213506e
RW
3996# Check whether --enable-dependency-tracking was given.
3997if test "${enable_dependency_tracking+set}" = set; then :
3998 enableval=$enable_dependency_tracking;
3999fi
9fabf579 4000
9fabf579
KC
4001if test "x$enable_dependency_tracking" != xno; then
4002 am_depcomp="$ac_aux_dir/depcomp"
4003 AMDEPBACKSLASH='\'
39ba2a0e 4004 am__nodep='_no'
9fabf579 4005fi
5213506e 4006 if test "x$enable_dependency_tracking" != xno; then
9fabf579
KC
4007 AMDEP_TRUE=
4008 AMDEP_FALSE='#'
4009else
4010 AMDEP_TRUE='#'
4011 AMDEP_FALSE=
4012fi
4013
4014
4015
9fabf579
KC
4016depcc="$CC" am_compiler_list=
4017
5213506e
RW
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4019$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4020if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5213506e 4021 $as_echo_n "(cached) " >&6
9fabf579
KC
4022else
4023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024 # We make a subdir and do the tests there. Otherwise we can end up
4025 # making bogus files that we don't know about and never remove. For
4026 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4027 # making a dummy file named 'D' -- because '-MD' means "put the output
4028 # in D".
39ba2a0e 4029 rm -rf conftest.dir
9fabf579
KC
4030 mkdir conftest.dir
4031 # Copy depcomp to subdir because otherwise we won't find it if we're
4032 # using a relative directory.
4033 cp "$am_depcomp" conftest.dir
4034 cd conftest.dir
4035 # We will build objects and dependencies in a subdirectory because
4036 # it helps to detect inapplicable dependency modes. For instance
4037 # both Tru64's cc and ICC support -MD to output dependencies as a
4038 # side effect of compilation, but ICC will put the dependencies in
4039 # the current directory while Tru64 will put them in the object
4040 # directory.
4041 mkdir sub
4042
4043 am_cv_CC_dependencies_compiler_type=none
4044 if test "$am_compiler_list" = ""; then
4045 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4046 fi
5213506e
RW
4047 am__universal=false
4048 case " $depcc " in #(
4049 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4050 esac
4051
9fabf579
KC
4052 for depmode in $am_compiler_list; do
4053 # Setup a source with many dependencies, because some compilers
4054 # like to wrap large dependency lists on column 80 (with \), and
4055 # we should not choose a depcomp mode which is confused by this.
4056 #
4057 # We need to recreate these files for each test, as the compiler may
4058 # overwrite some of them when testing with obscure command lines.
4059 # This happens at least with the AIX C compiler.
4060 : > sub/conftest.c
4061 for i in 1 2 3 4 5 6; do
4062 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4063 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4064 # Solaris 10 /bin/sh.
4065 echo '/* dummy */' > sub/conftst$i.h
9fabf579
KC
4066 done
4067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4068
22e05272 4069 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5213506e 4070 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4071 # handle '-M -o', and we need to detect this. Also, some Intel
4072 # versions had trouble with output in subdirs.
5213506e
RW
4073 am__obj=sub/conftest.${OBJEXT-o}
4074 am__minus_obj="-o $am__obj"
9fabf579 4075 case $depmode in
5213506e
RW
4076 gcc)
4077 # This depmode causes a compiler race in universal mode.
4078 test "$am__universal" = false || continue
4079 ;;
9fabf579 4080 nosideeffect)
22e05272
JM
4081 # After this tag, mechanisms are not by side-effect, so they'll
4082 # only be used when explicitly requested.
9fabf579
KC
4083 if test "x$enable_dependency_tracking" = xyes; then
4084 continue
4085 else
4086 break
4087 fi
4088 ;;
39ba2a0e 4089 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4090 # This compiler won't grok '-c -o', but also, the minuso test has
5213506e
RW
4091 # not run yet. These depmodes are late enough in the game, and
4092 # so weak that their functioning should not be impacted.
4093 am__obj=conftest.${OBJEXT-o}
4094 am__minus_obj=
4095 ;;
9fabf579
KC
4096 none) break ;;
4097 esac
9fabf579 4098 if depmode=$depmode \
5213506e 4099 source=sub/conftest.c object=$am__obj \
9fabf579 4100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4101 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9fabf579 4102 >/dev/null 2>conftest.err &&
5213506e 4103 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9fabf579 4104 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4105 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9fabf579
KC
4106 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4107 # icc doesn't choke on unknown options, it will just issue warnings
076e5443
PB
4108 # or remarks (even with -Werror). So we grep stderr for any message
4109 # that says an option was ignored or not supported.
4110 # When given -MP, icc 7.0 and 7.1 complain thusly:
4111 # icc: Command line warning: ignoring option '-M'; no argument required
4112 # The diagnosis changed in icc 8.0:
4113 # icc: Command line remark: option '-MP' not supported
4114 if (grep 'ignoring option' conftest.err ||
4115 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9fabf579
KC
4116 am_cv_CC_dependencies_compiler_type=$depmode
4117 break
4118 fi
4119 fi
4120 done
4121
4122 cd ..
4123 rm -rf conftest.dir
4124else
4125 am_cv_CC_dependencies_compiler_type=none
4126fi
4127
4128fi
5213506e
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4130$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9fabf579
KC
4131CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4132
5213506e 4133 if
9fabf579
KC
4134 test "x$enable_dependency_tracking" != xno \
4135 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4136 am__fastdepCC_TRUE=
4137 am__fastdepCC_FALSE='#'
4138else
4139 am__fastdepCC_TRUE='#'
4140 am__fastdepCC_FALSE=
4141fi
4142
a8aea176
NN
4143
4144
076e5443
PB
4145
4146
4147
c0827870
L
4148# Add CET specific flags if CET is enabled
4149
4150 # Check whether --enable-cet was given.
4151if test "${enable_cet+set}" = set; then :
4152 enableval=$enable_cet;
4153 case "$enableval" in
4154 yes|no|auto) ;;
4155 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4156 esac
4157
4158else
8d286dd1 4159 enable_cet=auto
c0827870
L
4160fi
4161
4162
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4164$as_echo_n "checking for CET support... " >&6; }
4165
4166case "$host" in
4167 i[34567]86-*-linux* | x86_64-*-linux*)
4168 case "$enable_cet" in
4169 auto)
4170 # Check if target supports multi-byte NOPs
4171 # and if assembler supports CET insn.
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h. */
4174
4175int
4176main ()
4177{
4178
4179#if !defined(__SSE2__)
4180#error target does not support multi-byte NOPs
4181#else
4182asm ("setssbsy");
4183#endif
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189if ac_fn_c_try_compile "$LINENO"; then :
4190 enable_cet=yes
4191else
4192 enable_cet=no
4193fi
4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 ;;
4196 yes)
4197 # Check if assembler supports CET.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h. */
4200
4201int
4202main ()
4203{
4204asm ("setssbsy");
4205 ;
4206 return 0;
4207}
4208_ACEOF
4209if ac_fn_c_try_compile "$LINENO"; then :
4210
4211else
4212 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4213fi
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ;;
4216 esac
4217 ;;
4218 *)
4219 enable_cet=no
4220 ;;
4221esac
4222if test x$enable_cet = xyes; then
4223 CET_FLAGS="-fcf-protection -mshstk"
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225$as_echo "yes" >&6; }
4226else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228$as_echo "no" >&6; }
4229fi
4230
4231
4232
18d98188
PG
4233case `pwd` in
4234 *\ * | *\ *)
5213506e
RW
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4236$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
18d98188 4237esac
1cf3d07d
SE
4238
4239
1cf3d07d 4240
43e02a8a
RW
4241macro_version='2.2.7a'
4242macro_revision='1.3134'
1cf3d07d
SE
4243
4244
4245
4246
4247
4248
dfac8a13 4249
1cf3d07d
SE
4250
4251
4252
4253
4254
4255
18d98188 4256ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4257
43e02a8a
RW
4258# Backslashify metacharacters that are still active within
4259# double-quoted strings.
4260sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4261
4262# Same as above, but do not quote variable references.
4263double_quote_subst='s/\(["`\\]\)/\\\1/g'
4264
4265# Sed substitution to delay expansion of an escaped shell variable in a
4266# double_quote_subst'ed string.
4267delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4268
4269# Sed substitution to delay expansion of an escaped single quote.
4270delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4271
4272# Sed substitution to avoid accidental globbing in evaled expressions
4273no_glob_subst='s/\*/\\\*/g'
4274
4275ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4276ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4277ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4280$as_echo_n "checking how to print strings... " >&6; }
4281# Test print first, because it will be a builtin if present.
4282if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4283 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4284 ECHO='print -r --'
4285elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4286 ECHO='printf %s\n'
4287else
4288 # Use this function as a fallback that always works.
4289 func_fallback_echo ()
4290 {
4291 eval 'cat <<_LTECHO_EOF
4292$1
4293_LTECHO_EOF'
4294 }
4295 ECHO='func_fallback_echo'
4296fi
4297
4298# func_echo_all arg...
4299# Invoke $ECHO with all args, space-separated.
4300func_echo_all ()
4301{
4302 $ECHO ""
4303}
4304
4305case "$ECHO" in
4306 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4307$as_echo "printf" >&6; } ;;
4308 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4309$as_echo "print -r" >&6; } ;;
4310 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4311$as_echo "cat" >&6; } ;;
4312esac
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
5213506e
RW
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4328$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 4329if ${ac_cv_path_SED+:} false; then :
5213506e
RW
4330 $as_echo_n "(cached) " >&6
4331else
4332 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4333 for ac_i in 1 2 3 4 5 6 7; do
4334 ac_script="$ac_script$as_nl$ac_script"
4335 done
4336 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4337 { ac_script=; unset ac_script;}
4338 if test -z "$SED"; then
4339 ac_path_SED_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
4342for as_dir in $PATH
4343do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
5213506e 4346 for ac_prog in sed gsed; do
1cf3d07d 4347 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 4348 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4349 as_fn_executable_p "$ac_path_SED" || continue
5213506e
RW
4350# Check for GNU ac_path_SED and select it if it is found.
4351 # Check for GNU $ac_path_SED
4352case `"$ac_path_SED" --version 2>&1` in
4353*GNU*)
4354 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4355*)
4356 ac_count=0
4357 $as_echo_n 0123456789 >"conftest.in"
4358 while :
4359 do
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo '' >> "conftest.nl"
4364 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 as_fn_arith $ac_count + 1 && ac_count=$as_val
4367 if test $ac_count -gt ${ac_path_SED_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_SED="$ac_path_SED"
4370 ac_path_SED_max=$ac_count
4371 fi
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4374 done
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376esac
4377
4378 $ac_path_SED_found && break 3
1cf3d07d
SE
4379 done
4380 done
5213506e 4381 done
1cf3d07d 4382IFS=$as_save_IFS
5213506e 4383 if test -z "$ac_cv_path_SED"; then
22e05272 4384 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4385 fi
5213506e
RW
4386else
4387 ac_cv_path_SED=$SED
1cf3d07d
SE
4388fi
4389
5213506e
RW
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4392$as_echo "$ac_cv_path_SED" >&6; }
4393 SED="$ac_cv_path_SED"
4394 rm -f conftest.sed
1cf3d07d
SE
4395
4396test -z "$SED" && SED=sed
4397Xsed="$SED -e 1s/^X//"
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
5213506e
RW
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4410$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4411if ${ac_cv_path_GREP+:} false; then :
5213506e
RW
4412 $as_echo_n "(cached) " >&6
4413else
4414 if test -z "$GREP"; then
4415 ac_path_GREP_found=false
4416 # Loop through the user's path and test for each of PROGNAME-LIST
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4419do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_prog in grep ggrep; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4425 as_fn_executable_p "$ac_path_GREP" || continue
5213506e
RW
4426# Check for GNU ac_path_GREP and select it if it is found.
4427 # Check for GNU $ac_path_GREP
4428case `"$ac_path_GREP" --version 2>&1` in
4429*GNU*)
4430 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4431*)
4432 ac_count=0
4433 $as_echo_n 0123456789 >"conftest.in"
4434 while :
4435 do
4436 cat "conftest.in" "conftest.in" >"conftest.tmp"
4437 mv "conftest.tmp" "conftest.in"
4438 cp "conftest.in" "conftest.nl"
4439 $as_echo 'GREP' >> "conftest.nl"
4440 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442 as_fn_arith $ac_count + 1 && ac_count=$as_val
4443 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4444 # Best one so far, save it but keep looking for a better one
4445 ac_cv_path_GREP="$ac_path_GREP"
4446 ac_path_GREP_max=$ac_count
4447 fi
4448 # 10*(2^10) chars as input seems more than enough
4449 test $ac_count -gt 10 && break
4450 done
4451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4452esac
4453
4454 $ac_path_GREP_found && break 3
4455 done
4456 done
4457 done
4458IFS=$as_save_IFS
4459 if test -z "$ac_cv_path_GREP"; then
22e05272 4460 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
4461 fi
4462else
4463 ac_cv_path_GREP=$GREP
4464fi
4465
4466fi
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4468$as_echo "$ac_cv_path_GREP" >&6; }
4469 GREP="$ac_cv_path_GREP"
4470
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4473$as_echo_n "checking for egrep... " >&6; }
22e05272 4474if ${ac_cv_path_EGREP+:} false; then :
5213506e 4475 $as_echo_n "(cached) " >&6
1cf3d07d 4476else
5213506e
RW
4477 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4478 then ac_cv_path_EGREP="$GREP -E"
4479 else
4480 if test -z "$EGREP"; then
4481 ac_path_EGREP_found=false
4482 # Loop through the user's path and test for each of PROGNAME-LIST
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_prog in egrep; do
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4491 as_fn_executable_p "$ac_path_EGREP" || continue
5213506e
RW
4492# Check for GNU ac_path_EGREP and select it if it is found.
4493 # Check for GNU $ac_path_EGREP
4494case `"$ac_path_EGREP" --version 2>&1` in
4495*GNU*)
4496 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4497*)
4498 ac_count=0
4499 $as_echo_n 0123456789 >"conftest.in"
4500 while :
4501 do
4502 cat "conftest.in" "conftest.in" >"conftest.tmp"
4503 mv "conftest.tmp" "conftest.in"
4504 cp "conftest.in" "conftest.nl"
4505 $as_echo 'EGREP' >> "conftest.nl"
4506 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508 as_fn_arith $ac_count + 1 && ac_count=$as_val
4509 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4510 # Best one so far, save it but keep looking for a better one
4511 ac_cv_path_EGREP="$ac_path_EGREP"
4512 ac_path_EGREP_max=$ac_count
1cf3d07d 4513 fi
5213506e
RW
4514 # 10*(2^10) chars as input seems more than enough
4515 test $ac_count -gt 10 && break
4516 done
4517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4518esac
4519
4520 $ac_path_EGREP_found && break 3
4521 done
4522 done
4523 done
4524IFS=$as_save_IFS
4525 if test -z "$ac_cv_path_EGREP"; then
22e05272 4526 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
4527 fi
4528else
4529 ac_cv_path_EGREP=$EGREP
1cf3d07d 4530fi
1cf3d07d 4531
5213506e
RW
4532 fi
4533fi
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4535$as_echo "$ac_cv_path_EGREP" >&6; }
4536 EGREP="$ac_cv_path_EGREP"
1cf3d07d 4537
5213506e
RW
4538
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4540$as_echo_n "checking for fgrep... " >&6; }
22e05272 4541if ${ac_cv_path_FGREP+:} false; then :
5213506e 4542 $as_echo_n "(cached) " >&6
1cf3d07d 4543else
5213506e
RW
4544 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4545 then ac_cv_path_FGREP="$GREP -F"
4546 else
4547 if test -z "$FGREP"; then
4548 ac_path_FGREP_found=false
4549 # Loop through the user's path and test for each of PROGNAME-LIST
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_prog in fgrep; do
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4558 as_fn_executable_p "$ac_path_FGREP" || continue
5213506e
RW
4559# Check for GNU ac_path_FGREP and select it if it is found.
4560 # Check for GNU $ac_path_FGREP
4561case `"$ac_path_FGREP" --version 2>&1` in
4562*GNU*)
4563 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4564*)
4565 ac_count=0
4566 $as_echo_n 0123456789 >"conftest.in"
4567 while :
4568 do
4569 cat "conftest.in" "conftest.in" >"conftest.tmp"
4570 mv "conftest.tmp" "conftest.in"
4571 cp "conftest.in" "conftest.nl"
4572 $as_echo 'FGREP' >> "conftest.nl"
4573 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575 as_fn_arith $ac_count + 1 && ac_count=$as_val
4576 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4577 # Best one so far, save it but keep looking for a better one
4578 ac_cv_path_FGREP="$ac_path_FGREP"
4579 ac_path_FGREP_max=$ac_count
1cf3d07d 4580 fi
5213506e
RW
4581 # 10*(2^10) chars as input seems more than enough
4582 test $ac_count -gt 10 && break
4583 done
4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585esac
4586
4587 $ac_path_FGREP_found && break 3
4588 done
4589 done
4590 done
4591IFS=$as_save_IFS
4592 if test -z "$ac_cv_path_FGREP"; then
22e05272 4593 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
4594 fi
4595else
4596 ac_cv_path_FGREP=$FGREP
1cf3d07d 4597fi
5213506e
RW
4598
4599 fi
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4602$as_echo "$ac_cv_path_FGREP" >&6; }
4603 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
4604
4605
4606test -z "$GREP" && GREP=grep
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
5213506e
RW
4626# Check whether --with-gnu-ld was given.
4627if test "${with_gnu_ld+set}" = set; then :
4628 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
dfac8a13
TT
4629else
4630 with_gnu_ld=no
5213506e
RW
4631fi
4632
dfac8a13 4633ac_prog=ld
0fd91e0a 4634if test "$GCC" = yes; then
dfac8a13 4635 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4637$as_echo_n "checking for ld used by $CC... " >&6; }
0fd91e0a
AO
4638 case $host in
4639 *-*-mingw*)
4640 # gcc leaves a trailing carriage return which upsets mingw
4641 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4642 *)
4643 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4644 esac
4645 case $ac_prog in
dfac8a13 4646 # Accept absolute paths.
1cf3d07d 4647 [\\/]* | ?:[\\/]*)
dfac8a13 4648 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4649 # Canonicalize the pathname of ld
4650 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4651 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4652 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
dfac8a13
TT
4653 done
4654 test -z "$LD" && LD="$ac_prog"
4655 ;;
4656 "")
4657 # If it fails, then pretend we aren't using GCC.
4658 ac_prog=ld
4659 ;;
4660 *)
4661 # If it is relative, then search for the first ld in PATH.
4662 with_gnu_ld=unknown
4663 ;;
4664 esac
4665elif test "$with_gnu_ld" = yes; then
5213506e
RW
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4667$as_echo_n "checking for GNU ld... " >&6; }
dfac8a13 4668else
5213506e
RW
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4670$as_echo_n "checking for non-GNU ld... " >&6; }
dfac8a13 4671fi
22e05272 4672if ${lt_cv_path_LD+:} false; then :
5213506e 4673 $as_echo_n "(cached) " >&6
dfac8a13
TT
4674else
4675 if test -z "$LD"; then
1cf3d07d 4676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
dfac8a13 4677 for ac_dir in $PATH; do
1cf3d07d 4678 IFS="$lt_save_ifs"
dfac8a13 4679 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
4680 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4681 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13 4682 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4683 # but apparently some variants of GNU ld only accept -v.
dfac8a13 4684 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4685 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4686 *GNU* | *'with BFD'*)
dfac8a13 4687 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4688 ;;
4689 *)
dfac8a13 4690 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4691 ;;
4692 esac
dfac8a13
TT
4693 fi
4694 done
1cf3d07d 4695 IFS="$lt_save_ifs"
dfac8a13 4696else
0fd91e0a 4697 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
4698fi
4699fi
4700
0fd91e0a 4701LD="$lt_cv_path_LD"
dfac8a13 4702if test -n "$LD"; then
5213506e
RW
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4704$as_echo "$LD" >&6; }
dfac8a13 4705else
5213506e
RW
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707$as_echo "no" >&6; }
a8aea176 4708fi
22e05272 4709test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5213506e
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4711$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 4712if ${lt_cv_prog_gnu_ld+:} false; then :
5213506e 4713 $as_echo_n "(cached) " >&6
dfac8a13 4714else
1cf3d07d
SE
4715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4716case `$LD -v 2>&1 </dev/null` in
4717*GNU* | *'with BFD'*)
0fd91e0a 4718 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4719 ;;
4720*)
0fd91e0a 4721 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4722 ;;
4723esac
dfac8a13 4724fi
5213506e
RW
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4726$as_echo "$lt_cv_prog_gnu_ld" >&6; }
0fd91e0a 4727with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
4728
4729
0fd91e0a 4730
1cf3d07d
SE
4731
4732
4733
4734
4735
4736
5213506e
RW
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4738$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 4739if ${lt_cv_path_NM+:} false; then :
5213506e 4740 $as_echo_n "(cached) " >&6
dfac8a13
TT
4741else
4742 if test -n "$NM"; then
4743 # Let the user override the test.
0fd91e0a 4744 lt_cv_path_NM="$NM"
dfac8a13 4745else
1cf3d07d
SE
4746 lt_nm_to_check="${ac_tool_prefix}nm"
4747 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4748 lt_nm_to_check="$lt_nm_to_check nm"
4749 fi
4750 for lt_tmp_nm in $lt_nm_to_check; do
4751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4752 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4753 IFS="$lt_save_ifs"
4754 test -z "$ac_dir" && ac_dir=.
4755 tmp_nm="$ac_dir/$lt_tmp_nm"
4756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4757 # Check to see if the nm accepts a BSD-compat flag.
4758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4759 # nm: unknown option "B" ignored
4760 # Tru64's nm complains that /dev/null is an invalid object file
4761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4762 */dev/null* | *'Invalid file or object type'*)
4763 lt_cv_path_NM="$tmp_nm -B"
4764 break
4765 ;;
4766 *)
4767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4768 */dev/null*)
4769 lt_cv_path_NM="$tmp_nm -p"
4770 break
4771 ;;
4772 *)
4773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4774 continue # so that we can try to find one that supports BSD flags
4775 ;;
4776 esac
4777 ;;
4778 esac
dfac8a13 4779 fi
1cf3d07d
SE
4780 done
4781 IFS="$lt_save_ifs"
dfac8a13 4782 done
1cf3d07d 4783 : ${lt_cv_path_NM=no}
dfac8a13
TT
4784fi
4785fi
5213506e
RW
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4787$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
4788if test "$lt_cv_path_NM" != "no"; then
4789 NM="$lt_cv_path_NM"
0fd91e0a 4790else
1cf3d07d 4791 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
4792 if test -n "$DUMPBIN"; then :
4793 # Let the user override the test.
4794 else
4795 if test -n "$ac_tool_prefix"; then
4796 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4797 do
4798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4802if ${ac_cv_prog_DUMPBIN+:} false; then :
5213506e 4803 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4804else
4805 if test -n "$DUMPBIN"; then
4806 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4807else
4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH
4810do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
5213506e 4813 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4815 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
4817 break 2
4818 fi
4819done
5213506e
RW
4820 done
4821IFS=$as_save_IFS
025fd00e 4822
1cf3d07d
SE
4823fi
4824fi
4825DUMPBIN=$ac_cv_prog_DUMPBIN
4826if test -n "$DUMPBIN"; then
5213506e
RW
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4828$as_echo "$DUMPBIN" >&6; }
1cf3d07d 4829else
5213506e
RW
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831$as_echo "no" >&6; }
1cf3d07d 4832fi
025fd00e 4833
5213506e 4834
1cf3d07d
SE
4835 test -n "$DUMPBIN" && break
4836 done
4837fi
4838if test -z "$DUMPBIN"; then
4839 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 4840 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4841do
4842 # Extract the first word of "$ac_prog", so it can be a program name with args.
4843set dummy $ac_prog; ac_word=$2
5213506e
RW
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4846if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5213506e 4847 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4848else
4849 if test -n "$ac_ct_DUMPBIN"; then
4850 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4851else
4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
5213506e 4857 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4859 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 4861 break 2
0fd91e0a 4862 fi
1cf3d07d 4863done
5213506e
RW
4864 done
4865IFS=$as_save_IFS
025fd00e 4866
1cf3d07d
SE
4867fi
4868fi
4869ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4870if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4872$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 4873else
5213506e
RW
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875$as_echo "no" >&6; }
1cf3d07d 4876fi
025fd00e 4877
5213506e 4878
1cf3d07d
SE
4879 test -n "$ac_ct_DUMPBIN" && break
4880done
025fd00e 4881
5213506e
RW
4882 if test "x$ac_ct_DUMPBIN" = x; then
4883 DUMPBIN=":"
4884 else
4885 case $cross_compiling:$ac_tool_warned in
4886yes:)
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889ac_tool_warned=yes ;;
4890esac
4891 DUMPBIN=$ac_ct_DUMPBIN
4892 fi
1cf3d07d 4893fi
025fd00e 4894
43e02a8a
RW
4895 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4896 *COFF*)
4897 DUMPBIN="$DUMPBIN -symbols"
4898 ;;
4899 *)
4900 DUMPBIN=:
4901 ;;
4902 esac
4903 fi
025fd00e 4904
1cf3d07d
SE
4905 if test "$DUMPBIN" != ":"; then
4906 NM="$DUMPBIN"
025fd00e 4907 fi
1cf3d07d
SE
4908fi
4909test -z "$NM" && NM=nm
025fd00e 4910
025fd00e
TT
4911
4912
025fd00e 4913
33456445 4914
025fd00e 4915
5213506e
RW
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4917$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 4918if ${lt_cv_nm_interface+:} false; then :
5213506e 4919 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4920else
4921 lt_cv_nm_interface="BSD nm"
4922 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 4923 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
4924 (eval "$ac_compile" 2>conftest.err)
4925 cat conftest.err >&5
43e02a8a 4926 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4927 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4928 cat conftest.err >&5
43e02a8a 4929 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
4930 cat conftest.out >&5
4931 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4932 lt_cv_nm_interface="MS dumpbin"
4933 fi
4934 rm -f conftest*
025fd00e 4935fi
5213506e
RW
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4937$as_echo "$lt_cv_nm_interface" >&6; }
a8aea176 4938
5213506e
RW
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4940$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
4941LN_S=$as_ln_s
4942if test "$LN_S" = "ln -s"; then
5213506e
RW
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4944$as_echo "yes" >&6; }
1cf3d07d 4945else
5213506e
RW
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4947$as_echo "no, using $LN_S" >&6; }
1cf3d07d 4948fi
dfac8a13 4949
6dab073b 4950# find the maximum length of command line arguments
5213506e
RW
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4952$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 4953if ${lt_cv_sys_max_cmd_len+:} false; then :
5213506e 4954 $as_echo_n "(cached) " >&6
6dab073b
MS
4955else
4956 i=0
4957 teststring="ABCD"
4958
4959 case $build_os in
4960 msdosdjgpp*)
4961 # On DJGPP, this test can blow up pretty badly due to problems in libc
4962 # (any single argument exceeding 2000 bytes causes a buffer overrun
4963 # during glob expansion). Even if it were fixed, the result of this
4964 # check would be larger than it should be.
4965 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4966 ;;
4967
1cf3d07d
SE
4968 gnu*)
4969 # Under GNU Hurd, this test is not required because there is
4970 # no limit to the length of command line arguments.
4971 # Libtool will interpret -1 as no limit whatsoever
4972 lt_cv_sys_max_cmd_len=-1;
4973 ;;
4974
18d98188 4975 cygwin* | mingw* | cegcc*)
6dab073b
MS
4976 # On Win9x/ME, this test blows up -- it succeeds, but takes
4977 # about 5 minutes as the teststring grows exponentially.
4978 # Worse, since 9x/ME are not pre-emptively multitasking,
4979 # you end up with a "frozen" computer, even though with patience
4980 # the test eventually succeeds (with a max line length of 256k).
4981 # Instead, let's just punt: use the minimum linelength reported by
4982 # all of the supported platforms: 8192 (on NT/2K/XP).
4983 lt_cv_sys_max_cmd_len=8192;
4984 ;;
4985
43e02a8a
RW
4986 mint*)
4987 # On MiNT this can take a long time and run out of memory.
4988 lt_cv_sys_max_cmd_len=8192;
4989 ;;
4990
6dab073b
MS
4991 amigaos*)
4992 # On AmigaOS with pdksh, this test takes hours, literally.
4993 # So we just punt and use a minimum line length of 8192.
4994 lt_cv_sys_max_cmd_len=8192;
4995 ;;
4996
4997 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4998 # This has been around since 386BSD, at least. Likely further.
4999 if test -x /sbin/sysctl; then
5000 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5001 elif test -x /usr/sbin/sysctl; then
5002 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5003 else
1cf3d07d 5004 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5005 fi
5006 # And add a safety zone
5007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5009 ;;
1cf3d07d
SE
5010
5011 interix*)
5012 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5013 lt_cv_sys_max_cmd_len=196608
5014 ;;
5015
5016 osf*)
5017 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5018 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5019 # nice to cause kernel panics so lets avoid the loop below.
5020 # First set a reasonable default.
5021 lt_cv_sys_max_cmd_len=16384
5022 #
5023 if test -x /sbin/sysconfig; then
5024 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5025 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5026 esac
5027 fi
5028 ;;
5029 sco3.2v5*)
5030 lt_cv_sys_max_cmd_len=102400
5031 ;;
5032 sysv5* | sco5v6* | sysv4.2uw2*)
5033 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5034 if test -n "$kargmax"; then
5035 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5036 else
5037 lt_cv_sys_max_cmd_len=32768
5038 fi
5039 ;;
5040 *)
18d98188
PG
5041 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5042 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5045 else
5046 # Make teststring a little bigger before we do anything with it.
5047 # a 1K string should be a reasonable start.
5048 for i in 1 2 3 4 5 6 7 8 ; do
5049 teststring=$teststring$teststring
5050 done
5051 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5052 # If test is not a shell built-in, we'll probably end up computing a
5053 # maximum length that is only half of the actual maximum length, but
5054 # we can't tell.
43e02a8a
RW
5055 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5056 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
5057 test $i != 17 # 1/2 MB should be enough
5058 do
5059 i=`expr $i + 1`
5060 teststring=$teststring$teststring
5061 done
5062 # Only check the string length outside the loop.
5063 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5064 teststring=
5065 # Add a significant safety factor because C++ compilers can tack on
5066 # massive amounts of additional arguments before passing them to the
5067 # linker. It appears as though 1/2 is a usable value.
5068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5069 fi
1cf3d07d 5070 ;;
6dab073b
MS
5071 esac
5072
5073fi
5074
1cf3d07d 5075if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5077$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6dab073b 5078else
5213506e
RW
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5080$as_echo "none" >&6; }
6dab073b 5081fi
1cf3d07d 5082max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
5083
5084
dfac8a13 5085
0fd91e0a 5086
dfac8a13 5087
1cf3d07d 5088
1cf3d07d
SE
5089: ${CP="cp -f"}
5090: ${MV="mv -f"}
5091: ${RM="rm -f"}
5092
5213506e
RW
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5094$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5095# Try some XSI features
5096xsi_shell=no
5097( _lt_dummy="a/b/c"
5098 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
18d98188
PG
5099 = c,a/b,, \
5100 && eval 'test $(( 1 + 1 )) -eq 2 \
5101 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5102 && xsi_shell=yes
5213506e
RW
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5104$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5105
5106
5213506e
RW
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5108$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5109lt_shell_append=no
5110( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5111 >/dev/null 2>&1 \
5112 && lt_shell_append=yes
5213506e
RW
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5114$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5115
5116
5117if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5118 lt_unset=unset
0fd91e0a 5119else
1cf3d07d 5120 lt_unset=false
0fd91e0a
AO
5121fi
5122
1cf3d07d
SE
5123
5124
5125
5126
5127# test EBCDIC or ASCII
5128case `echo X|tr X '\101'` in
5129 A) # ASCII based system
5130 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5131 lt_SP2NL='tr \040 \012'
5132 lt_NL2SP='tr \015\012 \040\040'
5133 ;;
5134 *) # EBCDIC based system
5135 lt_SP2NL='tr \100 \n'
5136 lt_NL2SP='tr \r\n \100\100'
5137 ;;
5138esac
5139
5140
5141
5142
5143
5144
5145
5146
5147
5213506e
RW
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5149$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5150if ${lt_cv_ld_reload_flag+:} false; then :
5213506e 5151 $as_echo_n "(cached) " >&6
dfac8a13 5152else
1cf3d07d
SE
5153 lt_cv_ld_reload_flag='-r'
5154fi
5213506e
RW
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5156$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5157reload_flag=$lt_cv_ld_reload_flag
5158case $reload_flag in
5159"" | " "*) ;;
5160*) reload_flag=" $reload_flag" ;;
5161esac
5162reload_cmds='$LD$reload_flag -o $output$reload_objs'
5163case $host_os in
5164 darwin*)
5165 if test "$GCC" = yes; then
5166 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5167 else
5168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5169 fi
5170 ;;
5171esac
5172
5173
5174
5175
5176
5177
5178
5179
5180
18d98188
PG
5181if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5183set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5186if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 5187 $as_echo_n "(cached) " >&6
18d98188
PG
5188else
5189 if test -n "$OBJDUMP"; then
5190 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5213506e 5197 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 5199 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
5201 break 2
5202 fi
5203done
5213506e
RW
5204 done
5205IFS=$as_save_IFS
18d98188
PG
5206
5207fi
5208fi
5209OBJDUMP=$ac_cv_prog_OBJDUMP
5210if test -n "$OBJDUMP"; then
5213506e
RW
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5212$as_echo "$OBJDUMP" >&6; }
18d98188 5213else
5213506e
RW
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215$as_echo "no" >&6; }
18d98188
PG
5216fi
5217
5213506e 5218
18d98188
PG
5219fi
5220if test -z "$ac_cv_prog_OBJDUMP"; then
5221 ac_ct_OBJDUMP=$OBJDUMP
5222 # Extract the first word of "objdump", so it can be a program name with args.
5223set dummy objdump; ac_word=$2
5213506e
RW
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5226if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5213506e 5227 $as_echo_n "(cached) " >&6
18d98188
PG
5228else
5229 if test -n "$ac_ct_OBJDUMP"; then
5230 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5213506e 5237 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 5239 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
5241 break 2
5242 fi
5243done
5213506e
RW
5244 done
5245IFS=$as_save_IFS
18d98188 5246
18d98188
PG
5247fi
5248fi
5249ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5250if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5252$as_echo "$ac_ct_OBJDUMP" >&6; }
18d98188 5253else
5213506e
RW
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
18d98188
PG
5256fi
5257
5213506e
RW
5258 if test "x$ac_ct_OBJDUMP" = x; then
5259 OBJDUMP="false"
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262yes:)
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265ac_tool_warned=yes ;;
5266esac
5267 OBJDUMP=$ac_ct_OBJDUMP
5268 fi
18d98188
PG
5269else
5270 OBJDUMP="$ac_cv_prog_OBJDUMP"
5271fi
5272
5273test -z "$OBJDUMP" && OBJDUMP=objdump
5274
5275
5276
5277
5278
5279
5280
5281
1cf3d07d 5282
5213506e
RW
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5284$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5285if ${lt_cv_deplibs_check_method+:} false; then :
5213506e 5286 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5287else
5288 lt_cv_file_magic_cmd='$MAGIC_CMD'
5289lt_cv_file_magic_test_file=
5290lt_cv_deplibs_check_method='unknown'
5291# Need to set the preceding variable on all platforms that support
5292# interlibrary dependencies.
5293# 'none' -- dependencies not supported.
5294# `unknown' -- same as none, but documents that we really don't know.
5295# 'pass_all' -- all dependencies passed with no checks.
5296# 'test_compile' -- check by making test program.
5297# 'file_magic [[regex]]' -- check by looking for files in library path
5298# which responds to the $file_magic_cmd with a given extended regex.
5299# If you have `file' or equivalent on your system and you're not sure
5300# whether `pass_all' will *always* work, you probably want this one.
5301
5302case $host_os in
3e7b7e2b 5303aix[4-9]*)
1cf3d07d
SE
5304 lt_cv_deplibs_check_method=pass_all
5305 ;;
5306
5307beos*)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310
5311bsdi[45]*)
5312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5313 lt_cv_file_magic_cmd='/usr/bin/file -L'
5314 lt_cv_file_magic_test_file=/shlib/libc.so
5315 ;;
5316
5317cygwin*)
5318 # func_win32_libid is a shell function defined in ltmain.sh
5319 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5320 lt_cv_file_magic_cmd='func_win32_libid'
5321 ;;
5322
5323mingw* | pw32*)
5324 # Base MSYS/MinGW do not provide the 'file' command needed by
5325 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5326 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
5327 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5328 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
5329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5330 lt_cv_file_magic_cmd='func_win32_libid'
5331 else
5332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5333 lt_cv_file_magic_cmd='$OBJDUMP -f'
5334 fi
5335 ;;
5336
43e02a8a 5337cegcc*)
18d98188
PG
5338 # use the weaker test based on 'objdump'. See mingw*.
5339 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5340 lt_cv_file_magic_cmd='$OBJDUMP -f'
5341 ;;
5342
1cf3d07d
SE
5343darwin* | rhapsody*)
5344 lt_cv_deplibs_check_method=pass_all
0fd91e0a 5345 ;;
1cf3d07d
SE
5346
5347freebsd* | dragonfly*)
5348 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5349 case $host_cpu in
5350 i*86 )
5351 # Not sure whether the presence of OpenBSD here was a mistake.
5352 # Let's accept both of them until this is cleared up.
5353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5354 lt_cv_file_magic_cmd=/usr/bin/file
5355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5356 ;;
5357 esac
5358 else
5359 lt_cv_deplibs_check_method=pass_all
5360 fi
5361 ;;
5362
5363gnu*)
5364 lt_cv_deplibs_check_method=pass_all
0fd91e0a 5365 ;;
1cf3d07d 5366
43e02a8a
RW
5367haiku*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
1cf3d07d
SE
5371hpux10.20* | hpux11*)
5372 lt_cv_file_magic_cmd=/usr/bin/file
5373 case $host_cpu in
5374 ia64*)
5375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5376 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5377 ;;
5378 hppa*64*)
43e02a8a 5379 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
5380 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5381 ;;
0fd91e0a 5382 *)
43e02a8a 5383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
5384 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5385 ;;
5386 esac
5387 ;;
c45f211e 5388
1cf3d07d
SE
5389interix[3-9]*)
5390 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5392 ;;
dfac8a13 5393
1cf3d07d
SE
5394irix5* | irix6* | nonstopux*)
5395 case $LD in
5396 *-32|*"-32 ") libmagic=32-bit;;
5397 *-n32|*"-n32 ") libmagic=N32;;
5398 *-64|*"-64 ") libmagic=64-bit;;
5399 *) libmagic=never-match;;
5400 esac
5401 lt_cv_deplibs_check_method=pass_all
0fd91e0a 5402 ;;
0fd91e0a 5403
1cf3d07d 5404# This must be Linux ELF.
e9085da5 5405linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
0fd91e0a 5408
1cf3d07d
SE
5409netbsd*)
5410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
0fd91e0a 5412 else
1cf3d07d 5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
0fd91e0a 5414 fi
1cf3d07d
SE
5415 ;;
5416
5417newos6*)
5418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5419 lt_cv_file_magic_cmd=/usr/bin/file
5420 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5421 ;;
5422
5423*nto* | *qnx*)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
dfac8a13 5426
1cf3d07d
SE
5427openbsd*)
5428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5430 else
5431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
dfac8a13
TT
5432 fi
5433 ;;
1cf3d07d
SE
5434
5435osf3* | osf4* | osf5*)
5436 lt_cv_deplibs_check_method=pass_all
5437 ;;
5438
5439rdos*)
5440 lt_cv_deplibs_check_method=pass_all
5441 ;;
5442
5443solaris*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446
5447sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450
5451sysv4 | sysv4.3*)
5452 case $host_vendor in
5453 motorola)
5454 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]'
5455 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5456 ;;
5457 ncr)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460 sequent)
5461 lt_cv_file_magic_cmd='/bin/file'
5462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5463 ;;
5464 sni)
5465 lt_cv_file_magic_cmd='/bin/file'
5466 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5467 lt_cv_file_magic_test_file=/lib/libc.so
5468 ;;
5469 siemens)
5470 lt_cv_deplibs_check_method=pass_all
5471 ;;
5472 pc)
5473 lt_cv_deplibs_check_method=pass_all
5474 ;;
5475 esac
5476 ;;
5477
5478tpf*)
5479 lt_cv_deplibs_check_method=pass_all
5480 ;;
0fd91e0a 5481esac
dfac8a13 5482
1cf3d07d 5483fi
5213506e
RW
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5485$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
5486file_magic_cmd=$lt_cv_file_magic_cmd
5487deplibs_check_method=$lt_cv_deplibs_check_method
5488test -z "$deplibs_check_method" && deplibs_check_method=unknown
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
a8aea176 5501if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5502 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5506if ${ac_cv_prog_AR+:} false; then :
5213506e 5507 $as_echo_n "(cached) " >&6
025fd00e 5508else
1cf3d07d
SE
5509 if test -n "$AR"; then
5510 ac_cv_prog_AR="$AR" # Let the user override the test.
025fd00e 5511else
a8aea176
NN
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5213506e 5517 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5519 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
5521 break 2
5522 fi
5523done
5213506e
RW
5524 done
5525IFS=$as_save_IFS
a8aea176 5526
025fd00e
TT
5527fi
5528fi
1cf3d07d
SE
5529AR=$ac_cv_prog_AR
5530if test -n "$AR"; then
5213506e
RW
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5532$as_echo "$AR" >&6; }
025fd00e 5533else
5213506e
RW
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
025fd00e
TT
5536fi
5537
5213506e 5538
a8aea176 5539fi
1cf3d07d
SE
5540if test -z "$ac_cv_prog_AR"; then
5541 ac_ct_AR=$AR
5542 # Extract the first word of "ar", so it can be a program name with args.
5543set dummy ar; ac_word=$2
5213506e
RW
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5546if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 5547 $as_echo_n "(cached) " >&6
025fd00e 5548else
1cf3d07d
SE
5549 if test -n "$ac_ct_AR"; then
5550 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
025fd00e 5551else
a8aea176
NN
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5213506e 5557 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5559 ac_cv_prog_ac_ct_AR="ar"
5213506e 5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
5561 break 2
5562 fi
5563done
5213506e
RW
5564 done
5565IFS=$as_save_IFS
a8aea176 5566
025fd00e
TT
5567fi
5568fi
1cf3d07d
SE
5569ac_ct_AR=$ac_cv_prog_ac_ct_AR
5570if test -n "$ac_ct_AR"; then
5213506e
RW
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5572$as_echo "$ac_ct_AR" >&6; }
025fd00e 5573else
5213506e
RW
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
025fd00e
TT
5576fi
5577
5213506e
RW
5578 if test "x$ac_ct_AR" = x; then
5579 AR="false"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582yes:)
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585ac_tool_warned=yes ;;
5586esac
5587 AR=$ac_ct_AR
5588 fi
025fd00e 5589else
1cf3d07d 5590 AR="$ac_cv_prog_AR"
025fd00e
TT
5591fi
5592
1cf3d07d
SE
5593test -z "$AR" && AR=ar
5594test -z "$AR_FLAGS" && AR_FLAGS=cru
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
a8aea176
NN
5606if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
0fd91e0a 5608set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5611if ${ac_cv_prog_STRIP+:} false; then :
5213506e 5612 $as_echo_n "(cached) " >&6
025fd00e 5613else
0fd91e0a
AO
5614 if test -n "$STRIP"; then
5615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e 5616else
a8aea176
NN
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5213506e 5622 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 5624 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
5626 break 2
5627 fi
5628done
5213506e
RW
5629 done
5630IFS=$as_save_IFS
a8aea176 5631
025fd00e
TT
5632fi
5633fi
a8aea176 5634STRIP=$ac_cv_prog_STRIP
0fd91e0a 5635if test -n "$STRIP"; then
5213506e
RW
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5637$as_echo "$STRIP" >&6; }
025fd00e 5638else
5213506e
RW
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
025fd00e
TT
5641fi
5642
5213506e 5643
a8aea176 5644fi
0fd91e0a 5645if test -z "$ac_cv_prog_STRIP"; then
a8aea176 5646 ac_ct_STRIP=$STRIP
0fd91e0a
AO
5647 # Extract the first word of "strip", so it can be a program name with args.
5648set dummy strip; ac_word=$2
5213506e
RW
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5651if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 5652 $as_echo_n "(cached) " >&6
025fd00e 5653else
a8aea176
NN
5654 if test -n "$ac_ct_STRIP"; then
5655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
025fd00e 5656else
a8aea176
NN
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5213506e 5662 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 5664 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
5666 break 2
5667 fi
5668done
5213506e
RW
5669 done
5670IFS=$as_save_IFS
a8aea176 5671
025fd00e
TT
5672fi
5673fi
a8aea176
NN
5674ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5675if test -n "$ac_ct_STRIP"; then
5213506e
RW
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5677$as_echo "$ac_ct_STRIP" >&6; }
025fd00e 5678else
5213506e
RW
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
025fd00e
TT
5681fi
5682
5213506e
RW
5683 if test "x$ac_ct_STRIP" = x; then
5684 STRIP=":"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687yes:)
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690ac_tool_warned=yes ;;
5691esac
5692 STRIP=$ac_ct_STRIP
5693 fi
025fd00e 5694else
a8aea176 5695 STRIP="$ac_cv_prog_STRIP"
025fd00e
TT
5696fi
5697
1cf3d07d 5698test -z "$STRIP" && STRIP=:
025fd00e 5699
c45f211e 5700
025fd00e 5701
0fd91e0a 5702
0fd91e0a 5703
a8aea176 5704
1cf3d07d
SE
5705if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5707set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5710if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 5711 $as_echo_n "(cached) " >&6
025fd00e 5712else
1cf3d07d
SE
5713 if test -n "$RANLIB"; then
5714 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5213506e 5721 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5723 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5725 break 2
5726 fi
5727done
5213506e
RW
5728 done
5729IFS=$as_save_IFS
0fd91e0a 5730
1cf3d07d
SE
5731fi
5732fi
5733RANLIB=$ac_cv_prog_RANLIB
5734if test -n "$RANLIB"; then
5213506e
RW
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5736$as_echo "$RANLIB" >&6; }
1cf3d07d 5737else
5213506e
RW
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739$as_echo "no" >&6; }
1cf3d07d
SE
5740fi
5741
5213506e 5742
1cf3d07d
SE
5743fi
5744if test -z "$ac_cv_prog_RANLIB"; then
5745 ac_ct_RANLIB=$RANLIB
5746 # Extract the first word of "ranlib", so it can be a program name with args.
5747set dummy ranlib; ac_word=$2
5213506e
RW
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5750if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 5751 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5752else
5753 if test -n "$ac_ct_RANLIB"; then
5754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5213506e 5761 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5763 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 5765 break 2
0fd91e0a 5766 fi
1cf3d07d 5767done
5213506e
RW
5768 done
5769IFS=$as_save_IFS
025fd00e 5770
1cf3d07d
SE
5771fi
5772fi
5773ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5774if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5776$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 5777else
5213506e
RW
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
1cf3d07d
SE
5780fi
5781
5213506e
RW
5782 if test "x$ac_ct_RANLIB" = x; then
5783 RANLIB=":"
5784 else
5785 case $cross_compiling:$ac_tool_warned in
5786yes:)
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789ac_tool_warned=yes ;;
5790esac
5791 RANLIB=$ac_ct_RANLIB
5792 fi
1cf3d07d
SE
5793else
5794 RANLIB="$ac_cv_prog_RANLIB"
5795fi
5796
5797test -z "$RANLIB" && RANLIB=:
5798
5799
5800
5801
5802
5803
5804# Determine commands to create old-style static archives.
18d98188 5805old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5806old_postinstall_cmds='chmod 644 $oldlib'
5807old_postuninstall_cmds=
5808
5809if test -n "$RANLIB"; then
5810 case $host_os in
5811 openbsd*)
5812 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5813 ;;
5814 *)
5815 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5816 ;;
5817 esac
5818 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5819fi
5820
43e02a8a
RW
5821case $host_os in
5822 darwin*)
5823 lock_old_archive_extraction=yes ;;
5824 *)
5825 lock_old_archive_extraction=no ;;
5826esac
5827
5828
5829
5830
5831
5832
1cf3d07d
SE
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866# If no C compiler was specified, use CC.
5867LTCC=${LTCC-"$CC"}
5868
5869# If no C compiler flags were specified, use CFLAGS.
5870LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5871
5872# Allow CC to be a program name with arguments.
5873compiler=$CC
5874
5875
5876# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5878$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 5879if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5213506e 5880 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5881else
5882
5883# These are sane defaults that work on at least a few old systems.
5884# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5885
5886# Character class describing NM global symbol codes.
5887symcode='[BCDEGRST]'
5888
5889# Regexp to match symbols that can be accessed directly from C.
5890sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5891
5892# Define system-specific variables.
5893case $host_os in
5894aix*)
5895 symcode='[BCDT]'
5896 ;;
18d98188 5897cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
5898 symcode='[ABCDGISTW]'
5899 ;;
5900hpux*)
5901 if test "$host_cpu" = ia64; then
5902 symcode='[ABCDEGRST]'
f5cc59a7 5903 fi
f5cc59a7 5904 ;;
1cf3d07d
SE
5905irix* | nonstopux*)
5906 symcode='[BCDEGRST]'
5907 ;;
5908osf*)
5909 symcode='[BCDEGQRST]'
5910 ;;
5911solaris*)
5912 symcode='[BDRT]'
5913 ;;
5914sco3.2v5*)
5915 symcode='[DT]'
5916 ;;
5917sysv4.2uw2*)
5918 symcode='[DT]'
5919 ;;
5920sysv5* | sco5v6* | unixware* | OpenUNIX*)
5921 symcode='[ABDT]'
5922 ;;
5923sysv4)
5924 symcode='[DFNSTU]'
5925 ;;
5926esac
5927
5928# If we're using GNU nm, then use its standard symbol codes.
5929case `$NM -V 2>&1` in
5930*GNU* | *'with BFD'*)
5931 symcode='[ABCDGIRSTW]' ;;
5932esac
5933
5934# Transform an extracted symbol line into a proper C declaration.
5935# Some systems (esp. on ia64) link data and code symbols differently,
5936# so use this general approach.
5937lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5938
5939# Transform an extracted symbol line into symbol name and symbol address
5940lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18d98188 5941lt_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
5942
5943# Handle CRLF in mingw tool chain
5944opt_cr=
5945case $build_os in
5946mingw*)
5947 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5948 ;;
5949esac
5950
5951# Try without a prefix underscore, then with it.
5952for ac_symprfx in "" "_"; do
5953
5954 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5955 symxfrm="\\1 $ac_symprfx\\2 \\2"
5956
5957 # Write the raw and C identifiers.
5958 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5959 # Fake it for dumpbin and say T for any non-static function
5960 # and D for any global variable.
5961 # Also find C++ and __fastcall symbols from MSVC++,
5962 # which start with @ or ?.
5963 lt_cv_sys_global_symbol_pipe="$AWK '"\
5964" {last_section=section; section=\$ 3};"\
5965" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5966" \$ 0!~/External *\|/{next};"\
5967" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5968" {if(hide[section]) next};"\
5969" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5970" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5971" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5972" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5973" ' prfx=^$ac_symprfx"
5974 else
5975 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5976 fi
5977
5978 # Check to see that the pipe works correctly.
5979 pipe_works=no
5980
5981 rm -f conftest*
5982 cat > conftest.$ac_ext <<_LT_EOF
5983#ifdef __cplusplus
5984extern "C" {
5985#endif
5986char nm_test_var;
5987void nm_test_func(void);
5988void nm_test_func(void){}
5989#ifdef __cplusplus
5990}
5991#endif
5992int main(){nm_test_var='a';nm_test_func();return(0);}
5993_LT_EOF
f5cc59a7 5994
5213506e 5995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a8aea176
NN
5996 (eval $ac_compile) 2>&5
5997 ac_status=$?
5213506e
RW
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }; then
1cf3d07d
SE
6000 # Now try to grab the symbols.
6001 nlist=conftest.nm
43e02a8a
RW
6002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6003 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 6004 ac_status=$?
5213506e
RW
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6007 # Try sorting and uniquifying the output.
6008 if sort "$nlist" | uniq > "$nlist"T; then
6009 mv -f "$nlist"T "$nlist"
6010 else
6011 rm -f "$nlist"T
6012 fi
0ccf2c33 6013
1cf3d07d
SE
6014 # Make sure that we snagged all the symbols we need.
6015 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6016 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6017 cat <<_LT_EOF > conftest.$ac_ext
6018#ifdef __cplusplus
6019extern "C" {
6020#endif
a8aea176 6021
1cf3d07d
SE
6022_LT_EOF
6023 # Now generate the symbol file.
6024 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
a8aea176 6025
1cf3d07d 6026 cat <<_LT_EOF >> conftest.$ac_ext
a8aea176 6027
1cf3d07d
SE
6028/* The mapping between symbol names and symbols. */
6029const struct {
6030 const char *name;
6031 void *address;
6032}
6033lt__PROGRAM__LTX_preloaded_symbols[] =
6034{
6035 { "@PROGRAM@", (void *) 0 },
6036_LT_EOF
6037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6038 cat <<\_LT_EOF >> conftest.$ac_ext
6039 {0, (void *) 0}
6040};
6041
6042/* This works around a problem in FreeBSD linker */
6043#ifdef FREEBSD_WORKAROUND
6044static const void *lt_preloaded_setup() {
6045 return lt__PROGRAM__LTX_preloaded_symbols;
6046}
6047#endif
6048
6049#ifdef __cplusplus
6050}
6051#endif
6052_LT_EOF
6053 # Now try linking the two files.
6054 mv conftest.$ac_objext conftstm.$ac_objext
6055 lt_save_LIBS="$LIBS"
6056 lt_save_CFLAGS="$CFLAGS"
6057 LIBS="conftstm.$ac_objext"
6058 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6060 (eval $ac_link) 2>&5
6061 ac_status=$?
5213506e
RW
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6064 pipe_works=yes
6065 fi
6066 LIBS="$lt_save_LIBS"
6067 CFLAGS="$lt_save_CFLAGS"
6068 else
6069 echo "cannot find nm_test_func in $nlist" >&5
6070 fi
6071 else
6072 echo "cannot find nm_test_var in $nlist" >&5
6073 fi
6074 else
6075 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6076 fi
6077 else
6078 echo "$progname: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 fi
18d98188 6081 rm -rf conftest* conftst*
1cf3d07d
SE
6082
6083 # Do not use the global_symbol_pipe unless it works.
6084 if test "$pipe_works" = yes; then
6085 break
6086 else
6087 lt_cv_sys_global_symbol_pipe=
6088 fi
6089done
6090
6091fi
6092
6093if test -z "$lt_cv_sys_global_symbol_pipe"; then
6094 lt_cv_sys_global_symbol_to_cdecl=
6095fi
6096if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6098$as_echo "failed" >&6; }
1cf3d07d 6099else
5213506e
RW
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6101$as_echo "ok" >&6; }
1cf3d07d
SE
6102fi
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
18d98188
PG
6118
6119
6120
6121
6122
1cf3d07d
SE
6123
6124
5213506e
RW
6125# Check whether --enable-libtool-lock was given.
6126if test "${enable_libtool_lock+set}" = set; then :
6127 enableval=$enable_libtool_lock;
6128fi
1cf3d07d 6129
1cf3d07d
SE
6130test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6131
6132# Some flags need to be propagated to the compiler or linker for good
6133# libtool support.
6134case $host in
6135ia64-*-hpux*)
6136 # Find out which ABI we are using.
6137 echo 'int i;' > conftest.$ac_ext
5213506e 6138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6139 (eval $ac_compile) 2>&5
6140 ac_status=$?
5213506e
RW
6141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142 test $ac_status = 0; }; then
1cf3d07d
SE
6143 case `/usr/bin/file conftest.$ac_objext` in
6144 *ELF-32*)
6145 HPUX_IA64_MODE="32"
6146 ;;
6147 *ELF-64*)
6148 HPUX_IA64_MODE="64"
6149 ;;
6150 esac
6151 fi
6152 rm -rf conftest*
6153 ;;
6154*-*-irix6*)
6155 # Find out which ABI we are using.
43e02a8a 6156 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6158 (eval $ac_compile) 2>&5
6159 ac_status=$?
5213506e
RW
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }; then
1cf3d07d
SE
6162 if test "$lt_cv_prog_gnu_ld" = yes; then
6163 case `/usr/bin/file conftest.$ac_objext` in
6164 *32-bit*)
6165 LD="${LD-ld} -melf32bsmip"
6166 ;;
6167 *N32*)
6168 LD="${LD-ld} -melf32bmipn32"
6169 ;;
6170 *64-bit*)
6171 LD="${LD-ld} -melf64bmip"
6172 ;;
6173 esac
6174 else
6175 case `/usr/bin/file conftest.$ac_objext` in
6176 *32-bit*)
6177 LD="${LD-ld} -32"
6178 ;;
6179 *N32*)
6180 LD="${LD-ld} -n32"
6181 ;;
6182 *64-bit*)
6183 LD="${LD-ld} -64"
6184 ;;
6185 esac
6186 fi
6187 fi
6188 rm -rf conftest*
6189 ;;
6190
3cbe17f7 6191x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d
SE
6192s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6193 # Find out which ABI we are using.
6194 echo 'int i;' > conftest.$ac_ext
5213506e 6195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6196 (eval $ac_compile) 2>&5
6197 ac_status=$?
5213506e
RW
6198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; }; then
1cf3d07d
SE
6200 case `/usr/bin/file conftest.o` in
6201 *32-bit*)
6202 case $host in
6203 x86_64-*kfreebsd*-gnu)
6204 LD="${LD-ld} -m elf_i386_fbsd"
6205 ;;
6206 x86_64-*linux*)
e6d5f8c9
L
6207 case `/usr/bin/file conftest.o` in
6208 *x86-64*)
6209 LD="${LD-ld} -m elf32_x86_64"
6210 ;;
6211 *)
6212 LD="${LD-ld} -m elf_i386"
6213 ;;
6214 esac
1cf3d07d 6215 ;;
3cbe17f7
AM
6216 powerpc64le-*linux*)
6217 LD="${LD-ld} -m elf32lppclinux"
6218 ;;
6219 powerpc64-*linux*)
1cf3d07d
SE
6220 LD="${LD-ld} -m elf32ppclinux"
6221 ;;
6222 s390x-*linux*)
6223 LD="${LD-ld} -m elf_s390"
6224 ;;
6225 sparc64-*linux*)
6226 LD="${LD-ld} -m elf32_sparc"
6227 ;;
6228 esac
6229 ;;
6230 *64-bit*)
6231 case $host in
6232 x86_64-*kfreebsd*-gnu)
6233 LD="${LD-ld} -m elf_x86_64_fbsd"
6234 ;;
6235 x86_64-*linux*)
6236 LD="${LD-ld} -m elf_x86_64"
6237 ;;
3cbe17f7
AM
6238 powerpcle-*linux*)
6239 LD="${LD-ld} -m elf64lppc"
6240 ;;
6241 powerpc-*linux*)
1cf3d07d
SE
6242 LD="${LD-ld} -m elf64ppc"
6243 ;;
6244 s390*-*linux*|s390*-*tpf*)
6245 LD="${LD-ld} -m elf64_s390"
6246 ;;
6247 sparc*-*linux*)
6248 LD="${LD-ld} -m elf64_sparc"
6249 ;;
6250 esac
6251 ;;
6252 esac
6253 fi
6254 rm -rf conftest*
6255 ;;
6256
6257*-*-sco3.2v5*)
6258 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6259 SAVE_CFLAGS="$CFLAGS"
6260 CFLAGS="$CFLAGS -belf"
5213506e
RW
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6262$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6263if ${lt_cv_cc_needs_belf+:} false; then :
5213506e 6264 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6265else
6266 ac_ext=c
6267ac_cpp='$CPP $CPPFLAGS'
6268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270ac_compiler_gnu=$ac_cv_c_compiler_gnu
6271
6272 if test x$gcc_no_link = xyes; then
22e05272 6273 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 6274fi
5213506e 6275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6276/* end confdefs.h. */
6277
6278int
6279main ()
6280{
6281
6282 ;
6283 return 0;
6284}
6285_ACEOF
5213506e 6286if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6287 lt_cv_cc_needs_belf=yes
6288else
5213506e 6289 lt_cv_cc_needs_belf=no
1cf3d07d 6290fi
5213506e
RW
6291rm -f core conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6293 ac_ext=c
6294ac_cpp='$CPP $CPPFLAGS'
6295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298
6299fi
5213506e
RW
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6301$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6302 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6303 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6304 CFLAGS="$SAVE_CFLAGS"
6305 fi
6306 ;;
6307sparc*-*solaris*)
6308 # Find out which ABI we are using.
6309 echo 'int i;' > conftest.$ac_ext
5213506e 6310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6311 (eval $ac_compile) 2>&5
6312 ac_status=$?
5213506e
RW
6313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6314 test $ac_status = 0; }; then
1cf3d07d
SE
6315 case `/usr/bin/file conftest.o` in
6316 *64-bit*)
6317 case $lt_cv_prog_gnu_ld in
6318 yes*) LD="${LD-ld} -m elf64_sparc" ;;
18d98188
PG
6319 *)
6320 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6321 LD="${LD-ld} -64"
6322 fi
6323 ;;
1cf3d07d
SE
6324 esac
6325 ;;
6326 esac
6327 fi
6328 rm -rf conftest*
6329 ;;
6330esac
6331
6332need_locks="$enable_libtool_lock"
6333
18d98188
PG
6334
6335 case $host_os in
6336 rhapsody* | darwin*)
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6339set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6342if ${ac_cv_prog_DSYMUTIL+:} false; then :
5213506e 6343 $as_echo_n "(cached) " >&6
1cf3d07d 6344else
18d98188
PG
6345 if test -n "$DSYMUTIL"; then
6346 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
1cf3d07d 6350do
18d98188
PG
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
5213506e 6353 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6355 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188 6357 break 2
1cf3d07d 6358 fi
18d98188 6359done
5213506e
RW
6360 done
6361IFS=$as_save_IFS
18d98188
PG
6362
6363fi
6364fi
6365DSYMUTIL=$ac_cv_prog_DSYMUTIL
6366if test -n "$DSYMUTIL"; then
5213506e
RW
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6368$as_echo "$DSYMUTIL" >&6; }
18d98188 6369else
5213506e
RW
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371$as_echo "no" >&6; }
18d98188
PG
6372fi
6373
5213506e 6374
18d98188
PG
6375fi
6376if test -z "$ac_cv_prog_DSYMUTIL"; then
6377 ac_ct_DSYMUTIL=$DSYMUTIL
6378 # Extract the first word of "dsymutil", so it can be a program name with args.
6379set dummy dsymutil; ac_word=$2
5213506e
RW
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6382if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5213506e 6383 $as_echo_n "(cached) " >&6
18d98188
PG
6384else
6385 if test -n "$ac_ct_DSYMUTIL"; then
6386 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
5213506e 6393 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6395 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6397 break 2
6398 fi
6399done
5213506e
RW
6400 done
6401IFS=$as_save_IFS
18d98188 6402
18d98188
PG
6403fi
6404fi
6405ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6406if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6408$as_echo "$ac_ct_DSYMUTIL" >&6; }
18d98188 6409else
5213506e
RW
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
18d98188
PG
6412fi
6413
5213506e
RW
6414 if test "x$ac_ct_DSYMUTIL" = x; then
6415 DSYMUTIL=":"
6416 else
6417 case $cross_compiling:$ac_tool_warned in
6418yes:)
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421ac_tool_warned=yes ;;
6422esac
6423 DSYMUTIL=$ac_ct_DSYMUTIL
6424 fi
18d98188
PG
6425else
6426 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6427fi
6428
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6434if ${ac_cv_prog_NMEDIT+:} false; then :
5213506e 6435 $as_echo_n "(cached) " >&6
18d98188
PG
6436else
6437 if test -n "$NMEDIT"; then
6438 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
5213506e 6445 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6447 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6449 break 2
6450 fi
6451done
5213506e
RW
6452 done
6453IFS=$as_save_IFS
18d98188
PG
6454
6455fi
6456fi
6457NMEDIT=$ac_cv_prog_NMEDIT
6458if test -n "$NMEDIT"; then
5213506e
RW
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6460$as_echo "$NMEDIT" >&6; }
18d98188 6461else
5213506e
RW
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
18d98188
PG
6464fi
6465
5213506e 6466
18d98188
PG
6467fi
6468if test -z "$ac_cv_prog_NMEDIT"; then
6469 ac_ct_NMEDIT=$NMEDIT
6470 # Extract the first word of "nmedit", so it can be a program name with args.
6471set dummy nmedit; ac_word=$2
5213506e
RW
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6474if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5213506e 6475 $as_echo_n "(cached) " >&6
18d98188
PG
6476else
6477 if test -n "$ac_ct_NMEDIT"; then
6478 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
5213506e 6485 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6487 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6489 break 2
6490 fi
6491done
5213506e
RW
6492 done
6493IFS=$as_save_IFS
18d98188 6494
18d98188
PG
6495fi
6496fi
6497ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6498if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6500$as_echo "$ac_ct_NMEDIT" >&6; }
18d98188 6501else
5213506e
RW
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
18d98188
PG
6504fi
6505
5213506e
RW
6506 if test "x$ac_ct_NMEDIT" = x; then
6507 NMEDIT=":"
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510yes:)
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513ac_tool_warned=yes ;;
6514esac
6515 NMEDIT=$ac_ct_NMEDIT
6516 fi
18d98188
PG
6517else
6518 NMEDIT="$ac_cv_prog_NMEDIT"
6519fi
6520
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6523set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6526if ${ac_cv_prog_LIPO+:} false; then :
5213506e 6527 $as_echo_n "(cached) " >&6
18d98188
PG
6528else
6529 if test -n "$LIPO"; then
6530 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
5213506e 6537 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6539 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6541 break 2
6542 fi
6543done
5213506e
RW
6544 done
6545IFS=$as_save_IFS
18d98188
PG
6546
6547fi
6548fi
6549LIPO=$ac_cv_prog_LIPO
6550if test -n "$LIPO"; then
5213506e
RW
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6552$as_echo "$LIPO" >&6; }
18d98188 6553else
5213506e
RW
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
18d98188
PG
6556fi
6557
5213506e 6558
18d98188
PG
6559fi
6560if test -z "$ac_cv_prog_LIPO"; then
6561 ac_ct_LIPO=$LIPO
6562 # Extract the first word of "lipo", so it can be a program name with args.
6563set dummy lipo; ac_word=$2
5213506e
RW
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6566if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5213506e 6567 $as_echo_n "(cached) " >&6
18d98188
PG
6568else
6569 if test -n "$ac_ct_LIPO"; then
6570 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
5213506e 6577 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6579 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6581 break 2
6582 fi
6583done
5213506e
RW
6584 done
6585IFS=$as_save_IFS
18d98188 6586
18d98188
PG
6587fi
6588fi
6589ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6590if test -n "$ac_ct_LIPO"; then
5213506e
RW
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6592$as_echo "$ac_ct_LIPO" >&6; }
18d98188 6593else
5213506e
RW
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
18d98188
PG
6596fi
6597
5213506e
RW
6598 if test "x$ac_ct_LIPO" = x; then
6599 LIPO=":"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602yes:)
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605ac_tool_warned=yes ;;
6606esac
6607 LIPO=$ac_ct_LIPO
6608 fi
18d98188
PG
6609else
6610 LIPO="$ac_cv_prog_LIPO"
6611fi
6612
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6615set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6618if ${ac_cv_prog_OTOOL+:} false; then :
5213506e 6619 $as_echo_n "(cached) " >&6
18d98188
PG
6620else
6621 if test -n "$OTOOL"; then
6622 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
5213506e 6629 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6631 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6633 break 2
6634 fi
6635done
5213506e
RW
6636 done
6637IFS=$as_save_IFS
18d98188
PG
6638
6639fi
6640fi
6641OTOOL=$ac_cv_prog_OTOOL
6642if test -n "$OTOOL"; then
5213506e
RW
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6644$as_echo "$OTOOL" >&6; }
18d98188 6645else
5213506e
RW
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647$as_echo "no" >&6; }
18d98188
PG
6648fi
6649
5213506e 6650
18d98188
PG
6651fi
6652if test -z "$ac_cv_prog_OTOOL"; then
6653 ac_ct_OTOOL=$OTOOL
6654 # Extract the first word of "otool", so it can be a program name with args.
6655set dummy otool; ac_word=$2
5213506e
RW
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6658if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5213506e 6659 $as_echo_n "(cached) " >&6
18d98188
PG
6660else
6661 if test -n "$ac_ct_OTOOL"; then
6662 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
5213506e 6669 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6671 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6673 break 2
6674 fi
6675done
5213506e
RW
6676 done
6677IFS=$as_save_IFS
18d98188 6678
18d98188
PG
6679fi
6680fi
6681ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6682if test -n "$ac_ct_OTOOL"; then
5213506e
RW
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6684$as_echo "$ac_ct_OTOOL" >&6; }
18d98188 6685else
5213506e
RW
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687$as_echo "no" >&6; }
18d98188
PG
6688fi
6689
5213506e
RW
6690 if test "x$ac_ct_OTOOL" = x; then
6691 OTOOL=":"
6692 else
6693 case $cross_compiling:$ac_tool_warned in
6694yes:)
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697ac_tool_warned=yes ;;
6698esac
6699 OTOOL=$ac_ct_OTOOL
6700 fi
18d98188
PG
6701else
6702 OTOOL="$ac_cv_prog_OTOOL"
6703fi
6704
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6707set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6710if ${ac_cv_prog_OTOOL64+:} false; then :
5213506e 6711 $as_echo_n "(cached) " >&6
18d98188
PG
6712else
6713 if test -n "$OTOOL64"; then
6714 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
5213506e 6721 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6723 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6725 break 2
6726 fi
6727done
5213506e
RW
6728 done
6729IFS=$as_save_IFS
18d98188
PG
6730
6731fi
6732fi
6733OTOOL64=$ac_cv_prog_OTOOL64
6734if test -n "$OTOOL64"; then
5213506e
RW
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6736$as_echo "$OTOOL64" >&6; }
18d98188 6737else
5213506e
RW
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739$as_echo "no" >&6; }
18d98188
PG
6740fi
6741
5213506e 6742
18d98188
PG
6743fi
6744if test -z "$ac_cv_prog_OTOOL64"; then
6745 ac_ct_OTOOL64=$OTOOL64
6746 # Extract the first word of "otool64", so it can be a program name with args.
6747set dummy otool64; ac_word=$2
5213506e
RW
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6750if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5213506e 6751 $as_echo_n "(cached) " >&6
18d98188
PG
6752else
6753 if test -n "$ac_ct_OTOOL64"; then
6754 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
5213506e 6761 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6763 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6765 break 2
6766 fi
6767done
5213506e
RW
6768 done
6769IFS=$as_save_IFS
18d98188 6770
18d98188
PG
6771fi
6772fi
6773ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6774if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6776$as_echo "$ac_ct_OTOOL64" >&6; }
18d98188 6777else
5213506e
RW
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779$as_echo "no" >&6; }
18d98188
PG
6780fi
6781
5213506e
RW
6782 if test "x$ac_ct_OTOOL64" = x; then
6783 OTOOL64=":"
6784 else
6785 case $cross_compiling:$ac_tool_warned in
6786yes:)
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789ac_tool_warned=yes ;;
6790esac
6791 OTOOL64=$ac_ct_OTOOL64
6792 fi
18d98188
PG
6793else
6794 OTOOL64="$ac_cv_prog_OTOOL64"
6795fi
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
5213506e
RW
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6824$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 6825if ${lt_cv_apple_cc_single_mod+:} false; then :
5213506e 6826 $as_echo_n "(cached) " >&6
18d98188
PG
6827else
6828 lt_cv_apple_cc_single_mod=no
6829 if test -z "${LT_MULTI_MODULE}"; then
6830 # By default we will add the -single_module flag. You can override
6831 # by either setting the environment variable LT_MULTI_MODULE
6832 # non-empty at configure time, or by adding -multi_module to the
6833 # link flags.
6834 rm -rf libconftest.dylib*
6835 echo "int foo(void){return 1;}" > conftest.c
6836 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6837-dynamiclib -Wl,-single_module conftest.c" >&5
6838 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6839 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6840 _lt_result=$?
6841 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6842 lt_cv_apple_cc_single_mod=yes
6843 else
6844 cat conftest.err >&5
6845 fi
6846 rm -rf libconftest.dylib*
6847 rm -f conftest.*
6848 fi
6849fi
5213506e
RW
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6851$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6853$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 6854if ${lt_cv_ld_exported_symbols_list+:} false; then :
5213506e 6855 $as_echo_n "(cached) " >&6
18d98188
PG
6856else
6857 lt_cv_ld_exported_symbols_list=no
6858 save_LDFLAGS=$LDFLAGS
6859 echo "_main" > conftest.sym
6860 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6861 if test x$gcc_no_link = xyes; then
22e05272 6862 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18d98188 6863fi
5213506e 6864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18d98188
PG
6865/* end confdefs.h. */
6866
6867int
6868main ()
6869{
6870
6871 ;
6872 return 0;
6873}
6874_ACEOF
5213506e 6875if ac_fn_c_try_link "$LINENO"; then :
18d98188
PG
6876 lt_cv_ld_exported_symbols_list=yes
6877else
5213506e 6878 lt_cv_ld_exported_symbols_list=no
18d98188 6879fi
5213506e
RW
6880rm -f core conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
18d98188
PG
6882 LDFLAGS="$save_LDFLAGS"
6883
6884fi
5213506e
RW
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6886$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6888$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 6889if ${lt_cv_ld_force_load+:} false; then :
43e02a8a
RW
6890 $as_echo_n "(cached) " >&6
6891else
6892 lt_cv_ld_force_load=no
6893 cat > conftest.c << _LT_EOF
6894int forced_loaded() { return 2;}
6895_LT_EOF
6896 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6897 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6898 echo "$AR cru libconftest.a conftest.o" >&5
6899 $AR cru libconftest.a conftest.o 2>&5
6900 cat > conftest.c << _LT_EOF
6901int main() { return 0;}
6902_LT_EOF
6903 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6904 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6905 _lt_result=$?
6906 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6907 lt_cv_ld_force_load=yes
6908 else
6909 cat conftest.err >&5
6910 fi
6911 rm -f conftest.err libconftest.a conftest conftest.c
6912 rm -rf conftest.dSYM
6913
6914fi
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6916$as_echo "$lt_cv_ld_force_load" >&6; }
18d98188
PG
6917 case $host_os in
6918 rhapsody* | darwin1.[012])
6919 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6920 darwin1.*)
6921 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6922 darwin*) # darwin 5.x on
6923 # if running on 10.5 or later, the deployment target defaults
6924 # to the OS version, if on x86, and 10.4, the deployment
6925 # target defaults to 10.4. Don't you love it?
6926 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6927 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6928 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 6929 10.[012][,.]*)
18d98188
PG
6930 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6931 10.*)
6932 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6933 esac
6934 ;;
6935 esac
6936 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6937 _lt_dar_single_mod='$single_module'
6938 fi
6939 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6940 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6941 else
6942 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6943 fi
43e02a8a 6944 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
18d98188
PG
6945 _lt_dsymutil='~$DSYMUTIL $lib || :'
6946 else
6947 _lt_dsymutil=
6948 fi
6949 ;;
6950 esac
6951
6952ac_ext=c
6953ac_cpp='$CPP $CPPFLAGS'
6954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6956ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6958$as_echo_n "checking how to run the C preprocessor... " >&6; }
18d98188
PG
6959# On Suns, sometimes $CPP names a directory.
6960if test -n "$CPP" && test -d "$CPP"; then
6961 CPP=
6962fi
6963if test -z "$CPP"; then
22e05272 6964 if ${ac_cv_prog_CPP+:} false; then :
5213506e 6965 $as_echo_n "(cached) " >&6
18d98188
PG
6966else
6967 # Double quotes because CPP needs to be expanded
6968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6969 do
6970 ac_preproc_ok=false
6971for ac_c_preproc_warn_flag in '' yes
6972do
6973 # Use a header file that comes with gcc, so configuring glibc
6974 # with a fresh cross-compiler works.
6975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6976 # <limits.h> exists even on freestanding compilers.
6977 # On the NeXT, cc -E runs the code through the compiler's parser,
6978 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18d98188
PG
6980/* end confdefs.h. */
6981#ifdef __STDC__
6982# include <limits.h>
6983#else
6984# include <assert.h>
6985#endif
6986 Syntax error
6987_ACEOF
5213506e 6988if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 6989
5213506e 6990else
1cf3d07d
SE
6991 # Broken: fails on valid input.
6992continue
6993fi
22e05272 6994rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d 6995
5213506e 6996 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 6997 # can be detected and how.
5213506e 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6999/* end confdefs.h. */
7000#include <ac_nonexistent.h>
7001_ACEOF
5213506e 7002if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7003 # Broken: success on invalid input.
7004continue
7005else
1cf3d07d
SE
7006 # Passes both tests.
7007ac_preproc_ok=:
7008break
7009fi
22e05272 7010rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d
SE
7011
7012done
7013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7014rm -f conftest.i conftest.err conftest.$ac_ext
5213506e 7015if $ac_preproc_ok; then :
1cf3d07d
SE
7016 break
7017fi
7018
7019 done
7020 ac_cv_prog_CPP=$CPP
7021
7022fi
7023 CPP=$ac_cv_prog_CPP
7024else
7025 ac_cv_prog_CPP=$CPP
7026fi
5213506e
RW
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7028$as_echo "$CPP" >&6; }
1cf3d07d
SE
7029ac_preproc_ok=false
7030for ac_c_preproc_warn_flag in '' yes
7031do
7032 # Use a header file that comes with gcc, so configuring glibc
7033 # with a fresh cross-compiler works.
7034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 # <limits.h> exists even on freestanding compilers.
7036 # On the NeXT, cc -E runs the code through the compiler's parser,
7037 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7039/* end confdefs.h. */
7040#ifdef __STDC__
7041# include <limits.h>
7042#else
7043# include <assert.h>
7044#endif
7045 Syntax error
7046_ACEOF
5213506e 7047if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7048
5213506e 7049else
1cf3d07d
SE
7050 # Broken: fails on valid input.
7051continue
7052fi
22e05272 7053rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d 7054
5213506e 7055 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7056 # can be detected and how.
5213506e 7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7058/* end confdefs.h. */
7059#include <ac_nonexistent.h>
7060_ACEOF
5213506e 7061if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7062 # Broken: success on invalid input.
7063continue
7064else
1cf3d07d
SE
7065 # Passes both tests.
7066ac_preproc_ok=:
7067break
7068fi
22e05272 7069rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d
SE
7070
7071done
7072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7073rm -f conftest.i conftest.err conftest.$ac_ext
5213506e
RW
7074if $ac_preproc_ok; then :
7075
1cf3d07d 7076else
5213506e
RW
7077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7079as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7080See \`config.log' for more details" "$LINENO" 5; }
1cf3d07d
SE
7081fi
7082
7083ac_ext=c
7084ac_cpp='$CPP $CPPFLAGS'
7085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088
7089
5213506e
RW
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7091$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7092if ${ac_cv_header_stdc+:} false; then :
5213506e 7093 $as_echo_n "(cached) " >&6
1cf3d07d 7094else
5213506e 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7096/* end confdefs.h. */
7097#include <stdlib.h>
7098#include <stdarg.h>
7099#include <string.h>
7100#include <float.h>
7101
7102int
7103main ()
7104{
7105
7106 ;
7107 return 0;
7108}
7109_ACEOF
5213506e 7110if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7111 ac_cv_header_stdc=yes
7112else
5213506e 7113 ac_cv_header_stdc=no
1cf3d07d 7114fi
5213506e 7115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7116
7117if test $ac_cv_header_stdc = yes; then
7118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7120/* end confdefs.h. */
7121#include <string.h>
7122
7123_ACEOF
7124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7125 $EGREP "memchr" >/dev/null 2>&1; then :
7126
1cf3d07d
SE
7127else
7128 ac_cv_header_stdc=no
7129fi
7130rm -f conftest*
7131
7132fi
7133
7134if test $ac_cv_header_stdc = yes; then
7135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7137/* end confdefs.h. */
7138#include <stdlib.h>
7139
7140_ACEOF
7141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7142 $EGREP "free" >/dev/null 2>&1; then :
7143
1cf3d07d
SE
7144else
7145 ac_cv_header_stdc=no
7146fi
7147rm -f conftest*
7148
7149fi
7150
7151if test $ac_cv_header_stdc = yes; then
7152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7153 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7154 :
7155else
5213506e 7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7157/* end confdefs.h. */
7158#include <ctype.h>
5213506e 7159#include <stdlib.h>
1cf3d07d
SE
7160#if ((' ' & 0x0FF) == 0x020)
7161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7163#else
7164# define ISLOWER(c) \
7165 (('a' <= (c) && (c) <= 'i') \
7166 || ('j' <= (c) && (c) <= 'r') \
7167 || ('s' <= (c) && (c) <= 'z'))
7168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7169#endif
7170
7171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7172int
7173main ()
7174{
7175 int i;
7176 for (i = 0; i < 256; i++)
7177 if (XOR (islower (i), ISLOWER (i))
7178 || toupper (i) != TOUPPER (i))
5213506e
RW
7179 return 2;
7180 return 0;
1cf3d07d
SE
7181}
7182_ACEOF
5213506e 7183if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7184
5213506e
RW
7185else
7186 ac_cv_header_stdc=no
1cf3d07d 7187fi
5213506e
RW
7188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7189 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7190fi
5213506e 7191
1cf3d07d
SE
7192fi
7193fi
5213506e
RW
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7195$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7196if test $ac_cv_header_stdc = yes; then
7197
5213506e 7198$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7199
7200fi
7201
7202# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7203for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7204 inttypes.h stdint.h unistd.h
5213506e
RW
7205do :
7206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7207ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7208"
22e05272 7209if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18d98188 7210 cat >>confdefs.h <<_ACEOF
5213506e 7211#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18d98188
PG
7212_ACEOF
7213
7214fi
7215
7216done
7217
7218
18d98188 7219for ac_header in dlfcn.h
5213506e
RW
7220do :
7221 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7222"
22e05272 7223if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18d98188 7224 cat >>confdefs.h <<_ACEOF
5213506e 7225#define HAVE_DLFCN_H 1
18d98188
PG
7226_ACEOF
7227
7228fi
7229
7230done
7231
7232
7233
43e02a8a
RW
7234
7235
18d98188
PG
7236# Set options
7237
7238
7239
7240 enable_dlopen=no
7241
7242
7243 enable_win32_dll=no
7244
7245
5213506e
RW
7246 # Check whether --enable-shared was given.
7247if test "${enable_shared+set}" = set; then :
7248 enableval=$enable_shared; p=${PACKAGE-default}
18d98188
PG
7249 case $enableval in
7250 yes) enable_shared=yes ;;
7251 no) enable_shared=no ;;
7252 *)
7253 enable_shared=no
7254 # Look at the argument we got. We use all the common list separators.
7255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7256 for pkg in $enableval; do
7257 IFS="$lt_save_ifs"
7258 if test "X$pkg" = "X$p"; then
7259 enable_shared=yes
7260 fi
7261 done
7262 IFS="$lt_save_ifs"
7263 ;;
7264 esac
7265else
7266 enable_shared=yes
5213506e 7267fi
18d98188
PG
7268
7269
7270
7271
7272
7273
7274
7275
5213506e
RW
7276
7277 # Check whether --enable-static was given.
7278if test "${enable_static+set}" = set; then :
7279 enableval=$enable_static; p=${PACKAGE-default}
18d98188
PG
7280 case $enableval in
7281 yes) enable_static=yes ;;
7282 no) enable_static=no ;;
7283 *)
7284 enable_static=no
7285 # Look at the argument we got. We use all the common list separators.
7286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7287 for pkg in $enableval; do
7288 IFS="$lt_save_ifs"
7289 if test "X$pkg" = "X$p"; then
7290 enable_static=yes
7291 fi
7292 done
7293 IFS="$lt_save_ifs"
7294 ;;
7295 esac
7296else
7297 enable_static=yes
5213506e 7298fi
18d98188
PG
7299
7300
7301
7302
7303
7304
7305
7306
7307
5213506e
RW
7308
7309# Check whether --with-pic was given.
7310if test "${with_pic+set}" = set; then :
7311 withval=$with_pic; pic_mode="$withval"
18d98188
PG
7312else
7313 pic_mode=default
5213506e
RW
7314fi
7315
1cf3d07d 7316
18d98188 7317test -z "$pic_mode" && pic_mode=default
1cf3d07d 7318
1cf3d07d 7319
1cf3d07d
SE
7320
7321
7322
1cf3d07d 7323
18d98188 7324
5213506e
RW
7325 # Check whether --enable-fast-install was given.
7326if test "${enable_fast_install+set}" = set; then :
7327 enableval=$enable_fast_install; p=${PACKAGE-default}
18d98188
PG
7328 case $enableval in
7329 yes) enable_fast_install=yes ;;
7330 no) enable_fast_install=no ;;
7331 *)
7332 enable_fast_install=no
7333 # Look at the argument we got. We use all the common list separators.
7334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7335 for pkg in $enableval; do
7336 IFS="$lt_save_ifs"
7337 if test "X$pkg" = "X$p"; then
7338 enable_fast_install=yes
7339 fi
7340 done
7341 IFS="$lt_save_ifs"
7342 ;;
7343 esac
1cf3d07d 7344else
18d98188 7345 enable_fast_install=yes
5213506e
RW
7346fi
7347
18d98188
PG
7348
7349
7350
7351
1cf3d07d 7352
1cf3d07d 7353
1cf3d07d 7354
1cf3d07d
SE
7355
7356
7357
7358# This can be used to rebuild libtool when needed
7359LIBTOOL_DEPS="$ltmain"
7360
7361# Always use our own libtool.
7362LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
43e02a8a 7386
1cf3d07d
SE
7387
7388
7389test -z "$LN_S" && LN_S="ln -s"
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404if test -n "${ZSH_VERSION+set}" ; then
7405 setopt NO_GLOB_SUBST
7406fi
7407
5213506e
RW
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7409$as_echo_n "checking for objdir... " >&6; }
22e05272 7410if ${lt_cv_objdir+:} false; then :
5213506e 7411 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7412else
7413 rm -f .libs 2>/dev/null
7414mkdir .libs 2>/dev/null
7415if test -d .libs; then
7416 lt_cv_objdir=.libs
7417else
7418 # MS-DOS does not allow filenames that begin with a dot.
7419 lt_cv_objdir=_libs
7420fi
7421rmdir .libs 2>/dev/null
7422fi
5213506e
RW
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7424$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7425objdir=$lt_cv_objdir
7426
7427
7428
7429
7430
7431cat >>confdefs.h <<_ACEOF
7432#define LT_OBJDIR "$lt_cv_objdir/"
7433_ACEOF
7434
7435
7436
7437
1cf3d07d
SE
7438case $host_os in
7439aix3*)
7440 # AIX sometimes has problems with the GCC collect2 program. For some
7441 # reason, if we set the COLLECT_NAMES environment variable, the problems
7442 # vanish in a puff of smoke.
7443 if test "X${COLLECT_NAMES+set}" != Xset; then
7444 COLLECT_NAMES=
7445 export COLLECT_NAMES
7446 fi
7447 ;;
7448esac
7449
1cf3d07d
SE
7450# Global variables:
7451ofile=libtool
7452can_build_shared=yes
7453
7454# All known linkers require a `.a' archive for static linking (except MSVC,
7455# which needs '.lib').
7456libext=a
7457
7458with_gnu_ld="$lt_cv_prog_gnu_ld"
7459
7460old_CC="$CC"
7461old_CFLAGS="$CFLAGS"
7462
7463# Set sane defaults for various variables
7464test -z "$CC" && CC=cc
7465test -z "$LTCC" && LTCC=$CC
7466test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7467test -z "$LD" && LD=ld
7468test -z "$ac_objext" && ac_objext=o
7469
7470for cc_temp in $compiler""; do
7471 case $cc_temp in
7472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7474 \-*) ;;
7475 *) break;;
7476 esac
7477done
43e02a8a 7478cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
7479
7480
7481# Only perform the check for file, if the check method requires it
7482test -z "$MAGIC_CMD" && MAGIC_CMD=file
7483case $deplibs_check_method in
7484file_magic*)
7485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7487$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 7488if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 7489 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7490else
7491 case $MAGIC_CMD in
7492[\\/*] | ?:[\\/]*)
7493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7494 ;;
7495*)
7496 lt_save_MAGIC_CMD="$MAGIC_CMD"
7497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7499 for ac_dir in $ac_dummy; do
7500 IFS="$lt_save_ifs"
7501 test -z "$ac_dir" && ac_dir=.
7502 if test -f $ac_dir/${ac_tool_prefix}file; then
7503 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7504 if test -n "$file_magic_test_file"; then
7505 case $deplibs_check_method in
7506 "file_magic "*)
7507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7510 $EGREP "$file_magic_regex" > /dev/null; then
7511 :
7512 else
7513 cat <<_LT_EOF 1>&2
7514
7515*** Warning: the command libtool uses to detect shared libraries,
7516*** $file_magic_cmd, produces output that libtool cannot recognize.
7517*** The result is that libtool may fail to recognize shared libraries
7518*** as such. This will affect the creation of libtool libraries that
7519*** depend on shared libraries, but programs linked with such libtool
7520*** libraries will work regardless of this problem. Nevertheless, you
7521*** may want to report the problem to your system manager and/or to
7522*** bug-libtool@gnu.org
7523
7524_LT_EOF
7525 fi ;;
7526 esac
7527 fi
7528 break
7529 fi
7530 done
7531 IFS="$lt_save_ifs"
7532 MAGIC_CMD="$lt_save_MAGIC_CMD"
7533 ;;
7534esac
7535fi
7536
7537MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7538if test -n "$MAGIC_CMD"; then
5213506e
RW
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7540$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7541else
5213506e
RW
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543$as_echo "no" >&6; }
1cf3d07d
SE
7544fi
7545
7546
7547
7548
7549
7550if test -z "$lt_cv_path_MAGIC_CMD"; then
7551 if test -n "$ac_tool_prefix"; then
5213506e
RW
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7553$as_echo_n "checking for file... " >&6; }
22e05272 7554if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 7555 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7556else
7557 case $MAGIC_CMD in
7558[\\/*] | ?:[\\/]*)
7559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7560 ;;
7561*)
7562 lt_save_MAGIC_CMD="$MAGIC_CMD"
7563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7565 for ac_dir in $ac_dummy; do
7566 IFS="$lt_save_ifs"
7567 test -z "$ac_dir" && ac_dir=.
7568 if test -f $ac_dir/file; then
7569 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7570 if test -n "$file_magic_test_file"; then
7571 case $deplibs_check_method in
7572 "file_magic "*)
7573 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7576 $EGREP "$file_magic_regex" > /dev/null; then
7577 :
7578 else
7579 cat <<_LT_EOF 1>&2
7580
7581*** Warning: the command libtool uses to detect shared libraries,
7582*** $file_magic_cmd, produces output that libtool cannot recognize.
7583*** The result is that libtool may fail to recognize shared libraries
7584*** as such. This will affect the creation of libtool libraries that
7585*** depend on shared libraries, but programs linked with such libtool
7586*** libraries will work regardless of this problem. Nevertheless, you
7587*** may want to report the problem to your system manager and/or to
7588*** bug-libtool@gnu.org
7589
7590_LT_EOF
7591 fi ;;
7592 esac
7593 fi
7594 break
7595 fi
7596 done
7597 IFS="$lt_save_ifs"
7598 MAGIC_CMD="$lt_save_MAGIC_CMD"
7599 ;;
7600esac
7601fi
7602
7603MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604if test -n "$MAGIC_CMD"; then
5213506e
RW
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7606$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7607else
5213506e
RW
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
1cf3d07d
SE
7610fi
7611
7612
7613 else
7614 MAGIC_CMD=:
7615 fi
7616fi
7617
7618 fi
7619 ;;
7620esac
7621
7622# Use C for the default configuration in the libtool script
7623
7624lt_save_CC="$CC"
7625ac_ext=c
7626ac_cpp='$CPP $CPPFLAGS'
7627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629ac_compiler_gnu=$ac_cv_c_compiler_gnu
7630
7631
7632# Source file extension for C test sources.
7633ac_ext=c
7634
7635# Object file extension for compiled C test sources.
7636objext=o
7637objext=$objext
7638
7639# Code to be used in simple compile tests
7640lt_simple_compile_test_code="int some_variable = 0;"
7641
7642# Code to be used in simple link tests
7643lt_simple_link_test_code='int main(){return(0);}'
7644
7645
7646
7647
7648
7649
7650
7651# If no C compiler was specified, use CC.
7652LTCC=${LTCC-"$CC"}
7653
7654# If no C compiler flags were specified, use CFLAGS.
7655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7656
7657# Allow CC to be a program name with arguments.
7658compiler=$CC
7659
7660# Save the default compiler, since it gets overwritten when the other
7661# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7662compiler_DEFAULT=$CC
7663
7664# save warnings/boilerplate of simple test code
7665ac_outfile=conftest.$ac_objext
7666echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7667eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7668_lt_compiler_boilerplate=`cat conftest.err`
7669$RM conftest*
7670
7671ac_outfile=conftest.$ac_objext
7672echo "$lt_simple_link_test_code" >conftest.$ac_ext
7673eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7674_lt_linker_boilerplate=`cat conftest.err`
18d98188 7675$RM -r conftest*
1cf3d07d
SE
7676
7677
7678## CAVEAT EMPTOR:
7679## There is no encapsulation within the following macros, do not change
7680## the running order or otherwise move them around unless you know exactly
7681## what you are doing...
7682if test -n "$compiler"; then
7683
7684lt_prog_compiler_no_builtin_flag=
7685
7686if test "$GCC" = yes; then
43e02a8a
RW
7687 case $cc_basename in
7688 nvcc*)
7689 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7690 *)
7691 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7692 esac
1cf3d07d 7693
5213506e
RW
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 7696if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5213506e 7697 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7698else
7699 lt_cv_prog_compiler_rtti_exceptions=no
7700 ac_outfile=conftest.$ac_objext
7701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7702 lt_compiler_flag="-fno-rtti -fno-exceptions"
7703 # Insert the option either (1) after the last *FLAGS variable, or
7704 # (2) before a word containing "conftest.", or (3) at the end.
7705 # Note that $ac_compile itself does not contain backslashes and begins
7706 # with a dollar sign (not a hyphen), so the echo should work correctly.
7707 # The option is referenced via a variable to avoid confusing sed.
7708 lt_compile=`echo "$ac_compile" | $SED \
7709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711 -e 's:$: $lt_compiler_flag:'`
43e02a8a 7712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
7713 (eval "$lt_compile" 2>conftest.err)
7714 ac_status=$?
7715 cat conftest.err >&5
43e02a8a 7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
7717 if (exit $ac_status) && test -s "$ac_outfile"; then
7718 # The compiler can only warn and ignore the option if not recognized
7719 # So say no if there are warnings other than the usual output.
43e02a8a 7720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
7721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7722 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7723 lt_cv_prog_compiler_rtti_exceptions=yes
7724 fi
7725 fi
7726 $RM conftest*
7727
7728fi
5213506e
RW
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
7731
7732if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7734else
7735 :
7736fi
7737
7738fi
7739
7740
7741
7742
7743
7744
7745 lt_prog_compiler_wl=
7746lt_prog_compiler_pic=
7747lt_prog_compiler_static=
7748
5213506e
RW
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7750$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
7751
7752 if test "$GCC" = yes; then
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_static='-static'
7755
7756 case $host_os in
7757 aix*)
7758 # All AIX code is PIC.
7759 if test "$host_cpu" = ia64; then
7760 # AIX 5 now supports IA64 processor
7761 lt_prog_compiler_static='-Bstatic'
7762 fi
ae62425f 7763 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
7764 ;;
7765
7766 amigaos*)
18d98188
PG
7767 case $host_cpu in
7768 powerpc)
7769 # see comment about AmigaOS4 .so support
7770 lt_prog_compiler_pic='-fPIC'
7771 ;;
7772 m68k)
7773 # FIXME: we need at least 68020 code to build shared libraries, but
7774 # adding the `-m68020' flag to GCC prevents building anything better,
7775 # like `-m68040'.
7776 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7777 ;;
7778 esac
1cf3d07d
SE
7779 ;;
7780
7781 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7782 # PIC is the default for these OSes.
7783 ;;
7784
18d98188 7785 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7786 # This hack is so that the source file can tell whether it is being
7787 # built for inclusion in a dll (and should export symbols for example).
7788 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7789 # (--disable-auto-import) libraries
7790 lt_prog_compiler_pic='-DDLL_EXPORT'
7791 ;;
7792
7793 darwin* | rhapsody*)
7794 # PIC is the default on this platform
7795 # Common symbols not allowed in MH_DYLIB files
7796 lt_prog_compiler_pic='-fno-common'
7797 ;;
7798
43e02a8a
RW
7799 haiku*)
7800 # PIC is the default for Haiku.
7801 # The "-static" flag exists, but is broken.
7802 lt_prog_compiler_static=
7803 ;;
7804
1cf3d07d 7805 hpux*)
18d98188
PG
7806 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7807 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7808 # sets the default TLS model and affects inlining.
1cf3d07d 7809 case $host_cpu in
18d98188 7810 hppa*64*)
1cf3d07d
SE
7811 # +Z the default
7812 ;;
7813 *)
7814 lt_prog_compiler_pic='-fPIC'
7815 ;;
7816 esac
7817 ;;
7818
7819 interix[3-9]*)
7820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7821 # Instead, we relocate shared libraries at runtime.
7822 ;;
7823
7824 msdosdjgpp*)
7825 # Just because we use GCC doesn't mean we suddenly get shared libraries
7826 # on systems that don't support them.
7827 lt_prog_compiler_can_build_shared=no
7828 enable_shared=no
7829 ;;
7830
7831 *nto* | *qnx*)
7832 # QNX uses GNU C++, but need to define -shared option too, otherwise
7833 # it will coredump.
7834 lt_prog_compiler_pic='-fPIC -shared'
7835 ;;
7836
7837 sysv4*MP*)
7838 if test -d /usr/nec; then
7839 lt_prog_compiler_pic=-Kconform_pic
7840 fi
7841 ;;
7842
7843 *)
7844 lt_prog_compiler_pic='-fPIC'
7845 ;;
7846 esac
43e02a8a
RW
7847
7848 case $cc_basename in
7849 nvcc*) # Cuda Compiler Driver 2.2
7850 lt_prog_compiler_wl='-Xlinker '
7851 lt_prog_compiler_pic='-Xcompiler -fPIC'
7852 ;;
7853 esac
1cf3d07d
SE
7854 else
7855 # PORTME Check for flag to pass linker flags through the system compiler.
7856 case $host_os in
7857 aix*)
7858 lt_prog_compiler_wl='-Wl,'
7859 if test "$host_cpu" = ia64; then
7860 # AIX 5 now supports IA64 processor
7861 lt_prog_compiler_static='-Bstatic'
7862 else
7863 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7864 fi
7865 ;;
1cf3d07d 7866
18d98188 7867 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7868 # This hack is so that the source file can tell whether it is being
7869 # built for inclusion in a dll (and should export symbols for example).
7870 lt_prog_compiler_pic='-DDLL_EXPORT'
7871 ;;
7872
7873 hpux9* | hpux10* | hpux11*)
7874 lt_prog_compiler_wl='-Wl,'
7875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7876 # not for PA HP-UX.
7877 case $host_cpu in
7878 hppa*64*|ia64*)
7879 # +Z the default
7880 ;;
7881 *)
7882 lt_prog_compiler_pic='+Z'
7883 ;;
7884 esac
7885 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7886 lt_prog_compiler_static='${wl}-a ${wl}archive'
7887 ;;
7888
7889 irix5* | irix6* | nonstopux*)
7890 lt_prog_compiler_wl='-Wl,'
7891 # PIC (with -KPIC) is the default.
7892 lt_prog_compiler_static='-non_shared'
7893 ;;
7894
7a9d3fe8 7895 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 7896 case $cc_basename in
18d98188
PG
7897 # old Intel for x86_64 which still supported -KPIC.
7898 ecc*)
1cf3d07d
SE
7899 lt_prog_compiler_wl='-Wl,'
7900 lt_prog_compiler_pic='-KPIC'
7901 lt_prog_compiler_static='-static'
7902 ;;
18d98188
PG
7903 # icc used to be incompatible with GCC.
7904 # ICC 10 doesn't accept -KPIC any more.
7905 icc* | ifort*)
7906 lt_prog_compiler_wl='-Wl,'
7907 lt_prog_compiler_pic='-fPIC'
7908 lt_prog_compiler_static='-static'
7909 ;;
7910 # Lahey Fortran 8.1.
7911 lf95*)
7912 lt_prog_compiler_wl='-Wl,'
7913 lt_prog_compiler_pic='--shared'
7914 lt_prog_compiler_static='--static'
7915 ;;
43e02a8a 7916 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
7917 # Portland Group compilers (*not* the Pentium gcc compiler,
7918 # which looks to be a dead project)
7919 lt_prog_compiler_wl='-Wl,'
7920 lt_prog_compiler_pic='-fpic'
7921 lt_prog_compiler_static='-Bstatic'
7922 ;;
7923 ccc*)
7924 lt_prog_compiler_wl='-Wl,'
7925 # All Alpha code is PIC.
7926 lt_prog_compiler_static='-non_shared'
7927 ;;
43e02a8a
RW
7928 xl* | bgxl* | bgf* | mpixl*)
7929 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18d98188
PG
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-qpic'
7932 lt_prog_compiler_static='-qstaticlink'
7933 ;;
1cf3d07d
SE
7934 *)
7935 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
7936 *Sun\ F* | *Sun*Fortran*)
7937 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
7938 lt_prog_compiler_pic='-KPIC'
7939 lt_prog_compiler_static='-Bstatic'
43e02a8a 7940 lt_prog_compiler_wl=''
1cf3d07d 7941 ;;
43e02a8a
RW
7942 *Sun\ C*)
7943 # Sun C 5.9
1cf3d07d
SE
7944 lt_prog_compiler_pic='-KPIC'
7945 lt_prog_compiler_static='-Bstatic'
43e02a8a 7946 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
7947 ;;
7948 esac
7949 ;;
7950 esac
7951 ;;
7952
7953 newsos6)
7954 lt_prog_compiler_pic='-KPIC'
7955 lt_prog_compiler_static='-Bstatic'
7956 ;;
7957
7958 *nto* | *qnx*)
7959 # QNX uses GNU C++, but need to define -shared option too, otherwise
7960 # it will coredump.
7961 lt_prog_compiler_pic='-fPIC -shared'
7962 ;;
7963
7964 osf3* | osf4* | osf5*)
7965 lt_prog_compiler_wl='-Wl,'
7966 # All OSF/1 code is PIC.
7967 lt_prog_compiler_static='-non_shared'
7968 ;;
7969
7970 rdos*)
7971 lt_prog_compiler_static='-non_shared'
7972 ;;
7973
7974 solaris*)
7975 lt_prog_compiler_pic='-KPIC'
7976 lt_prog_compiler_static='-Bstatic'
7977 case $cc_basename in
7978 f77* | f90* | f95*)
7979 lt_prog_compiler_wl='-Qoption ld ';;
7980 *)
7981 lt_prog_compiler_wl='-Wl,';;
7982 esac
7983 ;;
7984
7985 sunos4*)
7986 lt_prog_compiler_wl='-Qoption ld '
7987 lt_prog_compiler_pic='-PIC'
7988 lt_prog_compiler_static='-Bstatic'
7989 ;;
7990
7991 sysv4 | sysv4.2uw2* | sysv4.3*)
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='-KPIC'
7994 lt_prog_compiler_static='-Bstatic'
7995 ;;
7996
7997 sysv4*MP*)
7998 if test -d /usr/nec ;then
7999 lt_prog_compiler_pic='-Kconform_pic'
8000 lt_prog_compiler_static='-Bstatic'
8001 fi
8002 ;;
8003
8004 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
8008 ;;
8009
8010 unicos*)
8011 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_can_build_shared=no
8013 ;;
8014
8015 uts4*)
8016 lt_prog_compiler_pic='-pic'
8017 lt_prog_compiler_static='-Bstatic'
8018 ;;
8019
8020 *)
8021 lt_prog_compiler_can_build_shared=no
8022 ;;
8023 esac
8024 fi
8025
8026case $host_os in
8027 # For platforms which do not support PIC, -DPIC is meaningless:
8028 *djgpp*)
8029 lt_prog_compiler_pic=
8030 ;;
8031 *)
8032 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8033 ;;
8034esac
5213506e
RW
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8036$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8037
8038
8039
8040
8041
8042
8043#
8044# Check to make sure the PIC flag actually works.
8045#
8046if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8048$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8049if ${lt_cv_prog_compiler_pic_works+:} false; then :
5213506e 8050 $as_echo_n "(cached) " >&6
1cf3d07d 8051else
18d98188 8052 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8053 ac_outfile=conftest.$ac_objext
8054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8055 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8056 # Insert the option either (1) after the last *FLAGS variable, or
8057 # (2) before a word containing "conftest.", or (3) at the end.
8058 # Note that $ac_compile itself does not contain backslashes and begins
8059 # with a dollar sign (not a hyphen), so the echo should work correctly.
8060 # The option is referenced via a variable to avoid confusing sed.
8061 lt_compile=`echo "$ac_compile" | $SED \
8062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8064 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8066 (eval "$lt_compile" 2>conftest.err)
8067 ac_status=$?
8068 cat conftest.err >&5
43e02a8a 8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8070 if (exit $ac_status) && test -s "$ac_outfile"; then
8071 # The compiler can only warn and ignore the option if not recognized
8072 # So say no if there are warnings other than the usual output.
43e02a8a 8073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18d98188 8076 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8077 fi
8078 fi
8079 $RM conftest*
8080
8081fi
5213506e
RW
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8083$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8084
18d98188 8085if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8086 case $lt_prog_compiler_pic in
8087 "" | " "*) ;;
8088 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8089 esac
8090else
8091 lt_prog_compiler_pic=
8092 lt_prog_compiler_can_build_shared=no
8093fi
8094
8095fi
8096
8097
8098
8099
8100
8101
8102#
8103# Check to make sure the static flag actually works.
8104#
8105wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8107$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8108if ${lt_cv_prog_compiler_static_works+:} false; then :
5213506e 8109 $as_echo_n "(cached) " >&6
1cf3d07d 8110else
18d98188 8111 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8112 save_LDFLAGS="$LDFLAGS"
8113 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8114 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8115 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8116 # The linker can only warn and ignore the option if not recognized
8117 # So say no if there are warnings
8118 if test -s conftest.err; then
8119 # Append any errors to the config.log.
8120 cat conftest.err 1>&5
43e02a8a 8121 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123 if diff conftest.exp conftest.er2 >/dev/null; then
18d98188 8124 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8125 fi
8126 else
18d98188 8127 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8128 fi
8129 fi
18d98188 8130 $RM -r conftest*
1cf3d07d
SE
8131 LDFLAGS="$save_LDFLAGS"
8132
8133fi
5213506e
RW
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8135$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8136
18d98188 8137if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8138 :
8139else
8140 lt_prog_compiler_static=
8141fi
8142
8143
8144
8145
8146
8147
8148
5213506e
RW
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8150$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8151if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 8152 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8153else
8154 lt_cv_prog_compiler_c_o=no
8155 $RM -r conftest 2>/dev/null
8156 mkdir conftest
8157 cd conftest
8158 mkdir out
8159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8160
8161 lt_compiler_flag="-o out/conftest2.$ac_objext"
8162 # Insert the option either (1) after the last *FLAGS variable, or
8163 # (2) before a word containing "conftest.", or (3) at the end.
8164 # Note that $ac_compile itself does not contain backslashes and begins
8165 # with a dollar sign (not a hyphen), so the echo should work correctly.
8166 lt_compile=`echo "$ac_compile" | $SED \
8167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8169 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8171 (eval "$lt_compile" 2>out/conftest.err)
8172 ac_status=$?
8173 cat out/conftest.err >&5
43e02a8a 8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8176 then
8177 # The compiler can only warn and ignore the option if not recognized
8178 # So say no if there are warnings
43e02a8a 8179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8182 lt_cv_prog_compiler_c_o=yes
8183 fi
8184 fi
8185 chmod u+w . 2>&5
8186 $RM conftest*
8187 # SGI C++ compiler will create directory out/ii_files/ for
8188 # template instantiation
8189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8190 $RM out/* && rmdir out
8191 cd ..
8192 $RM -r conftest
8193 $RM conftest*
8194
8195fi
5213506e
RW
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8197$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8198
8199
8200
8201
8202
8203
5213506e
RW
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8205$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8206if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 8207 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8208else
8209 lt_cv_prog_compiler_c_o=no
8210 $RM -r conftest 2>/dev/null
8211 mkdir conftest
8212 cd conftest
8213 mkdir out
8214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8215
8216 lt_compiler_flag="-o out/conftest2.$ac_objext"
8217 # Insert the option either (1) after the last *FLAGS variable, or
8218 # (2) before a word containing "conftest.", or (3) at the end.
8219 # Note that $ac_compile itself does not contain backslashes and begins
8220 # with a dollar sign (not a hyphen), so the echo should work correctly.
8221 lt_compile=`echo "$ac_compile" | $SED \
8222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8224 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8226 (eval "$lt_compile" 2>out/conftest.err)
8227 ac_status=$?
8228 cat out/conftest.err >&5
43e02a8a 8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8231 then
8232 # The compiler can only warn and ignore the option if not recognized
8233 # So say no if there are warnings
43e02a8a 8234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8237 lt_cv_prog_compiler_c_o=yes
8238 fi
8239 fi
8240 chmod u+w . 2>&5
8241 $RM conftest*
8242 # SGI C++ compiler will create directory out/ii_files/ for
8243 # template instantiation
8244 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8245 $RM out/* && rmdir out
8246 cd ..
8247 $RM -r conftest
8248 $RM conftest*
8249
8250fi
5213506e
RW
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8252$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8253
8254
8255
8256
8257hard_links="nottested"
8258if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8259 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8261$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8262 hard_links=yes
8263 $RM conftest*
8264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8265 touch conftest.a
8266 ln conftest.a conftest.b 2>&5 || hard_links=no
8267 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8269$as_echo "$hard_links" >&6; }
1cf3d07d 8270 if test "$hard_links" = no; then
5213506e
RW
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8272$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8273 need_locks=warn
8274 fi
8275else
8276 need_locks=no
8277fi
8278
8279
8280
8281
8282
8283
5213506e
RW
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8285$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8286
8287 runpath_var=
8288 allow_undefined_flag=
8289 always_export_symbols=no
8290 archive_cmds=
8291 archive_expsym_cmds=
8292 compiler_needs_object=no
8293 enable_shared_with_static_runtimes=no
8294 export_dynamic_flag_spec=
8295 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8296 hardcode_automatic=no
8297 hardcode_direct=no
8298 hardcode_direct_absolute=no
8299 hardcode_libdir_flag_spec=
8300 hardcode_libdir_flag_spec_ld=
8301 hardcode_libdir_separator=
8302 hardcode_minus_L=no
8303 hardcode_shlibpath_var=unsupported
8304 inherit_rpath=no
8305 link_all_deplibs=unknown
8306 module_cmds=
8307 module_expsym_cmds=
8308 old_archive_from_new_cmds=
8309 old_archive_from_expsyms_cmds=
8310 thread_safe_flag_spec=
8311 whole_archive_flag_spec=
8312 # include_expsyms should be a list of space-separated symbols to be *always*
8313 # included in the symbol list
8314 include_expsyms=
8315 # exclude_expsyms can be an extended regexp of symbols to exclude
8316 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8318 # as well as any symbol that contains `d'.
18d98188 8319 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8321 # platforms (ab)use it in PIC code, but their linkers get confused if
8322 # the symbol is explicitly referenced. Since portable code cannot
8323 # rely on this symbol name, it's probably fine to never include it in
8324 # preloaded symbol tables.
18d98188 8325 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8326 extract_expsyms_cmds=
8327
8328 case $host_os in
18d98188 8329 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8331 # When not using gcc, we currently assume that we are using
8332 # Microsoft Visual C++.
8333 if test "$GCC" != yes; then
8334 with_gnu_ld=no
8335 fi
8336 ;;
8337 interix*)
8338 # we just hope/assume this is gcc and not c89 (= MSVC++)
8339 with_gnu_ld=yes
8340 ;;
8341 openbsd*)
8342 with_gnu_ld=no
8343 ;;
8344 esac
8345
8346 ld_shlibs=yes
43e02a8a
RW
8347
8348 # On some targets, GNU ld is compatible enough with the native linker
8349 # that we're better off using the native interface for both.
8350 lt_use_gnu_ld_interface=no
1cf3d07d 8351 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
8352 case $host_os in
8353 aix*)
8354 # The AIX port of GNU ld has always aspired to compatibility
8355 # with the native linker. However, as the warning in the GNU ld
8356 # block says, versions before 2.19.5* couldn't really create working
8357 # shared libraries, regardless of the interface used.
8358 case `$LD -v 2>&1` in
8359 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8360 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8361 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8362 *)
8363 lt_use_gnu_ld_interface=yes
8364 ;;
8365 esac
8366 ;;
8367 *)
8368 lt_use_gnu_ld_interface=yes
8369 ;;
8370 esac
8371 fi
8372
8373 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
8374 # If archive_cmds runs LD, not CC, wlarc should be empty
8375 wlarc='${wl}'
8376
8377 # Set some defaults for GNU ld with shared library support. These
8378 # are reset later if shared libraries are not supported. Putting them
8379 # here allows them to be overridden if necessary.
8380 runpath_var=LD_RUN_PATH
8381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8382 export_dynamic_flag_spec='${wl}--export-dynamic'
8383 # ancient GNU ld didn't support --whole-archive et. al.
8384 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8385 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8386 else
8387 whole_archive_flag_spec=
8388 fi
8389 supports_anon_versioning=no
8390 case `$LD -v 2>&1` in
43e02a8a 8391 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
8392 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8393 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8394 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8395 *\ 2.11.*) ;; # other 2.11 versions
8396 *) supports_anon_versioning=yes ;;
8397 esac
8398
8399 # See if GNU ld supports shared libraries.
8400 case $host_os in
3e7b7e2b 8401 aix[3-9]*)
1cf3d07d
SE
8402 # On AIX/PPC, the GNU linker is very broken
8403 if test "$host_cpu" != ia64; then
8404 ld_shlibs=no
8405 cat <<_LT_EOF 1>&2
8406
43e02a8a 8407*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
8408*** to be unable to reliably create shared libraries on AIX.
8409*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
8410*** really care for shared libraries, you may want to install binutils
8411*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8412*** You will then need to restart the configuration process.
1cf3d07d
SE
8413
8414_LT_EOF
8415 fi
8416 ;;
8417
8418 amigaos*)
18d98188
PG
8419 case $host_cpu in
8420 powerpc)
8421 # see comment about AmigaOS4 .so support
8422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423 archive_expsym_cmds=''
8424 ;;
8425 m68k)
8426 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)'
8427 hardcode_libdir_flag_spec='-L$libdir'
8428 hardcode_minus_L=yes
8429 ;;
8430 esac
1cf3d07d
SE
8431 ;;
8432
8433 beos*)
8434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8435 allow_undefined_flag=unsupported
8436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8437 # support --undefined. This deserves some investigation. FIXME
8438 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8439 else
8440 ld_shlibs=no
8441 fi
8442 ;;
8443
18d98188 8444 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8445 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8446 # as there is no search path for DLLs.
8447 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 8448 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
8449 allow_undefined_flag=unsupported
8450 always_export_symbols=no
8451 enable_shared_with_static_runtimes=yes
8452 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8453
8454 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8456 # If the export-symbols file already is a .def file (1st line
8457 # is EXPORTS), use it as is; otherwise, prepend...
8458 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8459 cp $export_symbols $output_objdir/$soname.def;
8460 else
8461 echo EXPORTS > $output_objdir/$soname.def;
8462 cat $export_symbols >> $output_objdir/$soname.def;
8463 fi~
8464 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8465 else
8466 ld_shlibs=no
8467 fi
8468 ;;
8469
43e02a8a
RW
8470 haiku*)
8471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472 link_all_deplibs=yes
8473 ;;
8474
1cf3d07d
SE
8475 interix[3-9]*)
8476 hardcode_direct=no
8477 hardcode_shlibpath_var=no
8478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8479 export_dynamic_flag_spec='${wl}-E'
8480 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8481 # Instead, shared libraries are loaded at an image base (0x10000000 by
8482 # default) and relocated if they conflict, which is a slow very memory
8483 # consuming and fragmenting process. To avoid this, we pick a random,
8484 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8485 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8487 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'
8488 ;;
8489
e9085da5 8490 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
8491 tmp_diet=no
8492 if test "$host_os" = linux-dietlibc; then
8493 case $cc_basename in
8494 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8495 esac
8496 fi
8497 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8498 && test "$tmp_diet" = no
8499 then
a699d672 8500 tmp_addflag=' $pic_flag'
18d98188 8501 tmp_sharedflag='-shared'
1cf3d07d
SE
8502 case $cc_basename,$host_cpu in
8503 pgcc*) # Portland Group C compiler
43e02a8a 8504 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
8505 tmp_addflag=' $pic_flag'
8506 ;;
43e02a8a
RW
8507 pgf77* | pgf90* | pgf95* | pgfortran*)
8508 # Portland Group f77 and f90 compilers
8509 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
8510 tmp_addflag=' $pic_flag -Mnomain' ;;
8511 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8512 tmp_addflag=' -i_dynamic' ;;
8513 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8514 tmp_addflag=' -i_dynamic -nofor_main' ;;
8515 ifc* | ifort*) # Intel Fortran compiler
8516 tmp_addflag=' -nofor_main' ;;
18d98188
PG
8517 lf95*) # Lahey Fortran 8.1
8518 whole_archive_flag_spec=
8519 tmp_sharedflag='--shared' ;;
43e02a8a 8520 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18d98188
PG
8521 tmp_sharedflag='-qmkshrobj'
8522 tmp_addflag= ;;
43e02a8a
RW
8523 nvcc*) # Cuda Compiler Driver 2.2
8524 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'
8525 compiler_needs_object=yes
8526 ;;
1cf3d07d
SE
8527 esac
8528 case `$CC -V 2>&1 | sed 5q` in
8529 *Sun\ C*) # Sun C 5.9
43e02a8a 8530 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
8531 compiler_needs_object=yes
8532 tmp_sharedflag='-G' ;;
8533 *Sun\ F*) # Sun Fortran 8.3
8534 tmp_sharedflag='-G' ;;
1cf3d07d
SE
8535 esac
8536 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8537
8538 if test "x$supports_anon_versioning" = xyes; then
8539 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8541 echo "local: *; };" >> $output_objdir/$libname.ver~
8542 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8543 fi
18d98188
PG
8544
8545 case $cc_basename in
43e02a8a 8546 xlf* | bgf* | bgxlf* | mpixlf*)
18d98188
PG
8547 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8548 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8549 hardcode_libdir_flag_spec=
8550 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8551 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8552 if test "x$supports_anon_versioning" = xyes; then
8553 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8554 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8555 echo "local: *; };" >> $output_objdir/$libname.ver~
8556 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8557 fi
8558 ;;
8559 esac
1cf3d07d
SE
8560 else
8561 ld_shlibs=no
8562 fi
8563 ;;
8564
8565 netbsd*)
8566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8567 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8568 wlarc=
8569 else
8570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8572 fi
8573 ;;
8574
8575 solaris*)
8576 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8577 ld_shlibs=no
8578 cat <<_LT_EOF 1>&2
8579
8580*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8581*** create shared libraries on Solaris systems. Therefore, libtool
8582*** is disabling shared libraries support. We urge you to upgrade GNU
8583*** binutils to release 2.9.1 or newer. Another option is to modify
8584*** your PATH or compiler configuration so that the native linker is
8585*** used, and then restart.
8586
8587_LT_EOF
8588 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8591 else
8592 ld_shlibs=no
8593 fi
8594 ;;
8595
8596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8597 case `$LD -v 2>&1` in
8598 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8599 ld_shlibs=no
8600 cat <<_LT_EOF 1>&2
8601
8602*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8603*** reliably create shared libraries on SCO systems. Therefore, libtool
8604*** is disabling shared libraries support. We urge you to upgrade GNU
8605*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8606*** your PATH or compiler configuration so that the native linker is
8607*** used, and then restart.
8608
8609_LT_EOF
8610 ;;
8611 *)
8612 # For security reasons, it is highly recommended that you always
8613 # use absolute paths for naming shared libraries, and exclude the
8614 # DT_RUNPATH tag from executables and libraries. But doing so
8615 # requires that you compile everything twice, which is a pain.
8616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8620 else
8621 ld_shlibs=no
8622 fi
8623 ;;
8624 esac
8625 ;;
8626
8627 sunos4*)
8628 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8629 wlarc=
8630 hardcode_direct=yes
8631 hardcode_shlibpath_var=no
8632 ;;
8633
8634 *)
8635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8638 else
8639 ld_shlibs=no
8640 fi
8641 ;;
8642 esac
8643
8644 if test "$ld_shlibs" = no; then
8645 runpath_var=
8646 hardcode_libdir_flag_spec=
8647 export_dynamic_flag_spec=
8648 whole_archive_flag_spec=
8649 fi
8650 else
8651 # PORTME fill in a description of your system's linker (not GNU ld)
8652 case $host_os in
8653 aix3*)
8654 allow_undefined_flag=unsupported
8655 always_export_symbols=yes
8656 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'
8657 # Note: this linker hardcodes the directories in LIBPATH if there
8658 # are no directories specified by -L.
8659 hardcode_minus_L=yes
8660 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8661 # Neither direct hardcoding nor static linking is supported with a
8662 # broken collect2.
8663 hardcode_direct=unsupported
8664 fi
8665 ;;
8666
3e7b7e2b 8667 aix[4-9]*)
1cf3d07d
SE
8668 if test "$host_cpu" = ia64; then
8669 # On IA64, the linker does run time linking by default, so we don't
8670 # have to do anything special.
8671 aix_use_runtimelinking=no
8672 exp_sym_flag='-Bexport'
8673 no_entry_flag=""
8674 else
8675 # If we're using GNU nm, then we don't want the "-C" option.
8676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
8677 # Also, AIX nm treats weak defined symbols like other global
8678 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 8679 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 8680 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 8681 else
84c1b9d3 8682 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
8683 fi
8684 aix_use_runtimelinking=no
8685
8686 # Test if we are trying to use run time linking or normal
8687 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8688 # need to do runtime linking.
3e7b7e2b 8689 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8690 for ld_flag in $LDFLAGS; do
8691 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8692 aix_use_runtimelinking=yes
8693 break
8694 fi
8695 done
8696 ;;
8697 esac
8698
8699 exp_sym_flag='-bexport'
8700 no_entry_flag='-bnoentry'
8701 fi
8702
8703 # When large executables or shared objects are built, AIX ld can
8704 # have problems creating the table of contents. If linking a library
8705 # or program results in "error TOC overflow" add -mminimal-toc to
8706 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8707 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8708
8709 archive_cmds=''
8710 hardcode_direct=yes
8711 hardcode_direct_absolute=yes
8712 hardcode_libdir_separator=':'
8713 link_all_deplibs=yes
8714 file_list_spec='${wl}-f,'
8715
8716 if test "$GCC" = yes; then
8717 case $host_os in aix4.[012]|aix4.[012].*)
8718 # We only want to do this on AIX 4.2 and lower, the check
8719 # below for broken collect2 doesn't work under 4.3+
8720 collect2name=`${CC} -print-prog-name=collect2`
8721 if test -f "$collect2name" &&
8722 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8723 then
8724 # We have reworked collect2
8725 :
8726 else
8727 # We have old collect2
8728 hardcode_direct=unsupported
8729 # It fails to find uninstalled libraries when the uninstalled
8730 # path is not listed in the libpath. Setting hardcode_minus_L
8731 # to unsupported forces relinking
8732 hardcode_minus_L=yes
8733 hardcode_libdir_flag_spec='-L$libdir'
8734 hardcode_libdir_separator=
8735 fi
8736 ;;
8737 esac
8738 shared_flag='-shared'
8739 if test "$aix_use_runtimelinking" = yes; then
8740 shared_flag="$shared_flag "'${wl}-G'
8741 fi
8742 else
8743 # not using gcc
8744 if test "$host_cpu" = ia64; then
8745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8746 # chokes on -Wl,-G. The following line is correct:
8747 shared_flag='-G'
8748 else
8749 if test "$aix_use_runtimelinking" = yes; then
8750 shared_flag='${wl}-G'
8751 else
8752 shared_flag='${wl}-bM:SRE'
8753 fi
8754 fi
8755 fi
8756
18d98188 8757 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8758 # It seems that -bexpall does not export symbols beginning with
8759 # underscore (_), so it is better to generate a list of symbols to export.
8760 always_export_symbols=yes
8761 if test "$aix_use_runtimelinking" = yes; then
8762 # Warning - without using the other runtime loading flags (-brtl),
8763 # -berok will link without error, but may produce a broken library.
8764 allow_undefined_flag='-berok'
8765 # Determine the default libpath from the value encoded in an
8766 # empty executable.
8767 if test x$gcc_no_link = xyes; then
22e05272 8768 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8769fi
5213506e 8770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8771/* end confdefs.h. */
8772
8773int
8774main ()
8775{
8776
8777 ;
8778 return 0;
8779}
8780_ACEOF
5213506e 8781if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8782
8783lt_aix_libpath_sed='
8784 /Import File Strings/,/^$/ {
8785 /^0/ {
8786 s/^0 *\(.*\)$/\1/
8787 p
8788 }
8789 }'
8790aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8791# Check for a 64-bit object if we didn't find anything.
8792if test -z "$aix_libpath"; then
8793 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8794fi
1cf3d07d 8795fi
5213506e
RW
8796rm -f core conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8798if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8799
8800 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 8801 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
8802 else
8803 if test "$host_cpu" = ia64; then
8804 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8805 allow_undefined_flag="-z nodefs"
8806 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"
8807 else
8808 # Determine the default libpath from the value encoded in an
8809 # empty executable.
8810 if test x$gcc_no_link = xyes; then
22e05272 8811 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8812fi
5213506e 8813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8814/* end confdefs.h. */
8815
8816int
8817main ()
8818{
8819
8820 ;
8821 return 0;
8822}
8823_ACEOF
5213506e 8824if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8825
8826lt_aix_libpath_sed='
8827 /Import File Strings/,/^$/ {
8828 /^0/ {
8829 s/^0 *\(.*\)$/\1/
8830 p
8831 }
8832 }'
8833aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8834# Check for a 64-bit object if we didn't find anything.
8835if test -z "$aix_libpath"; then
8836 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8837fi
1cf3d07d 8838fi
5213506e
RW
8839rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8842
8843 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8844 # Warning - without using the other run time loading flags,
8845 # -berok will link without error, but may produce a broken library.
8846 no_undefined_flag=' ${wl}-bernotok'
8847 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
8848 if test "$with_gnu_ld" = yes; then
8849 # We only use this code for GNU lds that support --whole-archive.
8850 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8851 else
8852 # Exported symbols can be pulled into shared objects from archives
8853 whole_archive_flag_spec='$convenience'
8854 fi
1cf3d07d
SE
8855 archive_cmds_need_lc=yes
8856 # This is similar to how AIX traditionally builds its shared libraries.
8857 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'
8858 fi
8859 fi
8860 ;;
8861
8862 amigaos*)
18d98188
PG
8863 case $host_cpu in
8864 powerpc)
8865 # see comment about AmigaOS4 .so support
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867 archive_expsym_cmds=''
8868 ;;
8869 m68k)
8870 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)'
8871 hardcode_libdir_flag_spec='-L$libdir'
8872 hardcode_minus_L=yes
8873 ;;
8874 esac
1cf3d07d
SE
8875 ;;
8876
8877 bsdi[45]*)
8878 export_dynamic_flag_spec=-rdynamic
8879 ;;
8880
18d98188 8881 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8882 # When not using gcc, we currently assume that we are using
8883 # Microsoft Visual C++.
8884 # hardcode_libdir_flag_spec is actually meaningless, as there is
8885 # no search path for DLLs.
8886 hardcode_libdir_flag_spec=' '
8887 allow_undefined_flag=unsupported
8888 # Tell ltmain to make .lib files, not .a files.
8889 libext=lib
8890 # Tell ltmain to make .dll files, not .so files.
8891 shrext_cmds=".dll"
8892 # FIXME: Setting linknames here is a bad hack.
43e02a8a 8893 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
8894 # The linker will automatically build a .lib file if we build a DLL.
8895 old_archive_from_new_cmds='true'
8896 # FIXME: Should let the user specify the lib program.
8897 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8898 fix_srcfile_path='`cygpath -w "$srcfile"`'
8899 enable_shared_with_static_runtimes=yes
8900 ;;
8901
8902 darwin* | rhapsody*)
1cf3d07d 8903
18d98188
PG
8904
8905 archive_cmds_need_lc=no
8906 hardcode_direct=no
8907 hardcode_automatic=yes
8908 hardcode_shlibpath_var=unsupported
43e02a8a
RW
8909 if test "$lt_cv_ld_force_load" = "yes"; then
8910 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\"`'
8911 else
8912 whole_archive_flag_spec=''
8913 fi
18d98188
PG
8914 link_all_deplibs=yes
8915 allow_undefined_flag="$_lt_dar_allow_undefined"
8916 case $cc_basename in
8917 ifort*) _lt_dar_can_shared=yes ;;
8918 *) _lt_dar_can_shared=$GCC ;;
8919 esac
8920 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 8921 output_verbose_link_cmd=func_echo_all
18d98188
PG
8922 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8923 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8924 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}"
8925 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}"
8926
8927 else
8928 ld_shlibs=no
8929 fi
8930
1cf3d07d
SE
8931 ;;
8932
8933 dgux*)
8934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935 hardcode_libdir_flag_spec='-L$libdir'
8936 hardcode_shlibpath_var=no
8937 ;;
8938
1cf3d07d
SE
8939 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8940 # support. Future versions do this automatically, but an explicit c++rt0.o
8941 # does not break anything, and helps significantly (at the cost of a little
8942 # extra space).
8943 freebsd2.2*)
8944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8945 hardcode_libdir_flag_spec='-R$libdir'
8946 hardcode_direct=yes
8947 hardcode_shlibpath_var=no
8948 ;;
8949
8950 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 8951 freebsd2.*)
1cf3d07d
SE
8952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8953 hardcode_direct=yes
8954 hardcode_minus_L=yes
8955 hardcode_shlibpath_var=no
8956 ;;
8957
8958 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8959 freebsd* | dragonfly*)
8960 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8961 hardcode_libdir_flag_spec='-R$libdir'
8962 hardcode_direct=yes
8963 hardcode_shlibpath_var=no
8964 ;;
8965
8966 hpux9*)
8967 if test "$GCC" = yes; then
8968 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'
8969 else
8970 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'
8971 fi
8972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8973 hardcode_libdir_separator=:
8974 hardcode_direct=yes
8975
8976 # hardcode_minus_L: Not really in the search PATH,
8977 # but as the default location of the library.
8978 hardcode_minus_L=yes
8979 export_dynamic_flag_spec='${wl}-E'
8980 ;;
8981
8982 hpux10*)
43e02a8a 8983 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
8984 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8985 else
8986 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8987 fi
8988 if test "$with_gnu_ld" = no; then
8989 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8990 hardcode_libdir_flag_spec_ld='+b $libdir'
8991 hardcode_libdir_separator=:
8992 hardcode_direct=yes
8993 hardcode_direct_absolute=yes
8994 export_dynamic_flag_spec='${wl}-E'
8995 # hardcode_minus_L: Not really in the search PATH,
8996 # but as the default location of the library.
8997 hardcode_minus_L=yes
8998 fi
8999 ;;
9000
9001 hpux11*)
43e02a8a 9002 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9003 case $host_cpu in
9004 hppa*64*)
9005 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 ;;
9007 ia64*)
18d98188 9008 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9009 ;;
9010 *)
9011 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9012 ;;
9013 esac
9014 else
9015 case $host_cpu in
9016 hppa*64*)
9017 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 ;;
9019 ia64*)
9020 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9021 ;;
9022 *)
43e02a8a
RW
9023
9024 # Older versions of the 11.00 compiler do not understand -b yet
9025 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9027$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9028if ${lt_cv_prog_compiler__b+:} false; then :
43e02a8a
RW
9029 $as_echo_n "(cached) " >&6
9030else
9031 lt_cv_prog_compiler__b=no
9032 save_LDFLAGS="$LDFLAGS"
9033 LDFLAGS="$LDFLAGS -b"
9034 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9036 # The linker can only warn and ignore the option if not recognized
9037 # So say no if there are warnings
9038 if test -s conftest.err; then
9039 # Append any errors to the config.log.
9040 cat conftest.err 1>&5
9041 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043 if diff conftest.exp conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler__b=yes
9045 fi
9046 else
9047 lt_cv_prog_compiler__b=yes
9048 fi
9049 fi
9050 $RM -r conftest*
9051 LDFLAGS="$save_LDFLAGS"
9052
9053fi
9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9055$as_echo "$lt_cv_prog_compiler__b" >&6; }
9056
9057if test x"$lt_cv_prog_compiler__b" = xyes; then
9058 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9059else
9060 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9061fi
9062
1cf3d07d
SE
9063 ;;
9064 esac
9065 fi
9066 if test "$with_gnu_ld" = no; then
9067 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9068 hardcode_libdir_separator=:
9069
9070 case $host_cpu in
9071 hppa*64*|ia64*)
9072 hardcode_direct=no
9073 hardcode_shlibpath_var=no
9074 ;;
9075 *)
9076 hardcode_direct=yes
9077 hardcode_direct_absolute=yes
9078 export_dynamic_flag_spec='${wl}-E'
9079
9080 # hardcode_minus_L: Not really in the search PATH,
9081 # but as the default location of the library.
9082 hardcode_minus_L=yes
9083 ;;
9084 esac
9085 fi
9086 ;;
9087
9088 irix5* | irix6* | nonstopux*)
9089 if test "$GCC" = yes; then
43e02a8a 9090 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
9091 # Try to use the -exported_symbol ld option, if it does not
9092 # work, assume that -exports_file does not work either and
9093 # implicitly export all symbols.
9094 save_LDFLAGS="$LDFLAGS"
9095 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9096 if test x$gcc_no_link = xyes; then
22e05272 9097 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9098fi
5213506e
RW
9099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h. */
1cf3d07d
SE
9101int foo(void) {}
9102_ACEOF
5213506e 9103if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9104 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 9105
1cf3d07d 9106fi
5213506e
RW
9107rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9109 LDFLAGS="$save_LDFLAGS"
9110 else
43e02a8a
RW
9111 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'
9112 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
9113 fi
9114 archive_cmds_need_lc='no'
9115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9116 hardcode_libdir_separator=:
9117 inherit_rpath=yes
9118 link_all_deplibs=yes
9119 ;;
9120
9121 netbsd*)
9122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9124 else
9125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9126 fi
9127 hardcode_libdir_flag_spec='-R$libdir'
9128 hardcode_direct=yes
9129 hardcode_shlibpath_var=no
9130 ;;
9131
9132 newsos6)
9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_direct=yes
9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136 hardcode_libdir_separator=:
9137 hardcode_shlibpath_var=no
9138 ;;
9139
9140 *nto* | *qnx*)
9141 ;;
9142
9143 openbsd*)
18d98188
PG
9144 if test -f /usr/libexec/ld.so; then
9145 hardcode_direct=yes
9146 hardcode_shlibpath_var=no
9147 hardcode_direct_absolute=yes
9148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18d98188 9150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18d98188
PG
9152 export_dynamic_flag_spec='${wl}-E'
9153 else
9154 case $host_os in
9155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9157 hardcode_libdir_flag_spec='-R$libdir'
9158 ;;
9159 *)
9160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9162 ;;
9163 esac
9164 fi
9165 else
9166 ld_shlibs=no
1cf3d07d
SE
9167 fi
9168 ;;
9169
9170 os2*)
9171 hardcode_libdir_flag_spec='-L$libdir'
9172 hardcode_minus_L=yes
9173 allow_undefined_flag=unsupported
43e02a8a 9174 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
9175 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9176 ;;
9177
9178 osf3*)
9179 if test "$GCC" = yes; then
9180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9181 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
9182 else
9183 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9184 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
9185 fi
9186 archive_cmds_need_lc='no'
9187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188 hardcode_libdir_separator=:
9189 ;;
9190
9191 osf4* | osf5*) # as osf3* with the addition of -msym flag
9192 if test "$GCC" = yes; then
9193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9194 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
9195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196 else
9197 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9198 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 9199 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 9200 $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
9201
9202 # Both c and cxx compiler support -rpath directly
9203 hardcode_libdir_flag_spec='-rpath $libdir'
9204 fi
9205 archive_cmds_need_lc='no'
9206 hardcode_libdir_separator=:
9207 ;;
9208
9209 solaris*)
9210 no_undefined_flag=' -z defs'
9211 if test "$GCC" = yes; then
9212 wlarc='${wl}'
9213 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9215 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9216 else
9217 case `$CC -V 2>&1` in
9218 *"Compilers 5.0"*)
9219 wlarc=''
9220 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9223 ;;
9224 *)
9225 wlarc='${wl}'
9226 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9228 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9229 ;;
9230 esac
9231 fi
9232 hardcode_libdir_flag_spec='-R$libdir'
9233 hardcode_shlibpath_var=no
9234 case $host_os in
9235 solaris2.[0-5] | solaris2.[0-5].*) ;;
9236 *)
9237 # The compiler driver will combine and reorder linker options,
9238 # but understands `-z linker_flag'. GCC discards it without `$wl',
9239 # but is careful enough not to reorder.
9240 # Supported since Solaris 2.6 (maybe 2.5.1?)
9241 if test "$GCC" = yes; then
9242 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9243 else
9244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9245 fi
9246 ;;
9247 esac
9248 link_all_deplibs=yes
9249 ;;
9250
9251 sunos4*)
9252 if test "x$host_vendor" = xsequent; then
9253 # Use $CC to link under sequent, because it throws in some extra .o
9254 # files that make .init and .fini sections work.
9255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9256 else
9257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9258 fi
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 hardcode_direct=yes
9261 hardcode_minus_L=yes
9262 hardcode_shlibpath_var=no
9263 ;;
9264
9265 sysv4)
9266 case $host_vendor in
9267 sni)
9268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9269 hardcode_direct=yes # is this really true???
9270 ;;
9271 siemens)
9272 ## LD is ld it makes a PLAMLIB
9273 ## CC just makes a GrossModule.
9274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9275 reload_cmds='$CC -r -o $output$reload_objs'
9276 hardcode_direct=no
9277 ;;
9278 motorola)
9279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9281 ;;
9282 esac
9283 runpath_var='LD_RUN_PATH'
9284 hardcode_shlibpath_var=no
9285 ;;
9286
9287 sysv4.3*)
9288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289 hardcode_shlibpath_var=no
9290 export_dynamic_flag_spec='-Bexport'
9291 ;;
9292
9293 sysv4*MP*)
9294 if test -d /usr/nec; then
9295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296 hardcode_shlibpath_var=no
9297 runpath_var=LD_RUN_PATH
9298 hardcode_runpath_var=yes
9299 ld_shlibs=yes
9300 fi
9301 ;;
9302
9303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9304 no_undefined_flag='${wl}-z,text'
9305 archive_cmds_need_lc=no
9306 hardcode_shlibpath_var=no
9307 runpath_var='LD_RUN_PATH'
9308
9309 if test "$GCC" = yes; then
9310 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312 else
9313 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9315 fi
9316 ;;
9317
9318 sysv5* | sco3.2v5* | sco5v6*)
9319 # Note: We can NOT use -z defs as we might desire, because we do not
9320 # link with -lc, and that would cause any symbols used from libc to
9321 # always be unresolved, which means just about no library would
9322 # ever link correctly. If we're not using GNU ld we use -z text
9323 # though, which does catch some bad symbols but isn't as heavy-handed
9324 # as -z defs.
9325 no_undefined_flag='${wl}-z,text'
9326 allow_undefined_flag='${wl}-z,nodefs'
9327 archive_cmds_need_lc=no
9328 hardcode_shlibpath_var=no
9329 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9330 hardcode_libdir_separator=':'
9331 link_all_deplibs=yes
9332 export_dynamic_flag_spec='${wl}-Bexport'
9333 runpath_var='LD_RUN_PATH'
9334
9335 if test "$GCC" = yes; then
9336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9338 else
9339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9341 fi
9342 ;;
9343
9344 uts4*)
9345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_shlibpath_var=no
9348 ;;
9349
9350 *)
9351 ld_shlibs=no
9352 ;;
9353 esac
9354
9355 if test x$host_vendor = xsni; then
9356 case $host in
9357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9358 export_dynamic_flag_spec='${wl}-Blargedynsym'
9359 ;;
9360 esac
9361 fi
9362 fi
9363
5213506e
RW
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9365$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9366test "$ld_shlibs" = no && can_build_shared=no
9367
9368with_gnu_ld=$with_gnu_ld
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384#
9385# Do we need to explicitly link libc?
9386#
9387case "x$archive_cmds_need_lc" in
9388x|xyes)
9389 # Assume -lc should be added
9390 archive_cmds_need_lc=yes
9391
9392 if test "$enable_shared" = yes && test "$GCC" = yes; then
9393 case $archive_cmds in
9394 *'~'*)
9395 # FIXME: we may have to deal with multi-command sequences.
9396 ;;
9397 '$CC '*)
9398 # Test whether the compiler implicitly links with -lc since on some
9399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9400 # to ld, don't add -lc before -lgcc.
5213506e
RW
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9402$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 9403if ${lt_cv_archive_cmds_need_lc+:} false; then :
5213506e 9404 $as_echo_n "(cached) " >&6
baafc534
RW
9405else
9406 $RM conftest*
9407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9408
5213506e 9409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9410 (eval $ac_compile) 2>&5
9411 ac_status=$?
5213506e
RW
9412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9413 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
9414 soname=conftest
9415 lib=conftest
9416 libobjs=conftest.$ac_objext
9417 deplibs=
9418 wl=$lt_prog_compiler_wl
9419 pic_flag=$lt_prog_compiler_pic
9420 compiler_flags=-v
9421 linker_flags=-v
9422 verstring=
9423 output_objdir=.
9424 libname=conftest
9425 lt_save_allow_undefined_flag=$allow_undefined_flag
9426 allow_undefined_flag=
5213506e 9427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9428 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9429 ac_status=$?
5213506e
RW
9430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9431 test $ac_status = 0; }
baafc534
RW
9432 then
9433 lt_cv_archive_cmds_need_lc=no
9434 else
9435 lt_cv_archive_cmds_need_lc=yes
9436 fi
9437 allow_undefined_flag=$lt_save_allow_undefined_flag
9438 else
9439 cat conftest.err 1>&5
9440 fi
9441 $RM conftest*
9442
9443fi
5213506e
RW
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9445$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 9446 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9447 ;;
9448 esac
9449 fi
9450 ;;
9451esac
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
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
5213506e
RW
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9610$as_echo_n "checking dynamic linker characteristics... " >&6; }
18d98188
PG
9611
9612if test "$GCC" = yes; then
1cf3d07d
SE
9613 case $host_os in
9614 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9615 *) lt_awk_arg="/^libraries:/" ;;
9616 esac
43e02a8a
RW
9617 case $host_os in
9618 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9619 *) lt_sed_strip_eq="s,=/,/,g" ;;
9620 esac
9621 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9622 case $lt_search_path_spec in
9623 *\;*)
1cf3d07d
SE
9624 # if the path contains ";" then we assume it to be the separator
9625 # otherwise default to the standard path separator (i.e. ":") - it is
9626 # assumed that no part of a normal pathname contains ";" but that should
9627 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
9628 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9629 ;;
9630 *)
9631 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9632 ;;
9633 esac
1cf3d07d
SE
9634 # Ok, now we have the path, separated by spaces, we can step through it
9635 # and add multilib dir if necessary.
9636 lt_tmp_lt_search_path_spec=
9637 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9638 for lt_sys_path in $lt_search_path_spec; do
9639 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9641 else
9642 test -d "$lt_sys_path" && \
9643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9644 fi
9645 done
43e02a8a 9646 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
9647BEGIN {RS=" "; FS="/|\n";} {
9648 lt_foo="";
9649 lt_count=0;
9650 for (lt_i = NF; lt_i > 0; lt_i--) {
9651 if ($lt_i != "" && $lt_i != ".") {
9652 if ($lt_i == "..") {
9653 lt_count++;
9654 } else {
9655 if (lt_count == 0) {
9656 lt_foo="/" $lt_i lt_foo;
9657 } else {
9658 lt_count--;
9659 }
9660 }
9661 }
9662 }
9663 if (lt_foo != "") { lt_freq[lt_foo]++; }
9664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9665}'`
43e02a8a
RW
9666 # AWK program above erroneously prepends '/' to C:/dos/paths
9667 # for these hosts.
9668 case $host_os in
9669 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9670 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9671 esac
9672 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
9673else
9674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9675fi
9676library_names_spec=
9677libname_spec='lib$name'
9678soname_spec=
9679shrext_cmds=".so"
9680postinstall_cmds=
9681postuninstall_cmds=
9682finish_cmds=
9683finish_eval=
9684shlibpath_var=
9685shlibpath_overrides_runpath=unknown
9686version_type=none
9687dynamic_linker="$host_os ld.so"
9688sys_lib_dlsearch_path_spec="/lib /usr/lib"
9689need_lib_prefix=unknown
9690hardcode_into_libs=no
9691
9692# when you set need_version to no, make sure it does not cause -set_version
9693# flags to be left without arguments
9694need_version=unknown
9695
9696case $host_os in
9697aix3*)
9698 version_type=linux
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9700 shlibpath_var=LIBPATH
9701
9702 # AIX 3 has no versioning support, so we append a major version to the name.
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 ;;
9705
3e7b7e2b 9706aix[4-9]*)
1cf3d07d
SE
9707 version_type=linux
9708 need_lib_prefix=no
9709 need_version=no
9710 hardcode_into_libs=yes
9711 if test "$host_cpu" = ia64; then
9712 # AIX 5 supports IA64
9713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 else
9716 # With GCC up to 2.95.x, collect2 would create an import file
9717 # for dependence libraries. The import file would start with
9718 # the line `#! .'. This would cause the generated library to
9719 # depend on `.', always an invalid library. This was fixed in
9720 # development snapshots of GCC prior to 3.0.
9721 case $host_os in
9722 aix4 | aix4.[01] | aix4.[01].*)
9723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9724 echo ' yes '
9725 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9726 :
9727 else
9728 can_build_shared=no
9729 fi
9730 ;;
9731 esac
9732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9733 # soname into executable. Probably we can add versioning support to
9734 # collect2, so additional links can be useful in future.
9735 if test "$aix_use_runtimelinking" = yes; then
9736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9737 # instead of lib<name>.a to let people know that these are not
9738 # typical AIX shared libraries.
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 else
9741 # We preserve .a as extension for shared libraries through AIX4.2
9742 # and later when we are not doing run time linking.
9743 library_names_spec='${libname}${release}.a $libname.a'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 fi
9746 shlibpath_var=LIBPATH
9747 fi
9748 ;;
9749
9750amigaos*)
18d98188
PG
9751 case $host_cpu in
9752 powerpc)
9753 # Since July 2007 AmigaOS4 officially supports .so libraries.
9754 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 ;;
9757 m68k)
1cf3d07d
SE
9758 library_names_spec='$libname.ixlibrary $libname.a'
9759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 9760 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'
18d98188
PG
9761 ;;
9762 esac
1cf3d07d
SE
9763 ;;
9764
9765beos*)
9766 library_names_spec='${libname}${shared_ext}'
9767 dynamic_linker="$host_os ld.so"
9768 shlibpath_var=LIBRARY_PATH
9769 ;;
9770
9771bsdi[45]*)
9772 version_type=linux
9773 need_version=no
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9780 # the default ld.so.conf also contains /usr/contrib/lib and
9781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9782 # libtool to hard-code these into programs
9783 ;;
9784
18d98188 9785cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9786 version_type=windows
9787 shrext_cmds=".dll"
9788 need_version=no
9789 need_lib_prefix=no
9790
18d98188
PG
9791 case $GCC,$host_os in
9792 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9793 library_names_spec='$libname.dll.a'
9794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9795 postinstall_cmds='base_file=`basename \${file}`~
9796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9797 dldir=$destdir/`dirname \$dlpath`~
9798 test -d \$dldir || mkdir -p \$dldir~
9799 $install_prog $dir/$dlname \$dldir/$dlname~
9800 chmod a+x \$dldir/$dlname~
9801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9803 fi'
9804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9805 dlpath=$dir/\$dldll~
9806 $RM \$dlpath'
9807 shlibpath_overrides_runpath=yes
9808
9809 case $host_os in
9810 cygwin*)
9811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
9813
9814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 9815 ;;
18d98188 9816 mingw* | cegcc*)
1cf3d07d
SE
9817 # MinGW DLLs use traditional 'lib' prefix
9818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
9819 ;;
9820 pw32*)
9821 # pw32 DLLs use 'pw' prefix rather than 'lib'
9822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9823 ;;
9824 esac
9825 ;;
9826
9827 *)
9828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9829 ;;
9830 esac
9831 dynamic_linker='Win32 ld.exe'
9832 # FIXME: first we should search . and the directory the executable is in
9833 shlibpath_var=PATH
9834 ;;
9835
9836darwin* | rhapsody*)
9837 dynamic_linker="$host_os dyld"
9838 version_type=darwin
9839 need_lib_prefix=no
9840 need_version=no
9841 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9842 soname_spec='${libname}${release}${major}$shared_ext'
9843 shlibpath_overrides_runpath=yes
9844 shlibpath_var=DYLD_LIBRARY_PATH
9845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9846
9847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9849 ;;
9850
9851dgux*)
9852 version_type=linux
9853 need_lib_prefix=no
9854 need_version=no
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 ;;
9859
1cf3d07d
SE
9860freebsd* | dragonfly*)
9861 # DragonFly does not have aout. When/if they implement a new
9862 # versioning mechanism, adjust this.
9863 if test -x /usr/bin/objformat; then
9864 objformat=`/usr/bin/objformat`
9865 else
9866 case $host_os in
c6084f68 9867 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
9868 *) objformat=elf ;;
9869 esac
9870 fi
9871 version_type=freebsd-$objformat
9872 case $version_type in
9873 freebsd-elf*)
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9875 need_version=no
9876 need_lib_prefix=no
9877 ;;
9878 freebsd-*)
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9880 need_version=yes
9881 ;;
9882 esac
9883 shlibpath_var=LD_LIBRARY_PATH
9884 case $host_os in
c6084f68 9885 freebsd2.*)
1cf3d07d
SE
9886 shlibpath_overrides_runpath=yes
9887 ;;
9888 freebsd3.[01]* | freebsdelf3.[01]*)
9889 shlibpath_overrides_runpath=yes
9890 hardcode_into_libs=yes
9891 ;;
9892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9894 shlibpath_overrides_runpath=no
9895 hardcode_into_libs=yes
9896 ;;
9897 *) # from 4.6 on, and DragonFly
9898 shlibpath_overrides_runpath=yes
9899 hardcode_into_libs=yes
9900 ;;
9901 esac
9902 ;;
9903
9904gnu*)
9905 version_type=linux
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 hardcode_into_libs=yes
9912 ;;
9913
43e02a8a
RW
9914haiku*)
9915 version_type=linux
9916 need_lib_prefix=no
9917 need_version=no
9918 dynamic_linker="$host_os runtime_loader"
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LIBRARY_PATH
9922 shlibpath_overrides_runpath=yes
9923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9924 hardcode_into_libs=yes
9925 ;;
9926
1cf3d07d
SE
9927hpux9* | hpux10* | hpux11*)
9928 # Give a soname corresponding to the major version so that dld.sl refuses to
9929 # link against other versions.
9930 version_type=sunos
9931 need_lib_prefix=no
9932 need_version=no
9933 case $host_cpu in
9934 ia64*)
9935 shrext_cmds='.so'
9936 hardcode_into_libs=yes
9937 dynamic_linker="$host_os dld.so"
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 if test "X$HPUX_IA64_MODE" = X32; then
9943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9944 else
9945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9946 fi
9947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9948 ;;
9949 hppa*64*)
9950 shrext_cmds='.sl'
9951 hardcode_into_libs=yes
9952 dynamic_linker="$host_os dld.sl"
9953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9959 ;;
9960 *)
9961 shrext_cmds='.sl'
9962 dynamic_linker="$host_os dld.sl"
9963 shlibpath_var=SHLIB_PATH
9964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 ;;
9968 esac
43e02a8a 9969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 9970 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
9971 # or fails outright, so override atomically:
9972 install_override_mode=555
1cf3d07d
SE
9973 ;;
9974
9975interix[3-9]*)
9976 version_type=linux
9977 need_lib_prefix=no
9978 need_version=no
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9982 shlibpath_var=LD_LIBRARY_PATH
9983 shlibpath_overrides_runpath=no
9984 hardcode_into_libs=yes
9985 ;;
9986
9987irix5* | irix6* | nonstopux*)
9988 case $host_os in
9989 nonstopux*) version_type=nonstopux ;;
9990 *)
9991 if test "$lt_cv_prog_gnu_ld" = yes; then
9992 version_type=linux
9993 else
9994 version_type=irix
9995 fi ;;
9996 esac
9997 need_lib_prefix=no
9998 need_version=no
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10001 case $host_os in
10002 irix5* | nonstopux*)
10003 libsuff= shlibsuff=
10004 ;;
10005 *)
10006 case $LD in # libtool.m4 will add one of these switches to LD
10007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10008 libsuff= shlibsuff= libmagic=32-bit;;
10009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10010 libsuff=32 shlibsuff=N32 libmagic=N32;;
10011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10013 *) libsuff= shlibsuff= libmagic=never-match;;
10014 esac
10015 ;;
10016 esac
10017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10018 shlibpath_overrides_runpath=no
10019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10021 hardcode_into_libs=yes
10022 ;;
10023
10024# No shared lib support for Linux oldld, aout, or coff.
10025linux*oldld* | linux*aout* | linux*coff*)
10026 dynamic_linker=no
10027 ;;
10028
10029# This must be Linux ELF.
e9085da5
MR
10030
10031# uclinux* changes (here and below) have been submitted to the libtool
10032# project, but have not yet been accepted: they are GCC-local changes
10033# for the time being. (See
10034# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10035linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
10036 version_type=linux
10037 need_lib_prefix=no
10038 need_version=no
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=no
baafc534 10044
1cf3d07d 10045 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10046 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 10047 $as_echo_n "(cached) " >&6
baafc534
RW
10048else
10049 lt_cv_shlibpath_overrides_runpath=no
10050 save_LDFLAGS=$LDFLAGS
10051 save_libdir=$libdir
10052 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10053 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10054 if test x$gcc_no_link = xyes; then
22e05272 10055 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10056fi
5213506e 10057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10058/* end confdefs.h. */
10059
10060int
10061main ()
10062{
10063
10064 ;
10065 return 0;
10066}
10067_ACEOF
5213506e
RW
10068if ac_fn_c_try_link "$LINENO"; then :
10069 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10070 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10071fi
1cf3d07d 10072fi
5213506e
RW
10073rm -f core conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10075 LDFLAGS=$save_LDFLAGS
10076 libdir=$save_libdir
10077
10078fi
10079
10080 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10081
10082 # This implies no fast_install, which is unacceptable.
10083 # Some rework will be needed to allow for fast_install
10084 # before this can be enabled.
10085 hardcode_into_libs=yes
10086
10087 # Append ld.so.conf contents to the search path
10088 if test -f /etc/ld.so.conf; then
43e02a8a 10089 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
10090 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10091 fi
10092
10093 # We used to test for /lib/ld.so.1 and disable shared libraries on
10094 # powerpc, because MkLinux only supported shared libraries with the
10095 # GNU dynamic linker. Since this was broken with cross compilers,
10096 # most powerpc-linux boxes support dynamic linking these days and
10097 # people can always --disable-shared, the test was removed, and we
10098 # assume the GNU/Linux dynamic linker is in use.
10099 dynamic_linker='GNU/Linux ld.so'
10100 ;;
10101
10102netbsd*)
10103 version_type=sunos
10104 need_lib_prefix=no
10105 need_version=no
10106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10109 dynamic_linker='NetBSD (a.out) ld.so'
10110 else
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 dynamic_linker='NetBSD ld.elf_so'
10114 fi
10115 shlibpath_var=LD_LIBRARY_PATH
10116 shlibpath_overrides_runpath=yes
10117 hardcode_into_libs=yes
10118 ;;
10119
10120newsos6)
10121 version_type=linux
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 shlibpath_overrides_runpath=yes
10125 ;;
10126
10127*nto* | *qnx*)
10128 version_type=qnx
10129 need_lib_prefix=no
10130 need_version=no
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 shlibpath_var=LD_LIBRARY_PATH
10134 shlibpath_overrides_runpath=no
10135 hardcode_into_libs=yes
10136 dynamic_linker='ldqnx.so'
10137 ;;
10138
10139openbsd*)
10140 version_type=sunos
10141 sys_lib_dlsearch_path_spec="/usr/lib"
10142 need_lib_prefix=no
10143 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10144 case $host_os in
10145 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10146 *) need_version=no ;;
10147 esac
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10152 case $host_os in
10153 openbsd2.[89] | openbsd2.[89].*)
10154 shlibpath_overrides_runpath=no
10155 ;;
10156 *)
10157 shlibpath_overrides_runpath=yes
10158 ;;
10159 esac
10160 else
10161 shlibpath_overrides_runpath=yes
10162 fi
10163 ;;
10164
10165os2*)
10166 libname_spec='$name'
10167 shrext_cmds=".dll"
10168 need_lib_prefix=no
10169 library_names_spec='$libname${shared_ext} $libname.a'
10170 dynamic_linker='OS/2 ld.exe'
10171 shlibpath_var=LIBPATH
10172 ;;
10173
10174osf3* | osf4* | osf5*)
10175 version_type=osf
10176 need_lib_prefix=no
10177 need_version=no
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 shlibpath_var=LD_LIBRARY_PATH
10181 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10182 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10183 ;;
10184
10185rdos*)
10186 dynamic_linker=no
10187 ;;
10188
10189solaris*)
10190 version_type=linux
10191 need_lib_prefix=no
10192 need_version=no
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $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 # ldd complains unless libraries are executable
10199 postinstall_cmds='chmod +x $lib'
10200 ;;
10201
10202sunos4*)
10203 version_type=sunos
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10205 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 shlibpath_overrides_runpath=yes
10208 if test "$with_gnu_ld" = yes; then
10209 need_lib_prefix=no
10210 fi
10211 need_version=yes
10212 ;;
10213
10214sysv4 | sysv4.3*)
10215 version_type=linux
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 case $host_vendor in
10220 sni)
10221 shlibpath_overrides_runpath=no
10222 need_lib_prefix=no
10223 runpath_var=LD_RUN_PATH
10224 ;;
10225 siemens)
10226 need_lib_prefix=no
10227 ;;
10228 motorola)
10229 need_lib_prefix=no
10230 need_version=no
10231 shlibpath_overrides_runpath=no
10232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10233 ;;
10234 esac
10235 ;;
10236
10237sysv4*MP*)
10238 if test -d /usr/nec ;then
10239 version_type=linux
10240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10241 soname_spec='$libname${shared_ext}.$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 fi
10244 ;;
10245
10246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10247 version_type=freebsd-elf
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
10254 hardcode_into_libs=yes
10255 if test "$with_gnu_ld" = yes; then
10256 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10257 else
10258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10259 case $host_os in
10260 sco3.2v5*)
10261 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10262 ;;
10263 esac
10264 fi
10265 sys_lib_dlsearch_path_spec='/usr/lib'
10266 ;;
10267
10268tpf*)
10269 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10270 version_type=linux
10271 need_lib_prefix=no
10272 need_version=no
18d98188 10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10274 shlibpath_var=LD_LIBRARY_PATH
10275 shlibpath_overrides_runpath=no
10276 hardcode_into_libs=yes
10277 ;;
10278
10279uts4*)
10280 version_type=linux
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 ;;
10285
10286*)
10287 dynamic_linker=no
10288 ;;
10289esac
5213506e
RW
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10291$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10292test "$dynamic_linker" = no && can_build_shared=no
10293
10294variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10295if test "$GCC" = yes; then
10296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10297fi
10298
18d98188
PG
10299if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10300 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10301fi
10302if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10303 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10304fi
10305
1cf3d07d
SE
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
43e02a8a
RW
10386
10387
10388
10389
10390
1cf3d07d
SE
10391
10392
10393
10394
10395
10396
5213506e
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10398$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
10399hardcode_action=
10400if test -n "$hardcode_libdir_flag_spec" ||
10401 test -n "$runpath_var" ||
10402 test "X$hardcode_automatic" = "Xyes" ; then
10403
10404 # We can hardcode non-existent directories.
10405 if test "$hardcode_direct" != no &&
10406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10407 # have to relink, otherwise we might link with an installed library
10408 # when we should be linking with a yet-to-be-installed one
10409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10410 test "$hardcode_minus_L" != no; then
10411 # Linking always hardcodes the temporary library directory.
10412 hardcode_action=relink
10413 else
10414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10415 hardcode_action=immediate
10416 fi
10417else
10418 # We cannot hardcode anything, or else we can only hardcode existing
10419 # directories.
10420 hardcode_action=unsupported
10421fi
5213506e
RW
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10423$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
10424
10425if test "$hardcode_action" = relink ||
10426 test "$inherit_rpath" = yes; then
10427 # Fast installation is not supported
10428 enable_fast_install=no
10429elif test "$shlibpath_overrides_runpath" = yes ||
10430 test "$enable_shared" = no; then
10431 # Fast installation is not necessary
10432 enable_fast_install=needless
10433fi
10434
10435
10436
10437
10438
10439
10440 if test "x$enable_dlopen" != xyes; then
10441 enable_dlopen=unknown
10442 enable_dlopen_self=unknown
10443 enable_dlopen_self_static=unknown
10444else
10445 lt_cv_dlopen=no
10446 lt_cv_dlopen_libs=
10447
10448 case $host_os in
10449 beos*)
10450 lt_cv_dlopen="load_add_on"
10451 lt_cv_dlopen_libs=
10452 lt_cv_dlopen_self=yes
10453 ;;
10454
18d98188 10455 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10456 lt_cv_dlopen="LoadLibrary"
10457 lt_cv_dlopen_libs=
10458 ;;
10459
10460 cygwin*)
10461 lt_cv_dlopen="dlopen"
10462 lt_cv_dlopen_libs=
10463 ;;
10464
10465 darwin*)
10466 # if libdl is installed we need to link against it
5213506e
RW
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10468$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 10469if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 10470 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10471else
10472 ac_check_lib_save_LIBS=$LIBS
10473LIBS="-ldl $LIBS"
10474if test x$gcc_no_link = xyes; then
22e05272 10475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10476fi
5213506e 10477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10478/* end confdefs.h. */
10479
5213506e
RW
10480/* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10483#ifdef __cplusplus
10484extern "C"
10485#endif
1cf3d07d
SE
10486char dlopen ();
10487int
10488main ()
10489{
5213506e 10490return dlopen ();
1cf3d07d
SE
10491 ;
10492 return 0;
10493}
10494_ACEOF
5213506e 10495if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10496 ac_cv_lib_dl_dlopen=yes
10497else
5213506e 10498 ac_cv_lib_dl_dlopen=no
1cf3d07d 10499fi
5213506e
RW
10500rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10502LIBS=$ac_check_lib_save_LIBS
10503fi
5213506e
RW
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10505$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 10506if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
10507 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10508else
10509
10510 lt_cv_dlopen="dyld"
10511 lt_cv_dlopen_libs=
10512 lt_cv_dlopen_self=yes
10513
10514fi
10515
10516 ;;
10517
10518 *)
5213506e 10519 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 10520if test "x$ac_cv_func_shl_load" = xyes; then :
1cf3d07d
SE
10521 lt_cv_dlopen="shl_load"
10522else
5213506e
RW
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10524$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 10525if ${ac_cv_lib_dld_shl_load+:} false; then :
5213506e 10526 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10527else
10528 ac_check_lib_save_LIBS=$LIBS
10529LIBS="-ldld $LIBS"
10530if test x$gcc_no_link = xyes; then
22e05272 10531 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10532fi
5213506e 10533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10534/* end confdefs.h. */
10535
5213506e
RW
10536/* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10539#ifdef __cplusplus
10540extern "C"
10541#endif
1cf3d07d
SE
10542char shl_load ();
10543int
10544main ()
10545{
5213506e 10546return shl_load ();
1cf3d07d
SE
10547 ;
10548 return 0;
10549}
10550_ACEOF
5213506e 10551if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10552 ac_cv_lib_dld_shl_load=yes
10553else
5213506e 10554 ac_cv_lib_dld_shl_load=no
1cf3d07d 10555fi
5213506e
RW
10556rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10558LIBS=$ac_check_lib_save_LIBS
10559fi
5213506e
RW
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10561$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 10562if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18d98188 10563 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 10564else
5213506e 10565 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 10566if test "x$ac_cv_func_dlopen" = xyes; then :
1cf3d07d
SE
10567 lt_cv_dlopen="dlopen"
10568else
5213506e
RW
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10570$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 10571if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 10572 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10573else
10574 ac_check_lib_save_LIBS=$LIBS
10575LIBS="-ldl $LIBS"
10576if test x$gcc_no_link = xyes; then
22e05272 10577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10578fi
5213506e 10579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10580/* end confdefs.h. */
10581
5213506e
RW
10582/* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10585#ifdef __cplusplus
10586extern "C"
10587#endif
1cf3d07d
SE
10588char dlopen ();
10589int
10590main ()
10591{
5213506e 10592return dlopen ();
1cf3d07d
SE
10593 ;
10594 return 0;
10595}
10596_ACEOF
5213506e 10597if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10598 ac_cv_lib_dl_dlopen=yes
10599else
5213506e 10600 ac_cv_lib_dl_dlopen=no
1cf3d07d 10601fi
5213506e
RW
10602rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10604LIBS=$ac_check_lib_save_LIBS
10605fi
5213506e
RW
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10607$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 10608if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
10609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10610else
5213506e
RW
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10612$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 10613if ${ac_cv_lib_svld_dlopen+:} false; then :
5213506e 10614 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10615else
10616 ac_check_lib_save_LIBS=$LIBS
10617LIBS="-lsvld $LIBS"
10618if test x$gcc_no_link = xyes; then
22e05272 10619 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10620fi
5213506e 10621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10622/* end confdefs.h. */
10623
5213506e
RW
10624/* Override any GCC internal prototype to avoid an error.
10625 Use char because int might match the return type of a GCC
10626 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10627#ifdef __cplusplus
10628extern "C"
10629#endif
1cf3d07d
SE
10630char dlopen ();
10631int
10632main ()
10633{
5213506e 10634return dlopen ();
1cf3d07d
SE
10635 ;
10636 return 0;
10637}
10638_ACEOF
5213506e 10639if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10640 ac_cv_lib_svld_dlopen=yes
10641else
5213506e 10642 ac_cv_lib_svld_dlopen=no
1cf3d07d 10643fi
5213506e
RW
10644rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10646LIBS=$ac_check_lib_save_LIBS
10647fi
5213506e
RW
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10649$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 10650if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1cf3d07d
SE
10651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10652else
5213506e
RW
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10654$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 10655if ${ac_cv_lib_dld_dld_link+:} false; then :
5213506e 10656 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10657else
10658 ac_check_lib_save_LIBS=$LIBS
10659LIBS="-ldld $LIBS"
10660if test x$gcc_no_link = xyes; then
22e05272 10661 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
a8aea176 10662fi
5213506e 10663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 10664/* end confdefs.h. */
0fd91e0a 10665
5213506e
RW
10666/* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10669#ifdef __cplusplus
10670extern "C"
10671#endif
1cf3d07d 10672char dld_link ();
a8aea176
NN
10673int
10674main ()
10675{
5213506e 10676return dld_link ();
a8aea176
NN
10677 ;
10678 return 0;
10679}
10680_ACEOF
5213506e 10681if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10682 ac_cv_lib_dld_dld_link=yes
0fd91e0a 10683else
5213506e 10684 ac_cv_lib_dld_dld_link=no
025fd00e 10685fi
5213506e
RW
10686rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10688LIBS=$ac_check_lib_save_LIBS
10689fi
5213506e
RW
10690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10691$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 10692if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18d98188 10693 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
0fd91e0a 10694fi
025fd00e 10695
dfac8a13 10696
1cf3d07d 10697fi
a8aea176 10698
a8aea176 10699
c45f211e 10700fi
dfac8a13 10701
dfac8a13 10702
dfac8a13
TT
10703fi
10704
10705
1cf3d07d 10706fi
dfac8a13 10707
dfac8a13 10708
1cf3d07d 10709fi
0fd91e0a 10710
1cf3d07d
SE
10711 ;;
10712 esac
dfac8a13 10713
1cf3d07d
SE
10714 if test "x$lt_cv_dlopen" != xno; then
10715 enable_dlopen=yes
10716 else
10717 enable_dlopen=no
10718 fi
a8aea176 10719
1cf3d07d
SE
10720 case $lt_cv_dlopen in
10721 dlopen)
10722 save_CPPFLAGS="$CPPFLAGS"
10723 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
a8aea176 10724
1cf3d07d
SE
10725 save_LDFLAGS="$LDFLAGS"
10726 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
dfac8a13 10727
1cf3d07d
SE
10728 save_LIBS="$LIBS"
10729 LIBS="$lt_cv_dlopen_libs $LIBS"
dfac8a13 10730
5213506e
RW
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10732$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 10733if ${lt_cv_dlopen_self+:} false; then :
5213506e 10734 $as_echo_n "(cached) " >&6
dfac8a13 10735else
1cf3d07d
SE
10736 if test "$cross_compiling" = yes; then :
10737 lt_cv_dlopen_self=cross
a8aea176 10738else
1cf3d07d
SE
10739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10740 lt_status=$lt_dlunknown
10741 cat > conftest.$ac_ext <<_LT_EOF
c0827870 10742#line 10742 "configure"
1cf3d07d 10743#include "confdefs.h"
a8aea176 10744
1cf3d07d
SE
10745#if HAVE_DLFCN_H
10746#include <dlfcn.h>
10747#endif
a8aea176 10748
1cf3d07d 10749#include <stdio.h>
a8aea176 10750
1cf3d07d
SE
10751#ifdef RTLD_GLOBAL
10752# define LT_DLGLOBAL RTLD_GLOBAL
a8aea176 10753#else
1cf3d07d
SE
10754# ifdef DL_GLOBAL
10755# define LT_DLGLOBAL DL_GLOBAL
10756# else
10757# define LT_DLGLOBAL 0
10758# endif
10759#endif
10760
10761/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10762 find out it does not work in some platform. */
10763#ifndef LT_DLLAZY_OR_NOW
10764# ifdef RTLD_LAZY
10765# define LT_DLLAZY_OR_NOW RTLD_LAZY
10766# else
10767# ifdef DL_LAZY
10768# define LT_DLLAZY_OR_NOW DL_LAZY
10769# else
10770# ifdef RTLD_NOW
10771# define LT_DLLAZY_OR_NOW RTLD_NOW
10772# else
10773# ifdef DL_NOW
10774# define LT_DLLAZY_OR_NOW DL_NOW
10775# else
10776# define LT_DLLAZY_OR_NOW 0
10777# endif
10778# endif
10779# endif
10780# endif
10781#endif
10782
43e02a8a
RW
10783/* When -fvisbility=hidden is used, assume the code has been annotated
10784 correspondingly for the symbols needed. */
10785#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10786void fnord () __attribute__((visibility("default")));
10787#endif
10788
10789void fnord () { int i=42; }
1cf3d07d
SE
10790int main ()
10791{
10792 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10793 int status = $lt_dlunknown;
10794
10795 if (self)
10796 {
10797 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10798 else
10799 {
10800 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10801 else puts (dlerror ());
10802 }
1cf3d07d
SE
10803 /* dlclose (self); */
10804 }
10805 else
10806 puts (dlerror ());
10807
18d98188 10808 return status;
1cf3d07d
SE
10809}
10810_LT_EOF
5213506e 10811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10812 (eval $ac_link) 2>&5
a8aea176 10813 ac_status=$?
5213506e
RW
10814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10815 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10816 (./conftest; exit; ) >&5 2>/dev/null
10817 lt_status=$?
10818 case x$lt_status in
10819 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10820 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10821 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10822 esac
10823 else :
10824 # compilation failed
10825 lt_cv_dlopen_self=no
a8aea176 10826 fi
a8aea176 10827fi
1cf3d07d
SE
10828rm -fr conftest*
10829
a8aea176 10830
a8aea176 10831fi
5213506e
RW
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10833$as_echo "$lt_cv_dlopen_self" >&6; }
a8aea176 10834
1cf3d07d
SE
10835 if test "x$lt_cv_dlopen_self" = xyes; then
10836 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10838$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 10839if ${lt_cv_dlopen_self_static+:} false; then :
5213506e 10840 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10841else
10842 if test "$cross_compiling" = yes; then :
10843 lt_cv_dlopen_self_static=cross
10844else
10845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10846 lt_status=$lt_dlunknown
10847 cat > conftest.$ac_ext <<_LT_EOF
c0827870 10848#line 10848 "configure"
1cf3d07d
SE
10849#include "confdefs.h"
10850
10851#if HAVE_DLFCN_H
10852#include <dlfcn.h>
10853#endif
10854
10855#include <stdio.h>
10856
10857#ifdef RTLD_GLOBAL
10858# define LT_DLGLOBAL RTLD_GLOBAL
10859#else
10860# ifdef DL_GLOBAL
10861# define LT_DLGLOBAL DL_GLOBAL
10862# else
10863# define LT_DLGLOBAL 0
10864# endif
10865#endif
10866
10867/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10868 find out it does not work in some platform. */
10869#ifndef LT_DLLAZY_OR_NOW
10870# ifdef RTLD_LAZY
10871# define LT_DLLAZY_OR_NOW RTLD_LAZY
10872# else
10873# ifdef DL_LAZY
10874# define LT_DLLAZY_OR_NOW DL_LAZY
10875# else
10876# ifdef RTLD_NOW
10877# define LT_DLLAZY_OR_NOW RTLD_NOW
10878# else
10879# ifdef DL_NOW
10880# define LT_DLLAZY_OR_NOW DL_NOW
10881# else
10882# define LT_DLLAZY_OR_NOW 0
10883# endif
10884# endif
10885# endif
10886# endif
10887#endif
10888
43e02a8a
RW
10889/* When -fvisbility=hidden is used, assume the code has been annotated
10890 correspondingly for the symbols needed. */
10891#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10892void fnord () __attribute__((visibility("default")));
10893#endif
10894
10895void fnord () { int i=42; }
1cf3d07d
SE
10896int main ()
10897{
10898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10899 int status = $lt_dlunknown;
10900
10901 if (self)
10902 {
10903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10904 else
10905 {
10906 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10907 else puts (dlerror ());
10908 }
1cf3d07d
SE
10909 /* dlclose (self); */
10910 }
10911 else
10912 puts (dlerror ());
10913
18d98188 10914 return status;
1cf3d07d
SE
10915}
10916_LT_EOF
5213506e 10917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10918 (eval $ac_link) 2>&5
a8aea176 10919 ac_status=$?
5213506e
RW
10920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10921 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10922 (./conftest; exit; ) >&5 2>/dev/null
10923 lt_status=$?
10924 case x$lt_status in
10925 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10926 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10927 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10928 esac
10929 else :
10930 # compilation failed
10931 lt_cv_dlopen_self_static=no
a8aea176 10932 fi
a8aea176 10933fi
1cf3d07d
SE
10934rm -fr conftest*
10935
a8aea176 10936
dfac8a13 10937fi
5213506e
RW
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10939$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d 10940 fi
a8aea176 10941
1cf3d07d
SE
10942 CPPFLAGS="$save_CPPFLAGS"
10943 LDFLAGS="$save_LDFLAGS"
10944 LIBS="$save_LIBS"
10945 ;;
10946 esac
10947
10948 case $lt_cv_dlopen_self in
10949 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10950 *) enable_dlopen_self=unknown ;;
10951 esac
10952
10953 case $lt_cv_dlopen_self_static in
10954 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10955 *) enable_dlopen_self_static=unknown ;;
10956 esac
10957fi
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975striplib=
10976old_striplib=
5213506e
RW
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10978$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
10979if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10980 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10981 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10983$as_echo "yes" >&6; }
dfac8a13 10984else
1cf3d07d
SE
10985# FIXME - insert some real tests, host_os isn't really good enough
10986 case $host_os in
10987 darwin*)
10988 if test -n "$STRIP" ; then
10989 striplib="$STRIP -x"
10990 old_striplib="$STRIP -S"
5213506e
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10992$as_echo "yes" >&6; }
1cf3d07d 10993 else
5213506e
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
1cf3d07d
SE
10996 fi
10997 ;;
10998 *)
5213506e
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
1cf3d07d
SE
11001 ;;
11002 esac
dfac8a13 11003fi
a8aea176 11004
1cf3d07d
SE
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 # Report which library types will actually be built
5213506e
RW
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11018$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11020$as_echo "$can_build_shared" >&6; }
1cf3d07d 11021
5213506e
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11023$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11024 test "$can_build_shared" = "no" && enable_shared=no
11025
11026 # On AIX, shared libraries and static libraries use the same namespace, and
11027 # are all built from PIC.
11028 case $host_os in
11029 aix3*)
11030 test "$enable_shared" = yes && enable_static=no
11031 if test -n "$RANLIB"; then
11032 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11033 postinstall_cmds='$RANLIB $lib'
11034 fi
11035 ;;
11036
3e7b7e2b 11037 aix[4-9]*)
1cf3d07d
SE
11038 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11039 test "$enable_shared" = yes && enable_static=no
11040 fi
11041 ;;
11042 esac
5213506e
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11044$as_echo "$enable_shared" >&6; }
1cf3d07d 11045
5213506e
RW
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11047$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11048 # Make sure either enable_shared or enable_static is yes.
11049 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11051$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11052
11053
11054
11055
11056fi
a8aea176
NN
11057ac_ext=c
11058ac_cpp='$CPP $CPPFLAGS'
11059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11061ac_compiler_gnu=$ac_cv_c_compiler_gnu
dfac8a13 11062
1cf3d07d 11063CC="$lt_save_CC"
35241f18 11064
35241f18 11065
35241f18 11066
35241f18
CD
11067
11068
a8aea176 11069
dfac8a13 11070
dfac8a13 11071
1cf3d07d
SE
11072
11073
11074
11075
11076
5213506e 11077 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
11078
11079
11080
11081
11082# Only expand once:
11083
11084
11085
11086# Find CPP now so that any conditional tests below won't do it and
11087# thereby make the resulting definitions conditional.
11088ac_ext=c
11089ac_cpp='$CPP $CPPFLAGS'
11090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11094$as_echo_n "checking how to run the C preprocessor... " >&6; }
1cf3d07d
SE
11095# On Suns, sometimes $CPP names a directory.
11096if test -n "$CPP" && test -d "$CPP"; then
11097 CPP=
11098fi
11099if test -z "$CPP"; then
22e05272 11100 if ${ac_cv_prog_CPP+:} false; then :
5213506e 11101 $as_echo_n "(cached) " >&6
a8aea176 11102else
1cf3d07d
SE
11103 # Double quotes because CPP needs to be expanded
11104 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11105 do
11106 ac_preproc_ok=false
11107for ac_c_preproc_warn_flag in '' yes
11108do
11109 # Use a header file that comes with gcc, so configuring glibc
11110 # with a fresh cross-compiler works.
11111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11112 # <limits.h> exists even on freestanding compilers.
11113 # On the NeXT, cc -E runs the code through the compiler's parser,
11114 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11116/* end confdefs.h. */
1cf3d07d
SE
11117#ifdef __STDC__
11118# include <limits.h>
11119#else
11120# include <assert.h>
11121#endif
11122 Syntax error
a8aea176 11123_ACEOF
5213506e 11124if ac_fn_c_try_cpp "$LINENO"; then :
a8aea176 11125
5213506e 11126else
1cf3d07d
SE
11127 # Broken: fails on valid input.
11128continue
a8aea176 11129fi
22e05272 11130rm -f conftest.err conftest.i conftest.$ac_ext
a8aea176 11131
5213506e 11132 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 11133 # can be detected and how.
5213506e 11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11135/* end confdefs.h. */
1cf3d07d 11136#include <ac_nonexistent.h>
a8aea176 11137_ACEOF
5213506e 11138if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
11139 # Broken: success on invalid input.
11140continue
11141else
1cf3d07d
SE
11142 # Passes both tests.
11143ac_preproc_ok=:
11144break
c45f211e 11145fi
22e05272 11146rm -f conftest.err conftest.i conftest.$ac_ext
c45f211e 11147
1cf3d07d
SE
11148done
11149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11150rm -f conftest.i conftest.err conftest.$ac_ext
5213506e 11151if $ac_preproc_ok; then :
1cf3d07d 11152 break
c45f211e 11153fi
a8aea176 11154
1cf3d07d
SE
11155 done
11156 ac_cv_prog_CPP=$CPP
a8aea176 11157
1cf3d07d
SE
11158fi
11159 CPP=$ac_cv_prog_CPP
a8aea176 11160else
1cf3d07d
SE
11161 ac_cv_prog_CPP=$CPP
11162fi
5213506e
RW
11163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11164$as_echo "$CPP" >&6; }
1cf3d07d
SE
11165ac_preproc_ok=false
11166for ac_c_preproc_warn_flag in '' yes
11167do
11168 # Use a header file that comes with gcc, so configuring glibc
11169 # with a fresh cross-compiler works.
11170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11171 # <limits.h> exists even on freestanding compilers.
11172 # On the NeXT, cc -E runs the code through the compiler's parser,
11173 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11175/* end confdefs.h. */
1cf3d07d
SE
11176#ifdef __STDC__
11177# include <limits.h>
a8aea176 11178#else
1cf3d07d 11179# include <assert.h>
a8aea176 11180#endif
1cf3d07d 11181 Syntax error
a8aea176 11182_ACEOF
5213506e 11183if ac_fn_c_try_cpp "$LINENO"; then :
a8aea176 11184
5213506e 11185else
1cf3d07d
SE
11186 # Broken: fails on valid input.
11187continue
a8aea176 11188fi
22e05272 11189rm -f conftest.err conftest.i conftest.$ac_ext
a8aea176 11190
5213506e 11191 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 11192 # can be detected and how.
5213506e 11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11194/* end confdefs.h. */
1cf3d07d 11195#include <ac_nonexistent.h>
a8aea176 11196_ACEOF
5213506e 11197if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
11198 # Broken: success on invalid input.
11199continue
11200else
1cf3d07d
SE
11201 # Passes both tests.
11202ac_preproc_ok=:
11203break
a8aea176 11204fi
22e05272 11205rm -f conftest.err conftest.i conftest.$ac_ext
a8aea176
NN
11206
11207done
1cf3d07d 11208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11209rm -f conftest.i conftest.err conftest.$ac_ext
5213506e
RW
11210if $ac_preproc_ok; then :
11211
1cf3d07d 11212else
5213506e
RW
11213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
11215as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11216See \`config.log' for more details" "$LINENO" 5; }
1cf3d07d
SE
11217fi
11218
11219ac_ext=c
11220ac_cpp='$CPP $CPPFLAGS'
11221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11223ac_compiler_gnu=$ac_cv_c_compiler_gnu
11224
11225
11226if test -n "$with_cross_host"; then
11227 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
11228 # may not work correctly, because the compiler may not be able to
11229 # link executables.
11230
11231 # We assume newlib. This lets us hard-code the functions we know
11232 # we'll have.
5213506e 11233 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
1cf3d07d 11234
5213506e 11235 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
a8aea176 11236
1cf3d07d
SE
11237else
11238 if test x$gcc_no_link = xyes; then
11239 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
11240 ac_cv_func_mmap_fixed_mapped=no
11241 fi
11242fi
11243if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
22e05272
JM
11244
11245
11246
11247 for ac_header in $ac_header_list
5213506e
RW
11248do :
11249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22e05272
JM
11250ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11251"
11252if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5213506e
RW
11253 cat >>confdefs.h <<_ACEOF
11254#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a8aea176 11255_ACEOF
a8aea176 11256
a8aea176 11257fi
a8aea176 11258
5213506e 11259done
a8aea176 11260
22e05272
JM
11261
11262
11263
11264
11265
11266
11267
5213506e
RW
11268for ac_func in getpagesize
11269do :
11270 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22e05272 11271if test "x$ac_cv_func_getpagesize" = xyes; then :
a8aea176 11272 cat >>confdefs.h <<_ACEOF
5213506e 11273#define HAVE_GETPAGESIZE 1
a8aea176
NN
11274_ACEOF
11275
11276fi
a8aea176
NN
11277done
11278
5213506e
RW
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11280$as_echo_n "checking for working mmap... " >&6; }
22e05272 11281if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5213506e 11282 $as_echo_n "(cached) " >&6
a8aea176 11283else
5213506e
RW
11284 if test "$cross_compiling" = yes; then :
11285 ac_cv_func_mmap_fixed_mapped=no
11286else
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11288/* end confdefs.h. */
5213506e
RW
11289$ac_includes_default
11290/* malloc might have been renamed as rpl_malloc. */
11291#undef malloc
dfac8a13
TT
11292
11293/* Thanks to Mike Haertel and Jim Avera for this test.
11294 Here is a matrix of mmap possibilities:
11295 mmap private not fixed
11296 mmap private fixed at somewhere currently unmapped
11297 mmap private fixed at somewhere already mapped
11298 mmap shared not fixed
11299 mmap shared fixed at somewhere currently unmapped
11300 mmap shared fixed at somewhere already mapped
11301 For private mappings, we should verify that changes cannot be read()
11302 back from the file, nor mmap's back from the file at a different
11303 address. (There have been systems where private was not correctly
11304 implemented like the infamous i386 svr4.0, and systems where the
a8aea176 11305 VM page cache was not coherent with the file system buffer cache
dfac8a13
TT
11306 like early versions of FreeBSD and possibly contemporary NetBSD.)
11307 For shared mappings, we should conversely verify that changes get
a8aea176 11308 propagated back to all the places they're supposed to be.
c45f211e 11309
dfac8a13
TT
11310 Grep wants private fixed already mapped.
11311 The main things grep needs to know about mmap are:
11312 * does it exist and is it safe to write into the mmap'd area
11313 * how to use it (BSD variants) */
a8aea176 11314
dfac8a13 11315#include <fcntl.h>
c45f211e 11316#include <sys/mman.h>
dfac8a13 11317
5213506e 11318#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
a8aea176
NN
11319char *malloc ();
11320#endif
dfac8a13 11321
a8aea176 11322/* This mess was copied from the GNU getpagesize.h. */
5213506e 11323#ifndef HAVE_GETPAGESIZE
dfac8a13
TT
11324# ifdef _SC_PAGESIZE
11325# define getpagesize() sysconf(_SC_PAGESIZE)
11326# else /* no _SC_PAGESIZE */
5213506e 11327# ifdef HAVE_SYS_PARAM_H
dfac8a13
TT
11328# include <sys/param.h>
11329# ifdef EXEC_PAGESIZE
11330# define getpagesize() EXEC_PAGESIZE
11331# else /* no EXEC_PAGESIZE */
11332# ifdef NBPG
11333# define getpagesize() NBPG * CLSIZE
11334# ifndef CLSIZE
11335# define CLSIZE 1
11336# endif /* no CLSIZE */
11337# else /* no NBPG */
11338# ifdef NBPC
11339# define getpagesize() NBPC
11340# else /* no NBPC */
11341# ifdef PAGESIZE
11342# define getpagesize() PAGESIZE
11343# endif /* PAGESIZE */
11344# endif /* no NBPC */
11345# endif /* no NBPG */
11346# endif /* no EXEC_PAGESIZE */
11347# else /* no HAVE_SYS_PARAM_H */
11348# define getpagesize() 8192 /* punt totally */
11349# endif /* no HAVE_SYS_PARAM_H */
11350# endif /* no _SC_PAGESIZE */
11351
11352#endif /* no HAVE_GETPAGESIZE */
11353
dfac8a13 11354int
a8aea176 11355main ()
dfac8a13 11356{
a8aea176 11357 char *data, *data2, *data3;
22e05272 11358 const char *cdata2;
a8aea176 11359 int i, pagesize;
22e05272 11360 int fd, fd2;
a8aea176
NN
11361
11362 pagesize = getpagesize ();
11363
11364 /* First, make a file with some known garbage in it. */
11365 data = (char *) malloc (pagesize);
11366 if (!data)
5213506e 11367 return 1;
a8aea176
NN
11368 for (i = 0; i < pagesize; ++i)
11369 *(data + i) = rand ();
11370 umask (0);
11371 fd = creat ("conftest.mmap", 0600);
11372 if (fd < 0)
22e05272 11373 return 2;
a8aea176 11374 if (write (fd, data, pagesize) != pagesize)
22e05272 11375 return 3;
a8aea176
NN
11376 close (fd);
11377
22e05272
JM
11378 /* Next, check that the tail of a page is zero-filled. File must have
11379 non-zero length, otherwise we risk SIGBUS for entire page. */
11380 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11381 if (fd2 < 0)
11382 return 4;
11383 cdata2 = "";
11384 if (write (fd2, cdata2, 1) != 1)
11385 return 5;
11386 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11387 if (data2 == MAP_FAILED)
11388 return 6;
11389 for (i = 0; i < pagesize; ++i)
11390 if (*(data2 + i))
11391 return 7;
11392 close (fd2);
11393 if (munmap (data2, pagesize))
11394 return 8;
11395
a8aea176
NN
11396 /* Next, try to mmap the file at a fixed address which already has
11397 something else allocated at it. If we can, also make sure that
11398 we see the same garbage. */
11399 fd = open ("conftest.mmap", O_RDWR);
11400 if (fd < 0)
22e05272 11401 return 9;
a8aea176
NN
11402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22e05272 11404 return 10;
a8aea176
NN
11405 for (i = 0; i < pagesize; ++i)
11406 if (*(data + i) != *(data2 + i))
22e05272 11407 return 11;
a8aea176
NN
11408
11409 /* Finally, make sure that changes to the mapped area do not
11410 percolate back to the file as seen by read(). (This is a bug on
11411 some variants of i386 svr4.0.) */
11412 for (i = 0; i < pagesize; ++i)
11413 *(data2 + i) = *(data2 + i) + 1;
11414 data3 = (char *) malloc (pagesize);
11415 if (!data3)
22e05272 11416 return 12;
a8aea176 11417 if (read (fd, data3, pagesize) != pagesize)
22e05272 11418 return 13;
a8aea176
NN
11419 for (i = 0; i < pagesize; ++i)
11420 if (*(data + i) != *(data3 + i))
22e05272 11421 return 14;
a8aea176 11422 close (fd);
5213506e 11423 return 0;
c45f211e 11424}
a8aea176 11425_ACEOF
5213506e 11426if ac_fn_c_try_run "$LINENO"; then :
dfac8a13
TT
11427 ac_cv_func_mmap_fixed_mapped=yes
11428else
5213506e 11429 ac_cv_func_mmap_fixed_mapped=no
dfac8a13 11430fi
5213506e
RW
11431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11432 conftest.$ac_objext conftest.beam conftest.$ac_ext
dfac8a13 11433fi
5213506e 11434
dfac8a13 11435fi
5213506e
RW
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11437$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
dfac8a13 11438if test $ac_cv_func_mmap_fixed_mapped = yes; then
a8aea176 11439
5213506e 11440$as_echo "#define HAVE_MMAP 1" >>confdefs.h
dfac8a13
TT
11441
11442fi
22e05272 11443rm -f conftest.mmap conftest.txt
dfac8a13 11444
a8aea176 11445fi
5213506e
RW
11446 for ac_func in memcpy strerror
11447do :
11448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11449ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 11450if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a8aea176 11451 cat >>confdefs.h <<_ACEOF
5213506e 11452#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a8aea176 11453_ACEOF
dfac8a13 11454
dfac8a13
TT
11455fi
11456done
11457
79a9a529
TT
11458fi
11459
a8aea176 11460for ac_header in unistd.h
5213506e
RW
11461do :
11462 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22e05272 11463if test "x$ac_cv_header_unistd_h" = xyes; then :
a8aea176 11464 cat >>confdefs.h <<_ACEOF
5213506e 11465#define HAVE_UNISTD_H 1
a8aea176
NN
11466_ACEOF
11467
11468fi
11469
dfac8a13
TT
11470done
11471
11472
e8e66971
MR
11473
11474# Check whether --with-toolexeclibdir was given.
11475if test "${with_toolexeclibdir+set}" = set; then :
11476 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
11477 /)
11478 ;;
11479 */)
11480 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
11481 ;;
11482esac
11483else
11484 with_toolexeclibdir=no
11485fi
11486
11487
11488
0ccf2c33
AO
11489if test -n "$with_cross_host" &&
11490 test x"$with_cross_host" != x"no"; then
11491 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
11492 case ${with_toolexeclibdir} in
11493 no)
11494 toolexeclibdir='$(toolexecdir)/lib'
11495 ;;
11496 *)
11497 toolexeclibdir=${with_toolexeclibdir}
11498 ;;
11499 esac
b48ed568 11500else
0ccf2c33
AO
11501 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11502 toolexeclibdir='$(libdir)'
b48ed568 11503fi
905280ac
AO
11504if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11505 multiosdir=/`$CC -print-multi-os-directory`
ff8b9ca8
AS
11506 case $multiosdir in
11507 /.) multiosdir= ;; # Avoid trailing /.
11508 esac
905280ac
AO
11509else
11510 multiosdir=
11511fi
11512toolexeclibdir=${toolexeclibdir}${multiosdir}
0ccf2c33
AO
11513
11514
11515
5213506e 11516 if test -n "$with_target_subdir"; then
e093c992
AG
11517 TARGET_LIBRARY_TRUE=
11518 TARGET_LIBRARY_FALSE='#'
11519else
11520 TARGET_LIBRARY_TRUE='#'
11521 TARGET_LIBRARY_FALSE=
11522fi
11523
9fabf579 11524
dfac8a13
TT
11525if test "${multilib}" = "yes"; then
11526 multilib_arg="--enable-multilib"
11527else
11528 multilib_arg=
11529fi
11530
459260ec
DM
11531# Check whether --enable-host-shared was given.
11532if test "${enable_host_shared+set}" = set; then :
11533 enableval=$enable_host_shared; PICFLAG=-fPIC
11534else
11535 PICFLAG=
11536fi
11537
11538
11539
5213506e 11540ac_config_files="$ac_config_files Makefile"
a8aea176 11541
a8aea176 11542cat >confcache <<\_ACEOF
dfac8a13
TT
11543# This file is a shell script that caches the results of configure
11544# tests run on this system so they can be shared between configure
a8aea176
NN
11545# scripts and configure runs, see configure's option --config-cache.
11546# It is not useful on other systems. If it contains results you don't
11547# want to keep, you may remove or edit it.
dfac8a13 11548#
a8aea176
NN
11549# config.status only pays attention to the cache file if you give it
11550# the --recheck option to rerun configure.
dfac8a13 11551#
a8aea176
NN
11552# `ac_cv_env_foo' variables (set or unset) will be overridden when
11553# loading this file, other *unset* `ac_cv_foo' will be assigned the
11554# following values.
11555
11556_ACEOF
11557
dfac8a13
TT
11558# The following way of writing the cache mishandles newlines in values,
11559# but we know of no workaround that is simple, portable, and efficient.
5213506e 11560# So, we kill variables containing newlines.
dfac8a13
TT
11561# Ultrix sh set writes to stderr and can't be redirected directly,
11562# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
11563(
11564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11565 eval ac_val=\$$ac_var
11566 case $ac_val in #(
11567 *${as_nl}*)
11568 case $ac_var in #(
11569 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11570$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11571 esac
11572 case $ac_var in #(
11573 _ | IFS | as_nl) ;; #(
11574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11575 *) { eval $ac_var=; unset $ac_var;} ;;
11576 esac ;;
11577 esac
11578 done
11579
a8aea176 11580 (set) 2>&1 |
5213506e
RW
11581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11582 *${as_nl}ac_space=\ *)
11583 # `set' does not quote correctly, so add quotes: double-quote
11584 # substitution turns \\\\ into \\, and sed turns \\ into \.
a8aea176
NN
11585 sed -n \
11586 "s/'/'\\\\''/g;
11587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 11588 ;; #(
a8aea176
NN
11589 *)
11590 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 11591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a8aea176 11592 ;;
5213506e
RW
11593 esac |
11594 sort
11595) |
a8aea176 11596 sed '
5213506e 11597 /^ac_cv_env_/b end
a8aea176 11598 t clear
5213506e 11599 :clear
a8aea176
NN
11600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11601 t end
5213506e
RW
11602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11603 :end' >>confcache
11604if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11605 if test -w "$cache_file"; then
22e05272 11606 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11608$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
11609 if test ! -f "$cache_file" || test -h "$cache_file"; then
11610 cat confcache >"$cache_file"
11611 else
11612 case $cache_file in #(
11613 */* | ?:*)
11614 mv -f confcache "$cache_file"$$ &&
11615 mv -f "$cache_file"$$ "$cache_file" ;; #(
11616 *)
11617 mv -f confcache "$cache_file" ;;
11618 esac
11619 fi
11620 fi
dfac8a13 11621 else
5213506e
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11623$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
dfac8a13
TT
11624 fi
11625fi
11626rm -f confcache
11627
dfac8a13
TT
11628test "x$prefix" = xNONE && prefix=$ac_default_prefix
11629# Let make expand exec_prefix.
11630test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11631
dfac8a13
TT
11632# Transform confdefs.h into DEFS.
11633# Protect against shell expansion while executing Makefile rules.
11634# Protect against Makefile macro expansion.
a8aea176
NN
11635#
11636# If the first sed substitution is executed (which looks for macros that
5213506e 11637# take arguments), then branch to the quote section. Otherwise,
a8aea176 11638# look for a macro that doesn't take arguments.
5213506e
RW
11639ac_script='
11640:mline
11641/\\$/{
11642 N
11643 s,\\\n,,
11644 b mline
11645}
a8aea176 11646t clear
5213506e
RW
11647:clear
11648s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
a8aea176 11649t quote
5213506e 11650s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
a8aea176 11651t quote
5213506e
RW
11652b any
11653:quote
11654s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11655s/\[/\\&/g
11656s/\]/\\&/g
11657s/\$/$$/g
11658H
11659:any
11660${
11661 g
11662 s/^\n//
11663 s/\n/ /g
11664 p
11665}
11666'
11667DEFS=`sed -n "$ac_script" confdefs.h`
a8aea176
NN
11668
11669
11670ac_libobjs=
11671ac_ltlibobjs=
22e05272 11672U=
a8aea176
NN
11673for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11674 # 1. Remove the extension, and $U if already installed.
5213506e
RW
11675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11676 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11678 # will be set to the directory where LIBOBJS objects are built.
11679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a8aea176
NN
11681done
11682LIBOBJS=$ac_libobjs
dfac8a13 11683
a8aea176 11684LTLIBOBJS=$ac_ltlibobjs
dfac8a13 11685
dfac8a13 11686
22e05272
JM
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11688$as_echo_n "checking that generated files are newer than configure... " >&6; }
11689 if test -n "$am_sleep_pid"; then
11690 # Hide warnings about reused PIDs.
11691 wait $am_sleep_pid 2>/dev/null
11692 fi
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11694$as_echo "done" >&6; }
5213506e
RW
11695 if test -n "$EXEEXT"; then
11696 am__EXEEXT_TRUE=
11697 am__EXEEXT_FALSE='#'
11698else
11699 am__EXEEXT_TRUE='#'
11700 am__EXEEXT_FALSE=
11701fi
11702
9fabf579 11703if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 11704 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5213506e 11705Usually this means the macro was only invoked conditionally." "$LINENO" 5
9fabf579
KC
11706fi
11707if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 11708 as_fn_error $? "conditional \"AMDEP\" was never defined.
5213506e 11709Usually this means the macro was only invoked conditionally." "$LINENO" 5
9fabf579
KC
11710fi
11711if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 11712 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5213506e 11713Usually this means the macro was only invoked conditionally." "$LINENO" 5
9fabf579
KC
11714fi
11715if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
22e05272 11716 as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
5213506e 11717Usually this means the macro was only invoked conditionally." "$LINENO" 5
9fabf579 11718fi
a8aea176 11719
22e05272 11720: "${CONFIG_STATUS=./config.status}"
5213506e 11721ac_write_fail=0
a8aea176
NN
11722ac_clean_files_save=$ac_clean_files
11723ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11725$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11726as_write_fail=0
11727cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
a8aea176
NN
11728#! $SHELL
11729# Generated by $as_me.
dfac8a13 11730# Run this file to recreate the current configuration.
dfac8a13 11731# Compiler output produced by configure, useful for debugging
a8aea176
NN
11732# configure, is in config.log if it exists.
11733
11734debug=false
11735ac_cs_recheck=false
11736ac_cs_silent=false
a8aea176 11737
5213506e
RW
11738SHELL=\${CONFIG_SHELL-$SHELL}
11739export SHELL
11740_ASEOF
11741cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11742## -------------------- ##
11743## M4sh Initialization. ##
11744## -------------------- ##
11745
11746# Be more Bourne compatible
11747DUALCASE=1; export DUALCASE # for MKS sh
11748if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a8aea176
NN
11749 emulate sh
11750 NULLCMD=:
5213506e 11751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a8aea176
NN
11752 # is contrary to our usage. Disable this feature.
11753 alias -g '${1+"$@"}'='"$@"'
5213506e 11754 setopt NO_GLOB_SUBST
a8aea176 11755else
5213506e
RW
11756 case `(set -o) 2>/dev/null` in #(
11757 *posix*) :
11758 set -o posix ;; #(
11759 *) :
11760 ;;
11761esac
a8aea176 11762fi
dfac8a13 11763
a8aea176 11764
5213506e
RW
11765as_nl='
11766'
11767export as_nl
11768# Printing a long string crashes Solaris 7 /usr/bin/printf.
11769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11772# Prefer a ksh shell builtin over an external printf program on Solaris,
11773# but without wasting forks for bash or zsh.
11774if test -z "$BASH_VERSION$ZSH_VERSION" \
11775 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11776 as_echo='print -r --'
11777 as_echo_n='print -rn --'
11778elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11779 as_echo='printf %s\n'
11780 as_echo_n='printf %s'
11781else
11782 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11783 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11784 as_echo_n='/usr/ucb/echo -n'
a8aea176 11785 else
5213506e
RW
11786 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11787 as_echo_n_body='eval
11788 arg=$1;
11789 case $arg in #(
11790 *"$as_nl"*)
11791 expr "X$arg" : "X\\(.*\\)$as_nl";
11792 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11793 esac;
11794 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11795 '
11796 export as_echo_n_body
11797 as_echo_n='sh -c $as_echo_n_body as_echo'
a8aea176 11798 fi
5213506e
RW
11799 export as_echo_body
11800 as_echo='sh -c $as_echo_body as_echo'
a8aea176 11801fi
dfac8a13 11802
a8aea176
NN
11803# The user is always right.
11804if test "${PATH_SEPARATOR+set}" != set; then
5213506e
RW
11805 PATH_SEPARATOR=:
11806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11808 PATH_SEPARATOR=';'
11809 }
a8aea176 11810fi
dfac8a13 11811
dfac8a13 11812
5213506e
RW
11813# IFS
11814# We need space, tab and new line, in precisely that order. Quoting is
11815# there to prevent editors from complaining about space-tab.
11816# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11817# splitting by setting IFS to empty value.)
11818IFS=" "" $as_nl"
11819
11820# Find who we are. Look in the path if we contain no directory separator.
22e05272 11821as_myself=
5213506e
RW
11822case $0 in #((
11823 *[\\/]* ) as_myself=$0 ;;
11824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a8aea176
NN
11825for as_dir in $PATH
11826do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
5213506e
RW
11829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11830 done
11831IFS=$as_save_IFS
11832
11833 ;;
11834esac
11835# We did not find ourselves, most probably we were run as `sh COMMAND'
11836# in which case we are not to be found in the path.
11837if test "x$as_myself" = x; then
11838 as_myself=$0
11839fi
11840if test ! -f "$as_myself"; then
11841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11842 exit 1
11843fi
11844
11845# Unset variables that we do not need and which cause bugs (e.g. in
11846# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11847# suppresses any "Segmentation fault" message there. '((' could
11848# trigger a bug in pdksh 5.2.14.
11849for as_var in BASH_ENV ENV MAIL MAILPATH
11850do eval test x\${$as_var+set} = xset \
11851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
a8aea176 11852done
5213506e
RW
11853PS1='$ '
11854PS2='> '
11855PS4='+ '
dfac8a13 11856
5213506e
RW
11857# NLS nuisances.
11858LC_ALL=C
11859export LC_ALL
11860LANGUAGE=C
11861export LANGUAGE
11862
11863# CDPATH.
11864(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11865
11866
22e05272
JM
11867# as_fn_error STATUS ERROR [LINENO LOG_FD]
11868# ----------------------------------------
5213506e
RW
11869# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11870# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 11871# script with STATUS, using 1 if that was 0.
5213506e
RW
11872as_fn_error ()
11873{
22e05272
JM
11874 as_status=$1; test $as_status -eq 0 && as_status=1
11875 if test "$4"; then
11876 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
dfac8a13 11878 fi
22e05272 11879 $as_echo "$as_me: error: $2" >&2
5213506e
RW
11880 as_fn_exit $as_status
11881} # as_fn_error
dfac8a13 11882
a8aea176 11883
5213506e
RW
11884# as_fn_set_status STATUS
11885# -----------------------
11886# Set $? to STATUS, without forking.
11887as_fn_set_status ()
11888{
11889 return $1
11890} # as_fn_set_status
dfac8a13 11891
5213506e
RW
11892# as_fn_exit STATUS
11893# -----------------
11894# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11895as_fn_exit ()
11896{
11897 set +e
11898 as_fn_set_status $1
11899 exit $1
11900} # as_fn_exit
11901
11902# as_fn_unset VAR
11903# ---------------
11904# Portably unset VAR.
11905as_fn_unset ()
11906{
11907 { eval $1=; unset $1;}
11908}
11909as_unset=as_fn_unset
11910# as_fn_append VAR VALUE
11911# ----------------------
11912# Append the text in VALUE to the end of the definition contained in VAR. Take
11913# advantage of any shell optimizations that allow amortized linear growth over
11914# repeated appends, instead of the typical quadratic growth present in naive
11915# implementations.
11916if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11917 eval 'as_fn_append ()
11918 {
11919 eval $1+=\$2
11920 }'
11921else
11922 as_fn_append ()
11923 {
11924 eval $1=\$$1\$2
11925 }
11926fi # as_fn_append
11927
11928# as_fn_arith ARG...
11929# ------------------
11930# Perform arithmetic evaluation on the ARGs, and store the result in the
11931# global $as_val. Take advantage of shells that can avoid forks. The arguments
11932# must be portable across $(()) and expr.
11933if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11934 eval 'as_fn_arith ()
11935 {
11936 as_val=$(( $* ))
11937 }'
11938else
11939 as_fn_arith ()
11940 {
11941 as_val=`expr "$@" || test $? -eq 1`
11942 }
11943fi # as_fn_arith
dfac8a13 11944
dfac8a13 11945
5213506e
RW
11946if expr a : '\(a\)' >/dev/null 2>&1 &&
11947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a8aea176
NN
11948 as_expr=expr
11949else
11950 as_expr=false
11951fi
11952
5213506e
RW
11953if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11954 as_basename=basename
11955else
11956 as_basename=false
11957fi
11958
11959if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11960 as_dirname=dirname
11961else
11962 as_dirname=false
11963fi
11964
11965as_me=`$as_basename -- "$0" ||
11966$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11967 X"$0" : 'X\(//\)$' \| \
11968 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11969$as_echo X/"$0" |
11970 sed '/^.*\/\([^/][^/]*\)\/*$/{
11971 s//\1/
11972 q
11973 }
11974 /^X\/\(\/\/\)$/{
11975 s//\1/
11976 q
11977 }
11978 /^X\/\(\/\).*/{
11979 s//\1/
11980 q
11981 }
11982 s/.*/./; q'`
11983
11984# Avoid depending upon Character Ranges.
11985as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11986as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11987as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11988as_cr_digits='0123456789'
11989as_cr_alnum=$as_cr_Letters$as_cr_digits
11990
11991ECHO_C= ECHO_N= ECHO_T=
11992case `echo -n x` in #(((((
11993-n*)
11994 case `echo 'xy\c'` in
11995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11996 xy) ECHO_C='\c';;
11997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11998 ECHO_T=' ';;
11999 esac;;
12000*)
12001 ECHO_N='-n';;
12002esac
12003
a8aea176 12004rm -f conf$$ conf$$.exe conf$$.file
5213506e
RW
12005if test -d conf$$.dir; then
12006 rm -f conf$$.dir/conf$$.file
12007else
12008 rm -f conf$$.dir
12009 mkdir conf$$.dir 2>/dev/null
12010fi
12011if (echo >conf$$.file) 2>/dev/null; then
12012 if ln -s conf$$.file conf$$ 2>/dev/null; then
a8aea176 12013 as_ln_s='ln -s'
5213506e
RW
12014 # ... but there are two gotchas:
12015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 12017 # In both cases, we have to default to `cp -pR'.
5213506e 12018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 12019 as_ln_s='cp -pR'
5213506e
RW
12020 elif ln conf$$.file conf$$ 2>/dev/null; then
12021 as_ln_s=ln
12022 else
22e05272 12023 as_ln_s='cp -pR'
dfac8a13 12024 fi
a8aea176 12025else
22e05272 12026 as_ln_s='cp -pR'
a8aea176 12027fi
5213506e
RW
12028rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12029rmdir conf$$.dir 2>/dev/null
12030
12031
12032# as_fn_mkdir_p
12033# -------------
12034# Create "$as_dir" as a directory, including parents if necessary.
12035as_fn_mkdir_p ()
12036{
12037
12038 case $as_dir in #(
12039 -*) as_dir=./$as_dir;;
12040 esac
12041 test -d "$as_dir" || eval $as_mkdir_p || {
12042 as_dirs=
12043 while :; do
12044 case $as_dir in #(
12045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12046 *) as_qdir=$as_dir;;
12047 esac
12048 as_dirs="'$as_qdir' $as_dirs"
12049 as_dir=`$as_dirname -- "$as_dir" ||
12050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12051 X"$as_dir" : 'X\(//\)[^/]' \| \
12052 X"$as_dir" : 'X\(//\)$' \| \
12053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12054$as_echo X"$as_dir" |
12055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12056 s//\1/
12057 q
12058 }
12059 /^X\(\/\/\)[^/].*/{
12060 s//\1/
12061 q
12062 }
12063 /^X\(\/\/\)$/{
12064 s//\1/
12065 q
12066 }
12067 /^X\(\/\).*/{
12068 s//\1/
12069 q
12070 }
12071 s/.*/./; q'`
12072 test -d "$as_dir" && break
12073 done
12074 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 12075 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 12076
dfac8a13 12077
5213506e 12078} # as_fn_mkdir_p
a8aea176 12079if mkdir -p . 2>/dev/null; then
5213506e 12080 as_mkdir_p='mkdir -p "$as_dir"'
a8aea176
NN
12081else
12082 test -d ./-p && rmdir ./-p
12083 as_mkdir_p=false
12084fi
12085
22e05272
JM
12086
12087# as_fn_executable_p FILE
12088# -----------------------
12089# Test if FILE is an executable regular file.
12090as_fn_executable_p ()
12091{
12092 test -f "$1" && test -x "$1"
12093} # as_fn_executable_p
12094as_test_x='test -x'
12095as_executable_p=as_fn_executable_p
dfac8a13 12096
a8aea176
NN
12097# Sed expression to map a string onto a valid CPP name.
12098as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12099
12100# Sed expression to map a string onto a valid variable name.
12101as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12102
12103
a8aea176 12104exec 6>&1
5213506e
RW
12105## ----------------------------------- ##
12106## Main body of $CONFIG_STATUS script. ##
12107## ----------------------------------- ##
12108_ASEOF
12109test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12110
12111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12112# Save the log message, to keep $0 and so on meaningful, and to
a8aea176 12113# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
12114# values after options handling.
12115ac_log="
22e05272
JM
12116This file was extended by zlib $as_me 1.1.4, which was
12117generated by GNU Autoconf 2.69. Invocation command line was
a8aea176
NN
12118
12119 CONFIG_FILES = $CONFIG_FILES
12120 CONFIG_HEADERS = $CONFIG_HEADERS
12121 CONFIG_LINKS = $CONFIG_LINKS
12122 CONFIG_COMMANDS = $CONFIG_COMMANDS
12123 $ $0 $@
12124
5213506e
RW
12125on `(hostname || uname -n) 2>/dev/null | sed 1q`
12126"
12127
a8aea176
NN
12128_ACEOF
12129
5213506e
RW
12130case $ac_config_files in *"
12131"*) set x $ac_config_files; shift; ac_config_files=$*;;
12132esac
a8aea176 12133
a8aea176 12134
a8aea176 12135
5213506e
RW
12136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12137# Files that config.status was made for.
12138config_files="$ac_config_files"
12139config_commands="$ac_config_commands"
a8aea176 12140
5213506e 12141_ACEOF
a8aea176 12142
5213506e 12143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8aea176 12144ac_cs_usage="\
5213506e
RW
12145\`$as_me' instantiates files and other configuration actions
12146from templates according to the current configuration. Unless the files
12147and actions are specified as TAGs, all are instantiated by default.
a8aea176 12148
5213506e 12149Usage: $0 [OPTION]... [TAG]...
a8aea176
NN
12150
12151 -h, --help print this help, then exit
5213506e 12152 -V, --version print version number and configuration settings, then exit
22e05272 12153 --config print configuration, then exit
5213506e
RW
12154 -q, --quiet, --silent
12155 do not print progress messages
a8aea176
NN
12156 -d, --debug don't remove temporary files
12157 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
12158 --file=FILE[:TEMPLATE]
12159 instantiate the configuration file FILE
a8aea176
NN
12160
12161Configuration files:
12162$config_files
12163
12164Configuration commands:
12165$config_commands
12166
5213506e 12167Report bugs to the package provider."
a8aea176 12168
5213506e
RW
12169_ACEOF
12170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 12171ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
a8aea176 12172ac_cs_version="\\
22e05272
JM
12173zlib config.status 1.1.4
12174configured by $0, generated by GNU Autoconf 2.69,
12175 with options \\"\$ac_cs_config\\"
a8aea176 12176
22e05272 12177Copyright (C) 2012 Free Software Foundation, Inc.
a8aea176
NN
12178This config.status script is free software; the Free Software Foundation
12179gives unlimited permission to copy, distribute and modify it."
5213506e
RW
12180
12181ac_pwd='$ac_pwd'
12182srcdir='$srcdir'
12183INSTALL='$INSTALL'
12184MKDIR_P='$MKDIR_P'
12185AWK='$AWK'
12186test -n "\$AWK" || AWK=awk
a8aea176
NN
12187_ACEOF
12188
5213506e
RW
12189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12190# The default lists apply if the user does not specify any file.
a8aea176
NN
12191ac_need_defaults=:
12192while test $# != 0
12193do
12194 case $1 in
22e05272 12195 --*=?*)
5213506e
RW
12196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12197 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a8aea176
NN
12198 ac_shift=:
12199 ;;
22e05272
JM
12200 --*=)
12201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12202 ac_optarg=
12203 ac_shift=:
12204 ;;
5213506e 12205 *)
a8aea176
NN
12206 ac_option=$1
12207 ac_optarg=$2
12208 ac_shift=shift
12209 ;;
dfac8a13
TT
12210 esac
12211
a8aea176
NN
12212 case $ac_option in
12213 # Handling of the options.
a8aea176
NN
12214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12215 ac_cs_recheck=: ;;
5213506e
RW
12216 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12217 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
12218 --config | --confi | --conf | --con | --co | --c )
12219 $as_echo "$ac_cs_config"; exit ;;
5213506e 12220 --debug | --debu | --deb | --de | --d | -d )
a8aea176
NN
12221 debug=: ;;
12222 --file | --fil | --fi | --f )
12223 $ac_shift
5213506e
RW
12224 case $ac_optarg in
12225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 12226 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
12227 esac
12228 as_fn_append CONFIG_FILES " '$ac_optarg'"
a8aea176 12229 ac_need_defaults=false;;
5213506e
RW
12230 --he | --h | --help | --hel | -h )
12231 $as_echo "$ac_cs_usage"; exit ;;
a8aea176
NN
12232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12233 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12234 ac_cs_silent=: ;;
12235
12236 # This is an error.
22e05272 12237 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 12238Try \`$0 --help' for more information." ;;
a8aea176 12239
5213506e
RW
12240 *) as_fn_append ac_config_targets " $1"
12241 ac_need_defaults=false ;;
a8aea176 12242
dfac8a13 12243 esac
a8aea176
NN
12244 shift
12245done
dfac8a13 12246
a8aea176
NN
12247ac_configure_extra_args=
12248
12249if $ac_cs_silent; then
12250 exec 6>/dev/null
12251 ac_configure_extra_args="$ac_configure_extra_args --silent"
12252fi
12253
12254_ACEOF
5213506e 12255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a8aea176 12256if \$ac_cs_recheck; then
22e05272 12257 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
12258 shift
12259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12260 CONFIG_SHELL='$SHELL'
12261 export CONFIG_SHELL
12262 exec "\$@"
a8aea176
NN
12263fi
12264
12265_ACEOF
5213506e
RW
12266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12267exec 5>>config.log
12268{
12269 echo
12270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12271## Running $as_me. ##
12272_ASBOX
12273 $as_echo "$ac_log"
12274} >&5
a8aea176 12275
5213506e
RW
12276_ACEOF
12277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a8aea176 12278#
5213506e 12279# INIT-COMMANDS
a8aea176 12280#
dfac8a13 12281
076e5443
PB
12282srcdir="$srcdir"
12283host="$host"
12284target="$target"
12285with_multisubdir="$with_multisubdir"
12286with_multisrctop="$with_multisrctop"
12287with_target_subdir="$with_target_subdir"
dfac8a13 12288ac_configure_args="${multilib_arg} ${ac_configure_args}"
076e5443 12289multi_basedir="$multi_basedir"
dfac8a13 12290CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
076e5443 12291CC="$CC"
5213506e
RW
12292CXX="$CXX"
12293GFORTRAN="$GFORTRAN"
22e05272 12294GDC="$GDC"
076e5443 12295AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a8aea176 12296
1cf3d07d
SE
12297
12298# The HP-UX ksh and POSIX shell print the target directory to stdout
12299# if CDPATH is set.
12300(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12301
12302sed_quote_subst='$sed_quote_subst'
12303double_quote_subst='$double_quote_subst'
12304delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
12305macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12306macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12307enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12308enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12309pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12310enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12311SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12312ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12313host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12314host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12315host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12316build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12317build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12318build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12319SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12320Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12321GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12322EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12323FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12324LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12325NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12326LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12327max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12328ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12329exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12330lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12331lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12332lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12333reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12334reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12335OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12336deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12337file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12338AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12339AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12340STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12341RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12342old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12343old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12344old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12345lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12346CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12347CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12348compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12349GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12350lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12351lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12352lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12353lt_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"`'
12354objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12355MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12356lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12357lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12358lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12359lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12360lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12361need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12362DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12363NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12364LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12365OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12366OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12367libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12368shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12369extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12370archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12371enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12372export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12373whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12374compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12375old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12376old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12377archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12378archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12379module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12380module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12381with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12382allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12383no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12384hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12385hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12386hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12387hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12388hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12389hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12390hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12391hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12392inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12393link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12394fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12395always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12396export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12397exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12398include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12399prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12400file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12401variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12402need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12403need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12404version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12405runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12406shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12407shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12408libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12409library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12410soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12411install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12412postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12413postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12414finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12415finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12416hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12417sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12418sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12419hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12420enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12421enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12422enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12423old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12424striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
12425
12426LTCC='$LTCC'
12427LTCFLAGS='$LTCFLAGS'
12428compiler='$compiler_DEFAULT'
12429
43e02a8a
RW
12430# A function that is used when there is no print builtin or printf.
12431func_fallback_echo ()
12432{
12433 eval 'cat <<_LTECHO_EOF
12434\$1
12435_LTECHO_EOF'
12436}
12437
1cf3d07d 12438# Quote evaled strings.
43e02a8a
RW
12439for var in SHELL \
12440ECHO \
12441SED \
1cf3d07d
SE
12442GREP \
12443EGREP \
12444FGREP \
12445LD \
12446NM \
12447LN_S \
12448lt_SP2NL \
12449lt_NL2SP \
12450reload_flag \
18d98188 12451OBJDUMP \
1cf3d07d
SE
12452deplibs_check_method \
12453file_magic_cmd \
12454AR \
12455AR_FLAGS \
12456STRIP \
12457RANLIB \
12458CC \
12459CFLAGS \
12460compiler \
12461lt_cv_sys_global_symbol_pipe \
12462lt_cv_sys_global_symbol_to_cdecl \
12463lt_cv_sys_global_symbol_to_c_name_address \
18d98188 12464lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
12465lt_prog_compiler_no_builtin_flag \
12466lt_prog_compiler_wl \
12467lt_prog_compiler_pic \
12468lt_prog_compiler_static \
12469lt_cv_prog_compiler_c_o \
12470need_locks \
18d98188
PG
12471DSYMUTIL \
12472NMEDIT \
12473LIPO \
12474OTOOL \
12475OTOOL64 \
1cf3d07d
SE
12476shrext_cmds \
12477export_dynamic_flag_spec \
12478whole_archive_flag_spec \
12479compiler_needs_object \
12480with_gnu_ld \
12481allow_undefined_flag \
12482no_undefined_flag \
12483hardcode_libdir_flag_spec \
12484hardcode_libdir_flag_spec_ld \
12485hardcode_libdir_separator \
12486fix_srcfile_path \
12487exclude_expsyms \
12488include_expsyms \
12489file_list_spec \
12490variables_saved_for_relink \
12491libname_spec \
12492library_names_spec \
12493soname_spec \
43e02a8a 12494install_override_mode \
1cf3d07d
SE
12495finish_eval \
12496old_striplib \
12497striplib; do
43e02a8a 12498 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 12499 *[\\\\\\\`\\"\\\$]*)
43e02a8a 12500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
12501 ;;
12502 *)
12503 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12504 ;;
12505 esac
12506done
12507
12508# Double-quote double-evaled strings.
12509for var in reload_cmds \
12510old_postinstall_cmds \
12511old_postuninstall_cmds \
12512old_archive_cmds \
12513extract_expsyms_cmds \
12514old_archive_from_new_cmds \
12515old_archive_from_expsyms_cmds \
12516archive_cmds \
12517archive_expsym_cmds \
12518module_cmds \
12519module_expsym_cmds \
12520export_symbols_cmds \
12521prelink_cmds \
12522postinstall_cmds \
12523postuninstall_cmds \
12524finish_cmds \
12525sys_lib_search_path_spec \
12526sys_lib_dlsearch_path_spec; do
43e02a8a 12527 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 12528 *[\\\\\\\`\\"\\\$]*)
43e02a8a 12529 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
12530 ;;
12531 *)
12532 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12533 ;;
12534 esac
12535done
12536
1cf3d07d
SE
12537ac_aux_dir='$ac_aux_dir'
12538xsi_shell='$xsi_shell'
12539lt_shell_append='$lt_shell_append'
12540
12541# See if we are running on zsh, and set the options which allow our
12542# commands through without removal of \ escapes INIT.
12543if test -n "\${ZSH_VERSION+set}" ; then
12544 setopt NO_GLOB_SUBST
12545fi
12546
12547
12548 PACKAGE='$PACKAGE'
12549 VERSION='$VERSION'
12550 TIMESTAMP='$TIMESTAMP'
12551 RM='$RM'
12552 ofile='$ofile'
12553
12554
12555
12556
a8aea176
NN
12557_ACEOF
12558
5213506e 12559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8aea176 12560
5213506e 12561# Handling of arguments.
a8aea176
NN
12562for ac_config_target in $ac_config_targets
12563do
5213506e
RW
12564 case $ac_config_target in
12565 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12566 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12567 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12568 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12569
22e05272 12570 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
a8aea176
NN
12571 esac
12572done
12573
5213506e 12574
a8aea176
NN
12575# If the user did not use the arguments to specify the items to instantiate,
12576# then the envvar interface is used. Set only those that are not.
12577# We use the long form for the default assignment because of an extremely
12578# bizarre bug on SunOS 4.1.3.
12579if $ac_need_defaults; then
12580 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12581 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12582fi
12583
12584# Have a temporary directory for convenience. Make it in the build tree
5213506e 12585# simply because there is no reason against having it here, and in addition,
a8aea176 12586# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
12587# Hook for its removal unless debugging.
12588# Note that there is a small window in which the directory will not be cleaned:
12589# after its creation but before its name has been assigned to `$tmp'.
a8aea176
NN
12590$debug ||
12591{
22e05272 12592 tmp= ac_tmp=
5213506e 12593 trap 'exit_status=$?
22e05272
JM
12594 : "${ac_tmp:=$tmp}"
12595 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
12596' 0
12597 trap 'as_fn_exit 1' 1 2 13 15
a8aea176 12598}
a8aea176
NN
12599# Create a (secure) tmp directory for tmp files.
12600
12601{
5213506e 12602 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 12603 test -d "$tmp"
a8aea176
NN
12604} ||
12605{
5213506e
RW
12606 tmp=./conf$$-$RANDOM
12607 (umask 077 && mkdir "$tmp")
22e05272
JM
12608} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12609ac_tmp=$tmp
5213506e
RW
12610
12611# Set up the scripts for CONFIG_FILES section.
12612# No need to generate them if there are no CONFIG_FILES.
12613# This happens for instance with `./config.status config.h'.
12614if test -n "$CONFIG_FILES"; then
12615
12616
12617ac_cr=`echo X | tr X '\015'`
12618# On cygwin, bash can eat \r inside `` if the user requested igncr.
12619# But we know of no other shell where ac_cr would be empty at this
12620# point, so we can use a bashism as a fallback.
12621if test "x$ac_cr" = x; then
12622 eval ac_cr=\$\'\\r\'
12623fi
12624ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12625if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 12626 ac_cs_awk_cr='\\r'
5213506e
RW
12627else
12628 ac_cs_awk_cr=$ac_cr
12629fi
12630
22e05272 12631echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
12632_ACEOF
12633
12634
12635{
12636 echo "cat >conf$$subs.awk <<_ACEOF" &&
12637 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12638 echo "_ACEOF"
12639} >conf$$subs.sh ||
22e05272
JM
12640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12641ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
12642ac_delim='%!_!# '
12643for ac_last_try in false false false false false :; do
12644 . ./conf$$subs.sh ||
22e05272 12645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
12646
12647 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12648 if test $ac_delim_n = $ac_delim_num; then
12649 break
12650 elif $ac_last_try; then
22e05272 12651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
12652 else
12653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12654 fi
12655done
12656rm -f conf$$subs.sh
12657
12658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 12659cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
12660_ACEOF
12661sed -n '
12662h
12663s/^/S["/; s/!.*/"]=/
12664p
12665g
12666s/^[^!]*!//
12667:repl
12668t repl
12669s/'"$ac_delim"'$//
12670t delim
12671:nl
12672h
22e05272 12673s/\(.\{148\}\)..*/\1/
5213506e
RW
12674t more1
12675s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12676p
12677n
12678b repl
12679:more1
12680s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12681p
12682g
12683s/.\{148\}//
12684t nl
12685:delim
12686h
22e05272 12687s/\(.\{148\}\)..*/\1/
5213506e
RW
12688t more2
12689s/["\\]/\\&/g; s/^/"/; s/$/"/
12690p
12691b
12692:more2
12693s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12694p
12695g
12696s/.\{148\}//
12697t delim
12698' <conf$$subs.awk | sed '
12699/^[^""]/{
12700 N
12701 s/\n//
12702}
12703' >>$CONFIG_STATUS || ac_write_fail=1
12704rm -f conf$$subs.awk
12705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12706_ACAWK
22e05272 12707cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
12708 for (key in S) S_is_set[key] = 1
12709 FS = "\a"
12710
12711}
a8aea176 12712{
5213506e
RW
12713 line = $ 0
12714 nfields = split(line, field, "@")
12715 substed = 0
12716 len = length(field[1])
12717 for (i = 2; i < nfields; i++) {
12718 key = field[i]
12719 keylen = length(key)
12720 if (S_is_set[key]) {
12721 value = S[key]
12722 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12723 len += length(value) + length(field[++i])
12724 substed = 1
12725 } else
12726 len += 1 + keylen
12727 }
12728
12729 print line
a8aea176
NN
12730}
12731
5213506e 12732_ACAWK
a8aea176 12733_ACEOF
5213506e
RW
12734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12735if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12736 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12737else
12738 cat
22e05272
JM
12739fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12740 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
12741_ACEOF
12742
22e05272
JM
12743# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12744# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
12745# trailing colons and then remove the whole line if VPATH becomes empty
12746# (actually we leave an empty line to preserve line numbers).
12747if test "x$srcdir" = x.; then
22e05272
JM
12748 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12749h
12750s///
12751s/^/:/
12752s/[ ]*$/:/
12753s/:\$(srcdir):/:/g
12754s/:\${srcdir}:/:/g
12755s/:@srcdir@:/:/g
12756s/^:*//
5213506e 12757s/:*$//
22e05272
JM
12758x
12759s/\(=[ ]*\).*/\1/
12760G
12761s/\n//
5213506e
RW
12762s/^[^=]*=[ ]*$//
12763}'
12764fi
a8aea176 12765
5213506e
RW
12766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12767fi # test -n "$CONFIG_FILES"
a8aea176 12768
a8aea176 12769
5213506e
RW
12770eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12771shift
12772for ac_tag
12773do
12774 case $ac_tag in
12775 :[FHLC]) ac_mode=$ac_tag; continue;;
12776 esac
12777 case $ac_mode$ac_tag in
12778 :[FHL]*:*);;
22e05272 12779 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
12780 :[FH]-) ac_tag=-:-;;
12781 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12782 esac
12783 ac_save_IFS=$IFS
12784 IFS=:
12785 set x $ac_tag
12786 IFS=$ac_save_IFS
12787 shift
12788 ac_file=$1
12789 shift
a8aea176 12790
5213506e
RW
12791 case $ac_mode in
12792 :L) ac_source=$1;;
12793 :[FH])
12794 ac_file_inputs=
12795 for ac_f
12796 do
12797 case $ac_f in
22e05272 12798 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
12799 *) # Look for the file first in the build tree, then in the source tree
12800 # (if the path is not absolute). The absolute path cannot be DOS-style,
12801 # because $ac_f cannot contain `:'.
12802 test -f "$ac_f" ||
12803 case $ac_f in
12804 [\\/$]*) false;;
12805 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12806 esac ||
22e05272 12807 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
12808 esac
12809 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12810 as_fn_append ac_file_inputs " '$ac_f'"
12811 done
a8aea176 12812
5213506e
RW
12813 # Let's still pretend it is `configure' which instantiates (i.e., don't
12814 # use $as_me), people would be surprised to read:
12815 # /* config.h. Generated by config.status. */
12816 configure_input='Generated from '`
12817 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12818 `' by configure.'
12819 if test x"$ac_file" != x-; then
12820 configure_input="$ac_file. $configure_input"
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12822$as_echo "$as_me: creating $ac_file" >&6;}
a8aea176 12823 fi
5213506e
RW
12824 # Neutralize special characters interpreted by sed in replacement strings.
12825 case $configure_input in #(
12826 *\&* | *\|* | *\\* )
12827 ac_sed_conf_input=`$as_echo "$configure_input" |
12828 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12829 *) ac_sed_conf_input=$configure_input;;
12830 esac
a8aea176 12831
5213506e 12832 case $ac_tag in
22e05272
JM
12833 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
12835 esac
12836 ;;
a8aea176
NN
12837 esac
12838
5213506e 12839 ac_dir=`$as_dirname -- "$ac_file" ||
a8aea176
NN
12840$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12841 X"$ac_file" : 'X\(//\)[^/]' \| \
12842 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
12843 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12844$as_echo X"$ac_file" |
12845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12846 s//\1/
12847 q
12848 }
12849 /^X\(\/\/\)[^/].*/{
12850 s//\1/
12851 q
12852 }
12853 /^X\(\/\/\)$/{
12854 s//\1/
12855 q
12856 }
12857 /^X\(\/\).*/{
12858 s//\1/
12859 q
12860 }
12861 s/.*/./; q'`
12862 as_dir="$ac_dir"; as_fn_mkdir_p
a8aea176
NN
12863 ac_builddir=.
12864
5213506e
RW
12865case "$ac_dir" in
12866.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12867*)
12868 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12869 # A ".." for each directory in $ac_dir_suffix.
12870 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12871 case $ac_top_builddir_sub in
12872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12874 esac ;;
12875esac
12876ac_abs_top_builddir=$ac_pwd
12877ac_abs_builddir=$ac_pwd$ac_dir_suffix
12878# for backward compatibility:
12879ac_top_builddir=$ac_top_build_prefix
a8aea176
NN
12880
12881case $srcdir in
5213506e 12882 .) # We are building in place.
a8aea176 12883 ac_srcdir=.
5213506e
RW
12884 ac_top_srcdir=$ac_top_builddir_sub
12885 ac_abs_top_srcdir=$ac_pwd ;;
12886 [\\/]* | ?:[\\/]* ) # Absolute name.
a8aea176 12887 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
12888 ac_top_srcdir=$srcdir
12889 ac_abs_top_srcdir=$srcdir ;;
12890 *) # Relative name.
12891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12892 ac_top_srcdir=$ac_top_build_prefix$srcdir
12893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a8aea176 12894esac
5213506e 12895ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a8aea176 12896
a8aea176 12897
5213506e
RW
12898 case $ac_mode in
12899 :F)
12900 #
12901 # CONFIG_FILE
12902 #
a8aea176
NN
12903
12904 case $INSTALL in
12905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
12906 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12907 esac
12908 ac_MKDIR_P=$MKDIR_P
12909 case $MKDIR_P in
12910 [\\/$]* | ?:[\\/]* ) ;;
12911 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
a8aea176 12912 esac
5213506e 12913_ACEOF
a8aea176 12914
5213506e
RW
12915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12916# If the template does not know about datarootdir, expand it.
12917# FIXME: This hack should be removed a few years after 2.60.
12918ac_datarootdir_hack=; ac_datarootdir_seen=
12919ac_sed_dataroot='
12920/datarootdir/ {
12921 p
12922 q
12923}
12924/@datadir@/p
12925/@docdir@/p
12926/@infodir@/p
12927/@localedir@/p
12928/@mandir@/p'
12929case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12930*datarootdir*) ac_datarootdir_seen=yes;;
12931*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12933$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12934_ACEOF
12935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12936 ac_datarootdir_hack='
12937 s&@datadir@&$datadir&g
12938 s&@docdir@&$docdir&g
12939 s&@infodir@&$infodir&g
12940 s&@localedir@&$localedir&g
12941 s&@mandir@&$mandir&g
12942 s&\\\${datarootdir}&$datarootdir&g' ;;
12943esac
a8aea176 12944_ACEOF
5213506e
RW
12945
12946# Neutralize VPATH when `$srcdir' = `.'.
12947# Shell code in configure.ac might set extrasub.
12948# FIXME: do we really want to maintain this feature?
12949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12950ac_sed_extra="$ac_vpsub
a8aea176
NN
12951$extrasub
12952_ACEOF
5213506e 12953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8aea176
NN
12954:t
12955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
12956s|@configure_input@|$ac_sed_conf_input|;t t
12957s&@top_builddir@&$ac_top_builddir_sub&;t t
12958s&@top_build_prefix@&$ac_top_build_prefix&;t t
12959s&@srcdir@&$ac_srcdir&;t t
12960s&@abs_srcdir@&$ac_abs_srcdir&;t t
12961s&@top_srcdir@&$ac_top_srcdir&;t t
12962s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12963s&@builddir@&$ac_builddir&;t t
12964s&@abs_builddir@&$ac_abs_builddir&;t t
12965s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12966s&@INSTALL@&$ac_INSTALL&;t t
12967s&@MKDIR_P@&$ac_MKDIR_P&;t t
12968$ac_datarootdir_hack
12969"
22e05272
JM
12970eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12971 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
12972
12973test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
12974 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12975 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12976 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 12978which seems to be undefined. Please make sure it is defined" >&5
5213506e 12979$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 12980which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 12981
22e05272 12982 rm -f "$ac_tmp/stdin"
5213506e 12983 case $ac_file in
22e05272
JM
12984 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12985 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 12986 esac \
22e05272 12987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 12988 ;;
a8aea176 12989
a8aea176 12990
5213506e
RW
12991 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12992$as_echo "$as_me: executing $ac_file commands" >&6;}
12993 ;;
12994 esac
a8aea176
NN
12995
12996
5213506e
RW
12997 case $ac_file$ac_mode in
12998 "default-1":C)
076e5443
PB
12999# Only add multilib support code if we just rebuilt the top-level
13000# Makefile.
13001case " $CONFIG_FILES " in
13002 *" Makefile "*)
13003 ac_file=Makefile . ${multi_basedir}/config-ml.in
13004 ;;
13005esac ;;
5213506e 13006 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 13007 # Older Autoconf quotes --file arguments for eval, but not when files
5213506e
RW
13008 # are listed without --file. Let's play safe and only enable the eval
13009 # if we detect the quoting.
13010 case $CONFIG_FILES in
13011 *\'*) eval set x "$CONFIG_FILES" ;;
13012 *) set x $CONFIG_FILES ;;
13013 esac
13014 shift
13015 for mf
13016 do
13017 # Strip MF so we end up with the name of the file.
13018 mf=`echo "$mf" | sed -e 's/:.*$//'`
13019 # Check whether this is an Automake generated Makefile or not.
22e05272 13020 # We used to match only the files named 'Makefile.in', but
5213506e
RW
13021 # some people rename them; so instead we look at the file content.
13022 # Grep'ing the first line is not enough: some people post-process
13023 # each Makefile.in and add a new line on top of each file to say so.
13024 # Grep'ing the whole file is not good either: AIX grep has a line
13025 # limit of 2048, but all sed's we know have understand at least 4000.
13026 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13027 dirpart=`$as_dirname -- "$mf" ||
9fabf579
KC
13028$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13029 X"$mf" : 'X\(//\)[^/]' \| \
13030 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
13031 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13032$as_echo X"$mf" |
13033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13034 s//\1/
13035 q
13036 }
13037 /^X\(\/\/\)[^/].*/{
13038 s//\1/
13039 q
13040 }
13041 /^X\(\/\/\)$/{
13042 s//\1/
13043 q
13044 }
13045 /^X\(\/\).*/{
13046 s//\1/
13047 q
13048 }
13049 s/.*/./; q'`
13050 else
13051 continue
13052 fi
13053 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 13054 # from the Makefile without running 'make'.
5213506e
RW
13055 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13056 test -z "$DEPDIR" && continue
13057 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 13058 test -z "$am__include" && continue
5213506e 13059 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5213506e
RW
13060 # Find all dependency output files, they are included files with
13061 # $(DEPDIR) in their names. We invoke sed twice because it is the
13062 # simplest approach to changing $(DEPDIR) to its actual value in the
13063 # expansion.
13064 for file in `sed -n "
13065 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 13066 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5213506e
RW
13067 # Make sure the directory exists.
13068 test -f "$dirpart/$file" && continue
13069 fdir=`$as_dirname -- "$file" ||
9fabf579
KC
13070$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13071 X"$file" : 'X\(//\)[^/]' \| \
13072 X"$file" : 'X\(//\)$' \| \
5213506e
RW
13073 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13074$as_echo X"$file" |
13075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13076 s//\1/
13077 q
13078 }
13079 /^X\(\/\/\)[^/].*/{
13080 s//\1/
13081 q
13082 }
13083 /^X\(\/\/\)$/{
13084 s//\1/
13085 q
13086 }
13087 /^X\(\/\).*/{
13088 s//\1/
13089 q
13090 }
13091 s/.*/./; q'`
13092 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13093 # echo "creating $dirpart/$file"
13094 echo '# dummy' > "$dirpart/$file"
9fabf579 13095 done
9fabf579 13096 done
5213506e 13097}
1cf3d07d 13098 ;;
5213506e 13099 "libtool":C)
1cf3d07d
SE
13100
13101 # See if we are running on zsh, and set the options which allow our
13102 # commands through without removal of \ escapes.
13103 if test -n "${ZSH_VERSION+set}" ; then
13104 setopt NO_GLOB_SUBST
13105 fi
13106
13107 cfgfile="${ofile}T"
13108 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13109 $RM "$cfgfile"
13110
13111 cat <<_LT_EOF >> "$cfgfile"
13112#! $SHELL
13113
13114# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18d98188 13115# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
13116# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13117# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13118#
18d98188 13119# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 13120# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18d98188 13121# Written by Gordon Matzigkeit, 1996
1cf3d07d 13122#
18d98188 13123# This file is part of GNU Libtool.
1cf3d07d 13124#
18d98188
PG
13125# GNU Libtool is free software; you can redistribute it and/or
13126# modify it under the terms of the GNU General Public License as
13127# published by the Free Software Foundation; either version 2 of
13128# the License, or (at your option) any later version.
1cf3d07d 13129#
18d98188
PG
13130# As a special exception to the GNU General Public License,
13131# if you distribute this file as part of a program or library that
13132# is built using GNU Libtool, you may include this file under the
13133# same distribution terms that you use for the rest of that program.
1cf3d07d 13134#
18d98188
PG
13135# GNU Libtool is distributed in the hope that it will be useful,
13136# but WITHOUT ANY WARRANTY; without even the implied warranty of
13137# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13138# GNU General Public License for more details.
1cf3d07d 13139#
18d98188
PG
13140# You should have received a copy of the GNU General Public License
13141# along with GNU Libtool; see the file COPYING. If not, a copy
13142# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13143# obtained by writing to the Free Software Foundation, Inc.,
13144# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
13145
13146
13147# The names of the tagged configurations supported by this script.
13148available_tags=""
13149
13150# ### BEGIN LIBTOOL CONFIG
13151
13152# Which release of libtool.m4 was used?
13153macro_version=$macro_version
13154macro_revision=$macro_revision
13155
13156# Whether or not to build shared libraries.
13157build_libtool_libs=$enable_shared
13158
13159# Whether or not to build static libraries.
13160build_old_libs=$enable_static
13161
13162# What type of objects to build.
13163pic_mode=$pic_mode
13164
13165# Whether or not to optimize for fast installation.
13166fast_install=$enable_fast_install
13167
43e02a8a
RW
13168# Shell to use when invoking shell scripts.
13169SHELL=$lt_SHELL
13170
13171# An echo program that protects backslashes.
13172ECHO=$lt_ECHO
13173
1cf3d07d
SE
13174# The host system.
13175host_alias=$host_alias
13176host=$host
13177host_os=$host_os
13178
13179# The build system.
13180build_alias=$build_alias
13181build=$build
13182build_os=$build_os
13183
13184# A sed program that does not truncate output.
13185SED=$lt_SED
13186
13187# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13188Xsed="\$SED -e 1s/^X//"
13189
13190# A grep program that handles long lines.
13191GREP=$lt_GREP
13192
13193# An ERE matcher.
13194EGREP=$lt_EGREP
13195
13196# A literal string matcher.
13197FGREP=$lt_FGREP
13198
13199# A BSD- or MS-compatible name lister.
13200NM=$lt_NM
13201
13202# Whether we need soft or hard links.
13203LN_S=$lt_LN_S
13204
13205# What is the maximum length of a command?
13206max_cmd_len=$max_cmd_len
13207
13208# Object file suffix (normally "o").
13209objext=$ac_objext
13210
13211# Executable file suffix (normally "").
13212exeext=$exeext
13213
13214# whether the shell understands "unset".
13215lt_unset=$lt_unset
13216
13217# turn spaces into newlines.
13218SP2NL=$lt_lt_SP2NL
13219
13220# turn newlines into spaces.
13221NL2SP=$lt_lt_NL2SP
13222
18d98188
PG
13223# An object symbol dumper.
13224OBJDUMP=$lt_OBJDUMP
13225
1cf3d07d
SE
13226# Method to check whether dependent libraries are shared objects.
13227deplibs_check_method=$lt_deplibs_check_method
13228
13229# Command to use when deplibs_check_method == "file_magic".
13230file_magic_cmd=$lt_file_magic_cmd
13231
13232# The archiver.
13233AR=$lt_AR
13234AR_FLAGS=$lt_AR_FLAGS
13235
13236# A symbol stripping program.
13237STRIP=$lt_STRIP
13238
13239# Commands used to install an old-style archive.
13240RANLIB=$lt_RANLIB
13241old_postinstall_cmds=$lt_old_postinstall_cmds
13242old_postuninstall_cmds=$lt_old_postuninstall_cmds
13243
43e02a8a
RW
13244# Whether to use a lock for old archive extraction.
13245lock_old_archive_extraction=$lock_old_archive_extraction
13246
1cf3d07d
SE
13247# A C compiler.
13248LTCC=$lt_CC
13249
13250# LTCC compiler flags.
13251LTCFLAGS=$lt_CFLAGS
13252
13253# Take the output of nm and produce a listing of raw symbols and C names.
13254global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13255
13256# Transform the output of nm in a proper C declaration.
13257global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13258
13259# Transform the output of nm in a C name address pair.
13260global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13261
18d98188
PG
13262# Transform the output of nm in a C name address pair when lib prefix is needed.
13263global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13264
1cf3d07d
SE
13265# The name of the directory that contains temporary libtool files.
13266objdir=$objdir
13267
1cf3d07d
SE
13268# Used to examine libraries when file_magic_cmd begins with "file".
13269MAGIC_CMD=$MAGIC_CMD
13270
13271# Must we lock files when doing compilation?
13272need_locks=$lt_need_locks
13273
18d98188
PG
13274# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13275DSYMUTIL=$lt_DSYMUTIL
13276
13277# Tool to change global to local symbols on Mac OS X.
13278NMEDIT=$lt_NMEDIT
13279
13280# Tool to manipulate fat objects and archives on Mac OS X.
13281LIPO=$lt_LIPO
13282
13283# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13284OTOOL=$lt_OTOOL
13285
13286# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13287OTOOL64=$lt_OTOOL64
13288
1cf3d07d
SE
13289# Old archive suffix (normally "a").
13290libext=$libext
13291
13292# Shared library suffix (normally ".so").
13293shrext_cmds=$lt_shrext_cmds
13294
13295# The commands to extract the exported symbol list from a shared archive.
13296extract_expsyms_cmds=$lt_extract_expsyms_cmds
13297
13298# Variables whose values should be saved in libtool wrapper scripts and
13299# restored at link time.
13300variables_saved_for_relink=$lt_variables_saved_for_relink
13301
13302# Do we need the "lib" prefix for modules?
13303need_lib_prefix=$need_lib_prefix
13304
13305# Do we need a version for libraries?
13306need_version=$need_version
13307
13308# Library versioning type.
13309version_type=$version_type
13310
13311# Shared library runtime path variable.
13312runpath_var=$runpath_var
13313
13314# Shared library path variable.
13315shlibpath_var=$shlibpath_var
13316
13317# Is shlibpath searched before the hard-coded library search path?
13318shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13319
13320# Format of library name prefix.
13321libname_spec=$lt_libname_spec
13322
13323# List of archive names. First name is the real one, the rest are links.
13324# The last name is the one that the linker finds with -lNAME
13325library_names_spec=$lt_library_names_spec
13326
13327# The coded name of the library, if different from the real name.
13328soname_spec=$lt_soname_spec
13329
43e02a8a
RW
13330# Permission mode override for installation of shared libraries.
13331install_override_mode=$lt_install_override_mode
13332
1cf3d07d
SE
13333# Command to use after installation of a shared archive.
13334postinstall_cmds=$lt_postinstall_cmds
13335
13336# Command to use after uninstallation of a shared archive.
13337postuninstall_cmds=$lt_postuninstall_cmds
13338
13339# Commands used to finish a libtool library installation in a directory.
13340finish_cmds=$lt_finish_cmds
13341
13342# As "finish_cmds", except a single script fragment to be evaled but
13343# not shown.
13344finish_eval=$lt_finish_eval
13345
13346# Whether we should hardcode library paths into libraries.
13347hardcode_into_libs=$hardcode_into_libs
13348
13349# Compile-time system search path for libraries.
13350sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13351
13352# Run-time system search path for libraries.
13353sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13354
13355# Whether dlopen is supported.
13356dlopen_support=$enable_dlopen
13357
13358# Whether dlopen of programs is supported.
13359dlopen_self=$enable_dlopen_self
13360
13361# Whether dlopen of statically linked programs is supported.
13362dlopen_self_static=$enable_dlopen_self_static
13363
13364# Commands to strip libraries.
13365old_striplib=$lt_old_striplib
13366striplib=$lt_striplib
13367
13368
13369# The linker used to build libraries.
13370LD=$lt_LD
13371
43e02a8a
RW
13372# How to create reloadable object files.
13373reload_flag=$lt_reload_flag
13374reload_cmds=$lt_reload_cmds
13375
1cf3d07d
SE
13376# Commands used to build an old-style archive.
13377old_archive_cmds=$lt_old_archive_cmds
13378
13379# A language specific compiler.
13380CC=$lt_compiler
13381
13382# Is the compiler the GNU compiler?
13383with_gcc=$GCC
13384
13385# Compiler flag to turn off builtin functions.
13386no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13387
13388# How to pass a linker flag through the compiler.
13389wl=$lt_lt_prog_compiler_wl
13390
13391# Additional compiler flags for building library objects.
13392pic_flag=$lt_lt_prog_compiler_pic
13393
13394# Compiler flag to prevent dynamic linking.
13395link_static_flag=$lt_lt_prog_compiler_static
13396
13397# Does compiler simultaneously support -c and -o options?
13398compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13399
13400# Whether or not to add -lc for building shared libraries.
13401build_libtool_need_lc=$archive_cmds_need_lc
13402
13403# Whether or not to disallow shared libs when runtime libs are static.
13404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13405
13406# Compiler flag to allow reflexive dlopens.
13407export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13408
13409# Compiler flag to generate shared objects directly from archives.
13410whole_archive_flag_spec=$lt_whole_archive_flag_spec
13411
13412# Whether the compiler copes with passing no objects directly.
13413compiler_needs_object=$lt_compiler_needs_object
13414
13415# Create an old-style archive from a shared archive.
13416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13417
13418# Create a temporary old-style archive to link instead of a shared archive.
13419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13420
13421# Commands used to build a shared archive.
13422archive_cmds=$lt_archive_cmds
13423archive_expsym_cmds=$lt_archive_expsym_cmds
13424
13425# Commands used to build a loadable module if different from building
13426# a shared archive.
13427module_cmds=$lt_module_cmds
13428module_expsym_cmds=$lt_module_expsym_cmds
13429
13430# Whether we are building with GNU ld or not.
13431with_gnu_ld=$lt_with_gnu_ld
13432
13433# Flag that allows shared libraries with undefined symbols to be built.
13434allow_undefined_flag=$lt_allow_undefined_flag
13435
13436# Flag that enforces no undefined symbols.
13437no_undefined_flag=$lt_no_undefined_flag
13438
13439# Flag to hardcode \$libdir into a binary during linking.
13440# This must work even if \$libdir does not exist
13441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13442
13443# If ld is used when linking, flag to hardcode \$libdir into a binary
13444# during linking. This must work even if \$libdir does not exist.
13445hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13446
13447# Whether we need a single "-rpath" flag with a separated argument.
13448hardcode_libdir_separator=$lt_hardcode_libdir_separator
13449
13450# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13451# DIR into the resulting binary.
13452hardcode_direct=$hardcode_direct
13453
13454# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13455# DIR into the resulting binary and the resulting library dependency is
13456# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13457# library is relocated.
13458hardcode_direct_absolute=$hardcode_direct_absolute
13459
13460# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13461# into the resulting binary.
13462hardcode_minus_L=$hardcode_minus_L
13463
13464# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13465# into the resulting binary.
13466hardcode_shlibpath_var=$hardcode_shlibpath_var
13467
13468# Set to "yes" if building a shared library automatically hardcodes DIR
13469# into the library and all subsequent libraries and executables linked
13470# against it.
13471hardcode_automatic=$hardcode_automatic
13472
13473# Set to yes if linker adds runtime paths of dependent libraries
13474# to runtime path list.
13475inherit_rpath=$inherit_rpath
13476
13477# Whether libtool must link a program against all its dependency libraries.
13478link_all_deplibs=$link_all_deplibs
13479
13480# Fix the shell variable \$srcfile for the compiler.
13481fix_srcfile_path=$lt_fix_srcfile_path
13482
13483# Set to "yes" if exported symbols are required.
13484always_export_symbols=$always_export_symbols
13485
13486# The commands to list exported symbols.
13487export_symbols_cmds=$lt_export_symbols_cmds
13488
13489# Symbols that should not be listed in the preloaded symbols.
13490exclude_expsyms=$lt_exclude_expsyms
13491
13492# Symbols that must always be exported.
13493include_expsyms=$lt_include_expsyms
13494
13495# Commands necessary for linking programs (against libraries) with templates.
13496prelink_cmds=$lt_prelink_cmds
13497
13498# Specify filename containing input files.
13499file_list_spec=$lt_file_list_spec
13500
13501# How to hardcode a shared library path into an executable.
13502hardcode_action=$hardcode_action
13503
13504# ### END LIBTOOL CONFIG
13505
13506_LT_EOF
13507
13508 case $host_os in
13509 aix3*)
13510 cat <<\_LT_EOF >> "$cfgfile"
13511# AIX sometimes has problems with the GCC collect2 program. For some
13512# reason, if we set the COLLECT_NAMES environment variable, the problems
13513# vanish in a puff of smoke.
13514if test "X${COLLECT_NAMES+set}" != Xset; then
13515 COLLECT_NAMES=
13516 export COLLECT_NAMES
13517fi
13518_LT_EOF
13519 ;;
13520 esac
13521
13522
13523ltmain="$ac_aux_dir/ltmain.sh"
13524
13525
13526 # We use sed instead of cat because bash on DJGPP gets confused if
13527 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13528 # text mode, it properly converts lines to CR/LF. This bash problem
13529 # is reportedly fixed, but why not run on old versions too?
13530 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13531 || (rm -f "$cfgfile"; exit 1)
13532
13533 case $xsi_shell in
13534 yes)
13535 cat << \_LT_EOF >> "$cfgfile"
18d98188 13536
1cf3d07d
SE
13537# func_dirname file append nondir_replacement
13538# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13539# otherwise set result to NONDIR_REPLACEMENT.
13540func_dirname ()
13541{
13542 case ${1} in
13543 */*) func_dirname_result="${1%/*}${2}" ;;
13544 * ) func_dirname_result="${3}" ;;
13545 esac
13546}
13547
13548# func_basename file
13549func_basename ()
13550{
13551 func_basename_result="${1##*/}"
13552}
13553
18d98188
PG
13554# func_dirname_and_basename file append nondir_replacement
13555# perform func_basename and func_dirname in a single function
13556# call:
13557# dirname: Compute the dirname of FILE. If nonempty,
13558# add APPEND to the result, otherwise set result
13559# to NONDIR_REPLACEMENT.
13560# value returned in "$func_dirname_result"
13561# basename: Compute filename of FILE.
13562# value retuned in "$func_basename_result"
13563# Implementation must be kept synchronized with func_dirname
13564# and func_basename. For efficiency, we do not delegate to
13565# those functions but instead duplicate the functionality here.
13566func_dirname_and_basename ()
13567{
13568 case ${1} in
13569 */*) func_dirname_result="${1%/*}${2}" ;;
13570 * ) func_dirname_result="${3}" ;;
13571 esac
13572 func_basename_result="${1##*/}"
13573}
13574
1cf3d07d
SE
13575# func_stripname prefix suffix name
13576# strip PREFIX and SUFFIX off of NAME.
13577# PREFIX and SUFFIX must not contain globbing or regex special
13578# characters, hashes, percent signs, but SUFFIX may contain a leading
13579# dot (in which case that matches only a dot).
13580func_stripname ()
13581{
13582 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13583 # positional parameters, so assign one to ordinary parameter first.
13584 func_stripname_result=${3}
13585 func_stripname_result=${func_stripname_result#"${1}"}
13586 func_stripname_result=${func_stripname_result%"${2}"}
13587}
13588
13589# func_opt_split
13590func_opt_split ()
13591{
13592 func_opt_split_opt=${1%%=*}
13593 func_opt_split_arg=${1#*=}
13594}
13595
13596# func_lo2o object
13597func_lo2o ()
13598{
13599 case ${1} in
13600 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13601 *) func_lo2o_result=${1} ;;
13602 esac
13603}
18d98188
PG
13604
13605# func_xform libobj-or-source
13606func_xform ()
13607{
13608 func_xform_result=${1%.*}.lo
13609}
13610
13611# func_arith arithmetic-term...
13612func_arith ()
13613{
13614 func_arith_result=$(( $* ))
13615}
13616
13617# func_len string
13618# STRING may not start with a hyphen.
13619func_len ()
13620{
13621 func_len_result=${#1}
13622}
13623
1cf3d07d
SE
13624_LT_EOF
13625 ;;
13626 *) # Bourne compatible functions.
13627 cat << \_LT_EOF >> "$cfgfile"
18d98188 13628
1cf3d07d
SE
13629# func_dirname file append nondir_replacement
13630# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13631# otherwise set result to NONDIR_REPLACEMENT.
13632func_dirname ()
13633{
13634 # Extract subdirectory from the argument.
43e02a8a 13635 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
13636 if test "X$func_dirname_result" = "X${1}"; then
13637 func_dirname_result="${3}"
13638 else
13639 func_dirname_result="$func_dirname_result${2}"
13640 fi
13641}
13642
13643# func_basename file
13644func_basename ()
13645{
43e02a8a 13646 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
13647}
13648
18d98188 13649
1cf3d07d
SE
13650# func_stripname prefix suffix name
13651# strip PREFIX and SUFFIX off of NAME.
13652# PREFIX and SUFFIX must not contain globbing or regex special
13653# characters, hashes, percent signs, but SUFFIX may contain a leading
13654# dot (in which case that matches only a dot).
13655# func_strip_suffix prefix name
13656func_stripname ()
13657{
13658 case ${2} in
43e02a8a
RW
13659 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13660 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
13661 esac
13662}
13663
13664# sed scripts:
13665my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13666my_sed_long_arg='1s/^-[^=]*=//'
13667
13668# func_opt_split
13669func_opt_split ()
13670{
43e02a8a
RW
13671 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13672 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
13673}
13674
13675# func_lo2o object
13676func_lo2o ()
13677{
43e02a8a 13678 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 13679}
18d98188
PG
13680
13681# func_xform libobj-or-source
13682func_xform ()
13683{
43e02a8a 13684 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18d98188
PG
13685}
13686
13687# func_arith arithmetic-term...
13688func_arith ()
13689{
13690 func_arith_result=`expr "$@"`
13691}
13692
13693# func_len string
13694# STRING may not start with a hyphen.
13695func_len ()
13696{
13697 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13698}
13699
1cf3d07d
SE
13700_LT_EOF
13701esac
13702
13703case $lt_shell_append in
13704 yes)
13705 cat << \_LT_EOF >> "$cfgfile"
13706
13707# func_append var value
13708# Append VALUE to the end of shell variable VAR.
13709func_append ()
13710{
13711 eval "$1+=\$2"
13712}
13713_LT_EOF
13714 ;;
13715 *)
13716 cat << \_LT_EOF >> "$cfgfile"
13717
13718# func_append var value
13719# Append VALUE to the end of shell variable VAR.
13720func_append ()
13721{
13722 eval "$1=\$$1\$2"
13723}
18d98188 13724
1cf3d07d
SE
13725_LT_EOF
13726 ;;
13727 esac
13728
13729
13730 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13731 || (rm -f "$cfgfile"; exit 1)
13732
13733 mv -f "$cfgfile" "$ofile" ||
13734 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13735 chmod +x "$ofile"
13736
9fabf579 13737 ;;
5213506e 13738
a8aea176 13739 esac
5213506e 13740done # for ac_tag
a8aea176 13741
a8aea176 13742
5213506e 13743as_fn_exit 0
a8aea176 13744_ACEOF
a8aea176
NN
13745ac_clean_files=$ac_clean_files_save
13746
5213506e 13747test $ac_write_fail = 0 ||
22e05272 13748 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 13749
a8aea176
NN
13750
13751# configure is writing to config.log, and then calls config.status.
13752# config.status does its own redirection, appending to config.log.
13753# Unfortunately, on DOS this fails, as config.log is still kept open
13754# by configure, so config.status won't be able to write to it; its
13755# output is simply discarded. So we exec the FD to /dev/null,
13756# effectively closing config.log, so it can be properly (re)opened and
13757# appended to by config.status. When coming back to configure, we
13758# need to make the FD available again.
13759if test "$no_create" != yes; then
13760 ac_cs_success=:
13761 ac_config_status_args=
13762 test "$silent" = yes &&
13763 ac_config_status_args="$ac_config_status_args --quiet"
13764 exec 5>/dev/null
13765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13766 exec 5>>config.log
13767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13768 # would make configure fail if this is the last instruction.
22e05272 13769 $ac_cs_success || as_fn_exit 1
5213506e
RW
13770fi
13771if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13773$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
a8aea176 13774fi
c45f211e 13775