Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / libs / libhmac / 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 libhmac 1.00.
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
dd184caf 134# CDPATH.
b0322a85 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 136
b0322a85
CE
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;}
dd184caf 162if test "x$CONFIG_SHELL" = x; then
b0322a85
CE
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
dd184caf 170else
b0322a85
CE
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
d9898ee8 177fi
b0322a85
CE
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; }
d9898ee8 184
dd184caf 185exitcode=0
b0322a85
CE
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
dd184caf 212else
b0322a85 213 as_have_required=no
dd184caf 214fi
b0322a85 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
dd184caf 216
dd184caf 217else
b0322a85
CE
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
d9898ee8 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=.
b0322a85
CE
224 as_found=:
225 case $as_dir in #(
d9898ee8 226 /*)
dd184caf 227 for as_base in sh bash ksh sh5; do
b0322a85
CE
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
dd184caf 237 done;;
238 esac
b0322a85 239 as_found=false
dd184caf 240done
b0322a85
CE
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; }
dd184caf 245IFS=$as_save_IFS
246
247
b0322a85
CE
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= ;;
dd184caf 262esac
b0322a85
CE
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
dd184caf 284fi
dd184caf 285fi
dd184caf 286fi
b0322a85
CE
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
dd184caf 292
b0322a85
CE
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
dd184caf 304
b0322a85
CE
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
dd184caf 312
b0322a85
CE
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{
dd184caf 328
b0322a85
CE
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"
dd184caf 367
dd184caf 368
b0322a85 369} # as_fn_mkdir_p
dd184caf 370
b0322a85
CE
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
dd184caf 412
413
b0322a85
CE
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
dd184caf 429
b0322a85
CE
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
dd184caf 433else
b0322a85 434 as_expr=false
dd184caf 435fi
436
b0322a85
CE
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
dd184caf 439else
b0322a85 440 as_basename=false
dd184caf 441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
dd184caf 445else
b0322a85 446 as_dirname=false
dd184caf 447fi
448
b0322a85
CE
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
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'`
dd184caf 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
dd184caf 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. :-)
dd184caf 481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
d9898ee8 485 sed '
dd184caf 486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
d9898ee8 490 N
dd184caf 491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 493 t loop
dd184caf 494 s/-\n.*//
d9898ee8 495 ' >$as_me.lineno &&
dd184caf 496 chmod +x "$as_me.lineno" ||
b0322a85 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
d9898ee8 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
dd184caf 505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
d9898ee8 507 # Exit status is that of the last command.
508 exit
509}
510
dd184caf 511ECHO_C= ECHO_N= ECHO_T=
b0322a85 512case `echo -n x` in #(((((
dd184caf 513-n*)
b0322a85 514 case `echo 'xy\c'` in
dd184caf 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
dd184caf 519 esac;;
520*)
521 ECHO_N='-n';;
d9898ee8 522esac
d9898ee8 523
524rm -f conf$$ conf$$.exe conf$$.file
dd184caf 525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
8d138742
CE
529 mkdir conf$$.dir 2>/dev/null
530fi
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.
b0322a85 537 # In both cases, we have to default to `cp -pR'.
8d138742 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 539 as_ln_s='cp -pR'
8d138742
CE
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
b0322a85 543 as_ln_s='cp -pR'
8d138742 544 fi
d9898ee8 545else
b0322a85 546 as_ln_s='cp -pR'
d9898ee8 547fi
dd184caf 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
d9898ee8 550
551if mkdir -p . 2>/dev/null; then
b0322a85 552 as_mkdir_p='mkdir -p "$as_dir"'
d9898ee8 553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
d9898ee8 560
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'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
d9898ee8 567SHELL=${CONFIG_SHELL-/bin/sh}
568
d9898ee8 569
b0322a85
CE
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
dd184caf 572
d9898ee8 573# Name of the host.
b0322a85 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d9898ee8 575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
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.
591PACKAGE_NAME='libhmac'
592PACKAGE_TARNAME='libhmac'
593PACKAGE_VERSION='1.00'
594PACKAGE_STRING='libhmac 1.00'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="hmac.h"
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
639TESTPROGS
640hashlibs
dd184caf 641CPP
8d138742
CE
642OTOOL64
643OTOOL
644LIPO
645NMEDIT
646DSYMUTIL
b0322a85 647MANIFEST_TOOL
8d138742 648RANLIB
b0322a85 649ac_ct_AR
8d138742 650AR
b0322a85 651DLLTOOL
8d138742
CE
652OBJDUMP
653NM
654ac_ct_DUMPBIN
655DUMPBIN
656LD
657FGREP
658EGREP
659GREP
660SED
661host_os
662host_vendor
663host_cpu
664host
665build_os
666build_vendor
667build_cpu
668build
dd184caf 669LIBTOOL
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
687LN_S
b0322a85
CE
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
8d138742
CE
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
b0322a85 745PACKAGE_URL
8d138742
CE
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
d9898ee8 753ac_subst_files=''
8d138742
CE
754ac_user_opts='
755enable_option_checking
b0322a85 756enable_silent_rules
8d138742
CE
757enable_dependency_tracking
758enable_shared
759enable_static
760with_pic
761enable_fast_install
762with_gnu_ld
b0322a85 763with_sysroot
8d138742
CE
764enable_libtool_lock
765'
dd184caf 766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CC
770CFLAGS
771LDFLAGS
772LIBS
773CPPFLAGS
8d138742 774CPP'
dd184caf 775
d9898ee8 776
777# Initialize some variables set by options.
778ac_init_help=
779ac_init_version=false
8d138742
CE
780ac_unrecognized_opts=
781ac_unrecognized_sep=
d9898ee8 782# The variables have the same names as the options, with
783# dashes changed to underlines.
784cache_file=/dev/null
785exec_prefix=NONE
786no_create=
787no_recursion=
788prefix=NONE
789program_prefix=NONE
790program_suffix=NONE
791program_transform_name=s,x,x,
792silent=
793site=
794srcdir=
795verbose=
796x_includes=NONE
797x_libraries=NONE
798
799# Installation directory options.
800# These are left unexpanded so users can "make install exec_prefix=/foo"
801# and all the variables that are supposed to be based on exec_prefix
802# by default will actually change.
803# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 804# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 805bindir='${exec_prefix}/bin'
806sbindir='${exec_prefix}/sbin'
807libexecdir='${exec_prefix}/libexec'
dd184caf 808datarootdir='${prefix}/share'
809datadir='${datarootdir}'
d9898ee8 810sysconfdir='${prefix}/etc'
811sharedstatedir='${prefix}/com'
812localstatedir='${prefix}/var'
d9898ee8 813includedir='${prefix}/include'
814oldincludedir='/usr/include'
dd184caf 815docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816infodir='${datarootdir}/info'
817htmldir='${docdir}'
818dvidir='${docdir}'
819pdfdir='${docdir}'
820psdir='${docdir}'
821libdir='${exec_prefix}/lib'
822localedir='${datarootdir}/locale'
823mandir='${datarootdir}/man'
d9898ee8 824
825ac_prev=
dd184caf 826ac_dashdash=
d9898ee8 827for ac_option
828do
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
dd184caf 831 eval $ac_prev=\$ac_option
d9898ee8 832 ac_prev=
833 continue
834 fi
835
dd184caf 836 case $ac_option in
b0322a85
CE
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
dd184caf 840 esac
d9898ee8 841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
dd184caf 844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
d9898ee8 847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
dd184caf 868 -datadir | --datadir | --datadi | --datad)
d9898ee8 869 ac_prev=datadir ;;
dd184caf 870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 871 datadir=$ac_optarg ;;
872
dd184caf 873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
d9898ee8 880 -disable-* | --disable-*)
8d138742 881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 882 # Reject names that are not valid shell variable names.
8d138742 883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 884 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889"enable_$ac_useropt"
890"*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
dd184caf 895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
d9898ee8 905
906 -enable-* | --enable-*)
8d138742 907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 908 # Reject names that are not valid shell variable names.
8d138742 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 910 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
dd184caf 947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
d9898ee8 953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
dd184caf 977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
d9898ee8 982 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 983 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
dd184caf 1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
d9898ee8 1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
8d138742 1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1112 # Reject names that are not valid shell variable names.
8d138742 1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1114 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119"with_$ac_useropt"
1120"*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1125
1126 -without-* | --without-*)
8d138742 1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1128 # Reject names that are not valid shell variable names.
8d138742 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1130 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
d9898ee8 1141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
b0322a85
CE
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161Try \`$0 --help' for more information"
d9898ee8 1162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
b0322a85
CE
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
dd184caf 1171 eval $ac_envvar=\$ac_optarg
d9898ee8 1172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
8d138742 1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1180 ;;
1181
1182 esac
1183done
1184
1185if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1187 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1188fi
1189
8d138742
CE
1190if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
b0322a85 1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196fi
1197
1198# Check all directory arguments for consistency.
dd184caf 1199for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
d9898ee8 1203do
dd184caf 1204 eval ac_val=\$$ac_var
8d138742
CE
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
d9898ee8 1212 case $ac_val in
dd184caf 1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1215 esac
b0322a85 1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
d9898ee8 1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
dd184caf 1241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1244 as_fn_error $? "working directory cannot be determined"
dd184caf 1245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1246 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1247
1248
d9898ee8 1249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
dd184caf 1252 # Try the directory containing this script, then the parent directory.
8d138742
CE
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258$as_echo X"$as_myself" |
dd184caf 1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
d9898ee8 1276 srcdir=$ac_confdir
dd184caf 1277 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1278 srcdir=..
1279 fi
1280else
1281 ac_srcdir_defaulted=no
1282fi
dd184caf 1283if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1286fi
dd184caf 1287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288ac_abs_confdir=`(
b0322a85 1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1290 pwd)`
1291# When building in place, set srcdir=.
1292if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294fi
1295# Remove unnecessary trailing slashes from srcdir.
1296# Double slashes in file names in object file debugging info
1297# mess up M-x gdb in Emacs.
1298case $srcdir in
1299*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300esac
1301for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306done
d9898ee8 1307
1308#
1309# Report the --help message.
1310#
1311if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315\`configure' configures libhmac 1.00 to adapt to many kinds of systems.
1316
1317Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320VAR=VALUE. See below for descriptions of some of the useful variables.
1321
1322Defaults for the options are specified in brackets.
1323
1324Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
b0322a85 1329 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
d9898ee8 1335Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1337 [$ac_default_prefix]
d9898ee8 1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1339 [PREFIX]
d9898ee8 1340
1341By default, \`make install' will install all the files in
1342\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344for instance \`--prefix=\$HOME'.
1345
1346For better control, use the options below.
1347
1348Fine tuning of the installation directories:
8d138742
CE
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/libhmac]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1368_ACEOF
1369
1370 cat <<\_ACEOF
1371
1372Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of libhmac 1.00:";;
1386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
8d138742 1390 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1393 --enable-silent-rules less verbose build output (undo: "make V=1")
1394 --disable-silent-rules verbose build output (undo: "make V=0")
1395 --enable-dependency-tracking
1396 do not reject slow dependency extractors
1397 --disable-dependency-tracking
1398 speeds up one-time build
dd184caf 1399 --enable-shared[=PKGS] build shared libraries [default=yes]
1400 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1401 --enable-fast-install[=PKGS]
1402 optimize for fast installation [default=yes]
1403 --disable-libtool-lock avoid locking (might break parallel builds)
1404
1405Optional Packages:
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1408 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1409 both]
8d138742 1410 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0322a85
CE
1411 --with-sysroot=DIR Search for dependent libraries within DIR
1412 (or the compiler's sysroot if not specified).
d9898ee8 1413
1414Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
dd184caf 1419 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1420 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1421 you have headers in a nonstandard directory <include dir>
d9898ee8 1422 CPP C preprocessor
d9898ee8 1423
1424Use these variables to override the choices made by `configure' or to help
1425it to find libraries and programs with nonstandard names/locations.
1426
1427Report bugs to <courier-users@lists.sourceforge.net>.
1428_ACEOF
dd184caf 1429ac_status=$?
d9898ee8 1430fi
1431
b0322a85
CE
1432if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1439
1440case "$ac_dir" in
1441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442*)
1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450esac
1451ac_abs_top_builddir=$ac_pwd
1452ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453# for backward compatibility:
1454ac_top_builddir=$ac_top_build_prefix
1455
1456case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469esac
1470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1480 else
1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 fi || ac_status=$?
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1484 done
1485fi
1486
1487test -n "$ac_init_help" && exit $ac_status
1488if $ac_init_version; then
1489 cat <<\_ACEOF
1490libhmac configure 1.00
1491generated by GNU Autoconf 2.69
1492
1493Copyright (C) 2012 Free Software Foundation, Inc.
1494This configure script is free software; the Free Software Foundation
1495gives unlimited permission to copy, distribute and modify it.
1496_ACEOF
1497 exit
1498fi
1499
1500## ------------------------ ##
1501## Autoconf initialization. ##
1502## ------------------------ ##
1503
1504# ac_fn_c_try_compile LINENO
1505# --------------------------
1506# Try to compile conftest.$ac_ext, and return whether this succeeded.
1507ac_fn_c_try_compile ()
1508{
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext
1511 if { { ac_try="$ac_compile"
1512case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515esac
1516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517$as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1524 fi
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext; then :
1530 ac_retval=0
1531else
1532 $as_echo "$as_me: failed program was:" >&5
1533sed 's/^/| /' conftest.$ac_ext >&5
1534
1535 ac_retval=1
1536fi
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1539
1540} # ac_fn_c_try_compile
1541
1542# ac_fn_c_try_link LINENO
1543# -----------------------
1544# Try to link conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_link ()
1546{
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext conftest$ac_exeext
1549 if { { ac_try="$ac_link"
1550case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_link") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest$ac_exeext && {
1568 test "$cross_compiling" = yes ||
1569 test -x conftest$ac_exeext
1570 }; then :
1571 ac_retval=0
1572else
1573 $as_echo "$as_me: failed program was:" >&5
1574sed 's/^/| /' conftest.$ac_ext >&5
1575
1576 ac_retval=1
1577fi
1578 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1579 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1580 # interfere with the next link command; also delete a directory that is
1581 # left behind by Apple's compiler. We do this before executing the actions.
1582 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_link
1587
1588# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1589# -------------------------------------------------------
1590# Tests whether HEADER exists and can be compiled using the include files in
1591# INCLUDES, setting the cache variable VAR accordingly.
1592ac_fn_c_check_header_compile ()
1593{
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596$as_echo_n "checking for $2... " >&6; }
1597if eval \${$3+:} false; then :
1598 $as_echo_n "(cached) " >&6
1599else
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601/* end confdefs.h. */
1602$4
1603#include <$2>
1604_ACEOF
1605if ac_fn_c_try_compile "$LINENO"; then :
1606 eval "$3=yes"
1607else
1608 eval "$3=no"
1609fi
1610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611fi
1612eval ac_res=\$$3
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614$as_echo "$ac_res" >&6; }
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616
1617} # ac_fn_c_check_header_compile
1618
1619# ac_fn_c_try_cpp LINENO
1620# ----------------------
1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_cpp ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } > conftest.i && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_cpp
1655
1656# ac_fn_c_try_run LINENO
1657# ----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659# that executables *can* be run.
1660ac_fn_c_try_run ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>&5
1671 ac_status=$?
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674 { { case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_try") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; }; }; then :
1684 ac_retval=0
1685else
1686 $as_echo "$as_me: program exited with status $ac_status" >&5
1687 $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=$ac_status
1691fi
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_run
d9898ee8 1697
b0322a85
CE
1698# ac_fn_c_check_func LINENO FUNC VAR
1699# ----------------------------------
1700# Tests whether FUNC exists, setting the cache variable VAR accordingly
1701ac_fn_c_check_func ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705$as_echo_n "checking for $2... " >&6; }
1706if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1708else
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710/* end confdefs.h. */
1711/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1713#define $2 innocuous_$2
d9898ee8 1714
b0322a85
CE
1715/* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $2 (); below.
1717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1718 <limits.h> exists even on freestanding compilers. */
dd184caf 1719
b0322a85
CE
1720#ifdef __STDC__
1721# include <limits.h>
1722#else
1723# include <assert.h>
1724#endif
1725
1726#undef $2
1727
1728/* Override any GCC internal prototype to avoid an error.
1729 Use char because int might match the return type of a GCC
1730 builtin and then its argument prototype would still apply. */
1731#ifdef __cplusplus
1732extern "C"
1733#endif
1734char $2 ();
1735/* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738#if defined __stub_$2 || defined __stub___$2
1739choke me
1740#endif
1741
1742int
1743main ()
1744{
1745return $2 ();
1746 ;
1747 return 0;
1748}
1749_ACEOF
1750if ac_fn_c_try_link "$LINENO"; then :
1751 eval "$3=yes"
1752else
1753 eval "$3=no"
1754fi
1755rm -f core conftest.err conftest.$ac_objext \
1756 conftest$ac_exeext conftest.$ac_ext
d9898ee8 1757fi
b0322a85
CE
1758eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d9898ee8 1762
b0322a85 1763} # ac_fn_c_check_func
d9898ee8 1764
b0322a85
CE
1765# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1766# -------------------------------------------
1767# Tests whether TYPE exists after having included INCLUDES, setting cache
1768# variable VAR accordingly.
1769ac_fn_c_check_type ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776else
1777 eval "$3=no"
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h. */
1780$4
1781int
1782main ()
1783{
1784if (sizeof ($2))
1785 return 0;
1786 ;
1787 return 0;
1788}
d9898ee8 1789_ACEOF
b0322a85
CE
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794int
1795main ()
1796{
1797if (sizeof (($2)))
1798 return 0;
1799 ;
1800 return 0;
1801}
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804
1805else
1806 eval "$3=yes"
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 1811fi
b0322a85
CE
1812eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817} # ac_fn_c_check_type
dd184caf 1818cat >config.log <<_ACEOF
d9898ee8 1819This file contains any messages produced by compilers while
1820running configure, to aid debugging if configure makes a mistake.
1821
1822It was created by libhmac $as_me 1.00, which was
b0322a85 1823generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 1824
1825 $ $0 $@
1826
1827_ACEOF
dd184caf 1828exec 5>>config.log
d9898ee8 1829{
1830cat <<_ASUNAME
1831## --------- ##
1832## Platform. ##
1833## --------- ##
1834
1835hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840
1841/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1843
1844/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1845/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1846/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1847/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1848/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1849/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1850/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1851
1852_ASUNAME
1853
1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
b0322a85
CE
1859 $as_echo "PATH: $as_dir"
1860 done
dd184caf 1861IFS=$as_save_IFS
d9898ee8 1862
1863} >&5
1864
1865cat >&5 <<_ACEOF
1866
1867
1868## ----------- ##
1869## Core tests. ##
1870## ----------- ##
1871
1872_ACEOF
1873
1874
1875# Keep a trace of the command line.
1876# Strip out --no-create and --no-recursion so they do not pile up.
1877# Strip out --silent because we don't want to record it for future runs.
1878# Also quote any args containing shell meta-characters.
1879# Make two passes to allow for proper duplicate-argument suppression.
1880ac_configure_args=
1881ac_configure_args0=
1882ac_configure_args1=
d9898ee8 1883ac_must_keep_next=false
1884for ac_pass in 1 2
1885do
1886 for ac_arg
1887 do
1888 case $ac_arg in
1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1892 continue ;;
dd184caf 1893 *\'*)
8d138742 1894 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1895 esac
1896 case $ac_pass in
b0322a85 1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 1898 2)
b0322a85 1899 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 1900 if test $ac_must_keep_next = true; then
1901 ac_must_keep_next=false # Got value, back to normal.
1902 else
1903 case $ac_arg in
1904 *=* | --config-cache | -C | -disable-* | --disable-* \
1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907 | -with-* | --with-* | -without-* | --without-* | --x)
1908 case "$ac_configure_args0 " in
1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910 esac
1911 ;;
1912 -* ) ac_must_keep_next=true ;;
1913 esac
1914 fi
b0322a85 1915 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 1916 ;;
1917 esac
1918 done
1919done
b0322a85
CE
1920{ ac_configure_args0=; unset ac_configure_args0;}
1921{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 1922
1923# When interrupted or exit'd, cleanup temporary files, and complete
1924# config.log. We remove comments because anyway the quotes in there
1925# would cause problems or look ugly.
dd184caf 1926# WARNING: Use '\'' to represent an apostrophe within the trap.
1927# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1928trap 'exit_status=$?
1929 # Save into config.log some information that might help in debugging.
1930 {
1931 echo
1932
b0322a85 1933 $as_echo "## ---------------- ##
d9898ee8 1934## Cache variables. ##
b0322a85 1935## ---------------- ##"
d9898ee8 1936 echo
1937 # The following way of writing the cache mishandles newlines in values,
dd184caf 1938(
1939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940 eval ac_val=\$$ac_var
1941 case $ac_val in #(
1942 *${as_nl}*)
1943 case $ac_var in #(
b0322a85 1944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 1945$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1946 esac
1947 case $ac_var in #(
1948 _ | IFS | as_nl) ;; #(
8d138742 1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 1950 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 1951 esac ;;
1952 esac
1953 done
d9898ee8 1954 (set) 2>&1 |
dd184caf 1955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956 *${as_nl}ac_space=\ *)
d9898ee8 1957 sed -n \
dd184caf 1958 "s/'\''/'\''\\\\'\'''\''/g;
1959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960 ;; #(
d9898ee8 1961 *)
dd184caf 1962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1963 ;;
dd184caf 1964 esac |
1965 sort
1966)
d9898ee8 1967 echo
1968
b0322a85 1969 $as_echo "## ----------------- ##
d9898ee8 1970## Output variables. ##
b0322a85 1971## ----------------- ##"
d9898ee8 1972 echo
1973 for ac_var in $ac_subst_vars
1974 do
dd184caf 1975 eval ac_val=\$$ac_var
1976 case $ac_val in
8d138742 1977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1978 esac
8d138742 1979 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1980 done | sort
1981 echo
1982
1983 if test -n "$ac_subst_files"; then
b0322a85 1984 $as_echo "## ------------------- ##
dd184caf 1985## File substitutions. ##
b0322a85 1986## ------------------- ##"
d9898ee8 1987 echo
1988 for ac_var in $ac_subst_files
1989 do
dd184caf 1990 eval ac_val=\$$ac_var
1991 case $ac_val in
8d138742 1992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1993 esac
8d138742 1994 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1995 done | sort
1996 echo
1997 fi
1998
1999 if test -s confdefs.h; then
b0322a85 2000 $as_echo "## ----------- ##
d9898ee8 2001## confdefs.h. ##
b0322a85 2002## ----------- ##"
d9898ee8 2003 echo
dd184caf 2004 cat confdefs.h
d9898ee8 2005 echo
2006 fi
2007 test "$ac_signal" != 0 &&
8d138742
CE
2008 $as_echo "$as_me: caught signal $ac_signal"
2009 $as_echo "$as_me: exit $exit_status"
d9898ee8 2010 } >&5
dd184caf 2011 rm -f core *.core core.conftest.* &&
2012 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2013 exit $exit_status
dd184caf 2014' 0
d9898ee8 2015for ac_signal in 1 2 13 15; do
b0322a85 2016 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2017done
2018ac_signal=0
2019
2020# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2021rm -f -r conftest* confdefs.h
d9898ee8 2022
b0322a85
CE
2023$as_echo "/* confdefs.h */" > confdefs.h
2024
d9898ee8 2025# Predefined preprocessor variables.
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_NAME "$PACKAGE_NAME"
2029_ACEOF
2030
d9898ee8 2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033_ACEOF
2034
d9898ee8 2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_VERSION "$PACKAGE_VERSION"
2037_ACEOF
2038
d9898ee8 2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_STRING "$PACKAGE_STRING"
2041_ACEOF
2042
d9898ee8 2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045_ACEOF
2046
b0322a85
CE
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_URL "$PACKAGE_URL"
2049_ACEOF
2050
d9898ee8 2051
2052# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2053# Prefer an explicitly selected file to automatically selected ones.
2054ac_site_file1=NONE
2055ac_site_file2=NONE
dd184caf 2056if test -n "$CONFIG_SITE"; then
b0322a85
CE
2057 # We do not want a PATH search for config.site.
2058 case $CONFIG_SITE in #((
2059 -*) ac_site_file1=./$CONFIG_SITE;;
2060 */*) ac_site_file1=$CONFIG_SITE;;
2061 *) ac_site_file1=./$CONFIG_SITE;;
2062 esac
dd184caf 2063elif test "x$prefix" != xNONE; then
8d138742
CE
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
dd184caf 2066else
8d138742
CE
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2069fi
8d138742 2070for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2071do
8d138742 2072 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2073 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2075$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2076 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2077 . "$ac_site_file" \
2078 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080as_fn_error $? "failed to load site script $ac_site_file
2081See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2082 fi
2083done
2084
2085if test -r "$cache_file"; then
b0322a85
CE
2086 # Some versions of bash will fail to source /dev/null (special files
2087 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2088 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2090$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2091 case $cache_file in
dd184caf 2092 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093 *) . "./$cache_file";;
d9898ee8 2094 esac
2095 fi
2096else
b0322a85 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2098$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2099 >$cache_file
2100fi
2101
2102# Check that the precious variables saved in the cache have kept the same
2103# value.
2104ac_cache_corrupted=false
dd184caf 2105for ac_var in $ac_precious_vars; do
d9898ee8 2106 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2108 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2110 case $ac_old_set,$ac_new_set in
2111 set,)
b0322a85 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2113$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2114 ac_cache_corrupted=: ;;
2115 ,set)
b0322a85 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2117$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2118 ac_cache_corrupted=: ;;
2119 ,);;
2120 *)
2121 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2122 # differences in whitespace do not lead to failure.
2123 ac_old_val_w=`echo x $ac_old_val`
2124 ac_new_val_w=`echo x $ac_new_val`
2125 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2127$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2128 ac_cache_corrupted=:
2129 else
b0322a85 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2131$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2132 eval $ac_var=\$ac_old_val
2133 fi
b0322a85 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2135$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2137$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2138 fi;;
2139 esac
2140 # Pass precious variables to config.status.
2141 if test "$ac_new_set" = set; then
2142 case $ac_new_val in
8d138742 2143 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2144 *) ac_arg=$ac_var=$ac_new_val ;;
2145 esac
2146 case " $ac_configure_args " in
2147 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2148 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2149 esac
2150 fi
2151done
2152if $ac_cache_corrupted; then
b0322a85 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2156$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2157 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2158fi
b0322a85
CE
2159## -------------------- ##
2160## Main body of script. ##
2161## -------------------- ##
d9898ee8 2162
dd184caf 2163ac_ext=c
2164ac_cpp='$CPP $CPPFLAGS'
2165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2168
2169
2170
2171>confdefs.h # Kill PACKAGE_ macros
2172
2173
d9898ee8 2174ac_aux_dir=
b0322a85 2175for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2176 if test -f "$ac_dir/install-sh"; then
d9898ee8 2177 ac_aux_dir=$ac_dir
2178 ac_install_sh="$ac_aux_dir/install-sh -c"
2179 break
dd184caf 2180 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2181 ac_aux_dir=$ac_dir
2182 ac_install_sh="$ac_aux_dir/install.sh -c"
2183 break
dd184caf 2184 elif test -f "$ac_dir/shtool"; then
d9898ee8 2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/shtool install -c"
2187 break
2188 fi
2189done
2190if test -z "$ac_aux_dir"; then
b0322a85 2191 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2192fi
dd184caf 2193
2194# These three variables are undocumented and unsupported,
2195# and are intended to be withdrawn in a future Autoconf release.
2196# They can cause serious problems if a builder's source tree is in a directory
2197# whose full name contains unusual characters.
2198ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2199ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2200ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2201
d9898ee8 2202
b0322a85
CE
2203am__api_version='1.13'
2204
d9898ee8 2205# Find a good install program. We prefer a C program (faster),
2206# so one script is as good as another. But avoid the broken or
2207# incompatible versions:
2208# SysV /etc/install, /usr/sbin/install
2209# SunOS /usr/etc/install
2210# IRIX /sbin/install
2211# AIX /bin/install
2212# AmigaOS /C/install, which installs bootblocks on floppy discs
2213# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2214# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2215# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2216# OS/2's system install, which has a completely different semantic
2217# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2218# Reject install programs that cannot install multiple files.
b0322a85 2219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2220$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2221if test -z "$INSTALL"; then
b0322a85 2222if ${ac_cv_path_install+:} false; then :
8d138742 2223 $as_echo_n "(cached) " >&6
d9898ee8 2224else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
b0322a85
CE
2230 # Account for people who put trailing slashes in PATH elements.
2231case $as_dir/ in #((
2232 ./ | .// | /[cC]/* | \
d9898ee8 2233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2234 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2235 /usr/ucb/* ) ;;
2236 *)
2237 # OSF1 and SCO ODT 3.0 have their own names for install.
2238 # Don't use installbsd from OSF since it installs stuff as root
2239 # by default.
2240 for ac_prog in ginstall scoinst install; do
2241 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2242 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2243 if test $ac_prog = install &&
2244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2245 # AIX install. It has an incompatible calling convention.
2246 :
2247 elif test $ac_prog = install &&
2248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # program-specific install script used by HP pwplus--don't use.
2250 :
2251 else
8d138742
CE
2252 rm -rf conftest.one conftest.two conftest.dir
2253 echo one > conftest.one
2254 echo two > conftest.two
2255 mkdir conftest.dir
2256 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2257 test -s conftest.one && test -s conftest.two &&
2258 test -s conftest.dir/conftest.one &&
2259 test -s conftest.dir/conftest.two
2260 then
2261 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2262 break 3
2263 fi
d9898ee8 2264 fi
2265 fi
2266 done
2267 done
2268 ;;
2269esac
8d138742 2270
b0322a85 2271 done
dd184caf 2272IFS=$as_save_IFS
d9898ee8 2273
8d138742 2274rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2275
2276fi
2277 if test "${ac_cv_path_install+set}" = set; then
2278 INSTALL=$ac_cv_path_install
2279 else
dd184caf 2280 # As a last resort, use the slow shell script. Don't cache a
2281 # value for INSTALL within a source directory, because that will
d9898ee8 2282 # break other packages using the cache if that directory is
dd184caf 2283 # removed, or if the value is a relative name.
d9898ee8 2284 INSTALL=$ac_install_sh
2285 fi
2286fi
b0322a85 2287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2288$as_echo "$INSTALL" >&6; }
d9898ee8 2289
2290# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2291# It thinks the first close brace ends the variable substitution.
2292test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2293
2294test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2295
2296test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2297
b0322a85 2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2299$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2300# Reject unsafe characters in $srcdir or the absolute working directory
2301# name. Accept space and tab only in the latter.
2302am_lf='
2303'
2304case `pwd` in
2305 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2306 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2307esac
2308case $srcdir in
2309 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2310 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2311esac
2312
b0322a85 2313# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2314# arguments. Must try -L first in case configure is actually a
2315# symlink; some systems play weird games with the mod time of symlinks
2316# (eg FreeBSD returns the mod time of the symlink's containing
2317# directory).
2318if (
b0322a85
CE
2319 am_has_slept=no
2320 for am_try in 1 2; do
2321 echo "timestamp, slept: $am_has_slept" > conftest.file
2322 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2323 if test "$*" = "X"; then
2324 # -L didn't work.
2325 set X `ls -t "$srcdir/configure" conftest.file`
2326 fi
2327 if test "$*" != "X $srcdir/configure conftest.file" \
2328 && test "$*" != "X conftest.file $srcdir/configure"; then
2329
2330 # If neither matched, then we have a broken ls. This can happen
2331 # if, for instance, CONFIG_SHELL is bash and it inherits a
2332 # broken ls alias from the environment. This has actually
2333 # happened. Such a system could not be considered "sane".
2334 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2335 alias in your environment" "$LINENO" 5
2336 fi
2337 if test "$2" = conftest.file || test $am_try -eq 2; then
2338 break
2339 fi
2340 # Just in case.
2341 sleep 1
2342 am_has_slept=yes
2343 done
d9898ee8 2344 test "$2" = conftest.file
2345 )
2346then
2347 # Ok.
2348 :
2349else
b0322a85
CE
2350 as_fn_error $? "newly created file is older than distributed files!
2351Check your system clock" "$LINENO" 5
d9898ee8 2352fi
b0322a85 2353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2354$as_echo "yes" >&6; }
b0322a85
CE
2355# If we didn't sleep, we still need to ensure time stamps of config.status and
2356# generated files are strictly newer.
2357am_sleep_pid=
2358if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2359 ( sleep 1 ) &
2360 am_sleep_pid=$!
2361fi
2362
2363rm -f conftest.file
2364
d9898ee8 2365test "$program_prefix" != NONE &&
dd184caf 2366 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2367# Use a double $ so make ignores it.
2368test "$program_suffix" != NONE &&
dd184caf 2369 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2370# Double any \ or $.
d9898ee8 2371# By default was `s,x,x', remove it if useless.
8d138742
CE
2372ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2373program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2374
2375# expand $ac_aux_dir to an absolute path
2376am_aux_dir=`cd $ac_aux_dir && pwd`
2377
8d138742
CE
2378if test x"${MISSING+set}" != xset; then
2379 case $am_aux_dir in
2380 *\ * | *\ *)
2381 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2382 *)
2383 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2384 esac
2385fi
d9898ee8 2386# Use eval to expand $SHELL
b0322a85
CE
2387if eval "$MISSING --is-lightweight"; then
2388 am_missing_run="$MISSING "
d9898ee8 2389else
2390 am_missing_run=
b0322a85
CE
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2392$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2393fi
2394
2395if test x"${install_sh}" != xset; then
2396 case $am_aux_dir in
2397 *\ * | *\ *)
2398 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2399 *)
2400 install_sh="\${SHELL} $am_aux_dir/install-sh"
2401 esac
2402fi
2403
b0322a85
CE
2404# Installed binaries are usually stripped using 'strip' when the user
2405# run "make install-strip". However 'strip' might not be the right
8d138742 2406# tool to use in cross-compilation environments, therefore Automake
b0322a85 2407# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2408if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2413$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2414if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2415 $as_echo_n "(cached) " >&6
2416else
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
b0322a85
CE
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2429 break 2
2430 fi
2431done
b0322a85 2432 done
8d138742
CE
2433IFS=$as_save_IFS
2434
2435fi
2436fi
2437STRIP=$ac_cv_prog_STRIP
2438if test -n "$STRIP"; then
b0322a85 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2440$as_echo "$STRIP" >&6; }
2441else
b0322a85 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2443$as_echo "no" >&6; }
d9898ee8 2444fi
2445
8d138742
CE
2446
2447fi
2448if test -z "$ac_cv_prog_STRIP"; then
2449 ac_ct_STRIP=$STRIP
2450 # Extract the first word of "strip", so it can be a program name with args.
2451set dummy strip; ac_word=$2
b0322a85 2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2453$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2454if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2455 $as_echo_n "(cached) " >&6
2456else
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
b0322a85
CE
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2467 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2469 break 2
2470 fi
2471done
b0322a85 2472 done
8d138742
CE
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478if test -n "$ac_ct_STRIP"; then
b0322a85 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2480$as_echo "$ac_ct_STRIP" >&6; }
2481else
b0322a85 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2483$as_echo "no" >&6; }
2484fi
2485
2486 if test "x$ac_ct_STRIP" = x; then
2487 STRIP=":"
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490yes:)
b0322a85 2491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493ac_tool_warned=yes ;;
2494esac
2495 STRIP=$ac_ct_STRIP
2496 fi
2497else
2498 STRIP="$ac_cv_prog_STRIP"
2499fi
2500
2501fi
2502INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2503
b0322a85 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2505$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2506if test -z "$MKDIR_P"; then
b0322a85 2507 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2508 $as_echo_n "(cached) " >&6
dd184caf 2509else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
b0322a85 2515 for ac_prog in mkdir gmkdir; do
dd184caf 2516 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2517 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2518 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2519 'mkdir (GNU coreutils) '* | \
2520 'mkdir (coreutils) '* | \
2521 'mkdir (fileutils) '4.1*)
2522 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2523 break 3;;
2524 esac
2525 done
2526 done
b0322a85 2527 done
dd184caf 2528IFS=$as_save_IFS
2529
2530fi
2531
b0322a85 2532 test -d ./--version && rmdir ./--version
dd184caf 2533 if test "${ac_cv_path_mkdir+set}" = set; then
2534 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2535 else
dd184caf 2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for MKDIR_P within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
dd184caf 2540 MKDIR_P="$ac_install_sh -d"
d9898ee8 2541 fi
2542fi
b0322a85 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2544$as_echo "$MKDIR_P" >&6; }
dd184caf 2545
d9898ee8 2546for ac_prog in gawk mawk nawk awk
2547do
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549set dummy $ac_prog; ac_word=$2
b0322a85 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2551$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2552if ${ac_cv_prog_AWK+:} false; then :
8d138742 2553 $as_echo_n "(cached) " >&6
d9898ee8 2554else
2555 if test -n "$AWK"; then
2556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
b0322a85
CE
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2565 ac_cv_prog_AWK="$ac_prog"
b0322a85 2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2567 break 2
2568 fi
2569done
b0322a85 2570 done
dd184caf 2571IFS=$as_save_IFS
d9898ee8 2572
2573fi
2574fi
2575AWK=$ac_cv_prog_AWK
2576if test -n "$AWK"; then
b0322a85 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2578$as_echo "$AWK" >&6; }
d9898ee8 2579else
b0322a85 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2581$as_echo "no" >&6; }
d9898ee8 2582fi
2583
dd184caf 2584
d9898ee8 2585 test -n "$AWK" && break
2586done
2587
b0322a85 2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2589$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2590set x ${MAKE-make}
2591ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2592if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2593 $as_echo_n "(cached) " >&6
d9898ee8 2594else
2595 cat >conftest.make <<\_ACEOF
dd184caf 2596SHELL = /bin/sh
d9898ee8 2597all:
dd184caf 2598 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2599_ACEOF
b0322a85 2600# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2601case `${MAKE-make} -f conftest.make 2>/dev/null` in
2602 *@@@%%%=?*=@@@%%%*)
2603 eval ac_cv_prog_make_${ac_make}_set=yes;;
2604 *)
2605 eval ac_cv_prog_make_${ac_make}_set=no;;
2606esac
d9898ee8 2607rm -f conftest.make
2608fi
dd184caf 2609if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2611$as_echo "yes" >&6; }
d9898ee8 2612 SET_MAKE=
2613else
b0322a85 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2615$as_echo "no" >&6; }
d9898ee8 2616 SET_MAKE="MAKE=${MAKE-make}"
2617fi
2618
2619rm -rf .tst 2>/dev/null
2620mkdir .tst 2>/dev/null
2621if test -d .tst; then
2622 am__leading_dot=.
2623else
2624 am__leading_dot=_
2625fi
2626rmdir .tst 2>/dev/null
2627
b0322a85
CE
2628# Check whether --enable-silent-rules was given.
2629if test "${enable_silent_rules+set}" = set; then :
2630 enableval=$enable_silent_rules;
2631fi
2632
2633case $enable_silent_rules in # (((
2634 yes) AM_DEFAULT_VERBOSITY=0;;
2635 no) AM_DEFAULT_VERBOSITY=1;;
2636 *) AM_DEFAULT_VERBOSITY=1;;
2637esac
2638am_make=${MAKE-make}
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2640$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2641if ${am_cv_make_support_nested_variables+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643else
2644 if $as_echo 'TRUE=$(BAR$(V))
2645BAR0=false
2646BAR1=true
2647V=1
2648am__doit:
2649 @$(TRUE)
2650.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2651 am_cv_make_support_nested_variables=yes
2652else
2653 am_cv_make_support_nested_variables=no
2654fi
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2657$as_echo "$am_cv_make_support_nested_variables" >&6; }
2658if test $am_cv_make_support_nested_variables = yes; then
2659 AM_V='$(V)'
2660 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2661else
2662 AM_V=$AM_DEFAULT_VERBOSITY
2663 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2664fi
2665AM_BACKSLASH='\'
2666
dd184caf 2667if test "`cd $srcdir && pwd`" != "`pwd`"; then
2668 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2669 # is not polluted with repeated "-I."
2670 am__isrc=' -I$(srcdir)'
2671 # test to see if srcdir already configured
2672 if test -f $srcdir/config.status; then
b0322a85 2673 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2674 fi
d9898ee8 2675fi
2676
2677# test whether we have cygpath
2678if test -z "$CYGPATH_W"; then
2679 if (cygpath --version) >/dev/null 2>/dev/null; then
2680 CYGPATH_W='cygpath -w'
2681 else
2682 CYGPATH_W=echo
2683 fi
2684fi
2685
2686
2687# Define the identity of the package.
2688 PACKAGE='libhmac'
2689 VERSION='1.00'
2690
2691
2692# Some tools Automake needs.
2693
2694ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2695
2696
2697AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2698
2699
2700AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2701
2702
2703AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2704
2705
2706MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2707
b0322a85
CE
2708# For better backward compatibility. To be removed once Automake 1.9.x
2709# dies out for good. For more background, see:
2710# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2711# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2712mkdir_p='$(MKDIR_P)'
2713
d9898ee8 2714# We need awk for the "check" target. The system "awk" is bad on
2715# some platforms.
b0322a85
CE
2716# Always define AMTAR for backward compatibility. Yes, it's still used
2717# in the wild :-( We should find a proper way to deprecate it ...
2718AMTAR='$${TAR-tar}'
2719
d9898ee8 2720
b0322a85
CE
2721# We'll loop over all known methods to create a tar archive until one works.
2722_am_tools='gnutar pax cpio none'
2723
2724am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d9898ee8 2725
d9898ee8 2726
2727
2728
2729
2730
2731
2732
dd184caf 2733ac_config_headers="$ac_config_headers config.h"
d9898ee8 2734
2735
2736for ac_prog in gawk mawk nawk awk
2737do
b0322a85
CE
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739set dummy $ac_prog; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if ${ac_cv_prog_AWK+:} false; then :
8d138742 2743 $as_echo_n "(cached) " >&6
d9898ee8 2744else
b0322a85
CE
2745 if test -n "$AWK"; then
2746 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
b0322a85
CE
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_AWK="$ac_prog"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
d9898ee8 2759done
b0322a85 2760 done
dd184caf 2761IFS=$as_save_IFS
d9898ee8 2762
d9898ee8 2763fi
d9898ee8 2764fi
b0322a85
CE
2765AWK=$ac_cv_prog_AWK
2766if test -n "$AWK"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2768$as_echo "$AWK" >&6; }
2769else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
d9898ee8 2773
d9898ee8 2774
b0322a85
CE
2775 test -n "$AWK" && break
2776done
d9898ee8 2777
d9898ee8 2778
b0322a85 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8d138742 2780$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 2781LN_S=$as_ln_s
2782if test "$LN_S" = "ln -s"; then
b0322a85 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2784$as_echo "yes" >&6; }
d9898ee8 2785else
b0322a85 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8d138742 2787$as_echo "no, using $LN_S" >&6; }
d9898ee8 2788fi
2789
2790ac_ext=c
2791ac_cpp='$CPP $CPPFLAGS'
2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795if test -n "$ac_tool_prefix"; then
2796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2797set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2799$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2800if ${ac_cv_prog_CC+:} false; then :
8d138742 2801 $as_echo_n "(cached) " >&6
d9898ee8 2802else
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805else
2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH
2808do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
b0322a85
CE
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2815 break 2
2816 fi
2817done
b0322a85 2818 done
dd184caf 2819IFS=$as_save_IFS
d9898ee8 2820
2821fi
2822fi
2823CC=$ac_cv_prog_CC
2824if test -n "$CC"; then
b0322a85 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2826$as_echo "$CC" >&6; }
d9898ee8 2827else
b0322a85 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2829$as_echo "no" >&6; }
d9898ee8 2830fi
2831
dd184caf 2832
d9898ee8 2833fi
2834if test -z "$ac_cv_prog_CC"; then
2835 ac_ct_CC=$CC
2836 # Extract the first word of "gcc", so it can be a program name with args.
2837set dummy gcc; ac_word=$2
b0322a85 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2839$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2840if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 2841 $as_echo_n "(cached) " >&6
d9898ee8 2842else
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
b0322a85
CE
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2853 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2855 break 2
2856 fi
2857done
b0322a85 2858 done
dd184caf 2859IFS=$as_save_IFS
d9898ee8 2860
2861fi
2862fi
2863ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864if test -n "$ac_ct_CC"; then
b0322a85 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 2866$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2867else
b0322a85 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2869$as_echo "no" >&6; }
d9898ee8 2870fi
2871
dd184caf 2872 if test "x$ac_ct_CC" = x; then
2873 CC=""
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876yes:)
b0322a85 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 2878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2879ac_tool_warned=yes ;;
2880esac
2881 CC=$ac_ct_CC
2882 fi
d9898ee8 2883else
2884 CC="$ac_cv_prog_CC"
2885fi
2886
2887if test -z "$CC"; then
dd184caf 2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2890set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2892$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2893if ${ac_cv_prog_CC+:} false; then :
8d138742 2894 $as_echo_n "(cached) " >&6
d9898ee8 2895else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
b0322a85
CE
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2906 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2908 break 2
2909 fi
2910done
b0322a85 2911 done
dd184caf 2912IFS=$as_save_IFS
d9898ee8 2913
2914fi
2915fi
2916CC=$ac_cv_prog_CC
2917if test -n "$CC"; then
b0322a85 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2919$as_echo "$CC" >&6; }
d9898ee8 2920else
b0322a85 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2922$as_echo "no" >&6; }
d9898ee8 2923fi
2924
d9898ee8 2925
dd184caf 2926 fi
d9898ee8 2927fi
2928if test -z "$CC"; then
2929 # Extract the first word of "cc", so it can be a program name with args.
2930set dummy cc; ac_word=$2
b0322a85 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2932$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2933if ${ac_cv_prog_CC+:} false; then :
8d138742 2934 $as_echo_n "(cached) " >&6
d9898ee8 2935else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
2939 ac_prog_rejected=no
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
b0322a85
CE
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2948 ac_prog_rejected=yes
2949 continue
2950 fi
2951 ac_cv_prog_CC="cc"
b0322a85 2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2953 break 2
2954 fi
2955done
b0322a85 2956 done
dd184caf 2957IFS=$as_save_IFS
d9898ee8 2958
2959if test $ac_prog_rejected = yes; then
2960 # We found a bogon in the path, so make sure we never use it.
2961 set dummy $ac_cv_prog_CC
2962 shift
2963 if test $# != 0; then
2964 # We chose a different compiler from the bogus one.
2965 # However, it has the same basename, so the bogon will be chosen
2966 # first if we set CC to just the basename; use the full file name.
2967 shift
2968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2969 fi
2970fi
2971fi
2972fi
2973CC=$ac_cv_prog_CC
2974if test -n "$CC"; then
b0322a85 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2976$as_echo "$CC" >&6; }
d9898ee8 2977else
b0322a85 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2979$as_echo "no" >&6; }
d9898ee8 2980fi
2981
dd184caf 2982
d9898ee8 2983fi
2984if test -z "$CC"; then
2985 if test -n "$ac_tool_prefix"; then
dd184caf 2986 for ac_prog in cl.exe
d9898ee8 2987 do
2988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2991$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2992if ${ac_cv_prog_CC+:} false; then :
8d138742 2993 $as_echo_n "(cached) " >&6
d9898ee8 2994else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
b0322a85
CE
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3007 break 2
3008 fi
3009done
b0322a85 3010 done
dd184caf 3011IFS=$as_save_IFS
d9898ee8 3012
3013fi
3014fi
3015CC=$ac_cv_prog_CC
3016if test -n "$CC"; then
b0322a85 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3018$as_echo "$CC" >&6; }
d9898ee8 3019else
b0322a85 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3021$as_echo "no" >&6; }
d9898ee8 3022fi
3023
dd184caf 3024
d9898ee8 3025 test -n "$CC" && break
3026 done
3027fi
3028if test -z "$CC"; then
3029 ac_ct_CC=$CC
dd184caf 3030 for ac_prog in cl.exe
d9898ee8 3031do
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033set dummy $ac_prog; ac_word=$2
b0322a85 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3035$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3036if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3037 $as_echo_n "(cached) " >&6
d9898ee8 3038else
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
b0322a85
CE
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3049 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3051 break 2
3052 fi
3053done
b0322a85 3054 done
dd184caf 3055IFS=$as_save_IFS
d9898ee8 3056
3057fi
3058fi
3059ac_ct_CC=$ac_cv_prog_ac_ct_CC
3060if test -n "$ac_ct_CC"; then
b0322a85 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3062$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3063else
b0322a85 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3065$as_echo "no" >&6; }
d9898ee8 3066fi
3067
dd184caf 3068
d9898ee8 3069 test -n "$ac_ct_CC" && break
3070done
3071
dd184caf 3072 if test "x$ac_ct_CC" = x; then
3073 CC=""
3074 else
3075 case $cross_compiling:$ac_tool_warned in
3076yes:)
b0322a85 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3079ac_tool_warned=yes ;;
3080esac
3081 CC=$ac_ct_CC
3082 fi
d9898ee8 3083fi
3084
3085fi
3086
3087
b0322a85 3088test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3090as_fn_error $? "no acceptable C compiler found in \$PATH
3091See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3092
3093# Provide some information about the compiler.
b0322a85 3094$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3095set X $ac_compile
3096ac_compiler=$2
b0322a85
CE
3097for ac_option in --version -v -V -qversion; do
3098 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
b0322a85
CE
3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104$as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3106 ac_status=$?
b0322a85
CE
3107 if test -s conftest.err; then
3108 sed '10a\
3109... rest of stderr output deleted ...
3110 10q' conftest.err >conftest.er1
3111 cat conftest.er1 >&5
3112 fi
3113 rm -f conftest.er1 conftest.err
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }
3116done
d9898ee8 3117
b0322a85 3118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129ac_clean_files_save=$ac_clean_files
8d138742 3130ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3131# Try to create an executable without -o first, disregard a.out.
3132# It will help us diagnose broken compilers, and finding out an intuition
3133# of exeext.
b0322a85
CE
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3135$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3136ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3137
3138# The possible output files:
3139ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3140
dd184caf 3141ac_rmfiles=
3142for ac_file in $ac_files
3143do
3144 case $ac_file in
8d138742 3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3147 esac
3148done
3149rm -f $ac_rmfiles
3150
b0322a85 3151if { { ac_try="$ac_link_default"
dd184caf 3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
b0322a85
CE
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
dd184caf 3158 (eval "$ac_link_default") 2>&5
d9898ee8 3159 ac_status=$?
b0322a85
CE
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
dd184caf 3162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3164# in a Makefile. We should not override ac_cv_exeext if it was cached,
3165# so that the user can short-circuit this test for compilers unknown to
3166# Autoconf.
3167for ac_file in $ac_files ''
d9898ee8 3168do
3169 test -f "$ac_file" || continue
3170 case $ac_file in
8d138742 3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3172 ;;
3173 [ab].out )
3174 # We found the default executable, but exeext='' is most
3175 # certainly right.
3176 break;;
3177 *.* )
b0322a85 3178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3179 then :; else
3180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181 fi
3182 # We set ac_cv_exeext here because the later test for it is not
3183 # safe: cross compilers may not add the suffix if given an `-o'
3184 # argument, so we may need to know it at that point already.
3185 # Even if this section looks crufty: it has the advantage of
3186 # actually working.
d9898ee8 3187 break;;
3188 * )
3189 break;;
3190 esac
3191done
dd184caf 3192test "$ac_cv_exeext" = no && ac_cv_exeext=
3193
d9898ee8 3194else
dd184caf 3195 ac_file=''
3196fi
b0322a85
CE
3197if test -z "$ac_file"; then :
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200$as_echo "$as_me: failed program was:" >&5
d9898ee8 3201sed 's/^/| /' conftest.$ac_ext >&5
3202
b0322a85 3203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3205as_fn_error 77 "C compiler cannot create executables
3206See \`config.log' for more details" "$LINENO" 5; }
3207else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209$as_echo "yes" >&6; }
d9898ee8 3210fi
b0322a85
CE
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3212$as_echo_n "checking for C compiler default output file name... " >&6; }
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3214$as_echo "$ac_file" >&6; }
d9898ee8 3215ac_exeext=$ac_cv_exeext
d9898ee8 3216
8d138742 3217rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3218ac_clean_files=$ac_clean_files_save
b0322a85 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3220$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3221if { { ac_try="$ac_link"
dd184caf 3222case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
b0322a85
CE
3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227$as_echo "$ac_try_echo"; } >&5
dd184caf 3228 (eval "$ac_link") 2>&5
d9898ee8 3229 ac_status=$?
b0322a85
CE
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; then :
d9898ee8 3232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3233# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3234# work properly (i.e., refer to `conftest.exe'), while it won't with
3235# `rm'.
3236for ac_file in conftest.exe conftest conftest.*; do
3237 test -f "$ac_file" || continue
3238 case $ac_file in
8d138742 3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3241 break;;
3242 * ) break;;
3243 esac
3244done
3245else
b0322a85 3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3248as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3249See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3250fi
b0322a85
CE
3251rm -f conftest conftest$ac_cv_exeext
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3253$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3254
3255rm -f conftest.$ac_ext
3256EXEEXT=$ac_cv_exeext
3257ac_exeext=$EXEEXT
b0322a85
CE
3258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h. */
3260#include <stdio.h>
3261int
3262main ()
3263{
3264FILE *f = fopen ("conftest.out", "w");
3265 return ferror (f) || fclose (f) != 0;
3266
3267 ;
3268 return 0;
3269}
3270_ACEOF
3271ac_clean_files="$ac_clean_files conftest.out"
3272# Check that the compiler produces executables we can run. If not, either
3273# the compiler is broken, or we cross compile.
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3275$as_echo_n "checking whether we are cross compiling... " >&6; }
3276if test "$cross_compiling" != yes; then
3277 { { ac_try="$ac_link"
3278case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }
3288 if { ac_try='./conftest$ac_cv_exeext'
3289 { { case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
3293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294$as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_try") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; }; then
3299 cross_compiling=no
3300 else
3301 if test "$cross_compiling" = maybe; then
3302 cross_compiling=yes
3303 else
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306as_fn_error $? "cannot run C compiled programs.
3307If you meant to cross compile, use \`--host'.
3308See \`config.log' for more details" "$LINENO" 5; }
3309 fi
3310 fi
3311fi
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3313$as_echo "$cross_compiling" >&6; }
3314
3315rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3316ac_clean_files=$ac_clean_files_save
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3318$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3319if ${ac_cv_objext+:} false; then :
8d138742 3320 $as_echo_n "(cached) " >&6
d9898ee8 3321else
b0322a85 3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3323/* end confdefs.h. */
3324
3325int
3326main ()
3327{
3328
3329 ;
3330 return 0;
3331}
3332_ACEOF
3333rm -f conftest.o conftest.obj
b0322a85 3334if { { ac_try="$ac_compile"
dd184caf 3335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
b0322a85
CE
3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
dd184caf 3341 (eval "$ac_compile") 2>&5
d9898ee8 3342 ac_status=$?
b0322a85
CE
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
dd184caf 3345 for ac_file in conftest.o conftest.obj conftest.*; do
3346 test -f "$ac_file" || continue;
d9898ee8 3347 case $ac_file in
8d138742 3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350 break;;
3351 esac
3352done
3353else
8d138742 3354 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3355sed 's/^/| /' conftest.$ac_ext >&5
3356
b0322a85 3357{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3359as_fn_error $? "cannot compute suffix of object files: cannot compile
3360See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3361fi
d9898ee8 3362rm -f conftest.$ac_cv_objext conftest.$ac_ext
3363fi
b0322a85 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3365$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3366OBJEXT=$ac_cv_objext
3367ac_objext=$OBJEXT
b0322a85 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3369$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3370if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3371 $as_echo_n "(cached) " >&6
d9898ee8 3372else
b0322a85 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3374/* end confdefs.h. */
3375
3376int
3377main ()
3378{
3379#ifndef __GNUC__
3380 choke me
3381#endif
3382
3383 ;
3384 return 0;
3385}
3386_ACEOF
b0322a85 3387if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3388 ac_compiler_gnu=yes
3389else
b0322a85 3390 ac_compiler_gnu=no
d9898ee8 3391fi
dd184caf 3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3393ac_cv_c_compiler_gnu=$ac_compiler_gnu
3394
3395fi
b0322a85 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3397$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3398if test $ac_compiler_gnu = yes; then
3399 GCC=yes
3400else
3401 GCC=
3402fi
d9898ee8 3403ac_test_CFLAGS=${CFLAGS+set}
3404ac_save_CFLAGS=$CFLAGS
b0322a85 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3406$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3407if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3408 $as_echo_n "(cached) " >&6
d9898ee8 3409else
dd184caf 3410 ac_save_c_werror_flag=$ac_c_werror_flag
3411 ac_c_werror_flag=yes
3412 ac_cv_prog_cc_g=no
3413 CFLAGS="-g"
b0322a85 3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3415/* end confdefs.h. */
3416
3417int
3418main ()
3419{
3420
3421 ;
3422 return 0;
3423}
3424_ACEOF
b0322a85 3425if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3426 ac_cv_prog_cc_g=yes
3427else
b0322a85
CE
3428 CFLAGS=""
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3430/* end confdefs.h. */
3431
3432int
3433main ()
3434{
3435
3436 ;
3437 return 0;
3438}
3439_ACEOF
b0322a85 3440if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3441
b0322a85
CE
3442else
3443 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3444 CFLAGS="-g"
b0322a85 3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3446/* end confdefs.h. */
3447
3448int
3449main ()
3450{
3451
3452 ;
3453 return 0;
3454}
3455_ACEOF
b0322a85 3456if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3457 ac_cv_prog_cc_g=yes
dd184caf 3458fi
dd184caf 3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3460fi
dd184caf 3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462fi
dd184caf 3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3465fi
b0322a85 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3467$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3468if test "$ac_test_CFLAGS" = set; then
3469 CFLAGS=$ac_save_CFLAGS
3470elif test $ac_cv_prog_cc_g = yes; then
3471 if test "$GCC" = yes; then
3472 CFLAGS="-g -O2"
3473 else
3474 CFLAGS="-g"
3475 fi
3476else
3477 if test "$GCC" = yes; then
3478 CFLAGS="-O2"
3479 else
3480 CFLAGS=
3481 fi
3482fi
b0322a85 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3484$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3485if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3486 $as_echo_n "(cached) " >&6
d9898ee8 3487else
dd184caf 3488 ac_cv_prog_cc_c89=no
d9898ee8 3489ac_save_CC=$CC
b0322a85 3490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3491/* end confdefs.h. */
3492#include <stdarg.h>
3493#include <stdio.h>
b0322a85 3494struct stat;
d9898ee8 3495/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3496struct buf { int x; };
3497FILE * (*rcsopen) (struct buf *, struct stat *, int);
3498static char *e (p, i)
3499 char **p;
3500 int i;
3501{
3502 return p[i];
3503}
3504static char *f (char * (*g) (char **, int), char **p, ...)
3505{
3506 char *s;
3507 va_list v;
3508 va_start (v,p);
3509 s = g (p, va_arg (v,int));
3510 va_end (v);
3511 return s;
3512}
3513
3514/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3515 function prototypes and stuff, but not '\xHH' hex character constants.
3516 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3517 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3519 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3520 that's true only with -std. */
d9898ee8 3521int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3522
dd184caf 3523/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3524 inside strings and character constants. */
3525#define FOO(x) 'x'
3526int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3527
d9898ee8 3528int test (int i, double x);
3529struct s1 {int (*f) (int a);};
3530struct s2 {int (*f) (double a);};
3531int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3532int argc;
3533char **argv;
3534int
3535main ()
3536{
3537return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3538 ;
3539 return 0;
3540}
3541_ACEOF
dd184caf 3542for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3543 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3544do
3545 CC="$ac_save_CC $ac_arg"
b0322a85 3546 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3547 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3548fi
dd184caf 3549rm -f core conftest.err conftest.$ac_objext
3550 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3551done
dd184caf 3552rm -f conftest.$ac_ext
d9898ee8 3553CC=$ac_save_CC
3554
3555fi
dd184caf 3556# AC_CACHE_VAL
3557case "x$ac_cv_prog_cc_c89" in
3558 x)
b0322a85 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3560$as_echo "none needed" >&6; } ;;
dd184caf 3561 xno)
b0322a85 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3563$as_echo "unsupported" >&6; } ;;
d9898ee8 3564 *)
dd184caf 3565 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3567$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3568esac
b0322a85 3569if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3570
b0322a85 3571fi
d9898ee8 3572
d9898ee8 3573ac_ext=c
3574ac_cpp='$CPP $CPPFLAGS'
3575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578DEPDIR="${am__leading_dot}deps"
3579
dd184caf 3580ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3581
3582
3583am_make=${MAKE-make}
3584cat > confinc << 'END'
3585am__doit:
8d138742 3586 @echo this is the am__doit target
d9898ee8 3587.PHONY: am__doit
3588END
3589# If we don't find an include directive, just comment out the code.
b0322a85 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 3591$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3592am__include="#"
3593am__quote=
3594_am_result=none
3595# First try GNU make style include.
3596echo "include confinc" > confmf
b0322a85 3597# Ignore all kinds of additional output from 'make'.
8d138742
CE
3598case `$am_make -s -f confmf 2> /dev/null` in #(
3599*the\ am__doit\ target*)
3600 am__include=include
3601 am__quote=
3602 _am_result=GNU
3603 ;;
3604esac
d9898ee8 3605# Now try BSD make style include.
3606if test "$am__include" = "#"; then
3607 echo '.include "confinc"' > confmf
8d138742
CE
3608 case `$am_make -s -f confmf 2> /dev/null` in #(
3609 *the\ am__doit\ target*)
3610 am__include=.include
3611 am__quote="\""
3612 _am_result=BSD
3613 ;;
3614 esac
d9898ee8 3615fi
3616
3617
b0322a85 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 3619$as_echo "$_am_result" >&6; }
d9898ee8 3620rm -f confinc confmf
3621
dd184caf 3622# Check whether --enable-dependency-tracking was given.
b0322a85 3623if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 3624 enableval=$enable_dependency_tracking;
3625fi
d9898ee8 3626
d9898ee8 3627if test "x$enable_dependency_tracking" != xno; then
3628 am_depcomp="$ac_aux_dir/depcomp"
3629 AMDEPBACKSLASH='\'
b0322a85 3630 am__nodep='_no'
d9898ee8 3631fi
dd184caf 3632 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3633 AMDEP_TRUE=
3634 AMDEP_FALSE='#'
3635else
3636 AMDEP_TRUE='#'
3637 AMDEP_FALSE=
3638fi
3639
3640
3641
d9898ee8 3642depcc="$CC" am_compiler_list=
3643
b0322a85 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3645$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3646if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3647 $as_echo_n "(cached) " >&6
d9898ee8 3648else
3649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3650 # We make a subdir and do the tests there. Otherwise we can end up
3651 # making bogus files that we don't know about and never remove. For
3652 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3653 # making a dummy file named 'D' -- because '-MD' means "put the output
3654 # in D".
3655 rm -rf conftest.dir
d9898ee8 3656 mkdir conftest.dir
3657 # Copy depcomp to subdir because otherwise we won't find it if we're
3658 # using a relative directory.
3659 cp "$am_depcomp" conftest.dir
3660 cd conftest.dir
3661 # We will build objects and dependencies in a subdirectory because
3662 # it helps to detect inapplicable dependency modes. For instance
3663 # both Tru64's cc and ICC support -MD to output dependencies as a
3664 # side effect of compilation, but ICC will put the dependencies in
3665 # the current directory while Tru64 will put them in the object
3666 # directory.
3667 mkdir sub
3668
3669 am_cv_CC_dependencies_compiler_type=none
3670 if test "$am_compiler_list" = ""; then
3671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672 fi
8d138742
CE
3673 am__universal=false
3674 case " $depcc " in #(
3675 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3676 esac
3677
d9898ee8 3678 for depmode in $am_compiler_list; do
3679 # Setup a source with many dependencies, because some compilers
3680 # like to wrap large dependency lists on column 80 (with \), and
3681 # we should not choose a depcomp mode which is confused by this.
3682 #
3683 # We need to recreate these files for each test, as the compiler may
3684 # overwrite some of them when testing with obscure command lines.
3685 # This happens at least with the AIX C compiler.
3686 : > sub/conftest.c
3687 for i in 1 2 3 4 5 6; do
3688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3689 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3690 # Solaris 10 /bin/sh.
3691 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3692 done
3693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694
b0322a85 3695 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3696 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3697 # handle '-M -o', and we need to detect this. Also, some Intel
3698 # versions had trouble with output in subdirs.
8d138742
CE
3699 am__obj=sub/conftest.${OBJEXT-o}
3700 am__minus_obj="-o $am__obj"
d9898ee8 3701 case $depmode in
8d138742
CE
3702 gcc)
3703 # This depmode causes a compiler race in universal mode.
3704 test "$am__universal" = false || continue
3705 ;;
d9898ee8 3706 nosideeffect)
b0322a85
CE
3707 # After this tag, mechanisms are not by side-effect, so they'll
3708 # only be used when explicitly requested.
d9898ee8 3709 if test "x$enable_dependency_tracking" = xyes; then
3710 continue
3711 else
3712 break
3713 fi
3714 ;;
b0322a85
CE
3715 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3716 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3717 # not run yet. These depmodes are late enough in the game, and
3718 # so weak that their functioning should not be impacted.
3719 am__obj=conftest.${OBJEXT-o}
3720 am__minus_obj=
3721 ;;
d9898ee8 3722 none) break ;;
3723 esac
d9898ee8 3724 if depmode=$depmode \
8d138742 3725 source=sub/conftest.c object=$am__obj \
d9898ee8 3726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3727 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3728 >/dev/null 2>conftest.err &&
dd184caf 3729 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3731 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733 # icc doesn't choke on unknown options, it will just issue warnings
3734 # or remarks (even with -Werror). So we grep stderr for any message
3735 # that says an option was ignored or not supported.
3736 # When given -MP, icc 7.0 and 7.1 complain thusly:
3737 # icc: Command line warning: ignoring option '-M'; no argument required
3738 # The diagnosis changed in icc 8.0:
3739 # icc: Command line remark: option '-MP' not supported
3740 if (grep 'ignoring option' conftest.err ||
3741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3742 am_cv_CC_dependencies_compiler_type=$depmode
3743 break
3744 fi
3745 fi
3746 done
3747
3748 cd ..
3749 rm -rf conftest.dir
3750else
3751 am_cv_CC_dependencies_compiler_type=none
3752fi
3753
3754fi
b0322a85 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 3756$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3757CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3758
dd184caf 3759 if
d9898ee8 3760 test "x$enable_dependency_tracking" != xno \
3761 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3762 am__fastdepCC_TRUE=
3763 am__fastdepCC_FALSE='#'
3764else
3765 am__fastdepCC_TRUE='#'
3766 am__fastdepCC_FALSE=
3767fi
3768
3769
8d138742
CE
3770case `pwd` in
3771 *\ * | *\ *)
b0322a85 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742
CE
3773$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3774esac
3775
3776
3777
b0322a85
CE
3778macro_version='2.4.2'
3779macro_revision='1.3337'
8d138742
CE
3780
3781
3782
3783
dd184caf 3784
d9898ee8 3785
dd184caf 3786
d9898ee8 3787
dd184caf 3788
d9898ee8 3789
8d138742
CE
3790
3791
3792
3793ltmain="$ac_aux_dir/ltmain.sh"
3794
d9898ee8 3795# Make sure we can run config.sub.
dd184caf 3796$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 3797 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 3798
b0322a85 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 3800$as_echo_n "checking build system type... " >&6; }
b0322a85 3801if ${ac_cv_build+:} false; then :
8d138742 3802 $as_echo_n "(cached) " >&6
d9898ee8 3803else
dd184caf 3804 ac_build_alias=$build_alias
3805test "x$ac_build_alias" = x &&
3806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3807test "x$ac_build_alias" = x &&
b0322a85 3808 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
dd184caf 3809ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 3810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 3811
3812fi
b0322a85 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742 3814$as_echo "$ac_cv_build" >&6; }
dd184caf 3815case $ac_cv_build in
3816*-*-*) ;;
b0322a85 3817*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
dd184caf 3818esac
d9898ee8 3819build=$ac_cv_build
dd184caf 3820ac_save_IFS=$IFS; IFS='-'
3821set x $ac_cv_build
3822shift
3823build_cpu=$1
3824build_vendor=$2
3825shift; shift
3826# Remember, the first character of IFS is used to create $*,
3827# except with old shells:
3828build_os=$*
3829IFS=$ac_save_IFS
3830case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3831
3832
b0322a85 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 3834$as_echo_n "checking host system type... " >&6; }
b0322a85 3835if ${ac_cv_host+:} false; then :
8d138742 3836 $as_echo_n "(cached) " >&6
d9898ee8 3837else
dd184caf 3838 if test "x$host_alias" = x; then
3839 ac_cv_host=$ac_cv_build
3840else
3841 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 3842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
dd184caf 3843fi
d9898ee8 3844
3845fi
b0322a85 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742 3847$as_echo "$ac_cv_host" >&6; }
dd184caf 3848case $ac_cv_host in
3849*-*-*) ;;
b0322a85 3850*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
dd184caf 3851esac
d9898ee8 3852host=$ac_cv_host
dd184caf 3853ac_save_IFS=$IFS; IFS='-'
3854set x $ac_cv_host
3855shift
3856host_cpu=$1
3857host_vendor=$2
3858shift; shift
3859# Remember, the first character of IFS is used to create $*,
3860# except with old shells:
3861host_os=$*
3862IFS=$ac_save_IFS
3863case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3864
3865
b0322a85
CE
3866# Backslashify metacharacters that are still active within
3867# double-quoted strings.
3868sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3869
3870# Same as above, but do not quote variable references.
3871double_quote_subst='s/\(["`\\]\)/\\\1/g'
3872
3873# Sed substitution to delay expansion of an escaped shell variable in a
3874# double_quote_subst'ed string.
3875delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3876
3877# Sed substitution to delay expansion of an escaped single quote.
3878delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3879
3880# Sed substitution to avoid accidental globbing in evaled expressions
3881no_glob_subst='s/\*/\\\*/g'
3882
3883ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3884ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3885ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3886
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3888$as_echo_n "checking how to print strings... " >&6; }
3889# Test print first, because it will be a builtin if present.
3890if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3891 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3892 ECHO='print -r --'
3893elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3894 ECHO='printf %s\n'
3895else
3896 # Use this function as a fallback that always works.
3897 func_fallback_echo ()
3898 {
3899 eval 'cat <<_LTECHO_EOF
3900$1
3901_LTECHO_EOF'
3902 }
3903 ECHO='func_fallback_echo'
3904fi
3905
3906# func_echo_all arg...
3907# Invoke $ECHO with all args, space-separated.
3908func_echo_all ()
3909{
3910 $ECHO ""
3911}
3912
3913case "$ECHO" in
3914 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3915$as_echo "printf" >&6; } ;;
3916 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3917$as_echo "print -r" >&6; } ;;
3918 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3919$as_echo "cat" >&6; } ;;
3920esac
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 3936$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 3937if ${ac_cv_path_SED+:} false; then :
8d138742
CE
3938 $as_echo_n "(cached) " >&6
3939else
3940 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3941 for ac_i in 1 2 3 4 5 6 7; do
3942 ac_script="$ac_script$as_nl$ac_script"
3943 done
3944 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 3945 { ac_script=; unset ac_script;}
8d138742
CE
3946 if test -z "$SED"; then
3947 ac_path_SED_found=false
3948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
b0322a85 3954 for ac_prog in sed gsed; do
d9898ee8 3955 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742 3956 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 3957 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
3958# Check for GNU ac_path_SED and select it if it is found.
3959 # Check for GNU $ac_path_SED
3960case `"$ac_path_SED" --version 2>&1` in
3961*GNU*)
3962 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3963*)
3964 ac_count=0
3965 $as_echo_n 0123456789 >"conftest.in"
3966 while :
3967 do
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 $as_echo '' >> "conftest.nl"
3972 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 3974 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
3975 if test $ac_count -gt ${ac_path_SED_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_SED="$ac_path_SED"
3978 ac_path_SED_max=$ac_count
3979 fi
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984esac
3985
3986 $ac_path_SED_found && break 3
d9898ee8 3987 done
3988 done
b0322a85 3989 done
d9898ee8 3990IFS=$as_save_IFS
8d138742 3991 if test -z "$ac_cv_path_SED"; then
b0322a85 3992 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
d9898ee8 3993 fi
8d138742
CE
3994else
3995 ac_cv_path_SED=$SED
3996fi
d9898ee8 3997
3998fi
b0322a85 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
4000$as_echo "$ac_cv_path_SED" >&6; }
4001 SED="$ac_cv_path_SED"
4002 rm -f conftest.sed
4003
4004test -z "$SED" && SED=sed
4005Xsed="$SED -e 1s/^X//"
d9898ee8 4006
d9898ee8 4007
dd184caf 4008
8d138742
CE
4009
4010
4011
4012
4013
4014
4015
4016
b0322a85 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4018$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4019if ${ac_cv_path_GREP+:} false; then :
8d138742 4020 $as_echo_n "(cached) " >&6
dd184caf 4021else
8d138742 4022 if test -z "$GREP"; then
dd184caf 4023 ac_path_GREP_found=false
8d138742
CE
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
b0322a85 4030 for ac_prog in grep ggrep; do
8d138742
CE
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4033 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4034# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4035 # Check for GNU $ac_path_GREP
4036case `"$ac_path_GREP" --version 2>&1` in
4037*GNU*)
4038 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4039*)
4040 ac_count=0
8d138742 4041 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4042 while :
4043 do
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
8d138742 4047 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4048 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4051 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_GREP="$ac_path_GREP"
4054 ac_path_GREP_max=$ac_count
4055 fi
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4058 done
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060esac
4061
8d138742
CE
4062 $ac_path_GREP_found && break 3
4063 done
dd184caf 4064 done
b0322a85 4065 done
dd184caf 4066IFS=$as_save_IFS
8d138742 4067 if test -z "$ac_cv_path_GREP"; then
b0322a85 4068 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4069 fi
dd184caf 4070else
4071 ac_cv_path_GREP=$GREP
4072fi
4073
dd184caf 4074fi
b0322a85 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4076$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4077 GREP="$ac_cv_path_GREP"
4078
4079
b0322a85 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4081$as_echo_n "checking for egrep... " >&6; }
b0322a85 4082if ${ac_cv_path_EGREP+:} false; then :
8d138742 4083 $as_echo_n "(cached) " >&6
dd184caf 4084else
4085 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4086 then ac_cv_path_EGREP="$GREP -E"
4087 else
8d138742 4088 if test -z "$EGREP"; then
dd184caf 4089 ac_path_EGREP_found=false
8d138742
CE
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4092for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4093do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
b0322a85 4096 for ac_prog in egrep; do
8d138742
CE
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4099 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4100# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4101 # Check for GNU $ac_path_EGREP
4102case `"$ac_path_EGREP" --version 2>&1` in
4103*GNU*)
4104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4105*)
4106 ac_count=0
8d138742 4107 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4108 while :
4109 do
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
8d138742 4113 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4116 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_EGREP="$ac_path_EGREP"
4120 ac_path_EGREP_max=$ac_count
d9898ee8 4121 fi
dd184caf 4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4124 done
4125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126esac
4127
8d138742
CE
4128 $ac_path_EGREP_found && break 3
4129 done
dd184caf 4130 done
b0322a85 4131 done
dd184caf 4132IFS=$as_save_IFS
8d138742 4133 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4134 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4135 fi
4136else
4137 ac_cv_path_EGREP=$EGREP
dd184caf 4138fi
4139
8d138742 4140 fi
dd184caf 4141fi
b0322a85 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742
CE
4143$as_echo "$ac_cv_path_EGREP" >&6; }
4144 EGREP="$ac_cv_path_EGREP"
dd184caf 4145
8d138742 4146
b0322a85 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 4148$as_echo_n "checking for fgrep... " >&6; }
b0322a85 4149if ${ac_cv_path_FGREP+:} false; then :
8d138742 4150 $as_echo_n "(cached) " >&6
dd184caf 4151else
8d138742
CE
4152 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4153 then ac_cv_path_FGREP="$GREP -F"
4154 else
4155 if test -z "$FGREP"; then
4156 ac_path_FGREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
b0322a85 4163 for ac_prog in fgrep; do
8d138742
CE
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4166 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
4167# Check for GNU ac_path_FGREP and select it if it is found.
4168 # Check for GNU $ac_path_FGREP
4169case `"$ac_path_FGREP" --version 2>&1` in
4170*GNU*)
4171 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4172*)
4173 ac_count=0
4174 $as_echo_n 0123456789 >"conftest.in"
4175 while :
4176 do
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 $as_echo 'FGREP' >> "conftest.nl"
4181 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4183 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4184 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_FGREP="$ac_path_FGREP"
4187 ac_path_FGREP_max=$ac_count
4188 fi
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4191 done
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193esac
dd184caf 4194
8d138742
CE
4195 $ac_path_FGREP_found && break 3
4196 done
4197 done
b0322a85 4198 done
8d138742
CE
4199IFS=$as_save_IFS
4200 if test -z "$ac_cv_path_FGREP"; then
b0322a85 4201 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4202 fi
4203else
4204 ac_cv_path_FGREP=$FGREP
4205fi
dd184caf 4206
4207 fi
d9898ee8 4208fi
b0322a85 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
4210$as_echo "$ac_cv_path_FGREP" >&6; }
4211 FGREP="$ac_cv_path_FGREP"
4212
4213
4214test -z "$GREP" && GREP=grep
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
d9898ee8 4231
4232
4233
dd184caf 4234# Check whether --with-gnu-ld was given.
b0322a85 4235if test "${with_gnu_ld+set}" = set; then :
dd184caf 4236 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4237else
4238 with_gnu_ld=no
dd184caf 4239fi
4240
d9898ee8 4241ac_prog=ld
4242if test "$GCC" = yes; then
4243 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 4245$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4246 case $host in
4247 *-*-mingw*)
4248 # gcc leaves a trailing carriage return which upsets mingw
4249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4250 *)
4251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4252 esac
4253 case $ac_prog in
4254 # Accept absolute paths.
4255 [\\/]* | ?:[\\/]*)
4256 re_direlt='/[^/][^/]*/\.\./'
4257 # Canonicalize the pathname of ld
8d138742
CE
4258 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4259 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4260 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4261 done
4262 test -z "$LD" && LD="$ac_prog"
4263 ;;
4264 "")
4265 # If it fails, then pretend we aren't using GCC.
4266 ac_prog=ld
4267 ;;
4268 *)
4269 # If it is relative, then search for the first ld in PATH.
4270 with_gnu_ld=unknown
4271 ;;
4272 esac
4273elif test "$with_gnu_ld" = yes; then
b0322a85 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 4275$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4276else
b0322a85 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 4278$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4279fi
b0322a85 4280if ${lt_cv_path_LD+:} false; then :
8d138742 4281 $as_echo_n "(cached) " >&6
d9898ee8 4282else
4283 if test -z "$LD"; then
4284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4285 for ac_dir in $PATH; do
4286 IFS="$lt_save_ifs"
4287 test -z "$ac_dir" && ac_dir=.
4288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4289 lt_cv_path_LD="$ac_dir/$ac_prog"
4290 # Check to see if the program is GNU ld. I'd rather use --version,
4291 # but apparently some variants of GNU ld only accept -v.
4292 # Break only if it was the GNU/non-GNU ld that we prefer.
4293 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4294 *GNU* | *'with BFD'*)
4295 test "$with_gnu_ld" != no && break
4296 ;;
4297 *)
4298 test "$with_gnu_ld" != yes && break
4299 ;;
4300 esac
4301 fi
4302 done
4303 IFS="$lt_save_ifs"
4304else
4305 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4306fi
4307fi
4308
4309LD="$lt_cv_path_LD"
4310if test -n "$LD"; then
b0322a85 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 4312$as_echo "$LD" >&6; }
d9898ee8 4313else
b0322a85 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4315$as_echo "no" >&6; }
d9898ee8 4316fi
b0322a85
CE
4317test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 4319$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 4320if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 4321 $as_echo_n "(cached) " >&6
d9898ee8 4322else
4323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4324case `$LD -v 2>&1 </dev/null` in
4325*GNU* | *'with BFD'*)
4326 lt_cv_prog_gnu_ld=yes
4327 ;;
4328*)
4329 lt_cv_prog_gnu_ld=no
4330 ;;
4331esac
4332fi
b0322a85 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 4334$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4335with_gnu_ld=$lt_cv_prog_gnu_ld
4336
4337
d9898ee8 4338
8d138742
CE
4339
4340
4341
4342
4343
4344
b0322a85 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 4346$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 4347if ${lt_cv_path_NM+:} false; then :
8d138742 4348 $as_echo_n "(cached) " >&6
d9898ee8 4349else
4350 if test -n "$NM"; then
4351 # Let the user override the test.
4352 lt_cv_path_NM="$NM"
4353else
4354 lt_nm_to_check="${ac_tool_prefix}nm"
4355 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4356 lt_nm_to_check="$lt_nm_to_check nm"
4357 fi
4358 for lt_tmp_nm in $lt_nm_to_check; do
4359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4360 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4361 IFS="$lt_save_ifs"
4362 test -z "$ac_dir" && ac_dir=.
4363 tmp_nm="$ac_dir/$lt_tmp_nm"
4364 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4365 # Check to see if the nm accepts a BSD-compat flag.
4366 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4367 # nm: unknown option "B" ignored
4368 # Tru64's nm complains that /dev/null is an invalid object file
4369 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4370 */dev/null* | *'Invalid file or object type'*)
4371 lt_cv_path_NM="$tmp_nm -B"
4372 break
4373 ;;
4374 *)
4375 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4376 */dev/null*)
4377 lt_cv_path_NM="$tmp_nm -p"
4378 break
4379 ;;
4380 *)
4381 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4382 continue # so that we can try to find one that supports BSD flags
4383 ;;
4384 esac
4385 ;;
4386 esac
4387 fi
4388 done
4389 IFS="$lt_save_ifs"
4390 done
8d138742 4391 : ${lt_cv_path_NM=no}
d9898ee8 4392fi
4393fi
b0322a85 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742
CE
4395$as_echo "$lt_cv_path_NM" >&6; }
4396if test "$lt_cv_path_NM" != "no"; then
4397 NM="$lt_cv_path_NM"
d9898ee8 4398else
8d138742 4399 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
4400 if test -n "$DUMPBIN"; then :
4401 # Let the user override the test.
4402 else
4403 if test -n "$ac_tool_prefix"; then
4404 for ac_prog in dumpbin "link -dump"
8d138742
CE
4405 do
4406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4409$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4410if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
4411 $as_echo_n "(cached) " >&6
4412else
4413 if test -n "$DUMPBIN"; then
4414 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4415else
4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
b0322a85
CE
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4423 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4425 break 2
4426 fi
4427done
b0322a85 4428 done
8d138742 4429IFS=$as_save_IFS
d9898ee8 4430
8d138742
CE
4431fi
4432fi
4433DUMPBIN=$ac_cv_prog_DUMPBIN
4434if test -n "$DUMPBIN"; then
b0322a85 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742
CE
4436$as_echo "$DUMPBIN" >&6; }
4437else
b0322a85 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4439$as_echo "no" >&6; }
4440fi
d9898ee8 4441
d9898ee8 4442
8d138742
CE
4443 test -n "$DUMPBIN" && break
4444 done
4445fi
4446if test -z "$DUMPBIN"; then
4447 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 4448 for ac_prog in dumpbin "link -dump"
8d138742
CE
4449do
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451set dummy $ac_prog; ac_word=$2
b0322a85 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4453$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4454if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
4455 $as_echo_n "(cached) " >&6
4456else
4457 if test -n "$ac_ct_DUMPBIN"; then
4458 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4459else
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
b0322a85
CE
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4467 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 4469 break 2
ac40fd9e 4470 fi
8d138742 4471done
b0322a85 4472 done
8d138742 4473IFS=$as_save_IFS
d9898ee8 4474
8d138742
CE
4475fi
4476fi
4477ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4478if test -n "$ac_ct_DUMPBIN"; then
b0322a85 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
4480$as_echo "$ac_ct_DUMPBIN" >&6; }
4481else
b0322a85 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4483$as_echo "no" >&6; }
4484fi
d9898ee8 4485
8d138742
CE
4486
4487 test -n "$ac_ct_DUMPBIN" && break
4488done
4489
4490 if test "x$ac_ct_DUMPBIN" = x; then
4491 DUMPBIN=":"
d9898ee8 4492 else
8d138742
CE
4493 case $cross_compiling:$ac_tool_warned in
4494yes:)
b0322a85 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497ac_tool_warned=yes ;;
4498esac
4499 DUMPBIN=$ac_ct_DUMPBIN
d9898ee8 4500 fi
8d138742 4501fi
d9898ee8 4502
b0322a85
CE
4503 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4504 *COFF*)
4505 DUMPBIN="$DUMPBIN -symbols"
4506 ;;
4507 *)
4508 DUMPBIN=:
4509 ;;
4510 esac
4511 fi
d9898ee8 4512
8d138742
CE
4513 if test "$DUMPBIN" != ":"; then
4514 NM="$DUMPBIN"
4515 fi
4516fi
4517test -z "$NM" && NM=nm
d9898ee8 4518
d9898ee8 4519
d9898ee8 4520
d9898ee8 4521
d9898ee8 4522
d9898ee8 4523
b0322a85 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 4525$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 4526if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
4527 $as_echo_n "(cached) " >&6
4528else
4529 lt_cv_nm_interface="BSD nm"
4530 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 4531 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
4532 (eval "$ac_compile" 2>conftest.err)
4533 cat conftest.err >&5
b0322a85 4534 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
4535 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4536 cat conftest.err >&5
b0322a85 4537 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
4538 cat conftest.out >&5
4539 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4540 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4541 fi
8d138742
CE
4542 rm -f conftest*
4543fi
b0322a85 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 4545$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4546
8d138742 4547# find the maximum length of command line arguments
b0322a85 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 4549$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 4550if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
4551 $as_echo_n "(cached) " >&6
4552else
4553 i=0
4554 teststring="ABCD"
d9898ee8 4555
8d138742
CE
4556 case $build_os in
4557 msdosdjgpp*)
4558 # On DJGPP, this test can blow up pretty badly due to problems in libc
4559 # (any single argument exceeding 2000 bytes causes a buffer overrun
4560 # during glob expansion). Even if it were fixed, the result of this
4561 # check would be larger than it should be.
4562 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4563 ;;
ac40fd9e 4564
8d138742
CE
4565 gnu*)
4566 # Under GNU Hurd, this test is not required because there is
4567 # no limit to the length of command line arguments.
4568 # Libtool will interpret -1 as no limit whatsoever
4569 lt_cv_sys_max_cmd_len=-1;
4570 ;;
d9898ee8 4571
8d138742
CE
4572 cygwin* | mingw* | cegcc*)
4573 # On Win9x/ME, this test blows up -- it succeeds, but takes
4574 # about 5 minutes as the teststring grows exponentially.
4575 # Worse, since 9x/ME are not pre-emptively multitasking,
4576 # you end up with a "frozen" computer, even though with patience
4577 # the test eventually succeeds (with a max line length of 256k).
4578 # Instead, let's just punt: use the minimum linelength reported by
4579 # all of the supported platforms: 8192 (on NT/2K/XP).
4580 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4581 ;;
8d138742 4582
b0322a85
CE
4583 mint*)
4584 # On MiNT this can take a long time and run out of memory.
4585 lt_cv_sys_max_cmd_len=8192;
4586 ;;
4587
8d138742
CE
4588 amigaos*)
4589 # On AmigaOS with pdksh, this test takes hours, literally.
4590 # So we just punt and use a minimum line length of 8192.
4591 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4592 ;;
8d138742
CE
4593
4594 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4595 # This has been around since 386BSD, at least. Likely further.
4596 if test -x /sbin/sysctl; then
4597 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4598 elif test -x /usr/sbin/sysctl; then
4599 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4600 else
4601 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4602 fi
4603 # And add a safety zone
4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4606 ;;
8d138742
CE
4607
4608 interix*)
4609 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4610 lt_cv_sys_max_cmd_len=196608
d9898ee8 4611 ;;
8d138742 4612
b0322a85
CE
4613 os2*)
4614 # The test takes a long time on OS/2.
4615 lt_cv_sys_max_cmd_len=8192
4616 ;;
4617
8d138742
CE
4618 osf*)
4619 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4620 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4621 # nice to cause kernel panics so lets avoid the loop below.
4622 # First set a reasonable default.
4623 lt_cv_sys_max_cmd_len=16384
4624 #
4625 if test -x /sbin/sysconfig; then
4626 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4627 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4628 esac
4629 fi
d9898ee8 4630 ;;
8d138742
CE
4631 sco3.2v5*)
4632 lt_cv_sys_max_cmd_len=102400
4633 ;;
4634 sysv5* | sco5v6* | sysv4.2uw2*)
4635 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4636 if test -n "$kargmax"; then
4637 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4638 else
4639 lt_cv_sys_max_cmd_len=32768
4640 fi
4641 ;;
4642 *)
4643 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4644 if test -n "$lt_cv_sys_max_cmd_len"; then
4645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4647 else
4648 # Make teststring a little bigger before we do anything with it.
4649 # a 1K string should be a reasonable start.
4650 for i in 1 2 3 4 5 6 7 8 ; do
4651 teststring=$teststring$teststring
4652 done
4653 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4654 # If test is not a shell built-in, we'll probably end up computing a
4655 # maximum length that is only half of the actual maximum length, but
4656 # we can't tell.
b0322a85
CE
4657 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4658 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8d138742
CE
4659 test $i != 17 # 1/2 MB should be enough
4660 do
4661 i=`expr $i + 1`
4662 teststring=$teststring$teststring
4663 done
4664 # Only check the string length outside the loop.
4665 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4666 teststring=
4667 # Add a significant safety factor because C++ compilers can tack on
4668 # massive amounts of additional arguments before passing them to the
4669 # linker. It appears as though 1/2 is a usable value.
4670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4671 fi
d9898ee8 4672 ;;
4673 esac
d9898ee8 4674
8d138742 4675fi
d9898ee8 4676
8d138742 4677if test -n $lt_cv_sys_max_cmd_len ; then
b0322a85 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
4679$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4680else
b0322a85 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742 4682$as_echo "none" >&6; }
d9898ee8 4683fi
8d138742 4684max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4685
4686
4687
4688
d9898ee8 4689
d9898ee8 4690
8d138742
CE
4691: ${CP="cp -f"}
4692: ${MV="mv -f"}
4693: ${RM="rm -f"}
d9898ee8 4694
b0322a85 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8d138742
CE
4696$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4697# Try some XSI features
4698xsi_shell=no
4699( _lt_dummy="a/b/c"
b0322a85
CE
4700 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4701 = c,a/b,b/c, \
8d138742
CE
4702 && eval 'test $(( 1 + 1 )) -eq 2 \
4703 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4704 && xsi_shell=yes
b0322a85 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8d138742 4706$as_echo "$xsi_shell" >&6; }
d9898ee8 4707
d9898ee8 4708
b0322a85 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8d138742
CE
4710$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4711lt_shell_append=no
4712( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4713 >/dev/null 2>&1 \
4714 && lt_shell_append=yes
b0322a85 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8d138742 4716$as_echo "$lt_shell_append" >&6; }
d9898ee8 4717
d9898ee8 4718
8d138742
CE
4719if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4720 lt_unset=unset
d9898ee8 4721else
8d138742
CE
4722 lt_unset=false
4723fi
d9898ee8 4724
d9898ee8 4725
d9898ee8 4726
dd184caf 4727
d9898ee8 4728
8d138742
CE
4729# test EBCDIC or ASCII
4730case `echo X|tr X '\101'` in
4731 A) # ASCII based system
4732 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4733 lt_SP2NL='tr \040 \012'
4734 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4735 ;;
8d138742
CE
4736 *) # EBCDIC based system
4737 lt_SP2NL='tr \100 \n'
4738 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4739 ;;
8d138742 4740esac
d9898ee8 4741
4742
d9898ee8 4743
d9898ee8 4744
4745
8d138742
CE
4746
4747
4748
4749
b0322a85
CE
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4751$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4752if ${lt_cv_to_host_file_cmd+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754else
4755 case $host in
4756 *-*-mingw* )
4757 case $build in
4758 *-*-mingw* ) # actually msys
4759 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4760 ;;
4761 *-*-cygwin* )
4762 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4763 ;;
4764 * ) # otherwise, assume *nix
4765 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4766 ;;
4767 esac
4768 ;;
4769 *-*-cygwin* )
4770 case $build in
4771 *-*-mingw* ) # actually msys
4772 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4773 ;;
4774 *-*-cygwin* )
4775 lt_cv_to_host_file_cmd=func_convert_file_noop
4776 ;;
4777 * ) # otherwise, assume *nix
4778 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4779 ;;
4780 esac
4781 ;;
4782 * ) # unhandled hosts (and "normal" native builds)
4783 lt_cv_to_host_file_cmd=func_convert_file_noop
4784 ;;
4785esac
4786
4787fi
4788
4789to_host_file_cmd=$lt_cv_to_host_file_cmd
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4791$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4792
4793
4794
4795
4796
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4798$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4799if ${lt_cv_to_tool_file_cmd+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801else
4802 #assume ordinary cross tools, or native build.
4803lt_cv_to_tool_file_cmd=func_convert_file_noop
4804case $host in
4805 *-*-mingw* )
4806 case $build in
4807 *-*-mingw* ) # actually msys
4808 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4809 ;;
4810 esac
4811 ;;
4812esac
4813
4814fi
4815
4816to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4818$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4819
4820
4821
4822
4823
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 4825$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 4826if ${lt_cv_ld_reload_flag+:} false; then :
8d138742 4827 $as_echo_n "(cached) " >&6
d9898ee8 4828else
8d138742
CE
4829 lt_cv_ld_reload_flag='-r'
4830fi
b0322a85 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
4832$as_echo "$lt_cv_ld_reload_flag" >&6; }
4833reload_flag=$lt_cv_ld_reload_flag
4834case $reload_flag in
4835"" | " "*) ;;
4836*) reload_flag=" $reload_flag" ;;
4837esac
4838reload_cmds='$LD$reload_flag -o $output$reload_objs'
4839case $host_os in
b0322a85
CE
4840 cygwin* | mingw* | pw32* | cegcc*)
4841 if test "$GCC" != yes; then
4842 reload_cmds=false
4843 fi
4844 ;;
8d138742
CE
4845 darwin*)
4846 if test "$GCC" = yes; then
4847 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4848 else
4849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4850 fi
4851 ;;
dd184caf 4852esac
d9898ee8 4853
dd184caf 4854
d9898ee8 4855
d9898ee8 4856
dd184caf 4857
d9898ee8 4858
d9898ee8 4859
d9898ee8 4860
8d138742
CE
4861
4862if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4864set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4866$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4867if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 4868 $as_echo_n "(cached) " >&6
d9898ee8 4869else
8d138742
CE
4870 if test -n "$OBJDUMP"; then
4871 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 4872else
8d138742
CE
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
b0322a85
CE
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4880 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4882 break 2
4883 fi
4884done
b0322a85 4885 done
8d138742 4886IFS=$as_save_IFS
d9898ee8 4887
8d138742
CE
4888fi
4889fi
4890OBJDUMP=$ac_cv_prog_OBJDUMP
4891if test -n "$OBJDUMP"; then
b0322a85 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742
CE
4893$as_echo "$OBJDUMP" >&6; }
4894else
b0322a85 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4896$as_echo "no" >&6; }
d9898ee8 4897fi
dd184caf 4898
d9898ee8 4899
8d138742
CE
4900fi
4901if test -z "$ac_cv_prog_OBJDUMP"; then
4902 ac_ct_OBJDUMP=$OBJDUMP
4903 # Extract the first word of "objdump", so it can be a program name with args.
4904set dummy objdump; ac_word=$2
b0322a85 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4906$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4907if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742 4908 $as_echo_n "(cached) " >&6
d9898ee8 4909else
8d138742
CE
4910 if test -n "$ac_ct_OBJDUMP"; then
4911 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
b0322a85
CE
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4920 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4922 break 2
4923 fi
4924done
b0322a85 4925 done
8d138742 4926IFS=$as_save_IFS
d9898ee8 4927
8d138742
CE
4928fi
4929fi
4930ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4931if test -n "$ac_ct_OBJDUMP"; then
b0322a85 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742
CE
4933$as_echo "$ac_ct_OBJDUMP" >&6; }
4934else
b0322a85 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4936$as_echo "no" >&6; }
d9898ee8 4937fi
dd184caf 4938
8d138742
CE
4939 if test "x$ac_ct_OBJDUMP" = x; then
4940 OBJDUMP="false"
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943yes:)
b0322a85 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4946ac_tool_warned=yes ;;
4947esac
4948 OBJDUMP=$ac_ct_OBJDUMP
4949 fi
d9898ee8 4950else
8d138742 4951 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 4952fi
4953
8d138742 4954test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 4955
4956
d9898ee8 4957
d9898ee8 4958
d9898ee8 4959
dd184caf 4960
d9898ee8 4961
d9898ee8 4962
8d138742 4963
b0322a85 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 4965$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 4966if ${lt_cv_deplibs_check_method+:} false; then :
8d138742 4967 $as_echo_n "(cached) " >&6
d9898ee8 4968else
8d138742
CE
4969 lt_cv_file_magic_cmd='$MAGIC_CMD'
4970lt_cv_file_magic_test_file=
4971lt_cv_deplibs_check_method='unknown'
4972# Need to set the preceding variable on all platforms that support
4973# interlibrary dependencies.
4974# 'none' -- dependencies not supported.
4975# `unknown' -- same as none, but documents that we really don't know.
4976# 'pass_all' -- all dependencies passed with no checks.
4977# 'test_compile' -- check by making test program.
4978# 'file_magic [[regex]]' -- check by looking for files in library path
4979# which responds to the $file_magic_cmd with a given extended regex.
4980# If you have `file' or equivalent on your system and you're not sure
4981# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 4982
8d138742
CE
4983case $host_os in
4984aix[4-9]*)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
d9898ee8 4987
8d138742
CE
4988beos*)
4989 lt_cv_deplibs_check_method=pass_all
4990 ;;
d9898ee8 4991
8d138742
CE
4992bsdi[45]*)
4993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4994 lt_cv_file_magic_cmd='/usr/bin/file -L'
4995 lt_cv_file_magic_test_file=/shlib/libc.so
4996 ;;
d9898ee8 4997
8d138742
CE
4998cygwin*)
4999 # func_win32_libid is a shell function defined in ltmain.sh
5000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5001 lt_cv_file_magic_cmd='func_win32_libid'
5002 ;;
d9898ee8 5003
8d138742
CE
5004mingw* | pw32*)
5005 # Base MSYS/MinGW do not provide the 'file' command needed by
5006 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5007 # unless we find 'file', for example because we are cross-compiling.
b0322a85
CE
5008 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5009 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8d138742
CE
5010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5011 lt_cv_file_magic_cmd='func_win32_libid'
5012 else
b0322a85
CE
5013 # Keep this pattern in sync with the one in func_win32_libid.
5014 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
5015 lt_cv_file_magic_cmd='$OBJDUMP -f'
5016 fi
5017 ;;
d9898ee8 5018
b0322a85 5019cegcc*)
8d138742
CE
5020 # use the weaker test based on 'objdump'. See mingw*.
5021 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5022 lt_cv_file_magic_cmd='$OBJDUMP -f'
5023 ;;
d9898ee8 5024
8d138742
CE
5025darwin* | rhapsody*)
5026 lt_cv_deplibs_check_method=pass_all
5027 ;;
5028
5029freebsd* | dragonfly*)
5030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5031 case $host_cpu in
5032 i*86 )
5033 # Not sure whether the presence of OpenBSD here was a mistake.
5034 # Let's accept both of them until this is cleared up.
5035 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5036 lt_cv_file_magic_cmd=/usr/bin/file
5037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5038 ;;
5039 esac
5040 else
5041 lt_cv_deplibs_check_method=pass_all
5042 fi
5043 ;;
dd184caf 5044
8d138742
CE
5045gnu*)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
dd184caf 5048
b0322a85
CE
5049haiku*)
5050 lt_cv_deplibs_check_method=pass_all
5051 ;;
5052
8d138742
CE
5053hpux10.20* | hpux11*)
5054 lt_cv_file_magic_cmd=/usr/bin/file
5055 case $host_cpu in
5056 ia64*)
5057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5059 ;;
5060 hppa*64*)
b0322a85 5061 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
5062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5063 ;;
5064 *)
b0322a85 5065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
5066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5067 ;;
5068 esac
5069 ;;
d9898ee8 5070
8d138742
CE
5071interix[3-9]*)
5072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5074 ;;
d9898ee8 5075
8d138742
CE
5076irix5* | irix6* | nonstopux*)
5077 case $LD in
5078 *-32|*"-32 ") libmagic=32-bit;;
5079 *-n32|*"-n32 ") libmagic=N32;;
5080 *-64|*"-64 ") libmagic=64-bit;;
5081 *) libmagic=never-match;;
5082 esac
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
d9898ee8 5085
b0322a85
CE
5086# This must be glibc/ELF.
5087linux* | k*bsd*-gnu | kopensolaris*-gnu)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090
5091netbsd*)
5092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5094 else
5095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5096 fi
5097 ;;
5098
5099newos6*)
5100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5101 lt_cv_file_magic_cmd=/usr/bin/file
5102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5103 ;;
5104
5105*nto* | *qnx*)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108
5109openbsd*)
5110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5112 else
5113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5114 fi
5115 ;;
5116
5117osf3* | osf4* | osf5*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120
5121rdos*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124
5125solaris*)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128
5129sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133sysv4 | sysv4.3*)
5134 case $host_vendor in
5135 motorola)
5136 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]'
5137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5138 ;;
5139 ncr)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142 sequent)
5143 lt_cv_file_magic_cmd='/bin/file'
5144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5145 ;;
5146 sni)
5147 lt_cv_file_magic_cmd='/bin/file'
5148 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5149 lt_cv_file_magic_test_file=/lib/libc.so
5150 ;;
5151 siemens)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154 pc)
5155 lt_cv_deplibs_check_method=pass_all
5156 ;;
5157 esac
5158 ;;
5159
5160tpf*)
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5163esac
5164
5165fi
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5167$as_echo "$lt_cv_deplibs_check_method" >&6; }
5168
5169file_magic_glob=
5170want_nocaseglob=no
5171if test "$build" = "$host"; then
5172 case $host_os in
5173 mingw* | pw32*)
5174 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5175 want_nocaseglob=yes
5176 else
5177 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5178 fi
5179 ;;
5180 esac
5181fi
5182
5183file_magic_cmd=$lt_cv_file_magic_cmd
5184deplibs_check_method=$lt_cv_deplibs_check_method
5185test -z "$deplibs_check_method" && deplibs_check_method=unknown
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208if test -n "$ac_tool_prefix"; then
5209 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5210set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212$as_echo_n "checking for $ac_word... " >&6; }
5213if ${ac_cv_prog_DLLTOOL+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 if test -n "$DLLTOOL"; then
5217 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5218else
5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230done
5231 done
5232IFS=$as_save_IFS
5233
5234fi
5235fi
5236DLLTOOL=$ac_cv_prog_DLLTOOL
5237if test -n "$DLLTOOL"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5239$as_echo "$DLLTOOL" >&6; }
5240else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242$as_echo "no" >&6; }
5243fi
5244
5245
5246fi
5247if test -z "$ac_cv_prog_DLLTOOL"; then
5248 ac_ct_DLLTOOL=$DLLTOOL
5249 # Extract the first word of "dlltool", so it can be a program name with args.
5250set dummy dlltool; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255else
5256 if test -n "$ac_ct_DLLTOOL"; then
5257 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270done
5271 done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5277if test -n "$ac_ct_DLLTOOL"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5279$as_echo "$ac_ct_DLLTOOL" >&6; }
5280else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
d9898ee8 5284
b0322a85
CE
5285 if test "x$ac_ct_DLLTOOL" = x; then
5286 DLLTOOL="false"
8d138742 5287 else
b0322a85
CE
5288 case $cross_compiling:$ac_tool_warned in
5289yes:)
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292ac_tool_warned=yes ;;
5293esac
5294 DLLTOOL=$ac_ct_DLLTOOL
8d138742 5295 fi
b0322a85
CE
5296else
5297 DLLTOOL="$ac_cv_prog_DLLTOOL"
5298fi
d9898ee8 5299
b0322a85 5300test -z "$DLLTOOL" && DLLTOOL=dlltool
d9898ee8 5301
5302
5303
5304
5305
5306
5307
b0322a85
CE
5308
5309
5310
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5312$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5313if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315else
5316 lt_cv_sharedlib_from_linklib_cmd='unknown'
5317
5318case $host_os in
5319cygwin* | mingw* | pw32* | cegcc*)
5320 # two different shell functions defined in ltmain.sh
5321 # decide which to use based on capabilities of $DLLTOOL
5322 case `$DLLTOOL --help 2>&1` in
5323 *--identify-strict*)
5324 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8d138742 5325 ;;
b0322a85
CE
5326 *)
5327 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8d138742
CE
5328 ;;
5329 esac
5330 ;;
b0322a85
CE
5331*)
5332 # fallback: assume linklib IS sharedlib
5333 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8d138742 5334 ;;
dd184caf 5335esac
d9898ee8 5336
d9898ee8 5337fi
b0322a85
CE
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5339$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5340sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5341test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9898ee8 5342
5343
d9898ee8 5344
dd184caf 5345
d9898ee8 5346
d9898ee8 5347
d9898ee8 5348
d9898ee8 5349
8d138742 5350if test -n "$ac_tool_prefix"; then
b0322a85
CE
5351 for ac_prog in ar
5352 do
5353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5354set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5356$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5357if ${ac_cv_prog_AR+:} false; then :
8d138742 5358 $as_echo_n "(cached) " >&6
d9898ee8 5359else
8d138742
CE
5360 if test -n "$AR"; then
5361 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 5362else
5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
b0322a85
CE
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5372 break 2
5373 fi
5374done
b0322a85 5375 done
dd184caf 5376IFS=$as_save_IFS
d9898ee8 5377
5378fi
5379fi
8d138742
CE
5380AR=$ac_cv_prog_AR
5381if test -n "$AR"; then
b0322a85 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742 5383$as_echo "$AR" >&6; }
d9898ee8 5384else
b0322a85 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5386$as_echo "no" >&6; }
d9898ee8 5387fi
5388
dd184caf 5389
b0322a85
CE
5390 test -n "$AR" && break
5391 done
d9898ee8 5392fi
b0322a85 5393if test -z "$AR"; then
8d138742 5394 ac_ct_AR=$AR
b0322a85
CE
5395 for ac_prog in ar
5396do
5397 # Extract the first word of "$ac_prog", so it can be a program name with args.
5398set dummy $ac_prog; ac_word=$2
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5400$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5401if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742 5402 $as_echo_n "(cached) " >&6
d9898ee8 5403else
8d138742
CE
5404 if test -n "$ac_ct_AR"; then
5405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 5406else
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
b0322a85
CE
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_AR="$ac_prog"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5416 break 2
5417 fi
5418done
b0322a85 5419 done
dd184caf 5420IFS=$as_save_IFS
d9898ee8 5421
5422fi
5423fi
8d138742
CE
5424ac_ct_AR=$ac_cv_prog_ac_ct_AR
5425if test -n "$ac_ct_AR"; then
b0322a85 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742 5427$as_echo "$ac_ct_AR" >&6; }
d9898ee8 5428else
b0322a85 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5430$as_echo "no" >&6; }
d9898ee8 5431fi
5432
b0322a85
CE
5433
5434 test -n "$ac_ct_AR" && break
5435done
5436
8d138742
CE
5437 if test "x$ac_ct_AR" = x; then
5438 AR="false"
dd184caf 5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441yes:)
b0322a85 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 5443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5444ac_tool_warned=yes ;;
5445esac
8d138742 5446 AR=$ac_ct_AR
dd184caf 5447 fi
8d138742 5448fi
d9898ee8 5449
b0322a85
CE
5450: ${AR=ar}
5451: ${AR_FLAGS=cru}
5452
5453
5454
5455
5456
5457
5458
d9898ee8 5459
d9898ee8 5460
dd184caf 5461
d9898ee8 5462
b0322a85
CE
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5464$as_echo_n "checking for archiver @FILE support... " >&6; }
5465if ${lt_cv_ar_at_file+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467else
5468 lt_cv_ar_at_file=no
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h. */
5471
5472int
5473main ()
5474{
5475
5476 ;
5477 return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_compile "$LINENO"; then :
5481 echo conftest.$ac_objext > conftest.lst
5482 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5484 (eval $lt_ar_try) 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }
5488 if test "$ac_status" -eq 0; then
5489 # Ensure the archiver fails upon bogus file names.
5490 rm -f conftest.$ac_objext libconftest.a
5491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5492 (eval $lt_ar_try) 2>&5
5493 ac_status=$?
5494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5495 test $ac_status = 0; }
5496 if test "$ac_status" -ne 0; then
5497 lt_cv_ar_at_file=@
5498 fi
5499 fi
5500 rm -f conftest.* libconftest.a
5501
5502fi
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
5505fi
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5507$as_echo "$lt_cv_ar_at_file" >&6; }
5508
5509if test "x$lt_cv_ar_at_file" = xno; then
5510 archiver_list_spec=
5511else
5512 archiver_list_spec=$lt_cv_ar_at_file
5513fi
d9898ee8 5514
d9898ee8 5515
dd184caf 5516
dd184caf 5517
d9898ee8 5518
dd184caf 5519
dd184caf 5520
8d138742
CE
5521if test -n "$ac_tool_prefix"; then
5522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5523set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5525$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5526if ${ac_cv_prog_STRIP+:} false; then :
8d138742 5527 $as_echo_n "(cached) " >&6
d9898ee8 5528else
8d138742
CE
5529 if test -n "$STRIP"; then
5530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5531else
5532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH
5534do
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
b0322a85
CE
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5539 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5541 break 2
5542 fi
5543done
b0322a85 5544 done
8d138742 5545IFS=$as_save_IFS
dd184caf 5546
d9898ee8 5547fi
dd184caf 5548fi
8d138742
CE
5549STRIP=$ac_cv_prog_STRIP
5550if test -n "$STRIP"; then
b0322a85 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
5552$as_echo "$STRIP" >&6; }
5553else
b0322a85 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5555$as_echo "no" >&6; }
d9898ee8 5556fi
5557
8d138742
CE
5558
5559fi
5560if test -z "$ac_cv_prog_STRIP"; then
5561 ac_ct_STRIP=$STRIP
5562 # Extract the first word of "strip", so it can be a program name with args.
5563set dummy strip; ac_word=$2
b0322a85 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5565$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5566if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 5567 $as_echo_n "(cached) " >&6
dd184caf 5568else
8d138742
CE
5569 if test -n "$ac_ct_STRIP"; then
5570 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5571else
5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH
5574do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
b0322a85
CE
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5579 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 5581 break 2
dd184caf 5582 fi
8d138742 5583done
b0322a85 5584 done
8d138742 5585IFS=$as_save_IFS
d9898ee8 5586
8d138742
CE
5587fi
5588fi
5589ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5590if test -n "$ac_ct_STRIP"; then
b0322a85 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742 5592$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5593else
b0322a85 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5595$as_echo "no" >&6; }
5596fi
d9898ee8 5597
8d138742
CE
5598 if test "x$ac_ct_STRIP" = x; then
5599 STRIP=":"
5600 else
5601 case $cross_compiling:$ac_tool_warned in
5602yes:)
b0322a85 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5605ac_tool_warned=yes ;;
5606esac
5607 STRIP=$ac_ct_STRIP
d9898ee8 5608 fi
d9898ee8 5609else
8d138742 5610 STRIP="$ac_cv_prog_STRIP"
d9898ee8 5611fi
5612
8d138742
CE
5613test -z "$STRIP" && STRIP=:
5614
d9898ee8 5615
d9898ee8 5616
5617
5618
5619
8d138742
CE
5620if test -n "$ac_tool_prefix"; then
5621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5624$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5625if ${ac_cv_prog_RANLIB+:} false; then :
8d138742 5626 $as_echo_n "(cached) " >&6
d9898ee8 5627else
8d138742
CE
5628 if test -n "$RANLIB"; then
5629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d9898ee8 5630else
8d138742
CE
5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH
5633do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
b0322a85
CE
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5640 break 2
5641 fi
5642done
b0322a85 5643 done
8d138742 5644IFS=$as_save_IFS
d9898ee8 5645
d9898ee8 5646fi
8d138742
CE
5647fi
5648RANLIB=$ac_cv_prog_RANLIB
5649if test -n "$RANLIB"; then
b0322a85 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742 5651$as_echo "$RANLIB" >&6; }
d9898ee8 5652else
b0322a85 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5654$as_echo "no" >&6; }
d9898ee8 5655fi
dd184caf 5656
d9898ee8 5657
d9898ee8 5658fi
8d138742
CE
5659if test -z "$ac_cv_prog_RANLIB"; then
5660 ac_ct_RANLIB=$RANLIB
5661 # Extract the first word of "ranlib", so it can be a program name with args.
5662set dummy ranlib; ac_word=$2
b0322a85 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5664$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5665if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
5666 $as_echo_n "(cached) " >&6
5667else
5668 if test -n "$ac_ct_RANLIB"; then
5669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
b0322a85
CE
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5678 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5680 break 2
5681 fi
5682done
b0322a85 5683 done
8d138742 5684IFS=$as_save_IFS
d9898ee8 5685
5686fi
8d138742
CE
5687fi
5688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5689if test -n "$ac_ct_RANLIB"; then
b0322a85 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742 5691$as_echo "$ac_ct_RANLIB" >&6; }
d9898ee8 5692else
b0322a85 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5694$as_echo "no" >&6; }
d9898ee8 5695fi
8d138742
CE
5696
5697 if test "x$ac_ct_RANLIB" = x; then
5698 RANLIB=":"
5699 else
5700 case $cross_compiling:$ac_tool_warned in
5701yes:)
b0322a85 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704ac_tool_warned=yes ;;
dd184caf 5705esac
8d138742
CE
5706 RANLIB=$ac_ct_RANLIB
5707 fi
d9898ee8 5708else
8d138742 5709 RANLIB="$ac_cv_prog_RANLIB"
d9898ee8 5710fi
dd184caf 5711
8d138742
CE
5712test -z "$RANLIB" && RANLIB=:
5713
d9898ee8 5714
d9898ee8 5715
dd184caf 5716
d9898ee8 5717
d9898ee8 5718
8d138742
CE
5719# Determine commands to create old-style static archives.
5720old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5721old_postinstall_cmds='chmod 644 $oldlib'
5722old_postuninstall_cmds=
d9898ee8 5723
8d138742
CE
5724if test -n "$RANLIB"; then
5725 case $host_os in
5726 openbsd*)
b0322a85 5727 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8d138742
CE
5728 ;;
5729 *)
b0322a85 5730 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
5731 ;;
5732 esac
b0322a85 5733 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 5734fi
5735
b0322a85
CE
5736case $host_os in
5737 darwin*)
5738 lock_old_archive_extraction=yes ;;
5739 *)
5740 lock_old_archive_extraction=no ;;
5741esac
5742
5743
5744
5745
5746
5747
d9898ee8 5748
d9898ee8 5749
d9898ee8 5750
dd184caf 5751
d9898ee8 5752
d9898ee8 5753
dd184caf 5754
d9898ee8 5755
d9898ee8 5756
5757
d9898ee8 5758
d9898ee8 5759
d9898ee8 5760
dd184caf 5761
d9898ee8 5762
d9898ee8 5763
d9898ee8 5764
dd184caf 5765
d9898ee8 5766
d9898ee8 5767
d9898ee8 5768
5769
5770
d9898ee8 5771
d9898ee8 5772
d9898ee8 5773
d9898ee8 5774
d9898ee8 5775
d9898ee8 5776
d9898ee8 5777
d9898ee8 5778
d9898ee8 5779
d9898ee8 5780
8d138742
CE
5781# If no C compiler was specified, use CC.
5782LTCC=${LTCC-"$CC"}
d9898ee8 5783
8d138742
CE
5784# If no C compiler flags were specified, use CFLAGS.
5785LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5786
8d138742
CE
5787# Allow CC to be a program name with arguments.
5788compiler=$CC
d9898ee8 5789
ac40fd9e 5790
d9898ee8 5791# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 5793$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 5794if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 5795 $as_echo_n "(cached) " >&6
d9898ee8 5796else
5797
5798# These are sane defaults that work on at least a few old systems.
5799# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5800
5801# Character class describing NM global symbol codes.
5802symcode='[BCDEGRST]'
5803
5804# Regexp to match symbols that can be accessed directly from C.
5805sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5806
d9898ee8 5807# Define system-specific variables.
5808case $host_os in
5809aix*)
5810 symcode='[BCDT]'
5811 ;;
8d138742 5812cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 5813 symcode='[ABCDGISTW]'
5814 ;;
8d138742 5815hpux*)
d9898ee8 5816 if test "$host_cpu" = ia64; then
5817 symcode='[ABCDEGRST]'
5818 fi
d9898ee8 5819 ;;
5820irix* | nonstopux*)
5821 symcode='[BCDEGRST]'
5822 ;;
5823osf*)
5824 symcode='[BCDEGQRST]'
5825 ;;
5826solaris*)
5827 symcode='[BDRT]'
5828 ;;
5829sco3.2v5*)
5830 symcode='[DT]'
5831 ;;
5832sysv4.2uw2*)
5833 symcode='[DT]'
5834 ;;
5835sysv5* | sco5v6* | unixware* | OpenUNIX*)
5836 symcode='[ABDT]'
5837 ;;
5838sysv4)
5839 symcode='[DFNSTU]'
5840 ;;
5841esac
5842
8d138742
CE
5843# If we're using GNU nm, then use its standard symbol codes.
5844case `$NM -V 2>&1` in
5845*GNU* | *'with BFD'*)
5846 symcode='[ABCDGIRSTW]' ;;
5847esac
5848
5849# Transform an extracted symbol line into a proper C declaration.
5850# Some systems (esp. on ia64) link data and code symbols differently,
5851# so use this general approach.
5852lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5853
5854# Transform an extracted symbol line into symbol name and symbol address
b0322a85
CE
5855lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5856lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8d138742 5857
d9898ee8 5858# Handle CRLF in mingw tool chain
5859opt_cr=
5860case $build_os in
5861mingw*)
8d138742 5862 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 5863 ;;
5864esac
5865
8d138742 5866# Try without a prefix underscore, then with it.
d9898ee8 5867for ac_symprfx in "" "_"; do
5868
5869 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5870 symxfrm="\\1 $ac_symprfx\\2 \\2"
5871
5872 # Write the raw and C identifiers.
8d138742
CE
5873 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5874 # Fake it for dumpbin and say T for any non-static function
5875 # and D for any global variable.
5876 # Also find C++ and __fastcall symbols from MSVC++,
5877 # which start with @ or ?.
5878 lt_cv_sys_global_symbol_pipe="$AWK '"\
5879" {last_section=section; section=\$ 3};"\
b0322a85 5880" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742
CE
5881" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5882" \$ 0!~/External *\|/{next};"\
5883" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5884" {if(hide[section]) next};"\
5885" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5886" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5887" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5888" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5889" ' prfx=^$ac_symprfx"
5890 else
5891 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5892 fi
b0322a85 5893 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d9898ee8 5894
5895 # Check to see that the pipe works correctly.
5896 pipe_works=no
5897
5898 rm -f conftest*
8d138742 5899 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 5900#ifdef __cplusplus
5901extern "C" {
5902#endif
5903char nm_test_var;
8d138742
CE
5904void nm_test_func(void);
5905void nm_test_func(void){}
d9898ee8 5906#ifdef __cplusplus
5907}
5908#endif
5909int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 5910_LT_EOF
d9898ee8 5911
b0322a85 5912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 5913 (eval $ac_compile) 2>&5
5914 ac_status=$?
b0322a85
CE
5915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916 test $ac_status = 0; }; then
d9898ee8 5917 # Now try to grab the symbols.
5918 nlist=conftest.nm
b0322a85
CE
5919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5920 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d9898ee8 5921 ac_status=$?
b0322a85
CE
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; } && test -s "$nlist"; then
d9898ee8 5924 # Try sorting and uniquifying the output.
5925 if sort "$nlist" | uniq > "$nlist"T; then
5926 mv -f "$nlist"T "$nlist"
5927 else
5928 rm -f "$nlist"T
5929 fi
5930
5931 # Make sure that we snagged all the symbols we need.
8d138742
CE
5932 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5933 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5934 cat <<_LT_EOF > conftest.$ac_ext
b0322a85
CE
5935/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5936#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5937/* DATA imports from DLLs on WIN32 con't be const, because runtime
5938 relocations are performed -- see ld's documentation on pseudo-relocs. */
5939# define LT_DLSYM_CONST
5940#elif defined(__osf__)
5941/* This system does not cope well with relocations in const data. */
5942# define LT_DLSYM_CONST
5943#else
5944# define LT_DLSYM_CONST const
5945#endif
5946
d9898ee8 5947#ifdef __cplusplus
5948extern "C" {
5949#endif
5950
8d138742 5951_LT_EOF
d9898ee8 5952 # Now generate the symbol file.
8d138742 5953 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 5954
8d138742 5955 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 5956
8d138742 5957/* The mapping between symbol names and symbols. */
b0322a85 5958LT_DLSYM_CONST struct {
d9898ee8 5959 const char *name;
8d138742 5960 void *address;
d9898ee8 5961}
8d138742 5962lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 5963{
8d138742
CE
5964 { "@PROGRAM@", (void *) 0 },
5965_LT_EOF
5966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5967 cat <<\_LT_EOF >> conftest.$ac_ext
5968 {0, (void *) 0}
d9898ee8 5969};
5970
8d138742
CE
5971/* This works around a problem in FreeBSD linker */
5972#ifdef FREEBSD_WORKAROUND
5973static const void *lt_preloaded_setup() {
5974 return lt__PROGRAM__LTX_preloaded_symbols;
5975}
5976#endif
5977
d9898ee8 5978#ifdef __cplusplus
5979}
5980#endif
8d138742 5981_LT_EOF
d9898ee8 5982 # Now try linking the two files.
5983 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
5984 lt_globsym_save_LIBS=$LIBS
5985 lt_globsym_save_CFLAGS=$CFLAGS
d9898ee8 5986 LIBS="conftstm.$ac_objext"
5987 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 5988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d9898ee8 5989 (eval $ac_link) 2>&5
5990 ac_status=$?
b0322a85
CE
5991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d9898ee8 5993 pipe_works=yes
5994 fi
b0322a85
CE
5995 LIBS=$lt_globsym_save_LIBS
5996 CFLAGS=$lt_globsym_save_CFLAGS
d9898ee8 5997 else
5998 echo "cannot find nm_test_func in $nlist" >&5
5999 fi
6000 else
6001 echo "cannot find nm_test_var in $nlist" >&5
6002 fi
6003 else
6004 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6005 fi
6006 else
6007 echo "$progname: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6009 fi
8d138742 6010 rm -rf conftest* conftst*
d9898ee8 6011
6012 # Do not use the global_symbol_pipe unless it works.
6013 if test "$pipe_works" = yes; then
6014 break
6015 else
6016 lt_cv_sys_global_symbol_pipe=
6017 fi
6018done
6019
6020fi
6021
6022if test -z "$lt_cv_sys_global_symbol_pipe"; then
6023 lt_cv_sys_global_symbol_to_cdecl=
6024fi
6025if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 6027$as_echo "failed" >&6; }
d9898ee8 6028else
b0322a85 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 6030$as_echo "ok" >&6; }
d9898ee8 6031fi
6032
b0322a85
CE
6033# Response file support.
6034if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6035 nm_file_list_spec='@'
6036elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6037 nm_file_list_spec='@'
6038fi
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
d9898ee8 6053
6054
6055
6056
6057
d9898ee8 6058
d9898ee8 6059
d9898ee8 6060
d9898ee8 6061
d9898ee8 6062
d9898ee8 6063
d9898ee8 6064
d9898ee8 6065
b0322a85
CE
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6067$as_echo_n "checking for sysroot... " >&6; }
d9898ee8 6068
b0322a85
CE
6069# Check whether --with-sysroot was given.
6070if test "${with_sysroot+set}" = set; then :
6071 withval=$with_sysroot;
6072else
6073 with_sysroot=no
6074fi
d9898ee8 6075
dd184caf 6076
b0322a85
CE
6077lt_sysroot=
6078case ${with_sysroot} in #(
6079 yes)
6080 if test "$GCC" = yes; then
6081 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6082 fi
6083 ;; #(
6084 /*)
6085 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6086 ;; #(
6087 no|'')
6088 ;; #(
6089 *)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6091$as_echo "${with_sysroot}" >&6; }
6092 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6093 ;;
6094esac
d9898ee8 6095
b0322a85
CE
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6097$as_echo "${lt_sysroot:-no}" >&6; }
d9898ee8 6098
d9898ee8 6099
d9898ee8 6100
d9898ee8 6101
dd184caf 6102
8d138742 6103# Check whether --enable-libtool-lock was given.
b0322a85 6104if test "${enable_libtool_lock+set}" = set; then :
8d138742 6105 enableval=$enable_libtool_lock;
d9898ee8 6106fi
8d138742
CE
6107
6108test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6109
6110# Some flags need to be propagated to the compiler or linker for good
6111# libtool support.
6112case $host in
6113ia64-*-hpux*)
6114 # Find out which ABI we are using.
6115 echo 'int i;' > conftest.$ac_ext
b0322a85 6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6117 (eval $ac_compile) 2>&5
6118 ac_status=$?
b0322a85
CE
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; then
8d138742
CE
6121 case `/usr/bin/file conftest.$ac_objext` in
6122 *ELF-32*)
6123 HPUX_IA64_MODE="32"
6124 ;;
6125 *ELF-64*)
6126 HPUX_IA64_MODE="64"
6127 ;;
6128 esac
6129 fi
6130 rm -rf conftest*
6131 ;;
6132*-*-irix6*)
6133 # Find out which ABI we are using.
b0322a85
CE
6134 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6136 (eval $ac_compile) 2>&5
6137 ac_status=$?
b0322a85
CE
6138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139 test $ac_status = 0; }; then
8d138742
CE
6140 if test "$lt_cv_prog_gnu_ld" = yes; then
6141 case `/usr/bin/file conftest.$ac_objext` in
6142 *32-bit*)
6143 LD="${LD-ld} -melf32bsmip"
6144 ;;
6145 *N32*)
6146 LD="${LD-ld} -melf32bmipn32"
6147 ;;
6148 *64-bit*)
6149 LD="${LD-ld} -melf64bmip"
6150 ;;
6151 esac
6152 else
6153 case `/usr/bin/file conftest.$ac_objext` in
6154 *32-bit*)
6155 LD="${LD-ld} -32"
6156 ;;
6157 *N32*)
6158 LD="${LD-ld} -n32"
6159 ;;
6160 *64-bit*)
6161 LD="${LD-ld} -64"
6162 ;;
6163 esac
6164 fi
6165 fi
6166 rm -rf conftest*
6167 ;;
6168
6169x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6170s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6171 # Find out which ABI we are using.
6172 echo 'int i;' > conftest.$ac_ext
b0322a85 6173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6174 (eval $ac_compile) 2>&5
6175 ac_status=$?
b0322a85
CE
6176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177 test $ac_status = 0; }; then
8d138742
CE
6178 case `/usr/bin/file conftest.o` in
6179 *32-bit*)
6180 case $host in
6181 x86_64-*kfreebsd*-gnu)
6182 LD="${LD-ld} -m elf_i386_fbsd"
6183 ;;
6184 x86_64-*linux*)
6185 LD="${LD-ld} -m elf_i386"
6186 ;;
6187 ppc64-*linux*|powerpc64-*linux*)
6188 LD="${LD-ld} -m elf32ppclinux"
6189 ;;
6190 s390x-*linux*)
6191 LD="${LD-ld} -m elf_s390"
6192 ;;
6193 sparc64-*linux*)
6194 LD="${LD-ld} -m elf32_sparc"
6195 ;;
6196 esac
6197 ;;
6198 *64-bit*)
6199 case $host in
6200 x86_64-*kfreebsd*-gnu)
6201 LD="${LD-ld} -m elf_x86_64_fbsd"
6202 ;;
6203 x86_64-*linux*)
6204 LD="${LD-ld} -m elf_x86_64"
6205 ;;
6206 ppc*-*linux*|powerpc*-*linux*)
6207 LD="${LD-ld} -m elf64ppc"
6208 ;;
6209 s390*-*linux*|s390*-*tpf*)
6210 LD="${LD-ld} -m elf64_s390"
6211 ;;
6212 sparc*-*linux*)
6213 LD="${LD-ld} -m elf64_sparc"
6214 ;;
6215 esac
6216 ;;
6217 esac
6218 fi
6219 rm -rf conftest*
6220 ;;
6221
6222*-*-sco3.2v5*)
6223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6224 SAVE_CFLAGS="$CFLAGS"
6225 CFLAGS="$CFLAGS -belf"
b0322a85 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 6227$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 6228if ${lt_cv_cc_needs_belf+:} false; then :
8d138742 6229 $as_echo_n "(cached) " >&6
d9898ee8 6230else
8d138742
CE
6231 ac_ext=c
6232ac_cpp='$CPP $CPPFLAGS'
6233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235ac_compiler_gnu=$ac_cv_c_compiler_gnu
6236
b0322a85 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
6238/* end confdefs.h. */
6239
6240int
6241main ()
6242{
6243
6244 ;
6245 return 0;
6246}
6247_ACEOF
b0322a85 6248if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
6249 lt_cv_cc_needs_belf=yes
6250else
b0322a85 6251 lt_cv_cc_needs_belf=no
8d138742 6252fi
b0322a85
CE
6253rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
6255 ac_ext=c
6256ac_cpp='$CPP $CPPFLAGS'
6257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260
6261fi
b0322a85 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742
CE
6263$as_echo "$lt_cv_cc_needs_belf" >&6; }
6264 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6265 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6266 CFLAGS="$SAVE_CFLAGS"
6267 fi
6268 ;;
b0322a85 6269*-*solaris*)
8d138742
CE
6270 # Find out which ABI we are using.
6271 echo 'int i;' > conftest.$ac_ext
b0322a85 6272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6273 (eval $ac_compile) 2>&5
6274 ac_status=$?
b0322a85
CE
6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276 test $ac_status = 0; }; then
8d138742
CE
6277 case `/usr/bin/file conftest.o` in
6278 *64-bit*)
6279 case $lt_cv_prog_gnu_ld in
b0322a85
CE
6280 yes*)
6281 case $host in
6282 i?86-*-solaris*)
6283 LD="${LD-ld} -m elf_x86_64"
6284 ;;
6285 sparc*-*-solaris*)
6286 LD="${LD-ld} -m elf64_sparc"
6287 ;;
6288 esac
6289 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6290 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6291 LD="${LD-ld}_sol2"
6292 fi
6293 ;;
8d138742
CE
6294 *)
6295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6296 LD="${LD-ld} -64"
6297 fi
6298 ;;
6299 esac
6300 ;;
6301 esac
6302 fi
b0322a85
CE
6303 rm -rf conftest*
6304 ;;
6305esac
6306
6307need_locks="$enable_libtool_lock"
6308
6309if test -n "$ac_tool_prefix"; then
6310 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6311set dummy ${ac_tool_prefix}mt; ac_word=$2
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313$as_echo_n "checking for $ac_word... " >&6; }
6314if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316else
6317 if test -n "$MANIFEST_TOOL"; then
6318 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331done
6332 done
6333IFS=$as_save_IFS
6334
6335fi
6336fi
6337MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6338if test -n "$MANIFEST_TOOL"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6340$as_echo "$MANIFEST_TOOL" >&6; }
6341else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343$as_echo "no" >&6; }
6344fi
6345
6346
6347fi
6348if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6349 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6350 # Extract the first word of "mt", so it can be a program name with args.
6351set dummy mt; ac_word=$2
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356else
6357 if test -n "$ac_ct_MANIFEST_TOOL"; then
6358 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6370 fi
6371done
6372 done
6373IFS=$as_save_IFS
6374
6375fi
6376fi
6377ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6378if test -n "$ac_ct_MANIFEST_TOOL"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6380$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6381else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384fi
6385
6386 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6387 MANIFEST_TOOL=":"
6388 else
6389 case $cross_compiling:$ac_tool_warned in
6390yes:)
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393ac_tool_warned=yes ;;
8d138742 6394esac
b0322a85
CE
6395 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6396 fi
6397else
6398 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6399fi
6400
6401test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6403$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6404if ${lt_cv_path_mainfest_tool+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406else
6407 lt_cv_path_mainfest_tool=no
6408 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6409 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6410 cat conftest.err >&5
6411 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6412 lt_cv_path_mainfest_tool=yes
6413 fi
6414 rm -f conftest*
6415fi
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6417$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6418if test "x$lt_cv_path_mainfest_tool" != xyes; then
6419 MANIFEST_TOOL=:
6420fi
6421
6422
6423
8d138742 6424
8d138742
CE
6425
6426
6427 case $host_os in
6428 rhapsody* | darwin*)
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6433$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6434if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
6435 $as_echo_n "(cached) " >&6
6436else
6437 if test -n "$DSYMUTIL"; then
6438 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
b0322a85
CE
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6447 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6449 break 2
6450 fi
6451done
b0322a85 6452 done
dd184caf 6453IFS=$as_save_IFS
d9898ee8 6454
d9898ee8 6455fi
6456fi
8d138742
CE
6457DSYMUTIL=$ac_cv_prog_DSYMUTIL
6458if test -n "$DSYMUTIL"; then
b0322a85 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742 6460$as_echo "$DSYMUTIL" >&6; }
d9898ee8 6461else
b0322a85 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6463$as_echo "no" >&6; }
d9898ee8 6464fi
6465
8d138742
CE
6466
6467fi
6468if test -z "$ac_cv_prog_DSYMUTIL"; then
6469 ac_ct_DSYMUTIL=$DSYMUTIL
6470 # Extract the first word of "dsymutil", so it can be a program name with args.
6471set dummy dsymutil; ac_word=$2
b0322a85 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6473$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6474if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
6475 $as_echo_n "(cached) " >&6
6476else
6477 if test -n "$ac_ct_DSYMUTIL"; then
6478 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
b0322a85
CE
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6487 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6489 break 2
6490 fi
6491done
b0322a85 6492 done
8d138742
CE
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6498if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742
CE
6500$as_echo "$ac_ct_DSYMUTIL" >&6; }
6501else
b0322a85 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6503$as_echo "no" >&6; }
6504fi
6505
6506 if test "x$ac_ct_DSYMUTIL" = x; then
6507 DSYMUTIL=":"
dd184caf 6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510yes:)
b0322a85 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6513ac_tool_warned=yes ;;
6514esac
8d138742 6515 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 6516 fi
d9898ee8 6517else
8d138742 6518 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6519fi
6520
8d138742
CE
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6523set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6525$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6526if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742 6527 $as_echo_n "(cached) " >&6
d9898ee8 6528else
8d138742
CE
6529 if test -n "$NMEDIT"; then
6530 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
b0322a85
CE
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6539 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6541 break 2
6542 fi
6543done
b0322a85 6544 done
dd184caf 6545IFS=$as_save_IFS
d9898ee8 6546
6547fi
6548fi
8d138742
CE
6549NMEDIT=$ac_cv_prog_NMEDIT
6550if test -n "$NMEDIT"; then
b0322a85 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742 6552$as_echo "$NMEDIT" >&6; }
d9898ee8 6553else
b0322a85 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6555$as_echo "no" >&6; }
d9898ee8 6556fi
6557
dd184caf 6558
d9898ee8 6559fi
8d138742
CE
6560if test -z "$ac_cv_prog_NMEDIT"; then
6561 ac_ct_NMEDIT=$NMEDIT
6562 # Extract the first word of "nmedit", so it can be a program name with args.
6563set dummy nmedit; ac_word=$2
b0322a85 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6565$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6566if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742 6567 $as_echo_n "(cached) " >&6
d9898ee8 6568else
8d138742
CE
6569 if test -n "$ac_ct_NMEDIT"; then
6570 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
b0322a85
CE
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6579 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6581 break 2
6582 fi
6583done
b0322a85 6584 done
dd184caf 6585IFS=$as_save_IFS
d9898ee8 6586
d9898ee8 6587fi
6588fi
8d138742
CE
6589ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6590if test -n "$ac_ct_NMEDIT"; then
b0322a85 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742 6592$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 6593else
b0322a85 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6595$as_echo "no" >&6; }
d9898ee8 6596fi
6597
8d138742
CE
6598 if test "x$ac_ct_NMEDIT" = x; then
6599 NMEDIT=":"
dd184caf 6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602yes:)
b0322a85 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6605ac_tool_warned=yes ;;
6606esac
8d138742 6607 NMEDIT=$ac_ct_NMEDIT
dd184caf 6608 fi
d9898ee8 6609else
8d138742 6610 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 6611fi
6612
8d138742
CE
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6615set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6617$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6618if ${ac_cv_prog_LIPO+:} false; then :
8d138742
CE
6619 $as_echo_n "(cached) " >&6
6620else
6621 if test -n "$LIPO"; then
6622 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
b0322a85
CE
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6631 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6633 break 2
6634 fi
6635done
b0322a85 6636 done
8d138742 6637IFS=$as_save_IFS
d9898ee8 6638
8d138742
CE
6639fi
6640fi
6641LIPO=$ac_cv_prog_LIPO
6642if test -n "$LIPO"; then
b0322a85 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742
CE
6644$as_echo "$LIPO" >&6; }
6645else
b0322a85 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6647$as_echo "no" >&6; }
6648fi
d9898ee8 6649
d9898ee8 6650
d9898ee8 6651fi
8d138742
CE
6652if test -z "$ac_cv_prog_LIPO"; then
6653 ac_ct_LIPO=$LIPO
6654 # Extract the first word of "lipo", so it can be a program name with args.
6655set dummy lipo; ac_word=$2
b0322a85 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6657$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6658if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742
CE
6659 $as_echo_n "(cached) " >&6
6660else
6661 if test -n "$ac_ct_LIPO"; then
6662 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
b0322a85
CE
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6671 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6673 break 2
6674 fi
d9898ee8 6675done
b0322a85 6676 done
8d138742 6677IFS=$as_save_IFS
d9898ee8 6678
8d138742
CE
6679fi
6680fi
6681ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6682if test -n "$ac_ct_LIPO"; then
b0322a85 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 6684$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6685else
b0322a85 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6687$as_echo "no" >&6; }
6688fi
d9898ee8 6689
8d138742
CE
6690 if test "x$ac_ct_LIPO" = x; then
6691 LIPO=":"
6692 else
6693 case $cross_compiling:$ac_tool_warned in
6694yes:)
b0322a85 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697ac_tool_warned=yes ;;
d9898ee8 6698esac
8d138742
CE
6699 LIPO=$ac_ct_LIPO
6700 fi
6701else
6702 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6703fi
6704
8d138742
CE
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6707set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6709$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6710if ${ac_cv_prog_OTOOL+:} false; then :
8d138742 6711 $as_echo_n "(cached) " >&6
d9898ee8 6712else
8d138742
CE
6713 if test -n "$OTOOL"; then
6714 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
b0322a85
CE
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6723 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6725 break 2
6726 fi
6727done
b0322a85 6728 done
8d138742 6729IFS=$as_save_IFS
d9898ee8 6730
8d138742
CE
6731fi
6732fi
6733OTOOL=$ac_cv_prog_OTOOL
6734if test -n "$OTOOL"; then
b0322a85 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742 6736$as_echo "$OTOOL" >&6; }
d9898ee8 6737else
b0322a85 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6739$as_echo "no" >&6; }
6740fi
d9898ee8 6741
d9898ee8 6742
d9898ee8 6743fi
8d138742
CE
6744if test -z "$ac_cv_prog_OTOOL"; then
6745 ac_ct_OTOOL=$OTOOL
6746 # Extract the first word of "otool", so it can be a program name with args.
6747set dummy otool; ac_word=$2
b0322a85 6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6749$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6750if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742
CE
6751 $as_echo_n "(cached) " >&6
6752else
6753 if test -n "$ac_ct_OTOOL"; then
6754 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
b0322a85
CE
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6763 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6765 break 2
6766 fi
6767done
b0322a85 6768 done
8d138742 6769IFS=$as_save_IFS
d9898ee8 6770
8d138742
CE
6771fi
6772fi
6773ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6774if test -n "$ac_ct_OTOOL"; then
b0322a85 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742 6776$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 6777else
b0322a85 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6779$as_echo "no" >&6; }
d9898ee8 6780fi
6781
8d138742
CE
6782 if test "x$ac_ct_OTOOL" = x; then
6783 OTOOL=":"
d9898ee8 6784 else
8d138742
CE
6785 case $cross_compiling:$ac_tool_warned in
6786yes:)
b0322a85 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789ac_tool_warned=yes ;;
6790esac
6791 OTOOL=$ac_ct_OTOOL
d9898ee8 6792 fi
8d138742
CE
6793else
6794 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6795fi
6796
8d138742
CE
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6799set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6801$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6802if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742
CE
6803 $as_echo_n "(cached) " >&6
6804else
6805 if test -n "$OTOOL64"; then
6806 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
b0322a85
CE
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6815 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6817 break 2
d9898ee8 6818 fi
8d138742 6819done
b0322a85 6820 done
8d138742 6821IFS=$as_save_IFS
d9898ee8 6822
8d138742
CE
6823fi
6824fi
6825OTOOL64=$ac_cv_prog_OTOOL64
6826if test -n "$OTOOL64"; then
b0322a85 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742
CE
6828$as_echo "$OTOOL64" >&6; }
6829else
b0322a85 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6831$as_echo "no" >&6; }
dd184caf 6832fi
d9898ee8 6833
d9898ee8 6834
8d138742
CE
6835fi
6836if test -z "$ac_cv_prog_OTOOL64"; then
6837 ac_ct_OTOOL64=$OTOOL64
6838 # Extract the first word of "otool64", so it can be a program name with args.
6839set dummy otool64; ac_word=$2
b0322a85 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6841$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6842if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742
CE
6843 $as_echo_n "(cached) " >&6
6844else
6845 if test -n "$ac_ct_OTOOL64"; then
6846 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
b0322a85
CE
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6855 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6857 break 2
6858 fi
6859done
b0322a85 6860 done
8d138742 6861IFS=$as_save_IFS
d9898ee8 6862
8d138742
CE
6863fi
6864fi
6865ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6866if test -n "$ac_ct_OTOOL64"; then
b0322a85 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742 6868$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 6869else
b0322a85 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6871$as_echo "no" >&6; }
dd184caf 6872fi
6873
8d138742
CE
6874 if test "x$ac_ct_OTOOL64" = x; then
6875 OTOOL64=":"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878yes:)
b0322a85 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881ac_tool_warned=yes ;;
6882esac
6883 OTOOL64=$ac_ct_OTOOL64
6884 fi
6885else
6886 OTOOL64="$ac_cv_prog_OTOOL64"
6887fi
d9898ee8 6888
d9898ee8 6889
6890
d9898ee8 6891
d9898ee8 6892
d9898ee8 6893
d9898ee8 6894
6895
d9898ee8 6896
d9898ee8 6897
d9898ee8 6898
6899
d9898ee8 6900
d9898ee8 6901
6902
6903
d9898ee8 6904
d9898ee8 6905
6906
d9898ee8 6907
d9898ee8 6908
d9898ee8 6909
d9898ee8 6910
d9898ee8 6911
d9898ee8 6912
d9898ee8 6913
8d138742 6914
b0322a85 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 6916$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 6917if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742
CE
6918 $as_echo_n "(cached) " >&6
6919else
6920 lt_cv_apple_cc_single_mod=no
6921 if test -z "${LT_MULTI_MODULE}"; then
6922 # By default we will add the -single_module flag. You can override
6923 # by either setting the environment variable LT_MULTI_MODULE
6924 # non-empty at configure time, or by adding -multi_module to the
6925 # link flags.
6926 rm -rf libconftest.dylib*
6927 echo "int foo(void){return 1;}" > conftest.c
6928 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6929-dynamiclib -Wl,-single_module conftest.c" >&5
6930 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6931 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6932 _lt_result=$?
b0322a85
CE
6933 # If there is a non-empty error log, and "single_module"
6934 # appears in it, assume the flag caused a linker warning
6935 if test -s conftest.err && $GREP single_module conftest.err; then
6936 cat conftest.err >&5
6937 # Otherwise, if the output was created with a 0 exit code from
6938 # the compiler, it worked.
6939 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8d138742
CE
6940 lt_cv_apple_cc_single_mod=yes
6941 else
6942 cat conftest.err >&5
6943 fi
6944 rm -rf libconftest.dylib*
6945 rm -f conftest.*
d9898ee8 6946 fi
8d138742 6947fi
b0322a85 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 6949$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
6950
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 6952$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 6953if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
6954 $as_echo_n "(cached) " >&6
6955else
6956 lt_cv_ld_exported_symbols_list=no
6957 save_LDFLAGS=$LDFLAGS
6958 echo "_main" > conftest.sym
6959 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 6961/* end confdefs.h. */
d9898ee8 6962
8d138742
CE
6963int
6964main ()
6965{
d9898ee8 6966
8d138742
CE
6967 ;
6968 return 0;
6969}
6970_ACEOF
b0322a85 6971if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
6972 lt_cv_ld_exported_symbols_list=yes
6973else
b0322a85 6974 lt_cv_ld_exported_symbols_list=no
8d138742 6975fi
b0322a85
CE
6976rm -f core conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
8d138742 6978 LDFLAGS="$save_LDFLAGS"
d9898ee8 6979
8d138742 6980fi
b0322a85 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 6982$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
6983
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6985$as_echo_n "checking for -force_load linker flag... " >&6; }
6986if ${lt_cv_ld_force_load+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988else
6989 lt_cv_ld_force_load=no
6990 cat > conftest.c << _LT_EOF
6991int forced_loaded() { return 2;}
6992_LT_EOF
6993 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6994 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6995 echo "$AR cru libconftest.a conftest.o" >&5
6996 $AR cru libconftest.a conftest.o 2>&5
6997 echo "$RANLIB libconftest.a" >&5
6998 $RANLIB libconftest.a 2>&5
6999 cat > conftest.c << _LT_EOF
7000int main() { return 0;}
7001_LT_EOF
7002 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7003 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7004 _lt_result=$?
7005 if test -s conftest.err && $GREP force_load conftest.err; then
7006 cat conftest.err >&5
7007 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7008 lt_cv_ld_force_load=yes
7009 else
7010 cat conftest.err >&5
7011 fi
7012 rm -f conftest.err libconftest.a conftest conftest.c
7013 rm -rf conftest.dSYM
7014
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7017$as_echo "$lt_cv_ld_force_load" >&6; }
8d138742
CE
7018 case $host_os in
7019 rhapsody* | darwin1.[012])
7020 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7021 darwin1.*)
7022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7023 darwin*) # darwin 5.x on
7024 # if running on 10.5 or later, the deployment target defaults
7025 # to the OS version, if on x86, and 10.4, the deployment
7026 # target defaults to 10.4. Don't you love it?
7027 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7028 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030 10.[012]*)
7031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7032 10.*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 esac
7035 ;;
7036 esac
7037 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7038 _lt_dar_single_mod='$single_module'
7039 fi
7040 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7041 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7042 else
7043 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7044 fi
b0322a85 7045 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8d138742
CE
7046 _lt_dsymutil='~$DSYMUTIL $lib || :'
7047 else
7048 _lt_dsymutil=
7049 fi
7050 ;;
7051 esac
d9898ee8 7052
8d138742
CE
7053ac_ext=c
7054ac_cpp='$CPP $CPPFLAGS'
7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742
CE
7059$as_echo_n "checking how to run the C preprocessor... " >&6; }
7060# On Suns, sometimes $CPP names a directory.
7061if test -n "$CPP" && test -d "$CPP"; then
7062 CPP=
7063fi
7064if test -z "$CPP"; then
b0322a85 7065 if ${ac_cv_prog_CPP+:} false; then :
8d138742
CE
7066 $as_echo_n "(cached) " >&6
7067else
7068 # Double quotes because CPP needs to be expanded
7069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7070 do
7071 ac_preproc_ok=false
7072for ac_c_preproc_warn_flag in '' yes
7073do
7074 # Use a header file that comes with gcc, so configuring glibc
7075 # with a fresh cross-compiler works.
7076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077 # <limits.h> exists even on freestanding compilers.
7078 # On the NeXT, cc -E runs the code through the compiler's parser,
7079 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7081/* end confdefs.h. */
7082#ifdef __STDC__
7083# include <limits.h>
7084#else
7085# include <assert.h>
7086#endif
7087 Syntax error
7088_ACEOF
b0322a85 7089if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7090
b0322a85 7091else
8d138742
CE
7092 # Broken: fails on valid input.
7093continue
7094fi
b0322a85 7095rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7096
8d138742
CE
7097 # OK, works on sane cases. Now check whether nonexistent headers
7098 # can be detected and how.
b0322a85 7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7100/* end confdefs.h. */
7101#include <ac_nonexistent.h>
7102_ACEOF
b0322a85 7103if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7104 # Broken: success on invalid input.
7105continue
7106else
8d138742
CE
7107 # Passes both tests.
7108ac_preproc_ok=:
7109break
7110fi
b0322a85 7111rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7112
8d138742
CE
7113done
7114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7115rm -f conftest.i conftest.err conftest.$ac_ext
7116if $ac_preproc_ok; then :
8d138742
CE
7117 break
7118fi
d9898ee8 7119
8d138742
CE
7120 done
7121 ac_cv_prog_CPP=$CPP
d9898ee8 7122
8d138742
CE
7123fi
7124 CPP=$ac_cv_prog_CPP
7125else
7126 ac_cv_prog_CPP=$CPP
7127fi
b0322a85 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742
CE
7129$as_echo "$CPP" >&6; }
7130ac_preproc_ok=false
7131for ac_c_preproc_warn_flag in '' yes
7132do
7133 # Use a header file that comes with gcc, so configuring glibc
7134 # with a fresh cross-compiler works.
7135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7136 # <limits.h> exists even on freestanding compilers.
7137 # On the NeXT, cc -E runs the code through the compiler's parser,
7138 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7140/* end confdefs.h. */
7141#ifdef __STDC__
7142# include <limits.h>
7143#else
7144# include <assert.h>
7145#endif
7146 Syntax error
7147_ACEOF
b0322a85 7148if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7149
b0322a85 7150else
8d138742
CE
7151 # Broken: fails on valid input.
7152continue
7153fi
b0322a85 7154rm -f conftest.err conftest.i conftest.$ac_ext
ac40fd9e 7155
8d138742
CE
7156 # OK, works on sane cases. Now check whether nonexistent headers
7157 # can be detected and how.
b0322a85 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7159/* end confdefs.h. */
7160#include <ac_nonexistent.h>
7161_ACEOF
b0322a85 7162if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7163 # Broken: success on invalid input.
7164continue
7165else
8d138742
CE
7166 # Passes both tests.
7167ac_preproc_ok=:
7168break
7169fi
b0322a85 7170rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7171
8d138742
CE
7172done
7173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7174rm -f conftest.i conftest.err conftest.$ac_ext
7175if $ac_preproc_ok; then :
7176
8d138742 7177else
b0322a85 7178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 7179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
7180as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7181See \`config.log' for more details" "$LINENO" 5; }
8d138742 7182fi
d9898ee8 7183
8d138742
CE
7184ac_ext=c
7185ac_cpp='$CPP $CPPFLAGS'
7186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7188ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7189
d9898ee8 7190
b0322a85 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 7192$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 7193if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
7194 $as_echo_n "(cached) " >&6
7195else
b0322a85 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7197/* end confdefs.h. */
7198#include <stdlib.h>
7199#include <stdarg.h>
7200#include <string.h>
7201#include <float.h>
d9898ee8 7202
8d138742
CE
7203int
7204main ()
7205{
d9898ee8 7206
8d138742
CE
7207 ;
7208 return 0;
7209}
7210_ACEOF
b0322a85 7211if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
7212 ac_cv_header_stdc=yes
7213else
b0322a85 7214 ac_cv_header_stdc=no
8d138742 7215fi
8d138742 7216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7217
8d138742
CE
7218if test $ac_cv_header_stdc = yes; then
7219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7221/* end confdefs.h. */
7222#include <string.h>
d9898ee8 7223
8d138742
CE
7224_ACEOF
7225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7226 $EGREP "memchr" >/dev/null 2>&1; then :
7227
d9898ee8 7228else
8d138742 7229 ac_cv_header_stdc=no
d9898ee8 7230fi
8d138742 7231rm -f conftest*
d9898ee8 7232
7233fi
d9898ee8 7234
8d138742
CE
7235if test $ac_cv_header_stdc = yes; then
7236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7238/* end confdefs.h. */
7239#include <stdlib.h>
7240
7241_ACEOF
7242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7243 $EGREP "free" >/dev/null 2>&1; then :
7244
d9898ee8 7245else
8d138742
CE
7246 ac_cv_header_stdc=no
7247fi
7248rm -f conftest*
d9898ee8 7249
7250fi
d9898ee8 7251
8d138742
CE
7252if test $ac_cv_header_stdc = yes; then
7253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 7254 if test "$cross_compiling" = yes; then :
8d138742 7255 :
d9898ee8 7256else
b0322a85 7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7258/* end confdefs.h. */
7259#include <ctype.h>
7260#include <stdlib.h>
7261#if ((' ' & 0x0FF) == 0x020)
7262# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7263# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7264#else
7265# define ISLOWER(c) \
7266 (('a' <= (c) && (c) <= 'i') \
7267 || ('j' <= (c) && (c) <= 'r') \
7268 || ('s' <= (c) && (c) <= 'z'))
7269# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7270#endif
7271
7272#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7273int
7274main ()
7275{
7276 int i;
7277 for (i = 0; i < 256; i++)
7278 if (XOR (islower (i), ISLOWER (i))
7279 || toupper (i) != TOUPPER (i))
7280 return 2;
7281 return 0;
7282}
7283_ACEOF
b0322a85 7284if ac_fn_c_try_run "$LINENO"; then :
8d138742 7285
b0322a85
CE
7286else
7287 ac_cv_header_stdc=no
8d138742 7288fi
b0322a85
CE
7289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7290 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 7291fi
7292
8d138742
CE
7293fi
7294fi
b0322a85 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742
CE
7296$as_echo "$ac_cv_header_stdc" >&6; }
7297if test $ac_cv_header_stdc = yes; then
d9898ee8 7298
b0322a85 7299$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 7300
7301fi
d9898ee8 7302
8d138742 7303# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8d138742
CE
7304for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7305 inttypes.h stdint.h unistd.h
b0322a85
CE
7306do :
7307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7309"
7310if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
7311 cat >>confdefs.h <<_ACEOF
7312#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7313_ACEOF
7314
7315fi
d9898ee8 7316
d9898ee8 7317done
d9898ee8 7318
d9898ee8 7319
8d138742 7320for ac_header in dlfcn.h
b0322a85
CE
7321do :
7322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7323"
7324if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8d138742 7325 cat >>confdefs.h <<_ACEOF
b0322a85 7326#define HAVE_DLFCN_H 1
8d138742 7327_ACEOF
d9898ee8 7328
8d138742 7329fi
d9898ee8 7330
8d138742 7331done
d9898ee8 7332
d9898ee8 7333
d9898ee8 7334
b0322a85
CE
7335
7336
8d138742 7337# Set options
d9898ee8 7338
d9898ee8 7339
d9898ee8 7340
8d138742
CE
7341 enable_dlopen=no
7342
7343
7344 enable_win32_dll=no
7345
7346
7347 # Check whether --enable-shared was given.
b0322a85 7348if test "${enable_shared+set}" = set; then :
8d138742
CE
7349 enableval=$enable_shared; p=${PACKAGE-default}
7350 case $enableval in
7351 yes) enable_shared=yes ;;
7352 no) enable_shared=no ;;
7353 *)
7354 enable_shared=no
7355 # Look at the argument we got. We use all the common list separators.
7356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7357 for pkg in $enableval; do
7358 IFS="$lt_save_ifs"
7359 if test "X$pkg" = "X$p"; then
7360 enable_shared=yes
d9898ee8 7361 fi
8d138742
CE
7362 done
7363 IFS="$lt_save_ifs"
d9898ee8 7364 ;;
8d138742
CE
7365 esac
7366else
7367 enable_shared=yes
7368fi
d9898ee8 7369
d9898ee8 7370
d9898ee8 7371
d9898ee8 7372
d9898ee8 7373
d9898ee8 7374
d9898ee8 7375
d9898ee8 7376
d9898ee8 7377
8d138742 7378 # Check whether --enable-static was given.
b0322a85 7379if test "${enable_static+set}" = set; then :
8d138742
CE
7380 enableval=$enable_static; p=${PACKAGE-default}
7381 case $enableval in
7382 yes) enable_static=yes ;;
7383 no) enable_static=no ;;
d9898ee8 7384 *)
8d138742
CE
7385 enable_static=no
7386 # Look at the argument we got. We use all the common list separators.
7387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7388 for pkg in $enableval; do
7389 IFS="$lt_save_ifs"
7390 if test "X$pkg" = "X$p"; then
7391 enable_static=yes
7392 fi
7393 done
7394 IFS="$lt_save_ifs"
d9898ee8 7395 ;;
7396 esac
8d138742
CE
7397else
7398 enable_static=yes
7399fi
d9898ee8 7400
d9898ee8 7401
d9898ee8 7402
d9898ee8 7403
d9898ee8 7404
d9898ee8 7405
d9898ee8 7406
d9898ee8 7407
d9898ee8 7408
d9898ee8 7409
8d138742 7410# Check whether --with-pic was given.
b0322a85
CE
7411if test "${with_pic+set}" = set; then :
7412 withval=$with_pic; lt_p=${PACKAGE-default}
7413 case $withval in
7414 yes|no) pic_mode=$withval ;;
7415 *)
7416 pic_mode=default
7417 # Look at the argument we got. We use all the common list separators.
7418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7419 for lt_pkg in $withval; do
7420 IFS="$lt_save_ifs"
7421 if test "X$lt_pkg" = "X$lt_p"; then
7422 pic_mode=yes
7423 fi
7424 done
7425 IFS="$lt_save_ifs"
7426 ;;
7427 esac
d9898ee8 7428else
8d138742 7429 pic_mode=default
d9898ee8 7430fi
dd184caf 7431
d9898ee8 7432
8d138742 7433test -z "$pic_mode" && pic_mode=default
d9898ee8 7434
d9898ee8 7435
d9898ee8 7436
d9898ee8 7437
dd184caf 7438
dd184caf 7439
d9898ee8 7440
8d138742 7441 # Check whether --enable-fast-install was given.
b0322a85 7442if test "${enable_fast_install+set}" = set; then :
8d138742
CE
7443 enableval=$enable_fast_install; p=${PACKAGE-default}
7444 case $enableval in
7445 yes) enable_fast_install=yes ;;
7446 no) enable_fast_install=no ;;
7447 *)
7448 enable_fast_install=no
7449 # Look at the argument we got. We use all the common list separators.
7450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7451 for pkg in $enableval; do
7452 IFS="$lt_save_ifs"
7453 if test "X$pkg" = "X$p"; then
7454 enable_fast_install=yes
d9898ee8 7455 fi
8d138742
CE
7456 done
7457 IFS="$lt_save_ifs"
d9898ee8 7458 ;;
8d138742
CE
7459 esac
7460else
7461 enable_fast_install=yes
7462fi
d9898ee8 7463
d9898ee8 7464
d9898ee8 7465
d9898ee8 7466
d9898ee8 7467
d9898ee8 7468
d9898ee8 7469
d9898ee8 7470
d9898ee8 7471
d9898ee8 7472
d9898ee8 7473
8d138742
CE
7474# This can be used to rebuild libtool when needed
7475LIBTOOL_DEPS="$ltmain"
d9898ee8 7476
8d138742
CE
7477# Always use our own libtool.
7478LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7479
d9898ee8 7480
d9898ee8 7481
d9898ee8 7482
d9898ee8 7483
d9898ee8 7484
d9898ee8 7485
d9898ee8 7486
d9898ee8 7487
d9898ee8 7488
d9898ee8 7489
d9898ee8 7490
d9898ee8 7491
d9898ee8 7492
d9898ee8 7493
d9898ee8 7494
d9898ee8 7495
d9898ee8 7496
d9898ee8 7497
b0322a85
CE
7498
7499
7500
7501
7502
d9898ee8 7503
d9898ee8 7504
d9898ee8 7505
d9898ee8 7506
d9898ee8 7507
d9898ee8 7508
8d138742 7509test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7510
d9898ee8 7511
d9898ee8 7512
d9898ee8 7513
ac40fd9e 7514
d9898ee8 7515
d9898ee8 7516
d9898ee8 7517
d9898ee8 7518
d9898ee8 7519
d9898ee8 7520
d9898ee8 7521
d9898ee8 7522
d9898ee8 7523
8d138742
CE
7524if test -n "${ZSH_VERSION+set}" ; then
7525 setopt NO_GLOB_SUBST
7526fi
d9898ee8 7527
b0322a85 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 7529$as_echo_n "checking for objdir... " >&6; }
b0322a85 7530if ${lt_cv_objdir+:} false; then :
8d138742
CE
7531 $as_echo_n "(cached) " >&6
7532else
7533 rm -f .libs 2>/dev/null
7534mkdir .libs 2>/dev/null
7535if test -d .libs; then
7536 lt_cv_objdir=.libs
7537else
7538 # MS-DOS does not allow filenames that begin with a dot.
7539 lt_cv_objdir=_libs
7540fi
7541rmdir .libs 2>/dev/null
7542fi
b0322a85 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
7544$as_echo "$lt_cv_objdir" >&6; }
7545objdir=$lt_cv_objdir
d9898ee8 7546
d9898ee8 7547
ac40fd9e 7548
d9898ee8 7549
d9898ee8 7550
8d138742
CE
7551cat >>confdefs.h <<_ACEOF
7552#define LT_OBJDIR "$lt_cv_objdir/"
7553_ACEOF
d9898ee8 7554
d9898ee8 7555
d9898ee8 7556
d9898ee8 7557
8d138742
CE
7558case $host_os in
7559aix3*)
7560 # AIX sometimes has problems with the GCC collect2 program. For some
7561 # reason, if we set the COLLECT_NAMES environment variable, the problems
7562 # vanish in a puff of smoke.
7563 if test "X${COLLECT_NAMES+set}" != Xset; then
7564 COLLECT_NAMES=
7565 export COLLECT_NAMES
d9898ee8 7566 fi
7567 ;;
8d138742 7568esac
d9898ee8 7569
8d138742
CE
7570# Global variables:
7571ofile=libtool
7572can_build_shared=yes
7573
7574# All known linkers require a `.a' archive for static linking (except MSVC,
7575# which needs '.lib').
7576libext=a
7577
7578with_gnu_ld="$lt_cv_prog_gnu_ld"
7579
7580old_CC="$CC"
7581old_CFLAGS="$CFLAGS"
7582
7583# Set sane defaults for various variables
7584test -z "$CC" && CC=cc
7585test -z "$LTCC" && LTCC=$CC
7586test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7587test -z "$LD" && LD=ld
7588test -z "$ac_objext" && ac_objext=o
7589
7590for cc_temp in $compiler""; do
7591 case $cc_temp in
7592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7594 \-*) ;;
7595 *) break;;
d9898ee8 7596 esac
8d138742 7597done
b0322a85 7598cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d9898ee8 7599
d9898ee8 7600
8d138742
CE
7601# Only perform the check for file, if the check method requires it
7602test -z "$MAGIC_CMD" && MAGIC_CMD=file
7603case $deplibs_check_method in
7604file_magic*)
7605 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 7607$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 7608if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
7609 $as_echo_n "(cached) " >&6
7610else
7611 case $MAGIC_CMD in
7612[\\/*] | ?:[\\/]*)
7613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
d9898ee8 7614 ;;
8d138742
CE
7615*)
7616 lt_save_MAGIC_CMD="$MAGIC_CMD"
7617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7619 for ac_dir in $ac_dummy; do
7620 IFS="$lt_save_ifs"
7621 test -z "$ac_dir" && ac_dir=.
7622 if test -f $ac_dir/${ac_tool_prefix}file; then
7623 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7624 if test -n "$file_magic_test_file"; then
7625 case $deplibs_check_method in
7626 "file_magic "*)
7627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7630 $EGREP "$file_magic_regex" > /dev/null; then
7631 :
7632 else
7633 cat <<_LT_EOF 1>&2
d9898ee8 7634
8d138742
CE
7635*** Warning: the command libtool uses to detect shared libraries,
7636*** $file_magic_cmd, produces output that libtool cannot recognize.
7637*** The result is that libtool may fail to recognize shared libraries
7638*** as such. This will affect the creation of libtool libraries that
7639*** depend on shared libraries, but programs linked with such libtool
7640*** libraries will work regardless of this problem. Nevertheless, you
7641*** may want to report the problem to your system manager and/or to
7642*** bug-libtool@gnu.org
d9898ee8 7643
8d138742
CE
7644_LT_EOF
7645 fi ;;
7646 esac
7647 fi
7648 break
7649 fi
7650 done
7651 IFS="$lt_save_ifs"
7652 MAGIC_CMD="$lt_save_MAGIC_CMD"
d9898ee8 7653 ;;
7654esac
d9898ee8 7655fi
7656
8d138742
CE
7657MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658if test -n "$MAGIC_CMD"; then
b0322a85 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 7660$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7661else
b0322a85 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7663$as_echo "no" >&6; }
d9898ee8 7664fi
d9898ee8 7665
d9898ee8 7666
8d138742
CE
7667
7668
7669
7670if test -z "$lt_cv_path_MAGIC_CMD"; then
7671 if test -n "$ac_tool_prefix"; then
b0322a85 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 7673$as_echo_n "checking for file... " >&6; }
b0322a85 7674if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742 7675 $as_echo_n "(cached) " >&6
d9898ee8 7676else
8d138742
CE
7677 case $MAGIC_CMD in
7678[\\/*] | ?:[\\/]*)
7679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7680 ;;
7681*)
7682 lt_save_MAGIC_CMD="$MAGIC_CMD"
7683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685 for ac_dir in $ac_dummy; do
7686 IFS="$lt_save_ifs"
7687 test -z "$ac_dir" && ac_dir=.
7688 if test -f $ac_dir/file; then
7689 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7690 if test -n "$file_magic_test_file"; then
7691 case $deplibs_check_method in
7692 "file_magic "*)
7693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696 $EGREP "$file_magic_regex" > /dev/null; then
7697 :
7698 else
7699 cat <<_LT_EOF 1>&2
7700
7701*** Warning: the command libtool uses to detect shared libraries,
7702*** $file_magic_cmd, produces output that libtool cannot recognize.
7703*** The result is that libtool may fail to recognize shared libraries
7704*** as such. This will affect the creation of libtool libraries that
7705*** depend on shared libraries, but programs linked with such libtool
7706*** libraries will work regardless of this problem. Nevertheless, you
7707*** may want to report the problem to your system manager and/or to
7708*** bug-libtool@gnu.org
7709
7710_LT_EOF
7711 fi ;;
7712 esac
7713 fi
7714 break
7715 fi
7716 done
7717 IFS="$lt_save_ifs"
7718 MAGIC_CMD="$lt_save_MAGIC_CMD"
7719 ;;
7720esac
d9898ee8 7721fi
7722
8d138742
CE
7723MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724if test -n "$MAGIC_CMD"; then
b0322a85 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 7726$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7727else
b0322a85 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7729$as_echo "no" >&6; }
7730fi
d9898ee8 7731
d9898ee8 7732
8d138742
CE
7733 else
7734 MAGIC_CMD=:
7735 fi
7736fi
d9898ee8 7737
8d138742
CE
7738 fi
7739 ;;
7740esac
d9898ee8 7741
8d138742 7742# Use C for the default configuration in the libtool script
d9898ee8 7743
8d138742
CE
7744lt_save_CC="$CC"
7745ac_ext=c
7746ac_cpp='$CPP $CPPFLAGS'
7747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7750
dd184caf 7751
8d138742
CE
7752# Source file extension for C test sources.
7753ac_ext=c
d9898ee8 7754
8d138742
CE
7755# Object file extension for compiled C test sources.
7756objext=o
7757objext=$objext
d9898ee8 7758
8d138742
CE
7759# Code to be used in simple compile tests
7760lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7761
8d138742
CE
7762# Code to be used in simple link tests
7763lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7764
d9898ee8 7765
d9898ee8 7766
d9898ee8 7767
d9898ee8 7768
d9898ee8 7769
d9898ee8 7770
8d138742
CE
7771# If no C compiler was specified, use CC.
7772LTCC=${LTCC-"$CC"}
dd184caf 7773
8d138742
CE
7774# If no C compiler flags were specified, use CFLAGS.
7775LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7776
8d138742
CE
7777# Allow CC to be a program name with arguments.
7778compiler=$CC
d9898ee8 7779
8d138742
CE
7780# Save the default compiler, since it gets overwritten when the other
7781# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7782compiler_DEFAULT=$CC
dd184caf 7783
8d138742
CE
7784# save warnings/boilerplate of simple test code
7785ac_outfile=conftest.$ac_objext
7786echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7787eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7788_lt_compiler_boilerplate=`cat conftest.err`
7789$RM conftest*
d9898ee8 7790
8d138742
CE
7791ac_outfile=conftest.$ac_objext
7792echo "$lt_simple_link_test_code" >conftest.$ac_ext
7793eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7794_lt_linker_boilerplate=`cat conftest.err`
7795$RM -r conftest*
d9898ee8 7796
d9898ee8 7797
8d138742 7798if test -n "$compiler"; then
d9898ee8 7799
8d138742 7800lt_prog_compiler_no_builtin_flag=
d9898ee8 7801
8d138742 7802if test "$GCC" = yes; then
b0322a85
CE
7803 case $cc_basename in
7804 nvcc*)
7805 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7806 *)
7807 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7808 esac
d9898ee8 7809
b0322a85 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 7811$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 7812if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
7813 $as_echo_n "(cached) " >&6
7814else
7815 lt_cv_prog_compiler_rtti_exceptions=no
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7818 lt_compiler_flag="-fno-rtti -fno-exceptions"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 # The option is referenced via a variable to avoid confusing sed.
7824 lt_compile=`echo "$ac_compile" | $SED \
7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827 -e 's:$: $lt_compiler_flag:'`
b0322a85 7828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
7829 (eval "$lt_compile" 2>conftest.err)
7830 ac_status=$?
7831 cat conftest.err >&5
b0322a85 7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
7833 if (exit $ac_status) && test -s "$ac_outfile"; then
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings other than the usual output.
b0322a85 7836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
7837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_rtti_exceptions=yes
7840 fi
7841 fi
7842 $RM conftest*
dd184caf 7843
d9898ee8 7844fi
b0322a85 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 7846$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7847
8d138742
CE
7848if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 7850else
8d138742 7851 :
d9898ee8 7852fi
dd184caf 7853
d9898ee8 7854fi
d9898ee8 7855
d9898ee8 7856
dd184caf 7857
d9898ee8 7858
d9898ee8 7859
dd184caf 7860
8d138742
CE
7861 lt_prog_compiler_wl=
7862lt_prog_compiler_pic=
7863lt_prog_compiler_static=
d9898ee8 7864
7865
8d138742
CE
7866 if test "$GCC" = yes; then
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_static='-static'
d9898ee8 7869
8d138742
CE
7870 case $host_os in
7871 aix*)
7872 # All AIX code is PIC.
7873 if test "$host_cpu" = ia64; then
7874 # AIX 5 now supports IA64 processor
7875 lt_prog_compiler_static='-Bstatic'
7876 fi
7877 ;;
d9898ee8 7878
8d138742
CE
7879 amigaos*)
7880 case $host_cpu in
7881 powerpc)
7882 # see comment about AmigaOS4 .so support
7883 lt_prog_compiler_pic='-fPIC'
7884 ;;
7885 m68k)
7886 # FIXME: we need at least 68020 code to build shared libraries, but
7887 # adding the `-m68020' flag to GCC prevents building anything better,
7888 # like `-m68040'.
7889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7890 ;;
7891 esac
7892 ;;
d9898ee8 7893
8d138742
CE
7894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7895 # PIC is the default for these OSes.
7896 ;;
d9898ee8 7897
8d138742
CE
7898 mingw* | cygwin* | pw32* | os2* | cegcc*)
7899 # This hack is so that the source file can tell whether it is being
7900 # built for inclusion in a dll (and should export symbols for example).
7901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7902 # (--disable-auto-import) libraries
7903 lt_prog_compiler_pic='-DDLL_EXPORT'
7904 ;;
7905
7906 darwin* | rhapsody*)
7907 # PIC is the default on this platform
7908 # Common symbols not allowed in MH_DYLIB files
7909 lt_prog_compiler_pic='-fno-common'
7910 ;;
d9898ee8 7911
b0322a85
CE
7912 haiku*)
7913 # PIC is the default for Haiku.
7914 # The "-static" flag exists, but is broken.
7915 lt_prog_compiler_static=
7916 ;;
7917
8d138742
CE
7918 hpux*)
7919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7921 # sets the default TLS model and affects inlining.
7922 case $host_cpu in
7923 hppa*64*)
7924 # +Z the default
7925 ;;
7926 *)
7927 lt_prog_compiler_pic='-fPIC'
7928 ;;
7929 esac
7930 ;;
d9898ee8 7931
8d138742
CE
7932 interix[3-9]*)
7933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7934 # Instead, we relocate shared libraries at runtime.
7935 ;;
d9898ee8 7936
8d138742
CE
7937 msdosdjgpp*)
7938 # Just because we use GCC doesn't mean we suddenly get shared libraries
7939 # on systems that don't support them.
7940 lt_prog_compiler_can_build_shared=no
7941 enable_shared=no
7942 ;;
d9898ee8 7943
8d138742
CE
7944 *nto* | *qnx*)
7945 # QNX uses GNU C++, but need to define -shared option too, otherwise
7946 # it will coredump.
7947 lt_prog_compiler_pic='-fPIC -shared'
7948 ;;
d9898ee8 7949
8d138742
CE
7950 sysv4*MP*)
7951 if test -d /usr/nec; then
7952 lt_prog_compiler_pic=-Kconform_pic
7953 fi
7954 ;;
d9898ee8 7955
8d138742
CE
7956 *)
7957 lt_prog_compiler_pic='-fPIC'
7958 ;;
7959 esac
b0322a85
CE
7960
7961 case $cc_basename in
7962 nvcc*) # Cuda Compiler Driver 2.2
7963 lt_prog_compiler_wl='-Xlinker '
7964 if test -n "$lt_prog_compiler_pic"; then
7965 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7966 fi
7967 ;;
7968 esac
d9898ee8 7969 else
8d138742
CE
7970 # PORTME Check for flag to pass linker flags through the system compiler.
7971 case $host_os in
7972 aix*)
7973 lt_prog_compiler_wl='-Wl,'
7974 if test "$host_cpu" = ia64; then
7975 # AIX 5 now supports IA64 processor
7976 lt_prog_compiler_static='-Bstatic'
7977 else
7978 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7979 fi
7980 ;;
d9898ee8 7981
8d138742
CE
7982 mingw* | cygwin* | pw32* | os2* | cegcc*)
7983 # This hack is so that the source file can tell whether it is being
7984 # built for inclusion in a dll (and should export symbols for example).
7985 lt_prog_compiler_pic='-DDLL_EXPORT'
7986 ;;
d9898ee8 7987
8d138742
CE
7988 hpux9* | hpux10* | hpux11*)
7989 lt_prog_compiler_wl='-Wl,'
7990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7991 # not for PA HP-UX.
7992 case $host_cpu in
7993 hppa*64*|ia64*)
7994 # +Z the default
7995 ;;
7996 *)
7997 lt_prog_compiler_pic='+Z'
7998 ;;
7999 esac
8000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8001 lt_prog_compiler_static='${wl}-a ${wl}archive'
8002 ;;
d9898ee8 8003
8d138742
CE
8004 irix5* | irix6* | nonstopux*)
8005 lt_prog_compiler_wl='-Wl,'
8006 # PIC (with -KPIC) is the default.
8007 lt_prog_compiler_static='-non_shared'
8008 ;;
d9898ee8 8009
b0322a85 8010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
8011 case $cc_basename in
8012 # old Intel for x86_64 which still supported -KPIC.
8013 ecc*)
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_pic='-KPIC'
8016 lt_prog_compiler_static='-static'
8017 ;;
8018 # icc used to be incompatible with GCC.
8019 # ICC 10 doesn't accept -KPIC any more.
8020 icc* | ifort*)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-fPIC'
8023 lt_prog_compiler_static='-static'
8024 ;;
8025 # Lahey Fortran 8.1.
8026 lf95*)
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_pic='--shared'
8029 lt_prog_compiler_static='--static'
8030 ;;
b0322a85
CE
8031 nagfor*)
8032 # NAG Fortran compiler
8033 lt_prog_compiler_wl='-Wl,-Wl,,'
8034 lt_prog_compiler_pic='-PIC'
8035 lt_prog_compiler_static='-Bstatic'
8036 ;;
8037 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
8038 # Portland Group compilers (*not* the Pentium gcc compiler,
8039 # which looks to be a dead project)
8040 lt_prog_compiler_wl='-Wl,'
8041 lt_prog_compiler_pic='-fpic'
8042 lt_prog_compiler_static='-Bstatic'
8043 ;;
8044 ccc*)
8045 lt_prog_compiler_wl='-Wl,'
8046 # All Alpha code is PIC.
8047 lt_prog_compiler_static='-non_shared'
8048 ;;
b0322a85
CE
8049 xl* | bgxl* | bgf* | mpixl*)
8050 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
8051 lt_prog_compiler_wl='-Wl,'
8052 lt_prog_compiler_pic='-qpic'
8053 lt_prog_compiler_static='-qstaticlink'
8054 ;;
8055 *)
8056 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
8057 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8058 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 lt_prog_compiler_wl=''
8062 ;;
8063 *Sun\ F* | *Sun*Fortran*)
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-Bstatic'
8066 lt_prog_compiler_wl='-Qoption ld '
8067 ;;
8d138742
CE
8068 *Sun\ C*)
8069 # Sun C 5.9
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 lt_prog_compiler_wl='-Wl,'
8073 ;;
b0322a85
CE
8074 *Intel*\ [CF]*Compiler*)
8075 lt_prog_compiler_wl='-Wl,'
8076 lt_prog_compiler_pic='-fPIC'
8077 lt_prog_compiler_static='-static'
8078 ;;
8079 *Portland\ Group*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-fpic'
8d138742 8082 lt_prog_compiler_static='-Bstatic'
8d138742
CE
8083 ;;
8084 esac
8085 ;;
8086 esac
8087 ;;
d9898ee8 8088
8d138742
CE
8089 newsos6)
8090 lt_prog_compiler_pic='-KPIC'
8091 lt_prog_compiler_static='-Bstatic'
8092 ;;
d9898ee8 8093
8d138742
CE
8094 *nto* | *qnx*)
8095 # QNX uses GNU C++, but need to define -shared option too, otherwise
8096 # it will coredump.
8097 lt_prog_compiler_pic='-fPIC -shared'
8098 ;;
d9898ee8 8099
8d138742
CE
8100 osf3* | osf4* | osf5*)
8101 lt_prog_compiler_wl='-Wl,'
8102 # All OSF/1 code is PIC.
8103 lt_prog_compiler_static='-non_shared'
8104 ;;
d9898ee8 8105
8d138742
CE
8106 rdos*)
8107 lt_prog_compiler_static='-non_shared'
8108 ;;
d9898ee8 8109
8d138742
CE
8110 solaris*)
8111 lt_prog_compiler_pic='-KPIC'
8112 lt_prog_compiler_static='-Bstatic'
8113 case $cc_basename in
b0322a85 8114 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
8115 lt_prog_compiler_wl='-Qoption ld ';;
8116 *)
8117 lt_prog_compiler_wl='-Wl,';;
8118 esac
8119 ;;
d9898ee8 8120
8d138742
CE
8121 sunos4*)
8122 lt_prog_compiler_wl='-Qoption ld '
8123 lt_prog_compiler_pic='-PIC'
8124 lt_prog_compiler_static='-Bstatic'
8125 ;;
d9898ee8 8126
8d138742
CE
8127 sysv4 | sysv4.2uw2* | sysv4.3*)
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 ;;
d9898ee8 8132
8d138742
CE
8133 sysv4*MP*)
8134 if test -d /usr/nec ;then
8135 lt_prog_compiler_pic='-Kconform_pic'
8136 lt_prog_compiler_static='-Bstatic'
8137 fi
8138 ;;
d9898ee8 8139
8d138742
CE
8140 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-KPIC'
8143 lt_prog_compiler_static='-Bstatic'
8144 ;;
d9898ee8 8145
8d138742
CE
8146 unicos*)
8147 lt_prog_compiler_wl='-Wl,'
8148 lt_prog_compiler_can_build_shared=no
8149 ;;
d9898ee8 8150
8d138742
CE
8151 uts4*)
8152 lt_prog_compiler_pic='-pic'
8153 lt_prog_compiler_static='-Bstatic'
8154 ;;
d9898ee8 8155
8d138742
CE
8156 *)
8157 lt_prog_compiler_can_build_shared=no
8158 ;;
8159 esac
8160 fi
d9898ee8 8161
8d138742
CE
8162case $host_os in
8163 # For platforms which do not support PIC, -DPIC is meaningless:
8164 *djgpp*)
8165 lt_prog_compiler_pic=
8166 ;;
8167 *)
8168 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8169 ;;
8170esac
d9898ee8 8171
b0322a85
CE
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8173$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8174if ${lt_cv_prog_compiler_pic+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176else
8177 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8178fi
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8180$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8181lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 8182
8d138742
CE
8183#
8184# Check to make sure the PIC flag actually works.
8185#
8186if test -n "$lt_prog_compiler_pic"; then
b0322a85 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 8188$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 8189if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742
CE
8190 $as_echo_n "(cached) " >&6
8191else
8192 lt_cv_prog_compiler_pic_works=no
8193 ac_outfile=conftest.$ac_objext
8194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8195 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8196 # Insert the option either (1) after the last *FLAGS variable, or
8197 # (2) before a word containing "conftest.", or (3) at the end.
8198 # Note that $ac_compile itself does not contain backslashes and begins
8199 # with a dollar sign (not a hyphen), so the echo should work correctly.
8200 # The option is referenced via a variable to avoid confusing sed.
8201 lt_compile=`echo "$ac_compile" | $SED \
8202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8204 -e 's:$: $lt_compiler_flag:'`
b0322a85 8205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8206 (eval "$lt_compile" 2>conftest.err)
8207 ac_status=$?
8208 cat conftest.err >&5
b0322a85 8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8210 if (exit $ac_status) && test -s "$ac_outfile"; then
8211 # The compiler can only warn and ignore the option if not recognized
8212 # So say no if there are warnings other than the usual output.
b0322a85 8213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8216 lt_cv_prog_compiler_pic_works=yes
8217 fi
8218 fi
8219 $RM conftest*
d9898ee8 8220
8221fi
b0322a85 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 8223$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8224
8d138742
CE
8225if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8226 case $lt_prog_compiler_pic in
8227 "" | " "*) ;;
8228 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8229 esac
8230else
8231 lt_prog_compiler_pic=
8232 lt_prog_compiler_can_build_shared=no
d9898ee8 8233fi
8234
8d138742 8235fi
d9898ee8 8236
d9898ee8 8237
d9898ee8 8238
d9898ee8 8239
d9898ee8 8240
d9898ee8 8241
b0322a85
CE
8242
8243
8244
8245
8246
d9898ee8 8247#
8d138742 8248# Check to make sure the static flag actually works.
d9898ee8 8249#
8d138742 8250wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 8252$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 8253if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742
CE
8254 $as_echo_n "(cached) " >&6
8255else
8256 lt_cv_prog_compiler_static_works=no
8257 save_LDFLAGS="$LDFLAGS"
8258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8259 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8261 # The linker can only warn and ignore the option if not recognized
8262 # So say no if there are warnings
8263 if test -s conftest.err; then
8264 # Append any errors to the config.log.
8265 cat conftest.err 1>&5
b0322a85 8266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268 if diff conftest.exp conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_static_works=yes
8270 fi
8271 else
8272 lt_cv_prog_compiler_static_works=yes
8273 fi
8274 fi
8275 $RM -r conftest*
8276 LDFLAGS="$save_LDFLAGS"
d9898ee8 8277
8d138742 8278fi
b0322a85 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 8280$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 8281
8d138742
CE
8282if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8283 :
8284else
8285 lt_prog_compiler_static=
8286fi
d9898ee8 8287
d9898ee8 8288
d9898ee8 8289
d9898ee8 8290
d9898ee8 8291
d9898ee8 8292
d9898ee8 8293
b0322a85 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8295$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8296if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8297 $as_echo_n "(cached) " >&6
8298else
8299 lt_cv_prog_compiler_c_o=no
8300 $RM -r conftest 2>/dev/null
8301 mkdir conftest
8302 cd conftest
8303 mkdir out
8304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8305
8d138742
CE
8306 lt_compiler_flag="-o out/conftest2.$ac_objext"
8307 # Insert the option either (1) after the last *FLAGS variable, or
8308 # (2) before a word containing "conftest.", or (3) at the end.
8309 # Note that $ac_compile itself does not contain backslashes and begins
8310 # with a dollar sign (not a hyphen), so the echo should work correctly.
8311 lt_compile=`echo "$ac_compile" | $SED \
8312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8314 -e 's:$: $lt_compiler_flag:'`
b0322a85 8315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8316 (eval "$lt_compile" 2>out/conftest.err)
8317 ac_status=$?
8318 cat out/conftest.err >&5
b0322a85 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8321 then
8322 # The compiler can only warn and ignore the option if not recognized
8323 # So say no if there are warnings
b0322a85 8324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8327 lt_cv_prog_compiler_c_o=yes
8328 fi
8329 fi
8330 chmod u+w . 2>&5
8331 $RM conftest*
8332 # SGI C++ compiler will create directory out/ii_files/ for
8333 # template instantiation
8334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8335 $RM out/* && rmdir out
8336 cd ..
8337 $RM -r conftest
8338 $RM conftest*
d9898ee8 8339
8d138742 8340fi
b0322a85 8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8342$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8343
d9898ee8 8344
d9898ee8 8345
d9898ee8 8346
d9898ee8 8347
d9898ee8 8348
b0322a85 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8350$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8351if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8352 $as_echo_n "(cached) " >&6
8353else
8354 lt_cv_prog_compiler_c_o=no
8355 $RM -r conftest 2>/dev/null
8356 mkdir conftest
8357 cd conftest
8358 mkdir out
8359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8360
8d138742
CE
8361 lt_compiler_flag="-o out/conftest2.$ac_objext"
8362 # Insert the option either (1) after the last *FLAGS variable, or
8363 # (2) before a word containing "conftest.", or (3) at the end.
8364 # Note that $ac_compile itself does not contain backslashes and begins
8365 # with a dollar sign (not a hyphen), so the echo should work correctly.
8366 lt_compile=`echo "$ac_compile" | $SED \
8367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369 -e 's:$: $lt_compiler_flag:'`
b0322a85 8370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8371 (eval "$lt_compile" 2>out/conftest.err)
8372 ac_status=$?
8373 cat out/conftest.err >&5
b0322a85 8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8376 then
8377 # The compiler can only warn and ignore the option if not recognized
8378 # So say no if there are warnings
b0322a85 8379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8382 lt_cv_prog_compiler_c_o=yes
8383 fi
8384 fi
8385 chmod u+w . 2>&5
8386 $RM conftest*
8387 # SGI C++ compiler will create directory out/ii_files/ for
8388 # template instantiation
8389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8390 $RM out/* && rmdir out
8391 cd ..
8392 $RM -r conftest
8393 $RM conftest*
d9898ee8 8394
8d138742 8395fi
b0322a85 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8397$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8398
d9898ee8 8399
d9898ee8 8400
d9898ee8 8401
8d138742
CE
8402hard_links="nottested"
8403if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8404 # do not overwrite the value of need_locks provided by the user
b0322a85 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
8406$as_echo_n "checking if we can lock with hard links... " >&6; }
8407 hard_links=yes
8408 $RM conftest*
8409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8410 touch conftest.a
8411 ln conftest.a conftest.b 2>&5 || hard_links=no
8412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742
CE
8414$as_echo "$hard_links" >&6; }
8415 if test "$hard_links" = no; then
b0322a85 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8d138742
CE
8417$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8418 need_locks=warn
8419 fi
8420else
8421 need_locks=no
8422fi
d9898ee8 8423
d9898ee8 8424
d9898ee8 8425
d9898ee8 8426
d9898ee8 8427
d9898ee8 8428
b0322a85 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 8430$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8431
8d138742
CE
8432 runpath_var=
8433 allow_undefined_flag=
8434 always_export_symbols=no
8435 archive_cmds=
8436 archive_expsym_cmds=
8437 compiler_needs_object=no
8438 enable_shared_with_static_runtimes=no
8439 export_dynamic_flag_spec=
8440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8441 hardcode_automatic=no
8442 hardcode_direct=no
8443 hardcode_direct_absolute=no
8444 hardcode_libdir_flag_spec=
8d138742
CE
8445 hardcode_libdir_separator=
8446 hardcode_minus_L=no
8447 hardcode_shlibpath_var=unsupported
8448 inherit_rpath=no
8449 link_all_deplibs=unknown
8450 module_cmds=
8451 module_expsym_cmds=
8452 old_archive_from_new_cmds=
8453 old_archive_from_expsyms_cmds=
8454 thread_safe_flag_spec=
8455 whole_archive_flag_spec=
8456 # include_expsyms should be a list of space-separated symbols to be *always*
8457 # included in the symbol list
8458 include_expsyms=
8459 # exclude_expsyms can be an extended regexp of symbols to exclude
8460 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8461 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8462 # as well as any symbol that contains `d'.
8463 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8464 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8465 # platforms (ab)use it in PIC code, but their linkers get confused if
8466 # the symbol is explicitly referenced. Since portable code cannot
8467 # rely on this symbol name, it's probably fine to never include it in
8468 # preloaded symbol tables.
8469 # Exclude shared library initialization/finalization symbols.
8470 extract_expsyms_cmds=
d9898ee8 8471
8d138742
CE
8472 case $host_os in
8473 cygwin* | mingw* | pw32* | cegcc*)
8474 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8475 # When not using gcc, we currently assume that we are using
8476 # Microsoft Visual C++.
8477 if test "$GCC" != yes; then
8478 with_gnu_ld=no
8479 fi
8480 ;;
8481 interix*)
8482 # we just hope/assume this is gcc and not c89 (= MSVC++)
8483 with_gnu_ld=yes
8484 ;;
8485 openbsd*)
8486 with_gnu_ld=no
8487 ;;
8488 esac
d9898ee8 8489
8d138742 8490 ld_shlibs=yes
b0322a85
CE
8491
8492 # On some targets, GNU ld is compatible enough with the native linker
8493 # that we're better off using the native interface for both.
8494 lt_use_gnu_ld_interface=no
8d138742 8495 if test "$with_gnu_ld" = yes; then
b0322a85
CE
8496 case $host_os in
8497 aix*)
8498 # The AIX port of GNU ld has always aspired to compatibility
8499 # with the native linker. However, as the warning in the GNU ld
8500 # block says, versions before 2.19.5* couldn't really create working
8501 # shared libraries, regardless of the interface used.
8502 case `$LD -v 2>&1` in
8503 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8504 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8505 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8506 *)
8507 lt_use_gnu_ld_interface=yes
8508 ;;
8509 esac
8510 ;;
8511 *)
8512 lt_use_gnu_ld_interface=yes
8513 ;;
8514 esac
8515 fi
8516
8517 if test "$lt_use_gnu_ld_interface" = yes; then
8d138742
CE
8518 # If archive_cmds runs LD, not CC, wlarc should be empty
8519 wlarc='${wl}'
d9898ee8 8520
8d138742
CE
8521 # Set some defaults for GNU ld with shared library support. These
8522 # are reset later if shared libraries are not supported. Putting them
8523 # here allows them to be overridden if necessary.
8524 runpath_var=LD_RUN_PATH
8525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526 export_dynamic_flag_spec='${wl}--export-dynamic'
8527 # ancient GNU ld didn't support --whole-archive et. al.
8528 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8529 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8530 else
8531 whole_archive_flag_spec=
8532 fi
8533 supports_anon_versioning=no
8534 case `$LD -v 2>&1` in
b0322a85 8535 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
8536 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8539 *\ 2.11.*) ;; # other 2.11 versions
8540 *) supports_anon_versioning=yes ;;
8541 esac
d9898ee8 8542
8d138742
CE
8543 # See if GNU ld supports shared libraries.
8544 case $host_os in
8545 aix[3-9]*)
8546 # On AIX/PPC, the GNU linker is very broken
8547 if test "$host_cpu" != ia64; then
8548 ld_shlibs=no
8549 cat <<_LT_EOF 1>&2
d9898ee8 8550
b0322a85 8551*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
8552*** to be unable to reliably create shared libraries on AIX.
8553*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
8554*** really care for shared libraries, you may want to install binutils
8555*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8556*** You will then need to restart the configuration process.
d9898ee8 8557
8d138742
CE
8558_LT_EOF
8559 fi
8560 ;;
d9898ee8 8561
8d138742
CE
8562 amigaos*)
8563 case $host_cpu in
8564 powerpc)
8565 # see comment about AmigaOS4 .so support
8566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds=''
8568 ;;
8569 m68k)
8570 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)'
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_minus_L=yes
8573 ;;
8574 esac
8575 ;;
d9898ee8 8576
8d138742
CE
8577 beos*)
8578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8579 allow_undefined_flag=unsupported
8580 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8581 # support --undefined. This deserves some investigation. FIXME
8582 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583 else
8584 ld_shlibs=no
8585 fi
8586 ;;
d9898ee8 8587
8d138742
CE
8588 cygwin* | mingw* | pw32* | cegcc*)
8589 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8590 # as there is no search path for DLLs.
8591 hardcode_libdir_flag_spec='-L$libdir'
b0322a85 8592 export_dynamic_flag_spec='${wl}--export-all-symbols'
8d138742
CE
8593 allow_undefined_flag=unsupported
8594 always_export_symbols=no
8595 enable_shared_with_static_runtimes=yes
b0322a85
CE
8596 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'
8597 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 8598
8d138742
CE
8599 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8601 # If the export-symbols file already is a .def file (1st line
8602 # is EXPORTS), use it as is; otherwise, prepend...
8603 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8604 cp $export_symbols $output_objdir/$soname.def;
8605 else
8606 echo EXPORTS > $output_objdir/$soname.def;
8607 cat $export_symbols >> $output_objdir/$soname.def;
8608 fi~
8609 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8610 else
8611 ld_shlibs=no
8612 fi
8613 ;;
d9898ee8 8614
b0322a85
CE
8615 haiku*)
8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617 link_all_deplibs=yes
8618 ;;
8619
8d138742
CE
8620 interix[3-9]*)
8621 hardcode_direct=no
8622 hardcode_shlibpath_var=no
8623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8624 export_dynamic_flag_spec='${wl}-E'
8625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8626 # Instead, shared libraries are loaded at an image base (0x10000000 by
8627 # default) and relocated if they conflict, which is a slow very memory
8628 # consuming and fragmenting process. To avoid this, we pick a random,
8629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8632 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'
8633 ;;
d9898ee8 8634
b0322a85 8635 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
8636 tmp_diet=no
8637 if test "$host_os" = linux-dietlibc; then
8638 case $cc_basename in
8639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8640 esac
8641 fi
8642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8643 && test "$tmp_diet" = no
8644 then
b0322a85 8645 tmp_addflag=' $pic_flag'
8d138742
CE
8646 tmp_sharedflag='-shared'
8647 case $cc_basename,$host_cpu in
8648 pgcc*) # Portland Group C compiler
b0322a85 8649 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
8650 tmp_addflag=' $pic_flag'
8651 ;;
b0322a85
CE
8652 pgf77* | pgf90* | pgf95* | pgfortran*)
8653 # Portland Group f77 and f90 compilers
8654 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
8655 tmp_addflag=' $pic_flag -Mnomain' ;;
8656 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8657 tmp_addflag=' -i_dynamic' ;;
8658 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8659 tmp_addflag=' -i_dynamic -nofor_main' ;;
8660 ifc* | ifort*) # Intel Fortran compiler
8661 tmp_addflag=' -nofor_main' ;;
8662 lf95*) # Lahey Fortran 8.1
8663 whole_archive_flag_spec=
8664 tmp_sharedflag='--shared' ;;
b0322a85 8665 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
8666 tmp_sharedflag='-qmkshrobj'
8667 tmp_addflag= ;;
b0322a85
CE
8668 nvcc*) # Cuda Compiler Driver 2.2
8669 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'
8670 compiler_needs_object=yes
8671 ;;
8d138742
CE
8672 esac
8673 case `$CC -V 2>&1 | sed 5q` in
8674 *Sun\ C*) # Sun C 5.9
b0322a85 8675 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
8676 compiler_needs_object=yes
8677 tmp_sharedflag='-G' ;;
8678 *Sun\ F*) # Sun Fortran 8.3
8679 tmp_sharedflag='-G' ;;
8680 esac
8681 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8682
8d138742
CE
8683 if test "x$supports_anon_versioning" = xyes; then
8684 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8686 echo "local: *; };" >> $output_objdir/$libname.ver~
8687 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8688 fi
d9898ee8 8689
8d138742 8690 case $cc_basename in
b0322a85 8691 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
8692 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8693 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
b0322a85
CE
8694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8d138742
CE
8696 if test "x$supports_anon_versioning" = xyes; then
8697 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8698 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8699 echo "local: *; };" >> $output_objdir/$libname.ver~
b0322a85 8700 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
8701 fi
8702 ;;
8703 esac
8704 else
8705 ld_shlibs=no
8706 fi
8707 ;;
d9898ee8 8708
8d138742
CE
8709 netbsd*)
8710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8711 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8712 wlarc=
8713 else
b0322a85
CE
8714 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8715 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
8716 fi
8717 ;;
d9898ee8 8718
8d138742
CE
8719 solaris*)
8720 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8721 ld_shlibs=no
8722 cat <<_LT_EOF 1>&2
d9898ee8 8723
8d138742
CE
8724*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8725*** create shared libraries on Solaris systems. Therefore, libtool
8726*** is disabling shared libraries support. We urge you to upgrade GNU
8727*** binutils to release 2.9.1 or newer. Another option is to modify
8728*** your PATH or compiler configuration so that the native linker is
8729*** used, and then restart.
d9898ee8 8730
8d138742
CE
8731_LT_EOF
8732 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
8733 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 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
8735 else
8736 ld_shlibs=no
8737 fi
8738 ;;
d9898ee8 8739
8d138742
CE
8740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8741 case `$LD -v 2>&1` in
8742 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8743 ld_shlibs=no
8744 cat <<_LT_EOF 1>&2
d9898ee8 8745
8d138742
CE
8746*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8747*** reliably create shared libraries on SCO systems. Therefore, libtool
8748*** is disabling shared libraries support. We urge you to upgrade GNU
8749*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8750*** your PATH or compiler configuration so that the native linker is
8751*** used, and then restart.
d9898ee8 8752
8d138742
CE
8753_LT_EOF
8754 ;;
8755 *)
8756 # For security reasons, it is highly recommended that you always
8757 # use absolute paths for naming shared libraries, and exclude the
8758 # DT_RUNPATH tag from executables and libraries. But doing so
8759 # requires that you compile everything twice, which is a pain.
8760 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764 else
8765 ld_shlibs=no
8766 fi
8767 ;;
8768 esac
8769 ;;
d9898ee8 8770
8d138742
CE
8771 sunos4*)
8772 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8773 wlarc=
8774 hardcode_direct=yes
8775 hardcode_shlibpath_var=no
8776 ;;
d9898ee8 8777
8d138742
CE
8778 *)
8779 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
8780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 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
8782 else
8783 ld_shlibs=no
8784 fi
8785 ;;
8786 esac
d9898ee8 8787
8d138742
CE
8788 if test "$ld_shlibs" = no; then
8789 runpath_var=
8790 hardcode_libdir_flag_spec=
8791 export_dynamic_flag_spec=
8792 whole_archive_flag_spec=
8793 fi
8794 else
8795 # PORTME fill in a description of your system's linker (not GNU ld)
8796 case $host_os in
8797 aix3*)
8798 allow_undefined_flag=unsupported
8799 always_export_symbols=yes
8800 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'
8801 # Note: this linker hardcodes the directories in LIBPATH if there
8802 # are no directories specified by -L.
8803 hardcode_minus_L=yes
8804 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8805 # Neither direct hardcoding nor static linking is supported with a
8806 # broken collect2.
8807 hardcode_direct=unsupported
8808 fi
8809 ;;
d9898ee8 8810
8d138742
CE
8811 aix[4-9]*)
8812 if test "$host_cpu" = ia64; then
8813 # On IA64, the linker does run time linking by default, so we don't
8814 # have to do anything special.
8815 aix_use_runtimelinking=no
8816 exp_sym_flag='-Bexport'
8817 no_entry_flag=""
8818 else
8819 # If we're using GNU nm, then we don't want the "-C" option.
8820 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b0322a85
CE
8821 # Also, AIX nm treats weak defined symbols like other global
8822 # defined symbols, whereas GNU nm marks them as "W".
8d138742 8823 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b0322a85 8824 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8d138742
CE
8825 else
8826 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8827 fi
8828 aix_use_runtimelinking=no
d9898ee8 8829
8d138742
CE
8830 # Test if we are trying to use run time linking or normal
8831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8832 # need to do runtime linking.
8833 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8834 for ld_flag in $LDFLAGS; do
8835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8836 aix_use_runtimelinking=yes
8837 break
8838 fi
8839 done
8840 ;;
8841 esac
d9898ee8 8842
8d138742
CE
8843 exp_sym_flag='-bexport'
8844 no_entry_flag='-bnoentry'
8845 fi
d9898ee8 8846
8d138742
CE
8847 # When large executables or shared objects are built, AIX ld can
8848 # have problems creating the table of contents. If linking a library
8849 # or program results in "error TOC overflow" add -mminimal-toc to
8850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 8852
8d138742
CE
8853 archive_cmds=''
8854 hardcode_direct=yes
8855 hardcode_direct_absolute=yes
8856 hardcode_libdir_separator=':'
8857 link_all_deplibs=yes
8858 file_list_spec='${wl}-f,'
d9898ee8 8859
8d138742
CE
8860 if test "$GCC" = yes; then
8861 case $host_os in aix4.[012]|aix4.[012].*)
8862 # We only want to do this on AIX 4.2 and lower, the check
8863 # below for broken collect2 doesn't work under 4.3+
8864 collect2name=`${CC} -print-prog-name=collect2`
8865 if test -f "$collect2name" &&
8866 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8867 then
8868 # We have reworked collect2
8869 :
8870 else
8871 # We have old collect2
8872 hardcode_direct=unsupported
8873 # It fails to find uninstalled libraries when the uninstalled
8874 # path is not listed in the libpath. Setting hardcode_minus_L
8875 # to unsupported forces relinking
8876 hardcode_minus_L=yes
8877 hardcode_libdir_flag_spec='-L$libdir'
8878 hardcode_libdir_separator=
8879 fi
8880 ;;
8881 esac
8882 shared_flag='-shared'
8883 if test "$aix_use_runtimelinking" = yes; then
8884 shared_flag="$shared_flag "'${wl}-G'
8885 fi
8886 else
8887 # not using gcc
8888 if test "$host_cpu" = ia64; then
8889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8890 # chokes on -Wl,-G. The following line is correct:
8891 shared_flag='-G'
8892 else
8893 if test "$aix_use_runtimelinking" = yes; then
8894 shared_flag='${wl}-G'
8895 else
8896 shared_flag='${wl}-bM:SRE'
8897 fi
8898 fi
8899 fi
d9898ee8 8900
8d138742
CE
8901 export_dynamic_flag_spec='${wl}-bexpall'
8902 # It seems that -bexpall does not export symbols beginning with
8903 # underscore (_), so it is better to generate a list of symbols to export.
8904 always_export_symbols=yes
8905 if test "$aix_use_runtimelinking" = yes; then
8906 # Warning - without using the other runtime loading flags (-brtl),
8907 # -berok will link without error, but may produce a broken library.
8908 allow_undefined_flag='-berok'
8909 # Determine the default libpath from the value encoded in an
8910 # empty executable.
b0322a85
CE
8911 if test "${lt_cv_aix_libpath+set}" = set; then
8912 aix_libpath=$lt_cv_aix_libpath
8913else
8914 if ${lt_cv_aix_libpath_+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916else
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 8918/* end confdefs.h. */
d9898ee8 8919
8d138742
CE
8920int
8921main ()
8922{
d9898ee8 8923
8d138742
CE
8924 ;
8925 return 0;
8926}
8927_ACEOF
b0322a85 8928if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 8929
b0322a85
CE
8930 lt_aix_libpath_sed='
8931 /Import File Strings/,/^$/ {
8932 /^0/ {
8933 s/^0 *\([^ ]*\) *$/\1/
8934 p
8935 }
8936 }'
8937 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938 # Check for a 64-bit object if we didn't find anything.
8939 if test -z "$lt_cv_aix_libpath_"; then
8940 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941 fi
8942fi
8943rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 if test -z "$lt_cv_aix_libpath_"; then
8946 lt_cv_aix_libpath_="/usr/lib:/lib"
8947 fi
d9898ee8 8948
8d138742 8949fi
d9898ee8 8950
b0322a85
CE
8951 aix_libpath=$lt_cv_aix_libpath_
8952fi
d9898ee8 8953
8d138742 8954 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b0322a85 8955 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8d138742
CE
8956 else
8957 if test "$host_cpu" = ia64; then
8958 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8959 allow_undefined_flag="-z nodefs"
8960 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"
8961 else
8962 # Determine the default libpath from the value encoded in an
8963 # empty executable.
b0322a85
CE
8964 if test "${lt_cv_aix_libpath+set}" = set; then
8965 aix_libpath=$lt_cv_aix_libpath
8966else
8967 if ${lt_cv_aix_libpath_+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 8971/* end confdefs.h. */
d9898ee8 8972
8d138742
CE
8973int
8974main ()
8975{
d9898ee8 8976
8d138742
CE
8977 ;
8978 return 0;
8979}
8980_ACEOF
b0322a85 8981if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 8982
b0322a85
CE
8983 lt_aix_libpath_sed='
8984 /Import File Strings/,/^$/ {
8985 /^0/ {
8986 s/^0 *\([^ ]*\) *$/\1/
8987 p
8988 }
8989 }'
8990 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991 # Check for a 64-bit object if we didn't find anything.
8992 if test -z "$lt_cv_aix_libpath_"; then
8993 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8994 fi
8995fi
8996rm -f core conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 if test -z "$lt_cv_aix_libpath_"; then
8999 lt_cv_aix_libpath_="/usr/lib:/lib"
9000 fi
d9898ee8 9001
8d138742 9002fi
d9898ee8 9003
b0322a85
CE
9004 aix_libpath=$lt_cv_aix_libpath_
9005fi
d9898ee8 9006
8d138742
CE
9007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9008 # Warning - without using the other run time loading flags,
9009 # -berok will link without error, but may produce a broken library.
9010 no_undefined_flag=' ${wl}-bernotok'
9011 allow_undefined_flag=' ${wl}-berok'
b0322a85
CE
9012 if test "$with_gnu_ld" = yes; then
9013 # We only use this code for GNU lds that support --whole-archive.
9014 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9015 else
9016 # Exported symbols can be pulled into shared objects from archives
9017 whole_archive_flag_spec='$convenience'
9018 fi
8d138742
CE
9019 archive_cmds_need_lc=yes
9020 # This is similar to how AIX traditionally builds its shared libraries.
9021 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9022 fi
9023 fi
9024 ;;
d9898ee8 9025
8d138742
CE
9026 amigaos*)
9027 case $host_cpu in
9028 powerpc)
9029 # see comment about AmigaOS4 .so support
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds=''
9032 ;;
9033 m68k)
9034 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)'
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 hardcode_minus_L=yes
9037 ;;
9038 esac
9039 ;;
d9898ee8 9040
8d138742
CE
9041 bsdi[45]*)
9042 export_dynamic_flag_spec=-rdynamic
9043 ;;
d9898ee8 9044
8d138742
CE
9045 cygwin* | mingw* | pw32* | cegcc*)
9046 # When not using gcc, we currently assume that we are using
9047 # Microsoft Visual C++.
9048 # hardcode_libdir_flag_spec is actually meaningless, as there is
9049 # no search path for DLLs.
b0322a85
CE
9050 case $cc_basename in
9051 cl*)
9052 # Native MSVC
9053 hardcode_libdir_flag_spec=' '
9054 allow_undefined_flag=unsupported
9055 always_export_symbols=yes
9056 file_list_spec='@'
9057 # Tell ltmain to make .lib files, not .a files.
9058 libext=lib
9059 # Tell ltmain to make .dll files, not .so files.
9060 shrext_cmds=".dll"
9061 # FIXME: Setting linknames here is a bad hack.
9062 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9063 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9064 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9065 else
9066 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9067 fi~
9068 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9069 linknames='
9070 # The linker will not automatically build a static lib if we build a DLL.
9071 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9072 enable_shared_with_static_runtimes=yes
9073 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9075 # Don't use ranlib
9076 old_postinstall_cmds='chmod 644 $oldlib'
9077 postlink_cmds='lt_outputfile="@OUTPUT@"~
9078 lt_tool_outputfile="@TOOL_OUTPUT@"~
9079 case $lt_outputfile in
9080 *.exe|*.EXE) ;;
9081 *)
9082 lt_outputfile="$lt_outputfile.exe"
9083 lt_tool_outputfile="$lt_tool_outputfile.exe"
9084 ;;
9085 esac~
9086 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9087 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9088 $RM "$lt_outputfile.manifest";
9089 fi'
9090 ;;
9091 *)
9092 # Assume MSVC wrapper
9093 hardcode_libdir_flag_spec=' '
9094 allow_undefined_flag=unsupported
9095 # Tell ltmain to make .lib files, not .a files.
9096 libext=lib
9097 # Tell ltmain to make .dll files, not .so files.
9098 shrext_cmds=".dll"
9099 # FIXME: Setting linknames here is a bad hack.
9100 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9101 # The linker will automatically build a .lib file if we build a DLL.
9102 old_archive_from_new_cmds='true'
9103 # FIXME: Should let the user specify the lib program.
9104 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9105 enable_shared_with_static_runtimes=yes
9106 ;;
9107 esac
8d138742 9108 ;;
d9898ee8 9109
8d138742 9110 darwin* | rhapsody*)
d9898ee8 9111
d9898ee8 9112
8d138742
CE
9113 archive_cmds_need_lc=no
9114 hardcode_direct=no
9115 hardcode_automatic=yes
9116 hardcode_shlibpath_var=unsupported
b0322a85
CE
9117 if test "$lt_cv_ld_force_load" = "yes"; then
9118 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\"`'
9119
9120 else
9121 whole_archive_flag_spec=''
9122 fi
8d138742
CE
9123 link_all_deplibs=yes
9124 allow_undefined_flag="$_lt_dar_allow_undefined"
9125 case $cc_basename in
9126 ifort*) _lt_dar_can_shared=yes ;;
9127 *) _lt_dar_can_shared=$GCC ;;
d9898ee8 9128 esac
8d138742 9129 if test "$_lt_dar_can_shared" = "yes"; then
b0322a85 9130 output_verbose_link_cmd=func_echo_all
8d138742
CE
9131 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9132 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9133 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}"
9134 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 9135
8d138742
CE
9136 else
9137 ld_shlibs=no
d9898ee8 9138 fi
d9898ee8 9139
8d138742 9140 ;;
d9898ee8 9141
8d138742
CE
9142 dgux*)
9143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_shlibpath_var=no
9146 ;;
d9898ee8 9147
8d138742
CE
9148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9149 # support. Future versions do this automatically, but an explicit c++rt0.o
9150 # does not break anything, and helps significantly (at the cost of a little
9151 # extra space).
9152 freebsd2.2*)
9153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9154 hardcode_libdir_flag_spec='-R$libdir'
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9157 ;;
d9898ee8 9158
8d138742 9159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 9160 freebsd2.*)
8d138742
CE
9161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9162 hardcode_direct=yes
9163 hardcode_minus_L=yes
9164 hardcode_shlibpath_var=no
9165 ;;
dd184caf 9166
8d138742
CE
9167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9168 freebsd* | dragonfly*)
b0322a85 9169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9170 hardcode_libdir_flag_spec='-R$libdir'
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 ;;
d9898ee8 9174
8d138742
CE
9175 hpux9*)
9176 if test "$GCC" = yes; then
b0322a85 9177 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8d138742
CE
9178 else
9179 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9180 fi
9181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9182 hardcode_libdir_separator=:
9183 hardcode_direct=yes
d9898ee8 9184
8d138742
CE
9185 # hardcode_minus_L: Not really in the search PATH,
9186 # but as the default location of the library.
9187 hardcode_minus_L=yes
9188 export_dynamic_flag_spec='${wl}-E'
9189 ;;
d9898ee8 9190
8d138742 9191 hpux10*)
b0322a85
CE
9192 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9193 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9194 else
9195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 fi
9197 if test "$with_gnu_ld" = no; then
9198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8d138742
CE
9199 hardcode_libdir_separator=:
9200 hardcode_direct=yes
9201 hardcode_direct_absolute=yes
9202 export_dynamic_flag_spec='${wl}-E'
9203 # hardcode_minus_L: Not really in the search PATH,
9204 # but as the default location of the library.
9205 hardcode_minus_L=yes
9206 fi
9207 ;;
d9898ee8 9208
8d138742 9209 hpux11*)
b0322a85 9210 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8d138742
CE
9211 case $host_cpu in
9212 hppa*64*)
9213 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 ;;
9215 ia64*)
b0322a85 9216 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9217 ;;
9218 *)
b0322a85 9219 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9220 ;;
9221 esac
9222 else
9223 case $host_cpu in
9224 hppa*64*)
9225 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9226 ;;
9227 ia64*)
9228 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9229 ;;
9230 *)
b0322a85
CE
9231
9232 # Older versions of the 11.00 compiler do not understand -b yet
9233 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9235$as_echo_n "checking if $CC understands -b... " >&6; }
9236if ${lt_cv_prog_compiler__b+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238else
9239 lt_cv_prog_compiler__b=no
9240 save_LDFLAGS="$LDFLAGS"
9241 LDFLAGS="$LDFLAGS -b"
9242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9244 # The linker can only warn and ignore the option if not recognized
9245 # So say no if there are warnings
9246 if test -s conftest.err; then
9247 # Append any errors to the config.log.
9248 cat conftest.err 1>&5
9249 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251 if diff conftest.exp conftest.er2 >/dev/null; then
9252 lt_cv_prog_compiler__b=yes
9253 fi
9254 else
9255 lt_cv_prog_compiler__b=yes
9256 fi
9257 fi
9258 $RM -r conftest*
9259 LDFLAGS="$save_LDFLAGS"
9260
9261fi
9262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9263$as_echo "$lt_cv_prog_compiler__b" >&6; }
9264
9265if test x"$lt_cv_prog_compiler__b" = xyes; then
9266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9267else
9268 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269fi
9270
8d138742
CE
9271 ;;
9272 esac
9273 fi
9274 if test "$with_gnu_ld" = no; then
9275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9276 hardcode_libdir_separator=:
d9898ee8 9277
8d138742
CE
9278 case $host_cpu in
9279 hppa*64*|ia64*)
9280 hardcode_direct=no
9281 hardcode_shlibpath_var=no
9282 ;;
9283 *)
9284 hardcode_direct=yes
9285 hardcode_direct_absolute=yes
9286 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9287
8d138742
CE
9288 # hardcode_minus_L: Not really in the search PATH,
9289 # but as the default location of the library.
9290 hardcode_minus_L=yes
9291 ;;
9292 esac
9293 fi
9294 ;;
d9898ee8 9295
8d138742
CE
9296 irix5* | irix6* | nonstopux*)
9297 if test "$GCC" = yes; then
b0322a85 9298 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
9299 # Try to use the -exported_symbol ld option, if it does not
9300 # work, assume that -exports_file does not work either and
9301 # implicitly export all symbols.
b0322a85
CE
9302 # This should be the same for all languages, so no per-tag cache variable.
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9304$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9305if ${lt_cv_irix_exported_symbol+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307else
9308 save_LDFLAGS="$LDFLAGS"
9309 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311/* end confdefs.h. */
9312int foo (void) { return 0; }
8d138742 9313_ACEOF
b0322a85
CE
9314if ac_fn_c_try_link "$LINENO"; then :
9315 lt_cv_irix_exported_symbol=yes
8d138742 9316else
b0322a85 9317 lt_cv_irix_exported_symbol=no
8d138742 9318fi
b0322a85
CE
9319rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LDFLAGS="$save_LDFLAGS"
9322fi
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9324$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9325 if test "$lt_cv_irix_exported_symbol" = yes; then
9326 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'
9327 fi
8d138742 9328 else
b0322a85
CE
9329 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'
9330 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
9331 fi
9332 archive_cmds_need_lc='no'
9333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9334 hardcode_libdir_separator=:
9335 inherit_rpath=yes
9336 link_all_deplibs=yes
9337 ;;
d9898ee8 9338
8d138742
CE
9339 netbsd*)
9340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9342 else
9343 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9344 fi
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_direct=yes
9347 hardcode_shlibpath_var=no
9348 ;;
d9898ee8 9349
8d138742
CE
9350 newsos6)
9351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_direct=yes
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 hardcode_libdir_separator=:
9355 hardcode_shlibpath_var=no
9356 ;;
d9898ee8 9357
8d138742
CE
9358 *nto* | *qnx*)
9359 ;;
d9898ee8 9360
8d138742
CE
9361 openbsd*)
9362 if test -f /usr/libexec/ld.so; then
9363 hardcode_direct=yes
9364 hardcode_shlibpath_var=no
9365 hardcode_direct_absolute=yes
9366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9368 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9369 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9370 export_dynamic_flag_spec='${wl}-E'
9371 else
9372 case $host_os in
9373 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_libdir_flag_spec='-R$libdir'
9376 ;;
9377 *)
9378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9380 ;;
9381 esac
9382 fi
9383 else
9384 ld_shlibs=no
9385 fi
9386 ;;
d9898ee8 9387
8d138742
CE
9388 os2*)
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_minus_L=yes
9391 allow_undefined_flag=unsupported
b0322a85 9392 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8d138742
CE
9393 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9394 ;;
d9898ee8 9395
8d138742
CE
9396 osf3*)
9397 if test "$GCC" = yes; then
9398 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 9399 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
9400 else
9401 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 9402 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
9403 fi
9404 archive_cmds_need_lc='no'
9405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406 hardcode_libdir_separator=:
9407 ;;
d9898ee8 9408
8d138742
CE
9409 osf4* | osf5*) # as osf3* with the addition of -msym flag
9410 if test "$GCC" = yes; then
9411 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 9412 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'
8d138742
CE
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 else
9415 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 9416 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 9417 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~
b0322a85 9418 $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 9419
8d138742
CE
9420 # Both c and cxx compiler support -rpath directly
9421 hardcode_libdir_flag_spec='-rpath $libdir'
9422 fi
9423 archive_cmds_need_lc='no'
9424 hardcode_libdir_separator=:
9425 ;;
d9898ee8 9426
8d138742
CE
9427 solaris*)
9428 no_undefined_flag=' -z defs'
9429 if test "$GCC" = yes; then
9430 wlarc='${wl}'
b0322a85 9431 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 9432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b0322a85 9433 $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
9434 else
9435 case `$CC -V 2>&1` in
9436 *"Compilers 5.0"*)
9437 wlarc=''
9438 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9441 ;;
9442 *)
9443 wlarc='${wl}'
9444 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9446 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9447 ;;
9448 esac
9449 fi
9450 hardcode_libdir_flag_spec='-R$libdir'
9451 hardcode_shlibpath_var=no
9452 case $host_os in
9453 solaris2.[0-5] | solaris2.[0-5].*) ;;
9454 *)
9455 # The compiler driver will combine and reorder linker options,
9456 # but understands `-z linker_flag'. GCC discards it without `$wl',
9457 # but is careful enough not to reorder.
9458 # Supported since Solaris 2.6 (maybe 2.5.1?)
9459 if test "$GCC" = yes; then
9460 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9461 else
9462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9463 fi
9464 ;;
9465 esac
9466 link_all_deplibs=yes
9467 ;;
d9898ee8 9468
8d138742
CE
9469 sunos4*)
9470 if test "x$host_vendor" = xsequent; then
9471 # Use $CC to link under sequent, because it throws in some extra .o
9472 # files that make .init and .fini sections work.
9473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9474 else
9475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9476 fi
9477 hardcode_libdir_flag_spec='-L$libdir'
9478 hardcode_direct=yes
9479 hardcode_minus_L=yes
9480 hardcode_shlibpath_var=no
9481 ;;
dd184caf 9482
8d138742
CE
9483 sysv4)
9484 case $host_vendor in
9485 sni)
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_direct=yes # is this really true???
d9898ee8 9488 ;;
8d138742
CE
9489 siemens)
9490 ## LD is ld it makes a PLAMLIB
9491 ## CC just makes a GrossModule.
9492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9493 reload_cmds='$CC -r -o $output$reload_objs'
9494 hardcode_direct=no
9495 ;;
9496 motorola)
9497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 9499 ;;
9500 esac
8d138742
CE
9501 runpath_var='LD_RUN_PATH'
9502 hardcode_shlibpath_var=no
9503 ;;
d9898ee8 9504
8d138742
CE
9505 sysv4.3*)
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_shlibpath_var=no
9508 export_dynamic_flag_spec='-Bexport'
9509 ;;
d9898ee8 9510
8d138742
CE
9511 sysv4*MP*)
9512 if test -d /usr/nec; then
9513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_shlibpath_var=no
9515 runpath_var=LD_RUN_PATH
9516 hardcode_runpath_var=yes
9517 ld_shlibs=yes
9518 fi
9519 ;;
d9898ee8 9520
8d138742
CE
9521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9522 no_undefined_flag='${wl}-z,text'
9523 archive_cmds_need_lc=no
9524 hardcode_shlibpath_var=no
9525 runpath_var='LD_RUN_PATH'
d9898ee8 9526
8d138742
CE
9527 if test "$GCC" = yes; then
9528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 else
9531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 fi
9534 ;;
d9898ee8 9535
8d138742
CE
9536 sysv5* | sco3.2v5* | sco5v6*)
9537 # Note: We can NOT use -z defs as we might desire, because we do not
9538 # link with -lc, and that would cause any symbols used from libc to
9539 # always be unresolved, which means just about no library would
9540 # ever link correctly. If we're not using GNU ld we use -z text
9541 # though, which does catch some bad symbols but isn't as heavy-handed
9542 # as -z defs.
9543 no_undefined_flag='${wl}-z,text'
9544 allow_undefined_flag='${wl}-z,nodefs'
9545 archive_cmds_need_lc=no
9546 hardcode_shlibpath_var=no
9547 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9548 hardcode_libdir_separator=':'
9549 link_all_deplibs=yes
9550 export_dynamic_flag_spec='${wl}-Bexport'
9551 runpath_var='LD_RUN_PATH'
d9898ee8 9552
8d138742
CE
9553 if test "$GCC" = yes; then
9554 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9556 else
9557 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559 fi
9560 ;;
d9898ee8 9561
8d138742
CE
9562 uts4*)
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-L$libdir'
9565 hardcode_shlibpath_var=no
9566 ;;
9567
9568 *)
9569 ld_shlibs=no
9570 ;;
9571 esac
9572
9573 if test x$host_vendor = xsni; then
9574 case $host in
9575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9576 export_dynamic_flag_spec='${wl}-Blargedynsym'
9577 ;;
9578 esac
d9898ee8 9579 fi
d9898ee8 9580 fi
9581
b0322a85 9582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742
CE
9583$as_echo "$ld_shlibs" >&6; }
9584test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 9585
8d138742 9586with_gnu_ld=$with_gnu_ld
d9898ee8 9587
d9898ee8 9588
d9898ee8 9589
d9898ee8 9590
d9898ee8 9591
d9898ee8 9592
d9898ee8 9593
d9898ee8 9594
dd184caf 9595
dd184caf 9596
d9898ee8 9597
d9898ee8 9598
d9898ee8 9599
d9898ee8 9600
d9898ee8 9601
8d138742
CE
9602#
9603# Do we need to explicitly link libc?
9604#
9605case "x$archive_cmds_need_lc" in
9606x|xyes)
9607 # Assume -lc should be added
9608 archive_cmds_need_lc=yes
d9898ee8 9609
8d138742
CE
9610 if test "$enable_shared" = yes && test "$GCC" = yes; then
9611 case $archive_cmds in
9612 *'~'*)
9613 # FIXME: we may have to deal with multi-command sequences.
9614 ;;
9615 '$CC '*)
9616 # Test whether the compiler implicitly links with -lc since on some
9617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9618 # to ld, don't add -lc before -lgcc.
b0322a85 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 9620$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
9621if ${lt_cv_archive_cmds_need_lc+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623else
9624 $RM conftest*
9625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9626
b0322a85 9627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
9628 (eval $ac_compile) 2>&5
9629 ac_status=$?
b0322a85
CE
9630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631 test $ac_status = 0; } 2>conftest.err; then
9632 soname=conftest
9633 lib=conftest
9634 libobjs=conftest.$ac_objext
9635 deplibs=
9636 wl=$lt_prog_compiler_wl
9637 pic_flag=$lt_prog_compiler_pic
9638 compiler_flags=-v
9639 linker_flags=-v
9640 verstring=
9641 output_objdir=.
9642 libname=conftest
9643 lt_save_allow_undefined_flag=$allow_undefined_flag
9644 allow_undefined_flag=
9645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
9646 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9647 ac_status=$?
b0322a85
CE
9648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9649 test $ac_status = 0; }
9650 then
9651 lt_cv_archive_cmds_need_lc=no
9652 else
9653 lt_cv_archive_cmds_need_lc=yes
9654 fi
9655 allow_undefined_flag=$lt_save_allow_undefined_flag
9656 else
9657 cat conftest.err 1>&5
9658 fi
9659 $RM conftest*
9660
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9663$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9664 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d9898ee8 9665 ;;
9666 esac
8d138742
CE
9667 fi
9668 ;;
9669esac
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
d9898ee8 9745
d9898ee8 9746
d9898ee8 9747
d9898ee8 9748
d9898ee8 9749
d9898ee8 9750
d9898ee8 9751
d9898ee8 9752
d9898ee8 9753
d9898ee8 9754
d9898ee8 9755
d9898ee8 9756
d9898ee8 9757
d9898ee8 9758
d9898ee8 9759
d9898ee8 9760
d9898ee8 9761
d9898ee8 9762
d9898ee8 9763
9764
d9898ee8 9765
d9898ee8 9766
d9898ee8 9767
d9898ee8 9768
d9898ee8 9769
d9898ee8 9770
d9898ee8 9771
d9898ee8 9772
d9898ee8 9773
ac40fd9e 9774
ac40fd9e 9775
d9898ee8 9776
9777
d9898ee8 9778
d9898ee8 9779
d9898ee8 9780
d9898ee8 9781
d9898ee8 9782
d9898ee8 9783
d9898ee8 9784
d9898ee8 9785
d9898ee8 9786
d9898ee8 9787
d9898ee8 9788
d9898ee8 9789
d9898ee8 9790
d9898ee8 9791
9792
d9898ee8 9793
d9898ee8 9794
d9898ee8 9795
9796
d9898ee8 9797
d9898ee8 9798
d9898ee8 9799
d9898ee8 9800
d9898ee8 9801
d9898ee8 9802
d9898ee8 9803
8d138742
CE
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
b0322a85 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
9823$as_echo_n "checking dynamic linker characteristics... " >&6; }
9824
9825if test "$GCC" = yes; then
9826 case $host_os in
9827 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9828 *) lt_awk_arg="/^libraries:/" ;;
9829 esac
b0322a85
CE
9830 case $host_os in
9831 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9832 *) lt_sed_strip_eq="s,=/,/,g" ;;
9833 esac
9834 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9835 case $lt_search_path_spec in
9836 *\;*)
8d138742
CE
9837 # if the path contains ";" then we assume it to be the separator
9838 # otherwise default to the standard path separator (i.e. ":") - it is
9839 # assumed that no part of a normal pathname contains ";" but that should
9840 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
9841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9842 ;;
9843 *)
9844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9845 ;;
9846 esac
8d138742
CE
9847 # Ok, now we have the path, separated by spaces, we can step through it
9848 # and add multilib dir if necessary.
9849 lt_tmp_lt_search_path_spec=
9850 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9851 for lt_sys_path in $lt_search_path_spec; do
9852 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9854 else
9855 test -d "$lt_sys_path" && \
9856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9857 fi
9858 done
b0322a85 9859 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8d138742
CE
9860BEGIN {RS=" "; FS="/|\n";} {
9861 lt_foo="";
9862 lt_count=0;
9863 for (lt_i = NF; lt_i > 0; lt_i--) {
9864 if ($lt_i != "" && $lt_i != ".") {
9865 if ($lt_i == "..") {
9866 lt_count++;
9867 } else {
9868 if (lt_count == 0) {
9869 lt_foo="/" $lt_i lt_foo;
9870 } else {
9871 lt_count--;
9872 }
9873 }
9874 }
9875 }
9876 if (lt_foo != "") { lt_freq[lt_foo]++; }
9877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9878}'`
b0322a85
CE
9879 # AWK program above erroneously prepends '/' to C:/dos/paths
9880 # for these hosts.
9881 case $host_os in
9882 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9883 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9884 esac
9885 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
9886else
9887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9888fi
d9898ee8 9889library_names_spec=
9890libname_spec='lib$name'
9891soname_spec=
9892shrext_cmds=".so"
9893postinstall_cmds=
9894postuninstall_cmds=
9895finish_cmds=
9896finish_eval=
9897shlibpath_var=
9898shlibpath_overrides_runpath=unknown
9899version_type=none
9900dynamic_linker="$host_os ld.so"
9901sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 9902need_lib_prefix=unknown
9903hardcode_into_libs=no
9904
9905# when you set need_version to no, make sure it does not cause -set_version
9906# flags to be left without arguments
9907need_version=unknown
9908
9909case $host_os in
9910aix3*)
b0322a85 9911 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 9912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9913 shlibpath_var=LIBPATH
9914
9915 # AIX 3 has no versioning support, so we append a major version to the name.
9916 soname_spec='${libname}${release}${shared_ext}$major'
9917 ;;
9918
8d138742 9919aix[4-9]*)
b0322a85 9920 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 9921 need_lib_prefix=no
9922 need_version=no
9923 hardcode_into_libs=yes
9924 if test "$host_cpu" = ia64; then
9925 # AIX 5 supports IA64
9926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 else
9929 # With GCC up to 2.95.x, collect2 would create an import file
9930 # for dependence libraries. The import file would start with
9931 # the line `#! .'. This would cause the generated library to
9932 # depend on `.', always an invalid library. This was fixed in
9933 # development snapshots of GCC prior to 3.0.
9934 case $host_os in
9935 aix4 | aix4.[01] | aix4.[01].*)
9936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9937 echo ' yes '
8d138742 9938 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 9939 :
9940 else
9941 can_build_shared=no
9942 fi
9943 ;;
9944 esac
9945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9946 # soname into executable. Probably we can add versioning support to
9947 # collect2, so additional links can be useful in future.
9948 if test "$aix_use_runtimelinking" = yes; then
9949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9950 # instead of lib<name>.a to let people know that these are not
9951 # typical AIX shared libraries.
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 else
9954 # We preserve .a as extension for shared libraries through AIX4.2
9955 # and later when we are not doing run time linking.
9956 library_names_spec='${libname}${release}.a $libname.a'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 fi
9959 shlibpath_var=LIBPATH
9960 fi
9961 ;;
9962
9963amigaos*)
8d138742
CE
9964 case $host_cpu in
9965 powerpc)
9966 # Since July 2007 AmigaOS4 officially supports .so libraries.
9967 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 ;;
9970 m68k)
9971 library_names_spec='$libname.ixlibrary $libname.a'
9972 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 9973 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8d138742
CE
9974 ;;
9975 esac
d9898ee8 9976 ;;
9977
9978beos*)
9979 library_names_spec='${libname}${shared_ext}'
9980 dynamic_linker="$host_os ld.so"
9981 shlibpath_var=LIBRARY_PATH
9982 ;;
9983
9984bsdi[45]*)
b0322a85 9985 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 9986 need_version=no
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9993 # the default ld.so.conf also contains /usr/contrib/lib and
9994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9995 # libtool to hard-code these into programs
9996 ;;
9997
8d138742 9998cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9999 version_type=windows
10000 shrext_cmds=".dll"
10001 need_version=no
10002 need_lib_prefix=no
10003
b0322a85
CE
10004 case $GCC,$cc_basename in
10005 yes,*)
10006 # gcc
d9898ee8 10007 library_names_spec='$libname.dll.a'
10008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10009 postinstall_cmds='base_file=`basename \${file}`~
8d138742 10010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 10011 dldir=$destdir/`dirname \$dlpath`~
10012 test -d \$dldir || mkdir -p \$dldir~
10013 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10014 chmod a+x \$dldir/$dlname~
10015 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10016 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10017 fi'
d9898ee8 10018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10019 dlpath=$dir/\$dldll~
8d138742 10020 $RM \$dlpath'
d9898ee8 10021 shlibpath_overrides_runpath=yes
10022
10023 case $host_os in
10024 cygwin*)
10025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b0322a85
CE
10027
10028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 10029 ;;
8d138742 10030 mingw* | cegcc*)
d9898ee8 10031 # MinGW DLLs use traditional 'lib' prefix
10032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9898ee8 10033 ;;
10034 pw32*)
10035 # pw32 DLLs use 'pw' prefix rather than 'lib'
10036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037 ;;
10038 esac
b0322a85
CE
10039 dynamic_linker='Win32 ld.exe'
10040 ;;
10041
10042 *,cl*)
10043 # Native MSVC
10044 libname_spec='$name'
10045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10046 library_names_spec='${libname}.dll.lib'
10047
10048 case $build_os in
10049 mingw*)
10050 sys_lib_search_path_spec=
10051 lt_save_ifs=$IFS
10052 IFS=';'
10053 for lt_path in $LIB
10054 do
10055 IFS=$lt_save_ifs
10056 # Let DOS variable expansion print the short 8.3 style file name.
10057 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10058 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10059 done
10060 IFS=$lt_save_ifs
10061 # Convert to MSYS style.
10062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10063 ;;
10064 cygwin*)
10065 # Convert to unix form, then to dos form, then back to unix form
10066 # but this time dos style (no spaces!) so that the unix form looks
10067 # like /cygdrive/c/PROGRA~1:/cygdr...
10068 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10069 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10070 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10071 ;;
10072 *)
10073 sys_lib_search_path_spec="$LIB"
10074 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10075 # It is most probably a Windows format PATH.
10076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10077 else
10078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10079 fi
10080 # FIXME: find the short name or the path components, as spaces are
10081 # common. (e.g. "Program Files" -> "PROGRA~1")
10082 ;;
10083 esac
10084
10085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10086 postinstall_cmds='base_file=`basename \${file}`~
10087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10088 dldir=$destdir/`dirname \$dlpath`~
10089 test -d \$dldir || mkdir -p \$dldir~
10090 $install_prog $dir/$dlname \$dldir/$dlname'
10091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10092 dlpath=$dir/\$dldll~
10093 $RM \$dlpath'
10094 shlibpath_overrides_runpath=yes
10095 dynamic_linker='Win32 link.exe'
d9898ee8 10096 ;;
10097
10098 *)
b0322a85 10099 # Assume MSVC wrapper
d9898ee8 10100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 10101 dynamic_linker='Win32 ld.exe'
d9898ee8 10102 ;;
10103 esac
d9898ee8 10104 # FIXME: first we should search . and the directory the executable is in
10105 shlibpath_var=PATH
10106 ;;
10107
10108darwin* | rhapsody*)
10109 dynamic_linker="$host_os dyld"
10110 version_type=darwin
10111 need_lib_prefix=no
10112 need_version=no
8d138742 10113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 10114 soname_spec='${libname}${release}${major}$shared_ext'
10115 shlibpath_overrides_runpath=yes
10116 shlibpath_var=DYLD_LIBRARY_PATH
10117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10118
8d138742 10119 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10121 ;;
10122
10123dgux*)
b0322a85 10124 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 ;;
10131
d9898ee8 10132freebsd* | dragonfly*)
10133 # DragonFly does not have aout. When/if they implement a new
10134 # versioning mechanism, adjust this.
10135 if test -x /usr/bin/objformat; then
10136 objformat=`/usr/bin/objformat`
10137 else
10138 case $host_os in
b0322a85 10139 freebsd[23].*) objformat=aout ;;
d9898ee8 10140 *) objformat=elf ;;
10141 esac
10142 fi
10143 version_type=freebsd-$objformat
10144 case $version_type in
10145 freebsd-elf*)
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10147 need_version=no
10148 need_lib_prefix=no
10149 ;;
10150 freebsd-*)
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10152 need_version=yes
10153 ;;
10154 esac
10155 shlibpath_var=LD_LIBRARY_PATH
10156 case $host_os in
b0322a85 10157 freebsd2.*)
d9898ee8 10158 shlibpath_overrides_runpath=yes
10159 ;;
10160 freebsd3.[01]* | freebsdelf3.[01]*)
10161 shlibpath_overrides_runpath=yes
10162 hardcode_into_libs=yes
10163 ;;
10164 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10165 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10166 shlibpath_overrides_runpath=no
10167 hardcode_into_libs=yes
10168 ;;
ac40fd9e 10169 *) # from 4.6 on, and DragonFly
d9898ee8 10170 shlibpath_overrides_runpath=yes
10171 hardcode_into_libs=yes
10172 ;;
10173 esac
10174 ;;
10175
10176gnu*)
b0322a85 10177 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10185 ;;
10186
10187haiku*)
10188 version_type=linux # correct to gnu/linux during the next big refactor
10189 need_lib_prefix=no
10190 need_version=no
10191 dynamic_linker="$host_os runtime_loader"
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 shlibpath_var=LIBRARY_PATH
10195 shlibpath_overrides_runpath=yes
10196 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 10197 hardcode_into_libs=yes
10198 ;;
10199
10200hpux9* | hpux10* | hpux11*)
10201 # Give a soname corresponding to the major version so that dld.sl refuses to
10202 # link against other versions.
10203 version_type=sunos
10204 need_lib_prefix=no
10205 need_version=no
10206 case $host_cpu in
10207 ia64*)
10208 shrext_cmds='.so'
10209 hardcode_into_libs=yes
10210 dynamic_linker="$host_os dld.so"
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 if test "X$HPUX_IA64_MODE" = X32; then
10216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10217 else
10218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10219 fi
10220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221 ;;
8d138742
CE
10222 hppa*64*)
10223 shrext_cmds='.sl'
10224 hardcode_into_libs=yes
10225 dynamic_linker="$host_os dld.sl"
10226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10232 ;;
10233 *)
d9898ee8 10234 shrext_cmds='.sl'
10235 dynamic_linker="$host_os dld.sl"
10236 shlibpath_var=SHLIB_PATH
10237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 ;;
10241 esac
b0322a85 10242 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 10243 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
10244 # or fails outright, so override atomically:
10245 install_override_mode=555
d9898ee8 10246 ;;
10247
ac40fd9e 10248interix[3-9]*)
b0322a85 10249 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10250 need_lib_prefix=no
10251 need_version=no
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 shlibpath_overrides_runpath=no
10257 hardcode_into_libs=yes
10258 ;;
10259
10260irix5* | irix6* | nonstopux*)
10261 case $host_os in
10262 nonstopux*) version_type=nonstopux ;;
10263 *)
10264 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 10265 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10266 else
10267 version_type=irix
10268 fi ;;
10269 esac
10270 need_lib_prefix=no
10271 need_version=no
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10274 case $host_os in
10275 irix5* | nonstopux*)
10276 libsuff= shlibsuff=
10277 ;;
10278 *)
10279 case $LD in # libtool.m4 will add one of these switches to LD
10280 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10281 libsuff= shlibsuff= libmagic=32-bit;;
10282 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10283 libsuff=32 shlibsuff=N32 libmagic=N32;;
10284 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10285 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10286 *) libsuff= shlibsuff= libmagic=never-match;;
10287 esac
10288 ;;
10289 esac
10290 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10291 shlibpath_overrides_runpath=no
10292 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10293 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10294 hardcode_into_libs=yes
10295 ;;
10296
10297# No shared lib support for Linux oldld, aout, or coff.
10298linux*oldld* | linux*aout* | linux*coff*)
10299 dynamic_linker=no
10300 ;;
10301
b0322a85
CE
10302# This must be glibc/ELF.
10303linux* | k*bsd*-gnu | kopensolaris*-gnu)
10304 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10305 need_lib_prefix=no
10306 need_version=no
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=no
b0322a85 10312
8d138742 10313 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
10314 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10315 $as_echo_n "(cached) " >&6
10316else
10317 lt_cv_shlibpath_overrides_runpath=no
10318 save_LDFLAGS=$LDFLAGS
10319 save_libdir=$libdir
10320 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10321 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10323/* end confdefs.h. */
d9898ee8 10324
8d138742
CE
10325int
10326main ()
10327{
d9898ee8 10328
8d138742
CE
10329 ;
10330 return 0;
10331}
10332_ACEOF
b0322a85
CE
10333if ac_fn_c_try_link "$LINENO"; then :
10334 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10335 lt_cv_shlibpath_overrides_runpath=yes
8d138742 10336fi
b0322a85
CE
10337fi
10338rm -f core conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LDFLAGS=$save_LDFLAGS
10341 libdir=$save_libdir
8d138742
CE
10342
10343fi
10344
b0322a85 10345 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742
CE
10346
10347 # This implies no fast_install, which is unacceptable.
10348 # Some rework will be needed to allow for fast_install
10349 # before this can be enabled.
10350 hardcode_into_libs=yes
10351
10352 # Add ABI-specific directories to the system library path.
10353 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10354
10355 # Append ld.so.conf contents to the search path
10356 if test -f /etc/ld.so.conf; then
b0322a85 10357 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' ' '`
8d138742 10358 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 10359
8d138742
CE
10360 fi
10361
10362 # We used to test for /lib/ld.so.1 and disable shared libraries on
10363 # powerpc, because MkLinux only supported shared libraries with the
10364 # GNU dynamic linker. Since this was broken with cross compilers,
10365 # most powerpc-linux boxes support dynamic linking these days and
10366 # people can always --disable-shared, the test was removed, and we
10367 # assume the GNU/Linux dynamic linker is in use.
10368 dynamic_linker='GNU/Linux ld.so'
10369 ;;
10370
10371netbsd*)
10372 version_type=sunos
10373 need_lib_prefix=no
10374 need_version=no
10375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10378 dynamic_linker='NetBSD (a.out) ld.so'
10379 else
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 dynamic_linker='NetBSD ld.elf_so'
10383 fi
d9898ee8 10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=yes
10386 hardcode_into_libs=yes
10387 ;;
10388
10389newsos6)
b0322a85 10390 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=yes
10394 ;;
10395
8d138742
CE
10396*nto* | *qnx*)
10397 version_type=qnx
d9898ee8 10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10405 dynamic_linker='ldqnx.so'
d9898ee8 10406 ;;
10407
10408openbsd*)
10409 version_type=sunos
10410 sys_lib_dlsearch_path_spec="/usr/lib"
10411 need_lib_prefix=no
10412 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10413 case $host_os in
8d138742
CE
10414 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10415 *) need_version=no ;;
d9898ee8 10416 esac
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10419 shlibpath_var=LD_LIBRARY_PATH
8d138742 10420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 10421 case $host_os in
10422 openbsd2.[89] | openbsd2.[89].*)
10423 shlibpath_overrides_runpath=no
10424 ;;
10425 *)
10426 shlibpath_overrides_runpath=yes
10427 ;;
10428 esac
10429 else
10430 shlibpath_overrides_runpath=yes
10431 fi
10432 ;;
10433
10434os2*)
10435 libname_spec='$name'
10436 shrext_cmds=".dll"
10437 need_lib_prefix=no
10438 library_names_spec='$libname${shared_ext} $libname.a'
10439 dynamic_linker='OS/2 ld.exe'
10440 shlibpath_var=LIBPATH
10441 ;;
10442
10443osf3* | osf4* | osf5*)
10444 version_type=osf
10445 need_lib_prefix=no
10446 need_version=no
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10451 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10452 ;;
10453
ac40fd9e 10454rdos*)
10455 dynamic_linker=no
10456 ;;
10457
d9898ee8 10458solaris*)
b0322a85 10459 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=yes
10466 hardcode_into_libs=yes
10467 # ldd complains unless libraries are executable
10468 postinstall_cmds='chmod +x $lib'
10469 ;;
10470
10471sunos4*)
10472 version_type=sunos
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10474 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 shlibpath_overrides_runpath=yes
10477 if test "$with_gnu_ld" = yes; then
10478 need_lib_prefix=no
10479 fi
10480 need_version=yes
10481 ;;
10482
10483sysv4 | sysv4.3*)
b0322a85 10484 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 case $host_vendor in
10489 sni)
10490 shlibpath_overrides_runpath=no
10491 need_lib_prefix=no
d9898ee8 10492 runpath_var=LD_RUN_PATH
10493 ;;
10494 siemens)
10495 need_lib_prefix=no
10496 ;;
10497 motorola)
10498 need_lib_prefix=no
10499 need_version=no
10500 shlibpath_overrides_runpath=no
10501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10502 ;;
10503 esac
10504 ;;
10505
10506sysv4*MP*)
10507 if test -d /usr/nec ;then
b0322a85 10508 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10510 soname_spec='$libname${shared_ext}.$major'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 fi
10513 ;;
10514
10515sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10516 version_type=freebsd-elf
10517 need_lib_prefix=no
10518 need_version=no
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 shlibpath_var=LD_LIBRARY_PATH
8d138742 10522 shlibpath_overrides_runpath=yes
d9898ee8 10523 hardcode_into_libs=yes
10524 if test "$with_gnu_ld" = yes; then
10525 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10526 else
10527 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10528 case $host_os in
10529 sco3.2v5*)
10530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10531 ;;
10532 esac
10533 fi
10534 sys_lib_dlsearch_path_spec='/usr/lib'
10535 ;;
10536
8d138742
CE
10537tpf*)
10538 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 10539 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10540 need_lib_prefix=no
10541 need_version=no
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 shlibpath_overrides_runpath=no
10545 hardcode_into_libs=yes
10546 ;;
10547
d9898ee8 10548uts4*)
b0322a85 10549 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 ;;
10554
10555*)
10556 dynamic_linker=no
10557 ;;
10558esac
b0322a85 10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 10560$as_echo "$dynamic_linker" >&6; }
d9898ee8 10561test "$dynamic_linker" = no && can_build_shared=no
10562
10563variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10564if test "$GCC" = yes; then
10565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10566fi
10567
8d138742
CE
10568if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10569 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10570fi
8d138742
CE
10571if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10572 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10573fi
10574
10575
d9898ee8 10576
d9898ee8 10577
d9898ee8 10578
d9898ee8 10579
d9898ee8 10580
d9898ee8 10581
d9898ee8 10582
d9898ee8 10583
d9898ee8 10584
d9898ee8 10585
d9898ee8 10586
d9898ee8 10587
d9898ee8 10588
d9898ee8 10589
d9898ee8 10590
d9898ee8 10591
d9898ee8 10592
d9898ee8 10593
d9898ee8 10594
d9898ee8 10595
d9898ee8 10596
d9898ee8 10597
d9898ee8 10598
d9898ee8 10599
d9898ee8 10600
d9898ee8 10601
d9898ee8 10602
d9898ee8 10603
d9898ee8 10604
d9898ee8 10605
d9898ee8 10606
d9898ee8 10607
d9898ee8 10608
d9898ee8 10609
d9898ee8 10610
d9898ee8 10611
d9898ee8 10612
d9898ee8 10613
d9898ee8 10614
d9898ee8 10615
d9898ee8 10616
d9898ee8 10617
d9898ee8 10618
d9898ee8 10619
d9898ee8 10620
d9898ee8 10621
d9898ee8 10622
d9898ee8 10623
d9898ee8 10624
d9898ee8 10625
d9898ee8 10626
d9898ee8 10627
d9898ee8 10628
d9898ee8 10629
d9898ee8 10630
d9898ee8 10631
d9898ee8 10632
d9898ee8 10633
d9898ee8 10634
d9898ee8 10635
d9898ee8 10636
d9898ee8 10637
d9898ee8 10638
d9898ee8 10639
d9898ee8 10640
d9898ee8 10641
d9898ee8 10642
d9898ee8 10643
d9898ee8 10644
d9898ee8 10645
d9898ee8 10646
d9898ee8 10647
d9898ee8 10648
d9898ee8 10649
d9898ee8 10650
d9898ee8 10651
d9898ee8 10652
d9898ee8 10653
d9898ee8 10654
d9898ee8 10655
d9898ee8 10656
d9898ee8 10657
d9898ee8 10658
d9898ee8 10659
d9898ee8 10660
b0322a85
CE
10661
10662
10663
10664
10665
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
10667$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10668hardcode_action=
10669if test -n "$hardcode_libdir_flag_spec" ||
10670 test -n "$runpath_var" ||
10671 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 10672
8d138742
CE
10673 # We can hardcode non-existent directories.
10674 if test "$hardcode_direct" != no &&
10675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10676 # have to relink, otherwise we might link with an installed library
10677 # when we should be linking with a yet-to-be-installed one
10678 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10679 test "$hardcode_minus_L" != no; then
10680 # Linking always hardcodes the temporary library directory.
10681 hardcode_action=relink
10682 else
10683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10684 hardcode_action=immediate
10685 fi
10686else
10687 # We cannot hardcode anything, or else we can only hardcode existing
10688 # directories.
10689 hardcode_action=unsupported
10690fi
b0322a85 10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742 10692$as_echo "$hardcode_action" >&6; }
d9898ee8 10693
8d138742
CE
10694if test "$hardcode_action" = relink ||
10695 test "$inherit_rpath" = yes; then
10696 # Fast installation is not supported
10697 enable_fast_install=no
10698elif test "$shlibpath_overrides_runpath" = yes ||
10699 test "$enable_shared" = no; then
10700 # Fast installation is not necessary
10701 enable_fast_install=needless
10702fi
d9898ee8 10703
d9898ee8 10704
d9898ee8 10705
d9898ee8 10706
d9898ee8 10707
d9898ee8 10708
8d138742
CE
10709 if test "x$enable_dlopen" != xyes; then
10710 enable_dlopen=unknown
10711 enable_dlopen_self=unknown
10712 enable_dlopen_self_static=unknown
10713else
10714 lt_cv_dlopen=no
10715 lt_cv_dlopen_libs=
d9898ee8 10716
8d138742
CE
10717 case $host_os in
10718 beos*)
10719 lt_cv_dlopen="load_add_on"
10720 lt_cv_dlopen_libs=
10721 lt_cv_dlopen_self=yes
10722 ;;
d9898ee8 10723
8d138742
CE
10724 mingw* | pw32* | cegcc*)
10725 lt_cv_dlopen="LoadLibrary"
10726 lt_cv_dlopen_libs=
10727 ;;
d9898ee8 10728
8d138742
CE
10729 cygwin*)
10730 lt_cv_dlopen="dlopen"
10731 lt_cv_dlopen_libs=
10732 ;;
d9898ee8 10733
8d138742
CE
10734 darwin*)
10735 # if libdl is installed we need to link against it
b0322a85 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 10737$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 10738if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
10739 $as_echo_n "(cached) " >&6
10740else
10741 ac_check_lib_save_LIBS=$LIBS
10742LIBS="-ldl $LIBS"
b0322a85 10743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10744/* end confdefs.h. */
d9898ee8 10745
8d138742
CE
10746/* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749#ifdef __cplusplus
10750extern "C"
10751#endif
10752char dlopen ();
10753int
10754main ()
10755{
10756return dlopen ();
10757 ;
10758 return 0;
10759}
10760_ACEOF
b0322a85 10761if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10762 ac_cv_lib_dl_dlopen=yes
10763else
b0322a85 10764 ac_cv_lib_dl_dlopen=no
8d138742 10765fi
b0322a85
CE
10766rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10768LIBS=$ac_check_lib_save_LIBS
10769fi
b0322a85 10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 10771$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 10772if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
10773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10774else
d9898ee8 10775
8d138742
CE
10776 lt_cv_dlopen="dyld"
10777 lt_cv_dlopen_libs=
10778 lt_cv_dlopen_self=yes
d9898ee8 10779
8d138742 10780fi
d9898ee8 10781
8d138742 10782 ;;
d9898ee8 10783
8d138742 10784 *)
b0322a85
CE
10785 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10786if test "x$ac_cv_func_shl_load" = xyes; then :
8d138742
CE
10787 lt_cv_dlopen="shl_load"
10788else
b0322a85 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 10790$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 10791if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
10792 $as_echo_n "(cached) " >&6
10793else
10794 ac_check_lib_save_LIBS=$LIBS
10795LIBS="-ldld $LIBS"
b0322a85 10796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10797/* end confdefs.h. */
d9898ee8 10798
8d138742
CE
10799/* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10802#ifdef __cplusplus
10803extern "C"
10804#endif
10805char shl_load ();
10806int
10807main ()
10808{
10809return shl_load ();
10810 ;
10811 return 0;
10812}
10813_ACEOF
b0322a85 10814if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10815 ac_cv_lib_dld_shl_load=yes
10816else
b0322a85 10817 ac_cv_lib_dld_shl_load=no
8d138742 10818fi
b0322a85
CE
10819rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10821LIBS=$ac_check_lib_save_LIBS
10822fi
b0322a85 10823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 10824$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 10825if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8d138742
CE
10826 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10827else
b0322a85
CE
10828 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10829if test "x$ac_cv_func_dlopen" = xyes; then :
8d138742
CE
10830 lt_cv_dlopen="dlopen"
10831else
b0322a85 10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 10833$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 10834if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
10835 $as_echo_n "(cached) " >&6
10836else
10837 ac_check_lib_save_LIBS=$LIBS
10838LIBS="-ldl $LIBS"
b0322a85 10839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10840/* end confdefs.h. */
d9898ee8 10841
8d138742
CE
10842/* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845#ifdef __cplusplus
10846extern "C"
10847#endif
10848char dlopen ();
10849int
10850main ()
10851{
10852return dlopen ();
10853 ;
10854 return 0;
10855}
10856_ACEOF
b0322a85 10857if ac_fn_c_try_link "$LINENO"; then :
8d138742 10858 ac_cv_lib_dl_dlopen=yes
d9898ee8 10859else
b0322a85 10860 ac_cv_lib_dl_dlopen=no
d9898ee8 10861fi
b0322a85
CE
10862rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10864LIBS=$ac_check_lib_save_LIBS
10865fi
b0322a85 10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 10867$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 10868if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
10869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10870else
b0322a85 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 10872$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 10873if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
10874 $as_echo_n "(cached) " >&6
10875else
10876 ac_check_lib_save_LIBS=$LIBS
10877LIBS="-lsvld $LIBS"
b0322a85 10878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10879/* end confdefs.h. */
d9898ee8 10880
8d138742
CE
10881/* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10884#ifdef __cplusplus
10885extern "C"
10886#endif
10887char dlopen ();
10888int
10889main ()
10890{
10891return dlopen ();
10892 ;
10893 return 0;
10894}
10895_ACEOF
b0322a85 10896if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10897 ac_cv_lib_svld_dlopen=yes
10898else
b0322a85 10899 ac_cv_lib_svld_dlopen=no
8d138742 10900fi
b0322a85
CE
10901rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10903LIBS=$ac_check_lib_save_LIBS
10904fi
b0322a85 10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 10906$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 10907if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8d138742
CE
10908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10909else
b0322a85 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 10911$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 10912if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
10913 $as_echo_n "(cached) " >&6
10914else
10915 ac_check_lib_save_LIBS=$LIBS
10916LIBS="-ldld $LIBS"
b0322a85 10917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10918/* end confdefs.h. */
d9898ee8 10919
8d138742
CE
10920/* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923#ifdef __cplusplus
10924extern "C"
10925#endif
10926char dld_link ();
10927int
10928main ()
10929{
10930return dld_link ();
10931 ;
10932 return 0;
10933}
10934_ACEOF
b0322a85 10935if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10936 ac_cv_lib_dld_dld_link=yes
10937else
b0322a85 10938 ac_cv_lib_dld_dld_link=no
8d138742 10939fi
b0322a85
CE
10940rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10942LIBS=$ac_check_lib_save_LIBS
10943fi
b0322a85 10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 10945$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 10946if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8d138742
CE
10947 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10948fi
d9898ee8 10949
d9898ee8 10950
8d138742 10951fi
d9898ee8 10952
d9898ee8 10953
8d138742 10954fi
d9898ee8 10955
d9898ee8 10956
8d138742 10957fi
d9898ee8 10958
d9898ee8 10959
8d138742 10960fi
d9898ee8 10961
d9898ee8 10962
8d138742 10963fi
d9898ee8 10964
8d138742
CE
10965 ;;
10966 esac
d9898ee8 10967
8d138742
CE
10968 if test "x$lt_cv_dlopen" != xno; then
10969 enable_dlopen=yes
10970 else
10971 enable_dlopen=no
10972 fi
d9898ee8 10973
8d138742
CE
10974 case $lt_cv_dlopen in
10975 dlopen)
10976 save_CPPFLAGS="$CPPFLAGS"
10977 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 10978
8d138742
CE
10979 save_LDFLAGS="$LDFLAGS"
10980 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 10981
8d138742
CE
10982 save_LIBS="$LIBS"
10983 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 10984
b0322a85 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 10986$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 10987if ${lt_cv_dlopen_self+:} false; then :
8d138742
CE
10988 $as_echo_n "(cached) " >&6
10989else
10990 if test "$cross_compiling" = yes; then :
10991 lt_cv_dlopen_self=cross
10992else
10993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10994 lt_status=$lt_dlunknown
10995 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 10996#line $LINENO "configure"
8d138742 10997#include "confdefs.h"
d9898ee8 10998
8d138742
CE
10999#if HAVE_DLFCN_H
11000#include <dlfcn.h>
11001#endif
d9898ee8 11002
8d138742 11003#include <stdio.h>
d9898ee8 11004
8d138742
CE
11005#ifdef RTLD_GLOBAL
11006# define LT_DLGLOBAL RTLD_GLOBAL
11007#else
11008# ifdef DL_GLOBAL
11009# define LT_DLGLOBAL DL_GLOBAL
11010# else
11011# define LT_DLGLOBAL 0
11012# endif
11013#endif
d9898ee8 11014
8d138742
CE
11015/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11016 find out it does not work in some platform. */
11017#ifndef LT_DLLAZY_OR_NOW
11018# ifdef RTLD_LAZY
11019# define LT_DLLAZY_OR_NOW RTLD_LAZY
11020# else
11021# ifdef DL_LAZY
11022# define LT_DLLAZY_OR_NOW DL_LAZY
11023# else
11024# ifdef RTLD_NOW
11025# define LT_DLLAZY_OR_NOW RTLD_NOW
11026# else
11027# ifdef DL_NOW
11028# define LT_DLLAZY_OR_NOW DL_NOW
11029# else
11030# define LT_DLLAZY_OR_NOW 0
11031# endif
11032# endif
11033# endif
11034# endif
11035#endif
d9898ee8 11036
b0322a85
CE
11037/* When -fvisbility=hidden is used, assume the code has been annotated
11038 correspondingly for the symbols needed. */
11039#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11040int fnord () __attribute__((visibility("default")));
11041#endif
11042
11043int fnord () { return 42; }
8d138742
CE
11044int main ()
11045{
11046 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11047 int status = $lt_dlunknown;
d9898ee8 11048
8d138742
CE
11049 if (self)
11050 {
11051 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11052 else
11053 {
11054 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11055 else puts (dlerror ());
11056 }
8d138742
CE
11057 /* dlclose (self); */
11058 }
11059 else
11060 puts (dlerror ());
d9898ee8 11061
8d138742
CE
11062 return status;
11063}
11064_LT_EOF
b0322a85 11065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11066 (eval $ac_link) 2>&5
11067 ac_status=$?
b0322a85
CE
11068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11069 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11070 (./conftest; exit; ) >&5 2>/dev/null
11071 lt_status=$?
11072 case x$lt_status in
11073 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11074 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11075 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11076 esac
11077 else :
11078 # compilation failed
11079 lt_cv_dlopen_self=no
11080 fi
11081fi
11082rm -fr conftest*
d9898ee8 11083
d9898ee8 11084
8d138742 11085fi
b0322a85 11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 11087$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11088
8d138742
CE
11089 if test "x$lt_cv_dlopen_self" = xyes; then
11090 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 11092$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 11093if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
11094 $as_echo_n "(cached) " >&6
11095else
11096 if test "$cross_compiling" = yes; then :
11097 lt_cv_dlopen_self_static=cross
11098else
11099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11100 lt_status=$lt_dlunknown
11101 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11102#line $LINENO "configure"
8d138742 11103#include "confdefs.h"
d9898ee8 11104
8d138742
CE
11105#if HAVE_DLFCN_H
11106#include <dlfcn.h>
11107#endif
d9898ee8 11108
8d138742 11109#include <stdio.h>
d9898ee8 11110
8d138742
CE
11111#ifdef RTLD_GLOBAL
11112# define LT_DLGLOBAL RTLD_GLOBAL
11113#else
11114# ifdef DL_GLOBAL
11115# define LT_DLGLOBAL DL_GLOBAL
11116# else
11117# define LT_DLGLOBAL 0
11118# endif
11119#endif
d9898ee8 11120
8d138742
CE
11121/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11122 find out it does not work in some platform. */
11123#ifndef LT_DLLAZY_OR_NOW
11124# ifdef RTLD_LAZY
11125# define LT_DLLAZY_OR_NOW RTLD_LAZY
11126# else
11127# ifdef DL_LAZY
11128# define LT_DLLAZY_OR_NOW DL_LAZY
11129# else
11130# ifdef RTLD_NOW
11131# define LT_DLLAZY_OR_NOW RTLD_NOW
11132# else
11133# ifdef DL_NOW
11134# define LT_DLLAZY_OR_NOW DL_NOW
11135# else
11136# define LT_DLLAZY_OR_NOW 0
11137# endif
11138# endif
11139# endif
11140# endif
11141#endif
d9898ee8 11142
b0322a85
CE
11143/* When -fvisbility=hidden is used, assume the code has been annotated
11144 correspondingly for the symbols needed. */
11145#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11146int fnord () __attribute__((visibility("default")));
11147#endif
11148
11149int fnord () { return 42; }
8d138742
CE
11150int main ()
11151{
11152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11153 int status = $lt_dlunknown;
d9898ee8 11154
8d138742
CE
11155 if (self)
11156 {
11157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11158 else
11159 {
11160 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11161 else puts (dlerror ());
11162 }
8d138742
CE
11163 /* dlclose (self); */
11164 }
11165 else
11166 puts (dlerror ());
d9898ee8 11167
8d138742
CE
11168 return status;
11169}
11170_LT_EOF
b0322a85 11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11172 (eval $ac_link) 2>&5
11173 ac_status=$?
b0322a85
CE
11174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11176 (./conftest; exit; ) >&5 2>/dev/null
11177 lt_status=$?
11178 case x$lt_status in
11179 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11180 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11181 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11182 esac
11183 else :
11184 # compilation failed
11185 lt_cv_dlopen_self_static=no
11186 fi
11187fi
11188rm -fr conftest*
d9898ee8 11189
d9898ee8 11190
8d138742 11191fi
b0322a85 11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
11193$as_echo "$lt_cv_dlopen_self_static" >&6; }
11194 fi
d9898ee8 11195
8d138742
CE
11196 CPPFLAGS="$save_CPPFLAGS"
11197 LDFLAGS="$save_LDFLAGS"
11198 LIBS="$save_LIBS"
11199 ;;
11200 esac
d9898ee8 11201
8d138742
CE
11202 case $lt_cv_dlopen_self in
11203 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11204 *) enable_dlopen_self=unknown ;;
11205 esac
d9898ee8 11206
8d138742
CE
11207 case $lt_cv_dlopen_self_static in
11208 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11209 *) enable_dlopen_self_static=unknown ;;
11210 esac
11211fi
d9898ee8 11212
d9898ee8 11213
d9898ee8 11214
d9898ee8 11215
d9898ee8 11216
d9898ee8 11217
d9898ee8 11218
d9898ee8 11219
d9898ee8 11220
d9898ee8 11221
d9898ee8 11222
d9898ee8 11223
d9898ee8 11224
d9898ee8 11225
d9898ee8 11226
d9898ee8 11227
d9898ee8 11228
8d138742
CE
11229striplib=
11230old_striplib=
b0322a85 11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
11232$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11233if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11234 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11235 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11237$as_echo "yes" >&6; }
11238else
11239# FIXME - insert some real tests, host_os isn't really good enough
11240 case $host_os in
11241 darwin*)
11242 if test -n "$STRIP" ; then
11243 striplib="$STRIP -x"
11244 old_striplib="$STRIP -S"
b0322a85 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11246$as_echo "yes" >&6; }
11247 else
b0322a85 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11249$as_echo "no" >&6; }
11250 fi
11251 ;;
11252 *)
b0322a85 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11254$as_echo "no" >&6; }
11255 ;;
11256 esac
11257fi
d9898ee8 11258
d9898ee8 11259
d9898ee8 11260
d9898ee8 11261
d9898ee8 11262
d9898ee8 11263
d9898ee8 11264
d9898ee8 11265
d9898ee8 11266
d9898ee8 11267
d9898ee8 11268
d9898ee8 11269
8d138742 11270 # Report which library types will actually be built
b0322a85 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 11272$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 11274$as_echo "$can_build_shared" >&6; }
d9898ee8 11275
b0322a85 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742
CE
11277$as_echo_n "checking whether to build shared libraries... " >&6; }
11278 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 11279
8d138742
CE
11280 # On AIX, shared libraries and static libraries use the same namespace, and
11281 # are all built from PIC.
11282 case $host_os in
11283 aix3*)
11284 test "$enable_shared" = yes && enable_static=no
11285 if test -n "$RANLIB"; then
11286 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11287 postinstall_cmds='$RANLIB $lib'
11288 fi
11289 ;;
d9898ee8 11290
8d138742
CE
11291 aix[4-9]*)
11292 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11293 test "$enable_shared" = yes && enable_static=no
11294 fi
11295 ;;
11296 esac
b0322a85 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742 11298$as_echo "$enable_shared" >&6; }
d9898ee8 11299
b0322a85 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
11301$as_echo_n "checking whether to build static libraries... " >&6; }
11302 # Make sure either enable_shared or enable_static is yes.
11303 test "$enable_shared" = yes || enable_static=yes
b0322a85 11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 11305$as_echo "$enable_static" >&6; }
d9898ee8 11306
11307
d9898ee8 11308
11309
8d138742 11310fi
d9898ee8 11311ac_ext=c
11312ac_cpp='$CPP $CPPFLAGS'
11313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11315ac_compiler_gnu=$ac_cv_c_compiler_gnu
11316
11317CC="$lt_save_CC"
11318
d9898ee8 11319
d9898ee8 11320
11321
d9898ee8 11322
d9898ee8 11323
d9898ee8 11324
d9898ee8 11325
d9898ee8 11326
d9898ee8 11327
d9898ee8 11328
d9898ee8 11329
11330
b0322a85
CE
11331
11332
8d138742 11333 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11334
d9898ee8 11335
11336
d9898ee8 11337
8d138742 11338# Only expand once:
d9898ee8 11339
d9898ee8 11340
d9898ee8 11341
8d138742
CE
11342if test "$GCC" = yes
11343then
11344 CFLAGS="-Wall $CFLAGS"
11345fi
d9898ee8 11346
8d138742 11347CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
d9898ee8 11348
d9898ee8 11349
b0322a85 11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 11351$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 11352if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
11353 $as_echo_n "(cached) " >&6
11354else
b0322a85 11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11356/* end confdefs.h. */
11357#include <stdlib.h>
11358#include <stdarg.h>
11359#include <string.h>
11360#include <float.h>
d9898ee8 11361
8d138742
CE
11362int
11363main ()
11364{
d9898ee8 11365
b0322a85
CE
11366 ;
11367 return 0;
11368}
11369_ACEOF
11370if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
11371 ac_cv_header_stdc=yes
11372else
b0322a85 11373 ac_cv_header_stdc=no
8d138742 11374fi
8d138742 11375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11376
8d138742
CE
11377if test $ac_cv_header_stdc = yes; then
11378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11380/* end confdefs.h. */
11381#include <string.h>
d9898ee8 11382
8d138742
CE
11383_ACEOF
11384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
11385 $EGREP "memchr" >/dev/null 2>&1; then :
11386
8d138742
CE
11387else
11388 ac_cv_header_stdc=no
11389fi
11390rm -f conftest*
d9898ee8 11391
8d138742 11392fi
d9898ee8 11393
8d138742
CE
11394if test $ac_cv_header_stdc = yes; then
11395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11397/* end confdefs.h. */
11398#include <stdlib.h>
d9898ee8 11399
8d138742
CE
11400_ACEOF
11401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
11402 $EGREP "free" >/dev/null 2>&1; then :
11403
8d138742
CE
11404else
11405 ac_cv_header_stdc=no
11406fi
11407rm -f conftest*
d9898ee8 11408
8d138742 11409fi
d9898ee8 11410
8d138742
CE
11411if test $ac_cv_header_stdc = yes; then
11412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 11413 if test "$cross_compiling" = yes; then :
8d138742
CE
11414 :
11415else
b0322a85 11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11417/* end confdefs.h. */
11418#include <ctype.h>
11419#include <stdlib.h>
11420#if ((' ' & 0x0FF) == 0x020)
11421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11423#else
11424# define ISLOWER(c) \
11425 (('a' <= (c) && (c) <= 'i') \
11426 || ('j' <= (c) && (c) <= 'r') \
11427 || ('s' <= (c) && (c) <= 'z'))
11428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11429#endif
d9898ee8 11430
8d138742
CE
11431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11432int
11433main ()
11434{
11435 int i;
11436 for (i = 0; i < 256; i++)
11437 if (XOR (islower (i), ISLOWER (i))
11438 || toupper (i) != TOUPPER (i))
11439 return 2;
11440 return 0;
11441}
11442_ACEOF
b0322a85 11443if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 11444
b0322a85
CE
11445else
11446 ac_cv_header_stdc=no
8d138742 11447fi
b0322a85
CE
11448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11449 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 11450fi
d9898ee8 11451
8d138742
CE
11452fi
11453fi
b0322a85 11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742
CE
11455$as_echo "$ac_cv_header_stdc" >&6; }
11456if test $ac_cv_header_stdc = yes; then
d9898ee8 11457
b0322a85 11458$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 11459
8d138742 11460fi
d9898ee8 11461
d9898ee8 11462
b0322a85 11463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8d138742 11464$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b0322a85 11465if ${ac_cv_c_const+:} false; then :
8d138742
CE
11466 $as_echo_n "(cached) " >&6
11467else
b0322a85 11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11469/* end confdefs.h. */
d9898ee8 11470
8d138742
CE
11471int
11472main ()
11473{
b0322a85 11474
8d138742 11475#ifndef __cplusplus
b0322a85 11476 /* Ultrix mips cc rejects this sort of thing. */
8d138742 11477 typedef int charset[2];
b0322a85 11478 const charset cs = { 0, 0 };
8d138742
CE
11479 /* SunOS 4.1.1 cc rejects this. */
11480 char const *const *pcpcc;
11481 char **ppc;
11482 /* NEC SVR4.0.2 mips cc rejects this. */
11483 struct point {int x, y;};
11484 static struct point const zero = {0,0};
11485 /* AIX XL C 1.02.0.0 rejects this.
11486 It does not let you subtract one const X* pointer from another in
11487 an arm of an if-expression whose if-part is not a constant
11488 expression */
11489 const char *g = "string";
11490 pcpcc = &g + (g ? g-g : 0);
11491 /* HPUX 7.0 cc rejects these. */
11492 ++pcpcc;
11493 ppc = (char**) pcpcc;
11494 pcpcc = (char const *const *) ppc;
b0322a85
CE
11495 { /* SCO 3.2v4 cc rejects this sort of thing. */
11496 char tx;
11497 char *t = &tx;
8d138742 11498 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 11499
8d138742
CE
11500 *t++ = 0;
11501 if (s) return 0;
11502 }
11503 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11504 int x[] = {25, 17};
11505 const int *foo = &x[0];
11506 ++foo;
11507 }
11508 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11509 typedef const int *iptr;
11510 iptr p = 0;
11511 ++p;
11512 }
b0322a85 11513 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8d138742 11514 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
b0322a85
CE
11515 struct s { int j; const int *ap[3]; } bx;
11516 struct s *b = &bx; b->j = 5;
8d138742
CE
11517 }
11518 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11519 const int foo = 10;
11520 if (!foo) return 0;
11521 }
11522 return !cs[0] && !zero.x;
11523#endif
d9898ee8 11524
8d138742
CE
11525 ;
11526 return 0;
11527}
11528_ACEOF
b0322a85 11529if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
11530 ac_cv_c_const=yes
11531else
b0322a85 11532 ac_cv_c_const=no
8d138742 11533fi
8d138742
CE
11534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535fi
b0322a85 11536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8d138742
CE
11537$as_echo "$ac_cv_c_const" >&6; }
11538if test $ac_cv_c_const = no; then
d9898ee8 11539
b0322a85 11540$as_echo "#define const /**/" >>confdefs.h
d9898ee8 11541
8d138742 11542fi
d9898ee8 11543
b0322a85
CE
11544ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11545if test "x$ac_cv_type_size_t" = xyes; then :
d9898ee8 11546
8d138742 11547else
d9898ee8 11548
8d138742
CE
11549cat >>confdefs.h <<_ACEOF
11550#define size_t unsigned int
11551_ACEOF
d9898ee8 11552
8d138742 11553fi
d9898ee8 11554
d9898ee8 11555
d9898ee8 11556
d9898ee8 11557
8d138742 11558TESTPROGS=""
d9898ee8 11559
8d138742 11560hmac_list=""
d9898ee8 11561
8d138742
CE
11562hashlibs=""
11563if test -d ${srcdir}/../md5
11564then
11565 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
11566 hmac_list="$hmac_list &hmac_md5,"
11567 hashlibs="$hashlibs ../md5/libmd5.la"
11568fi
d9898ee8 11569
8d138742
CE
11570if test -d ${srcdir}/../sha1
11571then
11572 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
11573 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
11574 hashlibs="$hashlibs ../sha1/libsha1.la"
11575fi
d9898ee8 11576
d9898ee8 11577
8d138742 11578hmac_list="$hmac_list 0"
d9898ee8 11579
d9898ee8 11580
d9898ee8 11581
8d138742
CE
11582cat >>confdefs.h <<_ACEOF
11583#define HMAC_LIST $hmac_list
11584_ACEOF
d9898ee8 11585
d9898ee8 11586
8d138742 11587ac_config_files="$ac_config_files Makefile"
d9898ee8 11588
8d138742
CE
11589cat >confcache <<\_ACEOF
11590# This file is a shell script that caches the results of configure
11591# tests run on this system so they can be shared between configure
11592# scripts and configure runs, see configure's option --config-cache.
11593# It is not useful on other systems. If it contains results you don't
11594# want to keep, you may remove or edit it.
11595#
11596# config.status only pays attention to the cache file if you give it
11597# the --recheck option to rerun configure.
11598#
11599# `ac_cv_env_foo' variables (set or unset) will be overridden when
11600# loading this file, other *unset* `ac_cv_foo' will be assigned the
11601# following values.
d9898ee8 11602
8d138742 11603_ACEOF
d9898ee8 11604
8d138742
CE
11605# The following way of writing the cache mishandles newlines in values,
11606# but we know of no workaround that is simple, portable, and efficient.
11607# So, we kill variables containing newlines.
11608# Ultrix sh set writes to stderr and can't be redirected directly,
11609# and sets the high bit in the cache file unless we assign to the vars.
11610(
11611 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11612 eval ac_val=\$$ac_var
11613 case $ac_val in #(
11614 *${as_nl}*)
11615 case $ac_var in #(
b0322a85 11616 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
11617$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11618 esac
11619 case $ac_var in #(
11620 _ | IFS | as_nl) ;; #(
11621 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 11622 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
11623 esac ;;
11624 esac
11625 done
d9898ee8 11626
8d138742
CE
11627 (set) 2>&1 |
11628 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11629 *${as_nl}ac_space=\ *)
b0322a85
CE
11630 # `set' does not quote correctly, so add quotes: double-quote
11631 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
11632 sed -n \
11633 "s/'/'\\\\''/g;
11634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11635 ;; #(
11636 *)
11637 # `set' quotes correctly as required by POSIX, so do not add quotes.
11638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11639 ;;
11640 esac |
11641 sort
11642) |
11643 sed '
11644 /^ac_cv_env_/b end
11645 t clear
11646 :clear
11647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11648 t end
11649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11650 :end' >>confcache
11651if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11652 if test -w "$cache_file"; then
b0322a85
CE
11653 if test "x$cache_file" != "x/dev/null"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 11655$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
11656 if test ! -f "$cache_file" || test -h "$cache_file"; then
11657 cat confcache >"$cache_file"
11658 else
11659 case $cache_file in #(
11660 */* | ?:*)
11661 mv -f confcache "$cache_file"$$ &&
11662 mv -f "$cache_file"$$ "$cache_file" ;; #(
11663 *)
11664 mv -f confcache "$cache_file" ;;
11665 esac
11666 fi
11667 fi
8d138742 11668 else
b0322a85 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
11670$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11671 fi
11672fi
11673rm -f confcache
d9898ee8 11674
8d138742
CE
11675test "x$prefix" = xNONE && prefix=$ac_default_prefix
11676# Let make expand exec_prefix.
11677test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 11678
8d138742 11679DEFS=-DHAVE_CONFIG_H
d9898ee8 11680
8d138742
CE
11681ac_libobjs=
11682ac_ltlibobjs=
11683for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11684 # 1. Remove the extension, and $U if already installed.
11685 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11686 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11688 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
11689 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11690 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
11691done
11692LIBOBJS=$ac_libobjs
d9898ee8 11693
8d138742 11694LTLIBOBJS=$ac_ltlibobjs
d9898ee8 11695
d9898ee8 11696
b0322a85
CE
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11698$as_echo_n "checking that generated files are newer than configure... " >&6; }
11699 if test -n "$am_sleep_pid"; then
11700 # Hide warnings about reused PIDs.
11701 wait $am_sleep_pid 2>/dev/null
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11704$as_echo "done" >&6; }
8d138742
CE
11705 if test -n "$EXEEXT"; then
11706 am__EXEEXT_TRUE=
11707 am__EXEEXT_FALSE='#'
11708else
11709 am__EXEEXT_TRUE='#'
11710 am__EXEEXT_FALSE=
11711fi
d9898ee8 11712
8d138742 11713if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
11714 as_fn_error $? "conditional \"AMDEP\" was never defined.
11715Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
11716fi
11717if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
11718 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11719Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 11720fi
d9898ee8 11721
b0322a85 11722: "${CONFIG_STATUS=./config.status}"
8d138742
CE
11723ac_write_fail=0
11724ac_clean_files_save=$ac_clean_files
11725ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 11726{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 11727$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
11728as_write_fail=0
11729cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
11730#! $SHELL
11731# Generated by $as_me.
11732# Run this file to recreate the current configuration.
11733# Compiler output produced by configure, useful for debugging
11734# configure, is in config.log if it exists.
d9898ee8 11735
8d138742
CE
11736debug=false
11737ac_cs_recheck=false
11738ac_cs_silent=false
d9898ee8 11739
b0322a85
CE
11740SHELL=\${CONFIG_SHELL-$SHELL}
11741export SHELL
11742_ASEOF
11743cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11744## -------------------- ##
11745## M4sh Initialization. ##
11746## -------------------- ##
d9898ee8 11747
8d138742
CE
11748# Be more Bourne compatible
11749DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 11750if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
11751 emulate sh
11752 NULLCMD=:
11753 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11754 # is contrary to our usage. Disable this feature.
11755 alias -g '${1+"$@"}'='"$@"'
11756 setopt NO_GLOB_SUBST
11757else
b0322a85
CE
11758 case `(set -o) 2>/dev/null` in #(
11759 *posix*) :
11760 set -o posix ;; #(
11761 *) :
11762 ;;
8d138742 11763esac
8d138742 11764fi
d9898ee8 11765
d9898ee8 11766
8d138742
CE
11767as_nl='
11768'
11769export as_nl
11770# Printing a long string crashes Solaris 7 /usr/bin/printf.
11771as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11772as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11773as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
11774# Prefer a ksh shell builtin over an external printf program on Solaris,
11775# but without wasting forks for bash or zsh.
11776if test -z "$BASH_VERSION$ZSH_VERSION" \
11777 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11778 as_echo='print -r --'
11779 as_echo_n='print -rn --'
11780elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
11781 as_echo='printf %s\n'
11782 as_echo_n='printf %s'
11783else
11784 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11785 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11786 as_echo_n='/usr/ucb/echo -n'
11787 else
11788 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11789 as_echo_n_body='eval
11790 arg=$1;
b0322a85 11791 case $arg in #(
8d138742
CE
11792 *"$as_nl"*)
11793 expr "X$arg" : "X\\(.*\\)$as_nl";
11794 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11795 esac;
11796 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11797 '
11798 export as_echo_n_body
11799 as_echo_n='sh -c $as_echo_n_body as_echo'
11800 fi
11801 export as_echo_body
11802 as_echo='sh -c $as_echo_body as_echo'
11803fi
d9898ee8 11804
8d138742
CE
11805# The user is always right.
11806if test "${PATH_SEPARATOR+set}" != set; then
11807 PATH_SEPARATOR=:
11808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11809 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11810 PATH_SEPARATOR=';'
11811 }
11812fi
d9898ee8 11813
d9898ee8 11814
8d138742
CE
11815# IFS
11816# We need space, tab and new line, in precisely that order. Quoting is
11817# there to prevent editors from complaining about space-tab.
11818# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11819# splitting by setting IFS to empty value.)
11820IFS=" "" $as_nl"
d9898ee8 11821
8d138742 11822# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
11823as_myself=
11824case $0 in #((
8d138742
CE
11825 *[\\/]* ) as_myself=$0 ;;
11826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
b0322a85
CE
11831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11832 done
8d138742 11833IFS=$as_save_IFS
d9898ee8 11834
8d138742
CE
11835 ;;
11836esac
11837# We did not find ourselves, most probably we were run as `sh COMMAND'
11838# in which case we are not to be found in the path.
11839if test "x$as_myself" = x; then
11840 as_myself=$0
11841fi
11842if test ! -f "$as_myself"; then
11843 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 11844 exit 1
8d138742 11845fi
d9898ee8 11846
b0322a85
CE
11847# Unset variables that we do not need and which cause bugs (e.g. in
11848# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11849# suppresses any "Segmentation fault" message there. '((' could
11850# trigger a bug in pdksh 5.2.14.
11851for as_var in BASH_ENV ENV MAIL MAILPATH
11852do eval test x\${$as_var+set} = xset \
11853 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
11854done
11855PS1='$ '
11856PS2='> '
11857PS4='+ '
d9898ee8 11858
8d138742
CE
11859# NLS nuisances.
11860LC_ALL=C
11861export LC_ALL
11862LANGUAGE=C
11863export LANGUAGE
d9898ee8 11864
b0322a85
CE
11865# CDPATH.
11866(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11867
11868
11869# as_fn_error STATUS ERROR [LINENO LOG_FD]
11870# ----------------------------------------
11871# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11872# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11873# script with STATUS, using 1 if that was 0.
11874as_fn_error ()
11875{
11876 as_status=$1; test $as_status -eq 0 && as_status=1
11877 if test "$4"; then
11878 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11879 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11880 fi
11881 $as_echo "$as_me: error: $2" >&2
11882 as_fn_exit $as_status
11883} # as_fn_error
11884
11885
11886# as_fn_set_status STATUS
11887# -----------------------
11888# Set $? to STATUS, without forking.
11889as_fn_set_status ()
11890{
11891 return $1
11892} # as_fn_set_status
11893
11894# as_fn_exit STATUS
11895# -----------------
11896# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11897as_fn_exit ()
11898{
11899 set +e
11900 as_fn_set_status $1
11901 exit $1
11902} # as_fn_exit
11903
11904# as_fn_unset VAR
11905# ---------------
11906# Portably unset VAR.
11907as_fn_unset ()
11908{
11909 { eval $1=; unset $1;}
11910}
11911as_unset=as_fn_unset
11912# as_fn_append VAR VALUE
11913# ----------------------
11914# Append the text in VALUE to the end of the definition contained in VAR. Take
11915# advantage of any shell optimizations that allow amortized linear growth over
11916# repeated appends, instead of the typical quadratic growth present in naive
11917# implementations.
11918if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11919 eval 'as_fn_append ()
11920 {
11921 eval $1+=\$2
11922 }'
11923else
11924 as_fn_append ()
11925 {
11926 eval $1=\$$1\$2
11927 }
11928fi # as_fn_append
11929
11930# as_fn_arith ARG...
11931# ------------------
11932# Perform arithmetic evaluation on the ARGs, and store the result in the
11933# global $as_val. Take advantage of shells that can avoid forks. The arguments
11934# must be portable across $(()) and expr.
11935if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11936 eval 'as_fn_arith ()
11937 {
11938 as_val=$(( $* ))
11939 }'
11940else
11941 as_fn_arith ()
11942 {
11943 as_val=`expr "$@" || test $? -eq 1`
11944 }
11945fi # as_fn_arith
11946
11947
8d138742
CE
11948if expr a : '\(a\)' >/dev/null 2>&1 &&
11949 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11950 as_expr=expr
11951else
11952 as_expr=false
11953fi
d9898ee8 11954
8d138742
CE
11955if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11956 as_basename=basename
11957else
11958 as_basename=false
11959fi
d9898ee8 11960
b0322a85
CE
11961if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11962 as_dirname=dirname
11963else
11964 as_dirname=false
11965fi
d9898ee8 11966
8d138742
CE
11967as_me=`$as_basename -- "$0" ||
11968$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11969 X"$0" : 'X\(//\)$' \| \
11970 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11971$as_echo X/"$0" |
11972 sed '/^.*\/\([^/][^/]*\)\/*$/{
11973 s//\1/
11974 q
11975 }
11976 /^X\/\(\/\/\)$/{
11977 s//\1/
11978 q
11979 }
11980 /^X\/\(\/\).*/{
11981 s//\1/
11982 q
11983 }
11984 s/.*/./; q'`
d9898ee8 11985
b0322a85
CE
11986# Avoid depending upon Character Ranges.
11987as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11988as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11989as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11990as_cr_digits='0123456789'
11991as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 11992
8d138742 11993ECHO_C= ECHO_N= ECHO_T=
b0322a85 11994case `echo -n x` in #(((((
8d138742 11995-n*)
b0322a85 11996 case `echo 'xy\c'` in
8d138742 11997 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
11998 xy) ECHO_C='\c';;
11999 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12000 ECHO_T=' ';;
8d138742
CE
12001 esac;;
12002*)
12003 ECHO_N='-n';;
12004esac
b0322a85
CE
12005
12006rm -f conf$$ conf$$.exe conf$$.file
12007if test -d conf$$.dir; then
12008 rm -f conf$$.dir/conf$$.file
8d138742 12009else
b0322a85
CE
12010 rm -f conf$$.dir
12011 mkdir conf$$.dir 2>/dev/null
12012fi
12013if (echo >conf$$.file) 2>/dev/null; then
12014 if ln -s conf$$.file conf$$ 2>/dev/null; then
12015 as_ln_s='ln -s'
12016 # ... but there are two gotchas:
12017 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12018 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12019 # In both cases, we have to default to `cp -pR'.
12020 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12021 as_ln_s='cp -pR'
12022 elif ln conf$$.file conf$$ 2>/dev/null; then
12023 as_ln_s=ln
12024 else
12025 as_ln_s='cp -pR'
12026 fi
12027else
12028 as_ln_s='cp -pR'
8d138742 12029fi
b0322a85
CE
12030rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12031rmdir conf$$.dir 2>/dev/null
12032
12033
12034# as_fn_mkdir_p
12035# -------------
12036# Create "$as_dir" as a directory, including parents if necessary.
12037as_fn_mkdir_p ()
12038{
12039
12040 case $as_dir in #(
12041 -*) as_dir=./$as_dir;;
12042 esac
12043 test -d "$as_dir" || eval $as_mkdir_p || {
12044 as_dirs=
12045 while :; do
12046 case $as_dir in #(
12047 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12048 *) as_qdir=$as_dir;;
12049 esac
12050 as_dirs="'$as_qdir' $as_dirs"
12051 as_dir=`$as_dirname -- "$as_dir" ||
12052$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12053 X"$as_dir" : 'X\(//\)[^/]' \| \
12054 X"$as_dir" : 'X\(//\)$' \| \
12055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12056$as_echo X"$as_dir" |
12057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12058 s//\1/
12059 q
12060 }
12061 /^X\(\/\/\)[^/].*/{
12062 s//\1/
12063 q
12064 }
12065 /^X\(\/\/\)$/{
12066 s//\1/
12067 q
12068 }
12069 /^X\(\/\).*/{
12070 s//\1/
12071 q
12072 }
12073 s/.*/./; q'`
12074 test -d "$as_dir" && break
12075 done
12076 test -z "$as_dirs" || eval "mkdir $as_dirs"
12077 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d9898ee8 12078
d9898ee8 12079
b0322a85 12080} # as_fn_mkdir_p
8d138742 12081if mkdir -p . 2>/dev/null; then
b0322a85 12082 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
12083else
12084 test -d ./-p && rmdir ./-p
12085 as_mkdir_p=false
12086fi
d9898ee8 12087
b0322a85
CE
12088
12089# as_fn_executable_p FILE
12090# -----------------------
12091# Test if FILE is an executable regular file.
12092as_fn_executable_p ()
12093{
12094 test -f "$1" && test -x "$1"
12095} # as_fn_executable_p
12096as_test_x='test -x'
12097as_executable_p=as_fn_executable_p
8d138742
CE
12098
12099# Sed expression to map a string onto a valid CPP name.
12100as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12101
8d138742
CE
12102# Sed expression to map a string onto a valid variable name.
12103as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12104
12105
8d138742 12106exec 6>&1
b0322a85
CE
12107## ----------------------------------- ##
12108## Main body of $CONFIG_STATUS script. ##
12109## ----------------------------------- ##
12110_ASEOF
12111test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 12112
b0322a85
CE
12113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12114# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
12115# report actual input values of CONFIG_FILES etc. instead of their
12116# values after options handling.
12117ac_log="
12118This file was extended by libhmac $as_me 1.00, which was
b0322a85 12119generated by GNU Autoconf 2.69. Invocation command line was
8d138742
CE
12120
12121 CONFIG_FILES = $CONFIG_FILES
12122 CONFIG_HEADERS = $CONFIG_HEADERS
12123 CONFIG_LINKS = $CONFIG_LINKS
12124 CONFIG_COMMANDS = $CONFIG_COMMANDS
12125 $ $0 $@
d9898ee8 12126
8d138742
CE
12127on `(hostname || uname -n) 2>/dev/null | sed 1q`
12128"
d9898ee8 12129
8d138742 12130_ACEOF
d9898ee8 12131
8d138742
CE
12132case $ac_config_files in *"
12133"*) set x $ac_config_files; shift; ac_config_files=$*;;
12134esac
d9898ee8 12135
8d138742
CE
12136case $ac_config_headers in *"
12137"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12138esac
d9898ee8 12139
12140
8d138742
CE
12141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142# Files that config.status was made for.
12143config_files="$ac_config_files"
12144config_headers="$ac_config_headers"
12145config_commands="$ac_config_commands"
d9898ee8 12146
8d138742 12147_ACEOF
d9898ee8 12148
8d138742
CE
12149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150ac_cs_usage="\
b0322a85
CE
12151\`$as_me' instantiates files and other configuration actions
12152from templates according to the current configuration. Unless the files
12153and actions are specified as TAGs, all are instantiated by default.
d9898ee8 12154
b0322a85 12155Usage: $0 [OPTION]... [TAG]...
d9898ee8 12156
8d138742
CE
12157 -h, --help print this help, then exit
12158 -V, --version print version number and configuration settings, then exit
b0322a85 12159 --config print configuration, then exit
8d138742
CE
12160 -q, --quiet, --silent
12161 do not print progress messages
12162 -d, --debug don't remove temporary files
12163 --recheck update $as_me by reconfiguring in the same conditions
12164 --file=FILE[:TEMPLATE]
12165 instantiate the configuration file FILE
12166 --header=FILE[:TEMPLATE]
12167 instantiate the configuration header FILE
d9898ee8 12168
8d138742
CE
12169Configuration files:
12170$config_files
d9898ee8 12171
8d138742
CE
12172Configuration headers:
12173$config_headers
d9898ee8 12174
8d138742
CE
12175Configuration commands:
12176$config_commands
d9898ee8 12177
b0322a85 12178Report bugs to <courier-users@lists.sourceforge.net>."
d9898ee8 12179
8d138742
CE
12180_ACEOF
12181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 12182ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742
CE
12183ac_cs_version="\\
12184libhmac config.status 1.00
b0322a85
CE
12185configured by $0, generated by GNU Autoconf 2.69,
12186 with options \\"\$ac_cs_config\\"
d9898ee8 12187
b0322a85 12188Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
12189This config.status script is free software; the Free Software Foundation
12190gives unlimited permission to copy, distribute and modify it."
d9898ee8 12191
8d138742
CE
12192ac_pwd='$ac_pwd'
12193srcdir='$srcdir'
12194INSTALL='$INSTALL'
12195MKDIR_P='$MKDIR_P'
12196AWK='$AWK'
12197test -n "\$AWK" || AWK=awk
12198_ACEOF
d9898ee8 12199
8d138742
CE
12200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12201# The default lists apply if the user does not specify any file.
12202ac_need_defaults=:
12203while test $# != 0
12204do
12205 case $1 in
b0322a85 12206 --*=?*)
8d138742
CE
12207 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12208 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12209 ac_shift=:
12210 ;;
b0322a85
CE
12211 --*=)
12212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12213 ac_optarg=
12214 ac_shift=:
12215 ;;
8d138742
CE
12216 *)
12217 ac_option=$1
12218 ac_optarg=$2
12219 ac_shift=shift
12220 ;;
12221 esac
d9898ee8 12222
8d138742
CE
12223 case $ac_option in
12224 # Handling of the options.
12225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12226 ac_cs_recheck=: ;;
12227 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12228 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
12229 --config | --confi | --conf | --con | --co | --c )
12230 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
12231 --debug | --debu | --deb | --de | --d | -d )
12232 debug=: ;;
12233 --file | --fil | --fi | --f )
12234 $ac_shift
12235 case $ac_optarg in
12236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 12237 '') as_fn_error $? "missing file argument" ;;
8d138742 12238 esac
b0322a85 12239 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
12240 ac_need_defaults=false;;
12241 --header | --heade | --head | --hea )
12242 $ac_shift
12243 case $ac_optarg in
12244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12245 esac
b0322a85 12246 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
12247 ac_need_defaults=false;;
12248 --he | --h)
12249 # Conflict between --help and --header
b0322a85
CE
12250 as_fn_error $? "ambiguous option: \`$1'
12251Try \`$0 --help' for more information.";;
8d138742
CE
12252 --help | --hel | -h )
12253 $as_echo "$ac_cs_usage"; exit ;;
12254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12255 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12256 ac_cs_silent=: ;;
d9898ee8 12257
8d138742 12258 # This is an error.
b0322a85
CE
12259 -*) as_fn_error $? "unrecognized option: \`$1'
12260Try \`$0 --help' for more information." ;;
d9898ee8 12261
b0322a85 12262 *) as_fn_append ac_config_targets " $1"
8d138742 12263 ac_need_defaults=false ;;
d9898ee8 12264
8d138742
CE
12265 esac
12266 shift
12267done
d9898ee8 12268
8d138742 12269ac_configure_extra_args=
d9898ee8 12270
8d138742
CE
12271if $ac_cs_silent; then
12272 exec 6>/dev/null
12273 ac_configure_extra_args="$ac_configure_extra_args --silent"
12274fi
d9898ee8 12275
d9898ee8 12276_ACEOF
8d138742
CE
12277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12278if \$ac_cs_recheck; then
b0322a85 12279 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
12280 shift
12281 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12282 CONFIG_SHELL='$SHELL'
12283 export CONFIG_SHELL
12284 exec "\$@"
12285fi
d9898ee8 12286
8d138742
CE
12287_ACEOF
12288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12289exec 5>>config.log
d9898ee8 12290{
8d138742
CE
12291 echo
12292 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12293## Running $as_me. ##
12294_ASBOX
12295 $as_echo "$ac_log"
12296} >&5
d9898ee8 12297
d9898ee8 12298_ACEOF
8d138742
CE
12299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12300#
12301# INIT-COMMANDS
12302#
12303AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12304
12305
12306# The HP-UX ksh and POSIX shell print the target directory to stdout
12307# if CDPATH is set.
12308(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12309
12310sed_quote_subst='$sed_quote_subst'
12311double_quote_subst='$double_quote_subst'
12312delay_variable_subst='$delay_variable_subst'
b0322a85
CE
12313macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12314macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12315enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12316enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12317pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12318enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12319SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12320ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12321PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12322host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12323host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12324host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12325build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12326build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12327build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12328SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12329Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12330GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12331EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12332FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12333LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12334NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12335LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12336max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12337ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12338exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12339lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12340lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12341lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12342lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12343lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12344reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12345reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12346OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12347deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12348file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12349file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12350want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12351DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12352sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12353AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12354AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12355archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12356STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12357RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12358old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12359old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12360old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12361lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12362CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12363CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12364compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12365GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12366lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12367lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12368lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12369lt_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"`'
12370nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12371lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12372objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12373MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12374lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12375lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12376lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12377lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12378lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12379need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12380MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12381DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12382NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12383LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12384OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12385OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12386libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12387shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12388extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12389archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12390enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12391export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12392whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12393compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12394old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12395old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12396archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12397archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12398module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12399module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12400with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12401allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12402no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12403hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12404hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12405hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12406hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12407hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12408hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12409hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12410inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12411link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12412always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12413export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12414exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12415include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12416prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12417postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12418file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12419variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12420need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12421need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12422version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12423runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12424shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12425shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12426libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12427library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12428soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12429install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12430postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12431postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12432finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12433finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12434hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12435sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12436sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12437hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12438enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12439enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12440enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12441old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12442striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8d138742
CE
12443
12444LTCC='$LTCC'
12445LTCFLAGS='$LTCFLAGS'
12446compiler='$compiler_DEFAULT'
12447
b0322a85
CE
12448# A function that is used when there is no print builtin or printf.
12449func_fallback_echo ()
12450{
12451 eval 'cat <<_LTECHO_EOF
12452\$1
12453_LTECHO_EOF'
12454}
12455
8d138742 12456# Quote evaled strings.
b0322a85
CE
12457for var in SHELL \
12458ECHO \
12459PATH_SEPARATOR \
12460SED \
8d138742
CE
12461GREP \
12462EGREP \
12463FGREP \
12464LD \
12465NM \
12466LN_S \
12467lt_SP2NL \
12468lt_NL2SP \
12469reload_flag \
12470OBJDUMP \
12471deplibs_check_method \
12472file_magic_cmd \
b0322a85
CE
12473file_magic_glob \
12474want_nocaseglob \
12475DLLTOOL \
12476sharedlib_from_linklib_cmd \
8d138742
CE
12477AR \
12478AR_FLAGS \
b0322a85 12479archiver_list_spec \
8d138742
CE
12480STRIP \
12481RANLIB \
12482CC \
12483CFLAGS \
12484compiler \
12485lt_cv_sys_global_symbol_pipe \
12486lt_cv_sys_global_symbol_to_cdecl \
12487lt_cv_sys_global_symbol_to_c_name_address \
12488lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b0322a85 12489nm_file_list_spec \
8d138742 12490lt_prog_compiler_no_builtin_flag \
8d138742 12491lt_prog_compiler_pic \
b0322a85 12492lt_prog_compiler_wl \
8d138742
CE
12493lt_prog_compiler_static \
12494lt_cv_prog_compiler_c_o \
12495need_locks \
b0322a85 12496MANIFEST_TOOL \
8d138742
CE
12497DSYMUTIL \
12498NMEDIT \
12499LIPO \
12500OTOOL \
12501OTOOL64 \
12502shrext_cmds \
12503export_dynamic_flag_spec \
12504whole_archive_flag_spec \
12505compiler_needs_object \
12506with_gnu_ld \
12507allow_undefined_flag \
12508no_undefined_flag \
12509hardcode_libdir_flag_spec \
8d138742 12510hardcode_libdir_separator \
8d138742
CE
12511exclude_expsyms \
12512include_expsyms \
12513file_list_spec \
12514variables_saved_for_relink \
12515libname_spec \
12516library_names_spec \
12517soname_spec \
b0322a85 12518install_override_mode \
8d138742
CE
12519finish_eval \
12520old_striplib \
12521striplib; do
b0322a85 12522 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 12523 *[\\\\\\\`\\"\\\$]*)
b0322a85 12524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8d138742
CE
12525 ;;
12526 *)
12527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12528 ;;
12529 esac
12530done
d9898ee8 12531
8d138742
CE
12532# Double-quote double-evaled strings.
12533for var in reload_cmds \
12534old_postinstall_cmds \
12535old_postuninstall_cmds \
12536old_archive_cmds \
12537extract_expsyms_cmds \
12538old_archive_from_new_cmds \
12539old_archive_from_expsyms_cmds \
12540archive_cmds \
12541archive_expsym_cmds \
12542module_cmds \
12543module_expsym_cmds \
12544export_symbols_cmds \
12545prelink_cmds \
b0322a85 12546postlink_cmds \
8d138742
CE
12547postinstall_cmds \
12548postuninstall_cmds \
12549finish_cmds \
12550sys_lib_search_path_spec \
12551sys_lib_dlsearch_path_spec; do
b0322a85 12552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 12553 *[\\\\\\\`\\"\\\$]*)
b0322a85 12554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8d138742
CE
12555 ;;
12556 *)
12557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12558 ;;
12559 esac
12560done
dd184caf 12561
8d138742
CE
12562ac_aux_dir='$ac_aux_dir'
12563xsi_shell='$xsi_shell'
12564lt_shell_append='$lt_shell_append'
d9898ee8 12565
8d138742
CE
12566# See if we are running on zsh, and set the options which allow our
12567# commands through without removal of \ escapes INIT.
12568if test -n "\${ZSH_VERSION+set}" ; then
12569 setopt NO_GLOB_SUBST
d9898ee8 12570fi
d9898ee8 12571
d9898ee8 12572
8d138742
CE
12573 PACKAGE='$PACKAGE'
12574 VERSION='$VERSION'
12575 TIMESTAMP='$TIMESTAMP'
12576 RM='$RM'
12577 ofile='$ofile'
12578
12579
12580
d9898ee8 12581
12582_ACEOF
d9898ee8 12583
8d138742
CE
12584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585
12586# Handling of arguments.
12587for ac_config_target in $ac_config_targets
12588do
12589 case $ac_config_target in
12590 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12591 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12592 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12594
b0322a85 12595 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
12596 esac
12597done
12598
12599
12600# If the user did not use the arguments to specify the items to instantiate,
12601# then the envvar interface is used. Set only those that are not.
12602# We use the long form for the default assignment because of an extremely
12603# bizarre bug on SunOS 4.1.3.
12604if $ac_need_defaults; then
12605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
d9898ee8 12608fi
12609
8d138742
CE
12610# Have a temporary directory for convenience. Make it in the build tree
12611# simply because there is no reason against having it here, and in addition,
12612# creating and moving files from /tmp can sometimes cause problems.
12613# Hook for its removal unless debugging.
12614# Note that there is a small window in which the directory will not be cleaned:
12615# after its creation but before its name has been assigned to `$tmp'.
12616$debug ||
12617{
b0322a85 12618 tmp= ac_tmp=
8d138742 12619 trap 'exit_status=$?
b0322a85
CE
12620 : "${ac_tmp:=$tmp}"
12621 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 12622' 0
b0322a85 12623 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
12624}
12625# Create a (secure) tmp directory for tmp files.
d9898ee8 12626
d9898ee8 12627{
8d138742 12628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 12629 test -d "$tmp"
8d138742
CE
12630} ||
12631{
12632 tmp=./conf$$-$RANDOM
12633 (umask 077 && mkdir "$tmp")
b0322a85
CE
12634} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12635ac_tmp=$tmp
d9898ee8 12636
8d138742
CE
12637# Set up the scripts for CONFIG_FILES section.
12638# No need to generate them if there are no CONFIG_FILES.
12639# This happens for instance with `./config.status config.h'.
12640if test -n "$CONFIG_FILES"; then
dd184caf 12641
12642
b0322a85
CE
12643ac_cr=`echo X | tr X '\015'`
12644# On cygwin, bash can eat \r inside `` if the user requested igncr.
12645# But we know of no other shell where ac_cr would be empty at this
12646# point, so we can use a bashism as a fallback.
12647if test "x$ac_cr" = x; then
12648 eval ac_cr=\$\'\\r\'
12649fi
8d138742
CE
12650ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12651if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12652 ac_cs_awk_cr='\\r'
12653else
12654 ac_cs_awk_cr=$ac_cr
d9898ee8 12655fi
d9898ee8 12656
b0322a85 12657echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d9898ee8 12658_ACEOF
12659
d9898ee8 12660
8d138742
CE
12661{
12662 echo "cat >conf$$subs.awk <<_ACEOF" &&
12663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12664 echo "_ACEOF"
12665} >conf$$subs.sh ||
b0322a85
CE
12666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12667ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
12668ac_delim='%!_!# '
12669for ac_last_try in false false false false false :; do
12670 . ./conf$$subs.sh ||
b0322a85 12671 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 12672
8d138742
CE
12673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12674 if test $ac_delim_n = $ac_delim_num; then
12675 break
12676 elif $ac_last_try; then
b0322a85 12677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
12678 else
12679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12680 fi
12681done
12682rm -f conf$$subs.sh
12683
12684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 12685cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
12686_ACEOF
12687sed -n '
12688h
12689s/^/S["/; s/!.*/"]=/
12690p
12691g
12692s/^[^!]*!//
12693:repl
12694t repl
12695s/'"$ac_delim"'$//
12696t delim
12697:nl
12698h
b0322a85 12699s/\(.\{148\}\)..*/\1/
8d138742
CE
12700t more1
12701s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12702p
12703n
12704b repl
12705:more1
12706s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12707p
12708g
12709s/.\{148\}//
12710t nl
12711:delim
12712h
b0322a85 12713s/\(.\{148\}\)..*/\1/
8d138742
CE
12714t more2
12715s/["\\]/\\&/g; s/^/"/; s/$/"/
12716p
12717b
12718:more2
12719s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12720p
12721g
12722s/.\{148\}//
12723t delim
12724' <conf$$subs.awk | sed '
12725/^[^""]/{
12726 N
12727 s/\n//
12728}
12729' >>$CONFIG_STATUS || ac_write_fail=1
12730rm -f conf$$subs.awk
12731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12732_ACAWK
b0322a85 12733cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
12734 for (key in S) S_is_set[key] = 1
12735 FS = "\a"
d9898ee8 12736
8d138742 12737}
d9898ee8 12738{
8d138742
CE
12739 line = $ 0
12740 nfields = split(line, field, "@")
12741 substed = 0
12742 len = length(field[1])
12743 for (i = 2; i < nfields; i++) {
12744 key = field[i]
12745 keylen = length(key)
12746 if (S_is_set[key]) {
12747 value = S[key]
12748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12749 len += length(value) + length(field[++i])
12750 substed = 1
12751 } else
12752 len += 1 + keylen
d9898ee8 12753 }
d9898ee8 12754
8d138742 12755 print line
d9898ee8 12756}
8d138742
CE
12757
12758_ACAWK
d9898ee8 12759_ACEOF
8d138742
CE
12760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12761if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12762 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 12763else
8d138742 12764 cat
b0322a85
CE
12765fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12766 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 12767_ACEOF
d9898ee8 12768
b0322a85
CE
12769# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12770# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
12771# trailing colons and then remove the whole line if VPATH becomes empty
12772# (actually we leave an empty line to preserve line numbers).
12773if test "x$srcdir" = x.; then
b0322a85
CE
12774 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12775h
12776s///
12777s/^/:/
12778s/[ ]*$/:/
12779s/:\$(srcdir):/:/g
12780s/:\${srcdir}:/:/g
12781s/:@srcdir@:/:/g
12782s/^:*//
8d138742 12783s/:*$//
b0322a85
CE
12784x
12785s/\(=[ ]*\).*/\1/
12786G
12787s/\n//
8d138742
CE
12788s/^[^=]*=[ ]*$//
12789}'
d9898ee8 12790fi
dd184caf 12791
8d138742
CE
12792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12793fi # test -n "$CONFIG_FILES"
d9898ee8 12794
8d138742
CE
12795# Set up the scripts for CONFIG_HEADERS section.
12796# No need to generate them if there are no CONFIG_HEADERS.
12797# This happens for instance with `./config.status Makefile'.
12798if test -n "$CONFIG_HEADERS"; then
b0322a85 12799cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742 12800BEGIN {
d9898ee8 12801_ACEOF
12802
8d138742
CE
12803# Transform confdefs.h into an awk script `defines.awk', embedded as
12804# here-document in config.status, that substitutes the proper values into
12805# config.h.in to produce config.h.
d9898ee8 12806
8d138742
CE
12807# Create a delimiter string that does not exist in confdefs.h, to ease
12808# handling of long lines.
12809ac_delim='%!_!# '
12810for ac_last_try in false false :; do
b0322a85
CE
12811 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12812 if test -z "$ac_tt"; then
8d138742
CE
12813 break
12814 elif $ac_last_try; then
b0322a85 12815 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
12816 else
12817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12818 fi
12819done
12820
12821# For the awk script, D is an array of macro values keyed by name,
12822# likewise P contains macro parameters if any. Preserve backslash
12823# newline sequences.
12824
12825ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12826sed -n '
12827s/.\{148\}/&'"$ac_delim"'/g
12828t rset
12829:rset
12830s/^[ ]*#[ ]*define[ ][ ]*/ /
12831t def
12832d
12833:def
12834s/\\$//
12835t bsnl
12836s/["\\]/\\&/g
12837s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12838D["\1"]=" \3"/p
12839s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12840d
12841:bsnl
12842s/["\\]/\\&/g
12843s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12844D["\1"]=" \3\\\\\\n"\\/p
12845t cont
12846s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12847t cont
12848d
12849:cont
12850n
12851s/.\{148\}/&'"$ac_delim"'/g
12852t clear
12853:clear
12854s/\\$//
12855t bsnlc
12856s/["\\]/\\&/g; s/^/"/; s/$/"/p
12857d
12858:bsnlc
12859s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12860b cont
12861' <confdefs.h | sed '
12862s/'"$ac_delim"'/"\\\
12863"/g' >>$CONFIG_STATUS || ac_write_fail=1
12864
12865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12866 for (key in D) D_is_set[key] = 1
12867 FS = "\a"
12868}
12869/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12870 line = \$ 0
12871 split(line, arg, " ")
12872 if (arg[1] == "#") {
12873 defundef = arg[2]
12874 mac1 = arg[3]
12875 } else {
12876 defundef = substr(arg[1], 2)
12877 mac1 = arg[2]
12878 }
12879 split(mac1, mac2, "(") #)
12880 macro = mac2[1]
12881 prefix = substr(line, 1, index(line, defundef) - 1)
12882 if (D_is_set[macro]) {
12883 # Preserve the white space surrounding the "#".
12884 print prefix "define", macro P[macro] D[macro]
12885 next
12886 } else {
12887 # Replace #undef with comments. This is necessary, for example,
12888 # in the case of _POSIX_SOURCE, which is predefined and required
12889 # on some systems where configure will not decide to define it.
12890 if (defundef == "undef") {
12891 print "/*", prefix defundef, macro, "*/"
12892 next
12893 }
12894 }
d9898ee8 12895}
8d138742
CE
12896{ print }
12897_ACAWK
d9898ee8 12898_ACEOF
8d138742 12899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 12900 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 12901fi # test -n "$CONFIG_HEADERS"
d9898ee8 12902
dd184caf 12903
8d138742
CE
12904eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12905shift
12906for ac_tag
12907do
12908 case $ac_tag in
12909 :[FHLC]) ac_mode=$ac_tag; continue;;
12910 esac
12911 case $ac_mode$ac_tag in
12912 :[FHL]*:*);;
b0322a85 12913 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
12914 :[FH]-) ac_tag=-:-;;
12915 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12916 esac
12917 ac_save_IFS=$IFS
12918 IFS=:
12919 set x $ac_tag
12920 IFS=$ac_save_IFS
12921 shift
12922 ac_file=$1
12923 shift
d9898ee8 12924
8d138742
CE
12925 case $ac_mode in
12926 :L) ac_source=$1;;
12927 :[FH])
12928 ac_file_inputs=
12929 for ac_f
12930 do
12931 case $ac_f in
b0322a85 12932 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
12933 *) # Look for the file first in the build tree, then in the source tree
12934 # (if the path is not absolute). The absolute path cannot be DOS-style,
12935 # because $ac_f cannot contain `:'.
12936 test -f "$ac_f" ||
12937 case $ac_f in
12938 [\\/$]*) false;;
12939 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12940 esac ||
b0322a85 12941 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
12942 esac
12943 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 12944 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 12945 done
d9898ee8 12946
8d138742
CE
12947 # Let's still pretend it is `configure' which instantiates (i.e., don't
12948 # use $as_me), people would be surprised to read:
12949 # /* config.h. Generated by config.status. */
12950 configure_input='Generated from '`
12951 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12952 `' by configure.'
12953 if test x"$ac_file" != x-; then
12954 configure_input="$ac_file. $configure_input"
b0322a85 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
12956$as_echo "$as_me: creating $ac_file" >&6;}
12957 fi
12958 # Neutralize special characters interpreted by sed in replacement strings.
12959 case $configure_input in #(
12960 *\&* | *\|* | *\\* )
12961 ac_sed_conf_input=`$as_echo "$configure_input" |
12962 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12963 *) ac_sed_conf_input=$configure_input;;
12964 esac
12965
12966 case $ac_tag in
b0322a85
CE
12967 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
12969 esac
12970 ;;
12971 esac
12972
12973 ac_dir=`$as_dirname -- "$ac_file" ||
12974$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12975 X"$ac_file" : 'X\(//\)[^/]' \| \
12976 X"$ac_file" : 'X\(//\)$' \| \
12977 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12978$as_echo X"$ac_file" |
12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12980 s//\1/
12981 q
12982 }
12983 /^X\(\/\/\)[^/].*/{
12984 s//\1/
12985 q
12986 }
12987 /^X\(\/\/\)$/{
12988 s//\1/
12989 q
12990 }
12991 /^X\(\/\).*/{
12992 s//\1/
12993 q
12994 }
12995 s/.*/./; q'`
b0322a85 12996 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742
CE
12997 ac_builddir=.
12998
12999case "$ac_dir" in
13000.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13001*)
13002 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13003 # A ".." for each directory in $ac_dir_suffix.
13004 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13005 case $ac_top_builddir_sub in
13006 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13007 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13008 esac ;;
13009esac
13010ac_abs_top_builddir=$ac_pwd
13011ac_abs_builddir=$ac_pwd$ac_dir_suffix
13012# for backward compatibility:
13013ac_top_builddir=$ac_top_build_prefix
d9898ee8 13014
8d138742
CE
13015case $srcdir in
13016 .) # We are building in place.
13017 ac_srcdir=.
13018 ac_top_srcdir=$ac_top_builddir_sub
13019 ac_abs_top_srcdir=$ac_pwd ;;
13020 [\\/]* | ?:[\\/]* ) # Absolute name.
13021 ac_srcdir=$srcdir$ac_dir_suffix;
13022 ac_top_srcdir=$srcdir
13023 ac_abs_top_srcdir=$srcdir ;;
13024 *) # Relative name.
13025 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13026 ac_top_srcdir=$ac_top_build_prefix$srcdir
13027 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13028esac
13029ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 13030
13031
8d138742
CE
13032 case $ac_mode in
13033 :F)
13034 #
13035 # CONFIG_FILE
13036 #
d9898ee8 13037
8d138742
CE
13038 case $INSTALL in
13039 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13040 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13041 esac
13042 ac_MKDIR_P=$MKDIR_P
13043 case $MKDIR_P in
13044 [\\/$]* | ?:[\\/]* ) ;;
13045 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13046 esac
13047_ACEOF
d9898ee8 13048
8d138742
CE
13049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13050# If the template does not know about datarootdir, expand it.
13051# FIXME: This hack should be removed a few years after 2.60.
13052ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
13053ac_sed_dataroot='
13054/datarootdir/ {
13055 p
13056 q
13057}
13058/@datadir@/p
13059/@docdir@/p
13060/@infodir@/p
13061/@localedir@/p
b0322a85 13062/@mandir@/p'
8d138742
CE
13063case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13064*datarootdir*) ac_datarootdir_seen=yes;;
13065*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742
CE
13067$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13068_ACEOF
13069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13070 ac_datarootdir_hack='
13071 s&@datadir@&$datadir&g
13072 s&@docdir@&$docdir&g
13073 s&@infodir@&$infodir&g
13074 s&@localedir@&$localedir&g
13075 s&@mandir@&$mandir&g
b0322a85 13076 s&\\\${datarootdir}&$datarootdir&g' ;;
8d138742
CE
13077esac
13078_ACEOF
d9898ee8 13079
8d138742
CE
13080# Neutralize VPATH when `$srcdir' = `.'.
13081# Shell code in configure.ac might set extrasub.
13082# FIXME: do we really want to maintain this feature?
13083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13084ac_sed_extra="$ac_vpsub
13085$extrasub
13086_ACEOF
13087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088:t
13089/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13090s|@configure_input@|$ac_sed_conf_input|;t t
13091s&@top_builddir@&$ac_top_builddir_sub&;t t
13092s&@top_build_prefix@&$ac_top_build_prefix&;t t
13093s&@srcdir@&$ac_srcdir&;t t
13094s&@abs_srcdir@&$ac_abs_srcdir&;t t
13095s&@top_srcdir@&$ac_top_srcdir&;t t
13096s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13097s&@builddir@&$ac_builddir&;t t
13098s&@abs_builddir@&$ac_abs_builddir&;t t
13099s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13100s&@INSTALL@&$ac_INSTALL&;t t
13101s&@MKDIR_P@&$ac_MKDIR_P&;t t
13102$ac_datarootdir_hack
13103"
b0322a85
CE
13104eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13105 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 13106
8d138742 13107test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
13108 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13110 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13112which seems to be undefined. Please make sure it is defined" >&5
8d138742 13113$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 13114which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 13115
b0322a85 13116 rm -f "$ac_tmp/stdin"
8d138742 13117 case $ac_file in
b0322a85
CE
13118 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13119 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 13120 esac \
b0322a85 13121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13122 ;;
13123 :H)
13124 #
13125 # CONFIG_HEADER
13126 #
13127 if test x"$ac_file" != x-; then
13128 {
13129 $as_echo "/* $configure_input */" \
b0322a85
CE
13130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13131 } >"$ac_tmp/config.h" \
13132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13133 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
13135$as_echo "$as_me: $ac_file is unchanged" >&6;}
13136 else
13137 rm -f "$ac_file"
b0322a85
CE
13138 mv "$ac_tmp/config.h" "$ac_file" \
13139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13140 fi
13141 else
13142 $as_echo "/* $configure_input */" \
b0322a85
CE
13143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13144 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
13145 fi
13146# Compute "$ac_file"'s index in $config_headers.
13147_am_arg="$ac_file"
13148_am_stamp_count=1
13149for _am_header in $config_headers :; do
13150 case $_am_header in
13151 $_am_arg | $_am_arg:* )
13152 break ;;
13153 * )
13154 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13155 esac
13156done
13157echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13158$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13159 X"$_am_arg" : 'X\(//\)[^/]' \| \
13160 X"$_am_arg" : 'X\(//\)$' \| \
13161 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13162$as_echo X"$_am_arg" |
13163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13164 s//\1/
13165 q
13166 }
13167 /^X\(\/\/\)[^/].*/{
13168 s//\1/
13169 q
13170 }
13171 /^X\(\/\/\)$/{
13172 s//\1/
13173 q
13174 }
13175 /^X\(\/\).*/{
13176 s//\1/
13177 q
13178 }
13179 s/.*/./; q'`/stamp-h$_am_stamp_count
13180 ;;
d9898ee8 13181
b0322a85 13182 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
13183$as_echo "$as_me: executing $ac_file commands" >&6;}
13184 ;;
13185 esac
d9898ee8 13186
13187
8d138742
CE
13188 case $ac_file$ac_mode in
13189 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 13190 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
13191 # are listed without --file. Let's play safe and only enable the eval
13192 # if we detect the quoting.
13193 case $CONFIG_FILES in
13194 *\'*) eval set x "$CONFIG_FILES" ;;
13195 *) set x $CONFIG_FILES ;;
13196 esac
13197 shift
13198 for mf
13199 do
13200 # Strip MF so we end up with the name of the file.
13201 mf=`echo "$mf" | sed -e 's/:.*$//'`
13202 # Check whether this is an Automake generated Makefile or not.
b0322a85 13203 # We used to match only the files named 'Makefile.in', but
8d138742
CE
13204 # some people rename them; so instead we look at the file content.
13205 # Grep'ing the first line is not enough: some people post-process
13206 # each Makefile.in and add a new line on top of each file to say so.
13207 # Grep'ing the whole file is not good either: AIX grep has a line
13208 # limit of 2048, but all sed's we know have understand at least 4000.
13209 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13210 dirpart=`$as_dirname -- "$mf" ||
13211$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13212 X"$mf" : 'X\(//\)[^/]' \| \
13213 X"$mf" : 'X\(//\)$' \| \
13214 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13215$as_echo X"$mf" |
13216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13217 s//\1/
13218 q
13219 }
13220 /^X\(\/\/\)[^/].*/{
13221 s//\1/
13222 q
13223 }
13224 /^X\(\/\/\)$/{
13225 s//\1/
13226 q
13227 }
13228 /^X\(\/\).*/{
13229 s//\1/
13230 q
13231 }
13232 s/.*/./; q'`
13233 else
13234 continue
13235 fi
13236 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 13237 # from the Makefile without running 'make'.
8d138742
CE
13238 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13239 test -z "$DEPDIR" && continue
13240 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 13241 test -z "$am__include" && continue
8d138742 13242 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
13243 # Find all dependency output files, they are included files with
13244 # $(DEPDIR) in their names. We invoke sed twice because it is the
13245 # simplest approach to changing $(DEPDIR) to its actual value in the
13246 # expansion.
13247 for file in `sed -n "
13248 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 13249 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
13250 # Make sure the directory exists.
13251 test -f "$dirpart/$file" && continue
13252 fdir=`$as_dirname -- "$file" ||
13253$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13254 X"$file" : 'X\(//\)[^/]' \| \
13255 X"$file" : 'X\(//\)$' \| \
13256 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13257$as_echo X"$file" |
13258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13259 s//\1/
13260 q
13261 }
13262 /^X\(\/\/\)[^/].*/{
13263 s//\1/
13264 q
13265 }
13266 /^X\(\/\/\)$/{
13267 s//\1/
13268 q
13269 }
13270 /^X\(\/\).*/{
13271 s//\1/
13272 q
13273 }
13274 s/.*/./; q'`
b0322a85 13275 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
13276 # echo "creating $dirpart/$file"
13277 echo '# dummy' > "$dirpart/$file"
13278 done
13279 done
13280}
13281 ;;
13282 "libtool":C)
d9898ee8 13283
8d138742
CE
13284 # See if we are running on zsh, and set the options which allow our
13285 # commands through without removal of \ escapes.
13286 if test -n "${ZSH_VERSION+set}" ; then
13287 setopt NO_GLOB_SUBST
13288 fi
d9898ee8 13289
8d138742
CE
13290 cfgfile="${ofile}T"
13291 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13292 $RM "$cfgfile"
d9898ee8 13293
8d138742
CE
13294 cat <<_LT_EOF >> "$cfgfile"
13295#! $SHELL
dd184caf 13296
8d138742
CE
13297# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13298# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13299# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13300# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 13301#
8d138742 13302# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
b0322a85
CE
13303# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13304# Foundation, Inc.
8d138742 13305# Written by Gordon Matzigkeit, 1996
d9898ee8 13306#
8d138742
CE
13307# This file is part of GNU Libtool.
13308#
13309# GNU Libtool is free software; you can redistribute it and/or
13310# modify it under the terms of the GNU General Public License as
13311# published by the Free Software Foundation; either version 2 of
13312# the License, or (at your option) any later version.
13313#
13314# As a special exception to the GNU General Public License,
13315# if you distribute this file as part of a program or library that
13316# is built using GNU Libtool, you may include this file under the
13317# same distribution terms that you use for the rest of that program.
13318#
13319# GNU Libtool is distributed in the hope that it will be useful,
13320# but WITHOUT ANY WARRANTY; without even the implied warranty of
13321# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13322# GNU General Public License for more details.
13323#
13324# You should have received a copy of the GNU General Public License
13325# along with GNU Libtool; see the file COPYING. If not, a copy
13326# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13327# obtained by writing to the Free Software Foundation, Inc.,
13328# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 13329
d9898ee8 13330
8d138742
CE
13331# The names of the tagged configurations supported by this script.
13332available_tags=""
d9898ee8 13333
8d138742 13334# ### BEGIN LIBTOOL CONFIG
d9898ee8 13335
8d138742
CE
13336# Which release of libtool.m4 was used?
13337macro_version=$macro_version
13338macro_revision=$macro_revision
d9898ee8 13339
8d138742
CE
13340# Whether or not to build shared libraries.
13341build_libtool_libs=$enable_shared
d9898ee8 13342
8d138742
CE
13343# Whether or not to build static libraries.
13344build_old_libs=$enable_static
d9898ee8 13345
8d138742
CE
13346# What type of objects to build.
13347pic_mode=$pic_mode
d9898ee8 13348
8d138742
CE
13349# Whether or not to optimize for fast installation.
13350fast_install=$enable_fast_install
d9898ee8 13351
b0322a85
CE
13352# Shell to use when invoking shell scripts.
13353SHELL=$lt_SHELL
13354
13355# An echo program that protects backslashes.
13356ECHO=$lt_ECHO
13357
13358# The PATH separator for the build system.
13359PATH_SEPARATOR=$lt_PATH_SEPARATOR
13360
8d138742
CE
13361# The host system.
13362host_alias=$host_alias
13363host=$host
13364host_os=$host_os
d9898ee8 13365
8d138742
CE
13366# The build system.
13367build_alias=$build_alias
13368build=$build
13369build_os=$build_os
dd184caf 13370
8d138742
CE
13371# A sed program that does not truncate output.
13372SED=$lt_SED
dd184caf 13373
8d138742
CE
13374# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13375Xsed="\$SED -e 1s/^X//"
dd184caf 13376
8d138742
CE
13377# A grep program that handles long lines.
13378GREP=$lt_GREP
dd184caf 13379
8d138742
CE
13380# An ERE matcher.
13381EGREP=$lt_EGREP
dd184caf 13382
8d138742
CE
13383# A literal string matcher.
13384FGREP=$lt_FGREP
dd184caf 13385
8d138742
CE
13386# A BSD- or MS-compatible name lister.
13387NM=$lt_NM
d9898ee8 13388
8d138742
CE
13389# Whether we need soft or hard links.
13390LN_S=$lt_LN_S
d9898ee8 13391
8d138742
CE
13392# What is the maximum length of a command?
13393max_cmd_len=$max_cmd_len
d9898ee8 13394
8d138742
CE
13395# Object file suffix (normally "o").
13396objext=$ac_objext
dd184caf 13397
8d138742
CE
13398# Executable file suffix (normally "").
13399exeext=$exeext
dd184caf 13400
8d138742
CE
13401# whether the shell understands "unset".
13402lt_unset=$lt_unset
dd184caf 13403
8d138742
CE
13404# turn spaces into newlines.
13405SP2NL=$lt_lt_SP2NL
d9898ee8 13406
8d138742
CE
13407# turn newlines into spaces.
13408NL2SP=$lt_lt_NL2SP
d9898ee8 13409
b0322a85
CE
13410# convert \$build file names to \$host format.
13411to_host_file_cmd=$lt_cv_to_host_file_cmd
13412
13413# convert \$build files to toolchain format.
13414to_tool_file_cmd=$lt_cv_to_tool_file_cmd
d9898ee8 13415
8d138742
CE
13416# An object symbol dumper.
13417OBJDUMP=$lt_OBJDUMP
d9898ee8 13418
8d138742
CE
13419# Method to check whether dependent libraries are shared objects.
13420deplibs_check_method=$lt_deplibs_check_method
d9898ee8 13421
b0322a85 13422# Command to use when deplibs_check_method = "file_magic".
8d138742 13423file_magic_cmd=$lt_file_magic_cmd
d9898ee8 13424
b0322a85
CE
13425# How to find potential files when deplibs_check_method = "file_magic".
13426file_magic_glob=$lt_file_magic_glob
13427
13428# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13429want_nocaseglob=$lt_want_nocaseglob
13430
13431# DLL creation program.
13432DLLTOOL=$lt_DLLTOOL
13433
13434# Command to associate shared and link libraries.
13435sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13436
8d138742
CE
13437# The archiver.
13438AR=$lt_AR
b0322a85
CE
13439
13440# Flags to create an archive.
8d138742 13441AR_FLAGS=$lt_AR_FLAGS
d9898ee8 13442
b0322a85
CE
13443# How to feed a file listing to the archiver.
13444archiver_list_spec=$lt_archiver_list_spec
13445
8d138742
CE
13446# A symbol stripping program.
13447STRIP=$lt_STRIP
d9898ee8 13448
8d138742
CE
13449# Commands used to install an old-style archive.
13450RANLIB=$lt_RANLIB
13451old_postinstall_cmds=$lt_old_postinstall_cmds
13452old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 13453
b0322a85
CE
13454# Whether to use a lock for old archive extraction.
13455lock_old_archive_extraction=$lock_old_archive_extraction
13456
8d138742
CE
13457# A C compiler.
13458LTCC=$lt_CC
d9898ee8 13459
8d138742
CE
13460# LTCC compiler flags.
13461LTCFLAGS=$lt_CFLAGS
d9898ee8 13462
8d138742
CE
13463# Take the output of nm and produce a listing of raw symbols and C names.
13464global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 13465
8d138742
CE
13466# Transform the output of nm in a proper C declaration.
13467global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 13468
8d138742
CE
13469# Transform the output of nm in a C name address pair.
13470global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
dd184caf 13471
8d138742
CE
13472# Transform the output of nm in a C name address pair when lib prefix is needed.
13473global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13474
b0322a85
CE
13475# Specify filename containing input files for \$NM.
13476nm_file_list_spec=$lt_nm_file_list_spec
8d138742 13477
b0322a85
CE
13478# The root where to search for dependent libraries,and in which our libraries should be installed.
13479lt_sysroot=$lt_sysroot
8d138742 13480
b0322a85
CE
13481# The name of the directory that contains temporary libtool files.
13482objdir=$objdir
d9898ee8 13483
8d138742
CE
13484# Used to examine libraries when file_magic_cmd begins with "file".
13485MAGIC_CMD=$MAGIC_CMD
d9898ee8 13486
8d138742
CE
13487# Must we lock files when doing compilation?
13488need_locks=$lt_need_locks
d9898ee8 13489
b0322a85
CE
13490# Manifest tool.
13491MANIFEST_TOOL=$lt_MANIFEST_TOOL
13492
8d138742
CE
13493# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13494DSYMUTIL=$lt_DSYMUTIL
d9898ee8 13495
8d138742
CE
13496# Tool to change global to local symbols on Mac OS X.
13497NMEDIT=$lt_NMEDIT
d9898ee8 13498
8d138742
CE
13499# Tool to manipulate fat objects and archives on Mac OS X.
13500LIPO=$lt_LIPO
d9898ee8 13501
8d138742
CE
13502# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13503OTOOL=$lt_OTOOL
d9898ee8 13504
8d138742
CE
13505# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13506OTOOL64=$lt_OTOOL64
d9898ee8 13507
8d138742
CE
13508# Old archive suffix (normally "a").
13509libext=$libext
d9898ee8 13510
8d138742
CE
13511# Shared library suffix (normally ".so").
13512shrext_cmds=$lt_shrext_cmds
d9898ee8 13513
8d138742
CE
13514# The commands to extract the exported symbol list from a shared archive.
13515extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 13516
8d138742
CE
13517# Variables whose values should be saved in libtool wrapper scripts and
13518# restored at link time.
13519variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 13520
8d138742
CE
13521# Do we need the "lib" prefix for modules?
13522need_lib_prefix=$need_lib_prefix
d9898ee8 13523
8d138742
CE
13524# Do we need a version for libraries?
13525need_version=$need_version
d9898ee8 13526
8d138742
CE
13527# Library versioning type.
13528version_type=$version_type
d9898ee8 13529
8d138742
CE
13530# Shared library runtime path variable.
13531runpath_var=$runpath_var
d9898ee8 13532
8d138742
CE
13533# Shared library path variable.
13534shlibpath_var=$shlibpath_var
d9898ee8 13535
8d138742
CE
13536# Is shlibpath searched before the hard-coded library search path?
13537shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 13538
8d138742
CE
13539# Format of library name prefix.
13540libname_spec=$lt_libname_spec
d9898ee8 13541
8d138742
CE
13542# List of archive names. First name is the real one, the rest are links.
13543# The last name is the one that the linker finds with -lNAME
13544library_names_spec=$lt_library_names_spec
d9898ee8 13545
8d138742
CE
13546# The coded name of the library, if different from the real name.
13547soname_spec=$lt_soname_spec
d9898ee8 13548
b0322a85
CE
13549# Permission mode override for installation of shared libraries.
13550install_override_mode=$lt_install_override_mode
13551
8d138742
CE
13552# Command to use after installation of a shared archive.
13553postinstall_cmds=$lt_postinstall_cmds
d9898ee8 13554
8d138742
CE
13555# Command to use after uninstallation of a shared archive.
13556postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 13557
8d138742
CE
13558# Commands used to finish a libtool library installation in a directory.
13559finish_cmds=$lt_finish_cmds
dd184caf 13560
8d138742
CE
13561# As "finish_cmds", except a single script fragment to be evaled but
13562# not shown.
13563finish_eval=$lt_finish_eval
d9898ee8 13564
8d138742
CE
13565# Whether we should hardcode library paths into libraries.
13566hardcode_into_libs=$hardcode_into_libs
d9898ee8 13567
8d138742
CE
13568# Compile-time system search path for libraries.
13569sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13570
8d138742
CE
13571# Run-time system search path for libraries.
13572sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 13573
8d138742
CE
13574# Whether dlopen is supported.
13575dlopen_support=$enable_dlopen
d9898ee8 13576
8d138742
CE
13577# Whether dlopen of programs is supported.
13578dlopen_self=$enable_dlopen_self
d9898ee8 13579
8d138742
CE
13580# Whether dlopen of statically linked programs is supported.
13581dlopen_self_static=$enable_dlopen_self_static
d9898ee8 13582
8d138742
CE
13583# Commands to strip libraries.
13584old_striplib=$lt_old_striplib
13585striplib=$lt_striplib
d9898ee8 13586
d9898ee8 13587
8d138742
CE
13588# The linker used to build libraries.
13589LD=$lt_LD
d9898ee8 13590
b0322a85
CE
13591# How to create reloadable object files.
13592reload_flag=$lt_reload_flag
13593reload_cmds=$lt_reload_cmds
13594
8d138742
CE
13595# Commands used to build an old-style archive.
13596old_archive_cmds=$lt_old_archive_cmds
d9898ee8 13597
8d138742
CE
13598# A language specific compiler.
13599CC=$lt_compiler
d9898ee8 13600
8d138742
CE
13601# Is the compiler the GNU compiler?
13602with_gcc=$GCC
dd184caf 13603
8d138742
CE
13604# Compiler flag to turn off builtin functions.
13605no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 13606
8d138742
CE
13607# Additional compiler flags for building library objects.
13608pic_flag=$lt_lt_prog_compiler_pic
dd184caf 13609
b0322a85
CE
13610# How to pass a linker flag through the compiler.
13611wl=$lt_lt_prog_compiler_wl
13612
8d138742
CE
13613# Compiler flag to prevent dynamic linking.
13614link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 13615
8d138742
CE
13616# Does compiler simultaneously support -c and -o options?
13617compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13618
13619# Whether or not to add -lc for building shared libraries.
13620build_libtool_need_lc=$archive_cmds_need_lc
13621
13622# Whether or not to disallow shared libs when runtime libs are static.
13623allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13624
13625# Compiler flag to allow reflexive dlopens.
13626export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 13627
8d138742
CE
13628# Compiler flag to generate shared objects directly from archives.
13629whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 13630
8d138742
CE
13631# Whether the compiler copes with passing no objects directly.
13632compiler_needs_object=$lt_compiler_needs_object
d9898ee8 13633
8d138742
CE
13634# Create an old-style archive from a shared archive.
13635old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 13636
8d138742
CE
13637# Create a temporary old-style archive to link instead of a shared archive.
13638old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 13639
8d138742
CE
13640# Commands used to build a shared archive.
13641archive_cmds=$lt_archive_cmds
13642archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 13643
8d138742
CE
13644# Commands used to build a loadable module if different from building
13645# a shared archive.
13646module_cmds=$lt_module_cmds
13647module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 13648
8d138742
CE
13649# Whether we are building with GNU ld or not.
13650with_gnu_ld=$lt_with_gnu_ld
dd184caf 13651
8d138742
CE
13652# Flag that allows shared libraries with undefined symbols to be built.
13653allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 13654
8d138742
CE
13655# Flag that enforces no undefined symbols.
13656no_undefined_flag=$lt_no_undefined_flag
dd184caf 13657
8d138742
CE
13658# Flag to hardcode \$libdir into a binary during linking.
13659# This must work even if \$libdir does not exist
13660hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 13661
8d138742
CE
13662# Whether we need a single "-rpath" flag with a separated argument.
13663hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 13664
8d138742
CE
13665# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13666# DIR into the resulting binary.
13667hardcode_direct=$hardcode_direct
dd184caf 13668
8d138742
CE
13669# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13670# DIR into the resulting binary and the resulting library dependency is
13671# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13672# library is relocated.
13673hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 13674
8d138742
CE
13675# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13676# into the resulting binary.
13677hardcode_minus_L=$hardcode_minus_L
dd184caf 13678
8d138742
CE
13679# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13680# into the resulting binary.
13681hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 13682
8d138742
CE
13683# Set to "yes" if building a shared library automatically hardcodes DIR
13684# into the library and all subsequent libraries and executables linked
13685# against it.
13686hardcode_automatic=$hardcode_automatic
dd184caf 13687
8d138742
CE
13688# Set to yes if linker adds runtime paths of dependent libraries
13689# to runtime path list.
13690inherit_rpath=$inherit_rpath
dd184caf 13691
8d138742
CE
13692# Whether libtool must link a program against all its dependency libraries.
13693link_all_deplibs=$link_all_deplibs
dd184caf 13694
8d138742
CE
13695# Set to "yes" if exported symbols are required.
13696always_export_symbols=$always_export_symbols
dd184caf 13697
8d138742
CE
13698# The commands to list exported symbols.
13699export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 13700
8d138742
CE
13701# Symbols that should not be listed in the preloaded symbols.
13702exclude_expsyms=$lt_exclude_expsyms
d9898ee8 13703
8d138742
CE
13704# Symbols that must always be exported.
13705include_expsyms=$lt_include_expsyms
d9898ee8 13706
8d138742
CE
13707# Commands necessary for linking programs (against libraries) with templates.
13708prelink_cmds=$lt_prelink_cmds
d9898ee8 13709
b0322a85
CE
13710# Commands necessary for finishing linking programs.
13711postlink_cmds=$lt_postlink_cmds
13712
8d138742
CE
13713# Specify filename containing input files.
13714file_list_spec=$lt_file_list_spec
13715
13716# How to hardcode a shared library path into an executable.
13717hardcode_action=$hardcode_action
d9898ee8 13718
8d138742 13719# ### END LIBTOOL CONFIG
d9898ee8 13720
8d138742 13721_LT_EOF
d9898ee8 13722
8d138742
CE
13723 case $host_os in
13724 aix3*)
13725 cat <<\_LT_EOF >> "$cfgfile"
13726# AIX sometimes has problems with the GCC collect2 program. For some
13727# reason, if we set the COLLECT_NAMES environment variable, the problems
13728# vanish in a puff of smoke.
13729if test "X${COLLECT_NAMES+set}" != Xset; then
13730 COLLECT_NAMES=
13731 export COLLECT_NAMES
13732fi
13733_LT_EOF
13734 ;;
d9898ee8 13735 esac
8d138742
CE
13736
13737
13738ltmain="$ac_aux_dir/ltmain.sh"
13739
13740
13741 # We use sed instead of cat because bash on DJGPP gets confused if
13742 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13743 # text mode, it properly converts lines to CR/LF. This bash problem
13744 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
13745 sed '$q' "$ltmain" >> "$cfgfile" \
13746 || (rm -f "$cfgfile"; exit 1)
13747
13748 if test x"$xsi_shell" = xyes; then
13749 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13750func_dirname ()\
13751{\
13752\ case ${1} in\
13753\ */*) func_dirname_result="${1%/*}${2}" ;;\
13754\ * ) func_dirname_result="${3}" ;;\
13755\ esac\
13756} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13757 && mv -f "$cfgfile.tmp" "$cfgfile" \
13758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13759test 0 -eq $? || _lt_function_replace_fail=:
13760
13761
13762 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13763func_basename ()\
13764{\
13765\ func_basename_result="${1##*/}"\
13766} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13767 && mv -f "$cfgfile.tmp" "$cfgfile" \
13768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13769test 0 -eq $? || _lt_function_replace_fail=:
13770
13771
13772 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13773func_dirname_and_basename ()\
13774{\
13775\ case ${1} in\
13776\ */*) func_dirname_result="${1%/*}${2}" ;;\
13777\ * ) func_dirname_result="${3}" ;;\
13778\ esac\
13779\ func_basename_result="${1##*/}"\
13780} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13781 && mv -f "$cfgfile.tmp" "$cfgfile" \
13782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13783test 0 -eq $? || _lt_function_replace_fail=:
13784
13785
13786 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13787func_stripname ()\
13788{\
13789\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13790\ # positional parameters, so assign one to ordinary parameter first.\
13791\ func_stripname_result=${3}\
13792\ func_stripname_result=${func_stripname_result#"${1}"}\
13793\ func_stripname_result=${func_stripname_result%"${2}"}\
13794} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13795 && mv -f "$cfgfile.tmp" "$cfgfile" \
13796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13797test 0 -eq $? || _lt_function_replace_fail=:
13798
13799
13800 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13801func_split_long_opt ()\
13802{\
13803\ func_split_long_opt_name=${1%%=*}\
13804\ func_split_long_opt_arg=${1#*=}\
13805} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13806 && mv -f "$cfgfile.tmp" "$cfgfile" \
13807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13808test 0 -eq $? || _lt_function_replace_fail=:
13809
13810
13811 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13812func_split_short_opt ()\
13813{\
13814\ func_split_short_opt_arg=${1#??}\
13815\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13816} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13817 && mv -f "$cfgfile.tmp" "$cfgfile" \
13818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13819test 0 -eq $? || _lt_function_replace_fail=:
13820
13821
13822 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13823func_lo2o ()\
13824{\
13825\ case ${1} in\
13826\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13827\ *) func_lo2o_result=${1} ;;\
13828\ esac\
13829} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13830 && mv -f "$cfgfile.tmp" "$cfgfile" \
13831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13832test 0 -eq $? || _lt_function_replace_fail=:
13833
13834
13835 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13836func_xform ()\
13837{\
13838 func_xform_result=${1%.*}.lo\
13839} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13840 && mv -f "$cfgfile.tmp" "$cfgfile" \
13841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13842test 0 -eq $? || _lt_function_replace_fail=:
13843
13844
13845 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13846func_arith ()\
13847{\
13848 func_arith_result=$(( $* ))\
13849} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13850 && mv -f "$cfgfile.tmp" "$cfgfile" \
13851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13852test 0 -eq $? || _lt_function_replace_fail=:
13853
13854
13855 sed -e '/^func_len ()$/,/^} # func_len /c\
13856func_len ()\
13857{\
13858 func_len_result=${#1}\
13859} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13860 && mv -f "$cfgfile.tmp" "$cfgfile" \
13861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13862test 0 -eq $? || _lt_function_replace_fail=:
13863
13864fi
13865
13866if test x"$lt_shell_append" = xyes; then
13867 sed -e '/^func_append ()$/,/^} # func_append /c\
13868func_append ()\
13869{\
13870 eval "${1}+=\\${2}"\
13871} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13872 && mv -f "$cfgfile.tmp" "$cfgfile" \
13873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13874test 0 -eq $? || _lt_function_replace_fail=:
13875
13876
13877 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13878func_append_quoted ()\
13879{\
13880\ func_quote_for_eval "${2}"\
13881\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13882} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13883 && mv -f "$cfgfile.tmp" "$cfgfile" \
13884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13885test 0 -eq $? || _lt_function_replace_fail=:
13886
13887
13888 # Save a `func_append' function call where possible by direct use of '+='
13889 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13890 && mv -f "$cfgfile.tmp" "$cfgfile" \
13891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13892 test 0 -eq $? || _lt_function_replace_fail=:
13893else
13894 # Save a `func_append' function call even when '+=' is not available
13895 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13896 && mv -f "$cfgfile.tmp" "$cfgfile" \
13897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13898 test 0 -eq $? || _lt_function_replace_fail=:
13899fi
13900
13901if test x"$_lt_function_replace_fail" = x":"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13903$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13904fi
13905
13906
13907 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
13908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13909 chmod +x "$ofile"
13910
d9898ee8 13911 ;;
dd184caf 13912
d9898ee8 13913 esac
dd184caf 13914done # for ac_tag
d9898ee8 13915
d9898ee8 13916
b0322a85 13917as_fn_exit 0
d9898ee8 13918_ACEOF
d9898ee8 13919ac_clean_files=$ac_clean_files_save
13920
8d138742 13921test $ac_write_fail = 0 ||
b0322a85 13922 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 13923
d9898ee8 13924
13925# configure is writing to config.log, and then calls config.status.
13926# config.status does its own redirection, appending to config.log.
13927# Unfortunately, on DOS this fails, as config.log is still kept open
13928# by configure, so config.status won't be able to write to it; its
13929# output is simply discarded. So we exec the FD to /dev/null,
13930# effectively closing config.log, so it can be properly (re)opened and
13931# appended to by config.status. When coming back to configure, we
13932# need to make the FD available again.
13933if test "$no_create" != yes; then
13934 ac_cs_success=:
13935 ac_config_status_args=
13936 test "$silent" = yes &&
13937 ac_config_status_args="$ac_config_status_args --quiet"
13938 exec 5>/dev/null
13939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13940 exec 5>>config.log
13941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13942 # would make configure fail if this is the last instruction.
b0322a85 13943 $ac_cs_success || as_fn_exit 1
d9898ee8 13944fi
8d138742 13945if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
13947$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13948fi
d9898ee8 13949