Import Debian changes 0.66.4-9
[hcoop/debian/courier-authlib.git] / libs / sha1 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b0322a85 3# Generated by GNU Autoconf 2.69 for libsha1 1.21.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
b0322a85
CE
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
d9898ee8 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
b0322a85
CE
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
d9898ee8 16
dd184caf 17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
d9898ee8 20 emulate sh
21 NULLCMD=:
8d138742 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
dd184caf 25 setopt NO_GLOB_SUBST
26else
b0322a85
CE
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
dd184caf 32esac
dd184caf 33fi
34
35
8d138742
CE
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
b0322a85 60 case $arg in #(
8d138742
CE
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
d9898ee8 83
dd184caf 84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
dd184caf 89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
92as_myself=
93case $0 in #((
dd184caf 94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
b0322a85
CE
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
dd184caf 102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
8d138742 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 113 exit 1
dd184caf 114fi
115
b0322a85
CE
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
dd184caf 123done
d9898ee8 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8d138742
CE
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
d9898ee8 133
b0322a85
CE
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
dd184caf 430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 432 as_expr=expr
433else
434 as_expr=false
435fi
436
dd184caf 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 438 as_basename=basename
439else
440 as_basename=false
441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
d9898ee8 448
dd184caf 449as_me=`$as_basename -- "$0" ||
d9898ee8 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
dd184caf 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 453$as_echo X/"$0" |
dd184caf 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
d9898ee8 467
b0322a85
CE
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 474
d9898ee8 475
b0322a85
CE
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
d9898ee8 498
b0322a85
CE
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
dd184caf 509}
d9898ee8 510
b0322a85
CE
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
dd184caf 523
b0322a85
CE
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
dd184caf 527else
b0322a85
CE
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
dd184caf 530fi
b0322a85
CE
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
dd184caf 545else
b0322a85 546 as_ln_s='cp -pR'
dd184caf 547fi
b0322a85
CE
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
dd184caf 550
b0322a85
CE
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
dd184caf 553else
b0322a85
CE
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
dd184caf 557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
dd184caf 560
b0322a85
CE
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 563
b0322a85
CE
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 566
b0322a85 567SHELL=${CONFIG_SHELL-/bin/sh}
dd184caf 568
dd184caf 569
b0322a85
CE
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
dd184caf 572
b0322a85
CE
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
d9898ee8 577
d9898ee8 578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
dd184caf 582ac_clean_files=
d9898ee8 583ac_config_libobj_dir=.
dd184caf 584LIBOBJS=
d9898ee8 585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
d9898ee8 589
d9898ee8 590# Identity of this package.
b0322a85
CE
591PACKAGE_NAME='libsha1'
592PACKAGE_TARNAME='libsha1'
d9898ee8 593PACKAGE_VERSION='1.21'
b0322a85 594PACKAGE_STRING='libsha1 1.21'
d9898ee8 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="hmac.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
dd184caf 602#ifdef HAVE_SYS_TYPES_H
d9898ee8 603# include <sys/types.h>
604#endif
dd184caf 605#ifdef HAVE_SYS_STAT_H
d9898ee8 606# include <sys/stat.h>
607#endif
dd184caf 608#ifdef STDC_HEADERS
d9898ee8 609# include <stdlib.h>
610# include <stddef.h>
611#else
dd184caf 612# ifdef HAVE_STDLIB_H
d9898ee8 613# include <stdlib.h>
614# endif
615#endif
dd184caf 616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 618# include <memory.h>
619# endif
620# include <string.h>
621#endif
dd184caf 622#ifdef HAVE_STRINGS_H
d9898ee8 623# include <strings.h>
624#endif
dd184caf 625#ifdef HAVE_INTTYPES_H
d9898ee8 626# include <inttypes.h>
d9898ee8 627#endif
dd184caf 628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
d9898ee8 632# include <unistd.h>
633#endif"
634
8d138742
CE
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
dd184caf 639CPP
d50284c4 640LT_SYS_LIBRARY_PATH
8d138742
CE
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
b0322a85 646MANIFEST_TOOL
8d138742 647RANLIB
b0322a85 648ac_ct_AR
8d138742 649AR
b0322a85 650DLLTOOL
8d138742
CE
651OBJDUMP
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657EGREP
658GREP
659SED
660host_os
661host_vendor
662host_cpu
663host
664build_os
665build_vendor
666build_cpu
667build
dd184caf 668LIBTOOL
b0322a85 669LN_S
8d138742
CE
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
b0322a85 673am__nodep
8d138742
CE
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
8d138742
CE
687HMACC_FALSE
688HMACC_TRUE
b0322a85
CE
689AM_BACKSLASH
690AM_DEFAULT_VERBOSITY
691AM_DEFAULT_V
692AM_V
8d138742
CE
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
b0322a85 746PACKAGE_URL
8d138742
CE
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
d9898ee8 754ac_subst_files=''
8d138742
CE
755ac_user_opts='
756enable_option_checking
b0322a85 757enable_silent_rules
8d138742
CE
758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
d50284c4 763with_aix_soname
8d138742 764with_gnu_ld
b0322a85 765with_sysroot
8d138742
CE
766enable_libtool_lock
767with_int32
b0322a85
CE
768with_int64
769enable_largefile
8d138742 770'
dd184caf 771 ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
d50284c4 779LT_SYS_LIBRARY_PATH
8d138742 780CPP'
dd184caf 781
d9898ee8 782
783# Initialize some variables set by options.
784ac_init_help=
785ac_init_version=false
8d138742
CE
786ac_unrecognized_opts=
787ac_unrecognized_sep=
d9898ee8 788# The variables have the same names as the options, with
789# dashes changed to underlines.
790cache_file=/dev/null
791exec_prefix=NONE
792no_create=
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
801verbose=
802x_includes=NONE
803x_libraries=NONE
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 810# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
dd184caf 814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
d9898ee8 816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
d9898ee8 819includedir='${prefix}/include'
820oldincludedir='/usr/include'
dd184caf 821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822infodir='${datarootdir}/info'
823htmldir='${docdir}'
824dvidir='${docdir}'
825pdfdir='${docdir}'
826psdir='${docdir}'
827libdir='${exec_prefix}/lib'
828localedir='${datarootdir}/locale'
829mandir='${datarootdir}/man'
d9898ee8 830
831ac_prev=
dd184caf 832ac_dashdash=
d9898ee8 833for ac_option
834do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
dd184caf 837 eval $ac_prev=\$ac_option
d9898ee8 838 ac_prev=
839 continue
840 fi
841
dd184caf 842 case $ac_option in
b0322a85
CE
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
dd184caf 846 esac
d9898ee8 847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
dd184caf 850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
d9898ee8 853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
dd184caf 874 -datadir | --datadir | --datadi | --datad)
d9898ee8 875 ac_prev=datadir ;;
dd184caf 876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 877 datadir=$ac_optarg ;;
878
dd184caf 879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
d9898ee8 886 -disable-* | --disable-*)
8d138742 887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 888 # Reject names that are not valid shell variable names.
8d138742 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 890 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895"enable_$ac_useropt"
896"*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
dd184caf 901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
d9898ee8 911
912 -enable-* | --enable-*)
8d138742 913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 914 # Reject names that are not valid shell variable names.
8d138742 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 916 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
dd184caf 953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
d9898ee8 959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
dd184caf 983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
d9898ee8 988 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 989 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
dd184caf 1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
d9898ee8 1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
8d138742 1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1118 # Reject names that are not valid shell variable names.
8d138742 1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1120 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125"with_$ac_useropt"
1126"*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1131
1132 -without-* | --without-*)
8d138742 1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1134 # Reject names that are not valid shell variable names.
8d138742 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1136 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141"with_$ac_useropt"
1142"*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
d9898ee8 1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
b0322a85
CE
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information"
d9898ee8 1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
b0322a85
CE
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
dd184caf 1177 eval $ac_envvar=\$ac_optarg
d9898ee8 1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
8d138742 1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1186 ;;
1187
1188 esac
1189done
1190
1191if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1193 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1194fi
1195
8d138742
CE
1196if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
b0322a85 1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202fi
1203
1204# Check all directory arguments for consistency.
dd184caf 1205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
d9898ee8 1209do
dd184caf 1210 eval ac_val=\$$ac_var
8d138742
CE
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
d9898ee8 1218 case $ac_val in
dd184caf 1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1221 esac
b0322a85 1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
d9898ee8 1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
dd184caf 1247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1250 as_fn_error $? "working directory cannot be determined"
dd184caf 1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1252 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1253
1254
d9898ee8 1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
dd184caf 1258 # Try the directory containing this script, then the parent directory.
8d138742
CE
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264$as_echo X"$as_myself" |
dd184caf 1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
d9898ee8 1282 srcdir=$ac_confdir
dd184caf 1283 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
dd184caf 1289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1292fi
dd184caf 1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
b0322a85 1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
d9898ee8 1313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
b0322a85 1321\`configure' configures libsha1 1.21 to adapt to many kinds of systems.
d9898ee8 1322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
b0322a85 1335 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
d9898ee8 1341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1343 [$ac_default_prefix]
d9898ee8 1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1345 [PREFIX]
d9898ee8 1346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
8d138742
CE
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
b0322a85 1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libsha1]
8d138742
CE
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390 case $ac_init_help in
b0322a85 1391 short | recursive ) echo "Configuration of libsha1 1.21:";;
d9898ee8 1392 esac
1393 cat <<\_ACEOF
1394
1395Optional Features:
8d138742 1396 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1399 --enable-silent-rules less verbose build output (undo: "make V=1")
1400 --disable-silent-rules verbose build output (undo: "make V=0")
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
dd184caf 1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1410 --disable-largefile omit support for large files
d9898ee8 1411
1412Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1415 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1416 both]
d50284c4
CE
1417 --with-aix-soname=aix|svr4|both
1418 shared library versioning (aka "SONAME") variant to
1419 provide on AIX, [default=aix].
8d138742 1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d50284c4
CE
1421 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1422 compiler's sysroot if not specified).
d9898ee8 1423 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1424 ( default is 'unsigned')
b0322a85
CE
1425 --with-int64='type' use 'type' for an unsigned 64 bit integer type
1426 ( default is 'unsigned')
d9898ee8 1427
1428Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
dd184caf 1433 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1435 you have headers in a nonstandard directory <include dir>
d50284c4
CE
1436 LT_SYS_LIBRARY_PATH
1437 User-defined run-time library search path.
d9898ee8 1438 CPP C preprocessor
d9898ee8 1439
1440Use these variables to override the choices made by `configure' or to help
1441it to find libraries and programs with nonstandard names/locations.
1442
1443Report bugs to <courier-users@lists.sourceforge.net>.
1444_ACEOF
dd184caf 1445ac_status=$?
d9898ee8 1446fi
1447
1448if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
d9898ee8 1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1451 test -d "$ac_dir" ||
1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 continue
d9898ee8 1454 ac_builddir=.
1455
dd184caf 1456case "$ac_dir" in
1457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458*)
8d138742 1459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1460 # A ".." for each directory in $ac_dir_suffix.
8d138742 1461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1462 case $ac_top_builddir_sub in
1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465 esac ;;
1466esac
1467ac_abs_top_builddir=$ac_pwd
1468ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469# for backward compatibility:
1470ac_top_builddir=$ac_top_build_prefix
d9898ee8 1471
1472case $srcdir in
dd184caf 1473 .) # We are building in place.
d9898ee8 1474 ac_srcdir=.
dd184caf 1475 ac_top_srcdir=$ac_top_builddir_sub
1476 ac_abs_top_srcdir=$ac_pwd ;;
1477 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1478 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1479 ac_top_srcdir=$srcdir
1480 ac_abs_top_srcdir=$srcdir ;;
1481 *) # Relative name.
1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483 ac_top_srcdir=$ac_top_build_prefix$srcdir
1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1485esac
dd184caf 1486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487
1488 cd "$ac_dir" || { ac_status=$?; continue; }
1489 # Check for guested configure.
1490 if test -f "$ac_srcdir/configure.gnu"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493 elif test -f "$ac_srcdir/configure"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1496 else
8d138742 1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1498 fi || ac_status=$?
1499 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1500 done
1501fi
1502
dd184caf 1503test -n "$ac_init_help" && exit $ac_status
d9898ee8 1504if $ac_init_version; then
1505 cat <<\_ACEOF
b0322a85
CE
1506libsha1 configure 1.21
1507generated by GNU Autoconf 2.69
d9898ee8 1508
b0322a85 1509Copyright (C) 2012 Free Software Foundation, Inc.
d9898ee8 1510This configure script is free software; the Free Software Foundation
1511gives unlimited permission to copy, distribute and modify it.
1512_ACEOF
dd184caf 1513 exit
d9898ee8 1514fi
d9898ee8 1515
b0322a85
CE
1516## ------------------------ ##
1517## Autoconf initialization. ##
1518## ------------------------ ##
d9898ee8 1519
b0322a85
CE
1520# ac_fn_c_try_compile LINENO
1521# --------------------------
1522# Try to compile conftest.$ac_ext, and return whether this succeeded.
1523ac_fn_c_try_compile ()
d9898ee8 1524{
b0322a85
CE
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 rm -f conftest.$ac_objext
1527 if { { ac_try="$ac_compile"
1528case "(($ac_try" in
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1531esac
1532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533$as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_compile") 2>conftest.err
1535 ac_status=$?
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1540 fi
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest.$ac_objext; then :
1546 ac_retval=0
1547else
1548 $as_echo "$as_me: failed program was:" >&5
1549sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 1550
b0322a85
CE
1551 ac_retval=1
1552fi
1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554 as_fn_set_status $ac_retval
1555
1556} # ac_fn_c_try_compile
1557
1558# ac_fn_c_try_link LINENO
1559# -----------------------
1560# Try to link conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_link ()
1562{
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest$ac_exeext
1565 if { { ac_try="$ac_link"
1566case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_link") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest$ac_exeext && {
1584 test "$cross_compiling" = yes ||
1585 test -x conftest$ac_exeext
1586 }; then :
1587 ac_retval=0
1588else
1589 $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593fi
1594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1596 # interfere with the next link command; also delete a directory that is
1597 # left behind by Apple's compiler. We do this before executing the actions.
1598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_link
1603
1604# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1605# -------------------------------------------------------
1606# Tests whether HEADER exists and can be compiled using the include files in
1607# INCLUDES, setting the cache variable VAR accordingly.
1608ac_fn_c_check_header_compile ()
1609{
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612$as_echo_n "checking for $2... " >&6; }
1613if eval \${$3+:} false; then :
1614 $as_echo_n "(cached) " >&6
1615else
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617/* end confdefs.h. */
1618$4
1619#include <$2>
1620_ACEOF
1621if ac_fn_c_try_compile "$LINENO"; then :
1622 eval "$3=yes"
1623else
1624 eval "$3=no"
1625fi
1626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627fi
1628eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630$as_echo "$ac_res" >&6; }
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632
1633} # ac_fn_c_check_header_compile
1634
1635# ac_fn_c_try_cpp LINENO
1636# ----------------------
1637# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_cpp ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_cpp conftest.$ac_ext"
1642case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } > conftest.i && {
1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 }; then :
1660 ac_retval=0
1661else
1662 $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=1
1666fi
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670} # ac_fn_c_try_cpp
1671
1672# ac_fn_c_try_run LINENO
1673# ----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675# that executables *can* be run.
1676ac_fn_c_try_run ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690 { { case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_try") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; }; }; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: program exited with status $ac_status" >&5
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=$ac_status
1707fi
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_run
1713
1714# ac_fn_c_check_func LINENO FUNC VAR
1715# ----------------------------------
1716# Tests whether FUNC exists, setting the cache variable VAR accordingly
1717ac_fn_c_check_func ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724else
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726/* end confdefs.h. */
1727/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729#define $2 innocuous_$2
1730
1731/* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (); below.
1733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1734 <limits.h> exists even on freestanding compilers. */
1735
1736#ifdef __STDC__
1737# include <limits.h>
1738#else
1739# include <assert.h>
1740#endif
1741
1742#undef $2
1743
1744/* Override any GCC internal prototype to avoid an error.
1745 Use char because int might match the return type of a GCC
1746 builtin and then its argument prototype would still apply. */
1747#ifdef __cplusplus
1748extern "C"
1749#endif
1750char $2 ();
1751/* The GNU C library defines this for functions which it implements
1752 to always fail with ENOSYS. Some functions are actually named
1753 something starting with __ and the normal name is an alias. */
1754#if defined __stub_$2 || defined __stub___$2
1755choke me
1756#endif
1757
1758int
1759main ()
1760{
1761return $2 ();
1762 ;
1763 return 0;
1764}
1765_ACEOF
1766if ac_fn_c_try_link "$LINENO"; then :
1767 eval "$3=yes"
1768else
1769 eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext \
1772 conftest$ac_exeext conftest.$ac_ext
1773fi
1774eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776$as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779} # ac_fn_c_check_func
1780
1781# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784# the include files in INCLUDES and setting the cache variable VAR
1785# accordingly.
1786ac_fn_c_check_header_mongrel ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if eval \${$3+:} false; then :
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794fi
1795eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798else
1799 # Is the header compilable?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801$as_echo_n "checking $2 usability... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1809else
1810 ac_header_compiler=no
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814$as_echo "$ac_header_compiler" >&6; }
1815
1816# Is the header present?
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818$as_echo_n "checking $2 presence... " >&6; }
1819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h. */
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1825else
1826 ac_header_preproc=no
1827fi
1828rm -f conftest.err conftest.i conftest.$ac_ext
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830$as_echo "$ac_header_preproc" >&6; }
1831
1832# So? What about this header?
1833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834 yes:no: )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ;;
1840 no:yes:* )
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851( $as_echo "## -------------------------------------------------- ##
1852## Report this to courier-users@lists.sourceforge.net ##
1853## -------------------------------------------------- ##"
1854 ) | sed "s/^/$as_me: WARNING: /" >&2
1855 ;;
1856esac
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861else
1862 eval "$3=\$ac_header_compiler"
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867fi
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_header_mongrel
1871
1872# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1873# --------------------------------------------
1874# Tries to find the compile-time value of EXPR in a program that includes
1875# INCLUDES, setting VAR accordingly. Returns whether the value could be
1876# computed
1877ac_fn_c_compute_int ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if test "$cross_compiling" = yes; then
1881 # Depending upon the size, compute the lo and hi bounds.
1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884$4
1885int
1886main ()
1887{
1888static int test_array [1 - 2 * !(($2) >= 0)];
1889test_array [0] = 0;
1890return test_array [0];
1891
1892 ;
1893 return 0;
1894}
1895_ACEOF
1896if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_lo=0 ac_mid=0
1898 while :; do
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902int
1903main ()
1904{
1905static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1906test_array [0] = 0;
1907return test_array [0];
1908
1909 ;
1910 return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_hi=$ac_mid; break
1915else
1916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917 if test $ac_lo -le $ac_mid; then
1918 ac_lo= ac_hi=
1919 break
1920 fi
1921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 done
1925else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) < 0)];
1933test_array [0] = 0;
1934return test_array [0];
1935
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_hi=-1 ac_mid=-1
1942 while :; do
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945$4
1946int
1947main ()
1948{
1949static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1950test_array [0] = 0;
1951return test_array [0];
1952
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_lo=$ac_mid; break
1959else
1960 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961 if test $ac_mid -le $ac_hi; then
1962 ac_lo= ac_hi=
1963 break
1964 fi
1965 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 done
1969else
1970 ac_lo= ac_hi=
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973fi
1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975# Binary search between lo and hi bounds.
1976while test "x$ac_lo" != "x$ac_hi"; do
1977 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980$4
1981int
1982main ()
1983{
1984static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1985test_array [0] = 0;
1986return test_array [0];
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_hi=$ac_mid
1994else
1995 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998done
1999case $ac_lo in #((
2000?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2001'') ac_retval=1 ;;
2002esac
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$4
2007static long int longval () { return $2; }
2008static unsigned long int ulongval () { return $2; }
2009#include <stdio.h>
2010#include <stdlib.h>
2011int
2012main ()
2013{
2014
2015 FILE *f = fopen ("conftest.val", "w");
2016 if (! f)
2017 return 1;
2018 if (($2) < 0)
2019 {
2020 long int i = longval ();
2021 if (i != ($2))
2022 return 1;
2023 fprintf (f, "%ld", i);
2024 }
2025 else
2026 {
2027 unsigned long int i = ulongval ();
2028 if (i != ($2))
2029 return 1;
2030 fprintf (f, "%lu", i);
2031 }
2032 /* Do not output a trailing newline, as this causes \r\n confusion
2033 on some platforms. */
2034 return ferror (f) || fclose (f) != 0;
2035
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_run "$LINENO"; then :
2041 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2042else
2043 ac_retval=1
2044fi
2045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2046 conftest.$ac_objext conftest.beam conftest.$ac_ext
2047rm -f conftest.val
2048
2049 fi
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2052
2053} # ac_fn_c_compute_int
2054cat >config.log <<_ACEOF
2055This file contains any messages produced by compilers while
2056running configure, to aid debugging if configure makes a mistake.
2057
2058It was created by libsha1 $as_me 1.21, which was
2059generated by GNU Autoconf 2.69. Invocation command line was
2060
2061 $ $0 $@
2062
2063_ACEOF
2064exec 5>>config.log
2065{
2066cat <<_ASUNAME
2067## --------- ##
2068## Platform. ##
2069## --------- ##
2070
2071hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2072uname -m = `(uname -m) 2>/dev/null || echo unknown`
2073uname -r = `(uname -r) 2>/dev/null || echo unknown`
2074uname -s = `(uname -s) 2>/dev/null || echo unknown`
2075uname -v = `(uname -v) 2>/dev/null || echo unknown`
d9898ee8 2076
2077/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2078/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2079
2080/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2081/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2082/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 2083/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 2084/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2085/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2086/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2087
2088_ASUNAME
2089
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
b0322a85
CE
2095 $as_echo "PATH: $as_dir"
2096 done
dd184caf 2097IFS=$as_save_IFS
d9898ee8 2098
2099} >&5
2100
2101cat >&5 <<_ACEOF
2102
2103
2104## ----------- ##
2105## Core tests. ##
2106## ----------- ##
2107
2108_ACEOF
2109
2110
2111# Keep a trace of the command line.
2112# Strip out --no-create and --no-recursion so they do not pile up.
2113# Strip out --silent because we don't want to record it for future runs.
2114# Also quote any args containing shell meta-characters.
2115# Make two passes to allow for proper duplicate-argument suppression.
2116ac_configure_args=
2117ac_configure_args0=
2118ac_configure_args1=
d9898ee8 2119ac_must_keep_next=false
2120for ac_pass in 1 2
2121do
2122 for ac_arg
2123 do
2124 case $ac_arg in
2125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2127 | -silent | --silent | --silen | --sile | --sil)
2128 continue ;;
dd184caf 2129 *\'*)
8d138742 2130 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2131 esac
2132 case $ac_pass in
b0322a85 2133 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 2134 2)
b0322a85 2135 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 2136 if test $ac_must_keep_next = true; then
2137 ac_must_keep_next=false # Got value, back to normal.
2138 else
2139 case $ac_arg in
2140 *=* | --config-cache | -C | -disable-* | --disable-* \
2141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2143 | -with-* | --with-* | -without-* | --without-* | --x)
2144 case "$ac_configure_args0 " in
2145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2146 esac
2147 ;;
2148 -* ) ac_must_keep_next=true ;;
2149 esac
2150 fi
b0322a85 2151 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2152 ;;
2153 esac
2154 done
2155done
b0322a85
CE
2156{ ac_configure_args0=; unset ac_configure_args0;}
2157{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2158
2159# When interrupted or exit'd, cleanup temporary files, and complete
2160# config.log. We remove comments because anyway the quotes in there
2161# would cause problems or look ugly.
dd184caf 2162# WARNING: Use '\'' to represent an apostrophe within the trap.
2163# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2164trap 'exit_status=$?
2165 # Save into config.log some information that might help in debugging.
2166 {
2167 echo
2168
b0322a85 2169 $as_echo "## ---------------- ##
d9898ee8 2170## Cache variables. ##
b0322a85 2171## ---------------- ##"
d9898ee8 2172 echo
2173 # The following way of writing the cache mishandles newlines in values,
dd184caf 2174(
2175 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in #(
2178 *${as_nl}*)
2179 case $ac_var in #(
b0322a85 2180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2181$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2182 esac
2183 case $ac_var in #(
2184 _ | IFS | as_nl) ;; #(
8d138742 2185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2186 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2187 esac ;;
2188 esac
2189 done
d9898ee8 2190 (set) 2>&1 |
dd184caf 2191 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2192 *${as_nl}ac_space=\ *)
d9898ee8 2193 sed -n \
dd184caf 2194 "s/'\''/'\''\\\\'\'''\''/g;
2195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2196 ;; #(
d9898ee8 2197 *)
dd184caf 2198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2199 ;;
dd184caf 2200 esac |
2201 sort
2202)
d9898ee8 2203 echo
2204
b0322a85 2205 $as_echo "## ----------------- ##
d9898ee8 2206## Output variables. ##
b0322a85 2207## ----------------- ##"
d9898ee8 2208 echo
2209 for ac_var in $ac_subst_vars
2210 do
dd184caf 2211 eval ac_val=\$$ac_var
2212 case $ac_val in
8d138742 2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2214 esac
8d138742 2215 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2216 done | sort
2217 echo
2218
2219 if test -n "$ac_subst_files"; then
b0322a85 2220 $as_echo "## ------------------- ##
dd184caf 2221## File substitutions. ##
b0322a85 2222## ------------------- ##"
d9898ee8 2223 echo
2224 for ac_var in $ac_subst_files
2225 do
dd184caf 2226 eval ac_val=\$$ac_var
2227 case $ac_val in
8d138742 2228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2229 esac
8d138742 2230 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2231 done | sort
2232 echo
2233 fi
2234
2235 if test -s confdefs.h; then
b0322a85 2236 $as_echo "## ----------- ##
d9898ee8 2237## confdefs.h. ##
b0322a85 2238## ----------- ##"
d9898ee8 2239 echo
dd184caf 2240 cat confdefs.h
d9898ee8 2241 echo
2242 fi
2243 test "$ac_signal" != 0 &&
8d138742
CE
2244 $as_echo "$as_me: caught signal $ac_signal"
2245 $as_echo "$as_me: exit $exit_status"
d9898ee8 2246 } >&5
dd184caf 2247 rm -f core *.core core.conftest.* &&
2248 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2249 exit $exit_status
dd184caf 2250' 0
d9898ee8 2251for ac_signal in 1 2 13 15; do
b0322a85 2252 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2253done
2254ac_signal=0
2255
2256# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2257rm -f -r conftest* confdefs.h
d9898ee8 2258
b0322a85
CE
2259$as_echo "/* confdefs.h */" > confdefs.h
2260
d9898ee8 2261# Predefined preprocessor variables.
2262
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_NAME "$PACKAGE_NAME"
2265_ACEOF
2266
d9898ee8 2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2269_ACEOF
2270
d9898ee8 2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_VERSION "$PACKAGE_VERSION"
2273_ACEOF
2274
d9898ee8 2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_STRING "$PACKAGE_STRING"
2277_ACEOF
2278
d9898ee8 2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2281_ACEOF
2282
b0322a85
CE
2283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_URL "$PACKAGE_URL"
2285_ACEOF
2286
d9898ee8 2287
2288# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2289# Prefer an explicitly selected file to automatically selected ones.
2290ac_site_file1=NONE
2291ac_site_file2=NONE
dd184caf 2292if test -n "$CONFIG_SITE"; then
b0322a85
CE
2293 # We do not want a PATH search for config.site.
2294 case $CONFIG_SITE in #((
2295 -*) ac_site_file1=./$CONFIG_SITE;;
2296 */*) ac_site_file1=$CONFIG_SITE;;
2297 *) ac_site_file1=./$CONFIG_SITE;;
2298 esac
dd184caf 2299elif test "x$prefix" != xNONE; then
8d138742
CE
2300 ac_site_file1=$prefix/share/config.site
2301 ac_site_file2=$prefix/etc/config.site
dd184caf 2302else
8d138742
CE
2303 ac_site_file1=$ac_default_prefix/share/config.site
2304 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2305fi
8d138742 2306for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2307do
8d138742 2308 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2311$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2312 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2313 . "$ac_site_file" \
2314 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316as_fn_error $? "failed to load site script $ac_site_file
2317See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2318 fi
2319done
2320
2321if test -r "$cache_file"; then
b0322a85
CE
2322 # Some versions of bash will fail to source /dev/null (special files
2323 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2324 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2326$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2327 case $cache_file in
dd184caf 2328 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2329 *) . "./$cache_file";;
d9898ee8 2330 esac
2331 fi
2332else
b0322a85 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2334$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2335 >$cache_file
2336fi
2337
2338# Check that the precious variables saved in the cache have kept the same
2339# value.
2340ac_cache_corrupted=false
dd184caf 2341for ac_var in $ac_precious_vars; do
d9898ee8 2342 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2343 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2344 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2345 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2346 case $ac_old_set,$ac_new_set in
2347 set,)
b0322a85 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2349$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2350 ac_cache_corrupted=: ;;
2351 ,set)
b0322a85 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2353$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2354 ac_cache_corrupted=: ;;
2355 ,);;
2356 *)
2357 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2358 # differences in whitespace do not lead to failure.
2359 ac_old_val_w=`echo x $ac_old_val`
2360 ac_new_val_w=`echo x $ac_new_val`
2361 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2363$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2364 ac_cache_corrupted=:
2365 else
b0322a85 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2367$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2368 eval $ac_var=\$ac_old_val
2369 fi
b0322a85 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2371$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2373$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2374 fi;;
2375 esac
2376 # Pass precious variables to config.status.
2377 if test "$ac_new_set" = set; then
2378 case $ac_new_val in
8d138742 2379 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2380 *) ac_arg=$ac_var=$ac_new_val ;;
2381 esac
2382 case " $ac_configure_args " in
2383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2384 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2385 esac
2386 fi
2387done
2388if $ac_cache_corrupted; then
b0322a85 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2392$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2393 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2394fi
b0322a85
CE
2395## -------------------- ##
2396## Main body of script. ##
2397## -------------------- ##
d9898ee8 2398
dd184caf 2399ac_ext=c
2400ac_cpp='$CPP $CPPFLAGS'
2401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2404
2405
2406
2407>confdefs.h # Kill PACKAGE_ macros
2408
2409
d9898ee8 2410ac_aux_dir=
b0322a85 2411for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2412 if test -f "$ac_dir/install-sh"; then
d9898ee8 2413 ac_aux_dir=$ac_dir
2414 ac_install_sh="$ac_aux_dir/install-sh -c"
2415 break
dd184caf 2416 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/install.sh -c"
2419 break
dd184caf 2420 elif test -f "$ac_dir/shtool"; then
d9898ee8 2421 ac_aux_dir=$ac_dir
2422 ac_install_sh="$ac_aux_dir/shtool install -c"
2423 break
2424 fi
2425done
2426if test -z "$ac_aux_dir"; then
b0322a85 2427 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2428fi
dd184caf 2429
2430# These three variables are undocumented and unsupported,
2431# and are intended to be withdrawn in a future Autoconf release.
2432# They can cause serious problems if a builder's source tree is in a directory
2433# whose full name contains unusual characters.
2434ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2435ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2436ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2437
d9898ee8 2438
b0322a85
CE
2439ac_config_headers="$ac_config_headers config.h"
2440
d50284c4 2441am__api_version='1.15'
b0322a85 2442
d9898ee8 2443# Find a good install program. We prefer a C program (faster),
2444# so one script is as good as another. But avoid the broken or
2445# incompatible versions:
2446# SysV /etc/install, /usr/sbin/install
2447# SunOS /usr/etc/install
2448# IRIX /sbin/install
2449# AIX /bin/install
2450# AmigaOS /C/install, which installs bootblocks on floppy discs
2451# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454# OS/2's system install, which has a completely different semantic
2455# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2456# Reject install programs that cannot install multiple files.
b0322a85 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2458$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2459if test -z "$INSTALL"; then
b0322a85 2460if ${ac_cv_path_install+:} false; then :
8d138742 2461 $as_echo_n "(cached) " >&6
d9898ee8 2462else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
b0322a85
CE
2468 # Account for people who put trailing slashes in PATH elements.
2469case $as_dir/ in #((
2470 ./ | .// | /[cC]/* | \
d9898ee8 2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2472 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2473 /usr/ucb/* ) ;;
2474 *)
2475 # OSF1 and SCO ODT 3.0 have their own names for install.
2476 # Don't use installbsd from OSF since it installs stuff as root
2477 # by default.
2478 for ac_prog in ginstall scoinst install; do
2479 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2480 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2481 if test $ac_prog = install &&
2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # AIX install. It has an incompatible calling convention.
2484 :
2485 elif test $ac_prog = install &&
2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # program-specific install script used by HP pwplus--don't use.
2488 :
2489 else
8d138742
CE
2490 rm -rf conftest.one conftest.two conftest.dir
2491 echo one > conftest.one
2492 echo two > conftest.two
2493 mkdir conftest.dir
2494 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495 test -s conftest.one && test -s conftest.two &&
2496 test -s conftest.dir/conftest.one &&
2497 test -s conftest.dir/conftest.two
2498 then
2499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500 break 3
2501 fi
d9898ee8 2502 fi
2503 fi
2504 done
2505 done
2506 ;;
2507esac
8d138742 2508
b0322a85 2509 done
dd184caf 2510IFS=$as_save_IFS
d9898ee8 2511
8d138742 2512rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2513
2514fi
2515 if test "${ac_cv_path_install+set}" = set; then
2516 INSTALL=$ac_cv_path_install
2517 else
dd184caf 2518 # As a last resort, use the slow shell script. Don't cache a
2519 # value for INSTALL within a source directory, because that will
d9898ee8 2520 # break other packages using the cache if that directory is
dd184caf 2521 # removed, or if the value is a relative name.
d9898ee8 2522 INSTALL=$ac_install_sh
2523 fi
2524fi
b0322a85 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2526$as_echo "$INSTALL" >&6; }
d9898ee8 2527
2528# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529# It thinks the first close brace ends the variable substitution.
2530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531
2532test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533
2534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535
b0322a85 2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2537$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2538# Reject unsafe characters in $srcdir or the absolute working directory
2539# name. Accept space and tab only in the latter.
2540am_lf='
2541'
2542case `pwd` in
2543 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2544 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2545esac
2546case $srcdir in
2547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2548 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2549esac
2550
b0322a85 2551# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2552# arguments. Must try -L first in case configure is actually a
2553# symlink; some systems play weird games with the mod time of symlinks
2554# (eg FreeBSD returns the mod time of the symlink's containing
2555# directory).
2556if (
b0322a85
CE
2557 am_has_slept=no
2558 for am_try in 1 2; do
2559 echo "timestamp, slept: $am_has_slept" > conftest.file
2560 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2561 if test "$*" = "X"; then
2562 # -L didn't work.
2563 set X `ls -t "$srcdir/configure" conftest.file`
2564 fi
2565 if test "$*" != "X $srcdir/configure conftest.file" \
2566 && test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568 # If neither matched, then we have a broken ls. This can happen
2569 # if, for instance, CONFIG_SHELL is bash and it inherits a
2570 # broken ls alias from the environment. This has actually
2571 # happened. Such a system could not be considered "sane".
2572 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2573 alias in your environment" "$LINENO" 5
2574 fi
2575 if test "$2" = conftest.file || test $am_try -eq 2; then
2576 break
2577 fi
2578 # Just in case.
2579 sleep 1
2580 am_has_slept=yes
2581 done
d9898ee8 2582 test "$2" = conftest.file
2583 )
2584then
2585 # Ok.
2586 :
2587else
b0322a85
CE
2588 as_fn_error $? "newly created file is older than distributed files!
2589Check your system clock" "$LINENO" 5
d9898ee8 2590fi
b0322a85 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2592$as_echo "yes" >&6; }
b0322a85
CE
2593# If we didn't sleep, we still need to ensure time stamps of config.status and
2594# generated files are strictly newer.
2595am_sleep_pid=
2596if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2597 ( sleep 1 ) &
2598 am_sleep_pid=$!
2599fi
2600
2601rm -f conftest.file
2602
d9898ee8 2603test "$program_prefix" != NONE &&
dd184caf 2604 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2605# Use a double $ so make ignores it.
2606test "$program_suffix" != NONE &&
dd184caf 2607 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2608# Double any \ or $.
d9898ee8 2609# By default was `s,x,x', remove it if useless.
8d138742
CE
2610ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2611program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2612
d50284c4
CE
2613# Expand $ac_aux_dir to an absolute path.
2614am_aux_dir=`cd "$ac_aux_dir" && pwd`
d9898ee8 2615
8d138742
CE
2616if test x"${MISSING+set}" != xset; then
2617 case $am_aux_dir in
2618 *\ * | *\ *)
2619 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2620 *)
2621 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2622 esac
2623fi
d9898ee8 2624# Use eval to expand $SHELL
b0322a85
CE
2625if eval "$MISSING --is-lightweight"; then
2626 am_missing_run="$MISSING "
d9898ee8 2627else
2628 am_missing_run=
b0322a85
CE
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2630$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2631fi
2632
d50284c4 2633if test x"${install_sh+set}" != xset; then
8d138742
CE
2634 case $am_aux_dir in
2635 *\ * | *\ *)
2636 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2637 *)
2638 install_sh="\${SHELL} $am_aux_dir/install-sh"
2639 esac
2640fi
2641
b0322a85
CE
2642# Installed binaries are usually stripped using 'strip' when the user
2643# run "make install-strip". However 'strip' might not be the right
8d138742 2644# tool to use in cross-compilation environments, therefore Automake
b0322a85 2645# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2646if test "$cross_compiling" != no; then
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2649set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2651$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2652if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2653 $as_echo_n "(cached) " >&6
2654else
2655 if test -n "$STRIP"; then
2656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
b0322a85
CE
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2667 break 2
2668 fi
2669done
b0322a85 2670 done
8d138742
CE
2671IFS=$as_save_IFS
2672
2673fi
2674fi
2675STRIP=$ac_cv_prog_STRIP
2676if test -n "$STRIP"; then
b0322a85 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2678$as_echo "$STRIP" >&6; }
2679else
b0322a85 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2681$as_echo "no" >&6; }
d9898ee8 2682fi
2683
8d138742
CE
2684
2685fi
2686if test -z "$ac_cv_prog_STRIP"; then
2687 ac_ct_STRIP=$STRIP
2688 # Extract the first word of "strip", so it can be a program name with args.
2689set dummy strip; ac_word=$2
b0322a85 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2691$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2692if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2693 $as_echo_n "(cached) " >&6
2694else
2695 if test -n "$ac_ct_STRIP"; then
2696 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
b0322a85
CE
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2705 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2707 break 2
2708 fi
2709done
b0322a85 2710 done
8d138742
CE
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2716if test -n "$ac_ct_STRIP"; then
b0322a85 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2718$as_echo "$ac_ct_STRIP" >&6; }
2719else
b0322a85 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2721$as_echo "no" >&6; }
2722fi
2723
2724 if test "x$ac_ct_STRIP" = x; then
2725 STRIP=":"
2726 else
2727 case $cross_compiling:$ac_tool_warned in
2728yes:)
b0322a85 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731ac_tool_warned=yes ;;
2732esac
2733 STRIP=$ac_ct_STRIP
2734 fi
2735else
2736 STRIP="$ac_cv_prog_STRIP"
2737fi
2738
2739fi
2740INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2741
b0322a85 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2743$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2744if test -z "$MKDIR_P"; then
b0322a85 2745 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2746 $as_echo_n "(cached) " >&6
dd184caf 2747else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
b0322a85 2753 for ac_prog in mkdir gmkdir; do
dd184caf 2754 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2755 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2756 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2757 'mkdir (GNU coreutils) '* | \
2758 'mkdir (coreutils) '* | \
2759 'mkdir (fileutils) '4.1*)
2760 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2761 break 3;;
2762 esac
2763 done
2764 done
b0322a85 2765 done
dd184caf 2766IFS=$as_save_IFS
2767
2768fi
2769
b0322a85 2770 test -d ./--version && rmdir ./--version
dd184caf 2771 if test "${ac_cv_path_mkdir+set}" = set; then
2772 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2773 else
dd184caf 2774 # As a last resort, use the slow shell script. Don't cache a
2775 # value for MKDIR_P within a source directory, because that will
2776 # break other packages using the cache if that directory is
2777 # removed, or if the value is a relative name.
dd184caf 2778 MKDIR_P="$ac_install_sh -d"
d9898ee8 2779 fi
2780fi
b0322a85 2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2782$as_echo "$MKDIR_P" >&6; }
dd184caf 2783
d9898ee8 2784for ac_prog in gawk mawk nawk awk
2785do
2786 # Extract the first word of "$ac_prog", so it can be a program name with args.
2787set dummy $ac_prog; ac_word=$2
b0322a85 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2789$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2790if ${ac_cv_prog_AWK+:} false; then :
8d138742 2791 $as_echo_n "(cached) " >&6
d9898ee8 2792else
2793 if test -n "$AWK"; then
2794 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
b0322a85
CE
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2803 ac_cv_prog_AWK="$ac_prog"
b0322a85 2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2805 break 2
2806 fi
2807done
b0322a85 2808 done
dd184caf 2809IFS=$as_save_IFS
d9898ee8 2810
2811fi
2812fi
2813AWK=$ac_cv_prog_AWK
2814if test -n "$AWK"; then
b0322a85 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2816$as_echo "$AWK" >&6; }
d9898ee8 2817else
b0322a85 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2819$as_echo "no" >&6; }
d9898ee8 2820fi
2821
dd184caf 2822
d9898ee8 2823 test -n "$AWK" && break
2824done
2825
b0322a85 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2827$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2828set x ${MAKE-make}
2829ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2830if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2831 $as_echo_n "(cached) " >&6
d9898ee8 2832else
2833 cat >conftest.make <<\_ACEOF
dd184caf 2834SHELL = /bin/sh
d9898ee8 2835all:
dd184caf 2836 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2837_ACEOF
b0322a85 2838# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2839case `${MAKE-make} -f conftest.make 2>/dev/null` in
2840 *@@@%%%=?*=@@@%%%*)
2841 eval ac_cv_prog_make_${ac_make}_set=yes;;
2842 *)
2843 eval ac_cv_prog_make_${ac_make}_set=no;;
2844esac
d9898ee8 2845rm -f conftest.make
2846fi
dd184caf 2847if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2849$as_echo "yes" >&6; }
d9898ee8 2850 SET_MAKE=
2851else
b0322a85 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2853$as_echo "no" >&6; }
d9898ee8 2854 SET_MAKE="MAKE=${MAKE-make}"
2855fi
2856
2857rm -rf .tst 2>/dev/null
2858mkdir .tst 2>/dev/null
2859if test -d .tst; then
2860 am__leading_dot=.
2861else
2862 am__leading_dot=_
2863fi
2864rmdir .tst 2>/dev/null
2865
b0322a85
CE
2866# Check whether --enable-silent-rules was given.
2867if test "${enable_silent_rules+set}" = set; then :
2868 enableval=$enable_silent_rules;
d9898ee8 2869fi
2870
b0322a85
CE
2871case $enable_silent_rules in # (((
2872 yes) AM_DEFAULT_VERBOSITY=0;;
2873 no) AM_DEFAULT_VERBOSITY=1;;
2874 *) AM_DEFAULT_VERBOSITY=1;;
2875esac
2876am_make=${MAKE-make}
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2878$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2879if ${am_cv_make_support_nested_variables+:} false; then :
8d138742 2880 $as_echo_n "(cached) " >&6
d9898ee8 2881else
b0322a85
CE
2882 if $as_echo 'TRUE=$(BAR$(V))
2883BAR0=false
2884BAR1=true
2885V=1
2886am__doit:
2887 @$(TRUE)
2888.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2889 am_cv_make_support_nested_variables=yes
d9898ee8 2890else
b0322a85 2891 am_cv_make_support_nested_variables=no
d9898ee8 2892fi
2893fi
b0322a85
CE
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2895$as_echo "$am_cv_make_support_nested_variables" >&6; }
2896if test $am_cv_make_support_nested_variables = yes; then
2897 AM_V='$(V)'
2898 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
d9898ee8 2899else
b0322a85
CE
2900 AM_V=$AM_DEFAULT_VERBOSITY
2901 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
d9898ee8 2902fi
b0322a85 2903AM_BACKSLASH='\'
d9898ee8 2904
b0322a85
CE
2905if test "`cd $srcdir && pwd`" != "`pwd`"; then
2906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2907 # is not polluted with repeated "-I."
2908 am__isrc=' -I$(srcdir)'
2909 # test to see if srcdir already configured
2910 if test -f $srcdir/config.status; then
2911 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2912 fi
d9898ee8 2913fi
b0322a85
CE
2914
2915# test whether we have cygpath
2916if test -z "$CYGPATH_W"; then
2917 if (cygpath --version) >/dev/null 2>/dev/null; then
2918 CYGPATH_W='cygpath -w'
d9898ee8 2919 else
b0322a85 2920 CYGPATH_W=echo
d9898ee8 2921 fi
2922fi
d9898ee8 2923
d9898ee8 2924
b0322a85
CE
2925# Define the identity of the package.
2926 PACKAGE='libsha1'
2927 VERSION='1.21'
d9898ee8 2928
d9898ee8 2929
b0322a85
CE
2930# Some tools Automake needs.
2931
2932ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2933
2934
2935AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2936
2937
2938AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2939
2940
2941AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2942
2943
2944MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2945
2946# For better backward compatibility. To be removed once Automake 1.9.x
2947# dies out for good. For more background, see:
2948# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2949# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2950mkdir_p='$(MKDIR_P)'
2951
d50284c4
CE
2952# We need awk for the "check" target (and possibly the TAP driver). The
2953# system "awk" is bad on some platforms.
b0322a85
CE
2954# Always define AMTAR for backward compatibility. Yes, it's still used
2955# in the wild :-( We should find a proper way to deprecate it ...
2956AMTAR='$${TAR-tar}'
2957
2958
2959# We'll loop over all known methods to create a tar archive until one works.
2960_am_tools='gnutar pax cpio none'
2961
2962am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2963
2964
2965
2966
2967
2968
d50284c4
CE
2969# POSIX will say in a future version that running "rm -f" with no argument
2970# is OK; and we want to be able to make that assumption in our Makefile
2971# recipes. So use an aggressive probe to check that the usage we want is
2972# actually supported "in the wild" to an acceptable degree.
2973# See automake bug#10828.
2974# To make any issue more visible, cause the running configure to be aborted
2975# by default if the 'rm' program in use doesn't match our expectations; the
2976# user can still override this though.
2977if rm -f && rm -fr && rm -rf; then : OK; else
2978 cat >&2 <<'END'
2979Oops!
2980
2981Your 'rm' program seems unable to run without file operands specified
2982on the command line, even when the '-f' option is present. This is contrary
2983to the behaviour of most rm programs out there, and not conforming with
2984the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2985
2986Please tell bug-automake@gnu.org about your system, including the value
2987of your $PATH and any error possibly output before this message. This
2988can help us improve future automake versions.
2989
2990END
2991 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2992 echo 'Configuration will proceed anyway, since you have set the' >&2
2993 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2994 echo >&2
2995 else
2996 cat >&2 <<'END'
2997Aborting the configuration process, to ensure you take notice of the issue.
2998
2999You can download and install GNU coreutils to get an 'rm' implementation
3000that behaves properly: <http://www.gnu.org/software/coreutils/>.
3001
3002If you want to complete the configuration process using your problematic
3003'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3004to "yes", and re-run configure.
3005
3006END
3007 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3008 fi
3009fi
3010
b0322a85
CE
3011
3012 if test -d ${srcdir}/../libhmac; then
3013 HMACC_TRUE=
3014 HMACC_FALSE='#'
d9898ee8 3015else
b0322a85
CE
3016 HMACC_TRUE='#'
3017 HMACC_FALSE=
d9898ee8 3018fi
3019
b0322a85 3020
d9898ee8 3021ac_ext=c
3022ac_cpp='$CPP $CPPFLAGS'
3023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3028set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3030$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3031if ${ac_cv_prog_CC+:} false; then :
8d138742 3032 $as_echo_n "(cached) " >&6
d9898ee8 3033else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
b0322a85
CE
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3046 break 2
3047 fi
3048done
b0322a85 3049 done
dd184caf 3050IFS=$as_save_IFS
d9898ee8 3051
3052fi
3053fi
3054CC=$ac_cv_prog_CC
3055if test -n "$CC"; then
b0322a85 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3057$as_echo "$CC" >&6; }
d9898ee8 3058else
b0322a85 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3060$as_echo "no" >&6; }
d9898ee8 3061fi
3062
dd184caf 3063
d9898ee8 3064fi
3065if test -z "$ac_cv_prog_CC"; then
3066 ac_ct_CC=$CC
3067 # Extract the first word of "gcc", so it can be a program name with args.
3068set dummy gcc; ac_word=$2
b0322a85 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3070$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3071if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3072 $as_echo_n "(cached) " >&6
d9898ee8 3073else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
b0322a85
CE
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3084 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3086 break 2
3087 fi
3088done
b0322a85 3089 done
dd184caf 3090IFS=$as_save_IFS
d9898ee8 3091
3092fi
3093fi
3094ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095if test -n "$ac_ct_CC"; then
b0322a85 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3097$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3098else
b0322a85 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3100$as_echo "no" >&6; }
d9898ee8 3101fi
3102
dd184caf 3103 if test "x$ac_ct_CC" = x; then
3104 CC=""
3105 else
3106 case $cross_compiling:$ac_tool_warned in
3107yes:)
b0322a85 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3110ac_tool_warned=yes ;;
3111esac
3112 CC=$ac_ct_CC
3113 fi
d9898ee8 3114else
3115 CC="$ac_cv_prog_CC"
3116fi
3117
3118if test -z "$CC"; then
dd184caf 3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 3121set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3123$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3124if ${ac_cv_prog_CC+:} false; then :
8d138742 3125 $as_echo_n "(cached) " >&6
d9898ee8 3126else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
b0322a85
CE
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3137 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3139 break 2
3140 fi
3141done
b0322a85 3142 done
dd184caf 3143IFS=$as_save_IFS
d9898ee8 3144
3145fi
3146fi
3147CC=$ac_cv_prog_CC
3148if test -n "$CC"; then
b0322a85 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3150$as_echo "$CC" >&6; }
d9898ee8 3151else
b0322a85 3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3153$as_echo "no" >&6; }
d9898ee8 3154fi
3155
d9898ee8 3156
dd184caf 3157 fi
d9898ee8 3158fi
3159if test -z "$CC"; then
3160 # Extract the first word of "cc", so it can be a program name with args.
3161set dummy cc; ac_word=$2
b0322a85 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3163$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3164if ${ac_cv_prog_CC+:} false; then :
8d138742 3165 $as_echo_n "(cached) " >&6
d9898ee8 3166else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
3170 ac_prog_rejected=no
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
b0322a85
CE
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3179 ac_prog_rejected=yes
3180 continue
3181 fi
3182 ac_cv_prog_CC="cc"
b0322a85 3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3184 break 2
3185 fi
3186done
b0322a85 3187 done
dd184caf 3188IFS=$as_save_IFS
d9898ee8 3189
3190if test $ac_prog_rejected = yes; then
3191 # We found a bogon in the path, so make sure we never use it.
3192 set dummy $ac_cv_prog_CC
3193 shift
3194 if test $# != 0; then
3195 # We chose a different compiler from the bogus one.
3196 # However, it has the same basename, so the bogon will be chosen
3197 # first if we set CC to just the basename; use the full file name.
3198 shift
3199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3200 fi
3201fi
3202fi
3203fi
3204CC=$ac_cv_prog_CC
3205if test -n "$CC"; then
b0322a85 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3207$as_echo "$CC" >&6; }
d9898ee8 3208else
b0322a85 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3210$as_echo "no" >&6; }
d9898ee8 3211fi
3212
dd184caf 3213
d9898ee8 3214fi
3215if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
dd184caf 3217 for ac_prog in cl.exe
d9898ee8 3218 do
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3222$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3223if ${ac_cv_prog_CC+:} false; then :
8d138742 3224 $as_echo_n "(cached) " >&6
d9898ee8 3225else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
b0322a85
CE
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3238 break 2
3239 fi
3240done
b0322a85 3241 done
dd184caf 3242IFS=$as_save_IFS
d9898ee8 3243
3244fi
3245fi
3246CC=$ac_cv_prog_CC
3247if test -n "$CC"; then
b0322a85 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3249$as_echo "$CC" >&6; }
d9898ee8 3250else
b0322a85 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3252$as_echo "no" >&6; }
d9898ee8 3253fi
3254
dd184caf 3255
d9898ee8 3256 test -n "$CC" && break
3257 done
3258fi
3259if test -z "$CC"; then
3260 ac_ct_CC=$CC
dd184caf 3261 for ac_prog in cl.exe
d9898ee8 3262do
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264set dummy $ac_prog; ac_word=$2
b0322a85 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3266$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3267if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3268 $as_echo_n "(cached) " >&6
d9898ee8 3269else
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272else
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
b0322a85
CE
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3280 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3282 break 2
3283 fi
3284done
b0322a85 3285 done
dd184caf 3286IFS=$as_save_IFS
d9898ee8 3287
3288fi
3289fi
3290ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291if test -n "$ac_ct_CC"; then
b0322a85 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3293$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3294else
b0322a85 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3296$as_echo "no" >&6; }
d9898ee8 3297fi
3298
dd184caf 3299
d9898ee8 3300 test -n "$ac_ct_CC" && break
3301done
3302
dd184caf 3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307yes:)
b0322a85 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3310ac_tool_warned=yes ;;
3311esac
3312 CC=$ac_ct_CC
3313 fi
d9898ee8 3314fi
3315
3316fi
3317
3318
b0322a85 3319test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3321as_fn_error $? "no acceptable C compiler found in \$PATH
3322See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3323
3324# Provide some information about the compiler.
b0322a85 3325$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3326set X $ac_compile
3327ac_compiler=$2
b0322a85
CE
3328for ac_option in --version -v -V -qversion; do
3329 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
b0322a85
CE
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3337 ac_status=$?
b0322a85
CE
3338 if test -s conftest.err; then
3339 sed '10a\
3340... rest of stderr output deleted ...
3341 10q' conftest.err >conftest.er1
3342 cat conftest.er1 >&5
3343 fi
3344 rm -f conftest.er1 conftest.err
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }
3347done
d9898ee8 3348
b0322a85 3349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3350/* end confdefs.h. */
3351
3352int
3353main ()
3354{
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360ac_clean_files_save=$ac_clean_files
8d138742 3361ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3362# Try to create an executable without -o first, disregard a.out.
3363# It will help us diagnose broken compilers, and finding out an intuition
3364# of exeext.
b0322a85
CE
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3366$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3367ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3368
3369# The possible output files:
3370ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3371
dd184caf 3372ac_rmfiles=
3373for ac_file in $ac_files
3374do
3375 case $ac_file in
8d138742 3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3377 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3378 esac
3379done
3380rm -f $ac_rmfiles
3381
b0322a85 3382if { { ac_try="$ac_link_default"
dd184caf 3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
b0322a85
CE
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
dd184caf 3389 (eval "$ac_link_default") 2>&5
d9898ee8 3390 ac_status=$?
b0322a85
CE
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
dd184caf 3393 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3394# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3395# in a Makefile. We should not override ac_cv_exeext if it was cached,
3396# so that the user can short-circuit this test for compilers unknown to
3397# Autoconf.
3398for ac_file in $ac_files ''
d9898ee8 3399do
3400 test -f "$ac_file" || continue
3401 case $ac_file in
8d138742 3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3403 ;;
3404 [ab].out )
3405 # We found the default executable, but exeext='' is most
3406 # certainly right.
3407 break;;
3408 *.* )
b0322a85 3409 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3410 then :; else
3411 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 fi
3413 # We set ac_cv_exeext here because the later test for it is not
3414 # safe: cross compilers may not add the suffix if given an `-o'
3415 # argument, so we may need to know it at that point already.
3416 # Even if this section looks crufty: it has the advantage of
3417 # actually working.
d9898ee8 3418 break;;
3419 * )
3420 break;;
3421 esac
3422done
dd184caf 3423test "$ac_cv_exeext" = no && ac_cv_exeext=
3424
d9898ee8 3425else
dd184caf 3426 ac_file=''
3427fi
b0322a85
CE
3428if test -z "$ac_file"; then :
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430$as_echo "no" >&6; }
3431$as_echo "$as_me: failed program was:" >&5
d9898ee8 3432sed 's/^/| /' conftest.$ac_ext >&5
3433
b0322a85 3434{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3436as_fn_error 77 "C compiler cannot create executables
3437See \`config.log' for more details" "$LINENO" 5; }
3438else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440$as_echo "yes" >&6; }
d9898ee8 3441fi
b0322a85
CE
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3443$as_echo_n "checking for C compiler default output file name... " >&6; }
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3445$as_echo "$ac_file" >&6; }
d9898ee8 3446ac_exeext=$ac_cv_exeext
d9898ee8 3447
8d138742 3448rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3449ac_clean_files=$ac_clean_files_save
b0322a85 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3451$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3452if { { ac_try="$ac_link"
dd184caf 3453case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456esac
b0322a85
CE
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
dd184caf 3459 (eval "$ac_link") 2>&5
d9898ee8 3460 ac_status=$?
b0322a85
CE
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; then :
d9898ee8 3463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3464# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3465# work properly (i.e., refer to `conftest.exe'), while it won't with
3466# `rm'.
3467for ac_file in conftest.exe conftest conftest.*; do
3468 test -f "$ac_file" || continue
3469 case $ac_file in
8d138742 3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3472 break;;
3473 * ) break;;
3474 esac
3475done
3476else
b0322a85 3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3479as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3480See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3481fi
b0322a85
CE
3482rm -f conftest conftest$ac_cv_exeext
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3484$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3485
3486rm -f conftest.$ac_ext
3487EXEEXT=$ac_cv_exeext
3488ac_exeext=$EXEEXT
b0322a85
CE
3489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h. */
3491#include <stdio.h>
3492int
3493main ()
3494{
3495FILE *f = fopen ("conftest.out", "w");
3496 return ferror (f) || fclose (f) != 0;
3497
3498 ;
3499 return 0;
3500}
3501_ACEOF
3502ac_clean_files="$ac_clean_files conftest.out"
3503# Check that the compiler produces executables we can run. If not, either
3504# the compiler is broken, or we cross compile.
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3506$as_echo_n "checking whether we are cross compiling... " >&6; }
3507if test "$cross_compiling" != yes; then
3508 { { ac_try="$ac_link"
3509case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_link") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }
3519 if { ac_try='./conftest$ac_cv_exeext'
3520 { { case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525$as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_try") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; }; then
3530 cross_compiling=no
3531 else
3532 if test "$cross_compiling" = maybe; then
3533 cross_compiling=yes
3534 else
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537as_fn_error $? "cannot run C compiled programs.
3538If you meant to cross compile, use \`--host'.
3539See \`config.log' for more details" "$LINENO" 5; }
3540 fi
3541 fi
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3544$as_echo "$cross_compiling" >&6; }
3545
3546rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3547ac_clean_files=$ac_clean_files_save
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3549$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3550if ${ac_cv_objext+:} false; then :
8d138742 3551 $as_echo_n "(cached) " >&6
d9898ee8 3552else
b0322a85 3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3554/* end confdefs.h. */
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564rm -f conftest.o conftest.obj
b0322a85 3565if { { ac_try="$ac_compile"
dd184caf 3566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
b0322a85
CE
3570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571$as_echo "$ac_try_echo"; } >&5
dd184caf 3572 (eval "$ac_compile") 2>&5
d9898ee8 3573 ac_status=$?
b0322a85
CE
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
dd184caf 3576 for ac_file in conftest.o conftest.obj conftest.*; do
3577 test -f "$ac_file" || continue;
d9898ee8 3578 case $ac_file in
8d138742 3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3581 break;;
3582 esac
3583done
3584else
8d138742 3585 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3586sed 's/^/| /' conftest.$ac_ext >&5
3587
b0322a85 3588{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3590as_fn_error $? "cannot compute suffix of object files: cannot compile
3591See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3592fi
d9898ee8 3593rm -f conftest.$ac_cv_objext conftest.$ac_ext
3594fi
b0322a85 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3596$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3597OBJEXT=$ac_cv_objext
3598ac_objext=$OBJEXT
b0322a85 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3600$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3601if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3602 $as_echo_n "(cached) " >&6
d9898ee8 3603else
b0322a85 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3605/* end confdefs.h. */
3606
3607int
3608main ()
3609{
3610#ifndef __GNUC__
3611 choke me
3612#endif
3613
3614 ;
3615 return 0;
3616}
3617_ACEOF
b0322a85 3618if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3619 ac_compiler_gnu=yes
3620else
b0322a85 3621 ac_compiler_gnu=no
d9898ee8 3622fi
dd184caf 3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3624ac_cv_c_compiler_gnu=$ac_compiler_gnu
3625
3626fi
b0322a85 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3628$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3629if test $ac_compiler_gnu = yes; then
3630 GCC=yes
3631else
3632 GCC=
3633fi
d9898ee8 3634ac_test_CFLAGS=${CFLAGS+set}
3635ac_save_CFLAGS=$CFLAGS
b0322a85 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3637$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3638if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3639 $as_echo_n "(cached) " >&6
d9898ee8 3640else
dd184caf 3641 ac_save_c_werror_flag=$ac_c_werror_flag
3642 ac_c_werror_flag=yes
3643 ac_cv_prog_cc_g=no
3644 CFLAGS="-g"
b0322a85 3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3646/* end confdefs.h. */
3647
3648int
3649main ()
3650{
3651
3652 ;
3653 return 0;
3654}
3655_ACEOF
b0322a85 3656if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3657 ac_cv_prog_cc_g=yes
3658else
b0322a85
CE
3659 CFLAGS=""
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3661/* end confdefs.h. */
3662
3663int
3664main ()
3665{
3666
3667 ;
3668 return 0;
3669}
3670_ACEOF
b0322a85 3671if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3672
b0322a85
CE
3673else
3674 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3675 CFLAGS="-g"
b0322a85 3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3677/* end confdefs.h. */
3678
3679int
3680main ()
3681{
3682
3683 ;
3684 return 0;
3685}
3686_ACEOF
b0322a85 3687if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3688 ac_cv_prog_cc_g=yes
dd184caf 3689fi
dd184caf 3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691fi
dd184caf 3692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3693fi
dd184caf 3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3696fi
b0322a85 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3698$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3699if test "$ac_test_CFLAGS" = set; then
3700 CFLAGS=$ac_save_CFLAGS
3701elif test $ac_cv_prog_cc_g = yes; then
3702 if test "$GCC" = yes; then
3703 CFLAGS="-g -O2"
3704 else
3705 CFLAGS="-g"
3706 fi
3707else
3708 if test "$GCC" = yes; then
3709 CFLAGS="-O2"
3710 else
3711 CFLAGS=
3712 fi
3713fi
b0322a85 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3715$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3716if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3717 $as_echo_n "(cached) " >&6
d9898ee8 3718else
dd184caf 3719 ac_cv_prog_cc_c89=no
d9898ee8 3720ac_save_CC=$CC
b0322a85 3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3722/* end confdefs.h. */
3723#include <stdarg.h>
3724#include <stdio.h>
b0322a85 3725struct stat;
d9898ee8 3726/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3727struct buf { int x; };
3728FILE * (*rcsopen) (struct buf *, struct stat *, int);
3729static char *e (p, i)
3730 char **p;
3731 int i;
3732{
3733 return p[i];
3734}
3735static char *f (char * (*g) (char **, int), char **p, ...)
3736{
3737 char *s;
3738 va_list v;
3739 va_start (v,p);
3740 s = g (p, va_arg (v,int));
3741 va_end (v);
3742 return s;
3743}
3744
3745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3746 function prototypes and stuff, but not '\xHH' hex character constants.
3747 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3748 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3750 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3751 that's true only with -std. */
d9898ee8 3752int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753
dd184caf 3754/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3755 inside strings and character constants. */
3756#define FOO(x) 'x'
3757int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3758
d9898ee8 3759int test (int i, double x);
3760struct s1 {int (*f) (int a);};
3761struct s2 {int (*f) (double a);};
3762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763int argc;
3764char **argv;
3765int
3766main ()
3767{
3768return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3769 ;
3770 return 0;
3771}
3772_ACEOF
dd184caf 3773for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3774 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3775do
3776 CC="$ac_save_CC $ac_arg"
b0322a85 3777 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3778 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3779fi
dd184caf 3780rm -f core conftest.err conftest.$ac_objext
3781 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3782done
dd184caf 3783rm -f conftest.$ac_ext
d9898ee8 3784CC=$ac_save_CC
3785
3786fi
dd184caf 3787# AC_CACHE_VAL
3788case "x$ac_cv_prog_cc_c89" in
3789 x)
b0322a85 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3791$as_echo "none needed" >&6; } ;;
dd184caf 3792 xno)
b0322a85 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3794$as_echo "unsupported" >&6; } ;;
d9898ee8 3795 *)
dd184caf 3796 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3798$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3799esac
b0322a85 3800if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3801
b0322a85 3802fi
d9898ee8 3803
d9898ee8 3804ac_ext=c
3805ac_cpp='$CPP $CPPFLAGS'
3806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808ac_compiler_gnu=$ac_cv_c_compiler_gnu
d50284c4
CE
3809
3810ac_ext=c
3811ac_cpp='$CPP $CPPFLAGS'
3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3816$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3817if ${am_cv_prog_cc_c_o+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819else
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h. */
3822
3823int
3824main ()
3825{
3826
3827 ;
3828 return 0;
3829}
3830_ACEOF
3831 # Make sure it works both with $CC and with simple cc.
3832 # Following AC_PROG_CC_C_O, we do the test twice because some
3833 # compilers refuse to overwrite an existing .o file with -o,
3834 # though they will create one.
3835 am_cv_prog_cc_c_o=yes
3836 for am_i in 1 2; do
3837 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3838 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } \
3842 && test -f conftest2.$ac_objext; then
3843 : OK
3844 else
3845 am_cv_prog_cc_c_o=no
3846 break
3847 fi
3848 done
3849 rm -f core conftest*
3850 unset am_i
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3853$as_echo "$am_cv_prog_cc_c_o" >&6; }
3854if test "$am_cv_prog_cc_c_o" != yes; then
3855 # Losing compiler, so override with the script.
3856 # FIXME: It is wrong to rewrite CC.
3857 # But if we don't then we get into trouble of one sort or another.
3858 # A longer-term fix would be to have automake use am__CC in this case,
3859 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3860 CC="$am_aux_dir/compile $CC"
3861fi
3862ac_ext=c
3863ac_cpp='$CPP $CPPFLAGS'
3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
d9898ee8 3868DEPDIR="${am__leading_dot}deps"
3869
dd184caf 3870ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3871
3872
3873am_make=${MAKE-make}
3874cat > confinc << 'END'
3875am__doit:
8d138742 3876 @echo this is the am__doit target
d9898ee8 3877.PHONY: am__doit
3878END
3879# If we don't find an include directive, just comment out the code.
b0322a85 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 3881$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3882am__include="#"
3883am__quote=
3884_am_result=none
3885# First try GNU make style include.
3886echo "include confinc" > confmf
b0322a85 3887# Ignore all kinds of additional output from 'make'.
8d138742
CE
3888case `$am_make -s -f confmf 2> /dev/null` in #(
3889*the\ am__doit\ target*)
3890 am__include=include
3891 am__quote=
3892 _am_result=GNU
3893 ;;
3894esac
d9898ee8 3895# Now try BSD make style include.
3896if test "$am__include" = "#"; then
3897 echo '.include "confinc"' > confmf
8d138742
CE
3898 case `$am_make -s -f confmf 2> /dev/null` in #(
3899 *the\ am__doit\ target*)
3900 am__include=.include
3901 am__quote="\""
3902 _am_result=BSD
3903 ;;
3904 esac
d9898ee8 3905fi
3906
3907
b0322a85 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 3909$as_echo "$_am_result" >&6; }
d9898ee8 3910rm -f confinc confmf
3911
dd184caf 3912# Check whether --enable-dependency-tracking was given.
b0322a85 3913if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 3914 enableval=$enable_dependency_tracking;
3915fi
d9898ee8 3916
d9898ee8 3917if test "x$enable_dependency_tracking" != xno; then
3918 am_depcomp="$ac_aux_dir/depcomp"
3919 AMDEPBACKSLASH='\'
b0322a85 3920 am__nodep='_no'
d9898ee8 3921fi
dd184caf 3922 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3923 AMDEP_TRUE=
3924 AMDEP_FALSE='#'
3925else
3926 AMDEP_TRUE='#'
3927 AMDEP_FALSE=
3928fi
3929
3930
3931
d9898ee8 3932depcc="$CC" am_compiler_list=
3933
b0322a85 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3935$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3936if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3937 $as_echo_n "(cached) " >&6
d9898ee8 3938else
3939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3940 # We make a subdir and do the tests there. Otherwise we can end up
3941 # making bogus files that we don't know about and never remove. For
3942 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3943 # making a dummy file named 'D' -- because '-MD' means "put the output
3944 # in D".
3945 rm -rf conftest.dir
d9898ee8 3946 mkdir conftest.dir
3947 # Copy depcomp to subdir because otherwise we won't find it if we're
3948 # using a relative directory.
3949 cp "$am_depcomp" conftest.dir
3950 cd conftest.dir
3951 # We will build objects and dependencies in a subdirectory because
3952 # it helps to detect inapplicable dependency modes. For instance
3953 # both Tru64's cc and ICC support -MD to output dependencies as a
3954 # side effect of compilation, but ICC will put the dependencies in
3955 # the current directory while Tru64 will put them in the object
3956 # directory.
3957 mkdir sub
3958
3959 am_cv_CC_dependencies_compiler_type=none
3960 if test "$am_compiler_list" = ""; then
3961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962 fi
8d138742
CE
3963 am__universal=false
3964 case " $depcc " in #(
3965 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3966 esac
3967
d9898ee8 3968 for depmode in $am_compiler_list; do
3969 # Setup a source with many dependencies, because some compilers
3970 # like to wrap large dependency lists on column 80 (with \), and
3971 # we should not choose a depcomp mode which is confused by this.
3972 #
3973 # We need to recreate these files for each test, as the compiler may
3974 # overwrite some of them when testing with obscure command lines.
3975 # This happens at least with the AIX C compiler.
3976 : > sub/conftest.c
3977 for i in 1 2 3 4 5 6; do
3978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3979 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3980 # Solaris 10 /bin/sh.
3981 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3982 done
3983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3984
b0322a85 3985 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3986 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3987 # handle '-M -o', and we need to detect this. Also, some Intel
3988 # versions had trouble with output in subdirs.
8d138742
CE
3989 am__obj=sub/conftest.${OBJEXT-o}
3990 am__minus_obj="-o $am__obj"
d9898ee8 3991 case $depmode in
8d138742
CE
3992 gcc)
3993 # This depmode causes a compiler race in universal mode.
3994 test "$am__universal" = false || continue
3995 ;;
d9898ee8 3996 nosideeffect)
b0322a85
CE
3997 # After this tag, mechanisms are not by side-effect, so they'll
3998 # only be used when explicitly requested.
d9898ee8 3999 if test "x$enable_dependency_tracking" = xyes; then
4000 continue
4001 else
4002 break
4003 fi
4004 ;;
b0322a85
CE
4005 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4006 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
4007 # not run yet. These depmodes are late enough in the game, and
4008 # so weak that their functioning should not be impacted.
4009 am__obj=conftest.${OBJEXT-o}
4010 am__minus_obj=
4011 ;;
d9898ee8 4012 none) break ;;
4013 esac
d9898ee8 4014 if depmode=$depmode \
8d138742 4015 source=sub/conftest.c object=$am__obj \
d9898ee8 4016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 4017 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 4018 >/dev/null 2>conftest.err &&
dd184caf 4019 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4020 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 4021 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4022 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4023 # icc doesn't choke on unknown options, it will just issue warnings
4024 # or remarks (even with -Werror). So we grep stderr for any message
4025 # that says an option was ignored or not supported.
4026 # When given -MP, icc 7.0 and 7.1 complain thusly:
4027 # icc: Command line warning: ignoring option '-M'; no argument required
4028 # The diagnosis changed in icc 8.0:
4029 # icc: Command line remark: option '-MP' not supported
4030 if (grep 'ignoring option' conftest.err ||
4031 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4032 am_cv_CC_dependencies_compiler_type=$depmode
4033 break
4034 fi
4035 fi
4036 done
4037
4038 cd ..
4039 rm -rf conftest.dir
4040else
4041 am_cv_CC_dependencies_compiler_type=none
4042fi
4043
4044fi
b0322a85 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 4046$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 4047CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4048
dd184caf 4049 if
d9898ee8 4050 test "x$enable_dependency_tracking" != xno \
4051 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4052 am__fastdepCC_TRUE=
4053 am__fastdepCC_FALSE='#'
4054else
b0322a85
CE
4055 am__fastdepCC_TRUE='#'
4056 am__fastdepCC_FALSE=
4057fi
4058
4059
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4062$as_echo_n "checking whether ln -s works... " >&6; }
4063LN_S=$as_ln_s
4064if test "$LN_S" = "ln -s"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4066$as_echo "yes" >&6; }
4067else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4069$as_echo "no, using $LN_S" >&6; }
d9898ee8 4070fi
4071
8d138742
CE
4072case `pwd` in
4073 *\ * | *\ *)
b0322a85 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742
CE
4075$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4076esac
4077
4078
4079
d50284c4
CE
4080macro_version='2.4.6'
4081macro_revision='2.4.6'
8d138742
CE
4082
4083
4084
4085
d9898ee8 4086
dd184caf 4087
d9898ee8 4088
dd184caf 4089
dd184caf 4090
d9898ee8 4091
8d138742
CE
4092
4093
4094
d50284c4 4095ltmain=$ac_aux_dir/ltmain.sh
8d138742 4096
d9898ee8 4097# Make sure we can run config.sub.
dd184caf 4098$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 4099 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 4100
b0322a85 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 4102$as_echo_n "checking build system type... " >&6; }
b0322a85 4103if ${ac_cv_build+:} false; then :
8d138742 4104 $as_echo_n "(cached) " >&6
d9898ee8 4105else
dd184caf 4106 ac_build_alias=$build_alias
4107test "x$ac_build_alias" = x &&
4108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4109test "x$ac_build_alias" = x &&
b0322a85 4110 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
dd184caf 4111ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 4112 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 4113
4114fi
b0322a85 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742 4116$as_echo "$ac_cv_build" >&6; }
dd184caf 4117case $ac_cv_build in
4118*-*-*) ;;
b0322a85 4119*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
dd184caf 4120esac
d9898ee8 4121build=$ac_cv_build
dd184caf 4122ac_save_IFS=$IFS; IFS='-'
4123set x $ac_cv_build
4124shift
4125build_cpu=$1
4126build_vendor=$2
4127shift; shift
4128# Remember, the first character of IFS is used to create $*,
4129# except with old shells:
4130build_os=$*
4131IFS=$ac_save_IFS
4132case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4133
4134
b0322a85 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 4136$as_echo_n "checking host system type... " >&6; }
b0322a85 4137if ${ac_cv_host+:} false; then :
8d138742 4138 $as_echo_n "(cached) " >&6
d9898ee8 4139else
dd184caf 4140 if test "x$host_alias" = x; then
4141 ac_cv_host=$ac_cv_build
4142else
4143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 4144 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
dd184caf 4145fi
d9898ee8 4146
4147fi
b0322a85 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742 4149$as_echo "$ac_cv_host" >&6; }
dd184caf 4150case $ac_cv_host in
4151*-*-*) ;;
b0322a85 4152*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
dd184caf 4153esac
d9898ee8 4154host=$ac_cv_host
dd184caf 4155ac_save_IFS=$IFS; IFS='-'
4156set x $ac_cv_host
4157shift
4158host_cpu=$1
4159host_vendor=$2
4160shift; shift
4161# Remember, the first character of IFS is used to create $*,
4162# except with old shells:
4163host_os=$*
4164IFS=$ac_save_IFS
4165case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4166
4167
b0322a85
CE
4168# Backslashify metacharacters that are still active within
4169# double-quoted strings.
4170sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4171
4172# Same as above, but do not quote variable references.
4173double_quote_subst='s/\(["`\\]\)/\\\1/g'
4174
4175# Sed substitution to delay expansion of an escaped shell variable in a
4176# double_quote_subst'ed string.
4177delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4178
4179# Sed substitution to delay expansion of an escaped single quote.
4180delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4181
4182# Sed substitution to avoid accidental globbing in evaled expressions
4183no_glob_subst='s/\*/\\\*/g'
4184
4185ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4186ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4187ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4188
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4190$as_echo_n "checking how to print strings... " >&6; }
4191# Test print first, because it will be a builtin if present.
4192if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4194 ECHO='print -r --'
4195elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4196 ECHO='printf %s\n'
4197else
4198 # Use this function as a fallback that always works.
4199 func_fallback_echo ()
4200 {
4201 eval 'cat <<_LTECHO_EOF
4202$1
4203_LTECHO_EOF'
4204 }
4205 ECHO='func_fallback_echo'
4206fi
4207
4208# func_echo_all arg...
4209# Invoke $ECHO with all args, space-separated.
4210func_echo_all ()
4211{
4212 $ECHO ""
4213}
4214
d50284c4 4215case $ECHO in
b0322a85
CE
4216 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4217$as_echo "printf" >&6; } ;;
4218 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4219$as_echo "print -r" >&6; } ;;
4220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4221$as_echo "cat" >&6; } ;;
4222esac
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 4238$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 4239if ${ac_cv_path_SED+:} false; then :
8d138742
CE
4240 $as_echo_n "(cached) " >&6
4241else
4242 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4243 for ac_i in 1 2 3 4 5 6 7; do
4244 ac_script="$ac_script$as_nl$ac_script"
4245 done
4246 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 4247 { ac_script=; unset ac_script;}
8d138742
CE
4248 if test -z "$SED"; then
4249 ac_path_SED_found=false
4250 # Loop through the user's path and test for each of PROGNAME-LIST
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
b0322a85 4256 for ac_prog in sed gsed; do
d9898ee8 4257 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742 4258 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4259 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
4260# Check for GNU ac_path_SED and select it if it is found.
4261 # Check for GNU $ac_path_SED
4262case `"$ac_path_SED" --version 2>&1` in
4263*GNU*)
4264 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4265*)
4266 ac_count=0
4267 $as_echo_n 0123456789 >"conftest.in"
4268 while :
4269 do
4270 cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 mv "conftest.tmp" "conftest.in"
4272 cp "conftest.in" "conftest.nl"
4273 $as_echo '' >> "conftest.nl"
4274 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4276 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4277 if test $ac_count -gt ${ac_path_SED_max-0}; then
4278 # Best one so far, save it but keep looking for a better one
4279 ac_cv_path_SED="$ac_path_SED"
4280 ac_path_SED_max=$ac_count
4281 fi
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4284 done
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286esac
4287
4288 $ac_path_SED_found && break 3
d9898ee8 4289 done
4290 done
b0322a85 4291 done
d9898ee8 4292IFS=$as_save_IFS
8d138742 4293 if test -z "$ac_cv_path_SED"; then
b0322a85 4294 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
d9898ee8 4295 fi
8d138742
CE
4296else
4297 ac_cv_path_SED=$SED
4298fi
d9898ee8 4299
4300fi
b0322a85 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
4302$as_echo "$ac_cv_path_SED" >&6; }
4303 SED="$ac_cv_path_SED"
4304 rm -f conftest.sed
4305
4306test -z "$SED" && SED=sed
4307Xsed="$SED -e 1s/^X//"
d9898ee8 4308
d9898ee8 4309
dd184caf 4310
8d138742
CE
4311
4312
4313
4314
4315
4316
4317
4318
b0322a85 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4320$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4321if ${ac_cv_path_GREP+:} false; then :
8d138742 4322 $as_echo_n "(cached) " >&6
dd184caf 4323else
8d138742 4324 if test -z "$GREP"; then
dd184caf 4325 ac_path_GREP_found=false
8d138742
CE
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
b0322a85 4332 for ac_prog in grep ggrep; do
8d138742
CE
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4335 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4336# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4337 # Check for GNU $ac_path_GREP
4338case `"$ac_path_GREP" --version 2>&1` in
4339*GNU*)
4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341*)
4342 ac_count=0
8d138742 4343 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4344 while :
4345 do
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
8d138742 4349 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4352 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP="$ac_path_GREP"
4356 ac_path_GREP_max=$ac_count
4357 fi
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4360 done
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362esac
4363
8d138742
CE
4364 $ac_path_GREP_found && break 3
4365 done
dd184caf 4366 done
b0322a85 4367 done
dd184caf 4368IFS=$as_save_IFS
8d138742 4369 if test -z "$ac_cv_path_GREP"; then
b0322a85 4370 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4371 fi
dd184caf 4372else
4373 ac_cv_path_GREP=$GREP
4374fi
4375
dd184caf 4376fi
b0322a85 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4378$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4379 GREP="$ac_cv_path_GREP"
4380
d9898ee8 4381
b0322a85 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4383$as_echo_n "checking for egrep... " >&6; }
b0322a85 4384if ${ac_cv_path_EGREP+:} false; then :
8d138742 4385 $as_echo_n "(cached) " >&6
dd184caf 4386else
4387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4388 then ac_cv_path_EGREP="$GREP -E"
4389 else
8d138742 4390 if test -z "$EGREP"; then
dd184caf 4391 ac_path_EGREP_found=false
8d138742
CE
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
b0322a85 4398 for ac_prog in egrep; do
8d138742
CE
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4401 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4402# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4403 # Check for GNU $ac_path_EGREP
4404case `"$ac_path_EGREP" --version 2>&1` in
4405*GNU*)
4406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4407*)
4408 ac_count=0
8d138742 4409 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4410 while :
4411 do
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
8d138742 4415 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_EGREP="$ac_path_EGREP"
4422 ac_path_EGREP_max=$ac_count
d9898ee8 4423 fi
dd184caf 4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4426 done
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428esac
4429
8d138742
CE
4430 $ac_path_EGREP_found && break 3
4431 done
dd184caf 4432 done
b0322a85 4433 done
dd184caf 4434IFS=$as_save_IFS
8d138742 4435 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4436 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4437 fi
4438else
4439 ac_cv_path_EGREP=$EGREP
dd184caf 4440fi
4441
8d138742 4442 fi
dd184caf 4443fi
b0322a85 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742
CE
4445$as_echo "$ac_cv_path_EGREP" >&6; }
4446 EGREP="$ac_cv_path_EGREP"
dd184caf 4447
8d138742 4448
b0322a85 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 4450$as_echo_n "checking for fgrep... " >&6; }
b0322a85 4451if ${ac_cv_path_FGREP+:} false; then :
8d138742 4452 $as_echo_n "(cached) " >&6
dd184caf 4453else
8d138742
CE
4454 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4455 then ac_cv_path_FGREP="$GREP -F"
4456 else
4457 if test -z "$FGREP"; then
4458 ac_path_FGREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
b0322a85 4465 for ac_prog in fgrep; do
8d138742
CE
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4468 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
4469# Check for GNU ac_path_FGREP and select it if it is found.
4470 # Check for GNU $ac_path_FGREP
4471case `"$ac_path_FGREP" --version 2>&1` in
4472*GNU*)
4473 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4474*)
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4478 do
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'FGREP' >> "conftest.nl"
4483 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4486 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_FGREP="$ac_path_FGREP"
4489 ac_path_FGREP_max=$ac_count
4490 fi
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495esac
dd184caf 4496
8d138742
CE
4497 $ac_path_FGREP_found && break 3
4498 done
4499 done
b0322a85 4500 done
8d138742
CE
4501IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_FGREP"; then
b0322a85 4503 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4504 fi
4505else
4506 ac_cv_path_FGREP=$FGREP
4507fi
dd184caf 4508
4509 fi
d9898ee8 4510fi
b0322a85 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
4512$as_echo "$ac_cv_path_FGREP" >&6; }
4513 FGREP="$ac_cv_path_FGREP"
4514
4515
4516test -z "$GREP" && GREP=grep
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
d9898ee8 4533
4534
4535
dd184caf 4536# Check whether --with-gnu-ld was given.
b0322a85 4537if test "${with_gnu_ld+set}" = set; then :
d50284c4 4538 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d9898ee8 4539else
4540 with_gnu_ld=no
dd184caf 4541fi
4542
d9898ee8 4543ac_prog=ld
d50284c4 4544if test yes = "$GCC"; then
d9898ee8 4545 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 4547$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4548 case $host in
4549 *-*-mingw*)
d50284c4 4550 # gcc leaves a trailing carriage return, which upsets mingw
d9898ee8 4551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4552 *)
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4554 esac
4555 case $ac_prog in
4556 # Accept absolute paths.
4557 [\\/]* | ?:[\\/]*)
4558 re_direlt='/[^/][^/]*/\.\./'
4559 # Canonicalize the pathname of ld
8d138742
CE
4560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4563 done
d50284c4 4564 test -z "$LD" && LD=$ac_prog
d9898ee8 4565 ;;
4566 "")
4567 # If it fails, then pretend we aren't using GCC.
4568 ac_prog=ld
4569 ;;
4570 *)
4571 # If it is relative, then search for the first ld in PATH.
4572 with_gnu_ld=unknown
4573 ;;
4574 esac
d50284c4 4575elif test yes = "$with_gnu_ld"; then
b0322a85 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 4577$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4578else
b0322a85 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 4580$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4581fi
b0322a85 4582if ${lt_cv_path_LD+:} false; then :
8d138742 4583 $as_echo_n "(cached) " >&6
d9898ee8 4584else
4585 if test -z "$LD"; then
d50284c4 4586 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4587 for ac_dir in $PATH; do
d50284c4 4588 IFS=$lt_save_ifs
d9898ee8 4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
d50284c4 4591 lt_cv_path_LD=$ac_dir/$ac_prog
d9898ee8 4592 # Check to see if the program is GNU ld. I'd rather use --version,
4593 # but apparently some variants of GNU ld only accept -v.
4594 # Break only if it was the GNU/non-GNU ld that we prefer.
4595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4596 *GNU* | *'with BFD'*)
d50284c4 4597 test no != "$with_gnu_ld" && break
d9898ee8 4598 ;;
4599 *)
d50284c4 4600 test yes != "$with_gnu_ld" && break
d9898ee8 4601 ;;
4602 esac
4603 fi
4604 done
d50284c4 4605 IFS=$lt_save_ifs
d9898ee8 4606else
d50284c4 4607 lt_cv_path_LD=$LD # Let the user override the test with a path.
d9898ee8 4608fi
4609fi
4610
d50284c4 4611LD=$lt_cv_path_LD
d9898ee8 4612if test -n "$LD"; then
b0322a85 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 4614$as_echo "$LD" >&6; }
d9898ee8 4615else
b0322a85 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4617$as_echo "no" >&6; }
d9898ee8 4618fi
b0322a85
CE
4619test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 4621$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 4622if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 4623 $as_echo_n "(cached) " >&6
d9898ee8 4624else
4625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4626case `$LD -v 2>&1 </dev/null` in
4627*GNU* | *'with BFD'*)
4628 lt_cv_prog_gnu_ld=yes
4629 ;;
4630*)
4631 lt_cv_prog_gnu_ld=no
4632 ;;
4633esac
4634fi
b0322a85 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 4636$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4637with_gnu_ld=$lt_cv_prog_gnu_ld
4638
4639
d9898ee8 4640
8d138742
CE
4641
4642
4643
4644
4645
4646
b0322a85 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 4648$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 4649if ${lt_cv_path_NM+:} false; then :
8d138742 4650 $as_echo_n "(cached) " >&6
d9898ee8 4651else
4652 if test -n "$NM"; then
4653 # Let the user override the test.
d50284c4 4654 lt_cv_path_NM=$NM
d9898ee8 4655else
d50284c4 4656 lt_nm_to_check=${ac_tool_prefix}nm
d9898ee8 4657 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4658 lt_nm_to_check="$lt_nm_to_check nm"
4659 fi
4660 for lt_tmp_nm in $lt_nm_to_check; do
d50284c4 4661 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4662 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
d50284c4 4663 IFS=$lt_save_ifs
d9898ee8 4664 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
4665 tmp_nm=$ac_dir/$lt_tmp_nm
4666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d9898ee8 4667 # Check to see if the nm accepts a BSD-compat flag.
d50284c4 4668 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d9898ee8 4669 # nm: unknown option "B" ignored
4670 # Tru64's nm complains that /dev/null is an invalid object file
d50284c4
CE
4671 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4672 case $build_os in
4673 mingw*) lt_bad_file=conftest.nm/nofile ;;
4674 *) lt_bad_file=/dev/null ;;
4675 esac
4676 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4677 *$lt_bad_file* | *'Invalid file or object type'*)
d9898ee8 4678 lt_cv_path_NM="$tmp_nm -B"
d50284c4 4679 break 2
d9898ee8 4680 ;;
4681 *)
4682 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4683 */dev/null*)
4684 lt_cv_path_NM="$tmp_nm -p"
d50284c4 4685 break 2
d9898ee8 4686 ;;
4687 *)
4688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689 continue # so that we can try to find one that supports BSD flags
4690 ;;
4691 esac
4692 ;;
4693 esac
4694 fi
4695 done
d50284c4 4696 IFS=$lt_save_ifs
d9898ee8 4697 done
8d138742 4698 : ${lt_cv_path_NM=no}
d9898ee8 4699fi
4700fi
b0322a85 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742 4702$as_echo "$lt_cv_path_NM" >&6; }
d50284c4
CE
4703if test no != "$lt_cv_path_NM"; then
4704 NM=$lt_cv_path_NM
d9898ee8 4705else
8d138742 4706 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
4707 if test -n "$DUMPBIN"; then :
4708 # Let the user override the test.
4709 else
4710 if test -n "$ac_tool_prefix"; then
4711 for ac_prog in dumpbin "link -dump"
8d138742
CE
4712 do
4713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4716$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4717if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
4718 $as_echo_n "(cached) " >&6
4719else
4720 if test -n "$DUMPBIN"; then
4721 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
b0322a85
CE
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4730 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4732 break 2
4733 fi
4734done
b0322a85 4735 done
8d138742 4736IFS=$as_save_IFS
d9898ee8 4737
8d138742
CE
4738fi
4739fi
4740DUMPBIN=$ac_cv_prog_DUMPBIN
4741if test -n "$DUMPBIN"; then
b0322a85 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742
CE
4743$as_echo "$DUMPBIN" >&6; }
4744else
b0322a85 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4746$as_echo "no" >&6; }
4747fi
d9898ee8 4748
d9898ee8 4749
8d138742
CE
4750 test -n "$DUMPBIN" && break
4751 done
4752fi
4753if test -z "$DUMPBIN"; then
4754 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 4755 for ac_prog in dumpbin "link -dump"
8d138742
CE
4756do
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758set dummy $ac_prog; ac_word=$2
b0322a85 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4760$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4761if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
4762 $as_echo_n "(cached) " >&6
4763else
4764 if test -n "$ac_ct_DUMPBIN"; then
4765 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
b0322a85
CE
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4774 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 4776 break 2
ac40fd9e 4777 fi
8d138742 4778done
b0322a85 4779 done
8d138742 4780IFS=$as_save_IFS
d9898ee8 4781
8d138742
CE
4782fi
4783fi
4784ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4785if test -n "$ac_ct_DUMPBIN"; then
b0322a85 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
4787$as_echo "$ac_ct_DUMPBIN" >&6; }
4788else
b0322a85 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4790$as_echo "no" >&6; }
4791fi
d9898ee8 4792
8d138742
CE
4793
4794 test -n "$ac_ct_DUMPBIN" && break
4795done
4796
4797 if test "x$ac_ct_DUMPBIN" = x; then
4798 DUMPBIN=":"
d9898ee8 4799 else
8d138742
CE
4800 case $cross_compiling:$ac_tool_warned in
4801yes:)
b0322a85 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804ac_tool_warned=yes ;;
4805esac
4806 DUMPBIN=$ac_ct_DUMPBIN
d9898ee8 4807 fi
8d138742 4808fi
d9898ee8 4809
d50284c4 4810 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
b0322a85 4811 *COFF*)
d50284c4 4812 DUMPBIN="$DUMPBIN -symbols -headers"
b0322a85
CE
4813 ;;
4814 *)
4815 DUMPBIN=:
4816 ;;
4817 esac
4818 fi
d9898ee8 4819
d50284c4
CE
4820 if test : != "$DUMPBIN"; then
4821 NM=$DUMPBIN
8d138742
CE
4822 fi
4823fi
4824test -z "$NM" && NM=nm
d9898ee8 4825
d9898ee8 4826
d9898ee8 4827
d9898ee8 4828
d9898ee8 4829
d9898ee8 4830
b0322a85 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 4832$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 4833if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
4834 $as_echo_n "(cached) " >&6
4835else
4836 lt_cv_nm_interface="BSD nm"
4837 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 4838 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
4839 (eval "$ac_compile" 2>conftest.err)
4840 cat conftest.err >&5
b0322a85 4841 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
4842 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4843 cat conftest.err >&5
b0322a85 4844 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
4845 cat conftest.out >&5
4846 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4847 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4848 fi
8d138742
CE
4849 rm -f conftest*
4850fi
b0322a85 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 4852$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4853
8d138742 4854# find the maximum length of command line arguments
b0322a85 4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 4856$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 4857if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
4858 $as_echo_n "(cached) " >&6
4859else
4860 i=0
d50284c4 4861 teststring=ABCD
d9898ee8 4862
8d138742
CE
4863 case $build_os in
4864 msdosdjgpp*)
4865 # On DJGPP, this test can blow up pretty badly due to problems in libc
4866 # (any single argument exceeding 2000 bytes causes a buffer overrun
4867 # during glob expansion). Even if it were fixed, the result of this
4868 # check would be larger than it should be.
4869 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4870 ;;
ac40fd9e 4871
8d138742
CE
4872 gnu*)
4873 # Under GNU Hurd, this test is not required because there is
4874 # no limit to the length of command line arguments.
4875 # Libtool will interpret -1 as no limit whatsoever
4876 lt_cv_sys_max_cmd_len=-1;
4877 ;;
d9898ee8 4878
8d138742
CE
4879 cygwin* | mingw* | cegcc*)
4880 # On Win9x/ME, this test blows up -- it succeeds, but takes
4881 # about 5 minutes as the teststring grows exponentially.
4882 # Worse, since 9x/ME are not pre-emptively multitasking,
4883 # you end up with a "frozen" computer, even though with patience
4884 # the test eventually succeeds (with a max line length of 256k).
4885 # Instead, let's just punt: use the minimum linelength reported by
4886 # all of the supported platforms: 8192 (on NT/2K/XP).
4887 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4888 ;;
8d138742 4889
b0322a85
CE
4890 mint*)
4891 # On MiNT this can take a long time and run out of memory.
4892 lt_cv_sys_max_cmd_len=8192;
4893 ;;
4894
8d138742
CE
4895 amigaos*)
4896 # On AmigaOS with pdksh, this test takes hours, literally.
4897 # So we just punt and use a minimum line length of 8192.
4898 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4899 ;;
8d138742 4900
d50284c4 4901 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8d138742
CE
4902 # This has been around since 386BSD, at least. Likely further.
4903 if test -x /sbin/sysctl; then
4904 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4905 elif test -x /usr/sbin/sysctl; then
4906 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4907 else
4908 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4909 fi
4910 # And add a safety zone
4911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4913 ;;
8d138742
CE
4914
4915 interix*)
4916 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4917 lt_cv_sys_max_cmd_len=196608
d9898ee8 4918 ;;
8d138742 4919
b0322a85
CE
4920 os2*)
4921 # The test takes a long time on OS/2.
4922 lt_cv_sys_max_cmd_len=8192
4923 ;;
4924
8d138742
CE
4925 osf*)
4926 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4927 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4928 # nice to cause kernel panics so lets avoid the loop below.
4929 # First set a reasonable default.
4930 lt_cv_sys_max_cmd_len=16384
4931 #
4932 if test -x /sbin/sysconfig; then
4933 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4934 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4935 esac
4936 fi
d9898ee8 4937 ;;
8d138742
CE
4938 sco3.2v5*)
4939 lt_cv_sys_max_cmd_len=102400
4940 ;;
4941 sysv5* | sco5v6* | sysv4.2uw2*)
4942 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4943 if test -n "$kargmax"; then
4944 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4945 else
4946 lt_cv_sys_max_cmd_len=32768
4947 fi
4948 ;;
4949 *)
4950 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
d50284c4
CE
4951 if test -n "$lt_cv_sys_max_cmd_len" && \
4952 test undefined != "$lt_cv_sys_max_cmd_len"; then
8d138742
CE
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4955 else
4956 # Make teststring a little bigger before we do anything with it.
4957 # a 1K string should be a reasonable start.
d50284c4 4958 for i in 1 2 3 4 5 6 7 8; do
8d138742
CE
4959 teststring=$teststring$teststring
4960 done
4961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4962 # If test is not a shell built-in, we'll probably end up computing a
4963 # maximum length that is only half of the actual maximum length, but
4964 # we can't tell.
d50284c4 4965 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
b0322a85 4966 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
d50284c4 4967 test 17 != "$i" # 1/2 MB should be enough
8d138742
CE
4968 do
4969 i=`expr $i + 1`
4970 teststring=$teststring$teststring
4971 done
4972 # Only check the string length outside the loop.
4973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4974 teststring=
4975 # Add a significant safety factor because C++ compilers can tack on
4976 # massive amounts of additional arguments before passing them to the
4977 # linker. It appears as though 1/2 is a usable value.
4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4979 fi
d9898ee8 4980 ;;
4981 esac
d9898ee8 4982
8d138742 4983fi
d9898ee8 4984
d50284c4 4985if test -n "$lt_cv_sys_max_cmd_len"; then
b0322a85 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
4987$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4988else
b0322a85 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742 4990$as_echo "none" >&6; }
d9898ee8 4991fi
8d138742 4992max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4993
4994
4995
4996
d9898ee8 4997
d9898ee8 4998
8d138742
CE
4999: ${CP="cp -f"}
5000: ${MV="mv -f"}
5001: ${RM="rm -f"}
d9898ee8 5002
8d138742
CE
5003if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5004 lt_unset=unset
d9898ee8 5005else
8d138742
CE
5006 lt_unset=false
5007fi
d9898ee8 5008
d9898ee8 5009
d9898ee8 5010
dd184caf 5011
d9898ee8 5012
8d138742
CE
5013# test EBCDIC or ASCII
5014case `echo X|tr X '\101'` in
5015 A) # ASCII based system
5016 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5017 lt_SP2NL='tr \040 \012'
5018 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 5019 ;;
8d138742
CE
5020 *) # EBCDIC based system
5021 lt_SP2NL='tr \100 \n'
5022 lt_NL2SP='tr \r\n \100\100'
d9898ee8 5023 ;;
8d138742 5024esac
d9898ee8 5025
5026
d9898ee8 5027
d9898ee8 5028
5029
8d138742
CE
5030
5031
5032
5033
b0322a85
CE
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5035$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5036if ${lt_cv_to_host_file_cmd+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038else
5039 case $host in
5040 *-*-mingw* )
5041 case $build in
5042 *-*-mingw* ) # actually msys
5043 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5044 ;;
5045 *-*-cygwin* )
5046 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5047 ;;
5048 * ) # otherwise, assume *nix
5049 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5050 ;;
5051 esac
5052 ;;
5053 *-*-cygwin* )
5054 case $build in
5055 *-*-mingw* ) # actually msys
5056 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5057 ;;
5058 *-*-cygwin* )
5059 lt_cv_to_host_file_cmd=func_convert_file_noop
5060 ;;
5061 * ) # otherwise, assume *nix
5062 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5063 ;;
5064 esac
5065 ;;
5066 * ) # unhandled hosts (and "normal" native builds)
5067 lt_cv_to_host_file_cmd=func_convert_file_noop
5068 ;;
5069esac
5070
5071fi
5072
5073to_host_file_cmd=$lt_cv_to_host_file_cmd
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5075$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5076
5077
5078
5079
5080
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5082$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5083if ${lt_cv_to_tool_file_cmd+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085else
5086 #assume ordinary cross tools, or native build.
5087lt_cv_to_tool_file_cmd=func_convert_file_noop
5088case $host in
5089 *-*-mingw* )
5090 case $build in
5091 *-*-mingw* ) # actually msys
5092 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5093 ;;
5094 esac
5095 ;;
5096esac
5097
5098fi
5099
5100to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5102$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5103
5104
5105
5106
5107
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 5109$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 5110if ${lt_cv_ld_reload_flag+:} false; then :
8d138742 5111 $as_echo_n "(cached) " >&6
d9898ee8 5112else
8d138742
CE
5113 lt_cv_ld_reload_flag='-r'
5114fi
b0322a85 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
5116$as_echo "$lt_cv_ld_reload_flag" >&6; }
5117reload_flag=$lt_cv_ld_reload_flag
5118case $reload_flag in
5119"" | " "*) ;;
5120*) reload_flag=" $reload_flag" ;;
5121esac
5122reload_cmds='$LD$reload_flag -o $output$reload_objs'
5123case $host_os in
b0322a85 5124 cygwin* | mingw* | pw32* | cegcc*)
d50284c4 5125 if test yes != "$GCC"; then
b0322a85
CE
5126 reload_cmds=false
5127 fi
5128 ;;
8d138742 5129 darwin*)
d50284c4
CE
5130 if test yes = "$GCC"; then
5131 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8d138742
CE
5132 else
5133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5134 fi
5135 ;;
dd184caf 5136esac
d9898ee8 5137
dd184caf 5138
d9898ee8 5139
d9898ee8 5140
dd184caf 5141
d9898ee8 5142
d9898ee8 5143
d9898ee8 5144
8d138742
CE
5145
5146if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5150$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5151if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 5152 $as_echo_n "(cached) " >&6
d9898ee8 5153else
8d138742
CE
5154 if test -n "$OBJDUMP"; then
5155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 5156else
8d138742
CE
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
b0322a85
CE
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5164 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5166 break 2
5167 fi
5168done
b0322a85 5169 done
8d138742 5170IFS=$as_save_IFS
d9898ee8 5171
8d138742
CE
5172fi
5173fi
5174OBJDUMP=$ac_cv_prog_OBJDUMP
5175if test -n "$OBJDUMP"; then
b0322a85 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742
CE
5177$as_echo "$OBJDUMP" >&6; }
5178else
b0322a85 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5180$as_echo "no" >&6; }
d9898ee8 5181fi
dd184caf 5182
d9898ee8 5183
8d138742
CE
5184fi
5185if test -z "$ac_cv_prog_OBJDUMP"; then
5186 ac_ct_OBJDUMP=$OBJDUMP
5187 # Extract the first word of "objdump", so it can be a program name with args.
5188set dummy objdump; ac_word=$2
b0322a85 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5190$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5191if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742 5192 $as_echo_n "(cached) " >&6
d9898ee8 5193else
8d138742
CE
5194 if test -n "$ac_ct_OBJDUMP"; then
5195 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
b0322a85
CE
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5204 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5206 break 2
5207 fi
5208done
b0322a85 5209 done
8d138742 5210IFS=$as_save_IFS
d9898ee8 5211
8d138742
CE
5212fi
5213fi
5214ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5215if test -n "$ac_ct_OBJDUMP"; then
b0322a85 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742
CE
5217$as_echo "$ac_ct_OBJDUMP" >&6; }
5218else
b0322a85 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5220$as_echo "no" >&6; }
d9898ee8 5221fi
dd184caf 5222
8d138742
CE
5223 if test "x$ac_ct_OBJDUMP" = x; then
5224 OBJDUMP="false"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227yes:)
b0322a85 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230ac_tool_warned=yes ;;
5231esac
5232 OBJDUMP=$ac_ct_OBJDUMP
5233 fi
d9898ee8 5234else
8d138742 5235 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 5236fi
5237
8d138742 5238test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 5239
5240
d9898ee8 5241
d9898ee8 5242
d9898ee8 5243
dd184caf 5244
d9898ee8 5245
d9898ee8 5246
8d138742 5247
b0322a85 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 5249$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 5250if ${lt_cv_deplibs_check_method+:} false; then :
8d138742 5251 $as_echo_n "(cached) " >&6
d9898ee8 5252else
8d138742
CE
5253 lt_cv_file_magic_cmd='$MAGIC_CMD'
5254lt_cv_file_magic_test_file=
5255lt_cv_deplibs_check_method='unknown'
5256# Need to set the preceding variable on all platforms that support
5257# interlibrary dependencies.
5258# 'none' -- dependencies not supported.
d50284c4 5259# 'unknown' -- same as none, but documents that we really don't know.
8d138742
CE
5260# 'pass_all' -- all dependencies passed with no checks.
5261# 'test_compile' -- check by making test program.
5262# 'file_magic [[regex]]' -- check by looking for files in library path
d50284c4
CE
5263# that responds to the $file_magic_cmd with a given extended regex.
5264# If you have 'file' or equivalent on your system and you're not sure
5265# whether 'pass_all' will *always* work, you probably want this one.
d9898ee8 5266
8d138742
CE
5267case $host_os in
5268aix[4-9]*)
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
d9898ee8 5271
8d138742
CE
5272beos*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
d9898ee8 5275
8d138742
CE
5276bsdi[45]*)
5277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5278 lt_cv_file_magic_cmd='/usr/bin/file -L'
5279 lt_cv_file_magic_test_file=/shlib/libc.so
5280 ;;
d9898ee8 5281
8d138742
CE
5282cygwin*)
5283 # func_win32_libid is a shell function defined in ltmain.sh
5284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5285 lt_cv_file_magic_cmd='func_win32_libid'
5286 ;;
d9898ee8 5287
8d138742
CE
5288mingw* | pw32*)
5289 # Base MSYS/MinGW do not provide the 'file' command needed by
5290 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5291 # unless we find 'file', for example because we are cross-compiling.
d50284c4 5292 if ( file / ) >/dev/null 2>&1; then
8d138742
CE
5293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5294 lt_cv_file_magic_cmd='func_win32_libid'
5295 else
b0322a85
CE
5296 # Keep this pattern in sync with the one in func_win32_libid.
5297 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
5298 lt_cv_file_magic_cmd='$OBJDUMP -f'
5299 fi
5300 ;;
d9898ee8 5301
b0322a85 5302cegcc*)
8d138742
CE
5303 # use the weaker test based on 'objdump'. See mingw*.
5304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5305 lt_cv_file_magic_cmd='$OBJDUMP -f'
5306 ;;
d9898ee8 5307
8d138742
CE
5308darwin* | rhapsody*)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311
5312freebsd* | dragonfly*)
5313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5314 case $host_cpu in
5315 i*86 )
5316 # Not sure whether the presence of OpenBSD here was a mistake.
5317 # Let's accept both of them until this is cleared up.
5318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5319 lt_cv_file_magic_cmd=/usr/bin/file
5320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5321 ;;
5322 esac
5323 else
5324 lt_cv_deplibs_check_method=pass_all
5325 fi
5326 ;;
dd184caf 5327
b0322a85
CE
5328haiku*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
8d138742
CE
5332hpux10.20* | hpux11*)
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 case $host_cpu in
5335 ia64*)
5336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5337 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5338 ;;
5339 hppa*64*)
b0322a85 5340 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]'
8d138742
CE
5341 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5342 ;;
5343 *)
b0322a85 5344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
5345 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5346 ;;
5347 esac
5348 ;;
d9898ee8 5349
8d138742
CE
5350interix[3-9]*)
5351 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5353 ;;
d9898ee8 5354
8d138742
CE
5355irix5* | irix6* | nonstopux*)
5356 case $LD in
5357 *-32|*"-32 ") libmagic=32-bit;;
5358 *-n32|*"-n32 ") libmagic=N32;;
5359 *-64|*"-64 ") libmagic=64-bit;;
5360 *) libmagic=never-match;;
5361 esac
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
d9898ee8 5364
b0322a85 5365# This must be glibc/ELF.
d50284c4 5366linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b0322a85
CE
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370netbsd*)
5371 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5373 else
5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5375 fi
5376 ;;
5377
5378newos6*)
5379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5380 lt_cv_file_magic_cmd=/usr/bin/file
5381 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5382 ;;
5383
5384*nto* | *qnx*)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
d50284c4
CE
5388openbsd* | bitrig*)
5389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
b0322a85
CE
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5391 else
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5393 fi
5394 ;;
5395
5396osf3* | osf4* | osf5*)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399
5400rdos*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404solaris*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412sysv4 | sysv4.3*)
5413 case $host_vendor in
5414 motorola)
5415 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]'
5416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5417 ;;
5418 ncr)
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421 sequent)
5422 lt_cv_file_magic_cmd='/bin/file'
5423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5424 ;;
5425 sni)
5426 lt_cv_file_magic_cmd='/bin/file'
5427 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5428 lt_cv_file_magic_test_file=/lib/libc.so
5429 ;;
5430 siemens)
5431 lt_cv_deplibs_check_method=pass_all
5432 ;;
5433 pc)
5434 lt_cv_deplibs_check_method=pass_all
5435 ;;
5436 esac
5437 ;;
5438
5439tpf*)
5440 lt_cv_deplibs_check_method=pass_all
5441 ;;
d50284c4
CE
5442os2*)
5443 lt_cv_deplibs_check_method=pass_all
5444 ;;
b0322a85
CE
5445esac
5446
5447fi
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5449$as_echo "$lt_cv_deplibs_check_method" >&6; }
5450
5451file_magic_glob=
5452want_nocaseglob=no
5453if test "$build" = "$host"; then
5454 case $host_os in
5455 mingw* | pw32*)
5456 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5457 want_nocaseglob=yes
5458 else
5459 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5460 fi
5461 ;;
5462 esac
5463fi
5464
5465file_magic_cmd=$lt_cv_file_magic_cmd
5466deplibs_check_method=$lt_cv_deplibs_check_method
5467test -z "$deplibs_check_method" && deplibs_check_method=unknown
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5492set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494$as_echo_n "checking for $ac_word... " >&6; }
5495if ${ac_cv_prog_DLLTOOL+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497else
5498 if test -n "$DLLTOOL"; then
5499 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5500else
5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512done
5513 done
5514IFS=$as_save_IFS
5515
5516fi
5517fi
5518DLLTOOL=$ac_cv_prog_DLLTOOL
5519if test -n "$DLLTOOL"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5521$as_echo "$DLLTOOL" >&6; }
5522else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524$as_echo "no" >&6; }
5525fi
5526
5527
5528fi
5529if test -z "$ac_cv_prog_DLLTOOL"; then
5530 ac_ct_DLLTOOL=$DLLTOOL
5531 # Extract the first word of "dlltool", so it can be a program name with args.
5532set dummy dlltool; ac_word=$2
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534$as_echo_n "checking for $ac_word... " >&6; }
5535if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537else
5538 if test -n "$ac_ct_DLLTOOL"; then
5539 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552done
5553 done
5554IFS=$as_save_IFS
5555
5556fi
5557fi
5558ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5559if test -n "$ac_ct_DLLTOOL"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5561$as_echo "$ac_ct_DLLTOOL" >&6; }
5562else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564$as_echo "no" >&6; }
5565fi
d9898ee8 5566
b0322a85
CE
5567 if test "x$ac_ct_DLLTOOL" = x; then
5568 DLLTOOL="false"
8d138742 5569 else
b0322a85
CE
5570 case $cross_compiling:$ac_tool_warned in
5571yes:)
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574ac_tool_warned=yes ;;
5575esac
5576 DLLTOOL=$ac_ct_DLLTOOL
8d138742 5577 fi
b0322a85
CE
5578else
5579 DLLTOOL="$ac_cv_prog_DLLTOOL"
5580fi
d9898ee8 5581
b0322a85 5582test -z "$DLLTOOL" && DLLTOOL=dlltool
d9898ee8 5583
5584
5585
5586
5587
5588
5589
b0322a85
CE
5590
5591
5592
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5594$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5595if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597else
5598 lt_cv_sharedlib_from_linklib_cmd='unknown'
5599
5600case $host_os in
5601cygwin* | mingw* | pw32* | cegcc*)
d50284c4
CE
5602 # two different shell functions defined in ltmain.sh;
5603 # decide which one to use based on capabilities of $DLLTOOL
b0322a85
CE
5604 case `$DLLTOOL --help 2>&1` in
5605 *--identify-strict*)
5606 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8d138742 5607 ;;
b0322a85
CE
5608 *)
5609 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8d138742
CE
5610 ;;
5611 esac
5612 ;;
b0322a85
CE
5613*)
5614 # fallback: assume linklib IS sharedlib
d50284c4 5615 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8d138742 5616 ;;
dd184caf 5617esac
d9898ee8 5618
d9898ee8 5619fi
b0322a85
CE
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5621$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5622sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5623test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9898ee8 5624
5625
d9898ee8 5626
dd184caf 5627
d9898ee8 5628
8d138742
CE
5629
5630
5631
5632if test -n "$ac_tool_prefix"; then
b0322a85
CE
5633 for ac_prog in ar
5634 do
5635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5638$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5639if ${ac_cv_prog_AR+:} false; then :
8d138742 5640 $as_echo_n "(cached) " >&6
d9898ee8 5641else
8d138742
CE
5642 if test -n "$AR"; then
5643 ac_cv_prog_AR="$AR" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
b0322a85
CE
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5654 break 2
5655 fi
5656done
b0322a85 5657 done
8d138742 5658IFS=$as_save_IFS
d9898ee8 5659
8d138742
CE
5660fi
5661fi
5662AR=$ac_cv_prog_AR
5663if test -n "$AR"; then
b0322a85 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742
CE
5665$as_echo "$AR" >&6; }
5666else
b0322a85 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5668$as_echo "no" >&6; }
d9898ee8 5669fi
dd184caf 5670
d9898ee8 5671
b0322a85
CE
5672 test -n "$AR" && break
5673 done
d9898ee8 5674fi
b0322a85 5675if test -z "$AR"; then
8d138742 5676 ac_ct_AR=$AR
b0322a85
CE
5677 for ac_prog in ar
5678do
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680set dummy $ac_prog; ac_word=$2
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5682$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5683if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742
CE
5684 $as_echo_n "(cached) " >&6
5685else
5686 if test -n "$ac_ct_AR"; then
5687 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5688else
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
b0322a85
CE
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_AR="$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5698 break 2
5699 fi
5700done
b0322a85 5701 done
8d138742 5702IFS=$as_save_IFS
d9898ee8 5703
5704fi
8d138742
CE
5705fi
5706ac_ct_AR=$ac_cv_prog_ac_ct_AR
5707if test -n "$ac_ct_AR"; then
b0322a85 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742
CE
5709$as_echo "$ac_ct_AR" >&6; }
5710else
b0322a85 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5712$as_echo "no" >&6; }
5713fi
d9898ee8 5714
b0322a85
CE
5715
5716 test -n "$ac_ct_AR" && break
5717done
5718
8d138742
CE
5719 if test "x$ac_ct_AR" = x; then
5720 AR="false"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723yes:)
b0322a85 5724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726ac_tool_warned=yes ;;
5727esac
5728 AR=$ac_ct_AR
5729 fi
d9898ee8 5730fi
5731
b0322a85
CE
5732: ${AR=ar}
5733: ${AR_FLAGS=cru}
5734
5735
5736
5737
5738
5739
d9898ee8 5740
8d138742
CE
5741
5742
5743
5744
b0322a85
CE
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5746$as_echo_n "checking for archiver @FILE support... " >&6; }
5747if ${lt_cv_ar_at_file+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749else
5750 lt_cv_ar_at_file=no
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h. */
5753
5754int
5755main ()
5756{
5757
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"; then :
5763 echo conftest.$ac_objext > conftest.lst
5764 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5766 (eval $lt_ar_try) 2>&5
5767 ac_status=$?
5768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769 test $ac_status = 0; }
d50284c4 5770 if test 0 -eq "$ac_status"; then
b0322a85
CE
5771 # Ensure the archiver fails upon bogus file names.
5772 rm -f conftest.$ac_objext libconftest.a
5773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5774 (eval $lt_ar_try) 2>&5
5775 ac_status=$?
5776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5777 test $ac_status = 0; }
d50284c4 5778 if test 0 -ne "$ac_status"; then
b0322a85
CE
5779 lt_cv_ar_at_file=@
5780 fi
5781 fi
5782 rm -f conftest.* libconftest.a
5783
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5789$as_echo "$lt_cv_ar_at_file" >&6; }
5790
d50284c4 5791if test no = "$lt_cv_ar_at_file"; then
b0322a85
CE
5792 archiver_list_spec=
5793else
5794 archiver_list_spec=$lt_cv_ar_at_file
5795fi
5796
8d138742
CE
5797
5798
5799
5800
5801
5802
5803if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5805set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5807$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5808if ${ac_cv_prog_STRIP+:} false; then :
8d138742 5809 $as_echo_n "(cached) " >&6
d9898ee8 5810else
8d138742
CE
5811 if test -n "$STRIP"; then
5812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
b0322a85
CE
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5821 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5823 break 2
5824 fi
5825done
b0322a85 5826 done
dd184caf 5827IFS=$as_save_IFS
d9898ee8 5828
5829fi
5830fi
8d138742
CE
5831STRIP=$ac_cv_prog_STRIP
5832if test -n "$STRIP"; then
b0322a85 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742 5834$as_echo "$STRIP" >&6; }
d9898ee8 5835else
b0322a85 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5837$as_echo "no" >&6; }
d9898ee8 5838fi
5839
dd184caf 5840
d9898ee8 5841fi
8d138742
CE
5842if test -z "$ac_cv_prog_STRIP"; then
5843 ac_ct_STRIP=$STRIP
5844 # Extract the first word of "strip", so it can be a program name with args.
5845set dummy strip; ac_word=$2
b0322a85 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5847$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5848if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 5849 $as_echo_n "(cached) " >&6
d9898ee8 5850else
8d138742
CE
5851 if test -n "$ac_ct_STRIP"; then
5852 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
b0322a85
CE
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5861 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5863 break 2
5864 fi
5865done
b0322a85 5866 done
dd184caf 5867IFS=$as_save_IFS
d9898ee8 5868
5869fi
5870fi
8d138742
CE
5871ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5872if test -n "$ac_ct_STRIP"; then
b0322a85 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742 5874$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5875else
b0322a85 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5877$as_echo "no" >&6; }
d9898ee8 5878fi
5879
8d138742
CE
5880 if test "x$ac_ct_STRIP" = x; then
5881 STRIP=":"
dd184caf 5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884yes:)
b0322a85 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 5886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5887ac_tool_warned=yes ;;
5888esac
8d138742 5889 STRIP=$ac_ct_STRIP
dd184caf 5890 fi
8d138742
CE
5891else
5892 STRIP="$ac_cv_prog_STRIP"
d9898ee8 5893fi
5894
8d138742 5895test -z "$STRIP" && STRIP=:
d9898ee8 5896
d9898ee8 5897
d9898ee8 5898
8d138742
CE
5899
5900
5901
5902if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5906$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5907if ${ac_cv_prog_RANLIB+:} false; then :
8d138742 5908 $as_echo_n "(cached) " >&6
d9898ee8 5909else
8d138742
CE
5910 if test -n "$RANLIB"; then
5911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
b0322a85
CE
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5922 break 2
5923 fi
5924done
b0322a85 5925 done
8d138742 5926IFS=$as_save_IFS
d9898ee8 5927
8d138742
CE
5928fi
5929fi
5930RANLIB=$ac_cv_prog_RANLIB
5931if test -n "$RANLIB"; then
b0322a85 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742
CE
5933$as_echo "$RANLIB" >&6; }
5934else
b0322a85 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5936$as_echo "no" >&6; }
d9898ee8 5937fi
dd184caf 5938
d9898ee8 5939
8d138742
CE
5940fi
5941if test -z "$ac_cv_prog_RANLIB"; then
5942 ac_ct_RANLIB=$RANLIB
5943 # Extract the first word of "ranlib", so it can be a program name with args.
5944set dummy ranlib; ac_word=$2
b0322a85 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5946$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5947if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
5948 $as_echo_n "(cached) " >&6
5949else
5950 if test -n "$ac_ct_RANLIB"; then
5951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
b0322a85
CE
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5960 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5962 break 2
5963 fi
5964done
b0322a85 5965 done
8d138742 5966IFS=$as_save_IFS
d9898ee8 5967
8d138742
CE
5968fi
5969fi
5970ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5971if test -n "$ac_ct_RANLIB"; then
b0322a85 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
5973$as_echo "$ac_ct_RANLIB" >&6; }
5974else
b0322a85 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5976$as_echo "no" >&6; }
5977fi
5978
5979 if test "x$ac_ct_RANLIB" = x; then
5980 RANLIB=":"
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983yes:)
b0322a85 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5986ac_tool_warned=yes ;;
dd184caf 5987esac
8d138742
CE
5988 RANLIB=$ac_ct_RANLIB
5989 fi
d9898ee8 5990else
8d138742
CE
5991 RANLIB="$ac_cv_prog_RANLIB"
5992fi
d9898ee8 5993
8d138742 5994test -z "$RANLIB" && RANLIB=:
dd184caf 5995
dd184caf 5996
d9898ee8 5997
dd184caf 5998
dd184caf 5999
d9898ee8 6000
8d138742
CE
6001# Determine commands to create old-style static archives.
6002old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6003old_postinstall_cmds='chmod 644 $oldlib'
6004old_postuninstall_cmds=
dd184caf 6005
8d138742
CE
6006if test -n "$RANLIB"; then
6007 case $host_os in
d50284c4 6008 bitrig* | openbsd*)
b0322a85 6009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8d138742
CE
6010 ;;
6011 *)
b0322a85 6012 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
6013 ;;
6014 esac
b0322a85 6015 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 6016fi
dd184caf 6017
b0322a85
CE
6018case $host_os in
6019 darwin*)
6020 lock_old_archive_extraction=yes ;;
6021 *)
6022 lock_old_archive_extraction=no ;;
6023esac
6024
6025
6026
6027
6028
6029
d9898ee8 6030
dd184caf 6031
d9898ee8 6032
d9898ee8 6033
d9898ee8 6034
d9898ee8 6035
d9898ee8 6036
d9898ee8 6037
d9898ee8 6038
d9898ee8 6039
6040
6041
6042
d9898ee8 6043
dd184caf 6044
d9898ee8 6045
d9898ee8 6046
dd184caf 6047
d9898ee8 6048
d9898ee8 6049
d9898ee8 6050
d9898ee8 6051
dd184caf 6052
d9898ee8 6053
d9898ee8 6054
dd184caf 6055
d9898ee8 6056
d9898ee8 6057
d9898ee8 6058
d9898ee8 6059
6060
d9898ee8 6061
d9898ee8 6062
8d138742
CE
6063# If no C compiler was specified, use CC.
6064LTCC=${LTCC-"$CC"}
dd184caf 6065
8d138742
CE
6066# If no C compiler flags were specified, use CFLAGS.
6067LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 6068
8d138742
CE
6069# Allow CC to be a program name with arguments.
6070compiler=$CC
6071
6072
6073# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 6075$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 6076if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 6077 $as_echo_n "(cached) " >&6
d9898ee8 6078else
d9898ee8 6079
8d138742
CE
6080# These are sane defaults that work on at least a few old systems.
6081# [They come from Ultrix. What could be older than Ultrix?!! ;)]
dd184caf 6082
8d138742
CE
6083# Character class describing NM global symbol codes.
6084symcode='[BCDEGRST]'
d9898ee8 6085
8d138742
CE
6086# Regexp to match symbols that can be accessed directly from C.
6087sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6088
6089# Define system-specific variables.
6090case $host_os in
6091aix*)
6092 symcode='[BCDT]'
6093 ;;
6094cygwin* | mingw* | pw32* | cegcc*)
6095 symcode='[ABCDGISTW]'
6096 ;;
6097hpux*)
d50284c4 6098 if test ia64 = "$host_cpu"; then
8d138742 6099 symcode='[ABCDEGRST]'
dd184caf 6100 fi
8d138742
CE
6101 ;;
6102irix* | nonstopux*)
6103 symcode='[BCDEGRST]'
6104 ;;
6105osf*)
6106 symcode='[BCDEGQRST]'
6107 ;;
6108solaris*)
6109 symcode='[BDRT]'
6110 ;;
6111sco3.2v5*)
6112 symcode='[DT]'
6113 ;;
6114sysv4.2uw2*)
6115 symcode='[DT]'
6116 ;;
6117sysv5* | sco5v6* | unixware* | OpenUNIX*)
6118 symcode='[ABDT]'
6119 ;;
6120sysv4)
6121 symcode='[DFNSTU]'
6122 ;;
6123esac
6124
6125# If we're using GNU nm, then use its standard symbol codes.
6126case `$NM -V 2>&1` in
6127*GNU* | *'with BFD'*)
6128 symcode='[ABCDGIRSTW]' ;;
6129esac
d9898ee8 6130
d50284c4
CE
6131if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6132 # Gets list of data symbols to import.
6133 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6134 # Adjust the below global symbol transforms to fixup imported variables.
6135 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6136 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6137 lt_c_name_lib_hook="\
6138 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6139 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6140else
6141 # Disable hooks by default.
6142 lt_cv_sys_global_symbol_to_import=
6143 lt_cdecl_hook=
6144 lt_c_name_hook=
6145 lt_c_name_lib_hook=
6146fi
6147
8d138742
CE
6148# Transform an extracted symbol line into a proper C declaration.
6149# Some systems (esp. on ia64) link data and code symbols differently,
6150# so use this general approach.
d50284c4
CE
6151lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6152$lt_cdecl_hook\
6153" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6154" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 6155
8d138742 6156# Transform an extracted symbol line into symbol name and symbol address
d50284c4
CE
6157lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6158$lt_c_name_hook\
6159" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6160" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6161
6162# Transform an extracted symbol line into symbol name with lib prefix and
6163# symbol address.
6164lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6165$lt_c_name_lib_hook\
6166" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6167" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6168" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8d138742
CE
6169
6170# Handle CRLF in mingw tool chain
6171opt_cr=
6172case $build_os in
6173mingw*)
6174 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6175 ;;
dd184caf 6176esac
8d138742
CE
6177
6178# Try without a prefix underscore, then with it.
6179for ac_symprfx in "" "_"; do
6180
6181 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6182 symxfrm="\\1 $ac_symprfx\\2 \\2"
6183
6184 # Write the raw and C identifiers.
6185 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
d50284c4
CE
6186 # Fake it for dumpbin and say T for any non-static function,
6187 # D for any global variable and I for any imported variable.
8d138742
CE
6188 # Also find C++ and __fastcall symbols from MSVC++,
6189 # which start with @ or ?.
6190 lt_cv_sys_global_symbol_pipe="$AWK '"\
6191" {last_section=section; section=\$ 3};"\
b0322a85 6192" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742 6193" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
d50284c4
CE
6194" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6195" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6196" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8d138742
CE
6197" \$ 0!~/External *\|/{next};"\
6198" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6199" {if(hide[section]) next};"\
d50284c4
CE
6200" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6201" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6202" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6203" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8d138742
CE
6204" ' prfx=^$ac_symprfx"
6205 else
6206 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6207 fi
b0322a85 6208 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8d138742
CE
6209
6210 # Check to see that the pipe works correctly.
6211 pipe_works=no
6212
6213 rm -f conftest*
6214 cat > conftest.$ac_ext <<_LT_EOF
6215#ifdef __cplusplus
6216extern "C" {
6217#endif
6218char nm_test_var;
6219void nm_test_func(void);
6220void nm_test_func(void){}
6221#ifdef __cplusplus
6222}
6223#endif
6224int main(){nm_test_var='a';nm_test_func();return(0);}
6225_LT_EOF
6226
b0322a85 6227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742 6228 (eval $ac_compile) 2>&5
d9898ee8 6229 ac_status=$?
b0322a85
CE
6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231 test $ac_status = 0; }; then
8d138742
CE
6232 # Now try to grab the symbols.
6233 nlist=conftest.nm
b0322a85
CE
6234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6235 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d9898ee8 6236 ac_status=$?
b0322a85
CE
6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238 test $ac_status = 0; } && test -s "$nlist"; then
8d138742
CE
6239 # Try sorting and uniquifying the output.
6240 if sort "$nlist" | uniq > "$nlist"T; then
6241 mv -f "$nlist"T "$nlist"
6242 else
6243 rm -f "$nlist"T
6244 fi
d9898ee8 6245
8d138742
CE
6246 # Make sure that we snagged all the symbols we need.
6247 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6248 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6249 cat <<_LT_EOF > conftest.$ac_ext
b0322a85 6250/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
d50284c4
CE
6251#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6252/* DATA imports from DLLs on WIN32 can't be const, because runtime
b0322a85
CE
6253 relocations are performed -- see ld's documentation on pseudo-relocs. */
6254# define LT_DLSYM_CONST
d50284c4 6255#elif defined __osf__
b0322a85
CE
6256/* This system does not cope well with relocations in const data. */
6257# define LT_DLSYM_CONST
6258#else
6259# define LT_DLSYM_CONST const
6260#endif
6261
8d138742
CE
6262#ifdef __cplusplus
6263extern "C" {
d9898ee8 6264#endif
6265
8d138742
CE
6266_LT_EOF
6267 # Now generate the symbol file.
6268 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 6269
8d138742 6270 cat <<_LT_EOF >> conftest.$ac_ext
dd184caf 6271
8d138742 6272/* The mapping between symbol names and symbols. */
b0322a85 6273LT_DLSYM_CONST struct {
8d138742
CE
6274 const char *name;
6275 void *address;
6276}
6277lt__PROGRAM__LTX_preloaded_symbols[] =
6278{
6279 { "@PROGRAM@", (void *) 0 },
6280_LT_EOF
d50284c4 6281 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8d138742
CE
6282 cat <<\_LT_EOF >> conftest.$ac_ext
6283 {0, (void *) 0}
6284};
d9898ee8 6285
8d138742
CE
6286/* This works around a problem in FreeBSD linker */
6287#ifdef FREEBSD_WORKAROUND
6288static const void *lt_preloaded_setup() {
6289 return lt__PROGRAM__LTX_preloaded_symbols;
6290}
6291#endif
d9898ee8 6292
8d138742
CE
6293#ifdef __cplusplus
6294}
6295#endif
6296_LT_EOF
6297 # Now try linking the two files.
6298 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
6299 lt_globsym_save_LIBS=$LIBS
6300 lt_globsym_save_CFLAGS=$CFLAGS
d50284c4 6301 LIBS=conftstm.$ac_objext
8d138742 6302 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742 6304 (eval $ac_link) 2>&5
d9898ee8 6305 ac_status=$?
b0322a85 6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 6307 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8d138742
CE
6308 pipe_works=yes
6309 fi
b0322a85
CE
6310 LIBS=$lt_globsym_save_LIBS
6311 CFLAGS=$lt_globsym_save_CFLAGS
8d138742
CE
6312 else
6313 echo "cannot find nm_test_func in $nlist" >&5
6314 fi
6315 else
6316 echo "cannot find nm_test_var in $nlist" >&5
6317 fi
6318 else
6319 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6320 fi
6321 else
6322 echo "$progname: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6324 fi
6325 rm -rf conftest* conftst*
d9898ee8 6326
8d138742 6327 # Do not use the global_symbol_pipe unless it works.
d50284c4 6328 if test yes = "$pipe_works"; then
8d138742
CE
6329 break
6330 else
6331 lt_cv_sys_global_symbol_pipe=
6332 fi
6333done
dd184caf 6334
8d138742 6335fi
d9898ee8 6336
8d138742
CE
6337if test -z "$lt_cv_sys_global_symbol_pipe"; then
6338 lt_cv_sys_global_symbol_to_cdecl=
d9898ee8 6339fi
8d138742 6340if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 6342$as_echo "failed" >&6; }
d9898ee8 6343else
b0322a85 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 6345$as_echo "ok" >&6; }
d9898ee8 6346fi
6347
b0322a85
CE
6348# Response file support.
6349if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6350 nm_file_list_spec='@'
6351elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6352 nm_file_list_spec='@'
6353fi
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
d9898ee8 6367
6368
6369
d50284c4
CE
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
d9898ee8 6380
d9898ee8 6381
d9898ee8 6382
d9898ee8 6383
d9898ee8 6384
d9898ee8 6385
d9898ee8 6386
d9898ee8 6387
d9898ee8 6388
d9898ee8 6389
d9898ee8 6390
b0322a85
CE
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6392$as_echo_n "checking for sysroot... " >&6; }
d9898ee8 6393
b0322a85
CE
6394# Check whether --with-sysroot was given.
6395if test "${with_sysroot+set}" = set; then :
6396 withval=$with_sysroot;
6397else
6398 with_sysroot=no
6399fi
d9898ee8 6400
6401
b0322a85 6402lt_sysroot=
d50284c4 6403case $with_sysroot in #(
b0322a85 6404 yes)
d50284c4 6405 if test yes = "$GCC"; then
b0322a85
CE
6406 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6407 fi
6408 ;; #(
6409 /*)
6410 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6411 ;; #(
6412 no|'')
6413 ;; #(
6414 *)
d50284c4
CE
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6416$as_echo "$with_sysroot" >&6; }
b0322a85
CE
6417 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6418 ;;
6419esac
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6422$as_echo "${lt_sysroot:-no}" >&6; }
ac40fd9e 6423
d9898ee8 6424
d9898ee8 6425
d9898ee8 6426
d9898ee8 6427
d50284c4
CE
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6429$as_echo_n "checking for a working dd... " >&6; }
6430if ${ac_cv_path_lt_DD+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432else
6433 printf 0123456789abcdef0123456789abcdef >conftest.i
6434cat conftest.i conftest.i >conftest2.i
6435: ${lt_DD:=$DD}
6436if test -z "$lt_DD"; then
6437 ac_path_lt_DD_found=false
6438 # Loop through the user's path and test for each of PROGNAME-LIST
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_prog in dd; do
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6447 as_fn_executable_p "$ac_path_lt_DD" || continue
6448if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6449 cmp -s conftest.i conftest.out \
6450 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6451fi
6452 $ac_path_lt_DD_found && break 3
6453 done
6454 done
6455 done
6456IFS=$as_save_IFS
6457 if test -z "$ac_cv_path_lt_DD"; then
6458 :
6459 fi
6460else
6461 ac_cv_path_lt_DD=$lt_DD
6462fi
6463
6464rm -f conftest.i conftest2.i conftest.out
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6467$as_echo "$ac_cv_path_lt_DD" >&6; }
6468
6469
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6471$as_echo_n "checking how to truncate binary pipes... " >&6; }
6472if ${lt_cv_truncate_bin+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474else
6475 printf 0123456789abcdef0123456789abcdef >conftest.i
6476cat conftest.i conftest.i >conftest2.i
6477lt_cv_truncate_bin=
6478if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6479 cmp -s conftest.i conftest.out \
6480 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6481fi
6482rm -f conftest.i conftest2.i conftest.out
6483test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6484fi
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6486$as_echo "$lt_cv_truncate_bin" >&6; }
6487
6488
6489
6490
6491
6492
6493
6494# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6495func_cc_basename ()
6496{
6497 for cc_temp in $*""; do
6498 case $cc_temp in
6499 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6500 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6501 \-*) ;;
6502 *) break;;
6503 esac
6504 done
6505 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6506}
6507
8d138742 6508# Check whether --enable-libtool-lock was given.
b0322a85 6509if test "${enable_libtool_lock+set}" = set; then :
8d138742
CE
6510 enableval=$enable_libtool_lock;
6511fi
d9898ee8 6512
d50284c4 6513test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d9898ee8 6514
8d138742
CE
6515# Some flags need to be propagated to the compiler or linker for good
6516# libtool support.
6517case $host in
6518ia64-*-hpux*)
d50284c4
CE
6519 # Find out what ABI is being produced by ac_compile, and set mode
6520 # options accordingly.
8d138742 6521 echo 'int i;' > conftest.$ac_ext
b0322a85 6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6523 (eval $ac_compile) 2>&5
6524 ac_status=$?
b0322a85
CE
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }; then
8d138742
CE
6527 case `/usr/bin/file conftest.$ac_objext` in
6528 *ELF-32*)
d50284c4 6529 HPUX_IA64_MODE=32
8d138742
CE
6530 ;;
6531 *ELF-64*)
d50284c4 6532 HPUX_IA64_MODE=64
8d138742
CE
6533 ;;
6534 esac
d9898ee8 6535 fi
8d138742 6536 rm -rf conftest*
d9898ee8 6537 ;;
8d138742 6538*-*-irix6*)
d50284c4
CE
6539 # Find out what ABI is being produced by ac_compile, and set linker
6540 # options accordingly.
b0322a85
CE
6541 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
b0322a85
CE
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
d50284c4 6547 if test yes = "$lt_cv_prog_gnu_ld"; then
8d138742
CE
6548 case `/usr/bin/file conftest.$ac_objext` in
6549 *32-bit*)
6550 LD="${LD-ld} -melf32bsmip"
6551 ;;
6552 *N32*)
6553 LD="${LD-ld} -melf32bmipn32"
6554 ;;
6555 *64-bit*)
6556 LD="${LD-ld} -melf64bmip"
6557 ;;
6558 esac
6559 else
6560 case `/usr/bin/file conftest.$ac_objext` in
6561 *32-bit*)
6562 LD="${LD-ld} -32"
6563 ;;
6564 *N32*)
6565 LD="${LD-ld} -n32"
6566 ;;
6567 *64-bit*)
6568 LD="${LD-ld} -64"
6569 ;;
6570 esac
6571 fi
d9898ee8 6572 fi
8d138742 6573 rm -rf conftest*
d9898ee8 6574 ;;
d9898ee8 6575
d50284c4
CE
6576mips64*-*linux*)
6577 # Find out what ABI is being produced by ac_compile, and set linker
6578 # options accordingly.
6579 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581 (eval $ac_compile) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; then
6585 emul=elf
6586 case `/usr/bin/file conftest.$ac_objext` in
6587 *32-bit*)
6588 emul="${emul}32"
6589 ;;
6590 *64-bit*)
6591 emul="${emul}64"
6592 ;;
6593 esac
6594 case `/usr/bin/file conftest.$ac_objext` in
6595 *MSB*)
6596 emul="${emul}btsmip"
6597 ;;
6598 *LSB*)
6599 emul="${emul}ltsmip"
6600 ;;
6601 esac
6602 case `/usr/bin/file conftest.$ac_objext` in
6603 *N32*)
6604 emul="${emul}n32"
6605 ;;
6606 esac
6607 LD="${LD-ld} -m $emul"
6608 fi
6609 rm -rf conftest*
6610 ;;
6611
6612x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8d138742 6613s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
d50284c4
CE
6614 # Find out what ABI is being produced by ac_compile, and set linker
6615 # options accordingly. Note that the listed cases only cover the
6616 # situations where additional linker options are needed (such as when
6617 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6618 # vice versa); the common cases where no linker options are needed do
6619 # not appear in the list.
8d138742 6620 echo 'int i;' > conftest.$ac_ext
b0322a85 6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6622 (eval $ac_compile) 2>&5
6623 ac_status=$?
b0322a85
CE
6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }; then
8d138742
CE
6626 case `/usr/bin/file conftest.o` in
6627 *32-bit*)
6628 case $host in
6629 x86_64-*kfreebsd*-gnu)
6630 LD="${LD-ld} -m elf_i386_fbsd"
6631 ;;
6632 x86_64-*linux*)
d50284c4
CE
6633 case `/usr/bin/file conftest.o` in
6634 *x86-64*)
6635 LD="${LD-ld} -m elf32_x86_64"
6636 ;;
6637 *)
6638 LD="${LD-ld} -m elf_i386"
6639 ;;
6640 esac
8d138742 6641 ;;
d50284c4
CE
6642 powerpc64le-*linux*)
6643 LD="${LD-ld} -m elf32lppclinux"
6644 ;;
6645 powerpc64-*linux*)
8d138742
CE
6646 LD="${LD-ld} -m elf32ppclinux"
6647 ;;
6648 s390x-*linux*)
6649 LD="${LD-ld} -m elf_s390"
6650 ;;
6651 sparc64-*linux*)
6652 LD="${LD-ld} -m elf32_sparc"
6653 ;;
6654 esac
6655 ;;
6656 *64-bit*)
6657 case $host in
6658 x86_64-*kfreebsd*-gnu)
6659 LD="${LD-ld} -m elf_x86_64_fbsd"
6660 ;;
6661 x86_64-*linux*)
6662 LD="${LD-ld} -m elf_x86_64"
6663 ;;
d50284c4
CE
6664 powerpcle-*linux*)
6665 LD="${LD-ld} -m elf64lppc"
6666 ;;
6667 powerpc-*linux*)
8d138742
CE
6668 LD="${LD-ld} -m elf64ppc"
6669 ;;
6670 s390*-*linux*|s390*-*tpf*)
6671 LD="${LD-ld} -m elf64_s390"
6672 ;;
6673 sparc*-*linux*)
6674 LD="${LD-ld} -m elf64_sparc"
6675 ;;
6676 esac
6677 ;;
6678 esac
6679 fi
6680 rm -rf conftest*
d9898ee8 6681 ;;
d9898ee8 6682
8d138742
CE
6683*-*-sco3.2v5*)
6684 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
d50284c4 6685 SAVE_CFLAGS=$CFLAGS
8d138742 6686 CFLAGS="$CFLAGS -belf"
b0322a85 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 6688$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 6689if ${lt_cv_cc_needs_belf+:} false; then :
8d138742
CE
6690 $as_echo_n "(cached) " >&6
6691else
6692 ac_ext=c
6693ac_cpp='$CPP $CPPFLAGS'
6694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6697
b0322a85 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 6699/* end confdefs.h. */
d9898ee8 6700
8d138742
CE
6701int
6702main ()
6703{
d9898ee8 6704
8d138742
CE
6705 ;
6706 return 0;
6707}
6708_ACEOF
b0322a85 6709if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
6710 lt_cv_cc_needs_belf=yes
6711else
b0322a85 6712 lt_cv_cc_needs_belf=no
8d138742 6713fi
b0322a85
CE
6714rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
6716 ac_ext=c
6717ac_cpp='$CPP $CPPFLAGS'
6718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6721
8d138742 6722fi
b0322a85 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742 6724$as_echo "$lt_cv_cc_needs_belf" >&6; }
d50284c4 6725 if test yes != "$lt_cv_cc_needs_belf"; then
8d138742 6726 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
d50284c4 6727 CFLAGS=$SAVE_CFLAGS
8d138742
CE
6728 fi
6729 ;;
b0322a85 6730*-*solaris*)
d50284c4
CE
6731 # Find out what ABI is being produced by ac_compile, and set linker
6732 # options accordingly.
8d138742 6733 echo 'int i;' > conftest.$ac_ext
b0322a85 6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 6735 (eval $ac_compile) 2>&5
6736 ac_status=$?
b0322a85
CE
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; }; then
8d138742
CE
6739 case `/usr/bin/file conftest.o` in
6740 *64-bit*)
6741 case $lt_cv_prog_gnu_ld in
b0322a85
CE
6742 yes*)
6743 case $host in
d50284c4 6744 i?86-*-solaris*|x86_64-*-solaris*)
b0322a85
CE
6745 LD="${LD-ld} -m elf_x86_64"
6746 ;;
6747 sparc*-*-solaris*)
6748 LD="${LD-ld} -m elf64_sparc"
6749 ;;
6750 esac
6751 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6752 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
d50284c4 6753 LD=${LD-ld}_sol2
b0322a85
CE
6754 fi
6755 ;;
8d138742
CE
6756 *)
6757 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6758 LD="${LD-ld} -64"
6759 fi
6760 ;;
6761 esac
6762 ;;
6763 esac
6764 fi
6765 rm -rf conftest*
6766 ;;
6767esac
d9898ee8 6768
d50284c4 6769need_locks=$enable_libtool_lock
b0322a85
CE
6770
6771if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6773set dummy ${ac_tool_prefix}mt; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
6776if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778else
6779 if test -n "$MANIFEST_TOOL"; then
6780 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6800if test -n "$MANIFEST_TOOL"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6802$as_echo "$MANIFEST_TOOL" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808
6809fi
6810if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6811 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6812 # Extract the first word of "mt", so it can be a program name with args.
6813set dummy mt; ac_word=$2
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815$as_echo_n "checking for $ac_word... " >&6; }
6816if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818else
6819 if test -n "$ac_ct_MANIFEST_TOOL"; then
6820 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834 done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6840if test -n "$ac_ct_MANIFEST_TOOL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6842$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6843else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847
6848 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6849 MANIFEST_TOOL=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852yes:)
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855ac_tool_warned=yes ;;
6856esac
6857 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6858 fi
6859else
6860 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6861fi
6862
6863test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6865$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6866if ${lt_cv_path_mainfest_tool+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868else
6869 lt_cv_path_mainfest_tool=no
6870 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6871 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6872 cat conftest.err >&5
6873 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6874 lt_cv_path_mainfest_tool=yes
6875 fi
6876 rm -f conftest*
6877fi
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6879$as_echo "$lt_cv_path_mainfest_tool" >&6; }
d50284c4 6880if test yes != "$lt_cv_path_mainfest_tool"; then
b0322a85
CE
6881 MANIFEST_TOOL=:
6882fi
6883
6884
6885
6886
d9898ee8 6887
d9898ee8 6888
8d138742
CE
6889 case $host_os in
6890 rhapsody* | darwin*)
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6893set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6895$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6896if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
6897 $as_echo_n "(cached) " >&6
6898else
6899 if test -n "$DSYMUTIL"; then
6900 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6901else
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
b0322a85
CE
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6909 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6911 break 2
6912 fi
6913done
b0322a85 6914 done
8d138742 6915IFS=$as_save_IFS
d9898ee8 6916
8d138742
CE
6917fi
6918fi
6919DSYMUTIL=$ac_cv_prog_DSYMUTIL
6920if test -n "$DSYMUTIL"; then
b0322a85 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742
CE
6922$as_echo "$DSYMUTIL" >&6; }
6923else
b0322a85 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6925$as_echo "no" >&6; }
6926fi
d9898ee8 6927
d9898ee8 6928
8d138742
CE
6929fi
6930if test -z "$ac_cv_prog_DSYMUTIL"; then
6931 ac_ct_DSYMUTIL=$DSYMUTIL
6932 # Extract the first word of "dsymutil", so it can be a program name with args.
6933set dummy dsymutil; ac_word=$2
b0322a85 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6935$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6936if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
6937 $as_echo_n "(cached) " >&6
6938else
6939 if test -n "$ac_ct_DSYMUTIL"; then
6940 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
b0322a85
CE
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6949 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6951 break 2
d9898ee8 6952 fi
6953done
b0322a85 6954 done
8d138742 6955IFS=$as_save_IFS
d9898ee8 6956
6957fi
d9898ee8 6958fi
8d138742
CE
6959ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6960if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742 6962$as_echo "$ac_ct_DSYMUTIL" >&6; }
d9898ee8 6963else
b0322a85 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6965$as_echo "no" >&6; }
d9898ee8 6966fi
6967
8d138742
CE
6968 if test "x$ac_ct_DSYMUTIL" = x; then
6969 DSYMUTIL=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972yes:)
b0322a85 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975ac_tool_warned=yes ;;
6976esac
6977 DSYMUTIL=$ac_ct_DSYMUTIL
6978 fi
d9898ee8 6979else
8d138742 6980 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6981fi
d9898ee8 6982
8d138742
CE
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6985set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6987$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6988if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742
CE
6989 $as_echo_n "(cached) " >&6
6990else
6991 if test -n "$NMEDIT"; then
6992 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
b0322a85
CE
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7001 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 7003 break 2
d9898ee8 7004 fi
8d138742 7005done
b0322a85 7006 done
8d138742 7007IFS=$as_save_IFS
d9898ee8 7008
8d138742
CE
7009fi
7010fi
7011NMEDIT=$ac_cv_prog_NMEDIT
7012if test -n "$NMEDIT"; then
b0322a85 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742
CE
7014$as_echo "$NMEDIT" >&6; }
7015else
b0322a85 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7017$as_echo "no" >&6; }
7018fi
d9898ee8 7019
d9898ee8 7020
8d138742
CE
7021fi
7022if test -z "$ac_cv_prog_NMEDIT"; then
7023 ac_ct_NMEDIT=$NMEDIT
7024 # Extract the first word of "nmedit", so it can be a program name with args.
7025set dummy nmedit; ac_word=$2
b0322a85 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7027$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7028if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742
CE
7029 $as_echo_n "(cached) " >&6
7030else
7031 if test -n "$ac_ct_NMEDIT"; then
7032 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
b0322a85
CE
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7041 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7043 break 2
7044 fi
7045done
b0322a85 7046 done
8d138742 7047IFS=$as_save_IFS
d9898ee8 7048
8d138742
CE
7049fi
7050fi
7051ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7052if test -n "$ac_ct_NMEDIT"; then
b0322a85 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742
CE
7054$as_echo "$ac_ct_NMEDIT" >&6; }
7055else
b0322a85 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7057$as_echo "no" >&6; }
7058fi
d9898ee8 7059
8d138742
CE
7060 if test "x$ac_ct_NMEDIT" = x; then
7061 NMEDIT=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064yes:)
b0322a85 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
7066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067ac_tool_warned=yes ;;
7068esac
7069 NMEDIT=$ac_ct_NMEDIT
7070 fi
7071else
7072 NMEDIT="$ac_cv_prog_NMEDIT"
7073fi
d9898ee8 7074
8d138742
CE
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7077set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7079$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7080if ${ac_cv_prog_LIPO+:} false; then :
8d138742 7081 $as_echo_n "(cached) " >&6
d9898ee8 7082else
8d138742
CE
7083 if test -n "$LIPO"; then
7084 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
b0322a85
CE
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7093 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7095 break 2
7096 fi
7097done
b0322a85 7098 done
dd184caf 7099IFS=$as_save_IFS
d9898ee8 7100
7101fi
7102fi
8d138742
CE
7103LIPO=$ac_cv_prog_LIPO
7104if test -n "$LIPO"; then
b0322a85 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742 7106$as_echo "$LIPO" >&6; }
d9898ee8 7107else
b0322a85 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7109$as_echo "no" >&6; }
d9898ee8 7110fi
7111
dd184caf 7112
d9898ee8 7113fi
8d138742
CE
7114if test -z "$ac_cv_prog_LIPO"; then
7115 ac_ct_LIPO=$LIPO
7116 # Extract the first word of "lipo", so it can be a program name with args.
7117set dummy lipo; ac_word=$2
b0322a85 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7119$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7120if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742 7121 $as_echo_n "(cached) " >&6
d9898ee8 7122else
8d138742
CE
7123 if test -n "$ac_ct_LIPO"; then
7124 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
b0322a85
CE
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7133 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7135 break 2
7136 fi
7137done
b0322a85 7138 done
dd184caf 7139IFS=$as_save_IFS
d9898ee8 7140
d9898ee8 7141fi
7142fi
8d138742
CE
7143ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7144if test -n "$ac_ct_LIPO"; then
b0322a85 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 7146$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 7147else
b0322a85 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7149$as_echo "no" >&6; }
d9898ee8 7150fi
7151
8d138742
CE
7152 if test "x$ac_ct_LIPO" = x; then
7153 LIPO=":"
dd184caf 7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156yes:)
b0322a85 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7159ac_tool_warned=yes ;;
7160esac
8d138742 7161 LIPO=$ac_ct_LIPO
dd184caf 7162 fi
d9898ee8 7163else
8d138742 7164 LIPO="$ac_cv_prog_LIPO"
d9898ee8 7165fi
7166
8d138742
CE
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7169set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7171$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7172if ${ac_cv_prog_OTOOL+:} false; then :
8d138742 7173 $as_echo_n "(cached) " >&6
d9898ee8 7174else
8d138742
CE
7175 if test -n "$OTOOL"; then
7176 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
d9898ee8 7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
b0322a85
CE
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7185 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7187 break 2
7188 fi
7189done
b0322a85 7190 done
dd184caf 7191IFS=$as_save_IFS
d9898ee8 7192
7193fi
7194fi
8d138742
CE
7195OTOOL=$ac_cv_prog_OTOOL
7196if test -n "$OTOOL"; then
b0322a85 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742 7198$as_echo "$OTOOL" >&6; }
d9898ee8 7199else
b0322a85 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7201$as_echo "no" >&6; }
d9898ee8 7202fi
7203
dd184caf 7204
d9898ee8 7205fi
8d138742
CE
7206if test -z "$ac_cv_prog_OTOOL"; then
7207 ac_ct_OTOOL=$OTOOL
7208 # Extract the first word of "otool", so it can be a program name with args.
7209set dummy otool; ac_word=$2
b0322a85 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7211$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7212if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742 7213 $as_echo_n "(cached) " >&6
d9898ee8 7214else
8d138742
CE
7215 if test -n "$ac_ct_OTOOL"; then
7216 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
d9898ee8 7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
b0322a85
CE
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7225 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7227 break 2
7228 fi
7229done
b0322a85 7230 done
dd184caf 7231IFS=$as_save_IFS
d9898ee8 7232
d9898ee8 7233fi
7234fi
8d138742
CE
7235ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7236if test -n "$ac_ct_OTOOL"; then
b0322a85 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742 7238$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 7239else
b0322a85 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7241$as_echo "no" >&6; }
d9898ee8 7242fi
7243
8d138742
CE
7244 if test "x$ac_ct_OTOOL" = x; then
7245 OTOOL=":"
dd184caf 7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248yes:)
b0322a85 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7251ac_tool_warned=yes ;;
7252esac
8d138742 7253 OTOOL=$ac_ct_OTOOL
dd184caf 7254 fi
d9898ee8 7255else
8d138742 7256 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 7257fi
7258
8d138742
CE
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7263$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7264if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742 7265 $as_echo_n "(cached) " >&6
d9898ee8 7266else
8d138742
CE
7267 if test -n "$OTOOL64"; then
7268 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
d9898ee8 7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
b0322a85
CE
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7277 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7279 break 2
7280 fi
7281done
b0322a85 7282 done
dd184caf 7283IFS=$as_save_IFS
d9898ee8 7284
7285fi
7286fi
8d138742
CE
7287OTOOL64=$ac_cv_prog_OTOOL64
7288if test -n "$OTOOL64"; then
b0322a85 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742 7290$as_echo "$OTOOL64" >&6; }
d9898ee8 7291else
b0322a85 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7293$as_echo "no" >&6; }
d9898ee8 7294fi
7295
dd184caf 7296
d9898ee8 7297fi
8d138742
CE
7298if test -z "$ac_cv_prog_OTOOL64"; then
7299 ac_ct_OTOOL64=$OTOOL64
7300 # Extract the first word of "otool64", so it can be a program name with args.
7301set dummy otool64; ac_word=$2
b0322a85 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7303$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7304if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742 7305 $as_echo_n "(cached) " >&6
d9898ee8 7306else
8d138742
CE
7307 if test -n "$ac_ct_OTOOL64"; then
7308 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
d9898ee8 7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
b0322a85
CE
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7317 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7319 break 2
7320 fi
7321done
b0322a85 7322 done
dd184caf 7323IFS=$as_save_IFS
d9898ee8 7324
d9898ee8 7325fi
7326fi
8d138742
CE
7327ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7328if test -n "$ac_ct_OTOOL64"; then
b0322a85 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742 7330$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 7331else
b0322a85 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7333$as_echo "no" >&6; }
d9898ee8 7334fi
7335
8d138742
CE
7336 if test "x$ac_ct_OTOOL64" = x; then
7337 OTOOL64=":"
dd184caf 7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340yes:)
b0322a85 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7343ac_tool_warned=yes ;;
7344esac
8d138742 7345 OTOOL64=$ac_ct_OTOOL64
dd184caf 7346 fi
d9898ee8 7347else
8d138742 7348 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 7349fi
7350
7351
d9898ee8 7352
d9898ee8 7353
d9898ee8 7354
d9898ee8 7355
d9898ee8 7356
7357
dd184caf 7358
d9898ee8 7359
7360
d9898ee8 7361
d9898ee8 7362
d9898ee8 7363
d9898ee8 7364
7365
d9898ee8 7366
d9898ee8 7367
d9898ee8 7368
7369
d9898ee8 7370
d9898ee8 7371
7372
7373
d9898ee8 7374
d9898ee8 7375
7376
b0322a85 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 7378$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 7379if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742 7380 $as_echo_n "(cached) " >&6
d9898ee8 7381else
8d138742 7382 lt_cv_apple_cc_single_mod=no
d50284c4 7383 if test -z "$LT_MULTI_MODULE"; then
8d138742
CE
7384 # By default we will add the -single_module flag. You can override
7385 # by either setting the environment variable LT_MULTI_MODULE
7386 # non-empty at configure time, or by adding -multi_module to the
7387 # link flags.
7388 rm -rf libconftest.dylib*
7389 echo "int foo(void){return 1;}" > conftest.c
7390 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7391-dynamiclib -Wl,-single_module conftest.c" >&5
7392 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7393 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7394 _lt_result=$?
b0322a85
CE
7395 # If there is a non-empty error log, and "single_module"
7396 # appears in it, assume the flag caused a linker warning
7397 if test -s conftest.err && $GREP single_module conftest.err; then
7398 cat conftest.err >&5
7399 # Otherwise, if the output was created with a 0 exit code from
7400 # the compiler, it worked.
d50284c4 7401 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8d138742
CE
7402 lt_cv_apple_cc_single_mod=yes
7403 else
7404 cat conftest.err >&5
7405 fi
7406 rm -rf libconftest.dylib*
7407 rm -f conftest.*
7408 fi
d9898ee8 7409fi
b0322a85 7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 7411$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 7414$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 7415if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
7416 $as_echo_n "(cached) " >&6
7417else
7418 lt_cv_ld_exported_symbols_list=no
7419 save_LDFLAGS=$LDFLAGS
7420 echo "_main" > conftest.sym
7421 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 7423/* end confdefs.h. */
d9898ee8 7424
8d138742
CE
7425int
7426main ()
7427{
7428
7429 ;
7430 return 0;
7431}
7432_ACEOF
b0322a85 7433if ac_fn_c_try_link "$LINENO"; then :
8d138742 7434 lt_cv_ld_exported_symbols_list=yes
d9898ee8 7435else
b0322a85 7436 lt_cv_ld_exported_symbols_list=no
d9898ee8 7437fi
b0322a85
CE
7438rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext conftest.$ac_ext
d50284c4 7440 LDFLAGS=$save_LDFLAGS
d9898ee8 7441
8d138742 7442fi
b0322a85 7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 7444$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
7445
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7447$as_echo_n "checking for -force_load linker flag... " >&6; }
7448if ${lt_cv_ld_force_load+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450else
7451 lt_cv_ld_force_load=no
7452 cat > conftest.c << _LT_EOF
7453int forced_loaded() { return 2;}
7454_LT_EOF
7455 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7456 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7457 echo "$AR cru libconftest.a conftest.o" >&5
7458 $AR cru libconftest.a conftest.o 2>&5
7459 echo "$RANLIB libconftest.a" >&5
7460 $RANLIB libconftest.a 2>&5
7461 cat > conftest.c << _LT_EOF
7462int main() { return 0;}
7463_LT_EOF
7464 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7465 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7466 _lt_result=$?
7467 if test -s conftest.err && $GREP force_load conftest.err; then
7468 cat conftest.err >&5
d50284c4 7469 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
b0322a85
CE
7470 lt_cv_ld_force_load=yes
7471 else
7472 cat conftest.err >&5
7473 fi
7474 rm -f conftest.err libconftest.a conftest conftest.c
7475 rm -rf conftest.dSYM
7476
7477fi
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7479$as_echo "$lt_cv_ld_force_load" >&6; }
d9898ee8 7480 case $host_os in
8d138742 7481 rhapsody* | darwin1.[012])
d50284c4 7482 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8d138742 7483 darwin1.*)
d50284c4 7484 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742
CE
7485 darwin*) # darwin 5.x on
7486 # if running on 10.5 or later, the deployment target defaults
7487 # to the OS version, if on x86, and 10.4, the deployment
7488 # target defaults to 10.4. Don't you love it?
7489 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7490 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
d50284c4
CE
7491 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7492 10.[012][,.]*)
7493 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742 7494 10.*)
d50284c4 7495 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8d138742
CE
7496 esac
7497 ;;
7498 esac
d50284c4 7499 if test yes = "$lt_cv_apple_cc_single_mod"; then
8d138742
CE
7500 _lt_dar_single_mod='$single_module'
7501 fi
d50284c4
CE
7502 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7503 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8d138742 7504 else
d50284c4 7505 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8d138742 7506 fi
d50284c4 7507 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8d138742
CE
7508 _lt_dsymutil='~$DSYMUTIL $lib || :'
7509 else
7510 _lt_dsymutil=
7511 fi
7512 ;;
7513 esac
d9898ee8 7514
d50284c4
CE
7515# func_munge_path_list VARIABLE PATH
7516# -----------------------------------
7517# VARIABLE is name of variable containing _space_ separated list of
7518# directories to be munged by the contents of PATH, which is string
7519# having a format:
7520# "DIR[:DIR]:"
7521# string "DIR[ DIR]" will be prepended to VARIABLE
7522# ":DIR[:DIR]"
7523# string "DIR[ DIR]" will be appended to VARIABLE
7524# "DIRP[:DIRP]::[DIRA:]DIRA"
7525# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7526# "DIRA[ DIRA]" will be appended to VARIABLE
7527# "DIR[:DIR]"
7528# VARIABLE will be replaced by "DIR[ DIR]"
7529func_munge_path_list ()
7530{
7531 case x$2 in
7532 x)
7533 ;;
7534 *:)
7535 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7536 ;;
7537 x:*)
7538 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7539 ;;
7540 *::*)
7541 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7542 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7543 ;;
7544 *)
7545 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7546 ;;
7547 esac
7548}
7549
8d138742
CE
7550ac_ext=c
7551ac_cpp='$CPP $CPPFLAGS'
7552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7554ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742
CE
7556$as_echo_n "checking how to run the C preprocessor... " >&6; }
7557# On Suns, sometimes $CPP names a directory.
7558if test -n "$CPP" && test -d "$CPP"; then
7559 CPP=
d9898ee8 7560fi
8d138742 7561if test -z "$CPP"; then
b0322a85 7562 if ${ac_cv_prog_CPP+:} false; then :
8d138742 7563 $as_echo_n "(cached) " >&6
d9898ee8 7564else
8d138742
CE
7565 # Double quotes because CPP needs to be expanded
7566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7567 do
7568 ac_preproc_ok=false
7569for ac_c_preproc_warn_flag in '' yes
7570do
7571 # Use a header file that comes with gcc, so configuring glibc
7572 # with a fresh cross-compiler works.
7573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7574 # <limits.h> exists even on freestanding compilers.
7575 # On the NeXT, cc -E runs the code through the compiler's parser,
7576 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7578/* end confdefs.h. */
7579#ifdef __STDC__
7580# include <limits.h>
7581#else
7582# include <assert.h>
7583#endif
7584 Syntax error
7585_ACEOF
b0322a85 7586if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7587
b0322a85 7588else
8d138742
CE
7589 # Broken: fails on valid input.
7590continue
7591fi
b0322a85 7592rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7593
8d138742
CE
7594 # OK, works on sane cases. Now check whether nonexistent headers
7595 # can be detected and how.
b0322a85 7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7597/* end confdefs.h. */
7598#include <ac_nonexistent.h>
7599_ACEOF
b0322a85 7600if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7601 # Broken: success on invalid input.
7602continue
7603else
8d138742
CE
7604 # Passes both tests.
7605ac_preproc_ok=:
7606break
7607fi
b0322a85 7608rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7609
8d138742
CE
7610done
7611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7612rm -f conftest.i conftest.err conftest.$ac_ext
7613if $ac_preproc_ok; then :
8d138742
CE
7614 break
7615fi
d9898ee8 7616
8d138742
CE
7617 done
7618 ac_cv_prog_CPP=$CPP
d9898ee8 7619
8d138742
CE
7620fi
7621 CPP=$ac_cv_prog_CPP
7622else
7623 ac_cv_prog_CPP=$CPP
7624fi
b0322a85 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742
CE
7626$as_echo "$CPP" >&6; }
7627ac_preproc_ok=false
7628for ac_c_preproc_warn_flag in '' yes
7629do
7630 # Use a header file that comes with gcc, so configuring glibc
7631 # with a fresh cross-compiler works.
7632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633 # <limits.h> exists even on freestanding compilers.
7634 # On the NeXT, cc -E runs the code through the compiler's parser,
7635 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7637/* end confdefs.h. */
7638#ifdef __STDC__
7639# include <limits.h>
7640#else
7641# include <assert.h>
7642#endif
7643 Syntax error
7644_ACEOF
b0322a85 7645if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7646
b0322a85 7647else
8d138742
CE
7648 # Broken: fails on valid input.
7649continue
7650fi
b0322a85 7651rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7652
8d138742
CE
7653 # OK, works on sane cases. Now check whether nonexistent headers
7654 # can be detected and how.
b0322a85 7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7656/* end confdefs.h. */
7657#include <ac_nonexistent.h>
7658_ACEOF
b0322a85 7659if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7660 # Broken: success on invalid input.
7661continue
7662else
8d138742
CE
7663 # Passes both tests.
7664ac_preproc_ok=:
7665break
7666fi
b0322a85 7667rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7668
8d138742
CE
7669done
7670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7671rm -f conftest.i conftest.err conftest.$ac_ext
7672if $ac_preproc_ok; then :
7673
8d138742 7674else
b0322a85 7675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 7676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
7677as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7678See \`config.log' for more details" "$LINENO" 5; }
8d138742 7679fi
d9898ee8 7680
8d138742
CE
7681ac_ext=c
7682ac_cpp='$CPP $CPPFLAGS'
7683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7686
d9898ee8 7687
b0322a85 7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 7689$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 7690if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
7691 $as_echo_n "(cached) " >&6
7692else
b0322a85 7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7694/* end confdefs.h. */
7695#include <stdlib.h>
7696#include <stdarg.h>
7697#include <string.h>
7698#include <float.h>
d9898ee8 7699
8d138742
CE
7700int
7701main ()
7702{
d9898ee8 7703
8d138742
CE
7704 ;
7705 return 0;
7706}
7707_ACEOF
b0322a85 7708if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
7709 ac_cv_header_stdc=yes
7710else
b0322a85 7711 ac_cv_header_stdc=no
8d138742 7712fi
8d138742 7713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7714
8d138742
CE
7715if test $ac_cv_header_stdc = yes; then
7716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7718/* end confdefs.h. */
7719#include <string.h>
d9898ee8 7720
8d138742
CE
7721_ACEOF
7722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7723 $EGREP "memchr" >/dev/null 2>&1; then :
7724
8d138742
CE
7725else
7726 ac_cv_header_stdc=no
7727fi
7728rm -f conftest*
d9898ee8 7729
8d138742 7730fi
d9898ee8 7731
8d138742
CE
7732if test $ac_cv_header_stdc = yes; then
7733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7735/* end confdefs.h. */
7736#include <stdlib.h>
d9898ee8 7737
8d138742
CE
7738_ACEOF
7739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7740 $EGREP "free" >/dev/null 2>&1; then :
7741
8d138742
CE
7742else
7743 ac_cv_header_stdc=no
7744fi
7745rm -f conftest*
d9898ee8 7746
8d138742 7747fi
d9898ee8 7748
8d138742
CE
7749if test $ac_cv_header_stdc = yes; then
7750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 7751 if test "$cross_compiling" = yes; then :
8d138742
CE
7752 :
7753else
b0322a85 7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7755/* end confdefs.h. */
7756#include <ctype.h>
7757#include <stdlib.h>
7758#if ((' ' & 0x0FF) == 0x020)
7759# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7760# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7761#else
7762# define ISLOWER(c) \
7763 (('a' <= (c) && (c) <= 'i') \
7764 || ('j' <= (c) && (c) <= 'r') \
7765 || ('s' <= (c) && (c) <= 'z'))
7766# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7767#endif
d9898ee8 7768
8d138742
CE
7769#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7770int
7771main ()
7772{
7773 int i;
7774 for (i = 0; i < 256; i++)
7775 if (XOR (islower (i), ISLOWER (i))
7776 || toupper (i) != TOUPPER (i))
7777 return 2;
7778 return 0;
7779}
7780_ACEOF
b0322a85 7781if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 7782
b0322a85
CE
7783else
7784 ac_cv_header_stdc=no
8d138742 7785fi
b0322a85
CE
7786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7787 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 7788fi
d9898ee8 7789
8d138742
CE
7790fi
7791fi
b0322a85 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742 7793$as_echo "$ac_cv_header_stdc" >&6; }
b0322a85 7794if test $ac_cv_header_stdc = yes; then
d9898ee8 7795
b0322a85 7796$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 7797
8d138742 7798fi
b0322a85
CE
7799
7800# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7801for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7802 inttypes.h stdint.h unistd.h
7803do :
7804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7805ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7806"
7807if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
7808 cat >>confdefs.h <<_ACEOF
7809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7810_ACEOF
d9898ee8 7811
8d138742 7812fi
d9898ee8 7813
8d138742 7814done
d9898ee8 7815
d9898ee8 7816
b0322a85
CE
7817for ac_header in dlfcn.h
7818do :
7819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7820"
7821if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7822 cat >>confdefs.h <<_ACEOF
7823#define HAVE_DLFCN_H 1
7824_ACEOF
7825
7826fi
7827
7828done
7829
7830
7831
7832
d9898ee8 7833
8d138742 7834# Set options
d9898ee8 7835
d9898ee8 7836
d9898ee8 7837
8d138742 7838 enable_dlopen=no
d9898ee8 7839
d9898ee8 7840
8d138742 7841 enable_win32_dll=no
d9898ee8 7842
d9898ee8 7843
8d138742 7844 # Check whether --enable-shared was given.
b0322a85 7845if test "${enable_shared+set}" = set; then :
8d138742
CE
7846 enableval=$enable_shared; p=${PACKAGE-default}
7847 case $enableval in
7848 yes) enable_shared=yes ;;
7849 no) enable_shared=no ;;
7850 *)
7851 enable_shared=no
7852 # Look at the argument we got. We use all the common list separators.
d50284c4 7853 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7854 for pkg in $enableval; do
d50284c4 7855 IFS=$lt_save_ifs
8d138742
CE
7856 if test "X$pkg" = "X$p"; then
7857 enable_shared=yes
7858 fi
7859 done
d50284c4 7860 IFS=$lt_save_ifs
8d138742
CE
7861 ;;
7862 esac
7863else
7864 enable_shared=yes
7865fi
d9898ee8 7866
d9898ee8 7867
d9898ee8 7868
d9898ee8 7869
d9898ee8 7870
d9898ee8 7871
d9898ee8 7872
d9898ee8 7873
7874
8d138742 7875 # Check whether --enable-static was given.
b0322a85 7876if test "${enable_static+set}" = set; then :
8d138742
CE
7877 enableval=$enable_static; p=${PACKAGE-default}
7878 case $enableval in
7879 yes) enable_static=yes ;;
7880 no) enable_static=no ;;
7881 *)
7882 enable_static=no
7883 # Look at the argument we got. We use all the common list separators.
d50284c4 7884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7885 for pkg in $enableval; do
d50284c4 7886 IFS=$lt_save_ifs
8d138742
CE
7887 if test "X$pkg" = "X$p"; then
7888 enable_static=yes
7889 fi
7890 done
d50284c4 7891 IFS=$lt_save_ifs
8d138742
CE
7892 ;;
7893 esac
d9898ee8 7894else
8d138742 7895 enable_static=yes
d9898ee8 7896fi
7897
7898
d9898ee8 7899
d9898ee8 7900
d9898ee8 7901
d9898ee8 7902
d9898ee8 7903
d9898ee8 7904
d9898ee8 7905
d9898ee8 7906
8d138742 7907# Check whether --with-pic was given.
b0322a85
CE
7908if test "${with_pic+set}" = set; then :
7909 withval=$with_pic; lt_p=${PACKAGE-default}
7910 case $withval in
7911 yes|no) pic_mode=$withval ;;
7912 *)
7913 pic_mode=default
7914 # Look at the argument we got. We use all the common list separators.
d50284c4 7915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
b0322a85 7916 for lt_pkg in $withval; do
d50284c4 7917 IFS=$lt_save_ifs
b0322a85
CE
7918 if test "X$lt_pkg" = "X$lt_p"; then
7919 pic_mode=yes
7920 fi
7921 done
d50284c4 7922 IFS=$lt_save_ifs
b0322a85
CE
7923 ;;
7924 esac
8d138742
CE
7925else
7926 pic_mode=default
7927fi
d9898ee8 7928
7929
d9898ee8 7930
7931
d9898ee8 7932
7933
d9898ee8 7934
d9898ee8 7935
8d138742 7936 # Check whether --enable-fast-install was given.
b0322a85 7937if test "${enable_fast_install+set}" = set; then :
8d138742
CE
7938 enableval=$enable_fast_install; p=${PACKAGE-default}
7939 case $enableval in
7940 yes) enable_fast_install=yes ;;
7941 no) enable_fast_install=no ;;
7942 *)
7943 enable_fast_install=no
7944 # Look at the argument we got. We use all the common list separators.
d50284c4 7945 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7946 for pkg in $enableval; do
d50284c4 7947 IFS=$lt_save_ifs
8d138742
CE
7948 if test "X$pkg" = "X$p"; then
7949 enable_fast_install=yes
7950 fi
7951 done
d50284c4 7952 IFS=$lt_save_ifs
8d138742
CE
7953 ;;
7954 esac
7955else
7956 enable_fast_install=yes
7957fi
d9898ee8 7958
d9898ee8 7959
d9898ee8 7960
d9898ee8 7961
d9898ee8 7962
d9898ee8 7963
d9898ee8 7964
d9898ee8 7965
d50284c4
CE
7966 shared_archive_member_spec=
7967case $host,$enable_shared in
7968power*-*-aix[5-9]*,yes)
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7970$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7971
7972# Check whether --with-aix-soname was given.
7973if test "${with_aix_soname+set}" = set; then :
7974 withval=$with_aix_soname; case $withval in
7975 aix|svr4|both)
7976 ;;
7977 *)
7978 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7979 ;;
7980 esac
7981 lt_cv_with_aix_soname=$with_aix_soname
7982else
7983 if ${lt_cv_with_aix_soname+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985else
7986 lt_cv_with_aix_soname=aix
7987fi
7988
7989 with_aix_soname=$lt_cv_with_aix_soname
7990fi
7991
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7993$as_echo "$with_aix_soname" >&6; }
7994 if test aix != "$with_aix_soname"; then
7995 # For the AIX way of multilib, we name the shared archive member
7996 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7997 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7998 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7999 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8000 if test 64 = "${OBJECT_MODE-32}"; then
8001 shared_archive_member_spec=shr_64
8002 else
8003 shared_archive_member_spec=shr
8004 fi
8005 fi
8006 ;;
8007*)
8008 with_aix_soname=aix
8009 ;;
8010esac
8011
8012
8013
8014
8015
8016
8017
d9898ee8 8018
d9898ee8 8019
d9898ee8 8020
8d138742 8021# This can be used to rebuild libtool when needed
d50284c4 8022LIBTOOL_DEPS=$ltmain
d9898ee8 8023
8d138742
CE
8024# Always use our own libtool.
8025LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 8026
d9898ee8 8027
d9898ee8 8028
d9898ee8 8029
d9898ee8 8030
d9898ee8 8031
d9898ee8 8032
d9898ee8 8033
d9898ee8 8034
d9898ee8 8035
ac40fd9e 8036
d9898ee8 8037
d9898ee8 8038
d9898ee8 8039
d9898ee8 8040
d9898ee8 8041
d9898ee8 8042
d9898ee8 8043
d9898ee8 8044
b0322a85
CE
8045
8046
8047
8048
8049
d9898ee8 8050
d9898ee8 8051
d9898ee8 8052
d9898ee8 8053
d9898ee8 8054
d9898ee8 8055
8d138742
CE
8056test -z "$LN_S" && LN_S="ln -s"
8057
d9898ee8 8058
d9898ee8 8059
d9898ee8 8060
8061
d9898ee8 8062
d9898ee8 8063
d9898ee8 8064
8065
8d138742
CE
8066
8067
8068
8069
8070
d50284c4 8071if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
8072 setopt NO_GLOB_SUBST
8073fi
8074
b0322a85 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 8076$as_echo_n "checking for objdir... " >&6; }
b0322a85 8077if ${lt_cv_objdir+:} false; then :
8d138742 8078 $as_echo_n "(cached) " >&6
d9898ee8 8079else
8d138742
CE
8080 rm -f .libs 2>/dev/null
8081mkdir .libs 2>/dev/null
8082if test -d .libs; then
8083 lt_cv_objdir=.libs
8084else
8085 # MS-DOS does not allow filenames that begin with a dot.
8086 lt_cv_objdir=_libs
d9898ee8 8087fi
8d138742
CE
8088rmdir .libs 2>/dev/null
8089fi
b0322a85 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
8091$as_echo "$lt_cv_objdir" >&6; }
8092objdir=$lt_cv_objdir
d9898ee8 8093
d9898ee8 8094
d9898ee8 8095
d9898ee8 8096
d9898ee8 8097
8d138742
CE
8098cat >>confdefs.h <<_ACEOF
8099#define LT_OBJDIR "$lt_cv_objdir/"
8100_ACEOF
d9898ee8 8101
d9898ee8 8102
d9898ee8 8103
d9898ee8 8104
8d138742
CE
8105case $host_os in
8106aix3*)
8107 # AIX sometimes has problems with the GCC collect2 program. For some
8108 # reason, if we set the COLLECT_NAMES environment variable, the problems
8109 # vanish in a puff of smoke.
d50284c4 8110 if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
8111 COLLECT_NAMES=
8112 export COLLECT_NAMES
8113 fi
8114 ;;
8115esac
d9898ee8 8116
8d138742
CE
8117# Global variables:
8118ofile=libtool
8119can_build_shared=yes
d9898ee8 8120
d50284c4 8121# All known linkers require a '.a' archive for static linking (except MSVC,
8d138742
CE
8122# which needs '.lib').
8123libext=a
d9898ee8 8124
d50284c4 8125with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 8126
d50284c4
CE
8127old_CC=$CC
8128old_CFLAGS=$CFLAGS
d9898ee8 8129
8d138742
CE
8130# Set sane defaults for various variables
8131test -z "$CC" && CC=cc
8132test -z "$LTCC" && LTCC=$CC
8133test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8134test -z "$LD" && LD=ld
8135test -z "$ac_objext" && ac_objext=o
d9898ee8 8136
d50284c4
CE
8137func_cc_basename $compiler
8138cc_basename=$func_cc_basename_result
8d138742
CE
8139
8140
8141# Only perform the check for file, if the check method requires it
8142test -z "$MAGIC_CMD" && MAGIC_CMD=file
8143case $deplibs_check_method in
8144file_magic*)
8145 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 8147$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 8148if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
8149 $as_echo_n "(cached) " >&6
8150else
8151 case $MAGIC_CMD in
8152[\\/*] | ?:[\\/]*)
d50284c4 8153 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
8154 ;;
8155*)
d50284c4
CE
8156 lt_save_MAGIC_CMD=$MAGIC_CMD
8157 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
8158 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8159 for ac_dir in $ac_dummy; do
d50284c4 8160 IFS=$lt_save_ifs
8d138742 8161 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
8162 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8163 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8d138742
CE
8164 if test -n "$file_magic_test_file"; then
8165 case $deplibs_check_method in
8166 "file_magic "*)
8167 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 8168 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
8169 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8170 $EGREP "$file_magic_regex" > /dev/null; then
8171 :
d9898ee8 8172 else
8d138742 8173 cat <<_LT_EOF 1>&2
d9898ee8 8174
8d138742
CE
8175*** Warning: the command libtool uses to detect shared libraries,
8176*** $file_magic_cmd, produces output that libtool cannot recognize.
8177*** The result is that libtool may fail to recognize shared libraries
8178*** as such. This will affect the creation of libtool libraries that
8179*** depend on shared libraries, but programs linked with such libtool
8180*** libraries will work regardless of this problem. Nevertheless, you
8181*** may want to report the problem to your system manager and/or to
8182*** bug-libtool@gnu.org
d9898ee8 8183
8d138742
CE
8184_LT_EOF
8185 fi ;;
8186 esac
8187 fi
8188 break
8189 fi
8190 done
d50284c4
CE
8191 IFS=$lt_save_ifs
8192 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742 8193 ;;
dd184caf 8194esac
ac40fd9e 8195fi
8d138742 8196
d50284c4 8197MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 8198if test -n "$MAGIC_CMD"; then
b0322a85 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 8200$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 8201else
b0322a85 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8203$as_echo "no" >&6; }
8204fi
d9898ee8 8205
dd184caf 8206
dd184caf 8207
d9898ee8 8208
d9898ee8 8209
8d138742
CE
8210if test -z "$lt_cv_path_MAGIC_CMD"; then
8211 if test -n "$ac_tool_prefix"; then
b0322a85 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 8213$as_echo_n "checking for file... " >&6; }
b0322a85 8214if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
8215 $as_echo_n "(cached) " >&6
8216else
8217 case $MAGIC_CMD in
8218[\\/*] | ?:[\\/]*)
d50284c4 8219 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
8220 ;;
8221*)
d50284c4
CE
8222 lt_save_MAGIC_CMD=$MAGIC_CMD
8223 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
8224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8225 for ac_dir in $ac_dummy; do
d50284c4 8226 IFS=$lt_save_ifs
8d138742 8227 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
8228 if test -f "$ac_dir/file"; then
8229 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8d138742
CE
8230 if test -n "$file_magic_test_file"; then
8231 case $deplibs_check_method in
8232 "file_magic "*)
8233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 8234 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
8235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8236 $EGREP "$file_magic_regex" > /dev/null; then
8237 :
8238 else
8239 cat <<_LT_EOF 1>&2
d9898ee8 8240
8d138742
CE
8241*** Warning: the command libtool uses to detect shared libraries,
8242*** $file_magic_cmd, produces output that libtool cannot recognize.
8243*** The result is that libtool may fail to recognize shared libraries
8244*** as such. This will affect the creation of libtool libraries that
8245*** depend on shared libraries, but programs linked with such libtool
8246*** libraries will work regardless of this problem. Nevertheless, you
8247*** may want to report the problem to your system manager and/or to
8248*** bug-libtool@gnu.org
8249
8250_LT_EOF
8251 fi ;;
8252 esac
8253 fi
8254 break
8255 fi
8256 done
d50284c4
CE
8257 IFS=$lt_save_ifs
8258 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742
CE
8259 ;;
8260esac
ac40fd9e 8261fi
8d138742 8262
d50284c4 8263MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 8264if test -n "$MAGIC_CMD"; then
b0322a85 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 8266$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 8267else
b0322a85 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8269$as_echo "no" >&6; }
8270fi
d9898ee8 8271
dd184caf 8272
8d138742
CE
8273 else
8274 MAGIC_CMD=:
8275 fi
d9898ee8 8276fi
dd184caf 8277
8d138742
CE
8278 fi
8279 ;;
8280esac
d9898ee8 8281
8d138742 8282# Use C for the default configuration in the libtool script
d9898ee8 8283
d50284c4 8284lt_save_CC=$CC
8d138742
CE
8285ac_ext=c
8286ac_cpp='$CPP $CPPFLAGS'
8287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 8290
d9898ee8 8291
8d138742
CE
8292# Source file extension for C test sources.
8293ac_ext=c
d9898ee8 8294
8d138742
CE
8295# Object file extension for compiled C test sources.
8296objext=o
8297objext=$objext
d9898ee8 8298
8d138742
CE
8299# Code to be used in simple compile tests
8300lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 8301
8d138742
CE
8302# Code to be used in simple link tests
8303lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 8304
d9898ee8 8305
d9898ee8 8306
d9898ee8 8307
d9898ee8 8308
d9898ee8 8309
d9898ee8 8310
8d138742
CE
8311# If no C compiler was specified, use CC.
8312LTCC=${LTCC-"$CC"}
d9898ee8 8313
8d138742
CE
8314# If no C compiler flags were specified, use CFLAGS.
8315LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 8316
8d138742
CE
8317# Allow CC to be a program name with arguments.
8318compiler=$CC
d9898ee8 8319
8d138742
CE
8320# Save the default compiler, since it gets overwritten when the other
8321# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8322compiler_DEFAULT=$CC
d9898ee8 8323
8d138742
CE
8324# save warnings/boilerplate of simple test code
8325ac_outfile=conftest.$ac_objext
8326echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8327eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8328_lt_compiler_boilerplate=`cat conftest.err`
8329$RM conftest*
d9898ee8 8330
8d138742
CE
8331ac_outfile=conftest.$ac_objext
8332echo "$lt_simple_link_test_code" >conftest.$ac_ext
8333eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8334_lt_linker_boilerplate=`cat conftest.err`
8335$RM -r conftest*
d9898ee8 8336
d9898ee8 8337
8d138742 8338if test -n "$compiler"; then
d9898ee8 8339
8d138742 8340lt_prog_compiler_no_builtin_flag=
d9898ee8 8341
d50284c4 8342if test yes = "$GCC"; then
b0322a85
CE
8343 case $cc_basename in
8344 nvcc*)
8345 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8346 *)
8347 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8348 esac
d9898ee8 8349
b0322a85 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 8351$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 8352if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
8353 $as_echo_n "(cached) " >&6
8354else
8355 lt_cv_prog_compiler_rtti_exceptions=no
8356 ac_outfile=conftest.$ac_objext
8357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 8358 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
8359 # Insert the option either (1) after the last *FLAGS variable, or
8360 # (2) before a word containing "conftest.", or (3) at the end.
8361 # Note that $ac_compile itself does not contain backslashes and begins
8362 # with a dollar sign (not a hyphen), so the echo should work correctly.
8363 # The option is referenced via a variable to avoid confusing sed.
8364 lt_compile=`echo "$ac_compile" | $SED \
8365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8367 -e 's:$: $lt_compiler_flag:'`
b0322a85 8368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8369 (eval "$lt_compile" 2>conftest.err)
8370 ac_status=$?
8371 cat conftest.err >&5
b0322a85 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8373 if (exit $ac_status) && test -s "$ac_outfile"; then
8374 # The compiler can only warn and ignore the option if not recognized
8375 # So say no if there are warnings other than the usual output.
b0322a85 8376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8379 lt_cv_prog_compiler_rtti_exceptions=yes
8380 fi
8381 fi
8382 $RM conftest*
d9898ee8 8383
8d138742 8384fi
b0322a85 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 8386$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 8387
d50284c4 8388if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8d138742
CE
8389 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8390else
8391 :
8392fi
d9898ee8 8393
8d138742 8394fi
d9898ee8 8395
d9898ee8 8396
d9898ee8 8397
d9898ee8 8398
d9898ee8 8399
d9898ee8 8400
8d138742
CE
8401 lt_prog_compiler_wl=
8402lt_prog_compiler_pic=
8403lt_prog_compiler_static=
8404
8d138742 8405
d50284c4 8406 if test yes = "$GCC"; then
8d138742
CE
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_static='-static'
d9898ee8 8409
8d138742
CE
8410 case $host_os in
8411 aix*)
8412 # All AIX code is PIC.
d50284c4 8413 if test ia64 = "$host_cpu"; then
8d138742
CE
8414 # AIX 5 now supports IA64 processor
8415 lt_prog_compiler_static='-Bstatic'
d9898ee8 8416 fi
d50284c4 8417 lt_prog_compiler_pic='-fPIC'
d9898ee8 8418 ;;
8419
8d138742
CE
8420 amigaos*)
8421 case $host_cpu in
8422 powerpc)
8423 # see comment about AmigaOS4 .so support
8424 lt_prog_compiler_pic='-fPIC'
8425 ;;
8426 m68k)
8427 # FIXME: we need at least 68020 code to build shared libraries, but
d50284c4
CE
8428 # adding the '-m68020' flag to GCC prevents building anything better,
8429 # like '-m68040'.
8d138742
CE
8430 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8431 ;;
8432 esac
d9898ee8 8433 ;;
8434
8d138742
CE
8435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8436 # PIC is the default for these OSes.
d9898ee8 8437 ;;
d9898ee8 8438
8d138742
CE
8439 mingw* | cygwin* | pw32* | os2* | cegcc*)
8440 # This hack is so that the source file can tell whether it is being
8441 # built for inclusion in a dll (and should export symbols for example).
8442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8443 # (--disable-auto-import) libraries
8444 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
8445 case $host_os in
8446 os2*)
8447 lt_prog_compiler_static='$wl-static'
8448 ;;
8449 esac
d9898ee8 8450 ;;
d9898ee8 8451
8d138742
CE
8452 darwin* | rhapsody*)
8453 # PIC is the default on this platform
8454 # Common symbols not allowed in MH_DYLIB files
8455 lt_prog_compiler_pic='-fno-common'
d9898ee8 8456 ;;
d9898ee8 8457
b0322a85
CE
8458 haiku*)
8459 # PIC is the default for Haiku.
8460 # The "-static" flag exists, but is broken.
8461 lt_prog_compiler_static=
8462 ;;
8463
8d138742
CE
8464 hpux*)
8465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8467 # sets the default TLS model and affects inlining.
8468 case $host_cpu in
8469 hppa*64*)
8470 # +Z the default
8471 ;;
8472 *)
8473 lt_prog_compiler_pic='-fPIC'
8474 ;;
8475 esac
8476 ;;
ac40fd9e 8477
8d138742
CE
8478 interix[3-9]*)
8479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8480 # Instead, we relocate shared libraries at runtime.
8481 ;;
d9898ee8 8482
8d138742
CE
8483 msdosdjgpp*)
8484 # Just because we use GCC doesn't mean we suddenly get shared libraries
8485 # on systems that don't support them.
8486 lt_prog_compiler_can_build_shared=no
8487 enable_shared=no
8488 ;;
d9898ee8 8489
8d138742
CE
8490 *nto* | *qnx*)
8491 # QNX uses GNU C++, but need to define -shared option too, otherwise
8492 # it will coredump.
8493 lt_prog_compiler_pic='-fPIC -shared'
8494 ;;
d9898ee8 8495
8d138742
CE
8496 sysv4*MP*)
8497 if test -d /usr/nec; then
8498 lt_prog_compiler_pic=-Kconform_pic
8499 fi
8500 ;;
d9898ee8 8501
8d138742
CE
8502 *)
8503 lt_prog_compiler_pic='-fPIC'
8504 ;;
8505 esac
b0322a85
CE
8506
8507 case $cc_basename in
8508 nvcc*) # Cuda Compiler Driver 2.2
8509 lt_prog_compiler_wl='-Xlinker '
8510 if test -n "$lt_prog_compiler_pic"; then
8511 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8512 fi
8513 ;;
8514 esac
d9898ee8 8515 else
8d138742 8516 # PORTME Check for flag to pass linker flags through the system compiler.
d9898ee8 8517 case $host_os in
8d138742
CE
8518 aix*)
8519 lt_prog_compiler_wl='-Wl,'
d50284c4 8520 if test ia64 = "$host_cpu"; then
8d138742
CE
8521 # AIX 5 now supports IA64 processor
8522 lt_prog_compiler_static='-Bstatic'
d9898ee8 8523 else
8d138742 8524 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d9898ee8 8525 fi
8526 ;;
d9898ee8 8527
d50284c4
CE
8528 darwin* | rhapsody*)
8529 # PIC is the default on this platform
8530 # Common symbols not allowed in MH_DYLIB files
8531 lt_prog_compiler_pic='-fno-common'
8532 case $cc_basename in
8533 nagfor*)
8534 # NAG Fortran compiler
8535 lt_prog_compiler_wl='-Wl,-Wl,,'
8536 lt_prog_compiler_pic='-PIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 ;;
8539 esac
8540 ;;
8541
8d138742
CE
8542 mingw* | cygwin* | pw32* | os2* | cegcc*)
8543 # This hack is so that the source file can tell whether it is being
8544 # built for inclusion in a dll (and should export symbols for example).
8545 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
8546 case $host_os in
8547 os2*)
8548 lt_prog_compiler_static='$wl-static'
8549 ;;
8550 esac
8d138742 8551 ;;
d9898ee8 8552
8d138742
CE
8553 hpux9* | hpux10* | hpux11*)
8554 lt_prog_compiler_wl='-Wl,'
8555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8556 # not for PA HP-UX.
8557 case $host_cpu in
8558 hppa*64*|ia64*)
8559 # +Z the default
8560 ;;
8561 *)
8562 lt_prog_compiler_pic='+Z'
8563 ;;
8564 esac
8565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
d50284c4 8566 lt_prog_compiler_static='$wl-a ${wl}archive'
8d138742 8567 ;;
d9898ee8 8568
8d138742
CE
8569 irix5* | irix6* | nonstopux*)
8570 lt_prog_compiler_wl='-Wl,'
8571 # PIC (with -KPIC) is the default.
8572 lt_prog_compiler_static='-non_shared'
8573 ;;
8574
d50284c4 8575 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742 8576 case $cc_basename in
d50284c4 8577 # old Intel for x86_64, which still supported -KPIC.
8d138742
CE
8578 ecc*)
8579 lt_prog_compiler_wl='-Wl,'
8580 lt_prog_compiler_pic='-KPIC'
8581 lt_prog_compiler_static='-static'
8582 ;;
8583 # icc used to be incompatible with GCC.
8584 # ICC 10 doesn't accept -KPIC any more.
8585 icc* | ifort*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-fPIC'
8588 lt_prog_compiler_static='-static'
8589 ;;
8590 # Lahey Fortran 8.1.
8591 lf95*)
8592 lt_prog_compiler_wl='-Wl,'
8593 lt_prog_compiler_pic='--shared'
8594 lt_prog_compiler_static='--static'
8595 ;;
b0322a85
CE
8596 nagfor*)
8597 # NAG Fortran compiler
8598 lt_prog_compiler_wl='-Wl,-Wl,,'
8599 lt_prog_compiler_pic='-PIC'
8600 lt_prog_compiler_static='-Bstatic'
8601 ;;
d50284c4
CE
8602 tcc*)
8603 # Fabrice Bellard et al's Tiny C Compiler
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-fPIC'
8606 lt_prog_compiler_static='-static'
8607 ;;
b0322a85 8608 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
8609 # Portland Group compilers (*not* the Pentium gcc compiler,
8610 # which looks to be a dead project)
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_pic='-fpic'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615 ccc*)
8616 lt_prog_compiler_wl='-Wl,'
8617 # All Alpha code is PIC.
8618 lt_prog_compiler_static='-non_shared'
8619 ;;
b0322a85
CE
8620 xl* | bgxl* | bgf* | mpixl*)
8621 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-qpic'
8624 lt_prog_compiler_static='-qstaticlink'
8625 ;;
8626 *)
8627 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
8628 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8629 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 lt_prog_compiler_wl=''
8633 ;;
8634 *Sun\ F* | *Sun*Fortran*)
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_wl='-Qoption ld '
8638 ;;
8d138742
CE
8639 *Sun\ C*)
8640 # Sun C 5.9
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 lt_prog_compiler_wl='-Wl,'
8644 ;;
b0322a85
CE
8645 *Intel*\ [CF]*Compiler*)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-fPIC'
8648 lt_prog_compiler_static='-static'
8649 ;;
8650 *Portland\ Group*)
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_pic='-fpic'
8d138742 8653 lt_prog_compiler_static='-Bstatic'
8d138742
CE
8654 ;;
8655 esac
8656 ;;
8657 esac
8658 ;;
d9898ee8 8659
8d138742
CE
8660 newsos6)
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8663 ;;
d9898ee8 8664
8d138742
CE
8665 *nto* | *qnx*)
8666 # QNX uses GNU C++, but need to define -shared option too, otherwise
8667 # it will coredump.
8668 lt_prog_compiler_pic='-fPIC -shared'
8669 ;;
d9898ee8 8670
8d138742
CE
8671 osf3* | osf4* | osf5*)
8672 lt_prog_compiler_wl='-Wl,'
8673 # All OSF/1 code is PIC.
8674 lt_prog_compiler_static='-non_shared'
d9898ee8 8675 ;;
8d138742
CE
8676
8677 rdos*)
8678 lt_prog_compiler_static='-non_shared'
d9898ee8 8679 ;;
8d138742
CE
8680
8681 solaris*)
8682 lt_prog_compiler_pic='-KPIC'
8683 lt_prog_compiler_static='-Bstatic'
8684 case $cc_basename in
b0322a85 8685 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
8686 lt_prog_compiler_wl='-Qoption ld ';;
8687 *)
8688 lt_prog_compiler_wl='-Wl,';;
8689 esac
d9898ee8 8690 ;;
d9898ee8 8691
8d138742
CE
8692 sunos4*)
8693 lt_prog_compiler_wl='-Qoption ld '
8694 lt_prog_compiler_pic='-PIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 ;;
d9898ee8 8697
8d138742
CE
8698 sysv4 | sysv4.2uw2* | sysv4.3*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8702 ;;
ac40fd9e 8703
8d138742 8704 sysv4*MP*)
d50284c4 8705 if test -d /usr/nec; then
8d138742
CE
8706 lt_prog_compiler_pic='-Kconform_pic'
8707 lt_prog_compiler_static='-Bstatic'
8708 fi
8709 ;;
d9898ee8 8710
8d138742
CE
8711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-KPIC'
8714 lt_prog_compiler_static='-Bstatic'
8715 ;;
d9898ee8 8716
8d138742
CE
8717 unicos*)
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_can_build_shared=no
8720 ;;
d9898ee8 8721
8d138742
CE
8722 uts4*)
8723 lt_prog_compiler_pic='-pic'
8724 lt_prog_compiler_static='-Bstatic'
d9898ee8 8725 ;;
8d138742
CE
8726
8727 *)
8728 lt_prog_compiler_can_build_shared=no
d9898ee8 8729 ;;
8d138742
CE
8730 esac
8731 fi
8732
8733case $host_os in
d50284c4 8734 # For platforms that do not support PIC, -DPIC is meaningless:
8d138742
CE
8735 *djgpp*)
8736 lt_prog_compiler_pic=
d9898ee8 8737 ;;
8d138742
CE
8738 *)
8739 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
d9898ee8 8740 ;;
8d138742 8741esac
d9898ee8 8742
b0322a85
CE
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8744$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8745if ${lt_cv_prog_compiler_pic+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747else
8748 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8749fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8751$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8752lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 8753
8d138742
CE
8754#
8755# Check to make sure the PIC flag actually works.
8756#
8757if test -n "$lt_prog_compiler_pic"; then
b0322a85 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 8759$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 8760if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742
CE
8761 $as_echo_n "(cached) " >&6
8762else
8763 lt_cv_prog_compiler_pic_works=no
8764 ac_outfile=conftest.$ac_objext
8765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 8766 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
8767 # Insert the option either (1) after the last *FLAGS variable, or
8768 # (2) before a word containing "conftest.", or (3) at the end.
8769 # Note that $ac_compile itself does not contain backslashes and begins
8770 # with a dollar sign (not a hyphen), so the echo should work correctly.
8771 # The option is referenced via a variable to avoid confusing sed.
8772 lt_compile=`echo "$ac_compile" | $SED \
8773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775 -e 's:$: $lt_compiler_flag:'`
b0322a85 8776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8777 (eval "$lt_compile" 2>conftest.err)
8778 ac_status=$?
8779 cat conftest.err >&5
b0322a85 8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8781 if (exit $ac_status) && test -s "$ac_outfile"; then
8782 # The compiler can only warn and ignore the option if not recognized
8783 # So say no if there are warnings other than the usual output.
b0322a85 8784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8787 lt_cv_prog_compiler_pic_works=yes
8788 fi
8789 fi
8790 $RM conftest*
d9898ee8 8791
8d138742 8792fi
b0322a85 8793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 8794$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8795
d50284c4 8796if test yes = "$lt_cv_prog_compiler_pic_works"; then
8d138742
CE
8797 case $lt_prog_compiler_pic in
8798 "" | " "*) ;;
8799 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8800 esac
8801else
8802 lt_prog_compiler_pic=
8803 lt_prog_compiler_can_build_shared=no
8804fi
d9898ee8 8805
8d138742 8806fi
d9898ee8 8807
d9898ee8 8808
d9898ee8 8809
d9898ee8 8810
d9898ee8 8811
d9898ee8 8812
b0322a85
CE
8813
8814
8815
8816
8817
8d138742
CE
8818#
8819# Check to make sure the static flag actually works.
8820#
8821wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 8823$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 8824if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742
CE
8825 $as_echo_n "(cached) " >&6
8826else
8827 lt_cv_prog_compiler_static_works=no
d50284c4 8828 save_LDFLAGS=$LDFLAGS
8d138742
CE
8829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8832 # The linker can only warn and ignore the option if not recognized
8833 # So say no if there are warnings
8834 if test -s conftest.err; then
8835 # Append any errors to the config.log.
8836 cat conftest.err 1>&5
b0322a85 8837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
8838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8839 if diff conftest.exp conftest.er2 >/dev/null; then
8840 lt_cv_prog_compiler_static_works=yes
8841 fi
8842 else
8843 lt_cv_prog_compiler_static_works=yes
8844 fi
8845 fi
8846 $RM -r conftest*
d50284c4 8847 LDFLAGS=$save_LDFLAGS
ac40fd9e 8848
8d138742 8849fi
b0322a85 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 8851$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 8852
d50284c4 8853if test yes = "$lt_cv_prog_compiler_static_works"; then
8d138742
CE
8854 :
8855else
8856 lt_prog_compiler_static=
8857fi
d9898ee8 8858
d9898ee8 8859
d9898ee8 8860
d9898ee8 8861
d9898ee8 8862
d9898ee8 8863
8d138742 8864
b0322a85 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8866$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8867if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8868 $as_echo_n "(cached) " >&6
8869else
8870 lt_cv_prog_compiler_c_o=no
8871 $RM -r conftest 2>/dev/null
8872 mkdir conftest
8873 cd conftest
8874 mkdir out
8875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8876
8877 lt_compiler_flag="-o out/conftest2.$ac_objext"
8878 # Insert the option either (1) after the last *FLAGS variable, or
8879 # (2) before a word containing "conftest.", or (3) at the end.
8880 # Note that $ac_compile itself does not contain backslashes and begins
8881 # with a dollar sign (not a hyphen), so the echo should work correctly.
8882 lt_compile=`echo "$ac_compile" | $SED \
8883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8885 -e 's:$: $lt_compiler_flag:'`
b0322a85 8886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8887 (eval "$lt_compile" 2>out/conftest.err)
8888 ac_status=$?
8889 cat out/conftest.err >&5
b0322a85 8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8892 then
8893 # The compiler can only warn and ignore the option if not recognized
8894 # So say no if there are warnings
b0322a85 8895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8898 lt_cv_prog_compiler_c_o=yes
8899 fi
8900 fi
8901 chmod u+w . 2>&5
8902 $RM conftest*
8903 # SGI C++ compiler will create directory out/ii_files/ for
8904 # template instantiation
8905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8906 $RM out/* && rmdir out
8907 cd ..
8908 $RM -r conftest
8909 $RM conftest*
8910
d9898ee8 8911fi
b0322a85 8912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8913$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8914
d9898ee8 8915
d9898ee8 8916
d9898ee8 8917
8918
d9898ee8 8919
b0322a85 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8921$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8922if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8923 $as_echo_n "(cached) " >&6
8924else
8925 lt_cv_prog_compiler_c_o=no
8926 $RM -r conftest 2>/dev/null
8927 mkdir conftest
8928 cd conftest
8929 mkdir out
8930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8931
8d138742
CE
8932 lt_compiler_flag="-o out/conftest2.$ac_objext"
8933 # Insert the option either (1) after the last *FLAGS variable, or
8934 # (2) before a word containing "conftest.", or (3) at the end.
8935 # Note that $ac_compile itself does not contain backslashes and begins
8936 # with a dollar sign (not a hyphen), so the echo should work correctly.
8937 lt_compile=`echo "$ac_compile" | $SED \
8938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940 -e 's:$: $lt_compiler_flag:'`
b0322a85 8941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8942 (eval "$lt_compile" 2>out/conftest.err)
8943 ac_status=$?
8944 cat out/conftest.err >&5
b0322a85 8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8947 then
8948 # The compiler can only warn and ignore the option if not recognized
8949 # So say no if there are warnings
b0322a85 8950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8953 lt_cv_prog_compiler_c_o=yes
8954 fi
8955 fi
8956 chmod u+w . 2>&5
8957 $RM conftest*
8958 # SGI C++ compiler will create directory out/ii_files/ for
8959 # template instantiation
8960 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8961 $RM out/* && rmdir out
8962 cd ..
8963 $RM -r conftest
8964 $RM conftest*
d9898ee8 8965
8d138742 8966fi
b0322a85 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8968$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8969
d9898ee8 8970
d9898ee8 8971
d9898ee8 8972
d50284c4
CE
8973hard_links=nottested
8974if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8d138742 8975 # do not overwrite the value of need_locks provided by the user
b0322a85 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
8977$as_echo_n "checking if we can lock with hard links... " >&6; }
8978 hard_links=yes
8979 $RM conftest*
8980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8981 touch conftest.a
8982 ln conftest.a conftest.b 2>&5 || hard_links=no
8983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742 8985$as_echo "$hard_links" >&6; }
d50284c4
CE
8986 if test no = "$hard_links"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8988$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8d138742
CE
8989 need_locks=warn
8990 fi
8991else
8992 need_locks=no
8993fi
d9898ee8 8994
d9898ee8 8995
d9898ee8 8996
d9898ee8 8997
d9898ee8 8998
d9898ee8 8999
b0322a85 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 9001$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 9002
8d138742
CE
9003 runpath_var=
9004 allow_undefined_flag=
9005 always_export_symbols=no
9006 archive_cmds=
9007 archive_expsym_cmds=
9008 compiler_needs_object=no
9009 enable_shared_with_static_runtimes=no
9010 export_dynamic_flag_spec=
9011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9012 hardcode_automatic=no
9013 hardcode_direct=no
9014 hardcode_direct_absolute=no
9015 hardcode_libdir_flag_spec=
8d138742
CE
9016 hardcode_libdir_separator=
9017 hardcode_minus_L=no
9018 hardcode_shlibpath_var=unsupported
9019 inherit_rpath=no
9020 link_all_deplibs=unknown
9021 module_cmds=
9022 module_expsym_cmds=
9023 old_archive_from_new_cmds=
9024 old_archive_from_expsyms_cmds=
9025 thread_safe_flag_spec=
9026 whole_archive_flag_spec=
9027 # include_expsyms should be a list of space-separated symbols to be *always*
9028 # included in the symbol list
9029 include_expsyms=
9030 # exclude_expsyms can be an extended regexp of symbols to exclude
d50284c4
CE
9031 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9032 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9033 # as well as any symbol that contains 'd'.
8d138742
CE
9034 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9036 # platforms (ab)use it in PIC code, but their linkers get confused if
9037 # the symbol is explicitly referenced. Since portable code cannot
9038 # rely on this symbol name, it's probably fine to never include it in
9039 # preloaded symbol tables.
9040 # Exclude shared library initialization/finalization symbols.
9041 extract_expsyms_cmds=
d9898ee8 9042
8d138742
CE
9043 case $host_os in
9044 cygwin* | mingw* | pw32* | cegcc*)
9045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9046 # When not using gcc, we currently assume that we are using
9047 # Microsoft Visual C++.
d50284c4 9048 if test yes != "$GCC"; then
8d138742
CE
9049 with_gnu_ld=no
9050 fi
9051 ;;
9052 interix*)
9053 # we just hope/assume this is gcc and not c89 (= MSVC++)
9054 with_gnu_ld=yes
9055 ;;
d50284c4 9056 openbsd* | bitrig*)
8d138742
CE
9057 with_gnu_ld=no
9058 ;;
9059 esac
d9898ee8 9060
8d138742 9061 ld_shlibs=yes
b0322a85
CE
9062
9063 # On some targets, GNU ld is compatible enough with the native linker
9064 # that we're better off using the native interface for both.
9065 lt_use_gnu_ld_interface=no
d50284c4 9066 if test yes = "$with_gnu_ld"; then
b0322a85
CE
9067 case $host_os in
9068 aix*)
9069 # The AIX port of GNU ld has always aspired to compatibility
9070 # with the native linker. However, as the warning in the GNU ld
9071 # block says, versions before 2.19.5* couldn't really create working
9072 # shared libraries, regardless of the interface used.
9073 case `$LD -v 2>&1` in
9074 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9075 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9076 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9077 *)
9078 lt_use_gnu_ld_interface=yes
9079 ;;
9080 esac
9081 ;;
9082 *)
9083 lt_use_gnu_ld_interface=yes
9084 ;;
9085 esac
9086 fi
9087
d50284c4 9088 if test yes = "$lt_use_gnu_ld_interface"; then
8d138742 9089 # If archive_cmds runs LD, not CC, wlarc should be empty
d50284c4 9090 wlarc='$wl'
8d138742
CE
9091
9092 # Set some defaults for GNU ld with shared library support. These
9093 # are reset later if shared libraries are not supported. Putting them
9094 # here allows them to be overridden if necessary.
9095 runpath_var=LD_RUN_PATH
d50284c4
CE
9096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9097 export_dynamic_flag_spec='$wl--export-dynamic'
8d138742
CE
9098 # ancient GNU ld didn't support --whole-archive et. al.
9099 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
d50284c4 9100 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8d138742
CE
9101 else
9102 whole_archive_flag_spec=
9103 fi
9104 supports_anon_versioning=no
d50284c4 9105 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
b0322a85 9106 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
9107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9110 *\ 2.11.*) ;; # other 2.11 versions
9111 *) supports_anon_versioning=yes ;;
9112 esac
d9898ee8 9113
8d138742
CE
9114 # See if GNU ld supports shared libraries.
9115 case $host_os in
9116 aix[3-9]*)
9117 # On AIX/PPC, the GNU linker is very broken
d50284c4 9118 if test ia64 != "$host_cpu"; then
8d138742
CE
9119 ld_shlibs=no
9120 cat <<_LT_EOF 1>&2
d9898ee8 9121
b0322a85 9122*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
9123*** to be unable to reliably create shared libraries on AIX.
9124*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
9125*** really care for shared libraries, you may want to install binutils
9126*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9127*** You will then need to restart the configuration process.
d9898ee8 9128
8d138742
CE
9129_LT_EOF
9130 fi
9131 ;;
d9898ee8 9132
8d138742
CE
9133 amigaos*)
9134 case $host_cpu in
9135 powerpc)
9136 # see comment about AmigaOS4 .so support
d50284c4 9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9138 archive_expsym_cmds=''
9139 ;;
9140 m68k)
9141 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)'
9142 hardcode_libdir_flag_spec='-L$libdir'
9143 hardcode_minus_L=yes
9144 ;;
9145 esac
9146 ;;
d9898ee8 9147
8d138742
CE
9148 beos*)
9149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9150 allow_undefined_flag=unsupported
9151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9152 # support --undefined. This deserves some investigation. FIXME
d50284c4 9153 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
d9898ee8 9158
8d138742
CE
9159 cygwin* | mingw* | pw32* | cegcc*)
9160 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9161 # as there is no search path for DLLs.
9162 hardcode_libdir_flag_spec='-L$libdir'
d50284c4 9163 export_dynamic_flag_spec='$wl--export-all-symbols'
8d138742
CE
9164 allow_undefined_flag=unsupported
9165 always_export_symbols=no
9166 enable_shared_with_static_runtimes=yes
b0322a85
CE
9167 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9168 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 9169
8d138742 9170 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
d50284c4
CE
9171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9172 # If the export-symbols file already is a .def file, use it as
9173 # is; otherwise, prepend EXPORTS...
9174 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9175 cp $export_symbols $output_objdir/$soname.def;
9176 else
9177 echo EXPORTS > $output_objdir/$soname.def;
9178 cat $export_symbols >> $output_objdir/$soname.def;
9179 fi~
9180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8d138742
CE
9181 else
9182 ld_shlibs=no
9183 fi
9184 ;;
d9898ee8 9185
b0322a85 9186 haiku*)
d50284c4 9187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
b0322a85
CE
9188 link_all_deplibs=yes
9189 ;;
9190
d50284c4
CE
9191 os2*)
9192 hardcode_libdir_flag_spec='-L$libdir'
9193 hardcode_minus_L=yes
9194 allow_undefined_flag=unsupported
9195 shrext_cmds=.dll
9196 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9197 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9198 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9199 $ECHO EXPORTS >> $output_objdir/$libname.def~
9200 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9201 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9202 emximp -o $lib $output_objdir/$libname.def'
9203 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9204 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9205 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9206 $ECHO EXPORTS >> $output_objdir/$libname.def~
9207 prefix_cmds="$SED"~
9208 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9209 prefix_cmds="$prefix_cmds -e 1d";
9210 fi~
9211 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9212 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9213 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9214 emximp -o $lib $output_objdir/$libname.def'
9215 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9216 enable_shared_with_static_runtimes=yes
9217 ;;
9218
8d138742
CE
9219 interix[3-9]*)
9220 hardcode_direct=no
9221 hardcode_shlibpath_var=no
d50284c4
CE
9222 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9223 export_dynamic_flag_spec='$wl-E'
8d138742
CE
9224 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9225 # Instead, shared libraries are loaded at an image base (0x10000000 by
9226 # default) and relocated if they conflict, which is a slow very memory
9227 # consuming and fragmenting process. To avoid this, we pick a random,
9228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9229 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
d50284c4
CE
9230 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9231 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'
8d138742 9232 ;;
d9898ee8 9233
b0322a85 9234 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742 9235 tmp_diet=no
d50284c4 9236 if test linux-dietlibc = "$host_os"; then
8d138742
CE
9237 case $cc_basename in
9238 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9239 esac
9240 fi
9241 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
d50284c4 9242 && test no = "$tmp_diet"
8d138742 9243 then
b0322a85 9244 tmp_addflag=' $pic_flag'
8d138742
CE
9245 tmp_sharedflag='-shared'
9246 case $cc_basename,$host_cpu in
9247 pgcc*) # Portland Group C compiler
d50284c4 9248 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'
8d138742
CE
9249 tmp_addflag=' $pic_flag'
9250 ;;
b0322a85
CE
9251 pgf77* | pgf90* | pgf95* | pgfortran*)
9252 # Portland Group f77 and f90 compilers
d50284c4 9253 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'
8d138742
CE
9254 tmp_addflag=' $pic_flag -Mnomain' ;;
9255 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9256 tmp_addflag=' -i_dynamic' ;;
9257 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9258 tmp_addflag=' -i_dynamic -nofor_main' ;;
9259 ifc* | ifort*) # Intel Fortran compiler
9260 tmp_addflag=' -nofor_main' ;;
9261 lf95*) # Lahey Fortran 8.1
9262 whole_archive_flag_spec=
9263 tmp_sharedflag='--shared' ;;
d50284c4
CE
9264 nagfor*) # NAGFOR 5.3
9265 tmp_sharedflag='-Wl,-shared' ;;
b0322a85 9266 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
9267 tmp_sharedflag='-qmkshrobj'
9268 tmp_addflag= ;;
b0322a85 9269 nvcc*) # Cuda Compiler Driver 2.2
d50284c4 9270 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'
b0322a85
CE
9271 compiler_needs_object=yes
9272 ;;
8d138742
CE
9273 esac
9274 case `$CC -V 2>&1 | sed 5q` in
9275 *Sun\ C*) # Sun C 5.9
d50284c4 9276 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'
8d138742
CE
9277 compiler_needs_object=yes
9278 tmp_sharedflag='-G' ;;
9279 *Sun\ F*) # Sun Fortran 8.3
9280 tmp_sharedflag='-G' ;;
9281 esac
d50284c4 9282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d9898ee8 9283
d50284c4 9284 if test yes = "$supports_anon_versioning"; then
8d138742 9285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
9286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9287 echo "local: *; };" >> $output_objdir/$libname.ver~
9288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8d138742 9289 fi
d9898ee8 9290
8d138742 9291 case $cc_basename in
d50284c4
CE
9292 tcc*)
9293 export_dynamic_flag_spec='-rdynamic'
9294 ;;
b0322a85 9295 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
9296 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9297 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
d50284c4 9298 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
b0322a85 9299 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
d50284c4 9300 if test yes = "$supports_anon_versioning"; then
8d138742 9301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
9302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9303 echo "local: *; };" >> $output_objdir/$libname.ver~
9304 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
9305 fi
9306 ;;
9307 esac
9308 else
9309 ld_shlibs=no
9310 fi
9311 ;;
d9898ee8 9312
8d138742
CE
9313 netbsd*)
9314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9315 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9316 wlarc=
9317 else
d50284c4
CE
9318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
9320 fi
9321 ;;
d9898ee8 9322
8d138742
CE
9323 solaris*)
9324 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9325 ld_shlibs=no
9326 cat <<_LT_EOF 1>&2
d9898ee8 9327
8d138742
CE
9328*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9329*** create shared libraries on Solaris systems. Therefore, libtool
9330*** is disabling shared libraries support. We urge you to upgrade GNU
9331*** binutils to release 2.9.1 or newer. Another option is to modify
9332*** your PATH or compiler configuration so that the native linker is
9333*** used, and then restart.
d9898ee8 9334
8d138742
CE
9335_LT_EOF
9336 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9338 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
9339 else
9340 ld_shlibs=no
9341 fi
9342 ;;
d9898ee8 9343
8d138742
CE
9344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9345 case `$LD -v 2>&1` in
9346 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9347 ld_shlibs=no
9348 cat <<_LT_EOF 1>&2
d9898ee8 9349
d50284c4 9350*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8d138742
CE
9351*** reliably create shared libraries on SCO systems. Therefore, libtool
9352*** is disabling shared libraries support. We urge you to upgrade GNU
9353*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9354*** your PATH or compiler configuration so that the native linker is
9355*** used, and then restart.
d9898ee8 9356
8d138742
CE
9357_LT_EOF
9358 ;;
9359 *)
9360 # For security reasons, it is highly recommended that you always
9361 # use absolute paths for naming shared libraries, and exclude the
9362 # DT_RUNPATH tag from executables and libraries. But doing so
9363 # requires that you compile everything twice, which is a pain.
9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
9368 else
9369 ld_shlibs=no
9370 fi
9371 ;;
9372 esac
9373 ;;
d9898ee8 9374
8d138742
CE
9375 sunos4*)
9376 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9377 wlarc=
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9380 ;;
d9898ee8 9381
8d138742
CE
9382 *)
9383 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
9386 else
9387 ld_shlibs=no
9388 fi
9389 ;;
9390 esac
d9898ee8 9391
d50284c4 9392 if test no = "$ld_shlibs"; then
8d138742
CE
9393 runpath_var=
9394 hardcode_libdir_flag_spec=
9395 export_dynamic_flag_spec=
9396 whole_archive_flag_spec=
9397 fi
9398 else
9399 # PORTME fill in a description of your system's linker (not GNU ld)
9400 case $host_os in
9401 aix3*)
9402 allow_undefined_flag=unsupported
9403 always_export_symbols=yes
9404 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'
9405 # Note: this linker hardcodes the directories in LIBPATH if there
9406 # are no directories specified by -L.
9407 hardcode_minus_L=yes
d50284c4 9408 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8d138742
CE
9409 # Neither direct hardcoding nor static linking is supported with a
9410 # broken collect2.
9411 hardcode_direct=unsupported
9412 fi
9413 ;;
d9898ee8 9414
8d138742 9415 aix[4-9]*)
d50284c4 9416 if test ia64 = "$host_cpu"; then
8d138742
CE
9417 # On IA64, the linker does run time linking by default, so we don't
9418 # have to do anything special.
9419 aix_use_runtimelinking=no
9420 exp_sym_flag='-Bexport'
d50284c4 9421 no_entry_flag=
8d138742
CE
9422 else
9423 # If we're using GNU nm, then we don't want the "-C" option.
d50284c4
CE
9424 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9425 # Without the "-l" option, or with the "-B" option, AIX nm treats
9426 # weak defined symbols like other global defined symbols, whereas
9427 # GNU nm marks them as "W".
9428 # While the 'weak' keyword is ignored in the Export File, we need
9429 # it in the Import File for the 'aix-soname' feature, so we have
9430 # to replace the "-B" option with "-P" for AIX nm.
8d138742 9431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
d50284c4 9432 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8d138742 9433 else
d50284c4 9434 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8d138742
CE
9435 fi
9436 aix_use_runtimelinking=no
d9898ee8 9437
8d138742
CE
9438 # Test if we are trying to use run time linking or normal
9439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
d50284c4
CE
9440 # have runtime linking enabled, and use it for executables.
9441 # For shared libraries, we enable/disable runtime linking
9442 # depending on the kind of the shared library created -
9443 # when "with_aix_soname,aix_use_runtimelinking" is:
9444 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9445 # "aix,yes" lib.so shared, rtl:yes, for executables
9446 # lib.a static archive
9447 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9448 # lib.a(lib.so.V) shared, rtl:no, for executables
9449 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9450 # lib.a(lib.so.V) shared, rtl:no
9451 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9452 # lib.a static archive
8d138742
CE
9453 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9454 for ld_flag in $LDFLAGS; do
d50284c4 9455 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8d138742
CE
9456 aix_use_runtimelinking=yes
9457 break
9458 fi
9459 done
d50284c4
CE
9460 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9461 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9462 # so we don't have lib.a shared libs to link our executables.
9463 # We have to force runtime linking in this case.
9464 aix_use_runtimelinking=yes
9465 LDFLAGS="$LDFLAGS -Wl,-brtl"
9466 fi
8d138742
CE
9467 ;;
9468 esac
d9898ee8 9469
8d138742
CE
9470 exp_sym_flag='-bexport'
9471 no_entry_flag='-bnoentry'
9472 fi
d9898ee8 9473
8d138742
CE
9474 # When large executables or shared objects are built, AIX ld can
9475 # have problems creating the table of contents. If linking a library
9476 # or program results in "error TOC overflow" add -mminimal-toc to
9477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 9479
8d138742
CE
9480 archive_cmds=''
9481 hardcode_direct=yes
9482 hardcode_direct_absolute=yes
9483 hardcode_libdir_separator=':'
9484 link_all_deplibs=yes
d50284c4
CE
9485 file_list_spec='$wl-f,'
9486 case $with_aix_soname,$aix_use_runtimelinking in
9487 aix,*) ;; # traditional, no import file
9488 svr4,* | *,yes) # use import file
9489 # The Import File defines what to hardcode.
9490 hardcode_direct=no
9491 hardcode_direct_absolute=no
9492 ;;
9493 esac
d9898ee8 9494
d50284c4 9495 if test yes = "$GCC"; then
8d138742
CE
9496 case $host_os in aix4.[012]|aix4.[012].*)
9497 # We only want to do this on AIX 4.2 and lower, the check
9498 # below for broken collect2 doesn't work under 4.3+
d50284c4 9499 collect2name=`$CC -print-prog-name=collect2`
8d138742
CE
9500 if test -f "$collect2name" &&
9501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502 then
9503 # We have reworked collect2
9504 :
9505 else
9506 # We have old collect2
9507 hardcode_direct=unsupported
9508 # It fails to find uninstalled libraries when the uninstalled
9509 # path is not listed in the libpath. Setting hardcode_minus_L
9510 # to unsupported forces relinking
9511 hardcode_minus_L=yes
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_libdir_separator=
9514 fi
9515 ;;
9516 esac
9517 shared_flag='-shared'
d50284c4
CE
9518 if test yes = "$aix_use_runtimelinking"; then
9519 shared_flag="$shared_flag "'$wl-G'
8d138742 9520 fi
d50284c4
CE
9521 # Need to ensure runtime linking is disabled for the traditional
9522 # shared library, or the linker may eventually find shared libraries
9523 # /with/ Import File - we do not want to mix them.
9524 shared_flag_aix='-shared'
9525 shared_flag_svr4='-shared $wl-G'
8d138742
CE
9526 else
9527 # not using gcc
d50284c4 9528 if test ia64 = "$host_cpu"; then
8d138742
CE
9529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9530 # chokes on -Wl,-G. The following line is correct:
9531 shared_flag='-G'
9532 else
d50284c4
CE
9533 if test yes = "$aix_use_runtimelinking"; then
9534 shared_flag='$wl-G'
8d138742 9535 else
d50284c4 9536 shared_flag='$wl-bM:SRE'
8d138742 9537 fi
d50284c4
CE
9538 shared_flag_aix='$wl-bM:SRE'
9539 shared_flag_svr4='$wl-G'
8d138742
CE
9540 fi
9541 fi
d9898ee8 9542
d50284c4 9543 export_dynamic_flag_spec='$wl-bexpall'
8d138742
CE
9544 # It seems that -bexpall does not export symbols beginning with
9545 # underscore (_), so it is better to generate a list of symbols to export.
9546 always_export_symbols=yes
d50284c4 9547 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8d138742
CE
9548 # Warning - without using the other runtime loading flags (-brtl),
9549 # -berok will link without error, but may produce a broken library.
9550 allow_undefined_flag='-berok'
9551 # Determine the default libpath from the value encoded in an
9552 # empty executable.
d50284c4 9553 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
9554 aix_libpath=$lt_cv_aix_libpath
9555else
9556 if ${lt_cv_aix_libpath_+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9560/* end confdefs.h. */
d9898ee8 9561
8d138742
CE
9562int
9563main ()
9564{
d9898ee8 9565
8d138742
CE
9566 ;
9567 return 0;
9568}
9569_ACEOF
b0322a85 9570if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9571
b0322a85
CE
9572 lt_aix_libpath_sed='
9573 /Import File Strings/,/^$/ {
9574 /^0/ {
9575 s/^0 *\([^ ]*\) *$/\1/
9576 p
9577 }
9578 }'
9579 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580 # Check for a 64-bit object if we didn't find anything.
9581 if test -z "$lt_cv_aix_libpath_"; then
9582 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583 fi
9584fi
9585rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 9588 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 9589 fi
d9898ee8 9590
8d138742 9591fi
d9898ee8 9592
b0322a85
CE
9593 aix_libpath=$lt_cv_aix_libpath_
9594fi
d9898ee8 9595
d50284c4
CE
9596 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9597 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8d138742 9598 else
d50284c4
CE
9599 if test ia64 = "$host_cpu"; then
9600 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8d138742 9601 allow_undefined_flag="-z nodefs"
d50284c4 9602 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"
8d138742
CE
9603 else
9604 # Determine the default libpath from the value encoded in an
9605 # empty executable.
d50284c4 9606 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
9607 aix_libpath=$lt_cv_aix_libpath
9608else
9609 if ${lt_cv_aix_libpath_+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611else
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9613/* end confdefs.h. */
d9898ee8 9614
8d138742
CE
9615int
9616main ()
9617{
d9898ee8 9618
8d138742
CE
9619 ;
9620 return 0;
9621}
9622_ACEOF
b0322a85 9623if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9624
b0322a85
CE
9625 lt_aix_libpath_sed='
9626 /Import File Strings/,/^$/ {
9627 /^0/ {
9628 s/^0 *\([^ ]*\) *$/\1/
9629 p
9630 }
9631 }'
9632 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$lt_cv_aix_libpath_"; then
9635 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636 fi
9637fi
9638rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 9641 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 9642 fi
d9898ee8 9643
8d138742 9644fi
d9898ee8 9645
b0322a85
CE
9646 aix_libpath=$lt_cv_aix_libpath_
9647fi
d9898ee8 9648
d50284c4 9649 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8d138742
CE
9650 # Warning - without using the other run time loading flags,
9651 # -berok will link without error, but may produce a broken library.
d50284c4
CE
9652 no_undefined_flag=' $wl-bernotok'
9653 allow_undefined_flag=' $wl-berok'
9654 if test yes = "$with_gnu_ld"; then
b0322a85 9655 # We only use this code for GNU lds that support --whole-archive.
d50284c4 9656 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
b0322a85
CE
9657 else
9658 # Exported symbols can be pulled into shared objects from archives
9659 whole_archive_flag_spec='$convenience'
9660 fi
8d138742 9661 archive_cmds_need_lc=yes
d50284c4
CE
9662 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9663 # -brtl affects multiple linker settings, -berok does not and is overridden later
9664 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9665 if test svr4 != "$with_aix_soname"; then
9666 # This is similar to how AIX traditionally builds its shared libraries.
9667 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9668 fi
9669 if test aix != "$with_aix_soname"; then
9670 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9671 else
9672 # used by -dlpreopen to get the symbols
9673 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9674 fi
9675 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8d138742
CE
9676 fi
9677 fi
9678 ;;
d9898ee8 9679
8d138742
CE
9680 amigaos*)
9681 case $host_cpu in
9682 powerpc)
9683 # see comment about AmigaOS4 .so support
d50284c4 9684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9685 archive_expsym_cmds=''
9686 ;;
9687 m68k)
9688 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)'
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_minus_L=yes
9691 ;;
9692 esac
9693 ;;
d9898ee8 9694
8d138742
CE
9695 bsdi[45]*)
9696 export_dynamic_flag_spec=-rdynamic
9697 ;;
d9898ee8 9698
8d138742
CE
9699 cygwin* | mingw* | pw32* | cegcc*)
9700 # When not using gcc, we currently assume that we are using
9701 # Microsoft Visual C++.
9702 # hardcode_libdir_flag_spec is actually meaningless, as there is
9703 # no search path for DLLs.
b0322a85
CE
9704 case $cc_basename in
9705 cl*)
9706 # Native MSVC
9707 hardcode_libdir_flag_spec=' '
9708 allow_undefined_flag=unsupported
9709 always_export_symbols=yes
9710 file_list_spec='@'
9711 # Tell ltmain to make .lib files, not .a files.
9712 libext=lib
9713 # Tell ltmain to make .dll files, not .so files.
d50284c4 9714 shrext_cmds=.dll
b0322a85 9715 # FIXME: Setting linknames here is a bad hack.
d50284c4
CE
9716 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9717 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9718 cp "$export_symbols" "$output_objdir/$soname.def";
9719 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9720 else
9721 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9722 fi~
9723 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9724 linknames='
b0322a85
CE
9725 # The linker will not automatically build a static lib if we build a DLL.
9726 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9727 enable_shared_with_static_runtimes=yes
9728 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9730 # Don't use ranlib
9731 old_postinstall_cmds='chmod 644 $oldlib'
9732 postlink_cmds='lt_outputfile="@OUTPUT@"~
d50284c4
CE
9733 lt_tool_outputfile="@TOOL_OUTPUT@"~
9734 case $lt_outputfile in
9735 *.exe|*.EXE) ;;
9736 *)
9737 lt_outputfile=$lt_outputfile.exe
9738 lt_tool_outputfile=$lt_tool_outputfile.exe
9739 ;;
9740 esac~
9741 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9742 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9743 $RM "$lt_outputfile.manifest";
9744 fi'
b0322a85
CE
9745 ;;
9746 *)
9747 # Assume MSVC wrapper
9748 hardcode_libdir_flag_spec=' '
9749 allow_undefined_flag=unsupported
9750 # Tell ltmain to make .lib files, not .a files.
9751 libext=lib
9752 # Tell ltmain to make .dll files, not .so files.
d50284c4 9753 shrext_cmds=.dll
b0322a85
CE
9754 # FIXME: Setting linknames here is a bad hack.
9755 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9756 # The linker will automatically build a .lib file if we build a DLL.
9757 old_archive_from_new_cmds='true'
9758 # FIXME: Should let the user specify the lib program.
9759 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9760 enable_shared_with_static_runtimes=yes
9761 ;;
9762 esac
8d138742 9763 ;;
d9898ee8 9764
8d138742 9765 darwin* | rhapsody*)
d9898ee8 9766
d9898ee8 9767
8d138742
CE
9768 archive_cmds_need_lc=no
9769 hardcode_direct=no
9770 hardcode_automatic=yes
9771 hardcode_shlibpath_var=unsupported
d50284c4
CE
9772 if test yes = "$lt_cv_ld_force_load"; then
9773 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\"`'
b0322a85
CE
9774
9775 else
9776 whole_archive_flag_spec=''
9777 fi
8d138742 9778 link_all_deplibs=yes
d50284c4 9779 allow_undefined_flag=$_lt_dar_allow_undefined
8d138742 9780 case $cc_basename in
d50284c4 9781 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8d138742
CE
9782 *) _lt_dar_can_shared=$GCC ;;
9783 esac
d50284c4 9784 if test yes = "$_lt_dar_can_shared"; then
b0322a85 9785 output_verbose_link_cmd=func_echo_all
d50284c4
CE
9786 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9787 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9788 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"
9789 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"
d9898ee8 9790
8d138742
CE
9791 else
9792 ld_shlibs=no
9793 fi
d9898ee8 9794
8d138742 9795 ;;
d9898ee8 9796
8d138742
CE
9797 dgux*)
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_shlibpath_var=no
9801 ;;
d9898ee8 9802
8d138742
CE
9803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9804 # support. Future versions do this automatically, but an explicit c++rt0.o
9805 # does not break anything, and helps significantly (at the cost of a little
9806 # extra space).
9807 freebsd2.2*)
9808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9809 hardcode_libdir_flag_spec='-R$libdir'
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9812 ;;
d9898ee8 9813
8d138742 9814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 9815 freebsd2.*)
8d138742
CE
9816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_direct=yes
9818 hardcode_minus_L=yes
9819 hardcode_shlibpath_var=no
9820 ;;
d9898ee8 9821
8d138742
CE
9822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9823 freebsd* | dragonfly*)
b0322a85 9824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9825 hardcode_libdir_flag_spec='-R$libdir'
9826 hardcode_direct=yes
9827 hardcode_shlibpath_var=no
9828 ;;
d9898ee8 9829
8d138742 9830 hpux9*)
d50284c4
CE
9831 if test yes = "$GCC"; then
9832 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8d138742 9833 else
d50284c4 9834 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8d138742 9835 fi
d50284c4 9836 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
9837 hardcode_libdir_separator=:
9838 hardcode_direct=yes
d9898ee8 9839
8d138742
CE
9840 # hardcode_minus_L: Not really in the search PATH,
9841 # but as the default location of the library.
9842 hardcode_minus_L=yes
d50284c4 9843 export_dynamic_flag_spec='$wl-E'
8d138742 9844 ;;
d9898ee8 9845
8d138742 9846 hpux10*)
d50284c4
CE
9847 if test yes,no = "$GCC,$with_gnu_ld"; then
9848 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9849 else
9850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9851 fi
d50284c4
CE
9852 if test no = "$with_gnu_ld"; then
9853 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
9854 hardcode_libdir_separator=:
9855 hardcode_direct=yes
9856 hardcode_direct_absolute=yes
d50284c4 9857 export_dynamic_flag_spec='$wl-E'
8d138742
CE
9858 # hardcode_minus_L: Not really in the search PATH,
9859 # but as the default location of the library.
9860 hardcode_minus_L=yes
9861 fi
9862 ;;
d9898ee8 9863
8d138742 9864 hpux11*)
d50284c4 9865 if test yes,no = "$GCC,$with_gnu_ld"; then
8d138742
CE
9866 case $host_cpu in
9867 hppa*64*)
d50284c4 9868 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9869 ;;
9870 ia64*)
d50284c4 9871 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9872 ;;
9873 *)
d50284c4 9874 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9875 ;;
9876 esac
9877 else
9878 case $host_cpu in
9879 hppa*64*)
d50284c4 9880 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9881 ;;
9882 ia64*)
d50284c4 9883 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9884 ;;
9885 *)
b0322a85
CE
9886
9887 # Older versions of the 11.00 compiler do not understand -b yet
9888 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9890$as_echo_n "checking if $CC understands -b... " >&6; }
9891if ${lt_cv_prog_compiler__b+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893else
9894 lt_cv_prog_compiler__b=no
d50284c4 9895 save_LDFLAGS=$LDFLAGS
b0322a85
CE
9896 LDFLAGS="$LDFLAGS -b"
9897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9899 # The linker can only warn and ignore the option if not recognized
9900 # So say no if there are warnings
9901 if test -s conftest.err; then
9902 # Append any errors to the config.log.
9903 cat conftest.err 1>&5
9904 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9906 if diff conftest.exp conftest.er2 >/dev/null; then
9907 lt_cv_prog_compiler__b=yes
9908 fi
9909 else
9910 lt_cv_prog_compiler__b=yes
9911 fi
9912 fi
9913 $RM -r conftest*
d50284c4 9914 LDFLAGS=$save_LDFLAGS
b0322a85
CE
9915
9916fi
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9918$as_echo "$lt_cv_prog_compiler__b" >&6; }
9919
d50284c4
CE
9920if test yes = "$lt_cv_prog_compiler__b"; then
9921 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9922else
9923 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9924fi
9925
8d138742
CE
9926 ;;
9927 esac
9928 fi
d50284c4
CE
9929 if test no = "$with_gnu_ld"; then
9930 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742 9931 hardcode_libdir_separator=:
d9898ee8 9932
8d138742
CE
9933 case $host_cpu in
9934 hppa*64*|ia64*)
9935 hardcode_direct=no
9936 hardcode_shlibpath_var=no
9937 ;;
9938 *)
9939 hardcode_direct=yes
9940 hardcode_direct_absolute=yes
d50284c4 9941 export_dynamic_flag_spec='$wl-E'
d9898ee8 9942
8d138742
CE
9943 # hardcode_minus_L: Not really in the search PATH,
9944 # but as the default location of the library.
9945 hardcode_minus_L=yes
9946 ;;
9947 esac
9948 fi
9949 ;;
d9898ee8 9950
8d138742 9951 irix5* | irix6* | nonstopux*)
d50284c4
CE
9952 if test yes = "$GCC"; then
9953 archive_cmds='$CC -shared $pic_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'
8d138742
CE
9954 # Try to use the -exported_symbol ld option, if it does not
9955 # work, assume that -exports_file does not work either and
9956 # implicitly export all symbols.
b0322a85
CE
9957 # This should be the same for all languages, so no per-tag cache variable.
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9959$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9960if ${lt_cv_irix_exported_symbol+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962else
d50284c4
CE
9963 save_LDFLAGS=$LDFLAGS
9964 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
b0322a85
CE
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h. */
9967int foo (void) { return 0; }
8d138742 9968_ACEOF
b0322a85
CE
9969if ac_fn_c_try_link "$LINENO"; then :
9970 lt_cv_irix_exported_symbol=yes
8d138742 9971else
b0322a85 9972 lt_cv_irix_exported_symbol=no
8d138742 9973fi
b0322a85
CE
9974rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
d50284c4 9976 LDFLAGS=$save_LDFLAGS
b0322a85
CE
9977fi
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9979$as_echo "$lt_cv_irix_exported_symbol" >&6; }
d50284c4
CE
9980 if test yes = "$lt_cv_irix_exported_symbol"; then
9981 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
b0322a85 9982 fi
8d138742 9983 else
d50284c4
CE
9984 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'
9985 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'
8d138742
CE
9986 fi
9987 archive_cmds_need_lc='no'
d50284c4 9988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
9989 hardcode_libdir_separator=:
9990 inherit_rpath=yes
9991 link_all_deplibs=yes
9992 ;;
d9898ee8 9993
d50284c4
CE
9994 linux*)
9995 case $cc_basename in
9996 tcc*)
9997 # Fabrice Bellard et al's Tiny C Compiler
9998 ld_shlibs=yes
9999 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10000 ;;
10001 esac
10002 ;;
10003
8d138742
CE
10004 netbsd*)
10005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10007 else
10008 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10009 fi
10010 hardcode_libdir_flag_spec='-R$libdir'
10011 hardcode_direct=yes
10012 hardcode_shlibpath_var=no
10013 ;;
d9898ee8 10014
8d138742
CE
10015 newsos6)
10016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_direct=yes
d50284c4 10018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
10019 hardcode_libdir_separator=:
10020 hardcode_shlibpath_var=no
10021 ;;
d9898ee8 10022
8d138742
CE
10023 *nto* | *qnx*)
10024 ;;
d9898ee8 10025
d50284c4 10026 openbsd* | bitrig*)
8d138742
CE
10027 if test -f /usr/libexec/ld.so; then
10028 hardcode_direct=yes
10029 hardcode_shlibpath_var=no
10030 hardcode_direct_absolute=yes
d50284c4 10031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8d138742 10032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d50284c4
CE
10033 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10034 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10035 export_dynamic_flag_spec='$wl-E'
8d138742 10036 else
d50284c4
CE
10037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10038 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8d138742
CE
10039 fi
10040 else
10041 ld_shlibs=no
10042 fi
10043 ;;
d9898ee8 10044
8d138742
CE
10045 os2*)
10046 hardcode_libdir_flag_spec='-L$libdir'
10047 hardcode_minus_L=yes
10048 allow_undefined_flag=unsupported
d50284c4
CE
10049 shrext_cmds=.dll
10050 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10051 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10052 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10053 $ECHO EXPORTS >> $output_objdir/$libname.def~
10054 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10055 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10056 emximp -o $lib $output_objdir/$libname.def'
10057 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10058 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10059 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10060 $ECHO EXPORTS >> $output_objdir/$libname.def~
10061 prefix_cmds="$SED"~
10062 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10063 prefix_cmds="$prefix_cmds -e 1d";
10064 fi~
10065 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10066 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10067 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10068 emximp -o $lib $output_objdir/$libname.def'
10069 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10070 enable_shared_with_static_runtimes=yes
8d138742 10071 ;;
d9898ee8 10072
8d138742 10073 osf3*)
d50284c4
CE
10074 if test yes = "$GCC"; then
10075 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10076 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'
8d138742
CE
10077 else
10078 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 10079 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'
8d138742
CE
10080 fi
10081 archive_cmds_need_lc='no'
d50284c4 10082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
10083 hardcode_libdir_separator=:
10084 ;;
d9898ee8 10085
8d138742 10086 osf4* | osf5*) # as osf3* with the addition of -msym flag
d50284c4
CE
10087 if test yes = "$GCC"; then
10088 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10089 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10090 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
10091 else
10092 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 10093 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'
8d138742 10094 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~
d50284c4 10095 $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'
d9898ee8 10096
8d138742
CE
10097 # Both c and cxx compiler support -rpath directly
10098 hardcode_libdir_flag_spec='-rpath $libdir'
10099 fi
10100 archive_cmds_need_lc='no'
10101 hardcode_libdir_separator=:
10102 ;;
d9898ee8 10103
8d138742
CE
10104 solaris*)
10105 no_undefined_flag=' -z defs'
d50284c4
CE
10106 if test yes = "$GCC"; then
10107 wlarc='$wl'
10108 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10110 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8d138742
CE
10111 else
10112 case `$CC -V 2>&1` in
10113 *"Compilers 5.0"*)
10114 wlarc=''
d50284c4 10115 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
8d138742 10116 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10117 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8d138742
CE
10118 ;;
10119 *)
d50284c4
CE
10120 wlarc='$wl'
10121 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10122 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10123 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8d138742
CE
10124 ;;
10125 esac
10126 fi
10127 hardcode_libdir_flag_spec='-R$libdir'
10128 hardcode_shlibpath_var=no
10129 case $host_os in
10130 solaris2.[0-5] | solaris2.[0-5].*) ;;
10131 *)
10132 # The compiler driver will combine and reorder linker options,
d50284c4 10133 # but understands '-z linker_flag'. GCC discards it without '$wl',
8d138742
CE
10134 # but is careful enough not to reorder.
10135 # Supported since Solaris 2.6 (maybe 2.5.1?)
d50284c4
CE
10136 if test yes = "$GCC"; then
10137 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
8d138742
CE
10138 else
10139 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10140 fi
10141 ;;
10142 esac
10143 link_all_deplibs=yes
10144 ;;
d9898ee8 10145
8d138742 10146 sunos4*)
d50284c4 10147 if test sequent = "$host_vendor"; then
8d138742
CE
10148 # Use $CC to link under sequent, because it throws in some extra .o
10149 # files that make .init and .fini sections work.
d50284c4 10150 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10151 else
10152 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10153 fi
10154 hardcode_libdir_flag_spec='-L$libdir'
10155 hardcode_direct=yes
10156 hardcode_minus_L=yes
10157 hardcode_shlibpath_var=no
10158 ;;
d9898ee8 10159
8d138742
CE
10160 sysv4)
10161 case $host_vendor in
10162 sni)
10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_direct=yes # is this really true???
10165 ;;
10166 siemens)
10167 ## LD is ld it makes a PLAMLIB
10168 ## CC just makes a GrossModule.
10169 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10170 reload_cmds='$CC -r -o $output$reload_objs'
10171 hardcode_direct=no
10172 ;;
10173 motorola)
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10176 ;;
10177 esac
10178 runpath_var='LD_RUN_PATH'
10179 hardcode_shlibpath_var=no
10180 ;;
d9898ee8 10181
8d138742
CE
10182 sysv4.3*)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_shlibpath_var=no
10185 export_dynamic_flag_spec='-Bexport'
10186 ;;
d9898ee8 10187
8d138742
CE
10188 sysv4*MP*)
10189 if test -d /usr/nec; then
10190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10191 hardcode_shlibpath_var=no
10192 runpath_var=LD_RUN_PATH
10193 hardcode_runpath_var=yes
10194 ld_shlibs=yes
10195 fi
10196 ;;
d9898ee8 10197
8d138742 10198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d50284c4 10199 no_undefined_flag='$wl-z,text'
8d138742
CE
10200 archive_cmds_need_lc=no
10201 hardcode_shlibpath_var=no
10202 runpath_var='LD_RUN_PATH'
d9898ee8 10203
d50284c4
CE
10204 if test yes = "$GCC"; then
10205 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10207 else
d50284c4
CE
10208 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10210 fi
10211 ;;
d9898ee8 10212
8d138742 10213 sysv5* | sco3.2v5* | sco5v6*)
d50284c4 10214 # Note: We CANNOT use -z defs as we might desire, because we do not
8d138742
CE
10215 # link with -lc, and that would cause any symbols used from libc to
10216 # always be unresolved, which means just about no library would
10217 # ever link correctly. If we're not using GNU ld we use -z text
10218 # though, which does catch some bad symbols but isn't as heavy-handed
10219 # as -z defs.
d50284c4
CE
10220 no_undefined_flag='$wl-z,text'
10221 allow_undefined_flag='$wl-z,nodefs'
8d138742
CE
10222 archive_cmds_need_lc=no
10223 hardcode_shlibpath_var=no
d50284c4 10224 hardcode_libdir_flag_spec='$wl-R,$libdir'
8d138742
CE
10225 hardcode_libdir_separator=':'
10226 link_all_deplibs=yes
d50284c4 10227 export_dynamic_flag_spec='$wl-Bexport'
8d138742 10228 runpath_var='LD_RUN_PATH'
d9898ee8 10229
d50284c4
CE
10230 if test yes = "$GCC"; then
10231 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10233 else
d50284c4
CE
10234 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10236 fi
10237 ;;
d9898ee8 10238
8d138742
CE
10239 uts4*)
10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_libdir_flag_spec='-L$libdir'
10242 hardcode_shlibpath_var=no
10243 ;;
d9898ee8 10244
8d138742
CE
10245 *)
10246 ld_shlibs=no
10247 ;;
10248 esac
d9898ee8 10249
d50284c4 10250 if test sni = "$host_vendor"; then
8d138742
CE
10251 case $host in
10252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d50284c4 10253 export_dynamic_flag_spec='$wl-Blargedynsym'
d9898ee8 10254 ;;
8d138742
CE
10255 esac
10256 fi
10257 fi
10258
b0322a85 10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742 10260$as_echo "$ld_shlibs" >&6; }
d50284c4 10261test no = "$ld_shlibs" && can_build_shared=no
8d138742
CE
10262
10263with_gnu_ld=$with_gnu_ld
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279#
10280# Do we need to explicitly link libc?
10281#
10282case "x$archive_cmds_need_lc" in
10283x|xyes)
10284 # Assume -lc should be added
10285 archive_cmds_need_lc=yes
10286
d50284c4 10287 if test yes,yes = "$GCC,$enable_shared"; then
8d138742
CE
10288 case $archive_cmds in
10289 *'~'*)
10290 # FIXME: we may have to deal with multi-command sequences.
10291 ;;
10292 '$CC '*)
10293 # Test whether the compiler implicitly links with -lc since on some
10294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10295 # to ld, don't add -lc before -lgcc.
b0322a85 10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 10297$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
10298if ${lt_cv_archive_cmds_need_lc+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300else
10301 $RM conftest*
10302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8d138742 10303
b0322a85 10304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
10305 (eval $ac_compile) 2>&5
10306 ac_status=$?
b0322a85
CE
10307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308 test $ac_status = 0; } 2>conftest.err; then
10309 soname=conftest
10310 lib=conftest
10311 libobjs=conftest.$ac_objext
10312 deplibs=
10313 wl=$lt_prog_compiler_wl
10314 pic_flag=$lt_prog_compiler_pic
10315 compiler_flags=-v
10316 linker_flags=-v
10317 verstring=
10318 output_objdir=.
10319 libname=conftest
10320 lt_save_allow_undefined_flag=$allow_undefined_flag
10321 allow_undefined_flag=
10322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
10323 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10324 ac_status=$?
b0322a85
CE
10325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10326 test $ac_status = 0; }
10327 then
10328 lt_cv_archive_cmds_need_lc=no
10329 else
10330 lt_cv_archive_cmds_need_lc=yes
10331 fi
10332 allow_undefined_flag=$lt_save_allow_undefined_flag
10333 else
10334 cat conftest.err 1>&5
10335 fi
10336 $RM conftest*
10337
10338fi
10339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10340$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10341 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8d138742
CE
10342 ;;
10343 esac
10344 fi
10345 ;;
10346esac
10347
10348
d9898ee8 10349
d9898ee8 10350
d9898ee8 10351
d9898ee8 10352
d9898ee8 10353
d9898ee8 10354
d9898ee8 10355
d9898ee8 10356
d9898ee8 10357
d9898ee8 10358
10359
d9898ee8 10360
d9898ee8 10361
10362
d9898ee8 10363
10364
d9898ee8 10365
d9898ee8 10366
10367
d9898ee8 10368
d9898ee8 10369
10370
d9898ee8 10371
d9898ee8 10372
d9898ee8 10373
d9898ee8 10374
d9898ee8 10375
d9898ee8 10376
d9898ee8 10377
d9898ee8 10378
d9898ee8 10379
d9898ee8 10380
d9898ee8 10381
d9898ee8 10382
d9898ee8 10383
d9898ee8 10384
d9898ee8 10385
d9898ee8 10386
d9898ee8 10387
d9898ee8 10388
d9898ee8 10389
d9898ee8 10390
d9898ee8 10391
d9898ee8 10392
d9898ee8 10393
ac40fd9e 10394
d9898ee8 10395
d9898ee8 10396
d9898ee8 10397
d9898ee8 10398
d9898ee8 10399
d9898ee8 10400
d9898ee8 10401
d9898ee8 10402
d9898ee8 10403
d9898ee8 10404
d9898ee8 10405
d9898ee8 10406
d9898ee8 10407
d9898ee8 10408
d9898ee8 10409
d9898ee8 10410
d9898ee8 10411
10412
d9898ee8 10413
d9898ee8 10414
d9898ee8 10415
10416
d9898ee8 10417
d9898ee8 10418
d9898ee8 10419
d9898ee8 10420
d9898ee8 10421
d9898ee8 10422
d9898ee8 10423
d9898ee8 10424
d9898ee8 10425
d9898ee8 10426
d9898ee8 10427
d9898ee8 10428
d9898ee8 10429
d9898ee8 10430
d9898ee8 10431
d9898ee8 10432
d9898ee8 10433
d9898ee8 10434
d9898ee8 10435
d9898ee8 10436
d9898ee8 10437
d9898ee8 10438
d9898ee8 10439
d9898ee8 10440
d9898ee8 10441
d9898ee8 10442
d9898ee8 10443
d9898ee8 10444
d9898ee8 10445
d9898ee8 10446
d9898ee8 10447
d9898ee8 10448
d9898ee8 10449
d9898ee8 10450
d9898ee8 10451
dd184caf 10452
dd184caf 10453
d9898ee8 10454
d9898ee8 10455
d9898ee8 10456
d9898ee8 10457
d9898ee8 10458
dd184caf 10459
dd184caf 10460
d9898ee8 10461
d9898ee8 10462
d9898ee8 10463
d9898ee8 10464
d9898ee8 10465
d9898ee8 10466
d9898ee8 10467
d9898ee8 10468
d9898ee8 10469
d9898ee8 10470
d9898ee8 10471
d9898ee8 10472
d9898ee8 10473
d9898ee8 10474
d9898ee8 10475
d9898ee8 10476
d9898ee8 10477
d9898ee8 10478
d9898ee8 10479
d9898ee8 10480
d9898ee8 10481
d9898ee8 10482
d9898ee8 10483
d9898ee8 10484
d9898ee8 10485
d9898ee8 10486
d9898ee8 10487
d9898ee8 10488
d9898ee8 10489
d9898ee8 10490
d9898ee8 10491
d9898ee8 10492
d9898ee8 10493
d9898ee8 10494
d9898ee8 10495
d9898ee8 10496
d9898ee8 10497
d9898ee8 10498
b0322a85 10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
10500$as_echo_n "checking dynamic linker characteristics... " >&6; }
10501
d50284c4 10502if test yes = "$GCC"; then
8d138742 10503 case $host_os in
d50284c4
CE
10504 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10505 *) lt_awk_arg='/^libraries:/' ;;
8d138742 10506 esac
b0322a85 10507 case $host_os in
d50284c4
CE
10508 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10509 *) lt_sed_strip_eq='s|=/|/|g' ;;
b0322a85
CE
10510 esac
10511 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10512 case $lt_search_path_spec in
10513 *\;*)
8d138742
CE
10514 # if the path contains ";" then we assume it to be the separator
10515 # otherwise default to the standard path separator (i.e. ":") - it is
10516 # assumed that no part of a normal pathname contains ";" but that should
10517 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
10518 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10519 ;;
10520 *)
10521 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10522 ;;
10523 esac
8d138742 10524 # Ok, now we have the path, separated by spaces, we can step through it
d50284c4 10525 # and add multilib dir if necessary...
8d138742 10526 lt_tmp_lt_search_path_spec=
d50284c4
CE
10527 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10528 # ...but if some path component already ends with the multilib dir we assume
10529 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10530 case "$lt_multi_os_dir; $lt_search_path_spec " in
10531 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10532 lt_multi_os_dir=
10533 ;;
10534 esac
8d138742 10535 for lt_sys_path in $lt_search_path_spec; do
d50284c4
CE
10536 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10537 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10538 elif test -n "$lt_multi_os_dir"; then
8d138742
CE
10539 test -d "$lt_sys_path" && \
10540 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10541 fi
10542 done
b0322a85 10543 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d50284c4
CE
10544BEGIN {RS = " "; FS = "/|\n";} {
10545 lt_foo = "";
10546 lt_count = 0;
8d138742
CE
10547 for (lt_i = NF; lt_i > 0; lt_i--) {
10548 if ($lt_i != "" && $lt_i != ".") {
10549 if ($lt_i == "..") {
10550 lt_count++;
10551 } else {
10552 if (lt_count == 0) {
d50284c4 10553 lt_foo = "/" $lt_i lt_foo;
8d138742
CE
10554 } else {
10555 lt_count--;
10556 }
10557 }
10558 }
10559 }
10560 if (lt_foo != "") { lt_freq[lt_foo]++; }
10561 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10562}'`
b0322a85
CE
10563 # AWK program above erroneously prepends '/' to C:/dos/paths
10564 # for these hosts.
10565 case $host_os in
10566 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
d50284c4 10567 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
b0322a85
CE
10568 esac
10569 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
10570else
10571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10572fi
d9898ee8 10573library_names_spec=
10574libname_spec='lib$name'
10575soname_spec=
d50284c4 10576shrext_cmds=.so
d9898ee8 10577postinstall_cmds=
10578postuninstall_cmds=
10579finish_cmds=
10580finish_eval=
10581shlibpath_var=
10582shlibpath_overrides_runpath=unknown
10583version_type=none
10584dynamic_linker="$host_os ld.so"
10585sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 10586need_lib_prefix=unknown
10587hardcode_into_libs=no
10588
10589# when you set need_version to no, make sure it does not cause -set_version
10590# flags to be left without arguments
10591need_version=unknown
10592
d50284c4
CE
10593
10594
d9898ee8 10595case $host_os in
10596aix3*)
b0322a85 10597 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 10598 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d9898ee8 10599 shlibpath_var=LIBPATH
10600
10601 # AIX 3 has no versioning support, so we append a major version to the name.
d50284c4 10602 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10603 ;;
10604
8d138742 10605aix[4-9]*)
b0322a85 10606 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10607 need_lib_prefix=no
10608 need_version=no
10609 hardcode_into_libs=yes
d50284c4 10610 if test ia64 = "$host_cpu"; then
d9898ee8 10611 # AIX 5 supports IA64
d50284c4 10612 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d9898ee8 10613 shlibpath_var=LD_LIBRARY_PATH
10614 else
10615 # With GCC up to 2.95.x, collect2 would create an import file
10616 # for dependence libraries. The import file would start with
d50284c4
CE
10617 # the line '#! .'. This would cause the generated library to
10618 # depend on '.', always an invalid library. This was fixed in
d9898ee8 10619 # development snapshots of GCC prior to 3.0.
10620 case $host_os in
10621 aix4 | aix4.[01] | aix4.[01].*)
10622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10623 echo ' yes '
d50284c4 10624 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d9898ee8 10625 :
10626 else
10627 can_build_shared=no
10628 fi
10629 ;;
10630 esac
d50284c4
CE
10631 # Using Import Files as archive members, it is possible to support
10632 # filename-based versioning of shared library archives on AIX. While
10633 # this would work for both with and without runtime linking, it will
10634 # prevent static linking of such archives. So we do filename-based
10635 # shared library versioning with .so extension only, which is used
10636 # when both runtime linking and shared linking is enabled.
10637 # Unfortunately, runtime linking may impact performance, so we do
10638 # not want this to be the default eventually. Also, we use the
10639 # versioned .so libs for executables only if there is the -brtl
10640 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10641 # To allow for filename-based versioning support, we need to create
10642 # libNAME.so.V as an archive file, containing:
10643 # *) an Import File, referring to the versioned filename of the
10644 # archive as well as the shared archive member, telling the
10645 # bitwidth (32 or 64) of that shared object, and providing the
10646 # list of exported symbols of that shared object, eventually
10647 # decorated with the 'weak' keyword
10648 # *) the shared object with the F_LOADONLY flag set, to really avoid
10649 # it being seen by the linker.
10650 # At run time we better use the real file rather than another symlink,
10651 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10652
10653 case $with_aix_soname,$aix_use_runtimelinking in
10654 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d9898ee8 10655 # soname into executable. Probably we can add versioning support to
10656 # collect2, so additional links can be useful in future.
d50284c4
CE
10657 aix,yes) # traditional libtool
10658 dynamic_linker='AIX unversionable lib.so'
d9898ee8 10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
d50284c4
CE
10662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10663 ;;
10664 aix,no) # traditional AIX only
10665 dynamic_linker='AIX lib.a(lib.so.V)'
d9898ee8 10666 # We preserve .a as extension for shared libraries through AIX4.2
10667 # and later when we are not doing run time linking.
d50284c4
CE
10668 library_names_spec='$libname$release.a $libname.a'
10669 soname_spec='$libname$release$shared_ext$major'
10670 ;;
10671 svr4,*) # full svr4 only
10672 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10673 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10674 # We do not specify a path in Import Files, so LIBPATH fires.
10675 shlibpath_overrides_runpath=yes
10676 ;;
10677 *,yes) # both, prefer svr4
10678 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10679 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10680 # unpreferred sharedlib libNAME.a needs extra handling
10681 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10682 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10683 # We do not specify a path in Import Files, so LIBPATH fires.
10684 shlibpath_overrides_runpath=yes
10685 ;;
10686 *,no) # both, prefer aix
10687 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10688 library_names_spec='$libname$release.a $libname.a'
10689 soname_spec='$libname$release$shared_ext$major'
10690 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10691 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10692 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10693 ;;
10694 esac
d9898ee8 10695 shlibpath_var=LIBPATH
10696 fi
10697 ;;
10698
10699amigaos*)
8d138742
CE
10700 case $host_cpu in
10701 powerpc)
10702 # Since July 2007 AmigaOS4 officially supports .so libraries.
10703 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
d50284c4 10704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
10705 ;;
10706 m68k)
10707 library_names_spec='$libname.ixlibrary $libname.a'
10708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
d50284c4 10709 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
8d138742
CE
10710 ;;
10711 esac
d9898ee8 10712 ;;
10713
10714beos*)
d50284c4 10715 library_names_spec='$libname$shared_ext'
d9898ee8 10716 dynamic_linker="$host_os ld.so"
10717 shlibpath_var=LIBRARY_PATH
10718 ;;
10719
10720bsdi[45]*)
b0322a85 10721 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10722 need_version=no
d50284c4
CE
10723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10724 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10728 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10729 # the default ld.so.conf also contains /usr/contrib/lib and
10730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10731 # libtool to hard-code these into programs
10732 ;;
10733
8d138742 10734cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 10735 version_type=windows
d50284c4 10736 shrext_cmds=.dll
d9898ee8 10737 need_version=no
10738 need_lib_prefix=no
10739
b0322a85
CE
10740 case $GCC,$cc_basename in
10741 yes,*)
10742 # gcc
d9898ee8 10743 library_names_spec='$libname.dll.a'
10744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
10745 postinstall_cmds='base_file=`basename \$file`~
10746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d9898ee8 10747 dldir=$destdir/`dirname \$dlpath`~
10748 test -d \$dldir || mkdir -p \$dldir~
10749 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10750 chmod a+x \$dldir/$dlname~
10751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10753 fi'
d9898ee8 10754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755 dlpath=$dir/\$dldll~
8d138742 10756 $RM \$dlpath'
d9898ee8 10757 shlibpath_overrides_runpath=yes
10758
10759 case $host_os in
10760 cygwin*)
10761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
d50284c4 10762 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b0322a85
CE
10763
10764 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 10765 ;;
8d138742 10766 mingw* | cegcc*)
d9898ee8 10767 # MinGW DLLs use traditional 'lib' prefix
d50284c4 10768 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 10769 ;;
10770 pw32*)
10771 # pw32 DLLs use 'pw' prefix rather than 'lib'
d50284c4 10772 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 10773 ;;
10774 esac
b0322a85
CE
10775 dynamic_linker='Win32 ld.exe'
10776 ;;
10777
10778 *,cl*)
10779 # Native MSVC
10780 libname_spec='$name'
d50284c4
CE
10781 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10782 library_names_spec='$libname.dll.lib'
b0322a85
CE
10783
10784 case $build_os in
10785 mingw*)
10786 sys_lib_search_path_spec=
10787 lt_save_ifs=$IFS
10788 IFS=';'
10789 for lt_path in $LIB
10790 do
10791 IFS=$lt_save_ifs
10792 # Let DOS variable expansion print the short 8.3 style file name.
10793 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10794 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10795 done
10796 IFS=$lt_save_ifs
10797 # Convert to MSYS style.
10798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10799 ;;
10800 cygwin*)
10801 # Convert to unix form, then to dos form, then back to unix form
10802 # but this time dos style (no spaces!) so that the unix form looks
10803 # like /cygdrive/c/PROGRA~1:/cygdr...
10804 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10805 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10806 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10807 ;;
10808 *)
d50284c4 10809 sys_lib_search_path_spec=$LIB
b0322a85
CE
10810 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10811 # It is most probably a Windows format PATH.
10812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10813 else
10814 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10815 fi
10816 # FIXME: find the short name or the path components, as spaces are
10817 # common. (e.g. "Program Files" -> "PROGRA~1")
10818 ;;
10819 esac
10820
10821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
10822 postinstall_cmds='base_file=`basename \$file`~
10823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
b0322a85
CE
10824 dldir=$destdir/`dirname \$dlpath`~
10825 test -d \$dldir || mkdir -p \$dldir~
10826 $install_prog $dir/$dlname \$dldir/$dlname'
10827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10828 dlpath=$dir/\$dldll~
10829 $RM \$dlpath'
10830 shlibpath_overrides_runpath=yes
10831 dynamic_linker='Win32 link.exe'
d9898ee8 10832 ;;
10833
10834 *)
b0322a85 10835 # Assume MSVC wrapper
d50284c4 10836 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
b0322a85 10837 dynamic_linker='Win32 ld.exe'
d9898ee8 10838 ;;
10839 esac
d9898ee8 10840 # FIXME: first we should search . and the directory the executable is in
10841 shlibpath_var=PATH
10842 ;;
10843
10844darwin* | rhapsody*)
10845 dynamic_linker="$host_os dyld"
10846 version_type=darwin
10847 need_lib_prefix=no
10848 need_version=no
d50284c4
CE
10849 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10850 soname_spec='$libname$release$major$shared_ext'
d9898ee8 10851 shlibpath_overrides_runpath=yes
10852 shlibpath_var=DYLD_LIBRARY_PATH
10853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10854
8d138742 10855 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10857 ;;
10858
10859dgux*)
b0322a85 10860 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10861 need_lib_prefix=no
10862 need_version=no
d50284c4
CE
10863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10865 shlibpath_var=LD_LIBRARY_PATH
10866 ;;
10867
d9898ee8 10868freebsd* | dragonfly*)
10869 # DragonFly does not have aout. When/if they implement a new
10870 # versioning mechanism, adjust this.
10871 if test -x /usr/bin/objformat; then
10872 objformat=`/usr/bin/objformat`
10873 else
10874 case $host_os in
b0322a85 10875 freebsd[23].*) objformat=aout ;;
d9898ee8 10876 *) objformat=elf ;;
10877 esac
10878 fi
10879 version_type=freebsd-$objformat
10880 case $version_type in
10881 freebsd-elf*)
d50284c4
CE
10882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10884 need_version=no
10885 need_lib_prefix=no
10886 ;;
10887 freebsd-*)
d50284c4 10888 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 10889 need_version=yes
10890 ;;
10891 esac
10892 shlibpath_var=LD_LIBRARY_PATH
10893 case $host_os in
b0322a85 10894 freebsd2.*)
d9898ee8 10895 shlibpath_overrides_runpath=yes
10896 ;;
10897 freebsd3.[01]* | freebsdelf3.[01]*)
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 ;;
10901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10905 ;;
ac40fd9e 10906 *) # from 4.6 on, and DragonFly
d9898ee8 10907 shlibpath_overrides_runpath=yes
10908 hardcode_into_libs=yes
10909 ;;
10910 esac
10911 ;;
10912
b0322a85
CE
10913haiku*)
10914 version_type=linux # correct to gnu/linux during the next big refactor
10915 need_lib_prefix=no
10916 need_version=no
10917 dynamic_linker="$host_os runtime_loader"
d50284c4
CE
10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919 soname_spec='$libname$release$shared_ext$major'
b0322a85 10920 shlibpath_var=LIBRARY_PATH
d50284c4 10921 shlibpath_overrides_runpath=no
b0322a85 10922 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 10923 hardcode_into_libs=yes
10924 ;;
10925
10926hpux9* | hpux10* | hpux11*)
10927 # Give a soname corresponding to the major version so that dld.sl refuses to
10928 # link against other versions.
10929 version_type=sunos
10930 need_lib_prefix=no
10931 need_version=no
10932 case $host_cpu in
10933 ia64*)
10934 shrext_cmds='.so'
10935 hardcode_into_libs=yes
10936 dynamic_linker="$host_os dld.so"
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
10939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10940 soname_spec='$libname$release$shared_ext$major'
10941 if test 32 = "$HPUX_IA64_MODE"; then
d9898ee8 10942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
d50284c4 10943 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
d9898ee8 10944 else
10945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
d50284c4 10946 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d9898ee8 10947 fi
d9898ee8 10948 ;;
8d138742
CE
10949 hppa*64*)
10950 shrext_cmds='.sl'
10951 hardcode_into_libs=yes
10952 dynamic_linker="$host_os dld.sl"
10953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
10955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10956 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
10957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10959 ;;
10960 *)
d9898ee8 10961 shrext_cmds='.sl'
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=SHLIB_PATH
10964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
d50284c4
CE
10965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10966 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10967 ;;
10968 esac
b0322a85 10969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 10970 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
10971 # or fails outright, so override atomically:
10972 install_override_mode=555
d9898ee8 10973 ;;
10974
ac40fd9e 10975interix[3-9]*)
b0322a85 10976 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10977 need_lib_prefix=no
10978 need_version=no
d50284c4
CE
10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10980 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=no
10984 hardcode_into_libs=yes
10985 ;;
10986
10987irix5* | irix6* | nonstopux*)
10988 case $host_os in
10989 nonstopux*) version_type=nonstopux ;;
10990 *)
d50284c4 10991 if test yes = "$lt_cv_prog_gnu_ld"; then
b0322a85 10992 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10993 else
10994 version_type=irix
10995 fi ;;
10996 esac
10997 need_lib_prefix=no
10998 need_version=no
d50284c4
CE
10999 soname_spec='$libname$release$shared_ext$major'
11000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d9898ee8 11001 case $host_os in
11002 irix5* | nonstopux*)
11003 libsuff= shlibsuff=
11004 ;;
11005 *)
11006 case $LD in # libtool.m4 will add one of these switches to LD
11007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11008 libsuff= shlibsuff= libmagic=32-bit;;
11009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11010 libsuff=32 shlibsuff=N32 libmagic=N32;;
11011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11013 *) libsuff= shlibsuff= libmagic=never-match;;
11014 esac
11015 ;;
11016 esac
11017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11018 shlibpath_overrides_runpath=no
d50284c4
CE
11019 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11020 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d9898ee8 11021 hardcode_into_libs=yes
11022 ;;
11023
8d138742
CE
11024# No shared lib support for Linux oldld, aout, or coff.
11025linux*oldld* | linux*aout* | linux*coff*)
11026 dynamic_linker=no
11027 ;;
11028
d50284c4
CE
11029linux*android*)
11030 version_type=none # Android doesn't support versioned libraries.
11031 need_lib_prefix=no
11032 need_version=no
11033 library_names_spec='$libname$release$shared_ext'
11034 soname_spec='$libname$release$shared_ext'
11035 finish_cmds=
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11038
11039 # This implies no fast_install, which is unacceptable.
11040 # Some rework will be needed to allow for fast_install
11041 # before this can be enabled.
11042 hardcode_into_libs=yes
11043
11044 dynamic_linker='Android linker'
11045 # Don't embed -rpath directories since the linker doesn't support them.
11046 hardcode_libdir_flag_spec='-L$libdir'
11047 ;;
11048
b0322a85 11049# This must be glibc/ELF.
d50284c4 11050linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b0322a85 11051 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11052 need_lib_prefix=no
11053 need_version=no
d50284c4
CE
11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11055 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=no
b0322a85 11059
8d138742 11060 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
11061 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063else
11064 lt_cv_shlibpath_overrides_runpath=no
11065 save_LDFLAGS=$LDFLAGS
11066 save_libdir=$libdir
11067 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11068 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11070/* end confdefs.h. */
11071
11072int
11073main ()
11074{
11075
11076 ;
11077 return 0;
11078}
11079_ACEOF
b0322a85
CE
11080if ac_fn_c_try_link "$LINENO"; then :
11081 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11082 lt_cv_shlibpath_overrides_runpath=yes
8d138742 11083fi
b0322a85
CE
11084fi
11085rm -f core conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LDFLAGS=$save_LDFLAGS
11088 libdir=$save_libdir
8d138742
CE
11089
11090fi
11091
b0322a85 11092 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d9898ee8 11093
d9898ee8 11094 # This implies no fast_install, which is unacceptable.
11095 # Some rework will be needed to allow for fast_install
11096 # before this can be enabled.
11097 hardcode_into_libs=yes
8d138742
CE
11098
11099 # Add ABI-specific directories to the system library path.
11100 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 11101
d50284c4
CE
11102 # Ideally, we could use ldconfig to report *all* directores which are
11103 # searched for libraries, however this is still not possible. Aside from not
11104 # being certain /sbin/ldconfig is available, command
11105 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11106 # even though it is searched at run-time. Try to do the best guess by
11107 # appending ld.so.conf contents (and includes) to the search path.
d9898ee8 11108 if test -f /etc/ld.so.conf; then
b0322a85 11109 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' ' '`
ac40fd9e 11110 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 11111 fi
11112
11113 # We used to test for /lib/ld.so.1 and disable shared libraries on
11114 # powerpc, because MkLinux only supported shared libraries with the
11115 # GNU dynamic linker. Since this was broken with cross compilers,
11116 # most powerpc-linux boxes support dynamic linking these days and
11117 # people can always --disable-shared, the test was removed, and we
11118 # assume the GNU/Linux dynamic linker is in use.
11119 dynamic_linker='GNU/Linux ld.so'
11120 ;;
11121
d9898ee8 11122netbsd*)
11123 version_type=sunos
11124 need_lib_prefix=no
11125 need_version=no
8d138742 11126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d50284c4 11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11129 dynamic_linker='NetBSD (a.out) ld.so'
11130 else
d50284c4
CE
11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11133 dynamic_linker='NetBSD ld.elf_so'
11134 fi
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 hardcode_into_libs=yes
11138 ;;
11139
11140newsos6)
b0322a85 11141 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 11142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 ;;
11146
8d138742
CE
11147*nto* | *qnx*)
11148 version_type=qnx
d9898ee8 11149 need_lib_prefix=no
11150 need_version=no
d50284c4
CE
11151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11152 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11153 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
11154 shlibpath_overrides_runpath=no
11155 hardcode_into_libs=yes
11156 dynamic_linker='ldqnx.so'
d9898ee8 11157 ;;
11158
d50284c4 11159openbsd* | bitrig*)
d9898ee8 11160 version_type=sunos
d50284c4 11161 sys_lib_dlsearch_path_spec=/usr/lib
d9898ee8 11162 need_lib_prefix=no
d50284c4
CE
11163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11164 need_version=no
d9898ee8 11165 else
d50284c4 11166 need_version=yes
d9898ee8 11167 fi
d50284c4
CE
11168 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
d9898ee8 11172 ;;
11173
11174os2*)
11175 libname_spec='$name'
d50284c4
CE
11176 version_type=windows
11177 shrext_cmds=.dll
11178 need_version=no
d9898ee8 11179 need_lib_prefix=no
d50284c4
CE
11180 # OS/2 can only load a DLL with a base name of 8 characters or less.
11181 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11182 v=$($ECHO $release$versuffix | tr -d .-);
11183 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11184 $ECHO $n$v`$shared_ext'
11185 library_names_spec='${libname}_dll.$libext'
d9898ee8 11186 dynamic_linker='OS/2 ld.exe'
d50284c4
CE
11187 shlibpath_var=BEGINLIBPATH
11188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11190 postinstall_cmds='base_file=`basename \$file`~
11191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11192 dldir=$destdir/`dirname \$dlpath`~
11193 test -d \$dldir || mkdir -p \$dldir~
11194 $install_prog $dir/$dlname \$dldir/$dlname~
11195 chmod a+x \$dldir/$dlname~
11196 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11197 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11198 fi'
11199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11200 dlpath=$dir/\$dldll~
11201 $RM \$dlpath'
d9898ee8 11202 ;;
11203
11204osf3* | osf4* | osf5*)
11205 version_type=osf
11206 need_lib_prefix=no
11207 need_version=no
d50284c4
CE
11208 soname_spec='$libname$release$shared_ext$major'
11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 11210 shlibpath_var=LD_LIBRARY_PATH
11211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
d50284c4 11212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d9898ee8 11213 ;;
11214
ac40fd9e 11215rdos*)
11216 dynamic_linker=no
11217 ;;
11218
d9898ee8 11219solaris*)
b0322a85 11220 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11221 need_lib_prefix=no
11222 need_version=no
d50284c4
CE
11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11224 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11225 shlibpath_var=LD_LIBRARY_PATH
11226 shlibpath_overrides_runpath=yes
11227 hardcode_into_libs=yes
11228 # ldd complains unless libraries are executable
11229 postinstall_cmds='chmod +x $lib'
11230 ;;
11231
11232sunos4*)
11233 version_type=sunos
d50284c4 11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 11235 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=yes
d50284c4 11238 if test yes = "$with_gnu_ld"; then
d9898ee8 11239 need_lib_prefix=no
11240 fi
11241 need_version=yes
11242 ;;
11243
11244sysv4 | sysv4.3*)
b0322a85 11245 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11248 shlibpath_var=LD_LIBRARY_PATH
11249 case $host_vendor in
11250 sni)
11251 shlibpath_overrides_runpath=no
11252 need_lib_prefix=no
d9898ee8 11253 runpath_var=LD_RUN_PATH
11254 ;;
11255 siemens)
11256 need_lib_prefix=no
11257 ;;
11258 motorola)
11259 need_lib_prefix=no
11260 need_version=no
11261 shlibpath_overrides_runpath=no
11262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11263 ;;
11264 esac
11265 ;;
11266
11267sysv4*MP*)
d50284c4 11268 if test -d /usr/nec; then
b0322a85 11269 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11270 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11271 soname_spec='$libname$shared_ext.$major'
d9898ee8 11272 shlibpath_var=LD_LIBRARY_PATH
11273 fi
11274 ;;
11275
11276sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
d50284c4 11277 version_type=sco
d9898ee8 11278 need_lib_prefix=no
11279 need_version=no
d50284c4
CE
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11281 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11282 shlibpath_var=LD_LIBRARY_PATH
8d138742 11283 shlibpath_overrides_runpath=yes
d9898ee8 11284 hardcode_into_libs=yes
d50284c4 11285 if test yes = "$with_gnu_ld"; then
d9898ee8 11286 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 11287 else
11288 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 11289 case $host_os in
11290 sco3.2v5*)
11291 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11292 ;;
11293 esac
11294 fi
11295 sys_lib_dlsearch_path_spec='/usr/lib'
11296 ;;
11297
8d138742
CE
11298tpf*)
11299 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 11300 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11301 need_lib_prefix=no
11302 need_version=no
d50284c4 11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
11304 shlibpath_var=LD_LIBRARY_PATH
11305 shlibpath_overrides_runpath=no
11306 hardcode_into_libs=yes
11307 ;;
11308
d9898ee8 11309uts4*)
b0322a85 11310 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11312 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11313 shlibpath_var=LD_LIBRARY_PATH
11314 ;;
11315
11316*)
11317 dynamic_linker=no
11318 ;;
11319esac
b0322a85 11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 11321$as_echo "$dynamic_linker" >&6; }
d50284c4 11322test no = "$dynamic_linker" && can_build_shared=no
d9898ee8 11323
11324variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
d50284c4 11325if test yes = "$GCC"; then
d9898ee8 11326 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11327fi
11328
d50284c4
CE
11329if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11330 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d9898ee8 11331fi
d50284c4
CE
11332
11333if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11334 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
d9898ee8 11335fi
11336
d50284c4
CE
11337# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11338configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11339
11340# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11341func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11342
11343# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11344configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11345
11346
11347
11348
11349
11350
d9898ee8 11351
d9898ee8 11352
d9898ee8 11353
d9898ee8 11354
d9898ee8 11355
d9898ee8 11356
d9898ee8 11357
d9898ee8 11358
d9898ee8 11359
d9898ee8 11360
d9898ee8 11361
d9898ee8 11362
d9898ee8 11363
d9898ee8 11364
d9898ee8 11365
d9898ee8 11366
d9898ee8 11367
d9898ee8 11368
d9898ee8 11369
d9898ee8 11370
d9898ee8 11371
d9898ee8 11372
d9898ee8 11373
d9898ee8 11374
d9898ee8 11375
d9898ee8 11376
d9898ee8 11377
d9898ee8 11378
d9898ee8 11379
d9898ee8 11380
d9898ee8 11381
d9898ee8 11382
d9898ee8 11383
d9898ee8 11384
d9898ee8 11385
d9898ee8 11386
d9898ee8 11387
d9898ee8 11388
d9898ee8 11389
d9898ee8 11390
d9898ee8 11391
d9898ee8 11392
d9898ee8 11393
d9898ee8 11394
d9898ee8 11395
d9898ee8 11396
d9898ee8 11397
d9898ee8 11398
d9898ee8 11399
d9898ee8 11400
d9898ee8 11401
d9898ee8 11402
d9898ee8 11403
d9898ee8 11404
d9898ee8 11405
d9898ee8 11406
d9898ee8 11407
d9898ee8 11408
d9898ee8 11409
d9898ee8 11410
d9898ee8 11411
d9898ee8 11412
d9898ee8 11413
d9898ee8 11414
d9898ee8 11415
d9898ee8 11416
d9898ee8 11417
d9898ee8 11418
d9898ee8 11419
d9898ee8 11420
d9898ee8 11421
d9898ee8 11422
d9898ee8 11423
d9898ee8 11424
d9898ee8 11425
d9898ee8 11426
d9898ee8 11427
d9898ee8 11428
d9898ee8 11429
d9898ee8 11430
d9898ee8 11431
d9898ee8 11432
d9898ee8 11433
d9898ee8 11434
d9898ee8 11435
d9898ee8 11436
b0322a85
CE
11437
11438
11439
11440
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
11443$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11444hardcode_action=
11445if test -n "$hardcode_libdir_flag_spec" ||
11446 test -n "$runpath_var" ||
d50284c4 11447 test yes = "$hardcode_automatic"; then
8d138742
CE
11448
11449 # We can hardcode non-existent directories.
d50284c4 11450 if test no != "$hardcode_direct" &&
8d138742
CE
11451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11452 # have to relink, otherwise we might link with an installed library
11453 # when we should be linking with a yet-to-be-installed one
d50284c4
CE
11454 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11455 test no != "$hardcode_minus_L"; then
8d138742
CE
11456 # Linking always hardcodes the temporary library directory.
11457 hardcode_action=relink
11458 else
11459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11460 hardcode_action=immediate
11461 fi
11462else
11463 # We cannot hardcode anything, or else we can only hardcode existing
11464 # directories.
11465 hardcode_action=unsupported
11466fi
b0322a85 11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742
CE
11468$as_echo "$hardcode_action" >&6; }
11469
d50284c4
CE
11470if test relink = "$hardcode_action" ||
11471 test yes = "$inherit_rpath"; then
8d138742
CE
11472 # Fast installation is not supported
11473 enable_fast_install=no
d50284c4
CE
11474elif test yes = "$shlibpath_overrides_runpath" ||
11475 test no = "$enable_shared"; then
8d138742
CE
11476 # Fast installation is not necessary
11477 enable_fast_install=needless
11478fi
11479
11480
11481
11482
11483
11484
d50284c4 11485 if test yes != "$enable_dlopen"; then
8d138742
CE
11486 enable_dlopen=unknown
11487 enable_dlopen_self=unknown
11488 enable_dlopen_self_static=unknown
11489else
11490 lt_cv_dlopen=no
11491 lt_cv_dlopen_libs=
11492
11493 case $host_os in
11494 beos*)
d50284c4 11495 lt_cv_dlopen=load_add_on
8d138742
CE
11496 lt_cv_dlopen_libs=
11497 lt_cv_dlopen_self=yes
11498 ;;
11499
11500 mingw* | pw32* | cegcc*)
d50284c4 11501 lt_cv_dlopen=LoadLibrary
8d138742
CE
11502 lt_cv_dlopen_libs=
11503 ;;
11504
11505 cygwin*)
d50284c4 11506 lt_cv_dlopen=dlopen
8d138742
CE
11507 lt_cv_dlopen_libs=
11508 ;;
11509
11510 darwin*)
d50284c4 11511 # if libdl is installed we need to link against it
b0322a85 11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 11513$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 11514if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
11515 $as_echo_n "(cached) " >&6
11516else
11517 ac_check_lib_save_LIBS=$LIBS
11518LIBS="-ldl $LIBS"
b0322a85 11519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11520/* end confdefs.h. */
11521
11522/* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525#ifdef __cplusplus
11526extern "C"
11527#endif
11528char dlopen ();
11529int
11530main ()
11531{
11532return dlopen ();
11533 ;
11534 return 0;
11535}
11536_ACEOF
b0322a85 11537if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11538 ac_cv_lib_dl_dlopen=yes
11539else
b0322a85 11540 ac_cv_lib_dl_dlopen=no
8d138742 11541fi
b0322a85
CE
11542rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11544LIBS=$ac_check_lib_save_LIBS
11545fi
b0322a85 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 11547$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 11548if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 11549 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742
CE
11550else
11551
d50284c4 11552 lt_cv_dlopen=dyld
8d138742
CE
11553 lt_cv_dlopen_libs=
11554 lt_cv_dlopen_self=yes
11555
11556fi
11557
11558 ;;
11559
d50284c4
CE
11560 tpf*)
11561 # Don't try to run any link tests for TPF. We know it's impossible
11562 # because TPF is a cross-compiler, and we know how we open DSOs.
11563 lt_cv_dlopen=dlopen
11564 lt_cv_dlopen_libs=
11565 lt_cv_dlopen_self=no
11566 ;;
11567
8d138742 11568 *)
b0322a85
CE
11569 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11570if test "x$ac_cv_func_shl_load" = xyes; then :
d50284c4 11571 lt_cv_dlopen=shl_load
8d138742 11572else
b0322a85 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 11574$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 11575if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
11576 $as_echo_n "(cached) " >&6
11577else
11578 ac_check_lib_save_LIBS=$LIBS
11579LIBS="-ldld $LIBS"
b0322a85 11580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11581/* end confdefs.h. */
11582
11583/* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586#ifdef __cplusplus
11587extern "C"
11588#endif
11589char shl_load ();
11590int
11591main ()
11592{
11593return shl_load ();
11594 ;
11595 return 0;
11596}
11597_ACEOF
b0322a85 11598if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11599 ac_cv_lib_dld_shl_load=yes
11600else
b0322a85 11601 ac_cv_lib_dld_shl_load=no
8d138742 11602fi
b0322a85
CE
11603rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11605LIBS=$ac_check_lib_save_LIBS
11606fi
b0322a85 11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 11608$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 11609if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d50284c4 11610 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
8d138742 11611else
b0322a85
CE
11612 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11613if test "x$ac_cv_func_dlopen" = xyes; then :
d50284c4 11614 lt_cv_dlopen=dlopen
8d138742 11615else
b0322a85 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 11617$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 11618if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
11619 $as_echo_n "(cached) " >&6
11620else
11621 ac_check_lib_save_LIBS=$LIBS
11622LIBS="-ldl $LIBS"
b0322a85 11623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11624/* end confdefs.h. */
d9898ee8 11625
8d138742
CE
11626/* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629#ifdef __cplusplus
11630extern "C"
11631#endif
11632char dlopen ();
11633int
11634main ()
11635{
11636return dlopen ();
11637 ;
11638 return 0;
11639}
11640_ACEOF
b0322a85 11641if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11642 ac_cv_lib_dl_dlopen=yes
11643else
b0322a85 11644 ac_cv_lib_dl_dlopen=no
8d138742 11645fi
b0322a85
CE
11646rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11648LIBS=$ac_check_lib_save_LIBS
11649fi
b0322a85 11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 11651$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 11652if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 11653 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 11654else
b0322a85 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 11656$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 11657if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
11658 $as_echo_n "(cached) " >&6
11659else
11660 ac_check_lib_save_LIBS=$LIBS
11661LIBS="-lsvld $LIBS"
b0322a85 11662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11663/* end confdefs.h. */
d9898ee8 11664
8d138742
CE
11665/* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668#ifdef __cplusplus
11669extern "C"
11670#endif
11671char dlopen ();
11672int
11673main ()
11674{
11675return dlopen ();
11676 ;
11677 return 0;
11678}
11679_ACEOF
b0322a85 11680if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11681 ac_cv_lib_svld_dlopen=yes
11682else
b0322a85 11683 ac_cv_lib_svld_dlopen=no
8d138742 11684fi
b0322a85
CE
11685rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11687LIBS=$ac_check_lib_save_LIBS
11688fi
b0322a85 11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 11690$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 11691if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d50284c4 11692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
8d138742 11693else
b0322a85 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 11695$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 11696if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
11697 $as_echo_n "(cached) " >&6
11698else
11699 ac_check_lib_save_LIBS=$LIBS
11700LIBS="-ldld $LIBS"
b0322a85 11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11702/* end confdefs.h. */
d9898ee8 11703
8d138742
CE
11704/* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707#ifdef __cplusplus
11708extern "C"
11709#endif
11710char dld_link ();
11711int
11712main ()
11713{
11714return dld_link ();
11715 ;
11716 return 0;
11717}
b0322a85
CE
11718_ACEOF
11719if ac_fn_c_try_link "$LINENO"; then :
8d138742 11720 ac_cv_lib_dld_dld_link=yes
d9898ee8 11721else
b0322a85 11722 ac_cv_lib_dld_dld_link=no
d9898ee8 11723fi
b0322a85
CE
11724rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11726LIBS=$ac_check_lib_save_LIBS
11727fi
b0322a85 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 11729$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 11730if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d50284c4 11731 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
8d138742 11732fi
d9898ee8 11733
d9898ee8 11734
8d138742 11735fi
d9898ee8 11736
d9898ee8 11737
8d138742 11738fi
d9898ee8 11739
11740
8d138742 11741fi
d9898ee8 11742
d9898ee8 11743
8d138742 11744fi
d9898ee8 11745
d9898ee8 11746
8d138742 11747fi
d9898ee8 11748
8d138742
CE
11749 ;;
11750 esac
d9898ee8 11751
d50284c4 11752 if test no = "$lt_cv_dlopen"; then
8d138742 11753 enable_dlopen=no
d50284c4
CE
11754 else
11755 enable_dlopen=yes
8d138742 11756 fi
d9898ee8 11757
8d138742
CE
11758 case $lt_cv_dlopen in
11759 dlopen)
d50284c4
CE
11760 save_CPPFLAGS=$CPPFLAGS
11761 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11762
d50284c4 11763 save_LDFLAGS=$LDFLAGS
8d138742 11764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11765
d50284c4 11766 save_LIBS=$LIBS
8d138742 11767 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11768
b0322a85 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 11770$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 11771if ${lt_cv_dlopen_self+:} false; then :
8d138742
CE
11772 $as_echo_n "(cached) " >&6
11773else
d50284c4 11774 if test yes = "$cross_compiling"; then :
8d138742
CE
11775 lt_cv_dlopen_self=cross
11776else
11777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11778 lt_status=$lt_dlunknown
11779 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11780#line $LINENO "configure"
8d138742 11781#include "confdefs.h"
d9898ee8 11782
8d138742
CE
11783#if HAVE_DLFCN_H
11784#include <dlfcn.h>
11785#endif
d9898ee8 11786
8d138742 11787#include <stdio.h>
d9898ee8 11788
8d138742
CE
11789#ifdef RTLD_GLOBAL
11790# define LT_DLGLOBAL RTLD_GLOBAL
11791#else
11792# ifdef DL_GLOBAL
11793# define LT_DLGLOBAL DL_GLOBAL
11794# else
11795# define LT_DLGLOBAL 0
11796# endif
11797#endif
d9898ee8 11798
8d138742
CE
11799/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11800 find out it does not work in some platform. */
11801#ifndef LT_DLLAZY_OR_NOW
11802# ifdef RTLD_LAZY
11803# define LT_DLLAZY_OR_NOW RTLD_LAZY
11804# else
11805# ifdef DL_LAZY
11806# define LT_DLLAZY_OR_NOW DL_LAZY
11807# else
11808# ifdef RTLD_NOW
11809# define LT_DLLAZY_OR_NOW RTLD_NOW
11810# else
11811# ifdef DL_NOW
11812# define LT_DLLAZY_OR_NOW DL_NOW
11813# else
11814# define LT_DLLAZY_OR_NOW 0
11815# endif
11816# endif
11817# endif
11818# endif
11819#endif
d9898ee8 11820
d50284c4 11821/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 11822 correspondingly for the symbols needed. */
d50284c4 11823#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
11824int fnord () __attribute__((visibility("default")));
11825#endif
11826
11827int fnord () { return 42; }
8d138742
CE
11828int main ()
11829{
11830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11831 int status = $lt_dlunknown;
d9898ee8 11832
8d138742
CE
11833 if (self)
11834 {
11835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11836 else
11837 {
11838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11839 else puts (dlerror ());
11840 }
8d138742
CE
11841 /* dlclose (self); */
11842 }
11843 else
11844 puts (dlerror ());
d9898ee8 11845
8d138742
CE
11846 return status;
11847}
11848_LT_EOF
b0322a85 11849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11850 (eval $ac_link) 2>&5
11851 ac_status=$?
b0322a85 11852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 11853 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
11854 (./conftest; exit; ) >&5 2>/dev/null
11855 lt_status=$?
11856 case x$lt_status in
11857 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11858 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11859 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11860 esac
11861 else :
11862 # compilation failed
11863 lt_cv_dlopen_self=no
11864 fi
11865fi
11866rm -fr conftest*
d9898ee8 11867
d9898ee8 11868
8d138742 11869fi
b0322a85 11870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 11871$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11872
d50284c4 11873 if test yes = "$lt_cv_dlopen_self"; then
8d138742 11874 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 11876$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 11877if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
11878 $as_echo_n "(cached) " >&6
11879else
d50284c4 11880 if test yes = "$cross_compiling"; then :
8d138742
CE
11881 lt_cv_dlopen_self_static=cross
11882else
11883 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11884 lt_status=$lt_dlunknown
11885 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11886#line $LINENO "configure"
8d138742 11887#include "confdefs.h"
d9898ee8 11888
8d138742
CE
11889#if HAVE_DLFCN_H
11890#include <dlfcn.h>
11891#endif
d9898ee8 11892
8d138742 11893#include <stdio.h>
d9898ee8 11894
8d138742
CE
11895#ifdef RTLD_GLOBAL
11896# define LT_DLGLOBAL RTLD_GLOBAL
11897#else
11898# ifdef DL_GLOBAL
11899# define LT_DLGLOBAL DL_GLOBAL
11900# else
11901# define LT_DLGLOBAL 0
11902# endif
11903#endif
d9898ee8 11904
8d138742
CE
11905/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11906 find out it does not work in some platform. */
11907#ifndef LT_DLLAZY_OR_NOW
11908# ifdef RTLD_LAZY
11909# define LT_DLLAZY_OR_NOW RTLD_LAZY
11910# else
11911# ifdef DL_LAZY
11912# define LT_DLLAZY_OR_NOW DL_LAZY
11913# else
11914# ifdef RTLD_NOW
11915# define LT_DLLAZY_OR_NOW RTLD_NOW
11916# else
11917# ifdef DL_NOW
11918# define LT_DLLAZY_OR_NOW DL_NOW
11919# else
11920# define LT_DLLAZY_OR_NOW 0
11921# endif
11922# endif
11923# endif
11924# endif
11925#endif
d9898ee8 11926
d50284c4 11927/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 11928 correspondingly for the symbols needed. */
d50284c4 11929#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
11930int fnord () __attribute__((visibility("default")));
11931#endif
11932
11933int fnord () { return 42; }
8d138742
CE
11934int main ()
11935{
11936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11937 int status = $lt_dlunknown;
d9898ee8 11938
8d138742
CE
11939 if (self)
11940 {
11941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11942 else
11943 {
11944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11945 else puts (dlerror ());
11946 }
8d138742
CE
11947 /* dlclose (self); */
11948 }
11949 else
11950 puts (dlerror ());
d9898ee8 11951
8d138742
CE
11952 return status;
11953}
11954_LT_EOF
b0322a85 11955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11956 (eval $ac_link) 2>&5
11957 ac_status=$?
b0322a85 11958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 11959 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
11960 (./conftest; exit; ) >&5 2>/dev/null
11961 lt_status=$?
11962 case x$lt_status in
11963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11965 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11966 esac
11967 else :
11968 # compilation failed
11969 lt_cv_dlopen_self_static=no
11970 fi
11971fi
11972rm -fr conftest*
d9898ee8 11973
d9898ee8 11974
8d138742 11975fi
b0322a85 11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
11977$as_echo "$lt_cv_dlopen_self_static" >&6; }
11978 fi
d9898ee8 11979
d50284c4
CE
11980 CPPFLAGS=$save_CPPFLAGS
11981 LDFLAGS=$save_LDFLAGS
11982 LIBS=$save_LIBS
8d138742
CE
11983 ;;
11984 esac
d9898ee8 11985
8d138742
CE
11986 case $lt_cv_dlopen_self in
11987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11988 *) enable_dlopen_self=unknown ;;
11989 esac
d9898ee8 11990
8d138742
CE
11991 case $lt_cv_dlopen_self_static in
11992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11993 *) enable_dlopen_self_static=unknown ;;
11994 esac
11995fi
d9898ee8 11996
d9898ee8 11997
d9898ee8 11998
d9898ee8 11999
d9898ee8 12000
d9898ee8 12001
d9898ee8 12002
d9898ee8 12003
d9898ee8 12004
d9898ee8 12005
d9898ee8 12006
d9898ee8 12007
d9898ee8 12008
d9898ee8 12009
d9898ee8 12010
d9898ee8 12011
d9898ee8 12012
8d138742
CE
12013striplib=
12014old_striplib=
b0322a85 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
12016$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12017if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
12021$as_echo "yes" >&6; }
12022else
12023# FIXME - insert some real tests, host_os isn't really good enough
12024 case $host_os in
12025 darwin*)
d50284c4 12026 if test -n "$STRIP"; then
8d138742
CE
12027 striplib="$STRIP -x"
12028 old_striplib="$STRIP -S"
b0322a85 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
12030$as_echo "yes" >&6; }
12031 else
b0322a85 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
12033$as_echo "no" >&6; }
12034 fi
12035 ;;
12036 *)
b0322a85 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
12038$as_echo "no" >&6; }
12039 ;;
12040 esac
12041fi
d9898ee8 12042
d9898ee8 12043
d9898ee8 12044
d9898ee8 12045
d9898ee8 12046
d9898ee8 12047
d9898ee8 12048
d9898ee8 12049
d9898ee8 12050
d9898ee8 12051
d9898ee8 12052
d9898ee8 12053
d50284c4 12054 # Report what library types will actually be built
b0322a85 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 12056$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 12058$as_echo "$can_build_shared" >&6; }
d9898ee8 12059
b0322a85 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742 12061$as_echo_n "checking whether to build shared libraries... " >&6; }
d50284c4 12062 test no = "$can_build_shared" && enable_shared=no
d9898ee8 12063
8d138742
CE
12064 # On AIX, shared libraries and static libraries use the same namespace, and
12065 # are all built from PIC.
12066 case $host_os in
12067 aix3*)
d50284c4 12068 test yes = "$enable_shared" && enable_static=no
8d138742
CE
12069 if test -n "$RANLIB"; then
12070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12071 postinstall_cmds='$RANLIB $lib'
12072 fi
12073 ;;
d9898ee8 12074
8d138742 12075 aix[4-9]*)
d50284c4
CE
12076 if test ia64 != "$host_cpu"; then
12077 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12078 yes,aix,yes) ;; # shared object as lib.so file only
12079 yes,svr4,*) ;; # shared object as lib.so archive member only
12080 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12081 esac
8d138742
CE
12082 fi
12083 ;;
12084 esac
b0322a85 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742 12086$as_echo "$enable_shared" >&6; }
d9898ee8 12087
b0322a85 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
12089$as_echo_n "checking whether to build static libraries... " >&6; }
12090 # Make sure either enable_shared or enable_static is yes.
d50284c4 12091 test yes = "$enable_shared" || enable_static=yes
b0322a85 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 12093$as_echo "$enable_static" >&6; }
d9898ee8 12094
d9898ee8 12095
d9898ee8 12096
d9898ee8 12097
8d138742
CE
12098fi
12099ac_ext=c
12100ac_cpp='$CPP $CPPFLAGS'
12101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12103ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 12104
d50284c4 12105CC=$lt_save_CC
d9898ee8 12106
d9898ee8 12107
d9898ee8 12108
d9898ee8 12109
d9898ee8 12110
d9898ee8 12111
d9898ee8 12112
d9898ee8 12113
d9898ee8 12114
d9898ee8 12115
d9898ee8 12116
d9898ee8 12117
d9898ee8 12118
b0322a85
CE
12119
12120
8d138742 12121 ac_config_commands="$ac_config_commands libtool"
d9898ee8 12122
d9898ee8 12123
d9898ee8 12124
d9898ee8 12125
8d138742 12126# Only expand once:
d9898ee8 12127
d9898ee8 12128
d9898ee8 12129
8d138742
CE
12130if test "$GCC" = yes
12131then
12132 CFLAGS="-Wall $CFLAGS"
12133fi
8d138742 12134CFLAGS="$CFLAGS -I$srcdir/.. -I.."
d9898ee8 12135
d9898ee8 12136
d9898ee8 12137
b0322a85
CE
12138for ac_header in sys/types.h
12139do :
12140 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12141if test "x$ac_cv_header_sys_types_h" = xyes; then :
12142 cat >>confdefs.h <<_ACEOF
12143#define HAVE_SYS_TYPES_H 1
8d138742 12144_ACEOF
d9898ee8 12145
8d138742 12146fi
d9898ee8 12147
b0322a85 12148done
d9898ee8 12149
d9898ee8 12150
d9898ee8 12151
b0322a85
CE
12152# Check whether --with-int32 was given.
12153if test "${with_int32+set}" = set; then :
12154 withval=$with_int32; int32="$withval"
8d138742 12155else
d9898ee8 12156
d9898ee8 12157
b0322a85
CE
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
12159$as_echo_n "checking for uint32_t... " >&6; }
12160
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12162/* end confdefs.h. */
b0322a85
CE
12163
12164#if HAVE_SYS_TYPES_H
12165#include <sys/types.h>
8d138742 12166#endif
d9898ee8 12167
8d138742
CE
12168int
12169main ()
12170{
d9898ee8 12171
b0322a85 12172 uint32_t i=0;
d9898ee8 12173
b0322a85
CE
12174 ;
12175 return 0;
12176}
8d138742 12177_ACEOF
b0322a85
CE
12178if ac_fn_c_try_compile "$LINENO"; then :
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180$as_echo "yes" >&6; } ; int32="uint32_t"
8d138742 12181else
d9898ee8 12182
12183
b0322a85
CE
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185$as_echo "no" >&6; }
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5
12187$as_echo_n "checking for u_int_32_t... " >&6; }
d9898ee8 12188
b0322a85 12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12190/* end confdefs.h. */
d9898ee8 12191
8d138742
CE
12192#if HAVE_SYS_TYPES_H
12193#include <sys/types.h>
12194#endif
d9898ee8 12195
8d138742
CE
12196int
12197main ()
12198{
d9898ee8 12199
b0322a85 12200 u_int32_t i=0;
d9898ee8 12201
8d138742
CE
12202 ;
12203 return 0;
12204}
12205_ACEOF
b0322a85
CE
12206if ac_fn_c_try_compile "$LINENO"; then :
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12208$as_echo "yes" >&6; }; int32="u_int32_t"
8d138742 12209else
d9898ee8 12210
12211
b0322a85
CE
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
12214
12215 # The cast to long int works around a bug in the HP C Compiler
12216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12218# This bug is HP SR number 8606223364.
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
12220$as_echo_n "checking size of unsigned... " >&6; }
12221if ${ac_cv_sizeof_unsigned+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223else
12224 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
12225
12226else
12227 if test "$ac_cv_type_unsigned" = yes; then
12228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12230as_fn_error 77 "cannot compute sizeof (unsigned)
12231See \`config.log' for more details" "$LINENO" 5; }
12232 else
12233 ac_cv_sizeof_unsigned=0
12234 fi
12235fi
12236
12237fi
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
12239$as_echo "$ac_cv_sizeof_unsigned" >&6; }
12240
d9898ee8 12241
12242
b0322a85
CE
12243cat >>confdefs.h <<_ACEOF
12244#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
8d138742 12245_ACEOF
d9898ee8 12246
12247
b0322a85
CE
12248 if test "$ac_cv_sizeof_unsigned" != 4
12249 then
12250 # The cast to long int works around a bug in the HP C Compiler
12251# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12252# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12253# This bug is HP SR number 8606223364.
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
12255$as_echo_n "checking size of unsigned long... " >&6; }
12256if ${ac_cv_sizeof_unsigned_long+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258else
12259 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
d9898ee8 12260
8d138742 12261else
b0322a85
CE
12262 if test "$ac_cv_type_unsigned_long" = yes; then
12263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12265as_fn_error 77 "cannot compute sizeof (unsigned long)
12266See \`config.log' for more details" "$LINENO" 5; }
12267 else
12268 ac_cv_sizeof_unsigned_long=0
12269 fi
12270fi
d9898ee8 12271
b0322a85
CE
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12274$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
d9898ee8 12275
d9898ee8 12276
12277
b0322a85
CE
12278cat >>confdefs.h <<_ACEOF
12279#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12280_ACEOF
12281
12282
12283 if test "$ac_cv_sizeof_unsigned_long" != 4
12284 then
12285 # The cast to long int works around a bug in the HP C Compiler
8d138742
CE
12286# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12287# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12288# This bug is HP SR number 8606223364.
b0322a85
CE
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12290$as_echo_n "checking size of unsigned short... " >&6; }
12291if ${ac_cv_sizeof_unsigned_short+:} false; then :
8d138742 12292 $as_echo_n "(cached) " >&6
d9898ee8 12293else
b0322a85 12294 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
d9898ee8 12295
d9898ee8 12296else
b0322a85
CE
12297 if test "$ac_cv_type_unsigned_short" = yes; then
12298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12300as_fn_error 77 "cannot compute sizeof (unsigned short)
12301See \`config.log' for more details" "$LINENO" 5; }
12302 else
12303 ac_cv_sizeof_unsigned_short=0
12304 fi
12305fi
d9898ee8 12306
d9898ee8 12307fi
b0322a85
CE
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12309$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
dd184caf 12310
d9898ee8 12311
d9898ee8 12312
b0322a85
CE
12313cat >>confdefs.h <<_ACEOF
12314#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
8d138742 12315_ACEOF
8d138742 12316
8d138742 12317
b0322a85
CE
12318 if test "$ac_cv_sizeof_unsigned_short" != 4
12319 then
12320 as_fn_error $? "--with-int32 option is required" "$LINENO" 5
12321 fi
12322 int32="unsigned short"
12323 else
12324 int32="unsigned long"
12325 fi
12326 else
12327 int32="unsigned"
8d138742 12328 fi
8d138742 12329
b0322a85 12330fi
8d138742 12331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 12332
d9898ee8 12333fi
8d138742 12334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
12335
12336
d9898ee8 12337fi
12338
b0322a85
CE
12339UINT32="$int32"
12340
12341
12342cat >>confdefs.h <<_ACEOF
12343#define SHA1_WORD $UINT32
d9898ee8 12344_ACEOF
b0322a85
CE
12345
12346
12347
12348# Check whether --with-int64 was given.
12349if test "${with_int64+set}" = set; then :
12350 withval=$with_int64; int64="$withval"
12351else
12352
12353
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
12355$as_echo_n "checking for uint64_t... " >&6; }
12356
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12358/* end confdefs.h. */
b0322a85
CE
12359
12360#if HAVE_SYS_TYPES_H
12361#include <sys/types.h>
12362#endif
12363
8d138742
CE
12364int
12365main ()
12366{
b0322a85
CE
12367
12368 uint64_t i=0;
d9898ee8 12369
8d138742
CE
12370 ;
12371 return 0;
12372}
d9898ee8 12373_ACEOF
b0322a85
CE
12374if ac_fn_c_try_compile "$LINENO"; then :
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376$as_echo "yes" >&6; } ; int64="uint64_t"
8d138742 12377else
d9898ee8 12378
d9898ee8 12379
b0322a85
CE
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381$as_echo "no" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_64_t" >&5
12383$as_echo_n "checking for u_int_64_t... " >&6; }
12384
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12386/* end confdefs.h. */
b0322a85
CE
12387
12388#if HAVE_SYS_TYPES_H
12389#include <sys/types.h>
12390#endif
12391
d9898ee8 12392int
12393main ()
12394{
8d138742 12395
b0322a85 12396 u_int64_t i=0;
8d138742
CE
12397
12398 ;
dd184caf 12399 return 0;
d9898ee8 12400}
12401_ACEOF
b0322a85
CE
12402if ac_fn_c_try_compile "$LINENO"; then :
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12404$as_echo "yes" >&6; }; int64="u_int64_t"
12405else
12406
12407
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
12410
12411 # The cast to long int works around a bug in the HP C Compiler
12412# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12413# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12414# This bug is HP SR number 8606223364.
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
12416$as_echo_n "checking size of unsigned... " >&6; }
12417if ${ac_cv_sizeof_unsigned+:} false; then :
12418 $as_echo_n "(cached) " >&6
d9898ee8 12419else
b0322a85 12420 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
d9898ee8 12421
b0322a85
CE
12422else
12423 if test "$ac_cv_type_unsigned" = yes; then
12424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 12425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
12426as_fn_error 77 "cannot compute sizeof (unsigned)
12427See \`config.log' for more details" "$LINENO" 5; }
8d138742
CE
12428 else
12429 ac_cv_sizeof_unsigned=0
12430 fi
d9898ee8 12431fi
b0322a85 12432
d9898ee8 12433fi
b0322a85 12434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
8d138742 12435$as_echo "$ac_cv_sizeof_unsigned" >&6; }
d9898ee8 12436
d9898ee8 12437
d9898ee8 12438
8d138742
CE
12439cat >>confdefs.h <<_ACEOF
12440#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
12441_ACEOF
d9898ee8 12442
12443
b0322a85 12444 if test "$ac_cv_sizeof_unsigned" != 8
8d138742
CE
12445 then
12446 # The cast to long int works around a bug in the HP C Compiler
12447# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12448# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12449# This bug is HP SR number 8606223364.
b0322a85 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8d138742 12451$as_echo_n "checking size of unsigned long... " >&6; }
b0322a85 12452if ${ac_cv_sizeof_unsigned_long+:} false; then :
8d138742 12453 $as_echo_n "(cached) " >&6
d9898ee8 12454else
b0322a85 12455 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8d138742 12456
d9898ee8 12457else
b0322a85
CE
12458 if test "$ac_cv_type_unsigned_long" = yes; then
12459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12461as_fn_error 77 "cannot compute sizeof (unsigned long)
12462See \`config.log' for more details" "$LINENO" 5; }
12463 else
12464 ac_cv_sizeof_unsigned_long=0
12465 fi
12466fi
d9898ee8 12467
d9898ee8 12468fi
b0322a85
CE
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12470$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
dd184caf 12471
d9898ee8 12472
d9898ee8 12473
b0322a85
CE
12474cat >>confdefs.h <<_ACEOF
12475#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
d9898ee8 12476_ACEOF
d9898ee8 12477
b0322a85
CE
12478
12479 if test "$ac_cv_sizeof_unsigned_long" != 8
12480 then
12481 # The cast to long int works around a bug in the HP C Compiler
12482# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12483# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12484# This bug is HP SR number 8606223364.
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
12486$as_echo_n "checking size of unsigned long long... " >&6; }
12487if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
12488 $as_echo_n "(cached) " >&6
d9898ee8 12489else
b0322a85 12490 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
d9898ee8 12491
b0322a85
CE
12492else
12493 if test "$ac_cv_type_unsigned_long_long" = yes; then
12494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12496as_fn_error 77 "cannot compute sizeof (unsigned long long)
12497See \`config.log' for more details" "$LINENO" 5; }
12498 else
12499 ac_cv_sizeof_unsigned_long_long=0
12500 fi
8d138742 12501fi
d9898ee8 12502
b0322a85
CE
12503fi
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
12505$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
12506
12507
12508
12509cat >>confdefs.h <<_ACEOF
12510#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
12511_ACEOF
12512
12513
12514 if test "$ac_cv_sizeof_unsigned_long_long" != 8
12515 then
12516 # The cast to long int works around a bug in the HP C Compiler
12517# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12518# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12519# This bug is HP SR number 8606223364.
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12521$as_echo_n "checking size of unsigned short... " >&6; }
12522if ${ac_cv_sizeof_unsigned_short+:} false; then :
12523 $as_echo_n "(cached) " >&6
8d138742 12524else
b0322a85 12525 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
d9898ee8 12526
b0322a85
CE
12527else
12528 if test "$ac_cv_type_unsigned_short" = yes; then
12529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12531as_fn_error 77 "cannot compute sizeof (unsigned short)
12532See \`config.log' for more details" "$LINENO" 5; }
12533 else
12534 ac_cv_sizeof_unsigned_short=0
12535 fi
8d138742 12536fi
d9898ee8 12537
8d138742 12538fi
b0322a85
CE
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12540$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
8d138742 12541
d9898ee8 12542
b0322a85
CE
12543
12544cat >>confdefs.h <<_ACEOF
12545#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
d9898ee8 12546_ACEOF
d9898ee8 12547
b0322a85
CE
12548
12549 if test "$ac_cv_sizeof_unsigned_short" != 8
12550 then
12551 as_fn_error $? "--with-int64 option is required" "$LINENO" 5
12552 fi
12553 int64="unsigned short"
12554 else
12555 int64="unsigned long long"
12556 fi
12557 else
12558 int64="unsigned long"
12559 fi
12560 else
12561 int64="unsigned"
12562 fi
12563
8d138742 12564fi
b0322a85 12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12566
b0322a85 12567fi
8d138742 12568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
12569
12570
12571fi
12572
12573UINT64="$int64"
12574
12575
12576cat >>confdefs.h <<_ACEOF
12577#define SHA512_WORD $UINT64
d9898ee8 12578_ACEOF
b0322a85
CE
12579
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12581$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12582if ${ac_cv_c_const+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584else
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12586/* end confdefs.h. */
b0322a85 12587
d9898ee8 12588int
12589main ()
12590{
8d138742 12591
b0322a85
CE
12592#ifndef __cplusplus
12593 /* Ultrix mips cc rejects this sort of thing. */
12594 typedef int charset[2];
12595 const charset cs = { 0, 0 };
12596 /* SunOS 4.1.1 cc rejects this. */
12597 char const *const *pcpcc;
12598 char **ppc;
12599 /* NEC SVR4.0.2 mips cc rejects this. */
12600 struct point {int x, y;};
12601 static struct point const zero = {0,0};
12602 /* AIX XL C 1.02.0.0 rejects this.
12603 It does not let you subtract one const X* pointer from another in
12604 an arm of an if-expression whose if-part is not a constant
12605 expression */
12606 const char *g = "string";
12607 pcpcc = &g + (g ? g-g : 0);
12608 /* HPUX 7.0 cc rejects these. */
12609 ++pcpcc;
12610 ppc = (char**) pcpcc;
12611 pcpcc = (char const *const *) ppc;
12612 { /* SCO 3.2v4 cc rejects this sort of thing. */
12613 char tx;
12614 char *t = &tx;
12615 char const *s = 0 ? (char *) 0 : (char const *) 0;
12616
12617 *t++ = 0;
12618 if (s) return 0;
12619 }
12620 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12621 int x[] = {25, 17};
12622 const int *foo = &x[0];
12623 ++foo;
12624 }
12625 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12626 typedef const int *iptr;
12627 iptr p = 0;
12628 ++p;
12629 }
12630 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12631 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12632 struct s { int j; const int *ap[3]; } bx;
12633 struct s *b = &bx; b->j = 5;
12634 }
12635 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12636 const int foo = 10;
12637 if (!foo) return 0;
12638 }
12639 return !cs[0] && !zero.x;
12640#endif
8d138742 12641
d9898ee8 12642 ;
12643 return 0;
12644}
12645_ACEOF
b0322a85
CE
12646if ac_fn_c_try_compile "$LINENO"; then :
12647 ac_cv_c_const=yes
d9898ee8 12648else
b0322a85 12649 ac_cv_c_const=no
d9898ee8 12650fi
b0322a85 12651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12652fi
b0322a85
CE
12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12654$as_echo "$ac_cv_c_const" >&6; }
12655if test $ac_cv_c_const = no; then
8d138742 12656
b0322a85 12657$as_echo "#define const /**/" >>confdefs.h
8d138742 12658
b0322a85 12659fi
8d138742 12660
b0322a85
CE
12661# Check whether --enable-largefile was given.
12662if test "${enable_largefile+set}" = set; then :
12663 enableval=$enable_largefile;
12664fi
d9898ee8 12665
b0322a85 12666if test "$enable_largefile" != no; then
8d138742 12667
b0322a85
CE
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12669$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12670if ${ac_cv_sys_largefile_CC+:} false; then :
8d138742 12671 $as_echo_n "(cached) " >&6
d9898ee8 12672else
b0322a85
CE
12673 ac_cv_sys_largefile_CC=no
12674 if test "$GCC" != yes; then
12675 ac_save_CC=$CC
12676 while :; do
12677 # IRIX 6.2 and later do not support large files by default,
12678 # so use the C compiler's -n32 option if that helps.
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12680/* end confdefs.h. */
b0322a85
CE
12681#include <sys/types.h>
12682 /* Check that off_t can represent 2**63 - 1 correctly.
12683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12684 since some C++ compilers masquerading as C compilers
12685 incorrectly reject 9223372036854775807. */
12686#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12688 && LARGE_OFF_T % 2147483647 == 1)
12689 ? 1 : -1];
d9898ee8 12690int
12691main ()
12692{
d9898ee8 12693
12694 ;
12695 return 0;
12696}
12697_ACEOF
b0322a85
CE
12698 if ac_fn_c_try_compile "$LINENO"; then :
12699 break
12700fi
12701rm -f core conftest.err conftest.$ac_objext
12702 CC="$CC -n32"
12703 if ac_fn_c_try_compile "$LINENO"; then :
12704 ac_cv_sys_largefile_CC=' -n32'; break
12705fi
12706rm -f core conftest.err conftest.$ac_objext
12707 break
12708 done
12709 CC=$ac_save_CC
12710 rm -f conftest.$ac_ext
12711 fi
12712fi
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12714$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12715 if test "$ac_cv_sys_largefile_CC" != no; then
12716 CC=$CC$ac_cv_sys_largefile_CC
12717 fi
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12720$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12721if ${ac_cv_sys_file_offset_bits+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723else
d9898ee8 12724 while :; do
b0322a85 12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12726/* end confdefs.h. */
b0322a85
CE
12727#include <sys/types.h>
12728 /* Check that off_t can represent 2**63 - 1 correctly.
12729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12730 since some C++ compilers masquerading as C compilers
12731 incorrectly reject 9223372036854775807. */
12732#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12734 && LARGE_OFF_T % 2147483647 == 1)
12735 ? 1 : -1];
d9898ee8 12736int
12737main ()
12738{
d9898ee8 12739
12740 ;
12741 return 0;
12742}
12743_ACEOF
b0322a85
CE
12744if ac_fn_c_try_compile "$LINENO"; then :
12745 ac_cv_sys_file_offset_bits=no; break
d9898ee8 12746fi
dd184caf 12747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85 12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12749/* end confdefs.h. */
b0322a85
CE
12750#define _FILE_OFFSET_BITS 64
12751#include <sys/types.h>
12752 /* Check that off_t can represent 2**63 - 1 correctly.
12753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12754 since some C++ compilers masquerading as C compilers
12755 incorrectly reject 9223372036854775807. */
12756#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12758 && LARGE_OFF_T % 2147483647 == 1)
12759 ? 1 : -1];
d9898ee8 12760int
12761main ()
12762{
d9898ee8 12763
12764 ;
12765 return 0;
12766}
12767_ACEOF
b0322a85
CE
12768if ac_fn_c_try_compile "$LINENO"; then :
12769 ac_cv_sys_file_offset_bits=64; break
12770fi
12771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 ac_cv_sys_file_offset_bits=unknown
12773 break
12774done
12775fi
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12777$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12778case $ac_cv_sys_file_offset_bits in #(
12779 no | unknown) ;;
12780 *)
12781cat >>confdefs.h <<_ACEOF
12782#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12783_ACEOF
12784;;
dd184caf 12785esac
b0322a85
CE
12786rm -rf conftest*
12787 if test $ac_cv_sys_file_offset_bits = unknown; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12789$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12790if ${ac_cv_sys_large_files+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792else
d9898ee8 12793 while :; do
b0322a85 12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12795/* end confdefs.h. */
b0322a85
CE
12796#include <sys/types.h>
12797 /* Check that off_t can represent 2**63 - 1 correctly.
12798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12799 since some C++ compilers masquerading as C compilers
12800 incorrectly reject 9223372036854775807. */
12801#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12803 && LARGE_OFF_T % 2147483647 == 1)
12804 ? 1 : -1];
d9898ee8 12805int
12806main ()
12807{
d9898ee8 12808
12809 ;
12810 return 0;
12811}
12812_ACEOF
b0322a85
CE
12813if ac_fn_c_try_compile "$LINENO"; then :
12814 ac_cv_sys_large_files=no; break
d9898ee8 12815fi
dd184caf 12816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85 12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12818/* end confdefs.h. */
b0322a85
CE
12819#define _LARGE_FILES 1
12820#include <sys/types.h>
12821 /* Check that off_t can represent 2**63 - 1 correctly.
12822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12823 since some C++ compilers masquerading as C compilers
12824 incorrectly reject 9223372036854775807. */
12825#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12827 && LARGE_OFF_T % 2147483647 == 1)
12828 ? 1 : -1];
d9898ee8 12829int
12830main ()
12831{
d9898ee8 12832
12833 ;
12834 return 0;
12835}
12836_ACEOF
b0322a85
CE
12837if ac_fn_c_try_compile "$LINENO"; then :
12838 ac_cv_sys_large_files=1; break
8d138742 12839fi
8d138742 12840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
12841 ac_cv_sys_large_files=unknown
12842 break
8d138742 12843done
b0322a85
CE
12844fi
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12846$as_echo "$ac_cv_sys_large_files" >&6; }
12847case $ac_cv_sys_large_files in #(
12848 no | unknown) ;;
12849 *)
12850cat >>confdefs.h <<_ACEOF
12851#define _LARGE_FILES $ac_cv_sys_large_files
12852_ACEOF
12853;;
8d138742 12854esac
b0322a85
CE
12855rm -rf conftest*
12856 fi
12857
12858
12859fi
12860
12861
12862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12863$as_echo_n "checking for ANSI C header files... " >&6; }
12864if ${ac_cv_header_stdc+:} false; then :
12865 $as_echo_n "(cached) " >&6
8d138742 12866else
b0322a85 12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12868/* end confdefs.h. */
8d138742 12869#include <stdlib.h>
b0322a85
CE
12870#include <stdarg.h>
12871#include <string.h>
12872#include <float.h>
12873
8d138742
CE
12874int
12875main ()
12876{
12877
8d138742
CE
12878 ;
12879 return 0;
12880}
12881_ACEOF
b0322a85
CE
12882if ac_fn_c_try_compile "$LINENO"; then :
12883 ac_cv_header_stdc=yes
8d138742 12884else
b0322a85 12885 ac_cv_header_stdc=no
8d138742 12886fi
b0322a85 12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 12888
b0322a85
CE
12889if test $ac_cv_header_stdc = yes; then
12890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892/* end confdefs.h. */
12893#include <string.h>
8d138742 12894
8d138742 12895_ACEOF
b0322a85
CE
12896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12897 $EGREP "memchr" >/dev/null 2>&1; then :
8d138742 12898
b0322a85
CE
12899else
12900 ac_cv_header_stdc=no
8d138742 12901fi
b0322a85 12902rm -f conftest*
8d138742
CE
12903
12904fi
12905
b0322a85
CE
12906if test $ac_cv_header_stdc = yes; then
12907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909/* end confdefs.h. */
12910#include <stdlib.h>
8d138742 12911
8d138742 12912_ACEOF
b0322a85
CE
12913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12914 $EGREP "free" >/dev/null 2>&1; then :
8d138742 12915
b0322a85
CE
12916else
12917 ac_cv_header_stdc=no
12918fi
12919rm -f conftest*
8d138742 12920
b0322a85
CE
12921fi
12922
12923if test $ac_cv_header_stdc = yes; then
12924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12925 if test "$cross_compiling" = yes; then :
12926 :
8d138742 12927else
b0322a85 12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12929/* end confdefs.h. */
b0322a85
CE
12930#include <ctype.h>
12931#include <stdlib.h>
12932#if ((' ' & 0x0FF) == 0x020)
12933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12935#else
12936# define ISLOWER(c) \
12937 (('a' <= (c) && (c) <= 'i') \
12938 || ('j' <= (c) && (c) <= 'r') \
12939 || ('s' <= (c) && (c) <= 'z'))
12940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12941#endif
8d138742 12942
b0322a85 12943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8d138742
CE
12944int
12945main ()
12946{
b0322a85
CE
12947 int i;
12948 for (i = 0; i < 256; i++)
12949 if (XOR (islower (i), ISLOWER (i))
12950 || toupper (i) != TOUPPER (i))
12951 return 2;
8d138742
CE
12952 return 0;
12953}
12954_ACEOF
b0322a85 12955if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 12956
b0322a85
CE
12957else
12958 ac_cv_header_stdc=no
12959fi
12960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12961 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 12962fi
dd184caf 12963
8d138742 12964fi
b0322a85
CE
12965fi
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12967$as_echo "$ac_cv_header_stdc" >&6; }
12968if test $ac_cv_header_stdc = yes; then
8d138742 12969
b0322a85 12970$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 12971
8d138742
CE
12972fi
12973
12974
8d138742
CE
12975ac_config_files="$ac_config_files Makefile"
12976
12977cat >confcache <<\_ACEOF
12978# This file is a shell script that caches the results of configure
12979# tests run on this system so they can be shared between configure
12980# scripts and configure runs, see configure's option --config-cache.
12981# It is not useful on other systems. If it contains results you don't
12982# want to keep, you may remove or edit it.
12983#
12984# config.status only pays attention to the cache file if you give it
12985# the --recheck option to rerun configure.
12986#
12987# `ac_cv_env_foo' variables (set or unset) will be overridden when
12988# loading this file, other *unset* `ac_cv_foo' will be assigned the
12989# following values.
12990
12991_ACEOF
12992
12993# The following way of writing the cache mishandles newlines in values,
12994# but we know of no workaround that is simple, portable, and efficient.
12995# So, we kill variables containing newlines.
12996# Ultrix sh set writes to stderr and can't be redirected directly,
12997# and sets the high bit in the cache file unless we assign to the vars.
12998(
12999 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13000 eval ac_val=\$$ac_var
13001 case $ac_val in #(
13002 *${as_nl}*)
13003 case $ac_var in #(
b0322a85 13004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
13005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13006 esac
13007 case $ac_var in #(
13008 _ | IFS | as_nl) ;; #(
13009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 13010 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
13011 esac ;;
13012 esac
13013 done
13014
13015 (set) 2>&1 |
13016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13017 *${as_nl}ac_space=\ *)
b0322a85
CE
13018 # `set' does not quote correctly, so add quotes: double-quote
13019 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
13020 sed -n \
13021 "s/'/'\\\\''/g;
13022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13023 ;; #(
13024 *)
13025 # `set' quotes correctly as required by POSIX, so do not add quotes.
13026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13027 ;;
13028 esac |
13029 sort
13030) |
13031 sed '
13032 /^ac_cv_env_/b end
13033 t clear
13034 :clear
13035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13036 t end
13037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13038 :end' >>confcache
13039if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13040 if test -w "$cache_file"; then
b0322a85
CE
13041 if test "x$cache_file" != "x/dev/null"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 13043$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
13044 if test ! -f "$cache_file" || test -h "$cache_file"; then
13045 cat confcache >"$cache_file"
13046 else
13047 case $cache_file in #(
13048 */* | ?:*)
13049 mv -f confcache "$cache_file"$$ &&
13050 mv -f "$cache_file"$$ "$cache_file" ;; #(
13051 *)
13052 mv -f confcache "$cache_file" ;;
13053 esac
13054 fi
13055 fi
d9898ee8 13056 else
b0322a85 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
13058$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13059 fi
13060fi
13061rm -f confcache
d9898ee8 13062
8d138742
CE
13063test "x$prefix" = xNONE && prefix=$ac_default_prefix
13064# Let make expand exec_prefix.
13065test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13066
13067DEFS=-DHAVE_CONFIG_H
13068
13069ac_libobjs=
13070ac_ltlibobjs=
d50284c4 13071U=
8d138742
CE
13072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13073 # 1. Remove the extension, and $U if already installed.
13074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13077 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
13078 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13079 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
13080done
13081LIBOBJS=$ac_libobjs
13082
13083LTLIBOBJS=$ac_ltlibobjs
13084
13085
b0322a85
CE
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13087$as_echo_n "checking that generated files are newer than configure... " >&6; }
13088 if test -n "$am_sleep_pid"; then
13089 # Hide warnings about reused PIDs.
13090 wait $am_sleep_pid 2>/dev/null
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13093$as_echo "done" >&6; }
8d138742
CE
13094 if test -n "$EXEEXT"; then
13095 am__EXEEXT_TRUE=
13096 am__EXEEXT_FALSE='#'
13097else
13098 am__EXEEXT_TRUE='#'
13099 am__EXEEXT_FALSE=
13100fi
13101
13102if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
b0322a85
CE
13103 as_fn_error $? "conditional \"HMACC\" was never defined.
13104Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
13105fi
13106if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
13107 as_fn_error $? "conditional \"AMDEP\" was never defined.
13108Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
13109fi
13110if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
13111 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13112Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
13113fi
13114
b0322a85 13115: "${CONFIG_STATUS=./config.status}"
8d138742
CE
13116ac_write_fail=0
13117ac_clean_files_save=$ac_clean_files
13118ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 13120$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
13121as_write_fail=0
13122cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
13123#! $SHELL
13124# Generated by $as_me.
13125# Run this file to recreate the current configuration.
13126# Compiler output produced by configure, useful for debugging
13127# configure, is in config.log if it exists.
13128
13129debug=false
13130ac_cs_recheck=false
13131ac_cs_silent=false
8d138742 13132
b0322a85
CE
13133SHELL=\${CONFIG_SHELL-$SHELL}
13134export SHELL
13135_ASEOF
13136cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13137## -------------------- ##
13138## M4sh Initialization. ##
13139## -------------------- ##
8d138742
CE
13140
13141# Be more Bourne compatible
13142DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 13143if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
13144 emulate sh
13145 NULLCMD=:
13146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13147 # is contrary to our usage. Disable this feature.
13148 alias -g '${1+"$@"}'='"$@"'
13149 setopt NO_GLOB_SUBST
d9898ee8 13150else
b0322a85
CE
13151 case `(set -o) 2>/dev/null` in #(
13152 *posix*) :
13153 set -o posix ;; #(
13154 *) :
13155 ;;
8d138742 13156esac
d9898ee8 13157fi
8d138742
CE
13158
13159
8d138742
CE
13160as_nl='
13161'
13162export as_nl
13163# Printing a long string crashes Solaris 7 /usr/bin/printf.
13164as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13165as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
13167# Prefer a ksh shell builtin over an external printf program on Solaris,
13168# but without wasting forks for bash or zsh.
13169if test -z "$BASH_VERSION$ZSH_VERSION" \
13170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13171 as_echo='print -r --'
13172 as_echo_n='print -rn --'
13173elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
13174 as_echo='printf %s\n'
13175 as_echo_n='printf %s'
13176else
13177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13179 as_echo_n='/usr/ucb/echo -n'
13180 else
13181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13182 as_echo_n_body='eval
13183 arg=$1;
b0322a85 13184 case $arg in #(
8d138742
CE
13185 *"$as_nl"*)
13186 expr "X$arg" : "X\\(.*\\)$as_nl";
13187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13188 esac;
13189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13190 '
13191 export as_echo_n_body
13192 as_echo_n='sh -c $as_echo_n_body as_echo'
13193 fi
13194 export as_echo_body
13195 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 13196fi
8d138742
CE
13197
13198# The user is always right.
13199if test "${PATH_SEPARATOR+set}" != set; then
13200 PATH_SEPARATOR=:
13201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13203 PATH_SEPARATOR=';'
13204 }
d9898ee8 13205fi
dd184caf 13206
dd184caf 13207
8d138742
CE
13208# IFS
13209# We need space, tab and new line, in precisely that order. Quoting is
13210# there to prevent editors from complaining about space-tab.
13211# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13212# splitting by setting IFS to empty value.)
13213IFS=" "" $as_nl"
d9898ee8 13214
8d138742 13215# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
13216as_myself=
13217case $0 in #((
8d138742
CE
13218 *[\\/]* ) as_myself=$0 ;;
13219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220for as_dir in $PATH
13221do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
b0322a85
CE
13224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13225 done
8d138742 13226IFS=$as_save_IFS
d9898ee8 13227
8d138742 13228 ;;
dd184caf 13229esac
8d138742
CE
13230# We did not find ourselves, most probably we were run as `sh COMMAND'
13231# in which case we are not to be found in the path.
13232if test "x$as_myself" = x; then
13233 as_myself=$0
d9898ee8 13234fi
8d138742
CE
13235if test ! -f "$as_myself"; then
13236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 13237 exit 1
d9898ee8 13238fi
d9898ee8 13239
b0322a85
CE
13240# Unset variables that we do not need and which cause bugs (e.g. in
13241# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13242# suppresses any "Segmentation fault" message there. '((' could
13243# trigger a bug in pdksh 5.2.14.
13244for as_var in BASH_ENV ENV MAIL MAILPATH
13245do eval test x\${$as_var+set} = xset \
13246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
13247done
13248PS1='$ '
13249PS2='> '
13250PS4='+ '
d9898ee8 13251
8d138742
CE
13252# NLS nuisances.
13253LC_ALL=C
13254export LC_ALL
13255LANGUAGE=C
13256export LANGUAGE
d9898ee8 13257
b0322a85
CE
13258# CDPATH.
13259(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13260
13261
13262# as_fn_error STATUS ERROR [LINENO LOG_FD]
13263# ----------------------------------------
13264# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13265# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13266# script with STATUS, using 1 if that was 0.
13267as_fn_error ()
13268{
13269 as_status=$1; test $as_status -eq 0 && as_status=1
13270 if test "$4"; then
13271 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13273 fi
13274 $as_echo "$as_me: error: $2" >&2
13275 as_fn_exit $as_status
13276} # as_fn_error
13277
13278
13279# as_fn_set_status STATUS
13280# -----------------------
13281# Set $? to STATUS, without forking.
13282as_fn_set_status ()
13283{
13284 return $1
13285} # as_fn_set_status
13286
13287# as_fn_exit STATUS
13288# -----------------
13289# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13290as_fn_exit ()
13291{
13292 set +e
13293 as_fn_set_status $1
13294 exit $1
13295} # as_fn_exit
13296
13297# as_fn_unset VAR
13298# ---------------
13299# Portably unset VAR.
13300as_fn_unset ()
13301{
13302 { eval $1=; unset $1;}
13303}
13304as_unset=as_fn_unset
13305# as_fn_append VAR VALUE
13306# ----------------------
13307# Append the text in VALUE to the end of the definition contained in VAR. Take
13308# advantage of any shell optimizations that allow amortized linear growth over
13309# repeated appends, instead of the typical quadratic growth present in naive
13310# implementations.
13311if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13312 eval 'as_fn_append ()
13313 {
13314 eval $1+=\$2
13315 }'
13316else
13317 as_fn_append ()
13318 {
13319 eval $1=\$$1\$2
13320 }
13321fi # as_fn_append
13322
13323# as_fn_arith ARG...
13324# ------------------
13325# Perform arithmetic evaluation on the ARGs, and store the result in the
13326# global $as_val. Take advantage of shells that can avoid forks. The arguments
13327# must be portable across $(()) and expr.
13328if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13329 eval 'as_fn_arith ()
13330 {
13331 as_val=$(( $* ))
13332 }'
13333else
13334 as_fn_arith ()
13335 {
13336 as_val=`expr "$@" || test $? -eq 1`
13337 }
13338fi # as_fn_arith
13339
13340
8d138742
CE
13341if expr a : '\(a\)' >/dev/null 2>&1 &&
13342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13343 as_expr=expr
d9898ee8 13344else
8d138742 13345 as_expr=false
d9898ee8 13346fi
dd184caf 13347
8d138742
CE
13348if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13349 as_basename=basename
d9898ee8 13350else
8d138742
CE
13351 as_basename=false
13352fi
d9898ee8 13353
b0322a85
CE
13354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13355 as_dirname=dirname
13356else
13357 as_dirname=false
13358fi
d9898ee8 13359
8d138742
CE
13360as_me=`$as_basename -- "$0" ||
13361$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13362 X"$0" : 'X\(//\)$' \| \
13363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13364$as_echo X/"$0" |
13365 sed '/^.*\/\([^/][^/]*\)\/*$/{
13366 s//\1/
13367 q
13368 }
13369 /^X\/\(\/\/\)$/{
13370 s//\1/
13371 q
13372 }
13373 /^X\/\(\/\).*/{
13374 s//\1/
13375 q
13376 }
13377 s/.*/./; q'`
13378
b0322a85
CE
13379# Avoid depending upon Character Ranges.
13380as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13382as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13383as_cr_digits='0123456789'
13384as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 13385
8d138742 13386ECHO_C= ECHO_N= ECHO_T=
b0322a85 13387case `echo -n x` in #(((((
8d138742 13388-n*)
b0322a85 13389 case `echo 'xy\c'` in
8d138742 13390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
13391 xy) ECHO_C='\c';;
13392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13393 ECHO_T=' ';;
8d138742
CE
13394 esac;;
13395*)
13396 ECHO_N='-n';;
13397esac
b0322a85
CE
13398
13399rm -f conf$$ conf$$.exe conf$$.file
13400if test -d conf$$.dir; then
13401 rm -f conf$$.dir/conf$$.file
8d138742 13402else
b0322a85
CE
13403 rm -f conf$$.dir
13404 mkdir conf$$.dir 2>/dev/null
13405fi
13406if (echo >conf$$.file) 2>/dev/null; then
13407 if ln -s conf$$.file conf$$ 2>/dev/null; then
13408 as_ln_s='ln -s'
13409 # ... but there are two gotchas:
13410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13412 # In both cases, we have to default to `cp -pR'.
13413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13414 as_ln_s='cp -pR'
13415 elif ln conf$$.file conf$$ 2>/dev/null; then
13416 as_ln_s=ln
13417 else
13418 as_ln_s='cp -pR'
13419 fi
13420else
13421 as_ln_s='cp -pR'
d9898ee8 13422fi
b0322a85
CE
13423rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13424rmdir conf$$.dir 2>/dev/null
13425
13426
13427# as_fn_mkdir_p
13428# -------------
13429# Create "$as_dir" as a directory, including parents if necessary.
13430as_fn_mkdir_p ()
13431{
13432
13433 case $as_dir in #(
13434 -*) as_dir=./$as_dir;;
13435 esac
13436 test -d "$as_dir" || eval $as_mkdir_p || {
13437 as_dirs=
13438 while :; do
13439 case $as_dir in #(
13440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13441 *) as_qdir=$as_dir;;
13442 esac
13443 as_dirs="'$as_qdir' $as_dirs"
13444 as_dir=`$as_dirname -- "$as_dir" ||
13445$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13446 X"$as_dir" : 'X\(//\)[^/]' \| \
13447 X"$as_dir" : 'X\(//\)$' \| \
13448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13449$as_echo X"$as_dir" |
13450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13451 s//\1/
13452 q
13453 }
13454 /^X\(\/\/\)[^/].*/{
13455 s//\1/
13456 q
13457 }
13458 /^X\(\/\/\)$/{
13459 s//\1/
13460 q
13461 }
13462 /^X\(\/\).*/{
13463 s//\1/
13464 q
13465 }
13466 s/.*/./; q'`
13467 test -d "$as_dir" && break
13468 done
13469 test -z "$as_dirs" || eval "mkdir $as_dirs"
13470 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
dd184caf 13471
d9898ee8 13472
b0322a85 13473} # as_fn_mkdir_p
8d138742 13474if mkdir -p . 2>/dev/null; then
b0322a85 13475 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
13476else
13477 test -d ./-p && rmdir ./-p
13478 as_mkdir_p=false
d9898ee8 13479fi
dd184caf 13480
b0322a85
CE
13481
13482# as_fn_executable_p FILE
13483# -----------------------
13484# Test if FILE is an executable regular file.
13485as_fn_executable_p ()
13486{
13487 test -f "$1" && test -x "$1"
13488} # as_fn_executable_p
13489as_test_x='test -x'
13490as_executable_p=as_fn_executable_p
dd184caf 13491
8d138742
CE
13492# Sed expression to map a string onto a valid CPP name.
13493as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13494
8d138742
CE
13495# Sed expression to map a string onto a valid variable name.
13496as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13497
dd184caf 13498
8d138742 13499exec 6>&1
b0322a85
CE
13500## ----------------------------------- ##
13501## Main body of $CONFIG_STATUS script. ##
13502## ----------------------------------- ##
13503_ASEOF
13504test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 13505
b0322a85
CE
13506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13507# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
13508# report actual input values of CONFIG_FILES etc. instead of their
13509# values after options handling.
13510ac_log="
b0322a85
CE
13511This file was extended by libsha1 $as_me 1.21, which was
13512generated by GNU Autoconf 2.69. Invocation command line was
8d138742
CE
13513
13514 CONFIG_FILES = $CONFIG_FILES
13515 CONFIG_HEADERS = $CONFIG_HEADERS
13516 CONFIG_LINKS = $CONFIG_LINKS
13517 CONFIG_COMMANDS = $CONFIG_COMMANDS
13518 $ $0 $@
13519
13520on `(hostname || uname -n) 2>/dev/null | sed 1q`
13521"
d9898ee8 13522
d9898ee8 13523_ACEOF
8d138742
CE
13524
13525case $ac_config_files in *"
13526"*) set x $ac_config_files; shift; ac_config_files=$*;;
dd184caf 13527esac
8d138742
CE
13528
13529case $ac_config_headers in *"
13530"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
dd184caf 13531esac
d9898ee8 13532
dd184caf 13533
8d138742
CE
13534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13535# Files that config.status was made for.
13536config_files="$ac_config_files"
13537config_headers="$ac_config_headers"
13538config_commands="$ac_config_commands"
13539
13540_ACEOF
13541
13542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13543ac_cs_usage="\
b0322a85
CE
13544\`$as_me' instantiates files and other configuration actions
13545from templates according to the current configuration. Unless the files
13546and actions are specified as TAGs, all are instantiated by default.
8d138742 13547
b0322a85 13548Usage: $0 [OPTION]... [TAG]...
8d138742
CE
13549
13550 -h, --help print this help, then exit
13551 -V, --version print version number and configuration settings, then exit
b0322a85 13552 --config print configuration, then exit
8d138742
CE
13553 -q, --quiet, --silent
13554 do not print progress messages
13555 -d, --debug don't remove temporary files
13556 --recheck update $as_me by reconfiguring in the same conditions
13557 --file=FILE[:TEMPLATE]
13558 instantiate the configuration file FILE
13559 --header=FILE[:TEMPLATE]
13560 instantiate the configuration header FILE
13561
13562Configuration files:
13563$config_files
13564
13565Configuration headers:
13566$config_headers
13567
13568Configuration commands:
13569$config_commands
dd184caf 13570
b0322a85 13571Report bugs to <courier-users@lists.sourceforge.net>."
dd184caf 13572
d9898ee8 13573_ACEOF
8d138742 13574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13575ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742 13576ac_cs_version="\\
b0322a85
CE
13577libsha1 config.status 1.21
13578configured by $0, generated by GNU Autoconf 2.69,
13579 with options \\"\$ac_cs_config\\"
d9898ee8 13580
b0322a85 13581Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
13582This config.status script is free software; the Free Software Foundation
13583gives unlimited permission to copy, distribute and modify it."
d9898ee8 13584
8d138742
CE
13585ac_pwd='$ac_pwd'
13586srcdir='$srcdir'
13587INSTALL='$INSTALL'
13588MKDIR_P='$MKDIR_P'
13589AWK='$AWK'
13590test -n "\$AWK" || AWK=awk
d9898ee8 13591_ACEOF
d9898ee8 13592
8d138742
CE
13593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13594# The default lists apply if the user does not specify any file.
13595ac_need_defaults=:
13596while test $# != 0
13597do
13598 case $1 in
b0322a85 13599 --*=?*)
8d138742
CE
13600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13602 ac_shift=:
13603 ;;
b0322a85
CE
13604 --*=)
13605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13606 ac_optarg=
13607 ac_shift=:
13608 ;;
8d138742
CE
13609 *)
13610 ac_option=$1
13611 ac_optarg=$2
13612 ac_shift=shift
13613 ;;
13614 esac
dd184caf 13615
8d138742
CE
13616 case $ac_option in
13617 # Handling of the options.
13618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13619 ac_cs_recheck=: ;;
13620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13621 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
13622 --config | --confi | --conf | --con | --co | --c )
13623 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
13624 --debug | --debu | --deb | --de | --d | -d )
13625 debug=: ;;
13626 --file | --fil | --fi | --f )
13627 $ac_shift
13628 case $ac_optarg in
13629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 13630 '') as_fn_error $? "missing file argument" ;;
8d138742 13631 esac
b0322a85 13632 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
13633 ac_need_defaults=false;;
13634 --header | --heade | --head | --hea )
13635 $ac_shift
13636 case $ac_optarg in
13637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13638 esac
b0322a85 13639 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
13640 ac_need_defaults=false;;
13641 --he | --h)
13642 # Conflict between --help and --header
b0322a85
CE
13643 as_fn_error $? "ambiguous option: \`$1'
13644Try \`$0 --help' for more information.";;
8d138742
CE
13645 --help | --hel | -h )
13646 $as_echo "$ac_cs_usage"; exit ;;
13647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13649 ac_cs_silent=: ;;
13650
13651 # This is an error.
b0322a85
CE
13652 -*) as_fn_error $? "unrecognized option: \`$1'
13653Try \`$0 --help' for more information." ;;
8d138742 13654
b0322a85 13655 *) as_fn_append ac_config_targets " $1"
8d138742
CE
13656 ac_need_defaults=false ;;
13657
13658 esac
13659 shift
13660done
13661
13662ac_configure_extra_args=
13663
13664if $ac_cs_silent; then
13665 exec 6>/dev/null
13666 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 13667fi
d9898ee8 13668
d9898ee8 13669_ACEOF
8d138742
CE
13670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13671if \$ac_cs_recheck; then
b0322a85 13672 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
13673 shift
13674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13675 CONFIG_SHELL='$SHELL'
13676 export CONFIG_SHELL
13677 exec "\$@"
13678fi
d9898ee8 13679
d9898ee8 13680_ACEOF
8d138742
CE
13681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13682exec 5>>config.log
d9898ee8 13683{
8d138742
CE
13684 echo
13685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13686## Running $as_me. ##
13687_ASBOX
13688 $as_echo "$ac_log"
13689} >&5
d9898ee8 13690
d9898ee8 13691_ACEOF
8d138742
CE
13692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13693#
13694# INIT-COMMANDS
13695#
13696AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13697
dd184caf 13698
8d138742
CE
13699# The HP-UX ksh and POSIX shell print the target directory to stdout
13700# if CDPATH is set.
13701(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13702
8d138742
CE
13703sed_quote_subst='$sed_quote_subst'
13704double_quote_subst='$double_quote_subst'
13705delay_variable_subst='$delay_variable_subst'
b0322a85
CE
13706macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13707macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13708enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13709enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13710pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13711enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
d50284c4 13712shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13713SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13714ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13715PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13716host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13717host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13718host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13719build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13720build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13721build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13722SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13723Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13724GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13725EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13726FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13727LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13728NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13729LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13730max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13731ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13732exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13733lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13734lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13735lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13736lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13737lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13738reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13739reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13740OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13741deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13742file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13743file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13744want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13745DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13746sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13747AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13748AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13749archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13750STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13751RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13752old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13753old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13754old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13755lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13756CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13757CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13758compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13759GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13760lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13761lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
d50284c4 13762lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13763lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13764lt_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"`'
d50284c4 13765lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13766nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13767lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
d50284c4 13768lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13769objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13770MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13771lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13772lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13773lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13774lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13775lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13776need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13777MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13778DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13779NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13780LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13781OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13782OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13783libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13784shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13785extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13786archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13787enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13788export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13789whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13790compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13791old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13792old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13793archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13794archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13795module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13796module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13797with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13798allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13799no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13800hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13801hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13802hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13803hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13804hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13805hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13806hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13807inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13808link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13809always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13810export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13811exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13812include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13813prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13814postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13815file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13816variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13817need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13818need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13819version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13820runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13821shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13822shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13823libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13824library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13825soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13826install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13827postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13828postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13829finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13830finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13831hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13832sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
d50284c4
CE
13833configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13834configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13835hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13836enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13837enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13838enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13839old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13840striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8d138742
CE
13841
13842LTCC='$LTCC'
13843LTCFLAGS='$LTCFLAGS'
13844compiler='$compiler_DEFAULT'
13845
b0322a85
CE
13846# A function that is used when there is no print builtin or printf.
13847func_fallback_echo ()
13848{
13849 eval 'cat <<_LTECHO_EOF
13850\$1
13851_LTECHO_EOF'
13852}
13853
8d138742 13854# Quote evaled strings.
b0322a85
CE
13855for var in SHELL \
13856ECHO \
13857PATH_SEPARATOR \
13858SED \
8d138742
CE
13859GREP \
13860EGREP \
13861FGREP \
13862LD \
13863NM \
13864LN_S \
13865lt_SP2NL \
13866lt_NL2SP \
13867reload_flag \
13868OBJDUMP \
13869deplibs_check_method \
13870file_magic_cmd \
b0322a85
CE
13871file_magic_glob \
13872want_nocaseglob \
13873DLLTOOL \
13874sharedlib_from_linklib_cmd \
8d138742
CE
13875AR \
13876AR_FLAGS \
b0322a85 13877archiver_list_spec \
8d138742
CE
13878STRIP \
13879RANLIB \
13880CC \
13881CFLAGS \
13882compiler \
13883lt_cv_sys_global_symbol_pipe \
13884lt_cv_sys_global_symbol_to_cdecl \
d50284c4 13885lt_cv_sys_global_symbol_to_import \
8d138742
CE
13886lt_cv_sys_global_symbol_to_c_name_address \
13887lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d50284c4 13888lt_cv_nm_interface \
b0322a85 13889nm_file_list_spec \
d50284c4 13890lt_cv_truncate_bin \
8d138742 13891lt_prog_compiler_no_builtin_flag \
8d138742 13892lt_prog_compiler_pic \
b0322a85 13893lt_prog_compiler_wl \
8d138742
CE
13894lt_prog_compiler_static \
13895lt_cv_prog_compiler_c_o \
13896need_locks \
b0322a85 13897MANIFEST_TOOL \
8d138742
CE
13898DSYMUTIL \
13899NMEDIT \
13900LIPO \
13901OTOOL \
13902OTOOL64 \
13903shrext_cmds \
13904export_dynamic_flag_spec \
13905whole_archive_flag_spec \
13906compiler_needs_object \
13907with_gnu_ld \
13908allow_undefined_flag \
13909no_undefined_flag \
13910hardcode_libdir_flag_spec \
8d138742 13911hardcode_libdir_separator \
8d138742
CE
13912exclude_expsyms \
13913include_expsyms \
13914file_list_spec \
13915variables_saved_for_relink \
13916libname_spec \
13917library_names_spec \
13918soname_spec \
b0322a85 13919install_override_mode \
8d138742
CE
13920finish_eval \
13921old_striplib \
13922striplib; do
b0322a85 13923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13924 *[\\\\\\\`\\"\\\$]*)
d50284c4 13925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
13926 ;;
13927 *)
13928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13929 ;;
13930 esac
13931done
d9898ee8 13932
8d138742
CE
13933# Double-quote double-evaled strings.
13934for var in reload_cmds \
13935old_postinstall_cmds \
13936old_postuninstall_cmds \
13937old_archive_cmds \
13938extract_expsyms_cmds \
13939old_archive_from_new_cmds \
13940old_archive_from_expsyms_cmds \
13941archive_cmds \
13942archive_expsym_cmds \
13943module_cmds \
13944module_expsym_cmds \
13945export_symbols_cmds \
13946prelink_cmds \
b0322a85 13947postlink_cmds \
8d138742
CE
13948postinstall_cmds \
13949postuninstall_cmds \
13950finish_cmds \
13951sys_lib_search_path_spec \
d50284c4
CE
13952configure_time_dlsearch_path \
13953configure_time_lt_sys_library_path; do
b0322a85 13954 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13955 *[\\\\\\\`\\"\\\$]*)
d50284c4 13956 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
13957 ;;
13958 *)
13959 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13960 ;;
13961 esac
13962done
d9898ee8 13963
8d138742 13964ac_aux_dir='$ac_aux_dir'
8d138742 13965
d50284c4 13966# See if we are running on zsh, and set the options that allow our
8d138742 13967# commands through without removal of \ escapes INIT.
d50284c4 13968if test -n "\${ZSH_VERSION+set}"; then
8d138742 13969 setopt NO_GLOB_SUBST
d9898ee8 13970fi
dd184caf 13971
d9898ee8 13972
8d138742
CE
13973 PACKAGE='$PACKAGE'
13974 VERSION='$VERSION'
8d138742
CE
13975 RM='$RM'
13976 ofile='$ofile'
13977
13978
dd184caf 13979
dd184caf 13980
d9898ee8 13981_ACEOF
8d138742
CE
13982
13983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984
13985# Handling of arguments.
13986for ac_config_target in $ac_config_targets
13987do
13988 case $ac_config_target in
13989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13990 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13991 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13993
b0322a85 13994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
13995 esac
13996done
13997
13998
13999# If the user did not use the arguments to specify the items to instantiate,
14000# then the envvar interface is used. Set only those that are not.
14001# We use the long form for the default assignment because of an extremely
14002# bizarre bug on SunOS 4.1.3.
14003if $ac_need_defaults; then
14004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14007fi
14008
14009# Have a temporary directory for convenience. Make it in the build tree
14010# simply because there is no reason against having it here, and in addition,
14011# creating and moving files from /tmp can sometimes cause problems.
14012# Hook for its removal unless debugging.
14013# Note that there is a small window in which the directory will not be cleaned:
14014# after its creation but before its name has been assigned to `$tmp'.
14015$debug ||
d9898ee8 14016{
b0322a85 14017 tmp= ac_tmp=
8d138742 14018 trap 'exit_status=$?
b0322a85
CE
14019 : "${ac_tmp:=$tmp}"
14020 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 14021' 0
b0322a85 14022 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
14023}
14024# Create a (secure) tmp directory for tmp files.
d9898ee8 14025
8d138742
CE
14026{
14027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 14028 test -d "$tmp"
8d138742
CE
14029} ||
14030{
14031 tmp=./conf$$-$RANDOM
14032 (umask 077 && mkdir "$tmp")
b0322a85
CE
14033} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14034ac_tmp=$tmp
d9898ee8 14035
8d138742
CE
14036# Set up the scripts for CONFIG_FILES section.
14037# No need to generate them if there are no CONFIG_FILES.
14038# This happens for instance with `./config.status config.h'.
14039if test -n "$CONFIG_FILES"; then
dd184caf 14040
8d138742 14041
b0322a85
CE
14042ac_cr=`echo X | tr X '\015'`
14043# On cygwin, bash can eat \r inside `` if the user requested igncr.
14044# But we know of no other shell where ac_cr would be empty at this
14045# point, so we can use a bashism as a fallback.
14046if test "x$ac_cr" = x; then
14047 eval ac_cr=\$\'\\r\'
14048fi
8d138742
CE
14049ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14050if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14051 ac_cs_awk_cr='\\r'
d9898ee8 14052else
8d138742
CE
14053 ac_cs_awk_cr=$ac_cr
14054fi
14055
b0322a85 14056echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d9898ee8 14057_ACEOF
8d138742
CE
14058
14059
d9898ee8 14060{
8d138742
CE
14061 echo "cat >conf$$subs.awk <<_ACEOF" &&
14062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14063 echo "_ACEOF"
14064} >conf$$subs.sh ||
b0322a85
CE
14065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14066ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
14067ac_delim='%!_!# '
14068for ac_last_try in false false false false false :; do
14069 . ./conf$$subs.sh ||
b0322a85 14070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 14071
8d138742
CE
14072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14073 if test $ac_delim_n = $ac_delim_num; then
14074 break
14075 elif $ac_last_try; then
b0322a85 14076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 14077 else
8d138742
CE
14078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14079 fi
14080done
14081rm -f conf$$subs.sh
14082
14083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 14084cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
14085_ACEOF
14086sed -n '
14087h
14088s/^/S["/; s/!.*/"]=/
14089p
14090g
14091s/^[^!]*!//
14092:repl
14093t repl
14094s/'"$ac_delim"'$//
14095t delim
14096:nl
14097h
b0322a85 14098s/\(.\{148\}\)..*/\1/
8d138742
CE
14099t more1
14100s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14101p
14102n
14103b repl
14104:more1
14105s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14106p
14107g
14108s/.\{148\}//
14109t nl
14110:delim
14111h
b0322a85 14112s/\(.\{148\}\)..*/\1/
8d138742
CE
14113t more2
14114s/["\\]/\\&/g; s/^/"/; s/$/"/
14115p
14116b
14117:more2
14118s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14119p
14120g
14121s/.\{148\}//
14122t delim
14123' <conf$$subs.awk | sed '
14124/^[^""]/{
14125 N
14126 s/\n//
14127}
14128' >>$CONFIG_STATUS || ac_write_fail=1
14129rm -f conf$$subs.awk
14130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14131_ACAWK
b0322a85 14132cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
14133 for (key in S) S_is_set[key] = 1
14134 FS = "\a"
d9898ee8 14135
d9898ee8 14136}
8d138742
CE
14137{
14138 line = $ 0
14139 nfields = split(line, field, "@")
14140 substed = 0
14141 len = length(field[1])
14142 for (i = 2; i < nfields; i++) {
14143 key = field[i]
14144 keylen = length(key)
14145 if (S_is_set[key]) {
14146 value = S[key]
14147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14148 len += length(value) + length(field[++i])
14149 substed = 1
14150 } else
14151 len += 1 + keylen
14152 }
14153
14154 print line
14155}
14156
14157_ACAWK
d9898ee8 14158_ACEOF
8d138742
CE
14159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14160if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14161 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 14162else
8d138742 14163 cat
b0322a85
CE
14164fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14165 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 14166_ACEOF
d9898ee8 14167
b0322a85
CE
14168# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14169# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
14170# trailing colons and then remove the whole line if VPATH becomes empty
14171# (actually we leave an empty line to preserve line numbers).
14172if test "x$srcdir" = x.; then
b0322a85
CE
14173 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14174h
14175s///
14176s/^/:/
14177s/[ ]*$/:/
14178s/:\$(srcdir):/:/g
14179s/:\${srcdir}:/:/g
14180s/:@srcdir@:/:/g
14181s/^:*//
8d138742 14182s/:*$//
b0322a85
CE
14183x
14184s/\(=[ ]*\).*/\1/
14185G
14186s/\n//
8d138742
CE
14187s/^[^=]*=[ ]*$//
14188}'
d9898ee8 14189fi
dd184caf 14190
8d138742
CE
14191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192fi # test -n "$CONFIG_FILES"
dd184caf 14193
8d138742
CE
14194# Set up the scripts for CONFIG_HEADERS section.
14195# No need to generate them if there are no CONFIG_HEADERS.
14196# This happens for instance with `./config.status Makefile'.
14197if test -n "$CONFIG_HEADERS"; then
b0322a85 14198cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742 14199BEGIN {
d9898ee8 14200_ACEOF
14201
8d138742
CE
14202# Transform confdefs.h into an awk script `defines.awk', embedded as
14203# here-document in config.status, that substitutes the proper values into
14204# config.h.in to produce config.h.
d9898ee8 14205
8d138742
CE
14206# Create a delimiter string that does not exist in confdefs.h, to ease
14207# handling of long lines.
14208ac_delim='%!_!# '
14209for ac_last_try in false false :; do
b0322a85
CE
14210 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14211 if test -z "$ac_tt"; then
8d138742
CE
14212 break
14213 elif $ac_last_try; then
b0322a85 14214 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
14215 else
14216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14217 fi
14218done
14219
14220# For the awk script, D is an array of macro values keyed by name,
14221# likewise P contains macro parameters if any. Preserve backslash
14222# newline sequences.
14223
14224ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14225sed -n '
14226s/.\{148\}/&'"$ac_delim"'/g
14227t rset
14228:rset
14229s/^[ ]*#[ ]*define[ ][ ]*/ /
14230t def
14231d
14232:def
14233s/\\$//
14234t bsnl
14235s/["\\]/\\&/g
14236s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14237D["\1"]=" \3"/p
14238s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14239d
14240:bsnl
14241s/["\\]/\\&/g
14242s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14243D["\1"]=" \3\\\\\\n"\\/p
14244t cont
14245s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14246t cont
14247d
14248:cont
14249n
14250s/.\{148\}/&'"$ac_delim"'/g
14251t clear
14252:clear
14253s/\\$//
14254t bsnlc
14255s/["\\]/\\&/g; s/^/"/; s/$/"/p
14256d
14257:bsnlc
14258s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14259b cont
14260' <confdefs.h | sed '
14261s/'"$ac_delim"'/"\\\
14262"/g' >>$CONFIG_STATUS || ac_write_fail=1
14263
14264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14265 for (key in D) D_is_set[key] = 1
14266 FS = "\a"
14267}
14268/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14269 line = \$ 0
14270 split(line, arg, " ")
14271 if (arg[1] == "#") {
14272 defundef = arg[2]
14273 mac1 = arg[3]
14274 } else {
14275 defundef = substr(arg[1], 2)
14276 mac1 = arg[2]
14277 }
14278 split(mac1, mac2, "(") #)
14279 macro = mac2[1]
14280 prefix = substr(line, 1, index(line, defundef) - 1)
14281 if (D_is_set[macro]) {
14282 # Preserve the white space surrounding the "#".
14283 print prefix "define", macro P[macro] D[macro]
14284 next
14285 } else {
14286 # Replace #undef with comments. This is necessary, for example,
14287 # in the case of _POSIX_SOURCE, which is predefined and required
14288 # on some systems where configure will not decide to define it.
14289 if (defundef == "undef") {
14290 print "/*", prefix defundef, macro, "*/"
14291 next
14292 }
14293 }
14294}
14295{ print }
14296_ACAWK
14297_ACEOF
14298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 14299 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 14300fi # test -n "$CONFIG_HEADERS"
d9898ee8 14301
dd184caf 14302
8d138742
CE
14303eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14304shift
14305for ac_tag
14306do
14307 case $ac_tag in
14308 :[FHLC]) ac_mode=$ac_tag; continue;;
14309 esac
14310 case $ac_mode$ac_tag in
14311 :[FHL]*:*);;
b0322a85 14312 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
14313 :[FH]-) ac_tag=-:-;;
14314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14315 esac
14316 ac_save_IFS=$IFS
14317 IFS=:
14318 set x $ac_tag
14319 IFS=$ac_save_IFS
14320 shift
14321 ac_file=$1
14322 shift
d9898ee8 14323
8d138742
CE
14324 case $ac_mode in
14325 :L) ac_source=$1;;
14326 :[FH])
14327 ac_file_inputs=
14328 for ac_f
14329 do
14330 case $ac_f in
b0322a85 14331 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
14332 *) # Look for the file first in the build tree, then in the source tree
14333 # (if the path is not absolute). The absolute path cannot be DOS-style,
14334 # because $ac_f cannot contain `:'.
14335 test -f "$ac_f" ||
14336 case $ac_f in
14337 [\\/$]*) false;;
14338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14339 esac ||
b0322a85 14340 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
14341 esac
14342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 14343 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 14344 done
d9898ee8 14345
8d138742
CE
14346 # Let's still pretend it is `configure' which instantiates (i.e., don't
14347 # use $as_me), people would be surprised to read:
14348 # /* config.h. Generated by config.status. */
14349 configure_input='Generated from '`
14350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14351 `' by configure.'
14352 if test x"$ac_file" != x-; then
14353 configure_input="$ac_file. $configure_input"
b0322a85 14354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
14355$as_echo "$as_me: creating $ac_file" >&6;}
14356 fi
14357 # Neutralize special characters interpreted by sed in replacement strings.
14358 case $configure_input in #(
14359 *\&* | *\|* | *\\* )
14360 ac_sed_conf_input=`$as_echo "$configure_input" |
14361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14362 *) ac_sed_conf_input=$configure_input;;
14363 esac
dd184caf 14364
8d138742 14365 case $ac_tag in
b0322a85
CE
14366 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
14368 esac
14369 ;;
14370 esac
dd184caf 14371
8d138742
CE
14372 ac_dir=`$as_dirname -- "$ac_file" ||
14373$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14374 X"$ac_file" : 'X\(//\)[^/]' \| \
14375 X"$ac_file" : 'X\(//\)$' \| \
14376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14377$as_echo X"$ac_file" |
14378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14379 s//\1/
14380 q
14381 }
14382 /^X\(\/\/\)[^/].*/{
14383 s//\1/
14384 q
14385 }
14386 /^X\(\/\/\)$/{
14387 s//\1/
14388 q
14389 }
14390 /^X\(\/\).*/{
14391 s//\1/
14392 q
14393 }
14394 s/.*/./; q'`
b0322a85 14395 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 14396 ac_builddir=.
d9898ee8 14397
8d138742
CE
14398case "$ac_dir" in
14399.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14400*)
14401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14402 # A ".." for each directory in $ac_dir_suffix.
14403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14404 case $ac_top_builddir_sub in
14405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14407 esac ;;
14408esac
14409ac_abs_top_builddir=$ac_pwd
14410ac_abs_builddir=$ac_pwd$ac_dir_suffix
14411# for backward compatibility:
14412ac_top_builddir=$ac_top_build_prefix
d9898ee8 14413
8d138742
CE
14414case $srcdir in
14415 .) # We are building in place.
14416 ac_srcdir=.
14417 ac_top_srcdir=$ac_top_builddir_sub
14418 ac_abs_top_srcdir=$ac_pwd ;;
14419 [\\/]* | ?:[\\/]* ) # Absolute name.
14420 ac_srcdir=$srcdir$ac_dir_suffix;
14421 ac_top_srcdir=$srcdir
14422 ac_abs_top_srcdir=$srcdir ;;
14423 *) # Relative name.
14424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14425 ac_top_srcdir=$ac_top_build_prefix$srcdir
14426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14427esac
14428ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 14429
d9898ee8 14430
8d138742
CE
14431 case $ac_mode in
14432 :F)
14433 #
14434 # CONFIG_FILE
14435 #
d9898ee8 14436
8d138742
CE
14437 case $INSTALL in
14438 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14439 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14440 esac
14441 ac_MKDIR_P=$MKDIR_P
14442 case $MKDIR_P in
14443 [\\/$]* | ?:[\\/]* ) ;;
14444 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14445 esac
d9898ee8 14446_ACEOF
d9898ee8 14447
8d138742
CE
14448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14449# If the template does not know about datarootdir, expand it.
14450# FIXME: This hack should be removed a few years after 2.60.
14451ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
14452ac_sed_dataroot='
14453/datarootdir/ {
14454 p
14455 q
14456}
14457/@datadir@/p
14458/@docdir@/p
14459/@infodir@/p
14460/@localedir@/p
b0322a85 14461/@mandir@/p'
8d138742
CE
14462case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14463*datarootdir*) ac_datarootdir_seen=yes;;
14464*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742
CE
14466$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14467_ACEOF
14468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14469 ac_datarootdir_hack='
14470 s&@datadir@&$datadir&g
14471 s&@docdir@&$docdir&g
14472 s&@infodir@&$infodir&g
14473 s&@localedir@&$localedir&g
14474 s&@mandir@&$mandir&g
b0322a85 14475 s&\\\${datarootdir}&$datarootdir&g' ;;
8d138742
CE
14476esac
14477_ACEOF
14478
14479# Neutralize VPATH when `$srcdir' = `.'.
14480# Shell code in configure.ac might set extrasub.
14481# FIXME: do we really want to maintain this feature?
14482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14483ac_sed_extra="$ac_vpsub
14484$extrasub
14485_ACEOF
14486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14487:t
14488/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14489s|@configure_input@|$ac_sed_conf_input|;t t
14490s&@top_builddir@&$ac_top_builddir_sub&;t t
14491s&@top_build_prefix@&$ac_top_build_prefix&;t t
14492s&@srcdir@&$ac_srcdir&;t t
14493s&@abs_srcdir@&$ac_abs_srcdir&;t t
14494s&@top_srcdir@&$ac_top_srcdir&;t t
14495s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14496s&@builddir@&$ac_builddir&;t t
14497s&@abs_builddir@&$ac_abs_builddir&;t t
14498s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14499s&@INSTALL@&$ac_INSTALL&;t t
14500s&@MKDIR_P@&$ac_MKDIR_P&;t t
14501$ac_datarootdir_hack
14502"
b0322a85
CE
14503eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14504 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 14505
8d138742 14506test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
14507 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14509 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14511which seems to be undefined. Please make sure it is defined" >&5
8d138742 14512$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 14513which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 14514
b0322a85 14515 rm -f "$ac_tmp/stdin"
8d138742 14516 case $ac_file in
b0322a85
CE
14517 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14518 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 14519 esac \
b0322a85 14520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
14521 ;;
14522 :H)
14523 #
14524 # CONFIG_HEADER
14525 #
14526 if test x"$ac_file" != x-; then
14527 {
14528 $as_echo "/* $configure_input */" \
b0322a85
CE
14529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14530 } >"$ac_tmp/config.h" \
14531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14532 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
14534$as_echo "$as_me: $ac_file is unchanged" >&6;}
14535 else
14536 rm -f "$ac_file"
b0322a85
CE
14537 mv "$ac_tmp/config.h" "$ac_file" \
14538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
14539 fi
14540 else
14541 $as_echo "/* $configure_input */" \
b0322a85
CE
14542 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14543 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
14544 fi
14545# Compute "$ac_file"'s index in $config_headers.
14546_am_arg="$ac_file"
14547_am_stamp_count=1
14548for _am_header in $config_headers :; do
14549 case $_am_header in
14550 $_am_arg | $_am_arg:* )
14551 break ;;
14552 * )
14553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14554 esac
14555done
14556echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14557$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14558 X"$_am_arg" : 'X\(//\)[^/]' \| \
14559 X"$_am_arg" : 'X\(//\)$' \| \
14560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14561$as_echo X"$_am_arg" |
14562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14563 s//\1/
14564 q
14565 }
14566 /^X\(\/\/\)[^/].*/{
14567 s//\1/
14568 q
14569 }
14570 /^X\(\/\/\)$/{
14571 s//\1/
14572 q
14573 }
14574 /^X\(\/\).*/{
14575 s//\1/
14576 q
14577 }
14578 s/.*/./; q'`/stamp-h$_am_stamp_count
14579 ;;
dd184caf 14580
b0322a85 14581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
14582$as_echo "$as_me: executing $ac_file commands" >&6;}
14583 ;;
14584 esac
d9898ee8 14585
d9898ee8 14586
8d138742
CE
14587 case $ac_file$ac_mode in
14588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 14589 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
14590 # are listed without --file. Let's play safe and only enable the eval
14591 # if we detect the quoting.
14592 case $CONFIG_FILES in
14593 *\'*) eval set x "$CONFIG_FILES" ;;
14594 *) set x $CONFIG_FILES ;;
14595 esac
14596 shift
14597 for mf
14598 do
14599 # Strip MF so we end up with the name of the file.
14600 mf=`echo "$mf" | sed -e 's/:.*$//'`
14601 # Check whether this is an Automake generated Makefile or not.
b0322a85 14602 # We used to match only the files named 'Makefile.in', but
8d138742
CE
14603 # some people rename them; so instead we look at the file content.
14604 # Grep'ing the first line is not enough: some people post-process
14605 # each Makefile.in and add a new line on top of each file to say so.
14606 # Grep'ing the whole file is not good either: AIX grep has a line
14607 # limit of 2048, but all sed's we know have understand at least 4000.
14608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14609 dirpart=`$as_dirname -- "$mf" ||
14610$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14611 X"$mf" : 'X\(//\)[^/]' \| \
14612 X"$mf" : 'X\(//\)$' \| \
14613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14614$as_echo X"$mf" |
14615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14616 s//\1/
14617 q
14618 }
14619 /^X\(\/\/\)[^/].*/{
14620 s//\1/
14621 q
14622 }
14623 /^X\(\/\/\)$/{
14624 s//\1/
14625 q
14626 }
14627 /^X\(\/\).*/{
14628 s//\1/
14629 q
14630 }
14631 s/.*/./; q'`
14632 else
14633 continue
14634 fi
14635 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 14636 # from the Makefile without running 'make'.
8d138742
CE
14637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14638 test -z "$DEPDIR" && continue
14639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 14640 test -z "$am__include" && continue
8d138742 14641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
14642 # Find all dependency output files, they are included files with
14643 # $(DEPDIR) in their names. We invoke sed twice because it is the
14644 # simplest approach to changing $(DEPDIR) to its actual value in the
14645 # expansion.
14646 for file in `sed -n "
14647 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 14648 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
14649 # Make sure the directory exists.
14650 test -f "$dirpart/$file" && continue
14651 fdir=`$as_dirname -- "$file" ||
14652$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14653 X"$file" : 'X\(//\)[^/]' \| \
14654 X"$file" : 'X\(//\)$' \| \
14655 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14656$as_echo X"$file" |
14657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14658 s//\1/
14659 q
14660 }
14661 /^X\(\/\/\)[^/].*/{
14662 s//\1/
14663 q
14664 }
14665 /^X\(\/\/\)$/{
14666 s//\1/
14667 q
14668 }
14669 /^X\(\/\).*/{
14670 s//\1/
14671 q
14672 }
14673 s/.*/./; q'`
b0322a85 14674 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
14675 # echo "creating $dirpart/$file"
14676 echo '# dummy' > "$dirpart/$file"
14677 done
14678 done
14679}
14680 ;;
14681 "libtool":C)
d9898ee8 14682
d50284c4 14683 # See if we are running on zsh, and set the options that allow our
8d138742 14684 # commands through without removal of \ escapes.
d50284c4 14685 if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
14686 setopt NO_GLOB_SUBST
14687 fi
d9898ee8 14688
d50284c4 14689 cfgfile=${ofile}T
8d138742
CE
14690 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14691 $RM "$cfgfile"
d9898ee8 14692
8d138742
CE
14693 cat <<_LT_EOF >> "$cfgfile"
14694#! $SHELL
d50284c4 14695# Generated automatically by $as_me ($PACKAGE) $VERSION
8d138742
CE
14696# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14697# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d50284c4
CE
14698
14699# Provide generalized library-building support services.
14700# Written by Gordon Matzigkeit, 1996
14701
14702# Copyright (C) 2014 Free Software Foundation, Inc.
14703# This is free software; see the source for copying conditions. There is NO
14704# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14705
14706# GNU Libtool is free software; you can redistribute it and/or modify
14707# it under the terms of the GNU General Public License as published by
14708# the Free Software Foundation; either version 2 of of the License, or
14709# (at your option) any later version.
d9898ee8 14710#
d50284c4
CE
14711# As a special exception to the GNU General Public License, if you
14712# distribute this file as part of a program or library that is built
14713# using GNU Libtool, you may include this file under the same
14714# distribution terms that you use for the rest of that program.
8d138742 14715#
d50284c4
CE
14716# GNU Libtool is distributed in the hope that it will be useful, but
14717# WITHOUT ANY WARRANTY; without even the implied warranty of
8d138742
CE
14718# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14719# GNU General Public License for more details.
14720#
14721# You should have received a copy of the GNU General Public License
d50284c4 14722# along with this program. If not, see <http://www.gnu.org/licenses/>.
d9898ee8 14723
d9898ee8 14724
8d138742 14725# The names of the tagged configurations supported by this script.
d50284c4
CE
14726available_tags=''
14727
14728# Configured defaults for sys_lib_dlsearch_path munging.
14729: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
dd184caf 14730
8d138742 14731# ### BEGIN LIBTOOL CONFIG
d9898ee8 14732
8d138742
CE
14733# Which release of libtool.m4 was used?
14734macro_version=$macro_version
14735macro_revision=$macro_revision
d9898ee8 14736
8d138742
CE
14737# Whether or not to build shared libraries.
14738build_libtool_libs=$enable_shared
d9898ee8 14739
8d138742
CE
14740# Whether or not to build static libraries.
14741build_old_libs=$enable_static
d9898ee8 14742
8d138742
CE
14743# What type of objects to build.
14744pic_mode=$pic_mode
d9898ee8 14745
8d138742
CE
14746# Whether or not to optimize for fast installation.
14747fast_install=$enable_fast_install
d9898ee8 14748
d50284c4
CE
14749# Shared archive member basename,for filename based shared library versioning on AIX.
14750shared_archive_member_spec=$shared_archive_member_spec
14751
b0322a85
CE
14752# Shell to use when invoking shell scripts.
14753SHELL=$lt_SHELL
14754
14755# An echo program that protects backslashes.
14756ECHO=$lt_ECHO
14757
14758# The PATH separator for the build system.
14759PATH_SEPARATOR=$lt_PATH_SEPARATOR
14760
8d138742
CE
14761# The host system.
14762host_alias=$host_alias
14763host=$host
14764host_os=$host_os
d9898ee8 14765
8d138742
CE
14766# The build system.
14767build_alias=$build_alias
14768build=$build
14769build_os=$build_os
d9898ee8 14770
8d138742
CE
14771# A sed program that does not truncate output.
14772SED=$lt_SED
d9898ee8 14773
8d138742
CE
14774# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14775Xsed="\$SED -e 1s/^X//"
d9898ee8 14776
8d138742
CE
14777# A grep program that handles long lines.
14778GREP=$lt_GREP
dd184caf 14779
8d138742
CE
14780# An ERE matcher.
14781EGREP=$lt_EGREP
dd184caf 14782
8d138742
CE
14783# A literal string matcher.
14784FGREP=$lt_FGREP
dd184caf 14785
8d138742
CE
14786# A BSD- or MS-compatible name lister.
14787NM=$lt_NM
dd184caf 14788
8d138742
CE
14789# Whether we need soft or hard links.
14790LN_S=$lt_LN_S
dd184caf 14791
8d138742
CE
14792# What is the maximum length of a command?
14793max_cmd_len=$max_cmd_len
dd184caf 14794
8d138742
CE
14795# Object file suffix (normally "o").
14796objext=$ac_objext
d9898ee8 14797
8d138742
CE
14798# Executable file suffix (normally "").
14799exeext=$exeext
d9898ee8 14800
8d138742
CE
14801# whether the shell understands "unset".
14802lt_unset=$lt_unset
d9898ee8 14803
8d138742
CE
14804# turn spaces into newlines.
14805SP2NL=$lt_lt_SP2NL
dd184caf 14806
8d138742
CE
14807# turn newlines into spaces.
14808NL2SP=$lt_lt_NL2SP
dd184caf 14809
b0322a85
CE
14810# convert \$build file names to \$host format.
14811to_host_file_cmd=$lt_cv_to_host_file_cmd
14812
14813# convert \$build files to toolchain format.
14814to_tool_file_cmd=$lt_cv_to_tool_file_cmd
dd184caf 14815
8d138742
CE
14816# An object symbol dumper.
14817OBJDUMP=$lt_OBJDUMP
d9898ee8 14818
8d138742
CE
14819# Method to check whether dependent libraries are shared objects.
14820deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14821
b0322a85 14822# Command to use when deplibs_check_method = "file_magic".
8d138742 14823file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14824
b0322a85
CE
14825# How to find potential files when deplibs_check_method = "file_magic".
14826file_magic_glob=$lt_file_magic_glob
14827
14828# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14829want_nocaseglob=$lt_want_nocaseglob
14830
14831# DLL creation program.
14832DLLTOOL=$lt_DLLTOOL
14833
14834# Command to associate shared and link libraries.
14835sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14836
8d138742
CE
14837# The archiver.
14838AR=$lt_AR
b0322a85
CE
14839
14840# Flags to create an archive.
8d138742 14841AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14842
b0322a85
CE
14843# How to feed a file listing to the archiver.
14844archiver_list_spec=$lt_archiver_list_spec
14845
8d138742
CE
14846# A symbol stripping program.
14847STRIP=$lt_STRIP
d9898ee8 14848
8d138742
CE
14849# Commands used to install an old-style archive.
14850RANLIB=$lt_RANLIB
14851old_postinstall_cmds=$lt_old_postinstall_cmds
14852old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14853
b0322a85
CE
14854# Whether to use a lock for old archive extraction.
14855lock_old_archive_extraction=$lock_old_archive_extraction
14856
8d138742
CE
14857# A C compiler.
14858LTCC=$lt_CC
d9898ee8 14859
8d138742
CE
14860# LTCC compiler flags.
14861LTCFLAGS=$lt_CFLAGS
d9898ee8 14862
8d138742
CE
14863# Take the output of nm and produce a listing of raw symbols and C names.
14864global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14865
8d138742
CE
14866# Transform the output of nm in a proper C declaration.
14867global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14868
d50284c4
CE
14869# Transform the output of nm into a list of symbols to manually relocate.
14870global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14871
8d138742
CE
14872# Transform the output of nm in a C name address pair.
14873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14874
8d138742
CE
14875# Transform the output of nm in a C name address pair when lib prefix is needed.
14876global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 14877
d50284c4
CE
14878# The name lister interface.
14879nm_interface=$lt_lt_cv_nm_interface
14880
b0322a85
CE
14881# Specify filename containing input files for \$NM.
14882nm_file_list_spec=$lt_nm_file_list_spec
d9898ee8 14883
d50284c4 14884# The root where to search for dependent libraries,and where our libraries should be installed.
b0322a85 14885lt_sysroot=$lt_sysroot
dd184caf 14886
d50284c4
CE
14887# Command to truncate a binary pipe.
14888lt_truncate_bin=$lt_lt_cv_truncate_bin
14889
b0322a85
CE
14890# The name of the directory that contains temporary libtool files.
14891objdir=$objdir
d9898ee8 14892
8d138742
CE
14893# Used to examine libraries when file_magic_cmd begins with "file".
14894MAGIC_CMD=$MAGIC_CMD
d9898ee8 14895
8d138742
CE
14896# Must we lock files when doing compilation?
14897need_locks=$lt_need_locks
d9898ee8 14898
b0322a85
CE
14899# Manifest tool.
14900MANIFEST_TOOL=$lt_MANIFEST_TOOL
14901
8d138742
CE
14902# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14903DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14904
8d138742
CE
14905# Tool to change global to local symbols on Mac OS X.
14906NMEDIT=$lt_NMEDIT
d9898ee8 14907
8d138742
CE
14908# Tool to manipulate fat objects and archives on Mac OS X.
14909LIPO=$lt_LIPO
d9898ee8 14910
8d138742
CE
14911# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14912OTOOL=$lt_OTOOL
d9898ee8 14913
8d138742
CE
14914# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14915OTOOL64=$lt_OTOOL64
d9898ee8 14916
8d138742
CE
14917# Old archive suffix (normally "a").
14918libext=$libext
d9898ee8 14919
8d138742
CE
14920# Shared library suffix (normally ".so").
14921shrext_cmds=$lt_shrext_cmds
d9898ee8 14922
8d138742
CE
14923# The commands to extract the exported symbol list from a shared archive.
14924extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14925
8d138742
CE
14926# Variables whose values should be saved in libtool wrapper scripts and
14927# restored at link time.
14928variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14929
8d138742
CE
14930# Do we need the "lib" prefix for modules?
14931need_lib_prefix=$need_lib_prefix
d9898ee8 14932
8d138742
CE
14933# Do we need a version for libraries?
14934need_version=$need_version
d9898ee8 14935
8d138742
CE
14936# Library versioning type.
14937version_type=$version_type
d9898ee8 14938
8d138742
CE
14939# Shared library runtime path variable.
14940runpath_var=$runpath_var
d9898ee8 14941
8d138742
CE
14942# Shared library path variable.
14943shlibpath_var=$shlibpath_var
d9898ee8 14944
8d138742
CE
14945# Is shlibpath searched before the hard-coded library search path?
14946shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14947
8d138742
CE
14948# Format of library name prefix.
14949libname_spec=$lt_libname_spec
d9898ee8 14950
8d138742
CE
14951# List of archive names. First name is the real one, the rest are links.
14952# The last name is the one that the linker finds with -lNAME
14953library_names_spec=$lt_library_names_spec
d9898ee8 14954
8d138742
CE
14955# The coded name of the library, if different from the real name.
14956soname_spec=$lt_soname_spec
d9898ee8 14957
b0322a85
CE
14958# Permission mode override for installation of shared libraries.
14959install_override_mode=$lt_install_override_mode
14960
8d138742
CE
14961# Command to use after installation of a shared archive.
14962postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14963
8d138742
CE
14964# Command to use after uninstallation of a shared archive.
14965postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14966
8d138742
CE
14967# Commands used to finish a libtool library installation in a directory.
14968finish_cmds=$lt_finish_cmds
dd184caf 14969
8d138742
CE
14970# As "finish_cmds", except a single script fragment to be evaled but
14971# not shown.
14972finish_eval=$lt_finish_eval
d9898ee8 14973
8d138742
CE
14974# Whether we should hardcode library paths into libraries.
14975hardcode_into_libs=$hardcode_into_libs
d9898ee8 14976
8d138742
CE
14977# Compile-time system search path for libraries.
14978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14979
d50284c4
CE
14980# Detected run-time system search path for libraries.
14981sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14982
14983# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14984configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d9898ee8 14985
8d138742
CE
14986# Whether dlopen is supported.
14987dlopen_support=$enable_dlopen
d9898ee8 14988
8d138742
CE
14989# Whether dlopen of programs is supported.
14990dlopen_self=$enable_dlopen_self
d9898ee8 14991
8d138742
CE
14992# Whether dlopen of statically linked programs is supported.
14993dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14994
8d138742
CE
14995# Commands to strip libraries.
14996old_striplib=$lt_old_striplib
14997striplib=$lt_striplib
d9898ee8 14998
d9898ee8 14999
8d138742
CE
15000# The linker used to build libraries.
15001LD=$lt_LD
d9898ee8 15002
b0322a85
CE
15003# How to create reloadable object files.
15004reload_flag=$lt_reload_flag
15005reload_cmds=$lt_reload_cmds
15006
8d138742
CE
15007# Commands used to build an old-style archive.
15008old_archive_cmds=$lt_old_archive_cmds
d9898ee8 15009
8d138742
CE
15010# A language specific compiler.
15011CC=$lt_compiler
d9898ee8 15012
8d138742
CE
15013# Is the compiler the GNU compiler?
15014with_gcc=$GCC
dd184caf 15015
8d138742
CE
15016# Compiler flag to turn off builtin functions.
15017no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 15018
8d138742
CE
15019# Additional compiler flags for building library objects.
15020pic_flag=$lt_lt_prog_compiler_pic
dd184caf 15021
b0322a85
CE
15022# How to pass a linker flag through the compiler.
15023wl=$lt_lt_prog_compiler_wl
15024
8d138742
CE
15025# Compiler flag to prevent dynamic linking.
15026link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 15027
8d138742
CE
15028# Does compiler simultaneously support -c and -o options?
15029compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15030
15031# Whether or not to add -lc for building shared libraries.
15032build_libtool_need_lc=$archive_cmds_need_lc
15033
15034# Whether or not to disallow shared libs when runtime libs are static.
15035allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15036
15037# Compiler flag to allow reflexive dlopens.
15038export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 15039
8d138742
CE
15040# Compiler flag to generate shared objects directly from archives.
15041whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 15042
8d138742
CE
15043# Whether the compiler copes with passing no objects directly.
15044compiler_needs_object=$lt_compiler_needs_object
d9898ee8 15045
8d138742
CE
15046# Create an old-style archive from a shared archive.
15047old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 15048
8d138742
CE
15049# Create a temporary old-style archive to link instead of a shared archive.
15050old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 15051
8d138742
CE
15052# Commands used to build a shared archive.
15053archive_cmds=$lt_archive_cmds
15054archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 15055
8d138742
CE
15056# Commands used to build a loadable module if different from building
15057# a shared archive.
15058module_cmds=$lt_module_cmds
15059module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 15060
8d138742
CE
15061# Whether we are building with GNU ld or not.
15062with_gnu_ld=$lt_with_gnu_ld
dd184caf 15063
8d138742
CE
15064# Flag that allows shared libraries with undefined symbols to be built.
15065allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 15066
8d138742
CE
15067# Flag that enforces no undefined symbols.
15068no_undefined_flag=$lt_no_undefined_flag
d9898ee8 15069
8d138742
CE
15070# Flag to hardcode \$libdir into a binary during linking.
15071# This must work even if \$libdir does not exist
15072hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 15073
8d138742
CE
15074# Whether we need a single "-rpath" flag with a separated argument.
15075hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 15076
d50284c4 15077# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742
CE
15078# DIR into the resulting binary.
15079hardcode_direct=$hardcode_direct
dd184caf 15080
d50284c4 15081# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742 15082# DIR into the resulting binary and the resulting library dependency is
d50284c4 15083# "absolute",i.e impossible to change by setting \$shlibpath_var if the
8d138742
CE
15084# library is relocated.
15085hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 15086
8d138742
CE
15087# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15088# into the resulting binary.
15089hardcode_minus_L=$hardcode_minus_L
dd184caf 15090
8d138742
CE
15091# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15092# into the resulting binary.
15093hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 15094
8d138742
CE
15095# Set to "yes" if building a shared library automatically hardcodes DIR
15096# into the library and all subsequent libraries and executables linked
15097# against it.
15098hardcode_automatic=$hardcode_automatic
dd184caf 15099
8d138742
CE
15100# Set to yes if linker adds runtime paths of dependent libraries
15101# to runtime path list.
15102inherit_rpath=$inherit_rpath
dd184caf 15103
8d138742
CE
15104# Whether libtool must link a program against all its dependency libraries.
15105link_all_deplibs=$link_all_deplibs
dd184caf 15106
8d138742
CE
15107# Set to "yes" if exported symbols are required.
15108always_export_symbols=$always_export_symbols
dd184caf 15109
8d138742
CE
15110# The commands to list exported symbols.
15111export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 15112
8d138742
CE
15113# Symbols that should not be listed in the preloaded symbols.
15114exclude_expsyms=$lt_exclude_expsyms
d9898ee8 15115
8d138742
CE
15116# Symbols that must always be exported.
15117include_expsyms=$lt_include_expsyms
d9898ee8 15118
8d138742
CE
15119# Commands necessary for linking programs (against libraries) with templates.
15120prelink_cmds=$lt_prelink_cmds
d9898ee8 15121
b0322a85
CE
15122# Commands necessary for finishing linking programs.
15123postlink_cmds=$lt_postlink_cmds
15124
8d138742
CE
15125# Specify filename containing input files.
15126file_list_spec=$lt_file_list_spec
15127
15128# How to hardcode a shared library path into an executable.
15129hardcode_action=$hardcode_action
d9898ee8 15130
8d138742 15131# ### END LIBTOOL CONFIG
d9898ee8 15132
d50284c4
CE
15133_LT_EOF
15134
15135 cat <<'_LT_EOF' >> "$cfgfile"
15136
15137# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15138
15139# func_munge_path_list VARIABLE PATH
15140# -----------------------------------
15141# VARIABLE is name of variable containing _space_ separated list of
15142# directories to be munged by the contents of PATH, which is string
15143# having a format:
15144# "DIR[:DIR]:"
15145# string "DIR[ DIR]" will be prepended to VARIABLE
15146# ":DIR[:DIR]"
15147# string "DIR[ DIR]" will be appended to VARIABLE
15148# "DIRP[:DIRP]::[DIRA:]DIRA"
15149# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15150# "DIRA[ DIRA]" will be appended to VARIABLE
15151# "DIR[:DIR]"
15152# VARIABLE will be replaced by "DIR[ DIR]"
15153func_munge_path_list ()
15154{
15155 case x$2 in
15156 x)
15157 ;;
15158 *:)
15159 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15160 ;;
15161 x:*)
15162 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15163 ;;
15164 *::*)
15165 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15166 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15167 ;;
15168 *)
15169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15170 ;;
15171 esac
15172}
15173
15174
15175# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15176func_cc_basename ()
15177{
15178 for cc_temp in $*""; do
15179 case $cc_temp in
15180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15182 \-*) ;;
15183 *) break;;
15184 esac
15185 done
15186 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15187}
15188
15189
15190# ### END FUNCTIONS SHARED WITH CONFIGURE
15191
8d138742 15192_LT_EOF
d9898ee8 15193
8d138742
CE
15194 case $host_os in
15195 aix3*)
15196 cat <<\_LT_EOF >> "$cfgfile"
15197# AIX sometimes has problems with the GCC collect2 program. For some
15198# reason, if we set the COLLECT_NAMES environment variable, the problems
15199# vanish in a puff of smoke.
d50284c4 15200if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
15201 COLLECT_NAMES=
15202 export COLLECT_NAMES
15203fi
15204_LT_EOF
15205 ;;
dd184caf 15206 esac
8d138742
CE
15207
15208
d50284c4 15209ltmain=$ac_aux_dir/ltmain.sh
8d138742
CE
15210
15211
15212 # We use sed instead of cat because bash on DJGPP gets confused if
15213 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15214 # text mode, it properly converts lines to CR/LF. This bash problem
15215 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
15216 sed '$q' "$ltmain" >> "$cfgfile" \
15217 || (rm -f "$cfgfile"; exit 1)
15218
b0322a85 15219 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
15220 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15221 chmod +x "$ofile"
15222
d9898ee8 15223 ;;
dd184caf 15224
d9898ee8 15225 esac
dd184caf 15226done # for ac_tag
d9898ee8 15227
d9898ee8 15228
b0322a85 15229as_fn_exit 0
d9898ee8 15230_ACEOF
d9898ee8 15231ac_clean_files=$ac_clean_files_save
15232
8d138742 15233test $ac_write_fail = 0 ||
b0322a85 15234 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 15235
d9898ee8 15236
15237# configure is writing to config.log, and then calls config.status.
15238# config.status does its own redirection, appending to config.log.
15239# Unfortunately, on DOS this fails, as config.log is still kept open
15240# by configure, so config.status won't be able to write to it; its
15241# output is simply discarded. So we exec the FD to /dev/null,
15242# effectively closing config.log, so it can be properly (re)opened and
15243# appended to by config.status. When coming back to configure, we
15244# need to make the FD available again.
15245if test "$no_create" != yes; then
15246 ac_cs_success=:
15247 ac_config_status_args=
15248 test "$silent" = yes &&
15249 ac_config_status_args="$ac_config_status_args --quiet"
15250 exec 5>/dev/null
15251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15252 exec 5>>config.log
15253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15254 # would make configure fail if this is the last instruction.
b0322a85 15255 $ac_cs_success || as_fn_exit 1
d9898ee8 15256fi
8d138742 15257if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
15259$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15260fi
d9898ee8 15261