Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / liblog / 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 courierlogger 0.10.
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='courierlogger'
592PACKAGE_TARNAME='courierlogger'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='courierlogger 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="logger.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
dd184caf 602#ifdef HAVE_SYS_TYPES_H
d9898ee8 603# include <sys/types.h>
604#endif
dd184caf 605#ifdef HAVE_SYS_STAT_H
d9898ee8 606# include <sys/stat.h>
607#endif
dd184caf 608#ifdef STDC_HEADERS
d9898ee8 609# include <stdlib.h>
610# include <stddef.h>
611#else
dd184caf 612# ifdef HAVE_STDLIB_H
d9898ee8 613# include <stdlib.h>
614# endif
615#endif
dd184caf 616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 618# include <memory.h>
619# endif
620# include <string.h>
621#endif
dd184caf 622#ifdef HAVE_STRINGS_H
d9898ee8 623# include <strings.h>
624#endif
dd184caf 625#ifdef HAVE_INTTYPES_H
d9898ee8 626# include <inttypes.h>
d9898ee8 627#endif
dd184caf 628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
d9898ee8 632# include <unistd.h>
633#endif"
634
8d138742
CE
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_SGML_FALSE
640HAVE_SGML_TRUE
dd184caf 641CPP
d50284c4 642LT_SYS_LIBRARY_PATH
8d138742
CE
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
b0322a85 648MANIFEST_TOOL
8d138742 649RANLIB
b0322a85 650ac_ct_AR
8d138742 651AR
b0322a85 652DLLTOOL
8d138742
CE
653OBJDUMP
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659EGREP
660GREP
661SED
662host_os
663host_vendor
664host_cpu
665host
666build_os
667build_vendor
668build_cpu
669build
dd184caf 670LIBTOOL
8d138742
CE
671LN_S
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
b0322a85 675am__nodep
8d138742
CE
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
b0322a85
CE
689AM_BACKSLASH
690AM_DEFAULT_VERBOSITY
691AM_DEFAULT_V
692AM_V
8d138742
CE
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
b0322a85 746PACKAGE_URL
8d138742
CE
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
d9898ee8 754ac_subst_files=''
8d138742
CE
755ac_user_opts='
756enable_option_checking
b0322a85 757enable_silent_rules
8d138742
CE
758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
d50284c4 763with_aix_soname
8d138742 764with_gnu_ld
b0322a85 765with_sysroot
8d138742 766enable_libtool_lock
b0322a85 767enable_largefile
8d138742
CE
768with_syslog
769'
dd184caf 770 ac_precious_vars='build_alias
771host_alias
772target_alias
773CC
774CFLAGS
775LDFLAGS
776LIBS
777CPPFLAGS
d50284c4 778LT_SYS_LIBRARY_PATH
8d138742 779CPP'
dd184caf 780
d9898ee8 781
782# Initialize some variables set by options.
783ac_init_help=
784ac_init_version=false
8d138742
CE
785ac_unrecognized_opts=
786ac_unrecognized_sep=
d9898ee8 787# The variables have the same names as the options, with
788# dashes changed to underlines.
789cache_file=/dev/null
790exec_prefix=NONE
791no_create=
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
800verbose=
801x_includes=NONE
802x_libraries=NONE
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 809# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
dd184caf 813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
d9898ee8 815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
d9898ee8 818includedir='${prefix}/include'
819oldincludedir='/usr/include'
dd184caf 820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
d9898ee8 829
830ac_prev=
dd184caf 831ac_dashdash=
d9898ee8 832for ac_option
833do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
dd184caf 836 eval $ac_prev=\$ac_option
d9898ee8 837 ac_prev=
838 continue
839 fi
840
dd184caf 841 case $ac_option in
b0322a85
CE
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
dd184caf 845 esac
d9898ee8 846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
dd184caf 849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
d9898ee8 852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
dd184caf 873 -datadir | --datadir | --datadi | --datad)
d9898ee8 874 ac_prev=datadir ;;
dd184caf 875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 876 datadir=$ac_optarg ;;
877
dd184caf 878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
d9898ee8 885 -disable-* | --disable-*)
8d138742 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 887 # Reject names that are not valid shell variable names.
8d138742 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 889 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894"enable_$ac_useropt"
895"*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
dd184caf 900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
d9898ee8 910
911 -enable-* | --enable-*)
8d138742 912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 913 # Reject names that are not valid shell variable names.
8d138742 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 915 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920"enable_$ac_useropt"
921"*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
dd184caf 952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
d9898ee8 958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
dd184caf 982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
d9898ee8 987 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 988 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
dd184caf 1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
d9898ee8 1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
8d138742 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1117 # Reject names that are not valid shell variable names.
8d138742 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1119 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124"with_$ac_useropt"
1125"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1130
1131 -without-* | --without-*)
8d138742 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1133 # Reject names that are not valid shell variable names.
8d138742 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1135 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
d9898ee8 1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
b0322a85
CE
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information"
d9898ee8 1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
b0322a85
CE
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
dd184caf 1176 eval $ac_envvar=\$ac_optarg
d9898ee8 1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
8d138742 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1185 ;;
1186
1187 esac
1188done
1189
1190if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1192 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1193fi
1194
8d138742
CE
1195if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
b0322a85 1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201fi
1202
1203# Check all directory arguments for consistency.
dd184caf 1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
d9898ee8 1208do
dd184caf 1209 eval ac_val=\$$ac_var
8d138742
CE
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
d9898ee8 1217 case $ac_val in
dd184caf 1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1220 esac
b0322a85 1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1222done
1223
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
d9898ee8 1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
dd184caf 1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1249 as_fn_error $? "working directory cannot be determined"
dd184caf 1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1251 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1252
1253
d9898ee8 1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
dd184caf 1257 # Try the directory containing this script, then the parent directory.
8d138742
CE
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
dd184caf 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
d9898ee8 1281 srcdir=$ac_confdir
dd184caf 1282 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
dd184caf 1288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1291fi
dd184caf 1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
b0322a85 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
d9898ee8 1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320\`configure' configures courierlogger 0.10 to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
b0322a85 1334 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
d9898ee8 1340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1342 [$ac_default_prefix]
d9898ee8 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1344 [PREFIX]
d9898ee8 1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
8d138742
CE
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/courierlogger]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of courierlogger 0.10:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394Optional Features:
8d138742 1395 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1398 --enable-silent-rules less verbose build output (undo: "make V=1")
1399 --disable-silent-rules verbose build output (undo: "make V=0")
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
dd184caf 1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1409 --disable-largefile omit support for large files
d9898ee8 1410
1411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1415 both]
d50284c4
CE
1416 --with-aix-soname=aix|svr4|both
1417 shared library versioning (aka "SONAME") variant to
1418 provide on AIX, [default=aix].
8d138742 1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d50284c4
CE
1420 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1421 compiler's sysroot if not specified).
b0322a85
CE
1422 --with-syslog=XXX syslog facility [[MAIL]]
1423
1424Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
d50284c4
CE
1432 LT_SYS_LIBRARY_PATH
1433 User-defined run-time library search path.
b0322a85
CE
1434 CPP C preprocessor
1435
1436Use these variables to override the choices made by `configure' or to help
1437it to find libraries and programs with nonstandard names/locations.
1438
1439Report bugs to <courier-users@lists.sourceforge.net>.
1440_ACEOF
1441ac_status=$?
1442fi
1443
1444if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 continue
1450 ac_builddir=.
1451
1452case "$ac_dir" in
1453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454*)
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462esac
1463ac_abs_top_builddir=$ac_pwd
1464ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465# for backward compatibility:
1466ac_top_builddir=$ac_top_build_prefix
1467
1468case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481esac
1482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1497fi
1498
1499test -n "$ac_init_help" && exit $ac_status
1500if $ac_init_version; then
1501 cat <<\_ACEOF
1502courierlogger configure 0.10
1503generated by GNU Autoconf 2.69
1504
1505Copyright (C) 2012 Free Software Foundation, Inc.
1506This configure script is free software; the Free Software Foundation
1507gives unlimited permission to copy, distribute and modify it.
1508_ACEOF
1509 exit
1510fi
1511
1512## ------------------------ ##
1513## Autoconf initialization. ##
1514## ------------------------ ##
1515
1516# ac_fn_c_try_compile LINENO
1517# --------------------------
1518# Try to compile conftest.$ac_ext, and return whether this succeeded.
1519ac_fn_c_try_compile ()
1520{
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1524case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527esac
1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529$as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1536 fi
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.$ac_objext; then :
1542 ac_retval=0
1543else
1544 $as_echo "$as_me: failed program was:" >&5
1545sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548fi
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1551
1552} # ac_fn_c_try_compile
1553
1554# ac_fn_c_try_link LINENO
1555# -----------------------
1556# Try to link conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_link ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext conftest$ac_exeext
1561 if { { ac_try="$ac_link"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_link") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest$ac_exeext && {
1580 test "$cross_compiling" = yes ||
1581 test -x conftest$ac_exeext
1582 }; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589fi
1590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1592 # interfere with the next link command; also delete a directory that is
1593 # left behind by Apple's compiler. We do this before executing the actions.
1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_link
1599
1600# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601# -------------------------------------------------------
1602# Tests whether HEADER exists and can be compiled using the include files in
1603# INCLUDES, setting the cache variable VAR accordingly.
1604ac_fn_c_check_header_compile ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
1609if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1611else
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h. */
1614$4
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_compile "$LINENO"; then :
1618 eval "$3=yes"
1619else
1620 eval "$3=no"
1621fi
1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623fi
1624eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626$as_echo "$ac_res" >&6; }
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628
1629} # ac_fn_c_check_header_compile
1630
1631# ac_fn_c_try_cpp LINENO
1632# ----------------------
1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_cpp ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }; then :
1656 ac_retval=0
1657else
1658 $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666} # ac_fn_c_try_cpp
1667
1668# ac_fn_c_try_run LINENO
1669# ----------------------
1670# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671# that executables *can* be run.
1672ac_fn_c_try_run ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=$ac_status
1703fi
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_run
1709
1710# ac_fn_c_check_func LINENO FUNC VAR
1711# ----------------------------------
1712# Tests whether FUNC exists, setting the cache variable VAR accordingly
1713ac_fn_c_check_func ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h. */
1723/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1725#define $2 innocuous_$2
1726
1727/* System header to define __stub macros and hopefully few prototypes,
1728 which can conflict with char $2 (); below.
1729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1730 <limits.h> exists even on freestanding compilers. */
1731
1732#ifdef __STDC__
1733# include <limits.h>
1734#else
1735# include <assert.h>
1736#endif
d9898ee8 1737
b0322a85 1738#undef $2
d9898ee8 1739
b0322a85
CE
1740/* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743#ifdef __cplusplus
1744extern "C"
1745#endif
1746char $2 ();
1747/* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750#if defined __stub_$2 || defined __stub___$2
1751choke me
1752#endif
d9898ee8 1753
b0322a85
CE
1754int
1755main ()
1756{
1757return $2 ();
1758 ;
1759 return 0;
1760}
d9898ee8 1761_ACEOF
b0322a85
CE
1762if ac_fn_c_try_link "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
d9898ee8 1766fi
b0322a85
CE
1767rm -f core conftest.err conftest.$ac_objext \
1768 conftest$ac_exeext conftest.$ac_ext
1769fi
1770eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d9898ee8 1774
b0322a85 1775} # ac_fn_c_check_func
dd184caf 1776
b0322a85
CE
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
d9898ee8 1790fi
b0322a85
CE
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795 # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805else
1806 ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
d9898ee8 1811
b0322a85
CE
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817#include <$2>
d9898ee8 1818_ACEOF
b0322a85
CE
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821else
1822 ac_header_preproc=no
d9898ee8 1823fi
b0322a85
CE
1824rm -f conftest.err conftest.i conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So? What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847( $as_echo "## -------------------------------------------------- ##
1848## Report this to courier-users@lists.sourceforge.net ##
1849## -------------------------------------------------- ##"
1850 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 ;;
1852esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 eval "$3=\$ac_header_compiler"
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863fi
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_header_mongrel
dd184caf 1867cat >config.log <<_ACEOF
d9898ee8 1868This file contains any messages produced by compilers while
1869running configure, to aid debugging if configure makes a mistake.
1870
1871It was created by courierlogger $as_me 0.10, which was
b0322a85 1872generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 1873
1874 $ $0 $@
1875
1876_ACEOF
dd184caf 1877exec 5>>config.log
d9898ee8 1878{
1879cat <<_ASUNAME
1880## --------- ##
1881## Platform. ##
1882## --------- ##
1883
1884hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892
1893/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1896/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1897/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900
1901_ASUNAME
1902
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
b0322a85
CE
1908 $as_echo "PATH: $as_dir"
1909 done
dd184caf 1910IFS=$as_save_IFS
d9898ee8 1911
1912} >&5
1913
1914cat >&5 <<_ACEOF
1915
1916
1917## ----------- ##
1918## Core tests. ##
1919## ----------- ##
1920
1921_ACEOF
1922
1923
1924# Keep a trace of the command line.
1925# Strip out --no-create and --no-recursion so they do not pile up.
1926# Strip out --silent because we don't want to record it for future runs.
1927# Also quote any args containing shell meta-characters.
1928# Make two passes to allow for proper duplicate-argument suppression.
1929ac_configure_args=
1930ac_configure_args0=
1931ac_configure_args1=
d9898ee8 1932ac_must_keep_next=false
1933for ac_pass in 1 2
1934do
1935 for ac_arg
1936 do
1937 case $ac_arg in
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1941 continue ;;
dd184caf 1942 *\'*)
8d138742 1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1944 esac
1945 case $ac_pass in
b0322a85 1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 1947 2)
b0322a85 1948 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 1949 if test $ac_must_keep_next = true; then
1950 ac_must_keep_next=false # Got value, back to normal.
1951 else
1952 case $ac_arg in
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959 esac
1960 ;;
1961 -* ) ac_must_keep_next=true ;;
1962 esac
1963 fi
b0322a85 1964 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 1965 ;;
1966 esac
1967 done
1968done
b0322a85
CE
1969{ ac_configure_args0=; unset ac_configure_args0;}
1970{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 1971
1972# When interrupted or exit'd, cleanup temporary files, and complete
1973# config.log. We remove comments because anyway the quotes in there
1974# would cause problems or look ugly.
dd184caf 1975# WARNING: Use '\'' to represent an apostrophe within the trap.
1976# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1977trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1979 {
1980 echo
1981
b0322a85 1982 $as_echo "## ---------------- ##
d9898ee8 1983## Cache variables. ##
b0322a85 1984## ---------------- ##"
d9898ee8 1985 echo
1986 # The following way of writing the cache mishandles newlines in values,
dd184caf 1987(
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in #(
1991 *${as_nl}*)
1992 case $ac_var in #(
b0322a85 1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 1994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1995 esac
1996 case $ac_var in #(
1997 _ | IFS | as_nl) ;; #(
8d138742 1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 1999 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2000 esac ;;
2001 esac
2002 done
d9898ee8 2003 (set) 2>&1 |
dd184caf 2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
d9898ee8 2006 sed -n \
dd184caf 2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 ;; #(
d9898ee8 2010 *)
dd184caf 2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2012 ;;
dd184caf 2013 esac |
2014 sort
2015)
d9898ee8 2016 echo
2017
b0322a85 2018 $as_echo "## ----------------- ##
d9898ee8 2019## Output variables. ##
b0322a85 2020## ----------------- ##"
d9898ee8 2021 echo
2022 for ac_var in $ac_subst_vars
2023 do
dd184caf 2024 eval ac_val=\$$ac_var
2025 case $ac_val in
8d138742 2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2027 esac
8d138742 2028 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2029 done | sort
2030 echo
2031
2032 if test -n "$ac_subst_files"; then
b0322a85 2033 $as_echo "## ------------------- ##
dd184caf 2034## File substitutions. ##
b0322a85 2035## ------------------- ##"
d9898ee8 2036 echo
2037 for ac_var in $ac_subst_files
2038 do
dd184caf 2039 eval ac_val=\$$ac_var
2040 case $ac_val in
8d138742 2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2042 esac
8d138742 2043 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2044 done | sort
2045 echo
2046 fi
2047
2048 if test -s confdefs.h; then
b0322a85 2049 $as_echo "## ----------- ##
d9898ee8 2050## confdefs.h. ##
b0322a85 2051## ----------- ##"
d9898ee8 2052 echo
dd184caf 2053 cat confdefs.h
d9898ee8 2054 echo
2055 fi
2056 test "$ac_signal" != 0 &&
8d138742
CE
2057 $as_echo "$as_me: caught signal $ac_signal"
2058 $as_echo "$as_me: exit $exit_status"
d9898ee8 2059 } >&5
dd184caf 2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2062 exit $exit_status
dd184caf 2063' 0
d9898ee8 2064for ac_signal in 1 2 13 15; do
b0322a85 2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2066done
2067ac_signal=0
2068
2069# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2070rm -f -r conftest* confdefs.h
d9898ee8 2071
b0322a85
CE
2072$as_echo "/* confdefs.h */" > confdefs.h
2073
d9898ee8 2074# Predefined preprocessor variables.
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_NAME "$PACKAGE_NAME"
2078_ACEOF
2079
d9898ee8 2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082_ACEOF
2083
d9898ee8 2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_VERSION "$PACKAGE_VERSION"
2086_ACEOF
2087
d9898ee8 2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_STRING "$PACKAGE_STRING"
2090_ACEOF
2091
d9898ee8 2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094_ACEOF
2095
b0322a85
CE
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_URL "$PACKAGE_URL"
2098_ACEOF
2099
d9898ee8 2100
2101# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2102# Prefer an explicitly selected file to automatically selected ones.
2103ac_site_file1=NONE
2104ac_site_file2=NONE
dd184caf 2105if test -n "$CONFIG_SITE"; then
b0322a85
CE
2106 # We do not want a PATH search for config.site.
2107 case $CONFIG_SITE in #((
2108 -*) ac_site_file1=./$CONFIG_SITE;;
2109 */*) ac_site_file1=$CONFIG_SITE;;
2110 *) ac_site_file1=./$CONFIG_SITE;;
2111 esac
dd184caf 2112elif test "x$prefix" != xNONE; then
8d138742
CE
2113 ac_site_file1=$prefix/share/config.site
2114 ac_site_file2=$prefix/etc/config.site
dd184caf 2115else
8d138742
CE
2116 ac_site_file1=$ac_default_prefix/share/config.site
2117 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2118fi
8d138742 2119for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2120do
8d138742 2121 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2124$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2125 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2126 . "$ac_site_file" \
2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129as_fn_error $? "failed to load site script $ac_site_file
2130See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2131 fi
2132done
2133
2134if test -r "$cache_file"; then
b0322a85
CE
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2139$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2140 case $cache_file in
dd184caf 2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
d9898ee8 2143 esac
2144 fi
2145else
b0322a85 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2147$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2148 >$cache_file
2149fi
2150
2151# Check that the precious variables saved in the cache have kept the same
2152# value.
2153ac_cache_corrupted=false
dd184caf 2154for ac_var in $ac_precious_vars; do
d9898ee8 2155 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2157 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2159 case $ac_old_set,$ac_new_set in
2160 set,)
b0322a85 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2162$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2163 ac_cache_corrupted=: ;;
2164 ,set)
b0322a85 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2166$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2167 ac_cache_corrupted=: ;;
2168 ,);;
2169 *)
2170 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2171 # differences in whitespace do not lead to failure.
2172 ac_old_val_w=`echo x $ac_old_val`
2173 ac_new_val_w=`echo x $ac_new_val`
2174 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2176$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177 ac_cache_corrupted=:
2178 else
b0322a85 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2180$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181 eval $ac_var=\$ac_old_val
2182 fi
b0322a85 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2184$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2186$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2187 fi;;
2188 esac
2189 # Pass precious variables to config.status.
2190 if test "$ac_new_set" = set; then
2191 case $ac_new_val in
8d138742 2192 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2193 *) ac_arg=$ac_var=$ac_new_val ;;
2194 esac
2195 case " $ac_configure_args " in
2196 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2197 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2198 esac
2199 fi
2200done
2201if $ac_cache_corrupted; then
b0322a85 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2205$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2206 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2207fi
b0322a85
CE
2208## -------------------- ##
2209## Main body of script. ##
2210## -------------------- ##
d9898ee8 2211
dd184caf 2212ac_ext=c
2213ac_cpp='$CPP $CPPFLAGS'
2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2217
2218
2219
2220>confdefs.h # Kill PACKAGE_ macros.
2221LPATH="$PATH:/usr/local/bin"
2222
d9898ee8 2223ac_aux_dir=
b0322a85 2224for ac_dir in .. "$srcdir"/..; do
dd184caf 2225 if test -f "$ac_dir/install-sh"; then
d9898ee8 2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/install-sh -c"
2228 break
dd184caf 2229 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/install.sh -c"
2232 break
dd184caf 2233 elif test -f "$ac_dir/shtool"; then
d9898ee8 2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/shtool install -c"
2236 break
2237 fi
2238done
2239if test -z "$ac_aux_dir"; then
b0322a85 2240 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
d9898ee8 2241fi
dd184caf 2242
2243# These three variables are undocumented and unsupported,
2244# and are intended to be withdrawn in a future Autoconf release.
2245# They can cause serious problems if a builder's source tree is in a directory
2246# whose full name contains unusual characters.
2247ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2248ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2249ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2250
d9898ee8 2251
d50284c4 2252am__api_version='1.15'
b0322a85 2253
d9898ee8 2254# Find a good install program. We prefer a C program (faster),
2255# so one script is as good as another. But avoid the broken or
2256# incompatible versions:
2257# SysV /etc/install, /usr/sbin/install
2258# SunOS /usr/etc/install
2259# IRIX /sbin/install
2260# AIX /bin/install
2261# AmigaOS /C/install, which installs bootblocks on floppy discs
2262# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2263# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2264# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2265# OS/2's system install, which has a completely different semantic
2266# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2267# Reject install programs that cannot install multiple files.
b0322a85 2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2269$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2270if test -z "$INSTALL"; then
b0322a85 2271if ${ac_cv_path_install+:} false; then :
8d138742 2272 $as_echo_n "(cached) " >&6
d9898ee8 2273else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
b0322a85
CE
2279 # Account for people who put trailing slashes in PATH elements.
2280case $as_dir/ in #((
2281 ./ | .// | /[cC]/* | \
d9898ee8 2282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2283 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2284 /usr/ucb/* ) ;;
2285 *)
2286 # OSF1 and SCO ODT 3.0 have their own names for install.
2287 # Don't use installbsd from OSF since it installs stuff as root
2288 # by default.
2289 for ac_prog in ginstall scoinst install; do
2290 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2291 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2292 if test $ac_prog = install &&
2293 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294 # AIX install. It has an incompatible calling convention.
2295 :
2296 elif test $ac_prog = install &&
2297 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298 # program-specific install script used by HP pwplus--don't use.
2299 :
2300 else
8d138742
CE
2301 rm -rf conftest.one conftest.two conftest.dir
2302 echo one > conftest.one
2303 echo two > conftest.two
2304 mkdir conftest.dir
2305 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2306 test -s conftest.one && test -s conftest.two &&
2307 test -s conftest.dir/conftest.one &&
2308 test -s conftest.dir/conftest.two
2309 then
2310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2311 break 3
2312 fi
d9898ee8 2313 fi
2314 fi
2315 done
2316 done
2317 ;;
2318esac
8d138742 2319
b0322a85 2320 done
dd184caf 2321IFS=$as_save_IFS
d9898ee8 2322
8d138742 2323rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2324
2325fi
2326 if test "${ac_cv_path_install+set}" = set; then
2327 INSTALL=$ac_cv_path_install
2328 else
dd184caf 2329 # As a last resort, use the slow shell script. Don't cache a
2330 # value for INSTALL within a source directory, because that will
d9898ee8 2331 # break other packages using the cache if that directory is
dd184caf 2332 # removed, or if the value is a relative name.
d9898ee8 2333 INSTALL=$ac_install_sh
2334 fi
2335fi
b0322a85 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2337$as_echo "$INSTALL" >&6; }
d9898ee8 2338
2339# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2340# It thinks the first close brace ends the variable substitution.
2341test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2342
2343test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2344
2345test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2346
b0322a85 2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2348$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2349# Reject unsafe characters in $srcdir or the absolute working directory
2350# name. Accept space and tab only in the latter.
2351am_lf='
2352'
2353case `pwd` in
2354 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2356esac
2357case $srcdir in
2358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2359 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2360esac
2361
b0322a85 2362# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2363# arguments. Must try -L first in case configure is actually a
2364# symlink; some systems play weird games with the mod time of symlinks
2365# (eg FreeBSD returns the mod time of the symlink's containing
2366# directory).
2367if (
b0322a85
CE
2368 am_has_slept=no
2369 for am_try in 1 2; do
2370 echo "timestamp, slept: $am_has_slept" > conftest.file
2371 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2372 if test "$*" = "X"; then
2373 # -L didn't work.
2374 set X `ls -t "$srcdir/configure" conftest.file`
2375 fi
2376 if test "$*" != "X $srcdir/configure conftest.file" \
2377 && test "$*" != "X conftest.file $srcdir/configure"; then
2378
2379 # If neither matched, then we have a broken ls. This can happen
2380 # if, for instance, CONFIG_SHELL is bash and it inherits a
2381 # broken ls alias from the environment. This has actually
2382 # happened. Such a system could not be considered "sane".
2383 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2384 alias in your environment" "$LINENO" 5
2385 fi
2386 if test "$2" = conftest.file || test $am_try -eq 2; then
2387 break
2388 fi
2389 # Just in case.
2390 sleep 1
2391 am_has_slept=yes
2392 done
d9898ee8 2393 test "$2" = conftest.file
2394 )
2395then
2396 # Ok.
2397 :
2398else
b0322a85
CE
2399 as_fn_error $? "newly created file is older than distributed files!
2400Check your system clock" "$LINENO" 5
d9898ee8 2401fi
b0322a85 2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2403$as_echo "yes" >&6; }
b0322a85
CE
2404# If we didn't sleep, we still need to ensure time stamps of config.status and
2405# generated files are strictly newer.
2406am_sleep_pid=
2407if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2408 ( sleep 1 ) &
2409 am_sleep_pid=$!
2410fi
2411
2412rm -f conftest.file
2413
d9898ee8 2414test "$program_prefix" != NONE &&
dd184caf 2415 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2416# Use a double $ so make ignores it.
2417test "$program_suffix" != NONE &&
dd184caf 2418 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2419# Double any \ or $.
d9898ee8 2420# By default was `s,x,x', remove it if useless.
8d138742
CE
2421ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2422program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2423
d50284c4
CE
2424# Expand $ac_aux_dir to an absolute path.
2425am_aux_dir=`cd "$ac_aux_dir" && pwd`
d9898ee8 2426
8d138742
CE
2427if test x"${MISSING+set}" != xset; then
2428 case $am_aux_dir in
2429 *\ * | *\ *)
2430 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2431 *)
2432 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2433 esac
2434fi
d9898ee8 2435# Use eval to expand $SHELL
b0322a85
CE
2436if eval "$MISSING --is-lightweight"; then
2437 am_missing_run="$MISSING "
d9898ee8 2438else
2439 am_missing_run=
b0322a85
CE
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2441$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2442fi
2443
d50284c4 2444if test x"${install_sh+set}" != xset; then
8d138742
CE
2445 case $am_aux_dir in
2446 *\ * | *\ *)
2447 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2448 *)
2449 install_sh="\${SHELL} $am_aux_dir/install-sh"
2450 esac
2451fi
2452
b0322a85
CE
2453# Installed binaries are usually stripped using 'strip' when the user
2454# run "make install-strip". However 'strip' might not be the right
8d138742 2455# tool to use in cross-compilation environments, therefore Automake
b0322a85 2456# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2457if test "$cross_compiling" != no; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2462$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2463if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2464 $as_echo_n "(cached) " >&6
2465else
2466 if test -n "$STRIP"; then
2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
b0322a85
CE
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2478 break 2
2479 fi
2480done
b0322a85 2481 done
8d138742
CE
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486STRIP=$ac_cv_prog_STRIP
2487if test -n "$STRIP"; then
b0322a85 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2489$as_echo "$STRIP" >&6; }
2490else
b0322a85 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2492$as_echo "no" >&6; }
d9898ee8 2493fi
2494
8d138742
CE
2495
2496fi
2497if test -z "$ac_cv_prog_STRIP"; then
2498 ac_ct_STRIP=$STRIP
2499 # Extract the first word of "strip", so it can be a program name with args.
2500set dummy strip; ac_word=$2
b0322a85 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2502$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2503if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2504 $as_echo_n "(cached) " >&6
2505else
2506 if test -n "$ac_ct_STRIP"; then
2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
b0322a85
CE
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2516 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2518 break 2
2519 fi
2520done
b0322a85 2521 done
8d138742
CE
2522IFS=$as_save_IFS
2523
2524fi
2525fi
2526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527if test -n "$ac_ct_STRIP"; then
b0322a85 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2529$as_echo "$ac_ct_STRIP" >&6; }
2530else
b0322a85 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2532$as_echo "no" >&6; }
2533fi
2534
2535 if test "x$ac_ct_STRIP" = x; then
2536 STRIP=":"
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539yes:)
b0322a85 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542ac_tool_warned=yes ;;
2543esac
2544 STRIP=$ac_ct_STRIP
2545 fi
2546else
2547 STRIP="$ac_cv_prog_STRIP"
2548fi
2549
2550fi
2551INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2552
b0322a85 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2554$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2555if test -z "$MKDIR_P"; then
b0322a85 2556 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2557 $as_echo_n "(cached) " >&6
dd184caf 2558else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
b0322a85 2564 for ac_prog in mkdir gmkdir; do
dd184caf 2565 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2566 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2567 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2568 'mkdir (GNU coreutils) '* | \
2569 'mkdir (coreutils) '* | \
2570 'mkdir (fileutils) '4.1*)
2571 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2572 break 3;;
2573 esac
2574 done
2575 done
b0322a85 2576 done
dd184caf 2577IFS=$as_save_IFS
2578
2579fi
2580
b0322a85 2581 test -d ./--version && rmdir ./--version
dd184caf 2582 if test "${ac_cv_path_mkdir+set}" = set; then
2583 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2584 else
dd184caf 2585 # As a last resort, use the slow shell script. Don't cache a
2586 # value for MKDIR_P within a source directory, because that will
2587 # break other packages using the cache if that directory is
2588 # removed, or if the value is a relative name.
dd184caf 2589 MKDIR_P="$ac_install_sh -d"
d9898ee8 2590 fi
2591fi
b0322a85 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2593$as_echo "$MKDIR_P" >&6; }
dd184caf 2594
d9898ee8 2595for ac_prog in gawk mawk nawk awk
2596do
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598set dummy $ac_prog; ac_word=$2
b0322a85 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2600$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2601if ${ac_cv_prog_AWK+:} false; then :
8d138742 2602 $as_echo_n "(cached) " >&6
d9898ee8 2603else
2604 if test -n "$AWK"; then
2605 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
b0322a85
CE
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2614 ac_cv_prog_AWK="$ac_prog"
b0322a85 2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2616 break 2
2617 fi
2618done
b0322a85 2619 done
dd184caf 2620IFS=$as_save_IFS
d9898ee8 2621
2622fi
2623fi
2624AWK=$ac_cv_prog_AWK
2625if test -n "$AWK"; then
b0322a85 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2627$as_echo "$AWK" >&6; }
d9898ee8 2628else
b0322a85 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2630$as_echo "no" >&6; }
d9898ee8 2631fi
2632
dd184caf 2633
d9898ee8 2634 test -n "$AWK" && break
2635done
2636
b0322a85 2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2638$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2639set x ${MAKE-make}
2640ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2641if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2642 $as_echo_n "(cached) " >&6
d9898ee8 2643else
2644 cat >conftest.make <<\_ACEOF
dd184caf 2645SHELL = /bin/sh
d9898ee8 2646all:
dd184caf 2647 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2648_ACEOF
b0322a85 2649# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2650case `${MAKE-make} -f conftest.make 2>/dev/null` in
2651 *@@@%%%=?*=@@@%%%*)
2652 eval ac_cv_prog_make_${ac_make}_set=yes;;
2653 *)
2654 eval ac_cv_prog_make_${ac_make}_set=no;;
2655esac
d9898ee8 2656rm -f conftest.make
2657fi
dd184caf 2658if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2660$as_echo "yes" >&6; }
d9898ee8 2661 SET_MAKE=
2662else
b0322a85 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2664$as_echo "no" >&6; }
d9898ee8 2665 SET_MAKE="MAKE=${MAKE-make}"
2666fi
2667
2668rm -rf .tst 2>/dev/null
2669mkdir .tst 2>/dev/null
2670if test -d .tst; then
2671 am__leading_dot=.
2672else
2673 am__leading_dot=_
2674fi
2675rmdir .tst 2>/dev/null
2676
b0322a85
CE
2677# Check whether --enable-silent-rules was given.
2678if test "${enable_silent_rules+set}" = set; then :
2679 enableval=$enable_silent_rules;
2680fi
2681
2682case $enable_silent_rules in # (((
2683 yes) AM_DEFAULT_VERBOSITY=0;;
2684 no) AM_DEFAULT_VERBOSITY=1;;
2685 *) AM_DEFAULT_VERBOSITY=1;;
2686esac
2687am_make=${MAKE-make}
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2689$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2690if ${am_cv_make_support_nested_variables+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 if $as_echo 'TRUE=$(BAR$(V))
2694BAR0=false
2695BAR1=true
2696V=1
2697am__doit:
2698 @$(TRUE)
2699.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2700 am_cv_make_support_nested_variables=yes
2701else
2702 am_cv_make_support_nested_variables=no
2703fi
2704fi
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2706$as_echo "$am_cv_make_support_nested_variables" >&6; }
2707if test $am_cv_make_support_nested_variables = yes; then
2708 AM_V='$(V)'
2709 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2710else
2711 AM_V=$AM_DEFAULT_VERBOSITY
2712 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2713fi
2714AM_BACKSLASH='\'
2715
dd184caf 2716if test "`cd $srcdir && pwd`" != "`pwd`"; then
2717 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2718 # is not polluted with repeated "-I."
2719 am__isrc=' -I$(srcdir)'
2720 # test to see if srcdir already configured
2721 if test -f $srcdir/config.status; then
b0322a85 2722 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2723 fi
d9898ee8 2724fi
2725
2726# test whether we have cygpath
2727if test -z "$CYGPATH_W"; then
2728 if (cygpath --version) >/dev/null 2>/dev/null; then
2729 CYGPATH_W='cygpath -w'
2730 else
2731 CYGPATH_W=echo
2732 fi
2733fi
2734
2735
2736# Define the identity of the package.
2737 PACKAGE='courierlogger'
2738 VERSION='0.10'
2739
2740
2741# Some tools Automake needs.
2742
2743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2744
2745
2746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2747
2748
2749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2750
2751
2752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2753
2754
2755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2756
b0322a85
CE
2757# For better backward compatibility. To be removed once Automake 1.9.x
2758# dies out for good. For more background, see:
2759# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2760# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2761mkdir_p='$(MKDIR_P)'
2762
d50284c4
CE
2763# We need awk for the "check" target (and possibly the TAP driver). The
2764# system "awk" is bad on some platforms.
b0322a85
CE
2765# Always define AMTAR for backward compatibility. Yes, it's still used
2766# in the wild :-( We should find a proper way to deprecate it ...
2767AMTAR='$${TAR-tar}'
2768
d9898ee8 2769
b0322a85
CE
2770# We'll loop over all known methods to create a tar archive until one works.
2771_am_tools='gnutar pax cpio none'
2772
2773am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d9898ee8 2774
d9898ee8 2775
2776
2777
2778
2779
d50284c4
CE
2780# POSIX will say in a future version that running "rm -f" with no argument
2781# is OK; and we want to be able to make that assumption in our Makefile
2782# recipes. So use an aggressive probe to check that the usage we want is
2783# actually supported "in the wild" to an acceptable degree.
2784# See automake bug#10828.
2785# To make any issue more visible, cause the running configure to be aborted
2786# by default if the 'rm' program in use doesn't match our expectations; the
2787# user can still override this though.
2788if rm -f && rm -fr && rm -rf; then : OK; else
2789 cat >&2 <<'END'
2790Oops!
2791
2792Your 'rm' program seems unable to run without file operands specified
2793on the command line, even when the '-f' option is present. This is contrary
2794to the behaviour of most rm programs out there, and not conforming with
2795the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2796
2797Please tell bug-automake@gnu.org about your system, including the value
2798of your $PATH and any error possibly output before this message. This
2799can help us improve future automake versions.
2800
2801END
2802 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2803 echo 'Configuration will proceed anyway, since you have set the' >&2
2804 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2805 echo >&2
2806 else
2807 cat >&2 <<'END'
2808Aborting the configuration process, to ensure you take notice of the issue.
2809
2810You can download and install GNU coreutils to get an 'rm' implementation
2811that behaves properly: <http://www.gnu.org/software/coreutils/>.
2812
2813If you want to complete the configuration process using your problematic
2814'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2815to "yes", and re-run configure.
2816
2817END
2818 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2819 fi
2820fi
2821
dd184caf 2822ac_config_headers="$ac_config_headers config.h"
d9898ee8 2823
2824
2825ac_ext=c
2826ac_cpp='$CPP $CPPFLAGS'
2827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2832set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2834$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2835if ${ac_cv_prog_CC+:} false; then :
8d138742 2836 $as_echo_n "(cached) " >&6
d9898ee8 2837else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
b0322a85
CE
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2850 break 2
2851 fi
2852done
b0322a85 2853 done
dd184caf 2854IFS=$as_save_IFS
d9898ee8 2855
2856fi
2857fi
2858CC=$ac_cv_prog_CC
2859if test -n "$CC"; then
b0322a85 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2861$as_echo "$CC" >&6; }
d9898ee8 2862else
b0322a85 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2864$as_echo "no" >&6; }
d9898ee8 2865fi
2866
dd184caf 2867
d9898ee8 2868fi
2869if test -z "$ac_cv_prog_CC"; then
2870 ac_ct_CC=$CC
2871 # Extract the first word of "gcc", so it can be a program name with args.
2872set dummy gcc; ac_word=$2
b0322a85 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2874$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2875if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 2876 $as_echo_n "(cached) " >&6
d9898ee8 2877else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
b0322a85
CE
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2888 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2890 break 2
2891 fi
2892done
b0322a85 2893 done
dd184caf 2894IFS=$as_save_IFS
d9898ee8 2895
2896fi
2897fi
2898ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899if test -n "$ac_ct_CC"; then
b0322a85 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 2901$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2902else
b0322a85 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2904$as_echo "no" >&6; }
d9898ee8 2905fi
2906
dd184caf 2907 if test "x$ac_ct_CC" = x; then
2908 CC=""
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911yes:)
b0322a85 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 2913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2914ac_tool_warned=yes ;;
2915esac
2916 CC=$ac_ct_CC
2917 fi
d9898ee8 2918else
2919 CC="$ac_cv_prog_CC"
2920fi
2921
2922if test -z "$CC"; then
dd184caf 2923 if test -n "$ac_tool_prefix"; then
2924 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2925set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2927$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2928if ${ac_cv_prog_CC+:} false; then :
8d138742 2929 $as_echo_n "(cached) " >&6
d9898ee8 2930else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
b0322a85
CE
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2941 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2943 break 2
2944 fi
2945done
b0322a85 2946 done
dd184caf 2947IFS=$as_save_IFS
d9898ee8 2948
2949fi
2950fi
2951CC=$ac_cv_prog_CC
2952if test -n "$CC"; then
b0322a85 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2954$as_echo "$CC" >&6; }
d9898ee8 2955else
b0322a85 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2957$as_echo "no" >&6; }
d9898ee8 2958fi
2959
d9898ee8 2960
dd184caf 2961 fi
d9898ee8 2962fi
2963if test -z "$CC"; then
2964 # Extract the first word of "cc", so it can be a program name with args.
2965set dummy cc; ac_word=$2
b0322a85 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2967$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2968if ${ac_cv_prog_CC+:} false; then :
8d138742 2969 $as_echo_n "(cached) " >&6
d9898ee8 2970else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973else
2974 ac_prog_rejected=no
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
b0322a85
CE
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983 ac_prog_rejected=yes
2984 continue
2985 fi
2986 ac_cv_prog_CC="cc"
b0322a85 2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2988 break 2
2989 fi
2990done
b0322a85 2991 done
dd184caf 2992IFS=$as_save_IFS
d9898ee8 2993
2994if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2997 shift
2998 if test $# != 0; then
2999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3002 shift
3003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3004 fi
3005fi
3006fi
3007fi
3008CC=$ac_cv_prog_CC
3009if test -n "$CC"; then
b0322a85 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3011$as_echo "$CC" >&6; }
d9898ee8 3012else
b0322a85 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3014$as_echo "no" >&6; }
d9898ee8 3015fi
3016
dd184caf 3017
d9898ee8 3018fi
3019if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
dd184caf 3021 for ac_prog in cl.exe
d9898ee8 3022 do
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3026$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3027if ${ac_cv_prog_CC+:} false; then :
8d138742 3028 $as_echo_n "(cached) " >&6
d9898ee8 3029else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
b0322a85
CE
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3042 break 2
3043 fi
3044done
b0322a85 3045 done
dd184caf 3046IFS=$as_save_IFS
d9898ee8 3047
3048fi
3049fi
3050CC=$ac_cv_prog_CC
3051if test -n "$CC"; then
b0322a85 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3053$as_echo "$CC" >&6; }
d9898ee8 3054else
b0322a85 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3056$as_echo "no" >&6; }
d9898ee8 3057fi
3058
dd184caf 3059
d9898ee8 3060 test -n "$CC" && break
3061 done
3062fi
3063if test -z "$CC"; then
3064 ac_ct_CC=$CC
dd184caf 3065 for ac_prog in cl.exe
d9898ee8 3066do
3067 # Extract the first word of "$ac_prog", so it can be a program name with args.
3068set dummy $ac_prog; ac_word=$2
b0322a85 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3070$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3071if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3072 $as_echo_n "(cached) " >&6
d9898ee8 3073else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
b0322a85
CE
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3084 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3086 break 2
3087 fi
3088done
b0322a85 3089 done
dd184caf 3090IFS=$as_save_IFS
d9898ee8 3091
3092fi
3093fi
3094ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095if test -n "$ac_ct_CC"; then
b0322a85 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3097$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3098else
b0322a85 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3100$as_echo "no" >&6; }
d9898ee8 3101fi
3102
dd184caf 3103
d9898ee8 3104 test -n "$ac_ct_CC" && break
3105done
3106
dd184caf 3107 if test "x$ac_ct_CC" = x; then
3108 CC=""
3109 else
3110 case $cross_compiling:$ac_tool_warned in
3111yes:)
b0322a85 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3114ac_tool_warned=yes ;;
3115esac
3116 CC=$ac_ct_CC
3117 fi
d9898ee8 3118fi
3119
3120fi
3121
3122
b0322a85 3123test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3125as_fn_error $? "no acceptable C compiler found in \$PATH
3126See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3127
3128# Provide some information about the compiler.
b0322a85 3129$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3130set X $ac_compile
3131ac_compiler=$2
b0322a85
CE
3132for ac_option in --version -v -V -qversion; do
3133 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
b0322a85
CE
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3141 ac_status=$?
b0322a85
CE
3142 if test -s conftest.err; then
3143 sed '10a\
3144... rest of stderr output deleted ...
3145 10q' conftest.err >conftest.er1
3146 cat conftest.er1 >&5
3147 fi
3148 rm -f conftest.er1 conftest.err
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151done
d9898ee8 3152
b0322a85 3153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
8d138742 3165ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
b0322a85
CE
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3171ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172
3173# The possible output files:
3174ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3175
dd184caf 3176ac_rmfiles=
3177for ac_file in $ac_files
3178do
3179 case $ac_file in
8d138742 3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 esac
3183done
3184rm -f $ac_rmfiles
3185
b0322a85 3186if { { ac_try="$ac_link_default"
dd184caf 3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
b0322a85
CE
3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192$as_echo "$ac_try_echo"; } >&5
dd184caf 3193 (eval "$ac_link_default") 2>&5
d9898ee8 3194 ac_status=$?
b0322a85
CE
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
dd184caf 3197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199# in a Makefile. We should not override ac_cv_exeext if it was cached,
3200# so that the user can short-circuit this test for compilers unknown to
3201# Autoconf.
3202for ac_file in $ac_files ''
d9898ee8 3203do
3204 test -f "$ac_file" || continue
3205 case $ac_file in
8d138742 3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3207 ;;
3208 [ab].out )
3209 # We found the default executable, but exeext='' is most
3210 # certainly right.
3211 break;;
3212 *.* )
b0322a85 3213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3214 then :; else
3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 fi
3217 # We set ac_cv_exeext here because the later test for it is not
3218 # safe: cross compilers may not add the suffix if given an `-o'
3219 # argument, so we may need to know it at that point already.
3220 # Even if this section looks crufty: it has the advantage of
3221 # actually working.
d9898ee8 3222 break;;
3223 * )
3224 break;;
3225 esac
3226done
dd184caf 3227test "$ac_cv_exeext" = no && ac_cv_exeext=
3228
d9898ee8 3229else
dd184caf 3230 ac_file=''
3231fi
b0322a85
CE
3232if test -z "$ac_file"; then :
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235$as_echo "$as_me: failed program was:" >&5
d9898ee8 3236sed 's/^/| /' conftest.$ac_ext >&5
3237
b0322a85 3238{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3240as_fn_error 77 "C compiler cannot create executables
3241See \`config.log' for more details" "$LINENO" 5; }
3242else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 3244$as_echo "yes" >&6; }
b0322a85
CE
3245fi
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3247$as_echo_n "checking for C compiler default output file name... " >&6; }
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3249$as_echo "$ac_file" >&6; }
3250ac_exeext=$ac_cv_exeext
d9898ee8 3251
8d138742 3252rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3253ac_clean_files=$ac_clean_files_save
b0322a85 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3255$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3256if { { ac_try="$ac_link"
dd184caf 3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
b0322a85
CE
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
dd184caf 3263 (eval "$ac_link") 2>&5
d9898ee8 3264 ac_status=$?
b0322a85
CE
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
d9898ee8 3267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3269# work properly (i.e., refer to `conftest.exe'), while it won't with
3270# `rm'.
3271for ac_file in conftest.exe conftest conftest.*; do
3272 test -f "$ac_file" || continue
3273 case $ac_file in
8d138742 3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3276 break;;
3277 * ) break;;
3278 esac
3279done
3280else
b0322a85 3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3283as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3284See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3285fi
b0322a85
CE
3286rm -f conftest conftest$ac_cv_exeext
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3288$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3289
3290rm -f conftest.$ac_ext
3291EXEEXT=$ac_cv_exeext
3292ac_exeext=$EXEEXT
b0322a85
CE
3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h. */
3295#include <stdio.h>
3296int
3297main ()
3298{
3299FILE *f = fopen ("conftest.out", "w");
3300 return ferror (f) || fclose (f) != 0;
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306ac_clean_files="$ac_clean_files conftest.out"
3307# Check that the compiler produces executables we can run. If not, either
3308# the compiler is broken, or we cross compile.
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3310$as_echo_n "checking whether we are cross compiling... " >&6; }
3311if test "$cross_compiling" != yes; then
3312 { { ac_try="$ac_link"
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
3317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318$as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }
3323 if { ac_try='./conftest$ac_cv_exeext'
3324 { { case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_try") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; }; then
3334 cross_compiling=no
3335 else
3336 if test "$cross_compiling" = maybe; then
3337 cross_compiling=yes
3338 else
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341as_fn_error $? "cannot run C compiled programs.
3342If you meant to cross compile, use \`--host'.
3343See \`config.log' for more details" "$LINENO" 5; }
3344 fi
3345 fi
3346fi
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3348$as_echo "$cross_compiling" >&6; }
3349
3350rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3351ac_clean_files=$ac_clean_files_save
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3353$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3354if ${ac_cv_objext+:} false; then :
8d138742 3355 $as_echo_n "(cached) " >&6
d9898ee8 3356else
b0322a85 3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3358/* end confdefs.h. */
3359
3360int
3361main ()
3362{
3363
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368rm -f conftest.o conftest.obj
b0322a85 3369if { { ac_try="$ac_compile"
dd184caf 3370case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
b0322a85
CE
3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375$as_echo "$ac_try_echo"; } >&5
dd184caf 3376 (eval "$ac_compile") 2>&5
d9898ee8 3377 ac_status=$?
b0322a85
CE
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; then :
dd184caf 3380 for ac_file in conftest.o conftest.obj conftest.*; do
3381 test -f "$ac_file" || continue;
d9898ee8 3382 case $ac_file in
8d138742 3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385 break;;
3386 esac
3387done
3388else
8d138742 3389 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3390sed 's/^/| /' conftest.$ac_ext >&5
3391
b0322a85 3392{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3394as_fn_error $? "cannot compute suffix of object files: cannot compile
3395See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3396fi
d9898ee8 3397rm -f conftest.$ac_cv_objext conftest.$ac_ext
3398fi
b0322a85 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3400$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3401OBJEXT=$ac_cv_objext
3402ac_objext=$OBJEXT
b0322a85 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3404$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3405if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3406 $as_echo_n "(cached) " >&6
d9898ee8 3407else
b0322a85 3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3409/* end confdefs.h. */
3410
3411int
3412main ()
3413{
3414#ifndef __GNUC__
3415 choke me
3416#endif
3417
3418 ;
3419 return 0;
3420}
3421_ACEOF
b0322a85 3422if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3423 ac_compiler_gnu=yes
3424else
b0322a85 3425 ac_compiler_gnu=no
d9898ee8 3426fi
dd184caf 3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3428ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429
3430fi
b0322a85 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3432$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3433if test $ac_compiler_gnu = yes; then
3434 GCC=yes
3435else
3436 GCC=
3437fi
d9898ee8 3438ac_test_CFLAGS=${CFLAGS+set}
3439ac_save_CFLAGS=$CFLAGS
b0322a85 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3441$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3442if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3443 $as_echo_n "(cached) " >&6
d9898ee8 3444else
dd184caf 3445 ac_save_c_werror_flag=$ac_c_werror_flag
3446 ac_c_werror_flag=yes
3447 ac_cv_prog_cc_g=no
3448 CFLAGS="-g"
b0322a85 3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3450/* end confdefs.h. */
3451
3452int
3453main ()
3454{
3455
3456 ;
3457 return 0;
3458}
3459_ACEOF
b0322a85 3460if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3461 ac_cv_prog_cc_g=yes
3462else
b0322a85
CE
3463 CFLAGS=""
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3465/* end confdefs.h. */
3466
3467int
3468main ()
3469{
3470
3471 ;
3472 return 0;
3473}
3474_ACEOF
b0322a85 3475if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3476
b0322a85
CE
3477else
3478 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3479 CFLAGS="-g"
b0322a85 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3481/* end confdefs.h. */
3482
3483int
3484main ()
3485{
3486
3487 ;
3488 return 0;
3489}
3490_ACEOF
b0322a85 3491if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3492 ac_cv_prog_cc_g=yes
dd184caf 3493fi
dd184caf 3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495fi
dd184caf 3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3497fi
dd184caf 3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3500fi
b0322a85 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3502$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3503if test "$ac_test_CFLAGS" = set; then
3504 CFLAGS=$ac_save_CFLAGS
3505elif test $ac_cv_prog_cc_g = yes; then
3506 if test "$GCC" = yes; then
3507 CFLAGS="-g -O2"
3508 else
3509 CFLAGS="-g"
3510 fi
3511else
3512 if test "$GCC" = yes; then
3513 CFLAGS="-O2"
3514 else
3515 CFLAGS=
3516 fi
3517fi
b0322a85 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3519$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3520if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3521 $as_echo_n "(cached) " >&6
d9898ee8 3522else
dd184caf 3523 ac_cv_prog_cc_c89=no
d9898ee8 3524ac_save_CC=$CC
b0322a85 3525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3526/* end confdefs.h. */
3527#include <stdarg.h>
3528#include <stdio.h>
b0322a85 3529struct stat;
d9898ee8 3530/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531struct buf { int x; };
3532FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533static char *e (p, i)
3534 char **p;
3535 int i;
3536{
3537 return p[i];
3538}
3539static char *f (char * (*g) (char **, int), char **p, ...)
3540{
3541 char *s;
3542 va_list v;
3543 va_start (v,p);
3544 s = g (p, va_arg (v,int));
3545 va_end (v);
3546 return s;
3547}
3548
3549/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3552 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3555 that's true only with -std. */
d9898ee8 3556int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557
dd184caf 3558/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3560#define FOO(x) 'x'
3561int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562
d9898ee8 3563int test (int i, double x);
3564struct s1 {int (*f) (int a);};
3565struct s2 {int (*f) (double a);};
3566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3567int argc;
3568char **argv;
3569int
3570main ()
3571{
3572return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 ;
3574 return 0;
3575}
3576_ACEOF
dd184caf 3577for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3579do
3580 CC="$ac_save_CC $ac_arg"
b0322a85 3581 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3582 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3583fi
dd184caf 3584rm -f core conftest.err conftest.$ac_objext
3585 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3586done
dd184caf 3587rm -f conftest.$ac_ext
d9898ee8 3588CC=$ac_save_CC
3589
3590fi
dd184caf 3591# AC_CACHE_VAL
3592case "x$ac_cv_prog_cc_c89" in
3593 x)
b0322a85 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3595$as_echo "none needed" >&6; } ;;
dd184caf 3596 xno)
b0322a85 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3598$as_echo "unsupported" >&6; } ;;
d9898ee8 3599 *)
dd184caf 3600 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3602$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3603esac
b0322a85 3604if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3605
b0322a85 3606fi
d9898ee8 3607
d9898ee8 3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
d50284c4
CE
3613
3614ac_ext=c
3615ac_cpp='$CPP $CPPFLAGS'
3616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3620$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3621if ${am_cv_prog_cc_c_o+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623else
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h. */
3626
3627int
3628main ()
3629{
3630
3631 ;
3632 return 0;
3633}
3634_ACEOF
3635 # Make sure it works both with $CC and with simple cc.
3636 # Following AC_PROG_CC_C_O, we do the test twice because some
3637 # compilers refuse to overwrite an existing .o file with -o,
3638 # though they will create one.
3639 am_cv_prog_cc_c_o=yes
3640 for am_i in 1 2; do
3641 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3642 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } \
3646 && test -f conftest2.$ac_objext; then
3647 : OK
3648 else
3649 am_cv_prog_cc_c_o=no
3650 break
3651 fi
3652 done
3653 rm -f core conftest*
3654 unset am_i
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3657$as_echo "$am_cv_prog_cc_c_o" >&6; }
3658if test "$am_cv_prog_cc_c_o" != yes; then
3659 # Losing compiler, so override with the script.
3660 # FIXME: It is wrong to rewrite CC.
3661 # But if we don't then we get into trouble of one sort or another.
3662 # A longer-term fix would be to have automake use am__CC in this case,
3663 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3664 CC="$am_aux_dir/compile $CC"
3665fi
3666ac_ext=c
3667ac_cpp='$CPP $CPPFLAGS'
3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671
d9898ee8 3672DEPDIR="${am__leading_dot}deps"
3673
dd184caf 3674ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3675
3676
3677am_make=${MAKE-make}
3678cat > confinc << 'END'
3679am__doit:
8d138742 3680 @echo this is the am__doit target
d9898ee8 3681.PHONY: am__doit
3682END
3683# If we don't find an include directive, just comment out the code.
b0322a85 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 3685$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3686am__include="#"
3687am__quote=
3688_am_result=none
3689# First try GNU make style include.
3690echo "include confinc" > confmf
b0322a85 3691# Ignore all kinds of additional output from 'make'.
8d138742
CE
3692case `$am_make -s -f confmf 2> /dev/null` in #(
3693*the\ am__doit\ target*)
3694 am__include=include
3695 am__quote=
3696 _am_result=GNU
3697 ;;
3698esac
d9898ee8 3699# Now try BSD make style include.
3700if test "$am__include" = "#"; then
3701 echo '.include "confinc"' > confmf
8d138742
CE
3702 case `$am_make -s -f confmf 2> /dev/null` in #(
3703 *the\ am__doit\ target*)
3704 am__include=.include
3705 am__quote="\""
3706 _am_result=BSD
3707 ;;
3708 esac
d9898ee8 3709fi
3710
3711
b0322a85 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 3713$as_echo "$_am_result" >&6; }
d9898ee8 3714rm -f confinc confmf
3715
dd184caf 3716# Check whether --enable-dependency-tracking was given.
b0322a85 3717if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 3718 enableval=$enable_dependency_tracking;
3719fi
d9898ee8 3720
d9898ee8 3721if test "x$enable_dependency_tracking" != xno; then
3722 am_depcomp="$ac_aux_dir/depcomp"
3723 AMDEPBACKSLASH='\'
b0322a85 3724 am__nodep='_no'
d9898ee8 3725fi
dd184caf 3726 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3727 AMDEP_TRUE=
3728 AMDEP_FALSE='#'
3729else
3730 AMDEP_TRUE='#'
3731 AMDEP_FALSE=
3732fi
3733
3734
3735
d9898ee8 3736depcc="$CC" am_compiler_list=
3737
b0322a85 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3739$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3740if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3741 $as_echo_n "(cached) " >&6
d9898ee8 3742else
3743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3744 # We make a subdir and do the tests there. Otherwise we can end up
3745 # making bogus files that we don't know about and never remove. For
3746 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3747 # making a dummy file named 'D' -- because '-MD' means "put the output
3748 # in D".
3749 rm -rf conftest.dir
d9898ee8 3750 mkdir conftest.dir
3751 # Copy depcomp to subdir because otherwise we won't find it if we're
3752 # using a relative directory.
3753 cp "$am_depcomp" conftest.dir
3754 cd conftest.dir
3755 # We will build objects and dependencies in a subdirectory because
3756 # it helps to detect inapplicable dependency modes. For instance
3757 # both Tru64's cc and ICC support -MD to output dependencies as a
3758 # side effect of compilation, but ICC will put the dependencies in
3759 # the current directory while Tru64 will put them in the object
3760 # directory.
3761 mkdir sub
3762
3763 am_cv_CC_dependencies_compiler_type=none
3764 if test "$am_compiler_list" = ""; then
3765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766 fi
8d138742
CE
3767 am__universal=false
3768 case " $depcc " in #(
3769 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3770 esac
3771
d9898ee8 3772 for depmode in $am_compiler_list; do
3773 # Setup a source with many dependencies, because some compilers
3774 # like to wrap large dependency lists on column 80 (with \), and
3775 # we should not choose a depcomp mode which is confused by this.
3776 #
3777 # We need to recreate these files for each test, as the compiler may
3778 # overwrite some of them when testing with obscure command lines.
3779 # This happens at least with the AIX C compiler.
3780 : > sub/conftest.c
3781 for i in 1 2 3 4 5 6; do
3782 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3783 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3784 # Solaris 10 /bin/sh.
3785 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3786 done
3787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3788
b0322a85 3789 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3790 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3791 # handle '-M -o', and we need to detect this. Also, some Intel
3792 # versions had trouble with output in subdirs.
8d138742
CE
3793 am__obj=sub/conftest.${OBJEXT-o}
3794 am__minus_obj="-o $am__obj"
d9898ee8 3795 case $depmode in
8d138742
CE
3796 gcc)
3797 # This depmode causes a compiler race in universal mode.
3798 test "$am__universal" = false || continue
3799 ;;
d9898ee8 3800 nosideeffect)
b0322a85
CE
3801 # After this tag, mechanisms are not by side-effect, so they'll
3802 # only be used when explicitly requested.
d9898ee8 3803 if test "x$enable_dependency_tracking" = xyes; then
3804 continue
3805 else
3806 break
3807 fi
3808 ;;
b0322a85
CE
3809 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3810 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3811 # not run yet. These depmodes are late enough in the game, and
3812 # so weak that their functioning should not be impacted.
3813 am__obj=conftest.${OBJEXT-o}
3814 am__minus_obj=
3815 ;;
d9898ee8 3816 none) break ;;
3817 esac
d9898ee8 3818 if depmode=$depmode \
8d138742 3819 source=sub/conftest.c object=$am__obj \
d9898ee8 3820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3822 >/dev/null 2>conftest.err &&
dd184caf 3823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827 # icc doesn't choke on unknown options, it will just issue warnings
3828 # or remarks (even with -Werror). So we grep stderr for any message
3829 # that says an option was ignored or not supported.
3830 # When given -MP, icc 7.0 and 7.1 complain thusly:
3831 # icc: Command line warning: ignoring option '-M'; no argument required
3832 # The diagnosis changed in icc 8.0:
3833 # icc: Command line remark: option '-MP' not supported
3834 if (grep 'ignoring option' conftest.err ||
3835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836 am_cv_CC_dependencies_compiler_type=$depmode
3837 break
3838 fi
3839 fi
3840 done
3841
3842 cd ..
3843 rm -rf conftest.dir
3844else
3845 am_cv_CC_dependencies_compiler_type=none
3846fi
3847
3848fi
b0322a85 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 3850$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3851CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852
dd184caf 3853 if
d9898ee8 3854 test "x$enable_dependency_tracking" != xno \
3855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856 am__fastdepCC_TRUE=
3857 am__fastdepCC_FALSE='#'
3858else
3859 am__fastdepCC_TRUE='#'
3860 am__fastdepCC_FALSE=
3861fi
3862
3863
d9898ee8 3864
b0322a85 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8d138742 3866$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 3867LN_S=$as_ln_s
3868if test "$LN_S" = "ln -s"; then
b0322a85 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 3870$as_echo "yes" >&6; }
d9898ee8 3871else
b0322a85 3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8d138742 3873$as_echo "no, using $LN_S" >&6; }
d9898ee8 3874fi
3875
8d138742
CE
3876case `pwd` in
3877 *\ * | *\ *)
b0322a85 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742
CE
3879$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3880esac
3881
3882
3883
d50284c4
CE
3884macro_version='2.4.6'
3885macro_revision='2.4.6'
8d138742
CE
3886
3887
3888
3889
dd184caf 3890
d9898ee8 3891
dd184caf 3892
d9898ee8 3893
dd184caf 3894
d9898ee8 3895
8d138742
CE
3896
3897
3898
d50284c4 3899ltmain=$ac_aux_dir/ltmain.sh
8d138742 3900
d9898ee8 3901# Make sure we can run config.sub.
dd184caf 3902$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 3903 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 3904
b0322a85 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 3906$as_echo_n "checking build system type... " >&6; }
b0322a85 3907if ${ac_cv_build+:} false; then :
8d138742 3908 $as_echo_n "(cached) " >&6
d9898ee8 3909else
dd184caf 3910 ac_build_alias=$build_alias
3911test "x$ac_build_alias" = x &&
3912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3913test "x$ac_build_alias" = x &&
b0322a85 3914 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
dd184caf 3915ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 3916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 3917
3918fi
b0322a85 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742 3920$as_echo "$ac_cv_build" >&6; }
dd184caf 3921case $ac_cv_build in
3922*-*-*) ;;
b0322a85 3923*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
dd184caf 3924esac
d9898ee8 3925build=$ac_cv_build
dd184caf 3926ac_save_IFS=$IFS; IFS='-'
3927set x $ac_cv_build
3928shift
3929build_cpu=$1
3930build_vendor=$2
3931shift; shift
3932# Remember, the first character of IFS is used to create $*,
3933# except with old shells:
3934build_os=$*
3935IFS=$ac_save_IFS
3936case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3937
3938
b0322a85 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 3940$as_echo_n "checking host system type... " >&6; }
b0322a85 3941if ${ac_cv_host+:} false; then :
8d138742 3942 $as_echo_n "(cached) " >&6
d9898ee8 3943else
dd184caf 3944 if test "x$host_alias" = x; then
3945 ac_cv_host=$ac_cv_build
3946else
3947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 3948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
dd184caf 3949fi
d9898ee8 3950
3951fi
b0322a85 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742 3953$as_echo "$ac_cv_host" >&6; }
dd184caf 3954case $ac_cv_host in
3955*-*-*) ;;
b0322a85 3956*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
dd184caf 3957esac
d9898ee8 3958host=$ac_cv_host
dd184caf 3959ac_save_IFS=$IFS; IFS='-'
3960set x $ac_cv_host
3961shift
3962host_cpu=$1
3963host_vendor=$2
3964shift; shift
3965# Remember, the first character of IFS is used to create $*,
3966# except with old shells:
3967host_os=$*
3968IFS=$ac_save_IFS
3969case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3970
3971
b0322a85
CE
3972# Backslashify metacharacters that are still active within
3973# double-quoted strings.
3974sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3975
3976# Same as above, but do not quote variable references.
3977double_quote_subst='s/\(["`\\]\)/\\\1/g'
3978
3979# Sed substitution to delay expansion of an escaped shell variable in a
3980# double_quote_subst'ed string.
3981delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3982
3983# Sed substitution to delay expansion of an escaped single quote.
3984delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3985
3986# Sed substitution to avoid accidental globbing in evaled expressions
3987no_glob_subst='s/\*/\\\*/g'
3988
3989ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3990ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3991ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3992
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3994$as_echo_n "checking how to print strings... " >&6; }
3995# Test print first, because it will be a builtin if present.
3996if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3997 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3998 ECHO='print -r --'
3999elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4000 ECHO='printf %s\n'
4001else
4002 # Use this function as a fallback that always works.
4003 func_fallback_echo ()
4004 {
4005 eval 'cat <<_LTECHO_EOF
4006$1
4007_LTECHO_EOF'
4008 }
4009 ECHO='func_fallback_echo'
4010fi
4011
4012# func_echo_all arg...
4013# Invoke $ECHO with all args, space-separated.
4014func_echo_all ()
4015{
4016 $ECHO ""
4017}
4018
d50284c4 4019case $ECHO in
b0322a85
CE
4020 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4021$as_echo "printf" >&6; } ;;
4022 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4023$as_echo "print -r" >&6; } ;;
4024 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4025$as_echo "cat" >&6; } ;;
4026esac
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 4042$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 4043if ${ac_cv_path_SED+:} false; then :
8d138742
CE
4044 $as_echo_n "(cached) " >&6
4045else
4046 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4047 for ac_i in 1 2 3 4 5 6 7; do
4048 ac_script="$ac_script$as_nl$ac_script"
4049 done
4050 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 4051 { ac_script=; unset ac_script;}
8d138742
CE
4052 if test -z "$SED"; then
4053 ac_path_SED_found=false
4054 # Loop through the user's path and test for each of PROGNAME-LIST
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4056for as_dir in $PATH
4057do
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
b0322a85 4060 for ac_prog in sed gsed; do
d9898ee8 4061 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742 4062 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4063 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
4064# Check for GNU ac_path_SED and select it if it is found.
4065 # Check for GNU $ac_path_SED
4066case `"$ac_path_SED" --version 2>&1` in
4067*GNU*)
4068 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4069*)
4070 ac_count=0
4071 $as_echo_n 0123456789 >"conftest.in"
4072 while :
4073 do
4074 cat "conftest.in" "conftest.in" >"conftest.tmp"
4075 mv "conftest.tmp" "conftest.in"
4076 cp "conftest.in" "conftest.nl"
4077 $as_echo '' >> "conftest.nl"
4078 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4080 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4081 if test $ac_count -gt ${ac_path_SED_max-0}; then
4082 # Best one so far, save it but keep looking for a better one
4083 ac_cv_path_SED="$ac_path_SED"
4084 ac_path_SED_max=$ac_count
4085 fi
4086 # 10*(2^10) chars as input seems more than enough
4087 test $ac_count -gt 10 && break
4088 done
4089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090esac
4091
4092 $ac_path_SED_found && break 3
d9898ee8 4093 done
4094 done
b0322a85 4095 done
d9898ee8 4096IFS=$as_save_IFS
8d138742 4097 if test -z "$ac_cv_path_SED"; then
b0322a85 4098 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
d9898ee8 4099 fi
8d138742
CE
4100else
4101 ac_cv_path_SED=$SED
4102fi
d9898ee8 4103
4104fi
b0322a85 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
4106$as_echo "$ac_cv_path_SED" >&6; }
4107 SED="$ac_cv_path_SED"
4108 rm -f conftest.sed
4109
4110test -z "$SED" && SED=sed
4111Xsed="$SED -e 1s/^X//"
d9898ee8 4112
d9898ee8 4113
dd184caf 4114
8d138742
CE
4115
4116
4117
4118
4119
4120
4121
4122
b0322a85 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4124$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4125if ${ac_cv_path_GREP+:} false; then :
8d138742 4126 $as_echo_n "(cached) " >&6
dd184caf 4127else
8d138742 4128 if test -z "$GREP"; then
dd184caf 4129 ac_path_GREP_found=false
8d138742
CE
4130 # Loop through the user's path and test for each of PROGNAME-LIST
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4132for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
b0322a85 4136 for ac_prog in grep ggrep; do
8d138742
CE
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4139 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4140# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4141 # Check for GNU $ac_path_GREP
4142case `"$ac_path_GREP" --version 2>&1` in
4143*GNU*)
4144 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4145*)
4146 ac_count=0
8d138742 4147 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4148 while :
4149 do
4150 cat "conftest.in" "conftest.in" >"conftest.tmp"
4151 mv "conftest.tmp" "conftest.in"
4152 cp "conftest.in" "conftest.nl"
8d138742 4153 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4154 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4156 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4157 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158 # Best one so far, save it but keep looking for a better one
4159 ac_cv_path_GREP="$ac_path_GREP"
4160 ac_path_GREP_max=$ac_count
4161 fi
4162 # 10*(2^10) chars as input seems more than enough
4163 test $ac_count -gt 10 && break
4164 done
4165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166esac
4167
8d138742
CE
4168 $ac_path_GREP_found && break 3
4169 done
dd184caf 4170 done
b0322a85 4171 done
dd184caf 4172IFS=$as_save_IFS
8d138742 4173 if test -z "$ac_cv_path_GREP"; then
b0322a85 4174 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4175 fi
dd184caf 4176else
4177 ac_cv_path_GREP=$GREP
4178fi
4179
dd184caf 4180fi
b0322a85 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4182$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4183 GREP="$ac_cv_path_GREP"
4184
d9898ee8 4185
b0322a85 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4187$as_echo_n "checking for egrep... " >&6; }
b0322a85 4188if ${ac_cv_path_EGREP+:} false; then :
8d138742 4189 $as_echo_n "(cached) " >&6
dd184caf 4190else
4191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192 then ac_cv_path_EGREP="$GREP -E"
4193 else
8d138742 4194 if test -z "$EGREP"; then
dd184caf 4195 ac_path_EGREP_found=false
8d138742
CE
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
b0322a85 4202 for ac_prog in egrep; do
8d138742
CE
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4205 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4206# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4207 # Check for GNU $ac_path_EGREP
4208case `"$ac_path_EGREP" --version 2>&1` in
4209*GNU*)
4210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4211*)
4212 ac_count=0
8d138742 4213 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4214 while :
4215 do
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
8d138742 4219 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4222 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_EGREP="$ac_path_EGREP"
4226 ac_path_EGREP_max=$ac_count
d9898ee8 4227 fi
dd184caf 4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4230 done
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232esac
4233
8d138742
CE
4234 $ac_path_EGREP_found && break 3
4235 done
dd184caf 4236 done
b0322a85 4237 done
dd184caf 4238IFS=$as_save_IFS
8d138742 4239 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4240 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4241 fi
4242else
4243 ac_cv_path_EGREP=$EGREP
dd184caf 4244fi
4245
8d138742 4246 fi
dd184caf 4247fi
b0322a85 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742
CE
4249$as_echo "$ac_cv_path_EGREP" >&6; }
4250 EGREP="$ac_cv_path_EGREP"
dd184caf 4251
8d138742 4252
b0322a85 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 4254$as_echo_n "checking for fgrep... " >&6; }
b0322a85 4255if ${ac_cv_path_FGREP+:} false; then :
8d138742 4256 $as_echo_n "(cached) " >&6
dd184caf 4257else
8d138742
CE
4258 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4259 then ac_cv_path_FGREP="$GREP -F"
4260 else
4261 if test -z "$FGREP"; then
4262 ac_path_FGREP_found=false
4263 # Loop through the user's path and test for each of PROGNAME-LIST
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
b0322a85 4269 for ac_prog in fgrep; do
8d138742
CE
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4272 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
4273# Check for GNU ac_path_FGREP and select it if it is found.
4274 # Check for GNU $ac_path_FGREP
4275case `"$ac_path_FGREP" --version 2>&1` in
4276*GNU*)
4277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4278*)
4279 ac_count=0
4280 $as_echo_n 0123456789 >"conftest.in"
4281 while :
4282 do
4283 cat "conftest.in" "conftest.in" >"conftest.tmp"
4284 mv "conftest.tmp" "conftest.in"
4285 cp "conftest.in" "conftest.nl"
4286 $as_echo 'FGREP' >> "conftest.nl"
4287 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4289 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4291 # Best one so far, save it but keep looking for a better one
4292 ac_cv_path_FGREP="$ac_path_FGREP"
4293 ac_path_FGREP_max=$ac_count
4294 fi
4295 # 10*(2^10) chars as input seems more than enough
4296 test $ac_count -gt 10 && break
4297 done
4298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4299esac
dd184caf 4300
8d138742
CE
4301 $ac_path_FGREP_found && break 3
4302 done
4303 done
b0322a85 4304 done
8d138742
CE
4305IFS=$as_save_IFS
4306 if test -z "$ac_cv_path_FGREP"; then
b0322a85 4307 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4308 fi
4309else
4310 ac_cv_path_FGREP=$FGREP
4311fi
dd184caf 4312
4313 fi
4314fi
b0322a85 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
4316$as_echo "$ac_cv_path_FGREP" >&6; }
4317 FGREP="$ac_cv_path_FGREP"
4318
4319
4320test -z "$GREP" && GREP=grep
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
d9898ee8 4337
4338
4339
dd184caf 4340# Check whether --with-gnu-ld was given.
b0322a85 4341if test "${with_gnu_ld+set}" = set; then :
d50284c4 4342 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d9898ee8 4343else
4344 with_gnu_ld=no
dd184caf 4345fi
4346
d9898ee8 4347ac_prog=ld
d50284c4 4348if test yes = "$GCC"; then
d9898ee8 4349 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 4351$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4352 case $host in
4353 *-*-mingw*)
d50284c4 4354 # gcc leaves a trailing carriage return, which upsets mingw
d9898ee8 4355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4356 *)
4357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4358 esac
4359 case $ac_prog in
4360 # Accept absolute paths.
4361 [\\/]* | ?:[\\/]*)
4362 re_direlt='/[^/][^/]*/\.\./'
4363 # Canonicalize the pathname of ld
8d138742
CE
4364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4367 done
d50284c4 4368 test -z "$LD" && LD=$ac_prog
d9898ee8 4369 ;;
4370 "")
4371 # If it fails, then pretend we aren't using GCC.
4372 ac_prog=ld
4373 ;;
4374 *)
4375 # If it is relative, then search for the first ld in PATH.
4376 with_gnu_ld=unknown
4377 ;;
4378 esac
d50284c4 4379elif test yes = "$with_gnu_ld"; then
b0322a85 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 4381$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4382else
b0322a85 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 4384$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4385fi
b0322a85 4386if ${lt_cv_path_LD+:} false; then :
8d138742 4387 $as_echo_n "(cached) " >&6
d9898ee8 4388else
4389 if test -z "$LD"; then
d50284c4 4390 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4391 for ac_dir in $PATH; do
d50284c4 4392 IFS=$lt_save_ifs
d9898ee8 4393 test -z "$ac_dir" && ac_dir=.
4394 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
d50284c4 4395 lt_cv_path_LD=$ac_dir/$ac_prog
d9898ee8 4396 # Check to see if the program is GNU ld. I'd rather use --version,
4397 # but apparently some variants of GNU ld only accept -v.
4398 # Break only if it was the GNU/non-GNU ld that we prefer.
4399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4400 *GNU* | *'with BFD'*)
d50284c4 4401 test no != "$with_gnu_ld" && break
d9898ee8 4402 ;;
4403 *)
d50284c4 4404 test yes != "$with_gnu_ld" && break
d9898ee8 4405 ;;
4406 esac
4407 fi
4408 done
d50284c4 4409 IFS=$lt_save_ifs
d9898ee8 4410else
d50284c4 4411 lt_cv_path_LD=$LD # Let the user override the test with a path.
d9898ee8 4412fi
4413fi
4414
d50284c4 4415LD=$lt_cv_path_LD
d9898ee8 4416if test -n "$LD"; then
b0322a85 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 4418$as_echo "$LD" >&6; }
d9898ee8 4419else
b0322a85 4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4421$as_echo "no" >&6; }
d9898ee8 4422fi
b0322a85
CE
4423test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 4425$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 4426if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 4427 $as_echo_n "(cached) " >&6
d9898ee8 4428else
4429 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4430case `$LD -v 2>&1 </dev/null` in
4431*GNU* | *'with BFD'*)
4432 lt_cv_prog_gnu_ld=yes
4433 ;;
4434*)
4435 lt_cv_prog_gnu_ld=no
4436 ;;
4437esac
4438fi
b0322a85 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 4440$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4441with_gnu_ld=$lt_cv_prog_gnu_ld
4442
4443
d9898ee8 4444
8d138742
CE
4445
4446
4447
4448
4449
4450
b0322a85 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 4452$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 4453if ${lt_cv_path_NM+:} false; then :
8d138742 4454 $as_echo_n "(cached) " >&6
d9898ee8 4455else
4456 if test -n "$NM"; then
4457 # Let the user override the test.
d50284c4 4458 lt_cv_path_NM=$NM
d9898ee8 4459else
d50284c4 4460 lt_nm_to_check=${ac_tool_prefix}nm
d9898ee8 4461 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4462 lt_nm_to_check="$lt_nm_to_check nm"
4463 fi
4464 for lt_tmp_nm in $lt_nm_to_check; do
d50284c4 4465 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4466 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
d50284c4 4467 IFS=$lt_save_ifs
d9898ee8 4468 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
4469 tmp_nm=$ac_dir/$lt_tmp_nm
4470 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d9898ee8 4471 # Check to see if the nm accepts a BSD-compat flag.
d50284c4 4472 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d9898ee8 4473 # nm: unknown option "B" ignored
4474 # Tru64's nm complains that /dev/null is an invalid object file
d50284c4
CE
4475 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4476 case $build_os in
4477 mingw*) lt_bad_file=conftest.nm/nofile ;;
4478 *) lt_bad_file=/dev/null ;;
4479 esac
4480 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4481 *$lt_bad_file* | *'Invalid file or object type'*)
d9898ee8 4482 lt_cv_path_NM="$tmp_nm -B"
d50284c4 4483 break 2
d9898ee8 4484 ;;
4485 *)
4486 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4487 */dev/null*)
4488 lt_cv_path_NM="$tmp_nm -p"
d50284c4 4489 break 2
d9898ee8 4490 ;;
4491 *)
4492 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4493 continue # so that we can try to find one that supports BSD flags
4494 ;;
4495 esac
4496 ;;
4497 esac
4498 fi
4499 done
d50284c4 4500 IFS=$lt_save_ifs
d9898ee8 4501 done
8d138742 4502 : ${lt_cv_path_NM=no}
d9898ee8 4503fi
4504fi
b0322a85 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742 4506$as_echo "$lt_cv_path_NM" >&6; }
d50284c4
CE
4507if test no != "$lt_cv_path_NM"; then
4508 NM=$lt_cv_path_NM
d9898ee8 4509else
8d138742 4510 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
4511 if test -n "$DUMPBIN"; then :
4512 # Let the user override the test.
4513 else
4514 if test -n "$ac_tool_prefix"; then
4515 for ac_prog in dumpbin "link -dump"
8d138742
CE
4516 do
4517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4518set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4520$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4521if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
4522 $as_echo_n "(cached) " >&6
4523else
4524 if test -n "$DUMPBIN"; then
4525 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
b0322a85
CE
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4534 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4536 break 2
4537 fi
4538done
b0322a85 4539 done
8d138742 4540IFS=$as_save_IFS
d9898ee8 4541
8d138742
CE
4542fi
4543fi
4544DUMPBIN=$ac_cv_prog_DUMPBIN
4545if test -n "$DUMPBIN"; then
b0322a85 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742
CE
4547$as_echo "$DUMPBIN" >&6; }
4548else
b0322a85 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4550$as_echo "no" >&6; }
4551fi
d9898ee8 4552
d9898ee8 4553
8d138742
CE
4554 test -n "$DUMPBIN" && break
4555 done
4556fi
4557if test -z "$DUMPBIN"; then
4558 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 4559 for ac_prog in dumpbin "link -dump"
8d138742
CE
4560do
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562set dummy $ac_prog; ac_word=$2
b0322a85 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4564$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4565if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
4566 $as_echo_n "(cached) " >&6
4567else
4568 if test -n "$ac_ct_DUMPBIN"; then
4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
b0322a85
CE
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 4580 break 2
ac40fd9e 4581 fi
8d138742 4582done
b0322a85 4583 done
8d138742 4584IFS=$as_save_IFS
d9898ee8 4585
8d138742
CE
4586fi
4587fi
4588ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4589if test -n "$ac_ct_DUMPBIN"; then
b0322a85 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
4591$as_echo "$ac_ct_DUMPBIN" >&6; }
4592else
b0322a85 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4594$as_echo "no" >&6; }
4595fi
d9898ee8 4596
8d138742
CE
4597
4598 test -n "$ac_ct_DUMPBIN" && break
4599done
4600
4601 if test "x$ac_ct_DUMPBIN" = x; then
4602 DUMPBIN=":"
d9898ee8 4603 else
8d138742
CE
4604 case $cross_compiling:$ac_tool_warned in
4605yes:)
b0322a85 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608ac_tool_warned=yes ;;
4609esac
4610 DUMPBIN=$ac_ct_DUMPBIN
d9898ee8 4611 fi
8d138742 4612fi
d9898ee8 4613
d50284c4 4614 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
b0322a85 4615 *COFF*)
d50284c4 4616 DUMPBIN="$DUMPBIN -symbols -headers"
b0322a85
CE
4617 ;;
4618 *)
4619 DUMPBIN=:
4620 ;;
4621 esac
4622 fi
d9898ee8 4623
d50284c4
CE
4624 if test : != "$DUMPBIN"; then
4625 NM=$DUMPBIN
8d138742
CE
4626 fi
4627fi
4628test -z "$NM" && NM=nm
d9898ee8 4629
d9898ee8 4630
d9898ee8 4631
d9898ee8 4632
d9898ee8 4633
d9898ee8 4634
b0322a85 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 4636$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 4637if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
4638 $as_echo_n "(cached) " >&6
4639else
4640 lt_cv_nm_interface="BSD nm"
4641 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 4642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
4643 (eval "$ac_compile" 2>conftest.err)
4644 cat conftest.err >&5
b0322a85 4645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
4646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4647 cat conftest.err >&5
b0322a85 4648 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
4649 cat conftest.out >&5
4650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4651 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4652 fi
8d138742
CE
4653 rm -f conftest*
4654fi
b0322a85 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 4656$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4657
8d138742 4658# find the maximum length of command line arguments
b0322a85 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 4660$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 4661if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
4662 $as_echo_n "(cached) " >&6
4663else
4664 i=0
d50284c4 4665 teststring=ABCD
d9898ee8 4666
8d138742
CE
4667 case $build_os in
4668 msdosdjgpp*)
4669 # On DJGPP, this test can blow up pretty badly due to problems in libc
4670 # (any single argument exceeding 2000 bytes causes a buffer overrun
4671 # during glob expansion). Even if it were fixed, the result of this
4672 # check would be larger than it should be.
4673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4674 ;;
ac40fd9e 4675
8d138742
CE
4676 gnu*)
4677 # Under GNU Hurd, this test is not required because there is
4678 # no limit to the length of command line arguments.
4679 # Libtool will interpret -1 as no limit whatsoever
4680 lt_cv_sys_max_cmd_len=-1;
4681 ;;
d9898ee8 4682
8d138742
CE
4683 cygwin* | mingw* | cegcc*)
4684 # On Win9x/ME, this test blows up -- it succeeds, but takes
4685 # about 5 minutes as the teststring grows exponentially.
4686 # Worse, since 9x/ME are not pre-emptively multitasking,
4687 # you end up with a "frozen" computer, even though with patience
4688 # the test eventually succeeds (with a max line length of 256k).
4689 # Instead, let's just punt: use the minimum linelength reported by
4690 # all of the supported platforms: 8192 (on NT/2K/XP).
4691 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4692 ;;
8d138742 4693
b0322a85
CE
4694 mint*)
4695 # On MiNT this can take a long time and run out of memory.
4696 lt_cv_sys_max_cmd_len=8192;
4697 ;;
4698
8d138742
CE
4699 amigaos*)
4700 # On AmigaOS with pdksh, this test takes hours, literally.
4701 # So we just punt and use a minimum line length of 8192.
4702 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4703 ;;
8d138742 4704
d50284c4 4705 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8d138742
CE
4706 # This has been around since 386BSD, at least. Likely further.
4707 if test -x /sbin/sysctl; then
4708 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4709 elif test -x /usr/sbin/sysctl; then
4710 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4711 else
4712 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4713 fi
4714 # And add a safety zone
4715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4717 ;;
8d138742
CE
4718
4719 interix*)
4720 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4721 lt_cv_sys_max_cmd_len=196608
d9898ee8 4722 ;;
8d138742 4723
b0322a85
CE
4724 os2*)
4725 # The test takes a long time on OS/2.
4726 lt_cv_sys_max_cmd_len=8192
4727 ;;
4728
8d138742
CE
4729 osf*)
4730 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4731 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4732 # nice to cause kernel panics so lets avoid the loop below.
4733 # First set a reasonable default.
4734 lt_cv_sys_max_cmd_len=16384
4735 #
4736 if test -x /sbin/sysconfig; then
4737 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4738 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4739 esac
4740 fi
d9898ee8 4741 ;;
8d138742
CE
4742 sco3.2v5*)
4743 lt_cv_sys_max_cmd_len=102400
4744 ;;
4745 sysv5* | sco5v6* | sysv4.2uw2*)
4746 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4747 if test -n "$kargmax"; then
4748 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4749 else
4750 lt_cv_sys_max_cmd_len=32768
4751 fi
4752 ;;
4753 *)
4754 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
d50284c4
CE
4755 if test -n "$lt_cv_sys_max_cmd_len" && \
4756 test undefined != "$lt_cv_sys_max_cmd_len"; then
8d138742
CE
4757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4759 else
4760 # Make teststring a little bigger before we do anything with it.
4761 # a 1K string should be a reasonable start.
d50284c4 4762 for i in 1 2 3 4 5 6 7 8; do
8d138742
CE
4763 teststring=$teststring$teststring
4764 done
4765 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4766 # If test is not a shell built-in, we'll probably end up computing a
4767 # maximum length that is only half of the actual maximum length, but
4768 # we can't tell.
d50284c4 4769 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
b0322a85 4770 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
d50284c4 4771 test 17 != "$i" # 1/2 MB should be enough
8d138742
CE
4772 do
4773 i=`expr $i + 1`
4774 teststring=$teststring$teststring
4775 done
4776 # Only check the string length outside the loop.
4777 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4778 teststring=
4779 # Add a significant safety factor because C++ compilers can tack on
4780 # massive amounts of additional arguments before passing them to the
4781 # linker. It appears as though 1/2 is a usable value.
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4783 fi
d9898ee8 4784 ;;
4785 esac
d9898ee8 4786
8d138742 4787fi
d9898ee8 4788
d50284c4 4789if test -n "$lt_cv_sys_max_cmd_len"; then
b0322a85 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
4791$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4792else
b0322a85 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742 4794$as_echo "none" >&6; }
d9898ee8 4795fi
8d138742 4796max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4797
4798
4799
4800
d9898ee8 4801
d9898ee8 4802
8d138742
CE
4803: ${CP="cp -f"}
4804: ${MV="mv -f"}
4805: ${RM="rm -f"}
d9898ee8 4806
8d138742
CE
4807if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4808 lt_unset=unset
d9898ee8 4809else
8d138742
CE
4810 lt_unset=false
4811fi
d9898ee8 4812
d9898ee8 4813
d9898ee8 4814
dd184caf 4815
d9898ee8 4816
8d138742
CE
4817# test EBCDIC or ASCII
4818case `echo X|tr X '\101'` in
4819 A) # ASCII based system
4820 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4821 lt_SP2NL='tr \040 \012'
4822 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4823 ;;
8d138742
CE
4824 *) # EBCDIC based system
4825 lt_SP2NL='tr \100 \n'
4826 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4827 ;;
8d138742 4828esac
d9898ee8 4829
4830
d9898ee8 4831
d9898ee8 4832
4833
8d138742
CE
4834
4835
4836
4837
b0322a85
CE
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4839$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4840if ${lt_cv_to_host_file_cmd+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 case $host in
4844 *-*-mingw* )
4845 case $build in
4846 *-*-mingw* ) # actually msys
4847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4848 ;;
4849 *-*-cygwin* )
4850 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4851 ;;
4852 * ) # otherwise, assume *nix
4853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4854 ;;
4855 esac
4856 ;;
4857 *-*-cygwin* )
4858 case $build in
4859 *-*-mingw* ) # actually msys
4860 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4861 ;;
4862 *-*-cygwin* )
4863 lt_cv_to_host_file_cmd=func_convert_file_noop
4864 ;;
4865 * ) # otherwise, assume *nix
4866 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4867 ;;
4868 esac
4869 ;;
4870 * ) # unhandled hosts (and "normal" native builds)
4871 lt_cv_to_host_file_cmd=func_convert_file_noop
4872 ;;
4873esac
4874
4875fi
4876
4877to_host_file_cmd=$lt_cv_to_host_file_cmd
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4879$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4880
4881
4882
4883
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4886$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4887if ${lt_cv_to_tool_file_cmd+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889else
4890 #assume ordinary cross tools, or native build.
4891lt_cv_to_tool_file_cmd=func_convert_file_noop
4892case $host in
4893 *-*-mingw* )
4894 case $build in
4895 *-*-mingw* ) # actually msys
4896 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4897 ;;
4898 esac
4899 ;;
4900esac
4901
4902fi
4903
4904to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4906$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4907
4908
4909
4910
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 4913$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 4914if ${lt_cv_ld_reload_flag+:} false; then :
8d138742 4915 $as_echo_n "(cached) " >&6
d9898ee8 4916else
8d138742
CE
4917 lt_cv_ld_reload_flag='-r'
4918fi
b0322a85 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
4920$as_echo "$lt_cv_ld_reload_flag" >&6; }
4921reload_flag=$lt_cv_ld_reload_flag
4922case $reload_flag in
4923"" | " "*) ;;
4924*) reload_flag=" $reload_flag" ;;
4925esac
4926reload_cmds='$LD$reload_flag -o $output$reload_objs'
4927case $host_os in
b0322a85 4928 cygwin* | mingw* | pw32* | cegcc*)
d50284c4 4929 if test yes != "$GCC"; then
b0322a85
CE
4930 reload_cmds=false
4931 fi
4932 ;;
8d138742 4933 darwin*)
d50284c4
CE
4934 if test yes = "$GCC"; then
4935 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8d138742
CE
4936 else
4937 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4938 fi
4939 ;;
dd184caf 4940esac
d9898ee8 4941
dd184caf 4942
d9898ee8 4943
d9898ee8 4944
dd184caf 4945
d9898ee8 4946
d9898ee8 4947
d9898ee8 4948
8d138742
CE
4949
4950if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4952set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4954$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4955if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 4956 $as_echo_n "(cached) " >&6
d9898ee8 4957else
8d138742
CE
4958 if test -n "$OBJDUMP"; then
4959 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 4960else
8d138742
CE
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
b0322a85
CE
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4968 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4970 break 2
4971 fi
4972done
b0322a85 4973 done
8d138742 4974IFS=$as_save_IFS
d9898ee8 4975
8d138742
CE
4976fi
4977fi
4978OBJDUMP=$ac_cv_prog_OBJDUMP
4979if test -n "$OBJDUMP"; then
b0322a85 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742
CE
4981$as_echo "$OBJDUMP" >&6; }
4982else
b0322a85 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4984$as_echo "no" >&6; }
d9898ee8 4985fi
dd184caf 4986
d9898ee8 4987
8d138742
CE
4988fi
4989if test -z "$ac_cv_prog_OBJDUMP"; then
4990 ac_ct_OBJDUMP=$OBJDUMP
4991 # Extract the first word of "objdump", so it can be a program name with args.
4992set dummy objdump; ac_word=$2
b0322a85 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4994$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4995if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742 4996 $as_echo_n "(cached) " >&6
d9898ee8 4997else
8d138742
CE
4998 if test -n "$ac_ct_OBJDUMP"; then
4999 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5000else
5001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
b0322a85
CE
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5008 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5010 break 2
5011 fi
5012done
b0322a85 5013 done
8d138742 5014IFS=$as_save_IFS
d9898ee8 5015
8d138742
CE
5016fi
5017fi
5018ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5019if test -n "$ac_ct_OBJDUMP"; then
b0322a85 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742
CE
5021$as_echo "$ac_ct_OBJDUMP" >&6; }
5022else
b0322a85 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5024$as_echo "no" >&6; }
d9898ee8 5025fi
dd184caf 5026
8d138742
CE
5027 if test "x$ac_ct_OBJDUMP" = x; then
5028 OBJDUMP="false"
5029 else
5030 case $cross_compiling:$ac_tool_warned in
5031yes:)
b0322a85 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034ac_tool_warned=yes ;;
5035esac
5036 OBJDUMP=$ac_ct_OBJDUMP
5037 fi
d9898ee8 5038else
8d138742 5039 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 5040fi
5041
8d138742 5042test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 5043
5044
d9898ee8 5045
d9898ee8 5046
d9898ee8 5047
dd184caf 5048
d9898ee8 5049
d9898ee8 5050
8d138742 5051
b0322a85 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 5053$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 5054if ${lt_cv_deplibs_check_method+:} false; then :
8d138742 5055 $as_echo_n "(cached) " >&6
d9898ee8 5056else
8d138742
CE
5057 lt_cv_file_magic_cmd='$MAGIC_CMD'
5058lt_cv_file_magic_test_file=
5059lt_cv_deplibs_check_method='unknown'
5060# Need to set the preceding variable on all platforms that support
5061# interlibrary dependencies.
5062# 'none' -- dependencies not supported.
d50284c4 5063# 'unknown' -- same as none, but documents that we really don't know.
8d138742
CE
5064# 'pass_all' -- all dependencies passed with no checks.
5065# 'test_compile' -- check by making test program.
5066# 'file_magic [[regex]]' -- check by looking for files in library path
d50284c4
CE
5067# that responds to the $file_magic_cmd with a given extended regex.
5068# If you have 'file' or equivalent on your system and you're not sure
5069# whether 'pass_all' will *always* work, you probably want this one.
d9898ee8 5070
8d138742
CE
5071case $host_os in
5072aix[4-9]*)
5073 lt_cv_deplibs_check_method=pass_all
5074 ;;
d9898ee8 5075
8d138742
CE
5076beos*)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
d9898ee8 5079
8d138742
CE
5080bsdi[45]*)
5081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5082 lt_cv_file_magic_cmd='/usr/bin/file -L'
5083 lt_cv_file_magic_test_file=/shlib/libc.so
5084 ;;
d9898ee8 5085
8d138742
CE
5086cygwin*)
5087 # func_win32_libid is a shell function defined in ltmain.sh
5088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5089 lt_cv_file_magic_cmd='func_win32_libid'
5090 ;;
d9898ee8 5091
8d138742
CE
5092mingw* | pw32*)
5093 # Base MSYS/MinGW do not provide the 'file' command needed by
5094 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5095 # unless we find 'file', for example because we are cross-compiling.
d50284c4 5096 if ( file / ) >/dev/null 2>&1; then
8d138742
CE
5097 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5098 lt_cv_file_magic_cmd='func_win32_libid'
5099 else
b0322a85
CE
5100 # Keep this pattern in sync with the one in func_win32_libid.
5101 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
5102 lt_cv_file_magic_cmd='$OBJDUMP -f'
5103 fi
5104 ;;
d9898ee8 5105
b0322a85 5106cegcc*)
8d138742
CE
5107 # use the weaker test based on 'objdump'. See mingw*.
5108 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5109 lt_cv_file_magic_cmd='$OBJDUMP -f'
5110 ;;
d9898ee8 5111
8d138742
CE
5112darwin* | rhapsody*)
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115
5116freebsd* | dragonfly*)
5117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5118 case $host_cpu in
5119 i*86 )
5120 # Not sure whether the presence of OpenBSD here was a mistake.
5121 # Let's accept both of them until this is cleared up.
5122 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5123 lt_cv_file_magic_cmd=/usr/bin/file
5124 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5125 ;;
5126 esac
5127 else
5128 lt_cv_deplibs_check_method=pass_all
5129 fi
5130 ;;
dd184caf 5131
b0322a85
CE
5132haiku*)
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135
8d138742
CE
5136hpux10.20* | hpux11*)
5137 lt_cv_file_magic_cmd=/usr/bin/file
5138 case $host_cpu in
5139 ia64*)
5140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5141 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5142 ;;
5143 hppa*64*)
b0322a85 5144 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
5145 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5146 ;;
5147 *)
b0322a85 5148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
5149 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5150 ;;
5151 esac
5152 ;;
d9898ee8 5153
8d138742
CE
5154interix[3-9]*)
5155 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5157 ;;
d9898ee8 5158
8d138742
CE
5159irix5* | irix6* | nonstopux*)
5160 case $LD in
5161 *-32|*"-32 ") libmagic=32-bit;;
5162 *-n32|*"-n32 ") libmagic=N32;;
5163 *-64|*"-64 ") libmagic=64-bit;;
5164 *) libmagic=never-match;;
5165 esac
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
d9898ee8 5168
b0322a85 5169# This must be glibc/ELF.
d50284c4 5170linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b0322a85
CE
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174netbsd*)
5175 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5177 else
5178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5179 fi
5180 ;;
5181
5182newos6*)
5183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5184 lt_cv_file_magic_cmd=/usr/bin/file
5185 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5186 ;;
5187
5188*nto* | *qnx*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191
d50284c4
CE
5192openbsd* | bitrig*)
5193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
b0322a85
CE
5194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5195 else
5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197 fi
5198 ;;
5199
5200osf3* | osf4* | osf5*)
5201 lt_cv_deplibs_check_method=pass_all
5202 ;;
5203
5204rdos*)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207
5208solaris*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215
5216sysv4 | sysv4.3*)
5217 case $host_vendor in
5218 motorola)
5219 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]'
5220 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5221 ;;
5222 ncr)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225 sequent)
5226 lt_cv_file_magic_cmd='/bin/file'
5227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5228 ;;
5229 sni)
5230 lt_cv_file_magic_cmd='/bin/file'
5231 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5232 lt_cv_file_magic_test_file=/lib/libc.so
5233 ;;
5234 siemens)
5235 lt_cv_deplibs_check_method=pass_all
5236 ;;
5237 pc)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240 esac
5241 ;;
5242
5243tpf*)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
d50284c4
CE
5246os2*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
b0322a85
CE
5249esac
5250
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5253$as_echo "$lt_cv_deplibs_check_method" >&6; }
5254
5255file_magic_glob=
5256want_nocaseglob=no
5257if test "$build" = "$host"; then
5258 case $host_os in
5259 mingw* | pw32*)
5260 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5261 want_nocaseglob=yes
5262 else
5263 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5264 fi
5265 ;;
5266 esac
5267fi
5268
5269file_magic_cmd=$lt_cv_file_magic_cmd
5270deplibs_check_method=$lt_cv_deplibs_check_method
5271test -z "$deplibs_check_method" && deplibs_check_method=unknown
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294if test -n "$ac_tool_prefix"; then
5295 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5296set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298$as_echo_n "checking for $ac_word... " >&6; }
5299if ${ac_cv_prog_DLLTOOL+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301else
5302 if test -n "$DLLTOOL"; then
5303 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316done
5317 done
5318IFS=$as_save_IFS
5319
5320fi
5321fi
5322DLLTOOL=$ac_cv_prog_DLLTOOL
5323if test -n "$DLLTOOL"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5325$as_echo "$DLLTOOL" >&6; }
5326else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328$as_echo "no" >&6; }
5329fi
5330
5331
5332fi
5333if test -z "$ac_cv_prog_DLLTOOL"; then
5334 ac_ct_DLLTOOL=$DLLTOOL
5335 # Extract the first word of "dlltool", so it can be a program name with args.
5336set dummy dlltool; ac_word=$2
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338$as_echo_n "checking for $ac_word... " >&6; }
5339if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341else
5342 if test -n "$ac_ct_DLLTOOL"; then
5343 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5355 fi
5356done
5357 done
5358IFS=$as_save_IFS
5359
5360fi
5361fi
5362ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5363if test -n "$ac_ct_DLLTOOL"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5365$as_echo "$ac_ct_DLLTOOL" >&6; }
5366else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368$as_echo "no" >&6; }
5369fi
5370
5371 if test "x$ac_ct_DLLTOOL" = x; then
5372 DLLTOOL="false"
5373 else
5374 case $cross_compiling:$ac_tool_warned in
5375yes:)
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5378ac_tool_warned=yes ;;
5379esac
5380 DLLTOOL=$ac_ct_DLLTOOL
5381 fi
5382else
5383 DLLTOOL="$ac_cv_prog_DLLTOOL"
5384fi
5385
5386test -z "$DLLTOOL" && DLLTOOL=dlltool
d9898ee8 5387
5388
5389
5390
5391
5392
5393
5394
5395
b0322a85
CE
5396
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5398$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5399if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401else
5402 lt_cv_sharedlib_from_linklib_cmd='unknown'
5403
5404case $host_os in
5405cygwin* | mingw* | pw32* | cegcc*)
d50284c4
CE
5406 # two different shell functions defined in ltmain.sh;
5407 # decide which one to use based on capabilities of $DLLTOOL
b0322a85
CE
5408 case `$DLLTOOL --help 2>&1` in
5409 *--identify-strict*)
5410 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8d138742 5411 ;;
b0322a85
CE
5412 *)
5413 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8d138742
CE
5414 ;;
5415 esac
5416 ;;
b0322a85
CE
5417*)
5418 # fallback: assume linklib IS sharedlib
d50284c4 5419 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8d138742 5420 ;;
dd184caf 5421esac
d9898ee8 5422
d9898ee8 5423fi
b0322a85
CE
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5425$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5426sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5427test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9898ee8 5428
5429
d9898ee8 5430
dd184caf 5431
d9898ee8 5432
8d138742
CE
5433
5434
5435
5436if test -n "$ac_tool_prefix"; then
b0322a85
CE
5437 for ac_prog in ar
5438 do
5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5442$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5443if ${ac_cv_prog_AR+:} false; then :
8d138742 5444 $as_echo_n "(cached) " >&6
d9898ee8 5445else
8d138742
CE
5446 if test -n "$AR"; then
5447 ac_cv_prog_AR="$AR" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
b0322a85
CE
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5458 break 2
5459 fi
5460done
b0322a85 5461 done
8d138742 5462IFS=$as_save_IFS
d9898ee8 5463
8d138742
CE
5464fi
5465fi
5466AR=$ac_cv_prog_AR
5467if test -n "$AR"; then
b0322a85 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742
CE
5469$as_echo "$AR" >&6; }
5470else
b0322a85 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5472$as_echo "no" >&6; }
d9898ee8 5473fi
dd184caf 5474
d9898ee8 5475
b0322a85
CE
5476 test -n "$AR" && break
5477 done
d9898ee8 5478fi
b0322a85 5479if test -z "$AR"; then
8d138742 5480 ac_ct_AR=$AR
b0322a85
CE
5481 for ac_prog in ar
5482do
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484set dummy $ac_prog; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5486$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5487if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742
CE
5488 $as_echo_n "(cached) " >&6
5489else
5490 if test -n "$ac_ct_AR"; then
5491 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
b0322a85
CE
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_prog_ac_ct_AR="$ac_prog"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5502 break 2
5503 fi
5504done
b0322a85 5505 done
8d138742 5506IFS=$as_save_IFS
d9898ee8 5507
5508fi
8d138742
CE
5509fi
5510ac_ct_AR=$ac_cv_prog_ac_ct_AR
5511if test -n "$ac_ct_AR"; then
b0322a85 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742
CE
5513$as_echo "$ac_ct_AR" >&6; }
5514else
b0322a85 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5516$as_echo "no" >&6; }
5517fi
d9898ee8 5518
b0322a85
CE
5519
5520 test -n "$ac_ct_AR" && break
5521done
5522
8d138742
CE
5523 if test "x$ac_ct_AR" = x; then
5524 AR="false"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
b0322a85 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532 AR=$ac_ct_AR
5533 fi
d9898ee8 5534fi
5535
b0322a85
CE
5536: ${AR=ar}
5537: ${AR_FLAGS=cru}
5538
d9898ee8 5539
8d138742
CE
5540
5541
5542
5543
5544
5545
5546
5547
5548
b0322a85
CE
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5550$as_echo_n "checking for archiver @FILE support... " >&6; }
5551if ${lt_cv_ar_at_file+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553else
5554 lt_cv_ar_at_file=no
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h. */
5557
5558int
5559main ()
5560{
5561
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567 echo conftest.$ac_objext > conftest.lst
5568 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5570 (eval $lt_ar_try) 2>&5
5571 ac_status=$?
5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5573 test $ac_status = 0; }
d50284c4 5574 if test 0 -eq "$ac_status"; then
b0322a85
CE
5575 # Ensure the archiver fails upon bogus file names.
5576 rm -f conftest.$ac_objext libconftest.a
5577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5578 (eval $lt_ar_try) 2>&5
5579 ac_status=$?
5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581 test $ac_status = 0; }
d50284c4 5582 if test 0 -ne "$ac_status"; then
b0322a85
CE
5583 lt_cv_ar_at_file=@
5584 fi
5585 fi
5586 rm -f conftest.* libconftest.a
5587
5588fi
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5593$as_echo "$lt_cv_ar_at_file" >&6; }
5594
d50284c4 5595if test no = "$lt_cv_ar_at_file"; then
b0322a85
CE
5596 archiver_list_spec=
5597else
5598 archiver_list_spec=$lt_cv_ar_at_file
5599fi
5600
5601
5602
5603
5604
5605
8d138742
CE
5606
5607if test -n "$ac_tool_prefix"; then
5608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5609set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5611$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5612if ${ac_cv_prog_STRIP+:} false; then :
8d138742 5613 $as_echo_n "(cached) " >&6
d9898ee8 5614else
8d138742
CE
5615 if test -n "$STRIP"; then
5616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
b0322a85
CE
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5627 break 2
5628 fi
5629done
b0322a85 5630 done
dd184caf 5631IFS=$as_save_IFS
d9898ee8 5632
5633fi
5634fi
8d138742
CE
5635STRIP=$ac_cv_prog_STRIP
5636if test -n "$STRIP"; then
b0322a85 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742 5638$as_echo "$STRIP" >&6; }
d9898ee8 5639else
b0322a85 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5641$as_echo "no" >&6; }
d9898ee8 5642fi
5643
dd184caf 5644
d9898ee8 5645fi
8d138742
CE
5646if test -z "$ac_cv_prog_STRIP"; then
5647 ac_ct_STRIP=$STRIP
5648 # Extract the first word of "strip", so it can be a program name with args.
5649set dummy strip; ac_word=$2
b0322a85 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5651$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5652if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 5653 $as_echo_n "(cached) " >&6
d9898ee8 5654else
8d138742
CE
5655 if test -n "$ac_ct_STRIP"; then
5656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5657else
5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH
5660do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
b0322a85
CE
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5665 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5667 break 2
5668 fi
5669done
b0322a85 5670 done
dd184caf 5671IFS=$as_save_IFS
d9898ee8 5672
5673fi
5674fi
8d138742
CE
5675ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5676if test -n "$ac_ct_STRIP"; then
b0322a85 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742 5678$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5679else
b0322a85 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5681$as_echo "no" >&6; }
d9898ee8 5682fi
5683
8d138742
CE
5684 if test "x$ac_ct_STRIP" = x; then
5685 STRIP=":"
dd184caf 5686 else
5687 case $cross_compiling:$ac_tool_warned in
5688yes:)
b0322a85 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 5690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5691ac_tool_warned=yes ;;
5692esac
8d138742 5693 STRIP=$ac_ct_STRIP
dd184caf 5694 fi
8d138742
CE
5695else
5696 STRIP="$ac_cv_prog_STRIP"
d9898ee8 5697fi
5698
8d138742 5699test -z "$STRIP" && STRIP=:
d9898ee8 5700
d9898ee8 5701
d9898ee8 5702
8d138742
CE
5703
5704
5705
5706if test -n "$ac_tool_prefix"; then
5707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5708set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5710$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5711if ${ac_cv_prog_RANLIB+:} false; then :
8d138742 5712 $as_echo_n "(cached) " >&6
d9898ee8 5713else
8d138742
CE
5714 if test -n "$RANLIB"; then
5715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
b0322a85
CE
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5726 break 2
5727 fi
5728done
b0322a85 5729 done
8d138742 5730IFS=$as_save_IFS
d9898ee8 5731
8d138742
CE
5732fi
5733fi
5734RANLIB=$ac_cv_prog_RANLIB
5735if test -n "$RANLIB"; then
b0322a85 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742
CE
5737$as_echo "$RANLIB" >&6; }
5738else
b0322a85 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5740$as_echo "no" >&6; }
d9898ee8 5741fi
dd184caf 5742
d9898ee8 5743
8d138742
CE
5744fi
5745if test -z "$ac_cv_prog_RANLIB"; then
5746 ac_ct_RANLIB=$RANLIB
5747 # Extract the first word of "ranlib", so it can be a program name with args.
5748set dummy ranlib; ac_word=$2
b0322a85 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5750$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5751if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
5752 $as_echo_n "(cached) " >&6
5753else
5754 if test -n "$ac_ct_RANLIB"; then
5755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
b0322a85
CE
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5764 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5766 break 2
5767 fi
5768done
b0322a85 5769 done
8d138742 5770IFS=$as_save_IFS
d9898ee8 5771
8d138742
CE
5772fi
5773fi
5774ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5775if test -n "$ac_ct_RANLIB"; then
b0322a85 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
5777$as_echo "$ac_ct_RANLIB" >&6; }
5778else
b0322a85 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5780$as_echo "no" >&6; }
5781fi
5782
5783 if test "x$ac_ct_RANLIB" = x; then
5784 RANLIB=":"
5785 else
5786 case $cross_compiling:$ac_tool_warned in
5787yes:)
b0322a85 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5790ac_tool_warned=yes ;;
dd184caf 5791esac
8d138742
CE
5792 RANLIB=$ac_ct_RANLIB
5793 fi
d9898ee8 5794else
8d138742
CE
5795 RANLIB="$ac_cv_prog_RANLIB"
5796fi
d9898ee8 5797
8d138742 5798test -z "$RANLIB" && RANLIB=:
dd184caf 5799
dd184caf 5800
d9898ee8 5801
dd184caf 5802
dd184caf 5803
d9898ee8 5804
8d138742
CE
5805# Determine commands to create old-style static archives.
5806old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5807old_postinstall_cmds='chmod 644 $oldlib'
5808old_postuninstall_cmds=
dd184caf 5809
8d138742
CE
5810if test -n "$RANLIB"; then
5811 case $host_os in
d50284c4 5812 bitrig* | openbsd*)
b0322a85 5813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8d138742
CE
5814 ;;
5815 *)
b0322a85 5816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
5817 ;;
5818 esac
b0322a85 5819 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 5820fi
dd184caf 5821
b0322a85
CE
5822case $host_os in
5823 darwin*)
5824 lock_old_archive_extraction=yes ;;
5825 *)
5826 lock_old_archive_extraction=no ;;
5827esac
5828
5829
5830
5831
5832
5833
dd184caf 5834
d9898ee8 5835
d9898ee8 5836
d9898ee8 5837
d9898ee8 5838
d9898ee8 5839
d9898ee8 5840
d9898ee8 5841
d9898ee8 5842
d9898ee8 5843
5844
5845
5846
d9898ee8 5847
dd184caf 5848
d9898ee8 5849
d9898ee8 5850
dd184caf 5851
d9898ee8 5852
d9898ee8 5853
d9898ee8 5854
d9898ee8 5855
dd184caf 5856
d9898ee8 5857
d9898ee8 5858
dd184caf 5859
d9898ee8 5860
d9898ee8 5861
d9898ee8 5862
d9898ee8 5863
5864
d9898ee8 5865
d9898ee8 5866
8d138742
CE
5867# If no C compiler was specified, use CC.
5868LTCC=${LTCC-"$CC"}
dd184caf 5869
8d138742
CE
5870# If no C compiler flags were specified, use CFLAGS.
5871LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5872
8d138742
CE
5873# Allow CC to be a program name with arguments.
5874compiler=$CC
5875
5876
5877# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 5879$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 5880if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 5881 $as_echo_n "(cached) " >&6
d9898ee8 5882else
d9898ee8 5883
8d138742
CE
5884# These are sane defaults that work on at least a few old systems.
5885# [They come from Ultrix. What could be older than Ultrix?!! ;)]
dd184caf 5886
8d138742
CE
5887# Character class describing NM global symbol codes.
5888symcode='[BCDEGRST]'
d9898ee8 5889
8d138742
CE
5890# Regexp to match symbols that can be accessed directly from C.
5891sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5892
5893# Define system-specific variables.
5894case $host_os in
5895aix*)
5896 symcode='[BCDT]'
5897 ;;
5898cygwin* | mingw* | pw32* | cegcc*)
5899 symcode='[ABCDGISTW]'
5900 ;;
5901hpux*)
d50284c4 5902 if test ia64 = "$host_cpu"; then
8d138742 5903 symcode='[ABCDEGRST]'
dd184caf 5904 fi
8d138742
CE
5905 ;;
5906irix* | nonstopux*)
5907 symcode='[BCDEGRST]'
5908 ;;
5909osf*)
5910 symcode='[BCDEGQRST]'
5911 ;;
5912solaris*)
5913 symcode='[BDRT]'
5914 ;;
5915sco3.2v5*)
5916 symcode='[DT]'
5917 ;;
5918sysv4.2uw2*)
5919 symcode='[DT]'
5920 ;;
5921sysv5* | sco5v6* | unixware* | OpenUNIX*)
5922 symcode='[ABDT]'
5923 ;;
5924sysv4)
5925 symcode='[DFNSTU]'
5926 ;;
5927esac
5928
5929# If we're using GNU nm, then use its standard symbol codes.
5930case `$NM -V 2>&1` in
5931*GNU* | *'with BFD'*)
5932 symcode='[ABCDGIRSTW]' ;;
5933esac
d9898ee8 5934
d50284c4
CE
5935if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5936 # Gets list of data symbols to import.
5937 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5938 # Adjust the below global symbol transforms to fixup imported variables.
5939 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5940 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5941 lt_c_name_lib_hook="\
5942 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5943 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5944else
5945 # Disable hooks by default.
5946 lt_cv_sys_global_symbol_to_import=
5947 lt_cdecl_hook=
5948 lt_c_name_hook=
5949 lt_c_name_lib_hook=
5950fi
5951
8d138742
CE
5952# Transform an extracted symbol line into a proper C declaration.
5953# Some systems (esp. on ia64) link data and code symbols differently,
5954# so use this general approach.
d50284c4
CE
5955lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5956$lt_cdecl_hook\
5957" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5958" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 5959
8d138742 5960# Transform an extracted symbol line into symbol name and symbol address
d50284c4
CE
5961lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5962$lt_c_name_hook\
5963" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5964" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5965
5966# Transform an extracted symbol line into symbol name with lib prefix and
5967# symbol address.
5968lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5969$lt_c_name_lib_hook\
5970" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5971" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5972" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8d138742
CE
5973
5974# Handle CRLF in mingw tool chain
5975opt_cr=
5976case $build_os in
5977mingw*)
5978 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5979 ;;
dd184caf 5980esac
8d138742
CE
5981
5982# Try without a prefix underscore, then with it.
5983for ac_symprfx in "" "_"; do
5984
5985 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5986 symxfrm="\\1 $ac_symprfx\\2 \\2"
5987
5988 # Write the raw and C identifiers.
5989 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
d50284c4
CE
5990 # Fake it for dumpbin and say T for any non-static function,
5991 # D for any global variable and I for any imported variable.
8d138742
CE
5992 # Also find C++ and __fastcall symbols from MSVC++,
5993 # which start with @ or ?.
5994 lt_cv_sys_global_symbol_pipe="$AWK '"\
5995" {last_section=section; section=\$ 3};"\
b0322a85 5996" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742 5997" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
d50284c4
CE
5998" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5999" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6000" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8d138742
CE
6001" \$ 0!~/External *\|/{next};"\
6002" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6003" {if(hide[section]) next};"\
d50284c4
CE
6004" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6005" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6006" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6007" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8d138742
CE
6008" ' prfx=^$ac_symprfx"
6009 else
6010 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6011 fi
b0322a85 6012 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8d138742
CE
6013
6014 # Check to see that the pipe works correctly.
6015 pipe_works=no
6016
6017 rm -f conftest*
6018 cat > conftest.$ac_ext <<_LT_EOF
6019#ifdef __cplusplus
6020extern "C" {
6021#endif
6022char nm_test_var;
6023void nm_test_func(void);
6024void nm_test_func(void){}
6025#ifdef __cplusplus
6026}
6027#endif
6028int main(){nm_test_var='a';nm_test_func();return(0);}
6029_LT_EOF
6030
b0322a85 6031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742 6032 (eval $ac_compile) 2>&5
d9898ee8 6033 ac_status=$?
b0322a85
CE
6034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035 test $ac_status = 0; }; then
8d138742
CE
6036 # Now try to grab the symbols.
6037 nlist=conftest.nm
b0322a85
CE
6038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6039 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d9898ee8 6040 ac_status=$?
b0322a85
CE
6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042 test $ac_status = 0; } && test -s "$nlist"; then
8d138742
CE
6043 # Try sorting and uniquifying the output.
6044 if sort "$nlist" | uniq > "$nlist"T; then
6045 mv -f "$nlist"T "$nlist"
6046 else
6047 rm -f "$nlist"T
6048 fi
d9898ee8 6049
8d138742
CE
6050 # Make sure that we snagged all the symbols we need.
6051 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6052 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6053 cat <<_LT_EOF > conftest.$ac_ext
b0322a85 6054/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
d50284c4
CE
6055#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6056/* DATA imports from DLLs on WIN32 can't be const, because runtime
b0322a85
CE
6057 relocations are performed -- see ld's documentation on pseudo-relocs. */
6058# define LT_DLSYM_CONST
d50284c4 6059#elif defined __osf__
b0322a85
CE
6060/* This system does not cope well with relocations in const data. */
6061# define LT_DLSYM_CONST
6062#else
6063# define LT_DLSYM_CONST const
6064#endif
6065
8d138742
CE
6066#ifdef __cplusplus
6067extern "C" {
d9898ee8 6068#endif
6069
8d138742
CE
6070_LT_EOF
6071 # Now generate the symbol file.
6072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 6073
8d138742 6074 cat <<_LT_EOF >> conftest.$ac_ext
dd184caf 6075
8d138742 6076/* The mapping between symbol names and symbols. */
b0322a85 6077LT_DLSYM_CONST struct {
8d138742
CE
6078 const char *name;
6079 void *address;
6080}
6081lt__PROGRAM__LTX_preloaded_symbols[] =
6082{
6083 { "@PROGRAM@", (void *) 0 },
6084_LT_EOF
d50284c4 6085 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8d138742
CE
6086 cat <<\_LT_EOF >> conftest.$ac_ext
6087 {0, (void *) 0}
6088};
d9898ee8 6089
8d138742
CE
6090/* This works around a problem in FreeBSD linker */
6091#ifdef FREEBSD_WORKAROUND
6092static const void *lt_preloaded_setup() {
6093 return lt__PROGRAM__LTX_preloaded_symbols;
6094}
6095#endif
d9898ee8 6096
8d138742
CE
6097#ifdef __cplusplus
6098}
6099#endif
6100_LT_EOF
6101 # Now try linking the two files.
6102 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
6103 lt_globsym_save_LIBS=$LIBS
6104 lt_globsym_save_CFLAGS=$CFLAGS
d50284c4 6105 LIBS=conftstm.$ac_objext
8d138742 6106 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742 6108 (eval $ac_link) 2>&5
d9898ee8 6109 ac_status=$?
b0322a85 6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 6111 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8d138742
CE
6112 pipe_works=yes
6113 fi
b0322a85
CE
6114 LIBS=$lt_globsym_save_LIBS
6115 CFLAGS=$lt_globsym_save_CFLAGS
8d138742
CE
6116 else
6117 echo "cannot find nm_test_func in $nlist" >&5
6118 fi
6119 else
6120 echo "cannot find nm_test_var in $nlist" >&5
6121 fi
6122 else
6123 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6124 fi
6125 else
6126 echo "$progname: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6128 fi
6129 rm -rf conftest* conftst*
d9898ee8 6130
8d138742 6131 # Do not use the global_symbol_pipe unless it works.
d50284c4 6132 if test yes = "$pipe_works"; then
8d138742
CE
6133 break
6134 else
6135 lt_cv_sys_global_symbol_pipe=
6136 fi
6137done
dd184caf 6138
8d138742 6139fi
d9898ee8 6140
8d138742
CE
6141if test -z "$lt_cv_sys_global_symbol_pipe"; then
6142 lt_cv_sys_global_symbol_to_cdecl=
d9898ee8 6143fi
8d138742 6144if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 6146$as_echo "failed" >&6; }
d9898ee8 6147else
b0322a85 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 6149$as_echo "ok" >&6; }
d9898ee8 6150fi
6151
b0322a85
CE
6152# Response file support.
6153if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6154 nm_file_list_spec='@'
6155elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6156 nm_file_list_spec='@'
6157fi
6158
6159
6160
6161
6162
6163
6164
6165
d9898ee8 6166
6167
6168
d9898ee8 6169
d9898ee8 6170
d9898ee8 6171
d9898ee8 6172
d9898ee8 6173
d50284c4
CE
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
d9898ee8 6184
d9898ee8 6185
d9898ee8 6186
d9898ee8 6187
d9898ee8 6188
d9898ee8 6189
6190
6191
6192
b0322a85
CE
6193
6194
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6196$as_echo_n "checking for sysroot... " >&6; }
6197
6198# Check whether --with-sysroot was given.
6199if test "${with_sysroot+set}" = set; then :
6200 withval=$with_sysroot;
6201else
6202 with_sysroot=no
6203fi
6204
6205
6206lt_sysroot=
d50284c4 6207case $with_sysroot in #(
b0322a85 6208 yes)
d50284c4 6209 if test yes = "$GCC"; then
b0322a85
CE
6210 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6211 fi
6212 ;; #(
6213 /*)
6214 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6215 ;; #(
6216 no|'')
6217 ;; #(
6218 *)
d50284c4
CE
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6220$as_echo "$with_sysroot" >&6; }
b0322a85
CE
6221 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6222 ;;
6223esac
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6226$as_echo "${lt_sysroot:-no}" >&6; }
ac40fd9e 6227
d9898ee8 6228
d9898ee8 6229
d9898ee8 6230
d9898ee8 6231
d50284c4
CE
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6233$as_echo_n "checking for a working dd... " >&6; }
6234if ${ac_cv_path_lt_DD+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236else
6237 printf 0123456789abcdef0123456789abcdef >conftest.i
6238cat conftest.i conftest.i >conftest2.i
6239: ${lt_DD:=$DD}
6240if test -z "$lt_DD"; then
6241 ac_path_lt_DD_found=false
6242 # Loop through the user's path and test for each of PROGNAME-LIST
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_prog in dd; do
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6251 as_fn_executable_p "$ac_path_lt_DD" || continue
6252if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6253 cmp -s conftest.i conftest.out \
6254 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6255fi
6256 $ac_path_lt_DD_found && break 3
6257 done
6258 done
6259 done
6260IFS=$as_save_IFS
6261 if test -z "$ac_cv_path_lt_DD"; then
6262 :
6263 fi
6264else
6265 ac_cv_path_lt_DD=$lt_DD
6266fi
6267
6268rm -f conftest.i conftest2.i conftest.out
6269fi
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6271$as_echo "$ac_cv_path_lt_DD" >&6; }
6272
6273
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6275$as_echo_n "checking how to truncate binary pipes... " >&6; }
6276if ${lt_cv_truncate_bin+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278else
6279 printf 0123456789abcdef0123456789abcdef >conftest.i
6280cat conftest.i conftest.i >conftest2.i
6281lt_cv_truncate_bin=
6282if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6283 cmp -s conftest.i conftest.out \
6284 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6285fi
6286rm -f conftest.i conftest2.i conftest.out
6287test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6288fi
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6290$as_echo "$lt_cv_truncate_bin" >&6; }
6291
6292
6293
6294
6295
6296
6297
6298# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6299func_cc_basename ()
6300{
6301 for cc_temp in $*""; do
6302 case $cc_temp in
6303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6305 \-*) ;;
6306 *) break;;
6307 esac
6308 done
6309 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6310}
6311
8d138742 6312# Check whether --enable-libtool-lock was given.
b0322a85 6313if test "${enable_libtool_lock+set}" = set; then :
8d138742
CE
6314 enableval=$enable_libtool_lock;
6315fi
d9898ee8 6316
d50284c4 6317test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d9898ee8 6318
8d138742
CE
6319# Some flags need to be propagated to the compiler or linker for good
6320# libtool support.
6321case $host in
6322ia64-*-hpux*)
d50284c4
CE
6323 # Find out what ABI is being produced by ac_compile, and set mode
6324 # options accordingly.
8d138742 6325 echo 'int i;' > conftest.$ac_ext
b0322a85 6326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6327 (eval $ac_compile) 2>&5
6328 ac_status=$?
b0322a85
CE
6329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6330 test $ac_status = 0; }; then
8d138742
CE
6331 case `/usr/bin/file conftest.$ac_objext` in
6332 *ELF-32*)
d50284c4 6333 HPUX_IA64_MODE=32
8d138742
CE
6334 ;;
6335 *ELF-64*)
d50284c4 6336 HPUX_IA64_MODE=64
8d138742
CE
6337 ;;
6338 esac
d9898ee8 6339 fi
8d138742 6340 rm -rf conftest*
d9898ee8 6341 ;;
8d138742 6342*-*-irix6*)
d50284c4
CE
6343 # Find out what ABI is being produced by ac_compile, and set linker
6344 # options accordingly.
b0322a85
CE
6345 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6347 (eval $ac_compile) 2>&5
6348 ac_status=$?
b0322a85
CE
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }; then
d50284c4 6351 if test yes = "$lt_cv_prog_gnu_ld"; then
8d138742
CE
6352 case `/usr/bin/file conftest.$ac_objext` in
6353 *32-bit*)
6354 LD="${LD-ld} -melf32bsmip"
6355 ;;
6356 *N32*)
6357 LD="${LD-ld} -melf32bmipn32"
6358 ;;
6359 *64-bit*)
6360 LD="${LD-ld} -melf64bmip"
6361 ;;
6362 esac
6363 else
6364 case `/usr/bin/file conftest.$ac_objext` in
6365 *32-bit*)
6366 LD="${LD-ld} -32"
6367 ;;
6368 *N32*)
6369 LD="${LD-ld} -n32"
6370 ;;
6371 *64-bit*)
6372 LD="${LD-ld} -64"
6373 ;;
6374 esac
6375 fi
d9898ee8 6376 fi
8d138742 6377 rm -rf conftest*
d9898ee8 6378 ;;
d9898ee8 6379
d50284c4
CE
6380mips64*-*linux*)
6381 # Find out what ABI is being produced by ac_compile, and set linker
6382 # options accordingly.
6383 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6385 (eval $ac_compile) 2>&5
6386 ac_status=$?
6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6388 test $ac_status = 0; }; then
6389 emul=elf
6390 case `/usr/bin/file conftest.$ac_objext` in
6391 *32-bit*)
6392 emul="${emul}32"
6393 ;;
6394 *64-bit*)
6395 emul="${emul}64"
6396 ;;
6397 esac
6398 case `/usr/bin/file conftest.$ac_objext` in
6399 *MSB*)
6400 emul="${emul}btsmip"
6401 ;;
6402 *LSB*)
6403 emul="${emul}ltsmip"
6404 ;;
6405 esac
6406 case `/usr/bin/file conftest.$ac_objext` in
6407 *N32*)
6408 emul="${emul}n32"
6409 ;;
6410 esac
6411 LD="${LD-ld} -m $emul"
6412 fi
6413 rm -rf conftest*
6414 ;;
6415
6416x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8d138742 6417s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
d50284c4
CE
6418 # Find out what ABI is being produced by ac_compile, and set linker
6419 # options accordingly. Note that the listed cases only cover the
6420 # situations where additional linker options are needed (such as when
6421 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6422 # vice versa); the common cases where no linker options are needed do
6423 # not appear in the list.
8d138742 6424 echo 'int i;' > conftest.$ac_ext
b0322a85 6425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6426 (eval $ac_compile) 2>&5
6427 ac_status=$?
b0322a85
CE
6428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429 test $ac_status = 0; }; then
8d138742
CE
6430 case `/usr/bin/file conftest.o` in
6431 *32-bit*)
6432 case $host in
6433 x86_64-*kfreebsd*-gnu)
6434 LD="${LD-ld} -m elf_i386_fbsd"
6435 ;;
6436 x86_64-*linux*)
d50284c4
CE
6437 case `/usr/bin/file conftest.o` in
6438 *x86-64*)
6439 LD="${LD-ld} -m elf32_x86_64"
6440 ;;
6441 *)
6442 LD="${LD-ld} -m elf_i386"
6443 ;;
6444 esac
8d138742 6445 ;;
d50284c4
CE
6446 powerpc64le-*linux*)
6447 LD="${LD-ld} -m elf32lppclinux"
6448 ;;
6449 powerpc64-*linux*)
8d138742
CE
6450 LD="${LD-ld} -m elf32ppclinux"
6451 ;;
6452 s390x-*linux*)
6453 LD="${LD-ld} -m elf_s390"
6454 ;;
6455 sparc64-*linux*)
6456 LD="${LD-ld} -m elf32_sparc"
6457 ;;
6458 esac
6459 ;;
6460 *64-bit*)
6461 case $host in
6462 x86_64-*kfreebsd*-gnu)
6463 LD="${LD-ld} -m elf_x86_64_fbsd"
6464 ;;
6465 x86_64-*linux*)
6466 LD="${LD-ld} -m elf_x86_64"
6467 ;;
d50284c4
CE
6468 powerpcle-*linux*)
6469 LD="${LD-ld} -m elf64lppc"
6470 ;;
6471 powerpc-*linux*)
8d138742
CE
6472 LD="${LD-ld} -m elf64ppc"
6473 ;;
6474 s390*-*linux*|s390*-*tpf*)
6475 LD="${LD-ld} -m elf64_s390"
6476 ;;
6477 sparc*-*linux*)
6478 LD="${LD-ld} -m elf64_sparc"
6479 ;;
6480 esac
6481 ;;
6482 esac
6483 fi
6484 rm -rf conftest*
d9898ee8 6485 ;;
d9898ee8 6486
8d138742
CE
6487*-*-sco3.2v5*)
6488 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
d50284c4 6489 SAVE_CFLAGS=$CFLAGS
8d138742 6490 CFLAGS="$CFLAGS -belf"
b0322a85 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 6492$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 6493if ${lt_cv_cc_needs_belf+:} false; then :
8d138742
CE
6494 $as_echo_n "(cached) " >&6
6495else
6496 ac_ext=c
6497ac_cpp='$CPP $CPPFLAGS'
6498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6501
b0322a85 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 6503/* end confdefs.h. */
d9898ee8 6504
8d138742
CE
6505int
6506main ()
6507{
d9898ee8 6508
8d138742
CE
6509 ;
6510 return 0;
6511}
6512_ACEOF
b0322a85
CE
6513if ac_fn_c_try_link "$LINENO"; then :
6514 lt_cv_cc_needs_belf=yes
6515else
6516 lt_cv_cc_needs_belf=no
6517fi
6518rm -f core conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520 ac_ext=c
6521ac_cpp='$CPP $CPPFLAGS'
6522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6524ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525
6526fi
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6528$as_echo "$lt_cv_cc_needs_belf" >&6; }
d50284c4 6529 if test yes != "$lt_cv_cc_needs_belf"; then
b0322a85 6530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
d50284c4 6531 CFLAGS=$SAVE_CFLAGS
b0322a85
CE
6532 fi
6533 ;;
6534*-*solaris*)
d50284c4
CE
6535 # Find out what ABI is being produced by ac_compile, and set linker
6536 # options accordingly.
b0322a85
CE
6537 echo 'int i;' > conftest.$ac_ext
6538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6539 (eval $ac_compile) 2>&5
6540 ac_status=$?
6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542 test $ac_status = 0; }; then
6543 case `/usr/bin/file conftest.o` in
6544 *64-bit*)
6545 case $lt_cv_prog_gnu_ld in
6546 yes*)
6547 case $host in
d50284c4 6548 i?86-*-solaris*|x86_64-*-solaris*)
b0322a85
CE
6549 LD="${LD-ld} -m elf_x86_64"
6550 ;;
6551 sparc*-*-solaris*)
6552 LD="${LD-ld} -m elf64_sparc"
6553 ;;
6554 esac
6555 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6556 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
d50284c4 6557 LD=${LD-ld}_sol2
b0322a85
CE
6558 fi
6559 ;;
6560 *)
6561 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6562 LD="${LD-ld} -64"
6563 fi
6564 ;;
6565 esac
6566 ;;
6567 esac
6568 fi
6569 rm -rf conftest*
6570 ;;
6571esac
6572
d50284c4 6573need_locks=$enable_libtool_lock
b0322a85
CE
6574
6575if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6577set dummy ${ac_tool_prefix}mt; ac_word=$2
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579$as_echo_n "checking for $ac_word... " >&6; }
6580if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582else
6583 if test -n "$MANIFEST_TOOL"; then
6584 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597done
6598 done
6599IFS=$as_save_IFS
6600
6601fi
6602fi
6603MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6604if test -n "$MANIFEST_TOOL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6606$as_echo "$MANIFEST_TOOL" >&6; }
6607else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
6611
6612
6613fi
6614if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6615 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6616 # Extract the first word of "mt", so it can be a program name with args.
6617set dummy mt; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622else
6623 if test -n "$ac_ct_MANIFEST_TOOL"; then
6624 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
6638 done
6639IFS=$as_save_IFS
6640
6641fi
6642fi
6643ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6644if test -n "$ac_ct_MANIFEST_TOOL"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6646$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6647else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
6652 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6653 MANIFEST_TOOL=":"
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656yes:)
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659ac_tool_warned=yes ;;
8d138742 6660esac
b0322a85
CE
6661 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6662 fi
8d138742 6663else
b0322a85
CE
6664 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6665fi
d9898ee8 6666
b0322a85
CE
6667test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6669$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6670if ${lt_cv_path_mainfest_tool+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672else
6673 lt_cv_path_mainfest_tool=no
6674 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6675 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6676 cat conftest.err >&5
6677 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6678 lt_cv_path_mainfest_tool=yes
6679 fi
6680 rm -f conftest*
6681fi
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6683$as_echo "$lt_cv_path_mainfest_tool" >&6; }
d50284c4 6684if test yes != "$lt_cv_path_mainfest_tool"; then
b0322a85 6685 MANIFEST_TOOL=:
8d138742 6686fi
d9898ee8 6687
d9898ee8 6688
d9898ee8 6689
b0322a85 6690
d9898ee8 6691
d9898ee8 6692
8d138742
CE
6693 case $host_os in
6694 rhapsody* | darwin*)
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6697set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6699$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6700if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
6701 $as_echo_n "(cached) " >&6
6702else
6703 if test -n "$DSYMUTIL"; then
6704 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
b0322a85
CE
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6713 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6715 break 2
6716 fi
6717done
b0322a85 6718 done
8d138742 6719IFS=$as_save_IFS
d9898ee8 6720
8d138742
CE
6721fi
6722fi
6723DSYMUTIL=$ac_cv_prog_DSYMUTIL
6724if test -n "$DSYMUTIL"; then
b0322a85 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742
CE
6726$as_echo "$DSYMUTIL" >&6; }
6727else
b0322a85 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6729$as_echo "no" >&6; }
6730fi
d9898ee8 6731
d9898ee8 6732
8d138742
CE
6733fi
6734if test -z "$ac_cv_prog_DSYMUTIL"; then
6735 ac_ct_DSYMUTIL=$DSYMUTIL
6736 # Extract the first word of "dsymutil", so it can be a program name with args.
6737set dummy dsymutil; ac_word=$2
b0322a85 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6739$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6740if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
6741 $as_echo_n "(cached) " >&6
6742else
6743 if test -n "$ac_ct_DSYMUTIL"; then
6744 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6745else
6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
b0322a85
CE
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6753 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6755 break 2
d9898ee8 6756 fi
6757done
b0322a85 6758 done
8d138742 6759IFS=$as_save_IFS
d9898ee8 6760
6761fi
d9898ee8 6762fi
8d138742
CE
6763ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6764if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742 6766$as_echo "$ac_ct_DSYMUTIL" >&6; }
d9898ee8 6767else
b0322a85 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6769$as_echo "no" >&6; }
d9898ee8 6770fi
6771
8d138742
CE
6772 if test "x$ac_ct_DSYMUTIL" = x; then
6773 DSYMUTIL=":"
6774 else
6775 case $cross_compiling:$ac_tool_warned in
6776yes:)
b0322a85 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779ac_tool_warned=yes ;;
6780esac
6781 DSYMUTIL=$ac_ct_DSYMUTIL
6782 fi
d9898ee8 6783else
8d138742 6784 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6785fi
d9898ee8 6786
8d138742
CE
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6789set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6791$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6792if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742
CE
6793 $as_echo_n "(cached) " >&6
6794else
6795 if test -n "$NMEDIT"; then
6796 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
b0322a85
CE
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6805 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6807 break 2
d9898ee8 6808 fi
8d138742 6809done
b0322a85 6810 done
8d138742 6811IFS=$as_save_IFS
d9898ee8 6812
8d138742
CE
6813fi
6814fi
6815NMEDIT=$ac_cv_prog_NMEDIT
6816if test -n "$NMEDIT"; then
b0322a85 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742
CE
6818$as_echo "$NMEDIT" >&6; }
6819else
b0322a85 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6821$as_echo "no" >&6; }
6822fi
d9898ee8 6823
d9898ee8 6824
8d138742
CE
6825fi
6826if test -z "$ac_cv_prog_NMEDIT"; then
6827 ac_ct_NMEDIT=$NMEDIT
6828 # Extract the first word of "nmedit", so it can be a program name with args.
6829set dummy nmedit; ac_word=$2
b0322a85 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6831$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6832if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742
CE
6833 $as_echo_n "(cached) " >&6
6834else
6835 if test -n "$ac_ct_NMEDIT"; then
6836 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
b0322a85
CE
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6845 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6847 break 2
6848 fi
6849done
b0322a85 6850 done
8d138742 6851IFS=$as_save_IFS
d9898ee8 6852
8d138742
CE
6853fi
6854fi
6855ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6856if test -n "$ac_ct_NMEDIT"; then
b0322a85 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742
CE
6858$as_echo "$ac_ct_NMEDIT" >&6; }
6859else
b0322a85 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6861$as_echo "no" >&6; }
6862fi
d9898ee8 6863
8d138742
CE
6864 if test "x$ac_ct_NMEDIT" = x; then
6865 NMEDIT=":"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868yes:)
b0322a85 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871ac_tool_warned=yes ;;
6872esac
6873 NMEDIT=$ac_ct_NMEDIT
6874 fi
6875else
6876 NMEDIT="$ac_cv_prog_NMEDIT"
6877fi
d9898ee8 6878
8d138742
CE
6879 if test -n "$ac_tool_prefix"; then
6880 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6881set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6883$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6884if ${ac_cv_prog_LIPO+:} false; then :
8d138742 6885 $as_echo_n "(cached) " >&6
d9898ee8 6886else
8d138742
CE
6887 if test -n "$LIPO"; then
6888 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
b0322a85
CE
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6897 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6899 break 2
6900 fi
6901done
b0322a85 6902 done
dd184caf 6903IFS=$as_save_IFS
d9898ee8 6904
6905fi
6906fi
8d138742
CE
6907LIPO=$ac_cv_prog_LIPO
6908if test -n "$LIPO"; then
b0322a85 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742 6910$as_echo "$LIPO" >&6; }
d9898ee8 6911else
b0322a85 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6913$as_echo "no" >&6; }
d9898ee8 6914fi
6915
dd184caf 6916
d9898ee8 6917fi
8d138742
CE
6918if test -z "$ac_cv_prog_LIPO"; then
6919 ac_ct_LIPO=$LIPO
6920 # Extract the first word of "lipo", so it can be a program name with args.
6921set dummy lipo; ac_word=$2
b0322a85 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6923$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6924if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742 6925 $as_echo_n "(cached) " >&6
d9898ee8 6926else
8d138742
CE
6927 if test -n "$ac_ct_LIPO"; then
6928 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
b0322a85
CE
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6937 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6939 break 2
6940 fi
6941done
b0322a85 6942 done
dd184caf 6943IFS=$as_save_IFS
d9898ee8 6944
d9898ee8 6945fi
6946fi
8d138742
CE
6947ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6948if test -n "$ac_ct_LIPO"; then
b0322a85 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 6950$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6951else
b0322a85 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6953$as_echo "no" >&6; }
d9898ee8 6954fi
6955
8d138742
CE
6956 if test "x$ac_ct_LIPO" = x; then
6957 LIPO=":"
dd184caf 6958 else
6959 case $cross_compiling:$ac_tool_warned in
6960yes:)
b0322a85 6961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6963ac_tool_warned=yes ;;
6964esac
8d138742 6965 LIPO=$ac_ct_LIPO
dd184caf 6966 fi
d9898ee8 6967else
8d138742 6968 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6969fi
6970
8d138742
CE
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6973set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6975$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6976if ${ac_cv_prog_OTOOL+:} false; then :
8d138742 6977 $as_echo_n "(cached) " >&6
d9898ee8 6978else
8d138742
CE
6979 if test -n "$OTOOL"; then
6980 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
d9898ee8 6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
b0322a85
CE
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6989 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6991 break 2
6992 fi
6993done
b0322a85 6994 done
dd184caf 6995IFS=$as_save_IFS
d9898ee8 6996
6997fi
6998fi
8d138742
CE
6999OTOOL=$ac_cv_prog_OTOOL
7000if test -n "$OTOOL"; then
b0322a85 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742 7002$as_echo "$OTOOL" >&6; }
d9898ee8 7003else
b0322a85 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7005$as_echo "no" >&6; }
d9898ee8 7006fi
7007
dd184caf 7008
d9898ee8 7009fi
8d138742
CE
7010if test -z "$ac_cv_prog_OTOOL"; then
7011 ac_ct_OTOOL=$OTOOL
7012 # Extract the first word of "otool", so it can be a program name with args.
7013set dummy otool; ac_word=$2
b0322a85 7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7015$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7016if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742 7017 $as_echo_n "(cached) " >&6
d9898ee8 7018else
8d138742
CE
7019 if test -n "$ac_ct_OTOOL"; then
7020 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
d9898ee8 7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
b0322a85
CE
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7029 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7031 break 2
7032 fi
7033done
b0322a85 7034 done
dd184caf 7035IFS=$as_save_IFS
d9898ee8 7036
d9898ee8 7037fi
7038fi
8d138742
CE
7039ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7040if test -n "$ac_ct_OTOOL"; then
b0322a85 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742 7042$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 7043else
b0322a85 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7045$as_echo "no" >&6; }
d9898ee8 7046fi
7047
8d138742
CE
7048 if test "x$ac_ct_OTOOL" = x; then
7049 OTOOL=":"
dd184caf 7050 else
7051 case $cross_compiling:$ac_tool_warned in
7052yes:)
b0322a85 7053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7055ac_tool_warned=yes ;;
7056esac
8d138742 7057 OTOOL=$ac_ct_OTOOL
dd184caf 7058 fi
d9898ee8 7059else
8d138742 7060 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 7061fi
7062
8d138742
CE
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7065set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7067$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7068if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742 7069 $as_echo_n "(cached) " >&6
d9898ee8 7070else
8d138742
CE
7071 if test -n "$OTOOL64"; then
7072 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
d9898ee8 7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
b0322a85
CE
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7081 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7083 break 2
7084 fi
7085done
b0322a85 7086 done
dd184caf 7087IFS=$as_save_IFS
d9898ee8 7088
7089fi
7090fi
8d138742
CE
7091OTOOL64=$ac_cv_prog_OTOOL64
7092if test -n "$OTOOL64"; then
b0322a85 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742 7094$as_echo "$OTOOL64" >&6; }
d9898ee8 7095else
b0322a85 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7097$as_echo "no" >&6; }
d9898ee8 7098fi
7099
dd184caf 7100
d9898ee8 7101fi
8d138742
CE
7102if test -z "$ac_cv_prog_OTOOL64"; then
7103 ac_ct_OTOOL64=$OTOOL64
7104 # Extract the first word of "otool64", so it can be a program name with args.
7105set dummy otool64; ac_word=$2
b0322a85 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7107$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7108if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742 7109 $as_echo_n "(cached) " >&6
d9898ee8 7110else
8d138742
CE
7111 if test -n "$ac_ct_OTOOL64"; then
7112 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
d9898ee8 7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
b0322a85
CE
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7121 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7123 break 2
7124 fi
7125done
b0322a85 7126 done
dd184caf 7127IFS=$as_save_IFS
d9898ee8 7128
d9898ee8 7129fi
7130fi
8d138742
CE
7131ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7132if test -n "$ac_ct_OTOOL64"; then
b0322a85 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742 7134$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 7135else
b0322a85 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7137$as_echo "no" >&6; }
d9898ee8 7138fi
7139
8d138742
CE
7140 if test "x$ac_ct_OTOOL64" = x; then
7141 OTOOL64=":"
dd184caf 7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144yes:)
b0322a85 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7147ac_tool_warned=yes ;;
7148esac
8d138742 7149 OTOOL64=$ac_ct_OTOOL64
dd184caf 7150 fi
d9898ee8 7151else
8d138742 7152 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 7153fi
7154
7155
d9898ee8 7156
d9898ee8 7157
d9898ee8 7158
d9898ee8 7159
d9898ee8 7160
7161
dd184caf 7162
d9898ee8 7163
7164
d9898ee8 7165
d9898ee8 7166
d9898ee8 7167
d9898ee8 7168
7169
d9898ee8 7170
d9898ee8 7171
d9898ee8 7172
7173
d9898ee8 7174
d9898ee8 7175
7176
7177
d9898ee8 7178
d9898ee8 7179
7180
b0322a85 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 7182$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 7183if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742 7184 $as_echo_n "(cached) " >&6
d9898ee8 7185else
8d138742 7186 lt_cv_apple_cc_single_mod=no
d50284c4 7187 if test -z "$LT_MULTI_MODULE"; then
8d138742
CE
7188 # By default we will add the -single_module flag. You can override
7189 # by either setting the environment variable LT_MULTI_MODULE
7190 # non-empty at configure time, or by adding -multi_module to the
7191 # link flags.
7192 rm -rf libconftest.dylib*
7193 echo "int foo(void){return 1;}" > conftest.c
7194 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7195-dynamiclib -Wl,-single_module conftest.c" >&5
7196 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7197 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7198 _lt_result=$?
b0322a85
CE
7199 # If there is a non-empty error log, and "single_module"
7200 # appears in it, assume the flag caused a linker warning
7201 if test -s conftest.err && $GREP single_module conftest.err; then
7202 cat conftest.err >&5
7203 # Otherwise, if the output was created with a 0 exit code from
7204 # the compiler, it worked.
d50284c4 7205 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8d138742
CE
7206 lt_cv_apple_cc_single_mod=yes
7207 else
7208 cat conftest.err >&5
7209 fi
7210 rm -rf libconftest.dylib*
7211 rm -f conftest.*
7212 fi
d9898ee8 7213fi
b0322a85 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 7215$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
7216
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 7218$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 7219if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
7220 $as_echo_n "(cached) " >&6
7221else
7222 lt_cv_ld_exported_symbols_list=no
7223 save_LDFLAGS=$LDFLAGS
7224 echo "_main" > conftest.sym
7225 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 7227/* end confdefs.h. */
d9898ee8 7228
8d138742
CE
7229int
7230main ()
7231{
7232
7233 ;
7234 return 0;
7235}
7236_ACEOF
b0322a85 7237if ac_fn_c_try_link "$LINENO"; then :
8d138742 7238 lt_cv_ld_exported_symbols_list=yes
d9898ee8 7239else
b0322a85 7240 lt_cv_ld_exported_symbols_list=no
d9898ee8 7241fi
b0322a85
CE
7242rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
d50284c4 7244 LDFLAGS=$save_LDFLAGS
d9898ee8 7245
8d138742 7246fi
b0322a85 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 7248$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
7249
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7251$as_echo_n "checking for -force_load linker flag... " >&6; }
7252if ${lt_cv_ld_force_load+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254else
7255 lt_cv_ld_force_load=no
7256 cat > conftest.c << _LT_EOF
7257int forced_loaded() { return 2;}
7258_LT_EOF
7259 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7260 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7261 echo "$AR cru libconftest.a conftest.o" >&5
7262 $AR cru libconftest.a conftest.o 2>&5
7263 echo "$RANLIB libconftest.a" >&5
7264 $RANLIB libconftest.a 2>&5
7265 cat > conftest.c << _LT_EOF
7266int main() { return 0;}
7267_LT_EOF
7268 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7269 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7270 _lt_result=$?
7271 if test -s conftest.err && $GREP force_load conftest.err; then
7272 cat conftest.err >&5
d50284c4 7273 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
b0322a85
CE
7274 lt_cv_ld_force_load=yes
7275 else
7276 cat conftest.err >&5
7277 fi
7278 rm -f conftest.err libconftest.a conftest conftest.c
7279 rm -rf conftest.dSYM
7280
7281fi
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7283$as_echo "$lt_cv_ld_force_load" >&6; }
d9898ee8 7284 case $host_os in
8d138742 7285 rhapsody* | darwin1.[012])
d50284c4 7286 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8d138742 7287 darwin1.*)
d50284c4 7288 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742
CE
7289 darwin*) # darwin 5.x on
7290 # if running on 10.5 or later, the deployment target defaults
7291 # to the OS version, if on x86, and 10.4, the deployment
7292 # target defaults to 10.4. Don't you love it?
7293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7294 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
d50284c4
CE
7295 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7296 10.[012][,.]*)
7297 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742 7298 10.*)
d50284c4 7299 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8d138742
CE
7300 esac
7301 ;;
7302 esac
d50284c4 7303 if test yes = "$lt_cv_apple_cc_single_mod"; then
8d138742
CE
7304 _lt_dar_single_mod='$single_module'
7305 fi
d50284c4
CE
7306 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7307 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8d138742 7308 else
d50284c4 7309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8d138742 7310 fi
d50284c4 7311 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8d138742
CE
7312 _lt_dsymutil='~$DSYMUTIL $lib || :'
7313 else
7314 _lt_dsymutil=
7315 fi
7316 ;;
7317 esac
d9898ee8 7318
d50284c4
CE
7319# func_munge_path_list VARIABLE PATH
7320# -----------------------------------
7321# VARIABLE is name of variable containing _space_ separated list of
7322# directories to be munged by the contents of PATH, which is string
7323# having a format:
7324# "DIR[:DIR]:"
7325# string "DIR[ DIR]" will be prepended to VARIABLE
7326# ":DIR[:DIR]"
7327# string "DIR[ DIR]" will be appended to VARIABLE
7328# "DIRP[:DIRP]::[DIRA:]DIRA"
7329# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7330# "DIRA[ DIRA]" will be appended to VARIABLE
7331# "DIR[:DIR]"
7332# VARIABLE will be replaced by "DIR[ DIR]"
7333func_munge_path_list ()
7334{
7335 case x$2 in
7336 x)
7337 ;;
7338 *:)
7339 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7340 ;;
7341 x:*)
7342 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7343 ;;
7344 *::*)
7345 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7346 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7347 ;;
7348 *)
7349 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7350 ;;
7351 esac
7352}
7353
8d138742
CE
7354ac_ext=c
7355ac_cpp='$CPP $CPPFLAGS'
7356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742
CE
7360$as_echo_n "checking how to run the C preprocessor... " >&6; }
7361# On Suns, sometimes $CPP names a directory.
7362if test -n "$CPP" && test -d "$CPP"; then
7363 CPP=
7364fi
7365if test -z "$CPP"; then
b0322a85 7366 if ${ac_cv_prog_CPP+:} false; then :
8d138742
CE
7367 $as_echo_n "(cached) " >&6
7368else
7369 # Double quotes because CPP needs to be expanded
7370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7371 do
7372 ac_preproc_ok=false
7373for ac_c_preproc_warn_flag in '' yes
7374do
7375 # Use a header file that comes with gcc, so configuring glibc
7376 # with a fresh cross-compiler works.
7377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7378 # <limits.h> exists even on freestanding compilers.
7379 # On the NeXT, cc -E runs the code through the compiler's parser,
7380 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7382/* end confdefs.h. */
7383#ifdef __STDC__
7384# include <limits.h>
7385#else
7386# include <assert.h>
7387#endif
7388 Syntax error
7389_ACEOF
b0322a85 7390if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7391
b0322a85 7392else
8d138742
CE
7393 # Broken: fails on valid input.
7394continue
d9898ee8 7395fi
b0322a85 7396rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7397
8d138742
CE
7398 # OK, works on sane cases. Now check whether nonexistent headers
7399 # can be detected and how.
b0322a85 7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7401/* end confdefs.h. */
7402#include <ac_nonexistent.h>
7403_ACEOF
b0322a85 7404if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7405 # Broken: success on invalid input.
7406continue
d9898ee8 7407else
8d138742
CE
7408 # Passes both tests.
7409ac_preproc_ok=:
7410break
d9898ee8 7411fi
b0322a85 7412rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7413
8d138742
CE
7414done
7415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7416rm -f conftest.i conftest.err conftest.$ac_ext
7417if $ac_preproc_ok; then :
8d138742
CE
7418 break
7419fi
d9898ee8 7420
8d138742
CE
7421 done
7422 ac_cv_prog_CPP=$CPP
d9898ee8 7423
8d138742
CE
7424fi
7425 CPP=$ac_cv_prog_CPP
7426else
7427 ac_cv_prog_CPP=$CPP
7428fi
b0322a85 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742
CE
7430$as_echo "$CPP" >&6; }
7431ac_preproc_ok=false
7432for ac_c_preproc_warn_flag in '' yes
7433do
7434 # Use a header file that comes with gcc, so configuring glibc
7435 # with a fresh cross-compiler works.
7436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7437 # <limits.h> exists even on freestanding compilers.
7438 # On the NeXT, cc -E runs the code through the compiler's parser,
7439 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7441/* end confdefs.h. */
7442#ifdef __STDC__
7443# include <limits.h>
7444#else
7445# include <assert.h>
7446#endif
7447 Syntax error
7448_ACEOF
b0322a85 7449if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7450
b0322a85 7451else
8d138742
CE
7452 # Broken: fails on valid input.
7453continue
7454fi
b0322a85 7455rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7456
8d138742
CE
7457 # OK, works on sane cases. Now check whether nonexistent headers
7458 # can be detected and how.
b0322a85 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7460/* end confdefs.h. */
7461#include <ac_nonexistent.h>
7462_ACEOF
b0322a85 7463if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7464 # Broken: success on invalid input.
7465continue
7466else
8d138742
CE
7467 # Passes both tests.
7468ac_preproc_ok=:
7469break
7470fi
b0322a85 7471rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7472
8d138742
CE
7473done
7474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7475rm -f conftest.i conftest.err conftest.$ac_ext
7476if $ac_preproc_ok; then :
7477
8d138742 7478else
b0322a85 7479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 7480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
7481as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7482See \`config.log' for more details" "$LINENO" 5; }
8d138742 7483fi
d9898ee8 7484
8d138742
CE
7485ac_ext=c
7486ac_cpp='$CPP $CPPFLAGS'
7487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7490
d9898ee8 7491
b0322a85 7492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 7493$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 7494if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
7495 $as_echo_n "(cached) " >&6
7496else
b0322a85 7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7498/* end confdefs.h. */
7499#include <stdlib.h>
7500#include <stdarg.h>
7501#include <string.h>
7502#include <float.h>
d9898ee8 7503
8d138742
CE
7504int
7505main ()
7506{
d9898ee8 7507
8d138742
CE
7508 ;
7509 return 0;
7510}
7511_ACEOF
b0322a85 7512if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
7513 ac_cv_header_stdc=yes
7514else
b0322a85 7515 ac_cv_header_stdc=no
8d138742 7516fi
8d138742 7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7518
8d138742
CE
7519if test $ac_cv_header_stdc = yes; then
7520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7522/* end confdefs.h. */
7523#include <string.h>
d9898ee8 7524
8d138742
CE
7525_ACEOF
7526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7527 $EGREP "memchr" >/dev/null 2>&1; then :
7528
8d138742
CE
7529else
7530 ac_cv_header_stdc=no
7531fi
7532rm -f conftest*
d9898ee8 7533
8d138742 7534fi
d9898ee8 7535
8d138742
CE
7536if test $ac_cv_header_stdc = yes; then
7537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7539/* end confdefs.h. */
7540#include <stdlib.h>
d9898ee8 7541
8d138742
CE
7542_ACEOF
7543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7544 $EGREP "free" >/dev/null 2>&1; then :
7545
8d138742
CE
7546else
7547 ac_cv_header_stdc=no
7548fi
7549rm -f conftest*
d9898ee8 7550
8d138742 7551fi
d9898ee8 7552
8d138742
CE
7553if test $ac_cv_header_stdc = yes; then
7554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 7555 if test "$cross_compiling" = yes; then :
8d138742
CE
7556 :
7557else
b0322a85 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7559/* end confdefs.h. */
7560#include <ctype.h>
7561#include <stdlib.h>
7562#if ((' ' & 0x0FF) == 0x020)
7563# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7564# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7565#else
7566# define ISLOWER(c) \
7567 (('a' <= (c) && (c) <= 'i') \
7568 || ('j' <= (c) && (c) <= 'r') \
7569 || ('s' <= (c) && (c) <= 'z'))
7570# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7571#endif
d9898ee8 7572
8d138742
CE
7573#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7574int
7575main ()
7576{
7577 int i;
7578 for (i = 0; i < 256; i++)
7579 if (XOR (islower (i), ISLOWER (i))
7580 || toupper (i) != TOUPPER (i))
7581 return 2;
b0322a85
CE
7582 return 0;
7583}
7584_ACEOF
7585if ac_fn_c_try_run "$LINENO"; then :
7586
8d138742 7587else
b0322a85
CE
7588 ac_cv_header_stdc=no
7589fi
7590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7591 conftest.$ac_objext conftest.beam conftest.$ac_ext
7592fi
d9898ee8 7593
8d138742 7594fi
b0322a85
CE
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7597$as_echo "$ac_cv_header_stdc" >&6; }
7598if test $ac_cv_header_stdc = yes; then
7599
7600$as_echo "#define STDC_HEADERS 1" >>confdefs.h
ac40fd9e 7601
8d138742 7602fi
b0322a85
CE
7603
7604# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7605for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7606 inttypes.h stdint.h unistd.h
7607do :
7608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7609ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7610"
7611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
7612 cat >>confdefs.h <<_ACEOF
7613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7614_ACEOF
d9898ee8 7615
8d138742 7616fi
d9898ee8 7617
8d138742 7618done
d9898ee8 7619
d9898ee8 7620
8d138742 7621for ac_header in dlfcn.h
b0322a85
CE
7622do :
7623 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7624"
7625if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8d138742 7626 cat >>confdefs.h <<_ACEOF
b0322a85 7627#define HAVE_DLFCN_H 1
8d138742 7628_ACEOF
d9898ee8 7629
8d138742 7630fi
d9898ee8 7631
8d138742 7632done
d9898ee8 7633
d9898ee8 7634
ac40fd9e 7635
b0322a85
CE
7636
7637
8d138742 7638# Set options
d9898ee8 7639
d9898ee8 7640
d9898ee8 7641
8d138742 7642 enable_dlopen=no
d9898ee8 7643
d9898ee8 7644
8d138742 7645 enable_win32_dll=no
d9898ee8 7646
d9898ee8 7647
8d138742 7648 # Check whether --enable-shared was given.
b0322a85 7649if test "${enable_shared+set}" = set; then :
8d138742
CE
7650 enableval=$enable_shared; p=${PACKAGE-default}
7651 case $enableval in
7652 yes) enable_shared=yes ;;
7653 no) enable_shared=no ;;
d9898ee8 7654 *)
8d138742
CE
7655 enable_shared=no
7656 # Look at the argument we got. We use all the common list separators.
d50284c4 7657 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7658 for pkg in $enableval; do
d50284c4 7659 IFS=$lt_save_ifs
8d138742
CE
7660 if test "X$pkg" = "X$p"; then
7661 enable_shared=yes
7662 fi
7663 done
d50284c4 7664 IFS=$lt_save_ifs
8d138742
CE
7665 ;;
7666 esac
7667else
7668 enable_shared=yes
7669fi
d9898ee8 7670
d9898ee8 7671
d9898ee8 7672
d9898ee8 7673
d9898ee8 7674
d9898ee8 7675
d9898ee8 7676
d9898ee8 7677
d9898ee8 7678
8d138742 7679 # Check whether --enable-static was given.
b0322a85 7680if test "${enable_static+set}" = set; then :
8d138742
CE
7681 enableval=$enable_static; p=${PACKAGE-default}
7682 case $enableval in
7683 yes) enable_static=yes ;;
7684 no) enable_static=no ;;
7685 *)
7686 enable_static=no
7687 # Look at the argument we got. We use all the common list separators.
d50284c4 7688 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7689 for pkg in $enableval; do
d50284c4 7690 IFS=$lt_save_ifs
8d138742
CE
7691 if test "X$pkg" = "X$p"; then
7692 enable_static=yes
7693 fi
7694 done
d50284c4 7695 IFS=$lt_save_ifs
8d138742
CE
7696 ;;
7697 esac
7698else
7699 enable_static=yes
7700fi
ac40fd9e 7701
d9898ee8 7702
d9898ee8 7703
d9898ee8 7704
d9898ee8 7705
d9898ee8 7706
d9898ee8 7707
d9898ee8 7708
d9898ee8 7709
d9898ee8 7710
8d138742 7711# Check whether --with-pic was given.
b0322a85
CE
7712if test "${with_pic+set}" = set; then :
7713 withval=$with_pic; lt_p=${PACKAGE-default}
7714 case $withval in
7715 yes|no) pic_mode=$withval ;;
7716 *)
7717 pic_mode=default
7718 # Look at the argument we got. We use all the common list separators.
d50284c4 7719 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
b0322a85 7720 for lt_pkg in $withval; do
d50284c4 7721 IFS=$lt_save_ifs
b0322a85
CE
7722 if test "X$lt_pkg" = "X$lt_p"; then
7723 pic_mode=yes
7724 fi
7725 done
d50284c4 7726 IFS=$lt_save_ifs
b0322a85
CE
7727 ;;
7728 esac
d9898ee8 7729else
8d138742 7730 pic_mode=default
d9898ee8 7731fi
d9898ee8 7732
8d138742 7733
d9898ee8 7734
8d138742
CE
7735
7736
7737
7738
7739
7740 # Check whether --enable-fast-install was given.
b0322a85 7741if test "${enable_fast_install+set}" = set; then :
8d138742
CE
7742 enableval=$enable_fast_install; p=${PACKAGE-default}
7743 case $enableval in
7744 yes) enable_fast_install=yes ;;
7745 no) enable_fast_install=no ;;
d9898ee8 7746 *)
8d138742
CE
7747 enable_fast_install=no
7748 # Look at the argument we got. We use all the common list separators.
d50284c4 7749 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7750 for pkg in $enableval; do
d50284c4 7751 IFS=$lt_save_ifs
8d138742
CE
7752 if test "X$pkg" = "X$p"; then
7753 enable_fast_install=yes
7754 fi
7755 done
d50284c4 7756 IFS=$lt_save_ifs
d9898ee8 7757 ;;
7758 esac
8d138742
CE
7759else
7760 enable_fast_install=yes
7761fi
7762
7763
d9898ee8 7764
d9898ee8 7765
d9898ee8 7766
d9898ee8 7767
d9898ee8 7768
d9898ee8 7769
d50284c4
CE
7770 shared_archive_member_spec=
7771case $host,$enable_shared in
7772power*-*-aix[5-9]*,yes)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7774$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7775
7776# Check whether --with-aix-soname was given.
7777if test "${with_aix_soname+set}" = set; then :
7778 withval=$with_aix_soname; case $withval in
7779 aix|svr4|both)
7780 ;;
7781 *)
7782 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7783 ;;
7784 esac
7785 lt_cv_with_aix_soname=$with_aix_soname
7786else
7787 if ${lt_cv_with_aix_soname+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789else
7790 lt_cv_with_aix_soname=aix
7791fi
7792
7793 with_aix_soname=$lt_cv_with_aix_soname
7794fi
7795
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7797$as_echo "$with_aix_soname" >&6; }
7798 if test aix != "$with_aix_soname"; then
7799 # For the AIX way of multilib, we name the shared archive member
7800 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7801 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7802 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7803 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7804 if test 64 = "${OBJECT_MODE-32}"; then
7805 shared_archive_member_spec=shr_64
7806 else
7807 shared_archive_member_spec=shr
7808 fi
7809 fi
7810 ;;
7811*)
7812 with_aix_soname=aix
7813 ;;
7814esac
7815
7816
7817
7818
7819
7820
7821
d9898ee8 7822
d9898ee8 7823
d9898ee8 7824
8d138742 7825# This can be used to rebuild libtool when needed
d50284c4 7826LIBTOOL_DEPS=$ltmain
d9898ee8 7827
8d138742
CE
7828# Always use our own libtool.
7829LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7830
d9898ee8 7831
d9898ee8 7832
d9898ee8 7833
d9898ee8 7834
d9898ee8 7835
d9898ee8 7836
d9898ee8 7837
d9898ee8 7838
d9898ee8 7839
d9898ee8 7840
d9898ee8 7841
d9898ee8 7842
d9898ee8 7843
d9898ee8 7844
d9898ee8 7845
d9898ee8 7846
d9898ee8 7847
d9898ee8 7848
b0322a85
CE
7849
7850
7851
7852
7853
d9898ee8 7854
d9898ee8 7855
d9898ee8 7856
d9898ee8 7857
d9898ee8 7858
d9898ee8 7859
8d138742 7860test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7861
d9898ee8 7862
d9898ee8 7863
d9898ee8 7864
d9898ee8 7865
d9898ee8 7866
d9898ee8 7867
d9898ee8 7868
d9898ee8 7869
d9898ee8 7870
d9898ee8 7871
d9898ee8 7872
d9898ee8 7873
d9898ee8 7874
d50284c4 7875if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
7876 setopt NO_GLOB_SUBST
7877fi
d9898ee8 7878
b0322a85 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 7880$as_echo_n "checking for objdir... " >&6; }
b0322a85 7881if ${lt_cv_objdir+:} false; then :
8d138742
CE
7882 $as_echo_n "(cached) " >&6
7883else
7884 rm -f .libs 2>/dev/null
7885mkdir .libs 2>/dev/null
7886if test -d .libs; then
7887 lt_cv_objdir=.libs
7888else
7889 # MS-DOS does not allow filenames that begin with a dot.
7890 lt_cv_objdir=_libs
7891fi
7892rmdir .libs 2>/dev/null
7893fi
b0322a85 7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
7895$as_echo "$lt_cv_objdir" >&6; }
7896objdir=$lt_cv_objdir
d9898ee8 7897
d9898ee8 7898
d9898ee8 7899
d9898ee8 7900
d9898ee8 7901
8d138742
CE
7902cat >>confdefs.h <<_ACEOF
7903#define LT_OBJDIR "$lt_cv_objdir/"
7904_ACEOF
d9898ee8 7905
d9898ee8 7906
d9898ee8 7907
d9898ee8 7908
8d138742
CE
7909case $host_os in
7910aix3*)
7911 # AIX sometimes has problems with the GCC collect2 program. For some
7912 # reason, if we set the COLLECT_NAMES environment variable, the problems
7913 # vanish in a puff of smoke.
d50284c4 7914 if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
7915 COLLECT_NAMES=
7916 export COLLECT_NAMES
7917 fi
7918 ;;
7919esac
d9898ee8 7920
8d138742
CE
7921# Global variables:
7922ofile=libtool
7923can_build_shared=yes
d9898ee8 7924
d50284c4 7925# All known linkers require a '.a' archive for static linking (except MSVC,
8d138742
CE
7926# which needs '.lib').
7927libext=a
d9898ee8 7928
d50284c4 7929with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 7930
d50284c4
CE
7931old_CC=$CC
7932old_CFLAGS=$CFLAGS
d9898ee8 7933
8d138742
CE
7934# Set sane defaults for various variables
7935test -z "$CC" && CC=cc
7936test -z "$LTCC" && LTCC=$CC
7937test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7938test -z "$LD" && LD=ld
7939test -z "$ac_objext" && ac_objext=o
d9898ee8 7940
d50284c4
CE
7941func_cc_basename $compiler
7942cc_basename=$func_cc_basename_result
d9898ee8 7943
d9898ee8 7944
8d138742
CE
7945# Only perform the check for file, if the check method requires it
7946test -z "$MAGIC_CMD" && MAGIC_CMD=file
7947case $deplibs_check_method in
7948file_magic*)
7949 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 7951$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 7952if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
7953 $as_echo_n "(cached) " >&6
7954else
7955 case $MAGIC_CMD in
7956[\\/*] | ?:[\\/]*)
d50284c4 7957 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
7958 ;;
7959*)
d50284c4
CE
7960 lt_save_MAGIC_CMD=$MAGIC_CMD
7961 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
7962 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7963 for ac_dir in $ac_dummy; do
d50284c4 7964 IFS=$lt_save_ifs
8d138742 7965 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
7966 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7967 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8d138742
CE
7968 if test -n "$file_magic_test_file"; then
7969 case $deplibs_check_method in
7970 "file_magic "*)
7971 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 7972 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
7973 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7974 $EGREP "$file_magic_regex" > /dev/null; then
7975 :
7976 else
7977 cat <<_LT_EOF 1>&2
d9898ee8 7978
8d138742
CE
7979*** Warning: the command libtool uses to detect shared libraries,
7980*** $file_magic_cmd, produces output that libtool cannot recognize.
7981*** The result is that libtool may fail to recognize shared libraries
7982*** as such. This will affect the creation of libtool libraries that
7983*** depend on shared libraries, but programs linked with such libtool
7984*** libraries will work regardless of this problem. Nevertheless, you
7985*** may want to report the problem to your system manager and/or to
7986*** bug-libtool@gnu.org
d9898ee8 7987
8d138742
CE
7988_LT_EOF
7989 fi ;;
7990 esac
7991 fi
7992 break
7993 fi
7994 done
d50284c4
CE
7995 IFS=$lt_save_ifs
7996 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742
CE
7997 ;;
7998esac
7999fi
d9898ee8 8000
d50284c4 8001MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 8002if test -n "$MAGIC_CMD"; then
b0322a85 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
8004$as_echo "$MAGIC_CMD" >&6; }
8005else
b0322a85 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8007$as_echo "no" >&6; }
8008fi
d9898ee8 8009
d9898ee8 8010
d9898ee8 8011
d9898ee8 8012
d9898ee8 8013
8d138742
CE
8014if test -z "$lt_cv_path_MAGIC_CMD"; then
8015 if test -n "$ac_tool_prefix"; then
b0322a85 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 8017$as_echo_n "checking for file... " >&6; }
b0322a85 8018if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
8019 $as_echo_n "(cached) " >&6
8020else
8021 case $MAGIC_CMD in
8022[\\/*] | ?:[\\/]*)
d50284c4 8023 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
8024 ;;
8025*)
d50284c4
CE
8026 lt_save_MAGIC_CMD=$MAGIC_CMD
8027 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
8028 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8029 for ac_dir in $ac_dummy; do
d50284c4 8030 IFS=$lt_save_ifs
8d138742 8031 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
8032 if test -f "$ac_dir/file"; then
8033 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8d138742
CE
8034 if test -n "$file_magic_test_file"; then
8035 case $deplibs_check_method in
8036 "file_magic "*)
8037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 8038 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
8039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8040 $EGREP "$file_magic_regex" > /dev/null; then
8041 :
8042 else
8043 cat <<_LT_EOF 1>&2
d9898ee8 8044
8d138742
CE
8045*** Warning: the command libtool uses to detect shared libraries,
8046*** $file_magic_cmd, produces output that libtool cannot recognize.
8047*** The result is that libtool may fail to recognize shared libraries
8048*** as such. This will affect the creation of libtool libraries that
8049*** depend on shared libraries, but programs linked with such libtool
8050*** libraries will work regardless of this problem. Nevertheless, you
8051*** may want to report the problem to your system manager and/or to
8052*** bug-libtool@gnu.org
d9898ee8 8053
8d138742
CE
8054_LT_EOF
8055 fi ;;
8056 esac
8057 fi
8058 break
8059 fi
8060 done
d50284c4
CE
8061 IFS=$lt_save_ifs
8062 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742
CE
8063 ;;
8064esac
8065fi
d9898ee8 8066
d50284c4 8067MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 8068if test -n "$MAGIC_CMD"; then
b0322a85 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
8070$as_echo "$MAGIC_CMD" >&6; }
8071else
b0322a85 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8073$as_echo "no" >&6; }
8074fi
d9898ee8 8075
8076
8d138742
CE
8077 else
8078 MAGIC_CMD=:
d9898ee8 8079 fi
8080fi
8081
8d138742
CE
8082 fi
8083 ;;
8084esac
8085
8086# Use C for the default configuration in the libtool script
d9898ee8 8087
d50284c4 8088lt_save_CC=$CC
d9898ee8 8089ac_ext=c
8090ac_cpp='$CPP $CPPFLAGS'
8091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094
d9898ee8 8095
8d138742
CE
8096# Source file extension for C test sources.
8097ac_ext=c
d9898ee8 8098
8d138742 8099# Object file extension for compiled C test sources.
d9898ee8 8100objext=o
8d138742 8101objext=$objext
d9898ee8 8102
8103# Code to be used in simple compile tests
8d138742 8104lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 8105
8106# Code to be used in simple link tests
8d138742
CE
8107lt_simple_link_test_code='int main(){return(0);}'
8108
8109
8110
8111
8112
d9898ee8 8113
d9898ee8 8114
8115# If no C compiler was specified, use CC.
8116LTCC=${LTCC-"$CC"}
8117
8118# If no C compiler flags were specified, use CFLAGS.
8119LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8120
8121# Allow CC to be a program name with arguments.
8122compiler=$CC
8123
8d138742
CE
8124# Save the default compiler, since it gets overwritten when the other
8125# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8126compiler_DEFAULT=$CC
d9898ee8 8127
8128# save warnings/boilerplate of simple test code
8129ac_outfile=conftest.$ac_objext
ac40fd9e 8130echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 8131eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8132_lt_compiler_boilerplate=`cat conftest.err`
8d138742 8133$RM conftest*
d9898ee8 8134
8135ac_outfile=conftest.$ac_objext
ac40fd9e 8136echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 8137eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8138_lt_linker_boilerplate=`cat conftest.err`
8d138742 8139$RM -r conftest*
d9898ee8 8140
8141
8d138742 8142if test -n "$compiler"; then
d9898ee8 8143
8d138742 8144lt_prog_compiler_no_builtin_flag=
d9898ee8 8145
d50284c4 8146if test yes = "$GCC"; then
b0322a85
CE
8147 case $cc_basename in
8148 nvcc*)
8149 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8150 *)
8151 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8152 esac
d9898ee8 8153
b0322a85 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 8155$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 8156if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742 8157 $as_echo_n "(cached) " >&6
d9898ee8 8158else
8159 lt_cv_prog_compiler_rtti_exceptions=no
8d138742 8160 ac_outfile=conftest.$ac_objext
ac40fd9e 8161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 8162 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
d9898ee8 8163 # Insert the option either (1) after the last *FLAGS variable, or
8164 # (2) before a word containing "conftest.", or (3) at the end.
8165 # Note that $ac_compile itself does not contain backslashes and begins
8166 # with a dollar sign (not a hyphen), so the echo should work correctly.
8167 # The option is referenced via a variable to avoid confusing sed.
8168 lt_compile=`echo "$ac_compile" | $SED \
8169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8171 -e 's:$: $lt_compiler_flag:'`
b0322a85 8172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d9898ee8 8173 (eval "$lt_compile" 2>conftest.err)
8174 ac_status=$?
8175 cat conftest.err >&5
b0322a85 8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 8177 if (exit $ac_status) && test -s "$ac_outfile"; then
8178 # The compiler can only warn and ignore the option if not recognized
8179 # So say no if there are warnings other than the usual output.
b0322a85 8180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d9898ee8 8181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8183 lt_cv_prog_compiler_rtti_exceptions=yes
8184 fi
8185 fi
8d138742 8186 $RM conftest*
d9898ee8 8187
8188fi
b0322a85 8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 8190$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 8191
d50284c4 8192if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8d138742 8193 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 8194else
8195 :
8196fi
8197
8198fi
8199
d9898ee8 8200
8d138742
CE
8201
8202
8203
8204
8205 lt_prog_compiler_wl=
8206lt_prog_compiler_pic=
8207lt_prog_compiler_static=
8208
d9898ee8 8209
d50284c4 8210 if test yes = "$GCC"; then
8d138742
CE
8211 lt_prog_compiler_wl='-Wl,'
8212 lt_prog_compiler_static='-static'
d9898ee8 8213
8214 case $host_os in
8215 aix*)
8216 # All AIX code is PIC.
d50284c4 8217 if test ia64 = "$host_cpu"; then
d9898ee8 8218 # AIX 5 now supports IA64 processor
8d138742 8219 lt_prog_compiler_static='-Bstatic'
d9898ee8 8220 fi
d50284c4 8221 lt_prog_compiler_pic='-fPIC'
d9898ee8 8222 ;;
8223
8224 amigaos*)
8d138742
CE
8225 case $host_cpu in
8226 powerpc)
8227 # see comment about AmigaOS4 .so support
8228 lt_prog_compiler_pic='-fPIC'
8229 ;;
8230 m68k)
8231 # FIXME: we need at least 68020 code to build shared libraries, but
d50284c4
CE
8232 # adding the '-m68020' flag to GCC prevents building anything better,
8233 # like '-m68040'.
8d138742
CE
8234 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8235 ;;
8236 esac
d9898ee8 8237 ;;
8238
ac40fd9e 8239 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 8240 # PIC is the default for these OSes.
8241 ;;
8242
8d138742 8243 mingw* | cygwin* | pw32* | os2* | cegcc*)
d9898ee8 8244 # This hack is so that the source file can tell whether it is being
8245 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 8246 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8247 # (--disable-auto-import) libraries
8d138742 8248 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
8249 case $host_os in
8250 os2*)
8251 lt_prog_compiler_static='$wl-static'
8252 ;;
8253 esac
d9898ee8 8254 ;;
8255
8256 darwin* | rhapsody*)
8257 # PIC is the default on this platform
8258 # Common symbols not allowed in MH_DYLIB files
8d138742
CE
8259 lt_prog_compiler_pic='-fno-common'
8260 ;;
8261
b0322a85
CE
8262 haiku*)
8263 # PIC is the default for Haiku.
8264 # The "-static" flag exists, but is broken.
8265 lt_prog_compiler_static=
8266 ;;
8267
8d138742
CE
8268 hpux*)
8269 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8270 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8271 # sets the default TLS model and affects inlining.
8272 case $host_cpu in
8273 hppa*64*)
8274 # +Z the default
8275 ;;
8276 *)
8277 lt_prog_compiler_pic='-fPIC'
8278 ;;
8279 esac
d9898ee8 8280 ;;
8281
ac40fd9e 8282 interix[3-9]*)
d9898ee8 8283 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8284 # Instead, we relocate shared libraries at runtime.
8285 ;;
8286
8287 msdosdjgpp*)
8288 # Just because we use GCC doesn't mean we suddenly get shared libraries
8289 # on systems that don't support them.
8d138742 8290 lt_prog_compiler_can_build_shared=no
d9898ee8 8291 enable_shared=no
8292 ;;
8293
8d138742
CE
8294 *nto* | *qnx*)
8295 # QNX uses GNU C++, but need to define -shared option too, otherwise
8296 # it will coredump.
8297 lt_prog_compiler_pic='-fPIC -shared'
8298 ;;
8299
d9898ee8 8300 sysv4*MP*)
8301 if test -d /usr/nec; then
8d138742 8302 lt_prog_compiler_pic=-Kconform_pic
d9898ee8 8303 fi
8304 ;;
8305
d9898ee8 8306 *)
8d138742 8307 lt_prog_compiler_pic='-fPIC'
d9898ee8 8308 ;;
8309 esac
b0322a85
CE
8310
8311 case $cc_basename in
8312 nvcc*) # Cuda Compiler Driver 2.2
8313 lt_prog_compiler_wl='-Xlinker '
8314 if test -n "$lt_prog_compiler_pic"; then
8315 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8316 fi
8317 ;;
8318 esac
d9898ee8 8319 else
8320 # PORTME Check for flag to pass linker flags through the system compiler.
8321 case $host_os in
8322 aix*)
8d138742 8323 lt_prog_compiler_wl='-Wl,'
d50284c4 8324 if test ia64 = "$host_cpu"; then
d9898ee8 8325 # AIX 5 now supports IA64 processor
8d138742 8326 lt_prog_compiler_static='-Bstatic'
d9898ee8 8327 else
8d138742 8328 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d9898ee8 8329 fi
8330 ;;
d9898ee8 8331
d50284c4
CE
8332 darwin* | rhapsody*)
8333 # PIC is the default on this platform
8334 # Common symbols not allowed in MH_DYLIB files
8335 lt_prog_compiler_pic='-fno-common'
8336 case $cc_basename in
8337 nagfor*)
8338 # NAG Fortran compiler
8339 lt_prog_compiler_wl='-Wl,-Wl,,'
8340 lt_prog_compiler_pic='-PIC'
8341 lt_prog_compiler_static='-Bstatic'
8342 ;;
8343 esac
8344 ;;
8345
8d138742 8346 mingw* | cygwin* | pw32* | os2* | cegcc*)
d9898ee8 8347 # This hack is so that the source file can tell whether it is being
8348 # built for inclusion in a dll (and should export symbols for example).
8d138742 8349 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
8350 case $host_os in
8351 os2*)
8352 lt_prog_compiler_static='$wl-static'
8353 ;;
8354 esac
d9898ee8 8355 ;;
8356
8357 hpux9* | hpux10* | hpux11*)
8d138742 8358 lt_prog_compiler_wl='-Wl,'
d9898ee8 8359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8360 # not for PA HP-UX.
8361 case $host_cpu in
8362 hppa*64*|ia64*)
8363 # +Z the default
8364 ;;
8365 *)
8d138742 8366 lt_prog_compiler_pic='+Z'
d9898ee8 8367 ;;
8368 esac
8369 # Is there a better lt_prog_compiler_static that works with the bundled CC?
d50284c4 8370 lt_prog_compiler_static='$wl-a ${wl}archive'
d9898ee8 8371 ;;
8372
8373 irix5* | irix6* | nonstopux*)
8d138742 8374 lt_prog_compiler_wl='-Wl,'
d9898ee8 8375 # PIC (with -KPIC) is the default.
8d138742 8376 lt_prog_compiler_static='-non_shared'
d9898ee8 8377 ;;
8378
d50284c4 8379 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9898ee8 8380 case $cc_basename in
d50284c4 8381 # old Intel for x86_64, which still supported -KPIC.
8d138742
CE
8382 ecc*)
8383 lt_prog_compiler_wl='-Wl,'
8384 lt_prog_compiler_pic='-KPIC'
8385 lt_prog_compiler_static='-static'
8386 ;;
8387 # icc used to be incompatible with GCC.
8388 # ICC 10 doesn't accept -KPIC any more.
8389 icc* | ifort*)
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-fPIC'
8392 lt_prog_compiler_static='-static'
d9898ee8 8393 ;;
8d138742
CE
8394 # Lahey Fortran 8.1.
8395 lf95*)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='--shared'
8398 lt_prog_compiler_static='--static'
8399 ;;
b0322a85
CE
8400 nagfor*)
8401 # NAG Fortran compiler
8402 lt_prog_compiler_wl='-Wl,-Wl,,'
8403 lt_prog_compiler_pic='-PIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
d50284c4
CE
8406 tcc*)
8407 # Fabrice Bellard et al's Tiny C Compiler
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-fPIC'
8410 lt_prog_compiler_static='-static'
8411 ;;
b0322a85 8412 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d9898ee8 8413 # Portland Group compilers (*not* the Pentium gcc compiler,
8414 # which looks to be a dead project)
8d138742
CE
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-fpic'
8417 lt_prog_compiler_static='-Bstatic'
d9898ee8 8418 ;;
8419 ccc*)
8d138742 8420 lt_prog_compiler_wl='-Wl,'
d9898ee8 8421 # All Alpha code is PIC.
8d138742 8422 lt_prog_compiler_static='-non_shared'
d9898ee8 8423 ;;
b0322a85
CE
8424 xl* | bgxl* | bgf* | mpixl*)
8425 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-qpic'
8428 lt_prog_compiler_static='-qstaticlink'
8429 ;;
ac40fd9e 8430 *)
8d138742 8431 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
8432 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8433 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8434 lt_prog_compiler_pic='-KPIC'
8435 lt_prog_compiler_static='-Bstatic'
8436 lt_prog_compiler_wl=''
8437 ;;
8438 *Sun\ F* | *Sun*Fortran*)
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-Bstatic'
8441 lt_prog_compiler_wl='-Qoption ld '
8442 ;;
ac40fd9e 8443 *Sun\ C*)
8444 # Sun C 5.9
8d138742
CE
8445 lt_prog_compiler_pic='-KPIC'
8446 lt_prog_compiler_static='-Bstatic'
8447 lt_prog_compiler_wl='-Wl,'
ac40fd9e 8448 ;;
b0322a85
CE
8449 *Intel*\ [CF]*Compiler*)
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_pic='-fPIC'
8452 lt_prog_compiler_static='-static'
8453 ;;
8454 *Portland\ Group*)
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-fpic'
8d138742 8457 lt_prog_compiler_static='-Bstatic'
ac40fd9e 8458 ;;
8459 esac
8460 ;;
d9898ee8 8461 esac
8462 ;;
8463
8d138742
CE
8464 newsos6)
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-Bstatic'
8467 ;;
8468
8469 *nto* | *qnx*)
8470 # QNX uses GNU C++, but need to define -shared option too, otherwise
8471 # it will coredump.
8472 lt_prog_compiler_pic='-fPIC -shared'
8473 ;;
8474
d9898ee8 8475 osf3* | osf4* | osf5*)
8d138742 8476 lt_prog_compiler_wl='-Wl,'
d9898ee8 8477 # All OSF/1 code is PIC.
8d138742 8478 lt_prog_compiler_static='-non_shared'
d9898ee8 8479 ;;
8480
ac40fd9e 8481 rdos*)
8d138742 8482 lt_prog_compiler_static='-non_shared'
ac40fd9e 8483 ;;
8484
d9898ee8 8485 solaris*)
8d138742
CE
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
d9898ee8 8488 case $cc_basename in
b0322a85 8489 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742 8490 lt_prog_compiler_wl='-Qoption ld ';;
d9898ee8 8491 *)
8d138742 8492 lt_prog_compiler_wl='-Wl,';;
d9898ee8 8493 esac
8494 ;;
8495
8496 sunos4*)
8d138742
CE
8497 lt_prog_compiler_wl='-Qoption ld '
8498 lt_prog_compiler_pic='-PIC'
8499 lt_prog_compiler_static='-Bstatic'
d9898ee8 8500 ;;
8501
8502 sysv4 | sysv4.2uw2* | sysv4.3*)
8d138742
CE
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-Bstatic'
d9898ee8 8506 ;;
8507
8508 sysv4*MP*)
d50284c4 8509 if test -d /usr/nec; then
8d138742
CE
8510 lt_prog_compiler_pic='-Kconform_pic'
8511 lt_prog_compiler_static='-Bstatic'
d9898ee8 8512 fi
8513 ;;
8514
8515 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8d138742
CE
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='-KPIC'
8518 lt_prog_compiler_static='-Bstatic'
d9898ee8 8519 ;;
8520
8521 unicos*)
8d138742
CE
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_can_build_shared=no
d9898ee8 8524 ;;
8525
8526 uts4*)
8d138742
CE
8527 lt_prog_compiler_pic='-pic'
8528 lt_prog_compiler_static='-Bstatic'
d9898ee8 8529 ;;
8530
8531 *)
8d138742 8532 lt_prog_compiler_can_build_shared=no
d9898ee8 8533 ;;
8534 esac
8535 fi
8536
8d138742 8537case $host_os in
d50284c4 8538 # For platforms that do not support PIC, -DPIC is meaningless:
8d138742
CE
8539 *djgpp*)
8540 lt_prog_compiler_pic=
8541 ;;
8542 *)
8543 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8544 ;;
8545esac
8d138742 8546
b0322a85
CE
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8548$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8549if ${lt_cv_prog_compiler_pic+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551else
8552 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8553fi
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8555$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8556lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 8557
8558#
8559# Check to make sure the PIC flag actually works.
8560#
8d138742 8561if test -n "$lt_prog_compiler_pic"; then
b0322a85 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 8563$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 8564if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742 8565 $as_echo_n "(cached) " >&6
d9898ee8 8566else
8d138742
CE
8567 lt_cv_prog_compiler_pic_works=no
8568 ac_outfile=conftest.$ac_objext
ac40fd9e 8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 8570 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
d9898ee8 8571 # Insert the option either (1) after the last *FLAGS variable, or
8572 # (2) before a word containing "conftest.", or (3) at the end.
8573 # Note that $ac_compile itself does not contain backslashes and begins
8574 # with a dollar sign (not a hyphen), so the echo should work correctly.
8575 # The option is referenced via a variable to avoid confusing sed.
8576 lt_compile=`echo "$ac_compile" | $SED \
8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8579 -e 's:$: $lt_compiler_flag:'`
b0322a85 8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d9898ee8 8581 (eval "$lt_compile" 2>conftest.err)
8582 ac_status=$?
8583 cat conftest.err >&5
b0322a85 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 8585 if (exit $ac_status) && test -s "$ac_outfile"; then
8586 # The compiler can only warn and ignore the option if not recognized
8587 # So say no if there are warnings other than the usual output.
b0322a85 8588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d9898ee8 8589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8d138742 8591 lt_cv_prog_compiler_pic_works=yes
d9898ee8 8592 fi
8593 fi
8d138742 8594 $RM conftest*
d9898ee8 8595
8596fi
b0322a85 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 8598$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8599
d50284c4 8600if test yes = "$lt_cv_prog_compiler_pic_works"; then
8d138742 8601 case $lt_prog_compiler_pic in
d9898ee8 8602 "" | " "*) ;;
8d138742 8603 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
d9898ee8 8604 esac
8605else
8d138742
CE
8606 lt_prog_compiler_pic=
8607 lt_prog_compiler_can_build_shared=no
d9898ee8 8608fi
8609
8610fi
8d138742
CE
8611
8612
8613
8614
8615
d9898ee8 8616
b0322a85
CE
8617
8618
8619
8620
8621
d9898ee8 8622#
8623# Check to make sure the static flag actually works.
8624#
8d138742 8625wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 8626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 8627$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 8628if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742 8629 $as_echo_n "(cached) " >&6
d9898ee8 8630else
8d138742 8631 lt_cv_prog_compiler_static_works=no
d50284c4 8632 save_LDFLAGS=$LDFLAGS
d9898ee8 8633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 8634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 8635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8636 # The linker can only warn and ignore the option if not recognized
8637 # So say no if there are warnings
8638 if test -s conftest.err; then
8639 # Append any errors to the config.log.
8640 cat conftest.err 1>&5
b0322a85 8641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d9898ee8 8642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643 if diff conftest.exp conftest.er2 >/dev/null; then
8d138742 8644 lt_cv_prog_compiler_static_works=yes
d9898ee8 8645 fi
8646 else
8d138742 8647 lt_cv_prog_compiler_static_works=yes
d9898ee8 8648 fi
8649 fi
8d138742 8650 $RM -r conftest*
d50284c4 8651 LDFLAGS=$save_LDFLAGS
d9898ee8 8652
8d138742 8653fi
b0322a85 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742
CE
8655$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8656
d50284c4 8657if test yes = "$lt_cv_prog_compiler_static_works"; then
8d138742
CE
8658 :
8659else
8660 lt_prog_compiler_static=
8661fi
8662
8663
8664
8665
8666
8667
8668
b0322a85 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8670$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8671if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8672 $as_echo_n "(cached) " >&6
8673else
8674 lt_cv_prog_compiler_c_o=no
8675 $RM -r conftest 2>/dev/null
8676 mkdir conftest
8677 cd conftest
8678 mkdir out
8679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8680
8681 lt_compiler_flag="-o out/conftest2.$ac_objext"
8682 # Insert the option either (1) after the last *FLAGS variable, or
8683 # (2) before a word containing "conftest.", or (3) at the end.
8684 # Note that $ac_compile itself does not contain backslashes and begins
8685 # with a dollar sign (not a hyphen), so the echo should work correctly.
8686 lt_compile=`echo "$ac_compile" | $SED \
8687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689 -e 's:$: $lt_compiler_flag:'`
b0322a85 8690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8691 (eval "$lt_compile" 2>out/conftest.err)
8692 ac_status=$?
8693 cat out/conftest.err >&5
b0322a85 8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8696 then
8697 # The compiler can only warn and ignore the option if not recognized
8698 # So say no if there are warnings
b0322a85 8699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8702 lt_cv_prog_compiler_c_o=yes
8703 fi
8704 fi
8705 chmod u+w . 2>&5
8706 $RM conftest*
8707 # SGI C++ compiler will create directory out/ii_files/ for
8708 # template instantiation
8709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8710 $RM out/* && rmdir out
8711 cd ..
8712 $RM -r conftest
8713 $RM conftest*
8714
8715fi
b0322a85 8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742
CE
8717$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8718
8719
8720
d9898ee8 8721
d9898ee8 8722
8723
b0322a85 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8725$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8726if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742 8727 $as_echo_n "(cached) " >&6
d9898ee8 8728else
8d138742
CE
8729 lt_cv_prog_compiler_c_o=no
8730 $RM -r conftest 2>/dev/null
d9898ee8 8731 mkdir conftest
8732 cd conftest
8733 mkdir out
ac40fd9e 8734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8735
8736 lt_compiler_flag="-o out/conftest2.$ac_objext"
8737 # Insert the option either (1) after the last *FLAGS variable, or
8738 # (2) before a word containing "conftest.", or (3) at the end.
8739 # Note that $ac_compile itself does not contain backslashes and begins
8740 # with a dollar sign (not a hyphen), so the echo should work correctly.
8741 lt_compile=`echo "$ac_compile" | $SED \
8742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8744 -e 's:$: $lt_compiler_flag:'`
b0322a85 8745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d9898ee8 8746 (eval "$lt_compile" 2>out/conftest.err)
8747 ac_status=$?
8748 cat out/conftest.err >&5
b0322a85 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 8750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8751 then
8752 # The compiler can only warn and ignore the option if not recognized
8753 # So say no if there are warnings
b0322a85 8754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d9898ee8 8755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8d138742 8757 lt_cv_prog_compiler_c_o=yes
d9898ee8 8758 fi
8759 fi
8760 chmod u+w . 2>&5
8d138742 8761 $RM conftest*
d9898ee8 8762 # SGI C++ compiler will create directory out/ii_files/ for
8763 # template instantiation
8d138742
CE
8764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8765 $RM out/* && rmdir out
d9898ee8 8766 cd ..
8d138742
CE
8767 $RM -r conftest
8768 $RM conftest*
d9898ee8 8769
8770fi
b0322a85 8771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742
CE
8772$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8773
8774
d9898ee8 8775
8776
d50284c4
CE
8777hard_links=nottested
8778if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d9898ee8 8779 # do not overwrite the value of need_locks provided by the user
b0322a85 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742 8781$as_echo_n "checking if we can lock with hard links... " >&6; }
d9898ee8 8782 hard_links=yes
8d138742 8783 $RM conftest*
d9898ee8 8784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8785 touch conftest.a
8786 ln conftest.a conftest.b 2>&5 || hard_links=no
8787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742 8789$as_echo "$hard_links" >&6; }
d50284c4
CE
8790 if test no = "$hard_links"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8792$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d9898ee8 8793 need_locks=warn
8794 fi
8795else
8796 need_locks=no
8797fi
8798
8d138742
CE
8799
8800
8801
8802
8803
b0322a85 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 8805$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8806
8807 runpath_var=
8d138742
CE
8808 allow_undefined_flag=
8809 always_export_symbols=no
8810 archive_cmds=
8811 archive_expsym_cmds=
8812 compiler_needs_object=no
8813 enable_shared_with_static_runtimes=no
8814 export_dynamic_flag_spec=
8815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8816 hardcode_automatic=no
8817 hardcode_direct=no
8818 hardcode_direct_absolute=no
8819 hardcode_libdir_flag_spec=
8d138742
CE
8820 hardcode_libdir_separator=
8821 hardcode_minus_L=no
8822 hardcode_shlibpath_var=unsupported
8823 inherit_rpath=no
8824 link_all_deplibs=unknown
8825 module_cmds=
8826 module_expsym_cmds=
8827 old_archive_from_new_cmds=
8828 old_archive_from_expsyms_cmds=
8829 thread_safe_flag_spec=
8830 whole_archive_flag_spec=
d9898ee8 8831 # include_expsyms should be a list of space-separated symbols to be *always*
8832 # included in the symbol list
8d138742 8833 include_expsyms=
d9898ee8 8834 # exclude_expsyms can be an extended regexp of symbols to exclude
d50284c4
CE
8835 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8836 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8837 # as well as any symbol that contains 'd'.
8d138742 8838 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d9898ee8 8839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8840 # platforms (ab)use it in PIC code, but their linkers get confused if
8841 # the symbol is explicitly referenced. Since portable code cannot
8842 # rely on this symbol name, it's probably fine to never include it in
8843 # preloaded symbol tables.
8d138742 8844 # Exclude shared library initialization/finalization symbols.
d9898ee8 8845 extract_expsyms_cmds=
d9898ee8 8846
8847 case $host_os in
8d138742 8848 cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 8849 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8850 # When not using gcc, we currently assume that we are using
8851 # Microsoft Visual C++.
d50284c4 8852 if test yes != "$GCC"; then
d9898ee8 8853 with_gnu_ld=no
8854 fi
8855 ;;
8856 interix*)
8857 # we just hope/assume this is gcc and not c89 (= MSVC++)
8858 with_gnu_ld=yes
8859 ;;
d50284c4 8860 openbsd* | bitrig*)
d9898ee8 8861 with_gnu_ld=no
8862 ;;
8863 esac
8864
8d138742 8865 ld_shlibs=yes
b0322a85
CE
8866
8867 # On some targets, GNU ld is compatible enough with the native linker
8868 # that we're better off using the native interface for both.
8869 lt_use_gnu_ld_interface=no
d50284c4 8870 if test yes = "$with_gnu_ld"; then
b0322a85
CE
8871 case $host_os in
8872 aix*)
8873 # The AIX port of GNU ld has always aspired to compatibility
8874 # with the native linker. However, as the warning in the GNU ld
8875 # block says, versions before 2.19.5* couldn't really create working
8876 # shared libraries, regardless of the interface used.
8877 case `$LD -v 2>&1` in
8878 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8879 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8880 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8881 *)
8882 lt_use_gnu_ld_interface=yes
8883 ;;
8884 esac
8885 ;;
8886 *)
8887 lt_use_gnu_ld_interface=yes
8888 ;;
8889 esac
8890 fi
8891
d50284c4 8892 if test yes = "$lt_use_gnu_ld_interface"; then
d9898ee8 8893 # If archive_cmds runs LD, not CC, wlarc should be empty
d50284c4 8894 wlarc='$wl'
d9898ee8 8895
8896 # Set some defaults for GNU ld with shared library support. These
8897 # are reset later if shared libraries are not supported. Putting them
8898 # here allows them to be overridden if necessary.
8899 runpath_var=LD_RUN_PATH
d50284c4
CE
8900 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8901 export_dynamic_flag_spec='$wl--export-dynamic'
d9898ee8 8902 # ancient GNU ld didn't support --whole-archive et. al.
8d138742 8903 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
d50284c4 8904 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8d138742
CE
8905 else
8906 whole_archive_flag_spec=
d9898ee8 8907 fi
8908 supports_anon_versioning=no
d50284c4 8909 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
b0322a85 8910 *GNU\ gold*) supports_anon_versioning=yes ;;
d9898ee8 8911 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8912 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8913 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8914 *\ 2.11.*) ;; # other 2.11 versions
8915 *) supports_anon_versioning=yes ;;
8916 esac
8917
8918 # See if GNU ld supports shared libraries.
8919 case $host_os in
8d138742 8920 aix[3-9]*)
d9898ee8 8921 # On AIX/PPC, the GNU linker is very broken
d50284c4 8922 if test ia64 != "$host_cpu"; then
8d138742
CE
8923 ld_shlibs=no
8924 cat <<_LT_EOF 1>&2
d9898ee8 8925
b0322a85 8926*** Warning: the GNU linker, at least up to release 2.19, is reported
d9898ee8 8927*** to be unable to reliably create shared libraries on AIX.
8928*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
8929*** really care for shared libraries, you may want to install binutils
8930*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8931*** You will then need to restart the configuration process.
d9898ee8 8932
8d138742 8933_LT_EOF
d9898ee8 8934 fi
8935 ;;
8936
8937 amigaos*)
8d138742
CE
8938 case $host_cpu in
8939 powerpc)
8940 # see comment about AmigaOS4 .so support
d50284c4 8941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
8942 archive_expsym_cmds=''
8943 ;;
8944 m68k)
8945 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)'
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 hardcode_minus_L=yes
8948 ;;
8949 esac
d9898ee8 8950 ;;
8951
8952 beos*)
8d138742
CE
8953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8954 allow_undefined_flag=unsupported
d9898ee8 8955 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8956 # support --undefined. This deserves some investigation. FIXME
d50284c4 8957 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d9898ee8 8958 else
8d138742 8959 ld_shlibs=no
d9898ee8 8960 fi
8961 ;;
8962
8d138742
CE
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
d9898ee8 8965 # as there is no search path for DLLs.
8d138742 8966 hardcode_libdir_flag_spec='-L$libdir'
d50284c4 8967 export_dynamic_flag_spec='$wl--export-all-symbols'
8d138742
CE
8968 allow_undefined_flag=unsupported
8969 always_export_symbols=no
8970 enable_shared_with_static_runtimes=yes
b0322a85
CE
8971 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'
8972 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8d138742
CE
8973
8974 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
d50284c4
CE
8975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8976 # If the export-symbols file already is a .def file, use it as
8977 # is; otherwise, prepend EXPORTS...
8978 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8979 cp $export_symbols $output_objdir/$soname.def;
8980 else
8981 echo EXPORTS > $output_objdir/$soname.def;
8982 cat $export_symbols >> $output_objdir/$soname.def;
8983 fi~
8984 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d9898ee8 8985 else
8d138742 8986 ld_shlibs=no
d9898ee8 8987 fi
8988 ;;
8989
b0322a85 8990 haiku*)
d50284c4 8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
b0322a85
CE
8992 link_all_deplibs=yes
8993 ;;
8994
d50284c4
CE
8995 os2*)
8996 hardcode_libdir_flag_spec='-L$libdir'
8997 hardcode_minus_L=yes
8998 allow_undefined_flag=unsupported
8999 shrext_cmds=.dll
9000 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9001 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9002 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9003 $ECHO EXPORTS >> $output_objdir/$libname.def~
9004 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9005 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9006 emximp -o $lib $output_objdir/$libname.def'
9007 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9008 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9009 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9010 $ECHO EXPORTS >> $output_objdir/$libname.def~
9011 prefix_cmds="$SED"~
9012 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9013 prefix_cmds="$prefix_cmds -e 1d";
9014 fi~
9015 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9016 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9018 emximp -o $lib $output_objdir/$libname.def'
9019 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9020 enable_shared_with_static_runtimes=yes
9021 ;;
9022
ac40fd9e 9023 interix[3-9]*)
8d138742
CE
9024 hardcode_direct=no
9025 hardcode_shlibpath_var=no
d50284c4
CE
9026 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9027 export_dynamic_flag_spec='$wl-E'
d9898ee8 9028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9029 # Instead, shared libraries are loaded at an image base (0x10000000 by
9030 # default) and relocated if they conflict, which is a slow very memory
9031 # consuming and fragmenting process. To avoid this, we pick a random,
9032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9033 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
d50284c4
CE
9034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9035 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'
d9898ee8 9036 ;;
9037
b0322a85 9038 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742 9039 tmp_diet=no
d50284c4 9040 if test linux-dietlibc = "$host_os"; then
8d138742
CE
9041 case $cc_basename in
9042 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9043 esac
9044 fi
9045 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
d50284c4 9046 && test no = "$tmp_diet"
8d138742 9047 then
b0322a85 9048 tmp_addflag=' $pic_flag'
8d138742 9049 tmp_sharedflag='-shared'
d9898ee8 9050 case $cc_basename,$host_cpu in
8d138742 9051 pgcc*) # Portland Group C compiler
d50284c4 9052 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'
d9898ee8 9053 tmp_addflag=' $pic_flag'
9054 ;;
b0322a85
CE
9055 pgf77* | pgf90* | pgf95* | pgfortran*)
9056 # Portland Group f77 and f90 compilers
d50284c4 9057 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'
d9898ee8 9058 tmp_addflag=' $pic_flag -Mnomain' ;;
8d138742 9059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
d9898ee8 9060 tmp_addflag=' -i_dynamic' ;;
9061 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9062 tmp_addflag=' -i_dynamic -nofor_main' ;;
9063 ifc* | ifort*) # Intel Fortran compiler
9064 tmp_addflag=' -nofor_main' ;;
8d138742
CE
9065 lf95*) # Lahey Fortran 8.1
9066 whole_archive_flag_spec=
9067 tmp_sharedflag='--shared' ;;
d50284c4
CE
9068 nagfor*) # NAGFOR 5.3
9069 tmp_sharedflag='-Wl,-shared' ;;
b0322a85 9070 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
9071 tmp_sharedflag='-qmkshrobj'
9072 tmp_addflag= ;;
b0322a85 9073 nvcc*) # Cuda Compiler Driver 2.2
d50284c4 9074 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
b0322a85
CE
9075 compiler_needs_object=yes
9076 ;;
d9898ee8 9077 esac
ac40fd9e 9078 case `$CC -V 2>&1 | sed 5q` in
9079 *Sun\ C*) # Sun C 5.9
d50284c4 9080 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 9081 compiler_needs_object=yes
ac40fd9e 9082 tmp_sharedflag='-G' ;;
9083 *Sun\ F*) # Sun Fortran 8.3
9084 tmp_sharedflag='-G' ;;
ac40fd9e 9085 esac
d50284c4 9086 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d9898ee8 9087
d50284c4 9088 if test yes = "$supports_anon_versioning"; then
8d138742 9089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
9090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091 echo "local: *; };" >> $output_objdir/$libname.ver~
9092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8d138742
CE
9093 fi
9094
9095 case $cc_basename in
d50284c4
CE
9096 tcc*)
9097 export_dynamic_flag_spec='-rdynamic'
9098 ;;
b0322a85 9099 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
9100 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9101 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
d50284c4 9102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
b0322a85 9103 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
d50284c4 9104 if test yes = "$supports_anon_versioning"; then
8d138742 9105 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
9106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9107 echo "local: *; };" >> $output_objdir/$libname.ver~
9108 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
9109 fi
9110 ;;
9111 esac
d9898ee8 9112 else
8d138742 9113 ld_shlibs=no
d9898ee8 9114 fi
9115 ;;
9116
9117 netbsd*)
8d138742
CE
9118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9119 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
d9898ee8 9120 wlarc=
9121 else
d50284c4
CE
9122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9123 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 9124 fi
9125 ;;
9126
9127 solaris*)
8d138742
CE
9128 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9129 ld_shlibs=no
9130 cat <<_LT_EOF 1>&2
d9898ee8 9131
9132*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9133*** create shared libraries on Solaris systems. Therefore, libtool
9134*** is disabling shared libraries support. We urge you to upgrade GNU
9135*** binutils to release 2.9.1 or newer. Another option is to modify
9136*** your PATH or compiler configuration so that the native linker is
9137*** used, and then restart.
9138
8d138742
CE
9139_LT_EOF
9140 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9142 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 9143 else
8d138742 9144 ld_shlibs=no
d9898ee8 9145 fi
9146 ;;
9147
9148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9149 case `$LD -v 2>&1` in
9150 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8d138742 9151 ld_shlibs=no
d9898ee8 9152 cat <<_LT_EOF 1>&2
9153
d50284c4 9154*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d9898ee8 9155*** reliably create shared libraries on SCO systems. Therefore, libtool
9156*** is disabling shared libraries support. We urge you to upgrade GNU
9157*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9158*** your PATH or compiler configuration so that the native linker is
9159*** used, and then restart.
9160
9161_LT_EOF
9162 ;;
9163 *)
8d138742
CE
9164 # For security reasons, it is highly recommended that you always
9165 # use absolute paths for naming shared libraries, and exclude the
9166 # DT_RUNPATH tag from executables and libraries. But doing so
9167 # requires that you compile everything twice, which is a pain.
9168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 9172 else
8d138742 9173 ld_shlibs=no
d9898ee8 9174 fi
9175 ;;
9176 esac
9177 ;;
9178
9179 sunos4*)
8d138742 9180 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 9181 wlarc=
8d138742
CE
9182 hardcode_direct=yes
9183 hardcode_shlibpath_var=no
d9898ee8 9184 ;;
9185
9186 *)
8d138742 9187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9189 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 9190 else
8d138742 9191 ld_shlibs=no
d9898ee8 9192 fi
9193 ;;
9194 esac
9195
d50284c4 9196 if test no = "$ld_shlibs"; then
d9898ee8 9197 runpath_var=
8d138742
CE
9198 hardcode_libdir_flag_spec=
9199 export_dynamic_flag_spec=
9200 whole_archive_flag_spec=
d9898ee8 9201 fi
9202 else
9203 # PORTME fill in a description of your system's linker (not GNU ld)
9204 case $host_os in
9205 aix3*)
8d138742
CE
9206 allow_undefined_flag=unsupported
9207 always_export_symbols=yes
9208 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'
d9898ee8 9209 # Note: this linker hardcodes the directories in LIBPATH if there
9210 # are no directories specified by -L.
8d138742 9211 hardcode_minus_L=yes
d50284c4 9212 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d9898ee8 9213 # Neither direct hardcoding nor static linking is supported with a
9214 # broken collect2.
8d138742 9215 hardcode_direct=unsupported
d9898ee8 9216 fi
9217 ;;
9218
8d138742 9219 aix[4-9]*)
d50284c4 9220 if test ia64 = "$host_cpu"; then
d9898ee8 9221 # On IA64, the linker does run time linking by default, so we don't
9222 # have to do anything special.
9223 aix_use_runtimelinking=no
9224 exp_sym_flag='-Bexport'
d50284c4 9225 no_entry_flag=
d9898ee8 9226 else
9227 # If we're using GNU nm, then we don't want the "-C" option.
d50284c4
CE
9228 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9229 # Without the "-l" option, or with the "-B" option, AIX nm treats
9230 # weak defined symbols like other global defined symbols, whereas
9231 # GNU nm marks them as "W".
9232 # While the 'weak' keyword is ignored in the Export File, we need
9233 # it in the Import File for the 'aix-soname' feature, so we have
9234 # to replace the "-B" option with "-P" for AIX nm.
8d138742 9235 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
d50284c4 9236 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d9898ee8 9237 else
d50284c4 9238 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d9898ee8 9239 fi
9240 aix_use_runtimelinking=no
9241
9242 # Test if we are trying to use run time linking or normal
9243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
d50284c4
CE
9244 # have runtime linking enabled, and use it for executables.
9245 # For shared libraries, we enable/disable runtime linking
9246 # depending on the kind of the shared library created -
9247 # when "with_aix_soname,aix_use_runtimelinking" is:
9248 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9249 # "aix,yes" lib.so shared, rtl:yes, for executables
9250 # lib.a static archive
9251 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9252 # lib.a(lib.so.V) shared, rtl:no, for executables
9253 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9254 # lib.a(lib.so.V) shared, rtl:no
9255 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9256 # lib.a static archive
8d138742 9257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d9898ee8 9258 for ld_flag in $LDFLAGS; do
d50284c4 9259 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8d138742
CE
9260 aix_use_runtimelinking=yes
9261 break
9262 fi
d9898ee8 9263 done
d50284c4
CE
9264 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9265 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9266 # so we don't have lib.a shared libs to link our executables.
9267 # We have to force runtime linking in this case.
9268 aix_use_runtimelinking=yes
9269 LDFLAGS="$LDFLAGS -Wl,-brtl"
9270 fi
d9898ee8 9271 ;;
9272 esac
9273
9274 exp_sym_flag='-bexport'
9275 no_entry_flag='-bnoentry'
9276 fi
9277
9278 # When large executables or shared objects are built, AIX ld can
9279 # have problems creating the table of contents. If linking a library
9280 # or program results in "error TOC overflow" add -mminimal-toc to
9281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9283
8d138742
CE
9284 archive_cmds=''
9285 hardcode_direct=yes
9286 hardcode_direct_absolute=yes
9287 hardcode_libdir_separator=':'
9288 link_all_deplibs=yes
d50284c4
CE
9289 file_list_spec='$wl-f,'
9290 case $with_aix_soname,$aix_use_runtimelinking in
9291 aix,*) ;; # traditional, no import file
9292 svr4,* | *,yes) # use import file
9293 # The Import File defines what to hardcode.
9294 hardcode_direct=no
9295 hardcode_direct_absolute=no
9296 ;;
9297 esac
d9898ee8 9298
d50284c4 9299 if test yes = "$GCC"; then
d9898ee8 9300 case $host_os in aix4.[012]|aix4.[012].*)
9301 # We only want to do this on AIX 4.2 and lower, the check
9302 # below for broken collect2 doesn't work under 4.3+
d50284c4 9303 collect2name=`$CC -print-prog-name=collect2`
8d138742
CE
9304 if test -f "$collect2name" &&
9305 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
d9898ee8 9306 then
8d138742
CE
9307 # We have reworked collect2
9308 :
d9898ee8 9309 else
8d138742
CE
9310 # We have old collect2
9311 hardcode_direct=unsupported
9312 # It fails to find uninstalled libraries when the uninstalled
9313 # path is not listed in the libpath. Setting hardcode_minus_L
9314 # to unsupported forces relinking
9315 hardcode_minus_L=yes
9316 hardcode_libdir_flag_spec='-L$libdir'
9317 hardcode_libdir_separator=
d9898ee8 9318 fi
9319 ;;
9320 esac
9321 shared_flag='-shared'
d50284c4
CE
9322 if test yes = "$aix_use_runtimelinking"; then
9323 shared_flag="$shared_flag "'$wl-G'
d9898ee8 9324 fi
d50284c4
CE
9325 # Need to ensure runtime linking is disabled for the traditional
9326 # shared library, or the linker may eventually find shared libraries
9327 # /with/ Import File - we do not want to mix them.
9328 shared_flag_aix='-shared'
9329 shared_flag_svr4='-shared $wl-G'
d9898ee8 9330 else
9331 # not using gcc
d50284c4 9332 if test ia64 = "$host_cpu"; then
8d138742
CE
9333 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9334 # chokes on -Wl,-G. The following line is correct:
d9898ee8 9335 shared_flag='-G'
9336 else
d50284c4
CE
9337 if test yes = "$aix_use_runtimelinking"; then
9338 shared_flag='$wl-G'
d9898ee8 9339 else
d50284c4 9340 shared_flag='$wl-bM:SRE'
d9898ee8 9341 fi
d50284c4
CE
9342 shared_flag_aix='$wl-bM:SRE'
9343 shared_flag_svr4='$wl-G'
d9898ee8 9344 fi
9345 fi
9346
d50284c4 9347 export_dynamic_flag_spec='$wl-bexpall'
d9898ee8 9348 # It seems that -bexpall does not export symbols beginning with
9349 # underscore (_), so it is better to generate a list of symbols to export.
8d138742 9350 always_export_symbols=yes
d50284c4 9351 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d9898ee8 9352 # Warning - without using the other runtime loading flags (-brtl),
9353 # -berok will link without error, but may produce a broken library.
8d138742
CE
9354 allow_undefined_flag='-berok'
9355 # Determine the default libpath from the value encoded in an
9356 # empty executable.
d50284c4 9357 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
9358 aix_libpath=$lt_cv_aix_libpath
9359else
9360 if ${lt_cv_aix_libpath_+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362else
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 9364/* end confdefs.h. */
9365
9366int
9367main ()
9368{
9369
9370 ;
9371 return 0;
9372}
9373_ACEOF
b0322a85 9374if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9375
b0322a85
CE
9376 lt_aix_libpath_sed='
9377 /Import File Strings/,/^$/ {
9378 /^0/ {
9379 s/^0 *\([^ ]*\) *$/\1/
9380 p
9381 }
9382 }'
9383 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9384 # Check for a 64-bit object if we didn't find anything.
9385 if test -z "$lt_cv_aix_libpath_"; then
9386 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9387 fi
9388fi
9389rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 9392 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 9393 fi
dd184caf 9394
d9898ee8 9395fi
dd184caf 9396
b0322a85
CE
9397 aix_libpath=$lt_cv_aix_libpath_
9398fi
d9898ee8 9399
d50284c4
CE
9400 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9401 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8d138742 9402 else
d50284c4
CE
9403 if test ia64 = "$host_cpu"; then
9404 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8d138742 9405 allow_undefined_flag="-z nodefs"
d50284c4 9406 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"
d9898ee8 9407 else
8d138742
CE
9408 # Determine the default libpath from the value encoded in an
9409 # empty executable.
d50284c4 9410 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
9411 aix_libpath=$lt_cv_aix_libpath
9412else
9413 if ${lt_cv_aix_libpath_+:} false; then :
9414 $as_echo_n "(cached) " >&6
9415else
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 9417/* end confdefs.h. */
9418
9419int
9420main ()
9421{
9422
9423 ;
9424 return 0;
9425}
9426_ACEOF
b0322a85 9427if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9428
b0322a85
CE
9429 lt_aix_libpath_sed='
9430 /Import File Strings/,/^$/ {
9431 /^0/ {
9432 s/^0 *\([^ ]*\) *$/\1/
9433 p
9434 }
9435 }'
9436 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9437 # Check for a 64-bit object if we didn't find anything.
9438 if test -z "$lt_cv_aix_libpath_"; then
9439 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9440 fi
9441fi
9442rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
9444 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 9445 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 9446 fi
dd184caf 9447
d9898ee8 9448fi
dd184caf 9449
b0322a85
CE
9450 aix_libpath=$lt_cv_aix_libpath_
9451fi
d9898ee8 9452
d50284c4 9453 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d9898ee8 9454 # Warning - without using the other run time loading flags,
9455 # -berok will link without error, but may produce a broken library.
d50284c4
CE
9456 no_undefined_flag=' $wl-bernotok'
9457 allow_undefined_flag=' $wl-berok'
9458 if test yes = "$with_gnu_ld"; then
b0322a85 9459 # We only use this code for GNU lds that support --whole-archive.
d50284c4 9460 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
b0322a85
CE
9461 else
9462 # Exported symbols can be pulled into shared objects from archives
9463 whole_archive_flag_spec='$convenience'
9464 fi
8d138742 9465 archive_cmds_need_lc=yes
d50284c4
CE
9466 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9467 # -brtl affects multiple linker settings, -berok does not and is overridden later
9468 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9469 if test svr4 != "$with_aix_soname"; then
9470 # This is similar to how AIX traditionally builds its shared libraries.
9471 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9472 fi
9473 if test aix != "$with_aix_soname"; then
9474 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9475 else
9476 # used by -dlpreopen to get the symbols
9477 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9478 fi
9479 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d9898ee8 9480 fi
9481 fi
9482 ;;
9483
9484 amigaos*)
8d138742
CE
9485 case $host_cpu in
9486 powerpc)
9487 # see comment about AmigaOS4 .so support
d50284c4 9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9489 archive_expsym_cmds=''
9490 ;;
9491 m68k)
9492 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)'
9493 hardcode_libdir_flag_spec='-L$libdir'
9494 hardcode_minus_L=yes
9495 ;;
9496 esac
d9898ee8 9497 ;;
9498
9499 bsdi[45]*)
8d138742 9500 export_dynamic_flag_spec=-rdynamic
d9898ee8 9501 ;;
9502
8d138742 9503 cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9504 # When not using gcc, we currently assume that we are using
9505 # Microsoft Visual C++.
9506 # hardcode_libdir_flag_spec is actually meaningless, as there is
9507 # no search path for DLLs.
b0322a85
CE
9508 case $cc_basename in
9509 cl*)
9510 # Native MSVC
9511 hardcode_libdir_flag_spec=' '
9512 allow_undefined_flag=unsupported
9513 always_export_symbols=yes
9514 file_list_spec='@'
9515 # Tell ltmain to make .lib files, not .a files.
9516 libext=lib
9517 # Tell ltmain to make .dll files, not .so files.
d50284c4 9518 shrext_cmds=.dll
b0322a85 9519 # FIXME: Setting linknames here is a bad hack.
d50284c4
CE
9520 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9521 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9522 cp "$export_symbols" "$output_objdir/$soname.def";
9523 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9524 else
9525 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9526 fi~
9527 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9528 linknames='
b0322a85
CE
9529 # The linker will not automatically build a static lib if we build a DLL.
9530 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9531 enable_shared_with_static_runtimes=yes
9532 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9534 # Don't use ranlib
9535 old_postinstall_cmds='chmod 644 $oldlib'
9536 postlink_cmds='lt_outputfile="@OUTPUT@"~
d50284c4
CE
9537 lt_tool_outputfile="@TOOL_OUTPUT@"~
9538 case $lt_outputfile in
9539 *.exe|*.EXE) ;;
9540 *)
9541 lt_outputfile=$lt_outputfile.exe
9542 lt_tool_outputfile=$lt_tool_outputfile.exe
9543 ;;
9544 esac~
9545 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9546 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9547 $RM "$lt_outputfile.manifest";
9548 fi'
b0322a85
CE
9549 ;;
9550 *)
9551 # Assume MSVC wrapper
9552 hardcode_libdir_flag_spec=' '
9553 allow_undefined_flag=unsupported
9554 # Tell ltmain to make .lib files, not .a files.
9555 libext=lib
9556 # Tell ltmain to make .dll files, not .so files.
d50284c4 9557 shrext_cmds=.dll
b0322a85
CE
9558 # FIXME: Setting linknames here is a bad hack.
9559 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9560 # The linker will automatically build a .lib file if we build a DLL.
9561 old_archive_from_new_cmds='true'
9562 # FIXME: Should let the user specify the lib program.
9563 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9564 enable_shared_with_static_runtimes=yes
9565 ;;
9566 esac
d9898ee8 9567 ;;
9568
9569 darwin* | rhapsody*)
8d138742
CE
9570
9571
9572 archive_cmds_need_lc=no
9573 hardcode_direct=no
9574 hardcode_automatic=yes
9575 hardcode_shlibpath_var=unsupported
d50284c4
CE
9576 if test yes = "$lt_cv_ld_force_load"; then
9577 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
b0322a85
CE
9578
9579 else
9580 whole_archive_flag_spec=''
9581 fi
8d138742 9582 link_all_deplibs=yes
d50284c4 9583 allow_undefined_flag=$_lt_dar_allow_undefined
8d138742 9584 case $cc_basename in
d50284c4 9585 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8d138742
CE
9586 *) _lt_dar_can_shared=$GCC ;;
9587 esac
d50284c4 9588 if test yes = "$_lt_dar_can_shared"; then
b0322a85 9589 output_verbose_link_cmd=func_echo_all
d50284c4
CE
9590 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9591 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9592 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"
9593 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"
8d138742
CE
9594
9595 else
9596 ld_shlibs=no
9597 fi
9598
d9898ee8 9599 ;;
9600
9601 dgux*)
8d138742
CE
9602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_shlibpath_var=no
d9898ee8 9605 ;;
9606
d9898ee8 9607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9608 # support. Future versions do this automatically, but an explicit c++rt0.o
9609 # does not break anything, and helps significantly (at the cost of a little
9610 # extra space).
9611 freebsd2.2*)
8d138742
CE
9612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9613 hardcode_libdir_flag_spec='-R$libdir'
9614 hardcode_direct=yes
9615 hardcode_shlibpath_var=no
d9898ee8 9616 ;;
9617
9618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 9619 freebsd2.*)
8d138742
CE
9620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_direct=yes
9622 hardcode_minus_L=yes
9623 hardcode_shlibpath_var=no
d9898ee8 9624 ;;
9625
9626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 9627 freebsd* | dragonfly*)
b0322a85 9628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9629 hardcode_libdir_flag_spec='-R$libdir'
9630 hardcode_direct=yes
9631 hardcode_shlibpath_var=no
d9898ee8 9632 ;;
9633
9634 hpux9*)
d50284c4
CE
9635 if test yes = "$GCC"; then
9636 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d9898ee8 9637 else
d50284c4 9638 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d9898ee8 9639 fi
d50284c4 9640 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
9641 hardcode_libdir_separator=:
9642 hardcode_direct=yes
d9898ee8 9643
9644 # hardcode_minus_L: Not really in the search PATH,
9645 # but as the default location of the library.
8d138742 9646 hardcode_minus_L=yes
d50284c4 9647 export_dynamic_flag_spec='$wl-E'
d9898ee8 9648 ;;
9649
9650 hpux10*)
d50284c4
CE
9651 if test yes,no = "$GCC,$with_gnu_ld"; then
9652 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9653 else
8d138742 9654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 9655 fi
d50284c4
CE
9656 if test no = "$with_gnu_ld"; then
9657 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
9658 hardcode_libdir_separator=:
9659 hardcode_direct=yes
9660 hardcode_direct_absolute=yes
d50284c4 9661 export_dynamic_flag_spec='$wl-E'
d9898ee8 9662 # hardcode_minus_L: Not really in the search PATH,
9663 # but as the default location of the library.
8d138742 9664 hardcode_minus_L=yes
d9898ee8 9665 fi
9666 ;;
9667
b0322a85 9668 hpux11*)
d50284c4 9669 if test yes,no = "$GCC,$with_gnu_ld"; then
b0322a85
CE
9670 case $host_cpu in
9671 hppa*64*)
d50284c4 9672 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9673 ;;
9674 ia64*)
d50284c4 9675 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9676 ;;
9677 *)
d50284c4 9678 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9679 ;;
9680 esac
9681 else
9682 case $host_cpu in
9683 hppa*64*)
d50284c4 9684 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9685 ;;
9686 ia64*)
d50284c4 9687 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9688 ;;
9689 *)
9690
9691 # Older versions of the 11.00 compiler do not understand -b yet
9692 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9694$as_echo_n "checking if $CC understands -b... " >&6; }
9695if ${lt_cv_prog_compiler__b+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697else
9698 lt_cv_prog_compiler__b=no
d50284c4 9699 save_LDFLAGS=$LDFLAGS
b0322a85
CE
9700 LDFLAGS="$LDFLAGS -b"
9701 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9703 # The linker can only warn and ignore the option if not recognized
9704 # So say no if there are warnings
9705 if test -s conftest.err; then
9706 # Append any errors to the config.log.
9707 cat conftest.err 1>&5
9708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9710 if diff conftest.exp conftest.er2 >/dev/null; then
9711 lt_cv_prog_compiler__b=yes
9712 fi
9713 else
9714 lt_cv_prog_compiler__b=yes
9715 fi
9716 fi
9717 $RM -r conftest*
d50284c4 9718 LDFLAGS=$save_LDFLAGS
b0322a85
CE
9719
9720fi
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9722$as_echo "$lt_cv_prog_compiler__b" >&6; }
9723
d50284c4
CE
9724if test yes = "$lt_cv_prog_compiler__b"; then
9725 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9726else
9727 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9728fi
9729
d9898ee8 9730 ;;
9731 esac
9732 fi
d50284c4
CE
9733 if test no = "$with_gnu_ld"; then
9734 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742 9735 hardcode_libdir_separator=:
d9898ee8 9736
9737 case $host_cpu in
9738 hppa*64*|ia64*)
8d138742
CE
9739 hardcode_direct=no
9740 hardcode_shlibpath_var=no
d9898ee8 9741 ;;
9742 *)
8d138742
CE
9743 hardcode_direct=yes
9744 hardcode_direct_absolute=yes
d50284c4 9745 export_dynamic_flag_spec='$wl-E'
d9898ee8 9746
9747 # hardcode_minus_L: Not really in the search PATH,
9748 # but as the default location of the library.
8d138742 9749 hardcode_minus_L=yes
d9898ee8 9750 ;;
9751 esac
9752 fi
9753 ;;
9754
9755 irix5* | irix6* | nonstopux*)
d50284c4
CE
9756 if test yes = "$GCC"; then
9757 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
9758 # Try to use the -exported_symbol ld option, if it does not
9759 # work, assume that -exports_file does not work either and
9760 # implicitly export all symbols.
b0322a85
CE
9761 # This should be the same for all languages, so no per-tag cache variable.
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9763$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9764if ${lt_cv_irix_exported_symbol+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766else
d50284c4
CE
9767 save_LDFLAGS=$LDFLAGS
9768 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
b0322a85
CE
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h. */
9771int foo (void) { return 0; }
8d138742 9772_ACEOF
b0322a85
CE
9773if ac_fn_c_try_link "$LINENO"; then :
9774 lt_cv_irix_exported_symbol=yes
8d138742 9775else
b0322a85 9776 lt_cv_irix_exported_symbol=no
8d138742 9777fi
b0322a85
CE
9778rm -f core conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
d50284c4 9780 LDFLAGS=$save_LDFLAGS
b0322a85
CE
9781fi
9782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9783$as_echo "$lt_cv_irix_exported_symbol" >&6; }
d50284c4
CE
9784 if test yes = "$lt_cv_irix_exported_symbol"; then
9785 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
b0322a85 9786 fi
d9898ee8 9787 else
d50284c4
CE
9788 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'
9789 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'
d9898ee8 9790 fi
8d138742 9791 archive_cmds_need_lc='no'
d50284c4 9792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
9793 hardcode_libdir_separator=:
9794 inherit_rpath=yes
9795 link_all_deplibs=yes
d9898ee8 9796 ;;
9797
d50284c4
CE
9798 linux*)
9799 case $cc_basename in
9800 tcc*)
9801 # Fabrice Bellard et al's Tiny C Compiler
9802 ld_shlibs=yes
9803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9804 ;;
9805 esac
9806 ;;
9807
d9898ee8 9808 netbsd*)
8d138742
CE
9809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
d9898ee8 9811 else
8d138742 9812 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
d9898ee8 9813 fi
8d138742
CE
9814 hardcode_libdir_flag_spec='-R$libdir'
9815 hardcode_direct=yes
9816 hardcode_shlibpath_var=no
d9898ee8 9817 ;;
9818
9819 newsos6)
8d138742
CE
9820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821 hardcode_direct=yes
d50284c4 9822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
9823 hardcode_libdir_separator=:
9824 hardcode_shlibpath_var=no
9825 ;;
9826
9827 *nto* | *qnx*)
d9898ee8 9828 ;;
9829
d50284c4 9830 openbsd* | bitrig*)
ac40fd9e 9831 if test -f /usr/libexec/ld.so; then
8d138742
CE
9832 hardcode_direct=yes
9833 hardcode_shlibpath_var=no
9834 hardcode_direct_absolute=yes
d50284c4 9835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8d138742 9836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d50284c4
CE
9837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9838 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9839 export_dynamic_flag_spec='$wl-E'
ac40fd9e 9840 else
d50284c4
CE
9841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9842 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8d138742 9843 fi
d9898ee8 9844 else
8d138742 9845 ld_shlibs=no
d9898ee8 9846 fi
9847 ;;
9848
9849 os2*)
8d138742
CE
9850 hardcode_libdir_flag_spec='-L$libdir'
9851 hardcode_minus_L=yes
9852 allow_undefined_flag=unsupported
d50284c4
CE
9853 shrext_cmds=.dll
9854 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9855 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9856 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9857 $ECHO EXPORTS >> $output_objdir/$libname.def~
9858 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9859 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9860 emximp -o $lib $output_objdir/$libname.def'
9861 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9862 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9863 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9864 $ECHO EXPORTS >> $output_objdir/$libname.def~
9865 prefix_cmds="$SED"~
9866 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9867 prefix_cmds="$prefix_cmds -e 1d";
9868 fi~
9869 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9870 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9871 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9872 emximp -o $lib $output_objdir/$libname.def'
9873 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9874 enable_shared_with_static_runtimes=yes
d9898ee8 9875 ;;
9876
9877 osf3*)
d50284c4
CE
9878 if test yes = "$GCC"; then
9879 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9880 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'
d9898ee8 9881 else
8d138742 9882 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 9883 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'
d9898ee8 9884 fi
8d138742 9885 archive_cmds_need_lc='no'
d50284c4 9886 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742 9887 hardcode_libdir_separator=:
d9898ee8 9888 ;;
9889
9890 osf4* | osf5*) # as osf3* with the addition of -msym flag
d50284c4
CE
9891 if test yes = "$GCC"; then
9892 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9893 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'
9894 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d9898ee8 9895 else
8d138742 9896 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 9897 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 9898 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
d50284c4 9899 $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 9900
9901 # Both c and cxx compiler support -rpath directly
8d138742 9902 hardcode_libdir_flag_spec='-rpath $libdir'
d9898ee8 9903 fi
8d138742
CE
9904 archive_cmds_need_lc='no'
9905 hardcode_libdir_separator=:
d9898ee8 9906 ;;
9907
9908 solaris*)
8d138742 9909 no_undefined_flag=' -z defs'
d50284c4
CE
9910 if test yes = "$GCC"; then
9911 wlarc='$wl'
9912 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 9913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 9914 $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'
d9898ee8 9915 else
8d138742
CE
9916 case `$CC -V 2>&1` in
9917 *"Compilers 5.0"*)
9918 wlarc=''
d50284c4 9919 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
8d138742 9920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 9921 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8d138742
CE
9922 ;;
9923 *)
d50284c4
CE
9924 wlarc='$wl'
9925 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 9926 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 9927 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8d138742
CE
9928 ;;
9929 esac
d9898ee8 9930 fi
8d138742
CE
9931 hardcode_libdir_flag_spec='-R$libdir'
9932 hardcode_shlibpath_var=no
d9898ee8 9933 case $host_os in
9934 solaris2.[0-5] | solaris2.[0-5].*) ;;
9935 *)
ac40fd9e 9936 # The compiler driver will combine and reorder linker options,
d50284c4 9937 # but understands '-z linker_flag'. GCC discards it without '$wl',
ac40fd9e 9938 # but is careful enough not to reorder.
8d138742 9939 # Supported since Solaris 2.6 (maybe 2.5.1?)
d50284c4
CE
9940 if test yes = "$GCC"; then
9941 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
ac40fd9e 9942 else
8d138742 9943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
ac40fd9e 9944 fi
9945 ;;
d9898ee8 9946 esac
8d138742 9947 link_all_deplibs=yes
d9898ee8 9948 ;;
9949
9950 sunos4*)
d50284c4 9951 if test sequent = "$host_vendor"; then
d9898ee8 9952 # Use $CC to link under sequent, because it throws in some extra .o
9953 # files that make .init and .fini sections work.
d50284c4 9954 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9955 else
8d138742 9956 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 9957 fi
8d138742
CE
9958 hardcode_libdir_flag_spec='-L$libdir'
9959 hardcode_direct=yes
9960 hardcode_minus_L=yes
9961 hardcode_shlibpath_var=no
d9898ee8 9962 ;;
9963
9964 sysv4)
9965 case $host_vendor in
9966 sni)
8d138742
CE
9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_direct=yes # is this really true???
d9898ee8 9969 ;;
9970 siemens)
9971 ## LD is ld it makes a PLAMLIB
9972 ## CC just makes a GrossModule.
8d138742
CE
9973 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9974 reload_cmds='$CC -r -o $output$reload_objs'
9975 hardcode_direct=no
d9898ee8 9976 ;;
9977 motorola)
8d138742
CE
9978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 9980 ;;
9981 esac
9982 runpath_var='LD_RUN_PATH'
8d138742 9983 hardcode_shlibpath_var=no
d9898ee8 9984 ;;
9985
9986 sysv4.3*)
8d138742
CE
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_shlibpath_var=no
9989 export_dynamic_flag_spec='-Bexport'
d9898ee8 9990 ;;
9991
9992 sysv4*MP*)
9993 if test -d /usr/nec; then
8d138742
CE
9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_shlibpath_var=no
d9898ee8 9996 runpath_var=LD_RUN_PATH
9997 hardcode_runpath_var=yes
8d138742 9998 ld_shlibs=yes
d9898ee8 9999 fi
10000 ;;
10001
ac40fd9e 10002 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d50284c4 10003 no_undefined_flag='$wl-z,text'
8d138742
CE
10004 archive_cmds_need_lc=no
10005 hardcode_shlibpath_var=no
d9898ee8 10006 runpath_var='LD_RUN_PATH'
10007
d50284c4
CE
10008 if test yes = "$GCC"; then
10009 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 10011 else
d50284c4
CE
10012 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 10014 fi
10015 ;;
10016
10017 sysv5* | sco3.2v5* | sco5v6*)
d50284c4 10018 # Note: We CANNOT use -z defs as we might desire, because we do not
d9898ee8 10019 # link with -lc, and that would cause any symbols used from libc to
10020 # always be unresolved, which means just about no library would
10021 # ever link correctly. If we're not using GNU ld we use -z text
10022 # though, which does catch some bad symbols but isn't as heavy-handed
10023 # as -z defs.
d50284c4
CE
10024 no_undefined_flag='$wl-z,text'
10025 allow_undefined_flag='$wl-z,nodefs'
8d138742
CE
10026 archive_cmds_need_lc=no
10027 hardcode_shlibpath_var=no
d50284c4 10028 hardcode_libdir_flag_spec='$wl-R,$libdir'
8d138742
CE
10029 hardcode_libdir_separator=':'
10030 link_all_deplibs=yes
d50284c4 10031 export_dynamic_flag_spec='$wl-Bexport'
d9898ee8 10032 runpath_var='LD_RUN_PATH'
10033
d50284c4
CE
10034 if test yes = "$GCC"; then
10035 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 10037 else
d50284c4
CE
10038 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 10040 fi
10041 ;;
10042
10043 uts4*)
8d138742
CE
10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_libdir_flag_spec='-L$libdir'
10046 hardcode_shlibpath_var=no
d9898ee8 10047 ;;
10048
10049 *)
8d138742 10050 ld_shlibs=no
d9898ee8 10051 ;;
10052 esac
8d138742 10053
d50284c4 10054 if test sni = "$host_vendor"; then
8d138742
CE
10055 case $host in
10056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d50284c4 10057 export_dynamic_flag_spec='$wl-Blargedynsym'
8d138742
CE
10058 ;;
10059 esac
10060 fi
d9898ee8 10061 fi
10062
b0322a85 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742 10064$as_echo "$ld_shlibs" >&6; }
d50284c4 10065test no = "$ld_shlibs" && can_build_shared=no
8d138742
CE
10066
10067with_gnu_ld=$with_gnu_ld
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
d9898ee8 10082
10083#
10084# Do we need to explicitly link libc?
10085#
8d138742 10086case "x$archive_cmds_need_lc" in
d9898ee8 10087x|xyes)
10088 # Assume -lc should be added
8d138742 10089 archive_cmds_need_lc=yes
d9898ee8 10090
d50284c4 10091 if test yes,yes = "$GCC,$enable_shared"; then
8d138742 10092 case $archive_cmds in
d9898ee8 10093 *'~'*)
10094 # FIXME: we may have to deal with multi-command sequences.
10095 ;;
10096 '$CC '*)
10097 # Test whether the compiler implicitly links with -lc since on some
10098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10099 # to ld, don't add -lc before -lgcc.
b0322a85 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 10101$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
10102if ${lt_cv_archive_cmds_need_lc+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104else
10105 $RM conftest*
10106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 10107
b0322a85 10108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 10109 (eval $ac_compile) 2>&5
10110 ac_status=$?
b0322a85
CE
10111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10112 test $ac_status = 0; } 2>conftest.err; then
10113 soname=conftest
10114 lib=conftest
10115 libobjs=conftest.$ac_objext
10116 deplibs=
10117 wl=$lt_prog_compiler_wl
10118 pic_flag=$lt_prog_compiler_pic
10119 compiler_flags=-v
10120 linker_flags=-v
10121 verstring=
10122 output_objdir=.
10123 libname=conftest
10124 lt_save_allow_undefined_flag=$allow_undefined_flag
10125 allow_undefined_flag=
10126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742 10127 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d9898ee8 10128 ac_status=$?
b0322a85
CE
10129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10130 test $ac_status = 0; }
10131 then
10132 lt_cv_archive_cmds_need_lc=no
10133 else
10134 lt_cv_archive_cmds_need_lc=yes
10135 fi
10136 allow_undefined_flag=$lt_save_allow_undefined_flag
10137 else
10138 cat conftest.err 1>&5
10139 fi
10140 $RM conftest*
10141
10142fi
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10144$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10145 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d9898ee8 10146 ;;
10147 esac
10148 fi
10149 ;;
10150esac
10151
8d138742
CE
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
b0322a85 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
10304$as_echo_n "checking dynamic linker characteristics... " >&6; }
10305
d50284c4 10306if test yes = "$GCC"; then
8d138742 10307 case $host_os in
d50284c4
CE
10308 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10309 *) lt_awk_arg='/^libraries:/' ;;
8d138742 10310 esac
b0322a85 10311 case $host_os in
d50284c4
CE
10312 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10313 *) lt_sed_strip_eq='s|=/|/|g' ;;
b0322a85
CE
10314 esac
10315 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10316 case $lt_search_path_spec in
10317 *\;*)
8d138742
CE
10318 # if the path contains ";" then we assume it to be the separator
10319 # otherwise default to the standard path separator (i.e. ":") - it is
10320 # assumed that no part of a normal pathname contains ";" but that should
10321 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
10322 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10323 ;;
10324 *)
10325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10326 ;;
10327 esac
8d138742 10328 # Ok, now we have the path, separated by spaces, we can step through it
d50284c4 10329 # and add multilib dir if necessary...
8d138742 10330 lt_tmp_lt_search_path_spec=
d50284c4
CE
10331 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10332 # ...but if some path component already ends with the multilib dir we assume
10333 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10334 case "$lt_multi_os_dir; $lt_search_path_spec " in
10335 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10336 lt_multi_os_dir=
10337 ;;
10338 esac
8d138742 10339 for lt_sys_path in $lt_search_path_spec; do
d50284c4
CE
10340 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10341 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10342 elif test -n "$lt_multi_os_dir"; then
8d138742
CE
10343 test -d "$lt_sys_path" && \
10344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10345 fi
10346 done
b0322a85 10347 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d50284c4
CE
10348BEGIN {RS = " "; FS = "/|\n";} {
10349 lt_foo = "";
10350 lt_count = 0;
8d138742
CE
10351 for (lt_i = NF; lt_i > 0; lt_i--) {
10352 if ($lt_i != "" && $lt_i != ".") {
10353 if ($lt_i == "..") {
10354 lt_count++;
10355 } else {
10356 if (lt_count == 0) {
d50284c4 10357 lt_foo = "/" $lt_i lt_foo;
8d138742
CE
10358 } else {
10359 lt_count--;
10360 }
10361 }
10362 }
10363 }
10364 if (lt_foo != "") { lt_freq[lt_foo]++; }
10365 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10366}'`
b0322a85
CE
10367 # AWK program above erroneously prepends '/' to C:/dos/paths
10368 # for these hosts.
10369 case $host_os in
10370 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
d50284c4 10371 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
b0322a85
CE
10372 esac
10373 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
10374else
10375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10376fi
d9898ee8 10377library_names_spec=
10378libname_spec='lib$name'
10379soname_spec=
d50284c4 10380shrext_cmds=.so
d9898ee8 10381postinstall_cmds=
10382postuninstall_cmds=
10383finish_cmds=
10384finish_eval=
10385shlibpath_var=
10386shlibpath_overrides_runpath=unknown
10387version_type=none
10388dynamic_linker="$host_os ld.so"
10389sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 10390need_lib_prefix=unknown
10391hardcode_into_libs=no
10392
10393# when you set need_version to no, make sure it does not cause -set_version
10394# flags to be left without arguments
10395need_version=unknown
10396
d50284c4
CE
10397
10398
d9898ee8 10399case $host_os in
10400aix3*)
b0322a85 10401 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 10402 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d9898ee8 10403 shlibpath_var=LIBPATH
10404
10405 # AIX 3 has no versioning support, so we append a major version to the name.
d50284c4 10406 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10407 ;;
10408
8d138742 10409aix[4-9]*)
b0322a85 10410 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10411 need_lib_prefix=no
10412 need_version=no
10413 hardcode_into_libs=yes
d50284c4 10414 if test ia64 = "$host_cpu"; then
d9898ee8 10415 # AIX 5 supports IA64
d50284c4 10416 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d9898ee8 10417 shlibpath_var=LD_LIBRARY_PATH
10418 else
10419 # With GCC up to 2.95.x, collect2 would create an import file
10420 # for dependence libraries. The import file would start with
d50284c4
CE
10421 # the line '#! .'. This would cause the generated library to
10422 # depend on '.', always an invalid library. This was fixed in
d9898ee8 10423 # development snapshots of GCC prior to 3.0.
10424 case $host_os in
10425 aix4 | aix4.[01] | aix4.[01].*)
10426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10427 echo ' yes '
d50284c4 10428 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d9898ee8 10429 :
10430 else
10431 can_build_shared=no
10432 fi
10433 ;;
10434 esac
d50284c4
CE
10435 # Using Import Files as archive members, it is possible to support
10436 # filename-based versioning of shared library archives on AIX. While
10437 # this would work for both with and without runtime linking, it will
10438 # prevent static linking of such archives. So we do filename-based
10439 # shared library versioning with .so extension only, which is used
10440 # when both runtime linking and shared linking is enabled.
10441 # Unfortunately, runtime linking may impact performance, so we do
10442 # not want this to be the default eventually. Also, we use the
10443 # versioned .so libs for executables only if there is the -brtl
10444 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10445 # To allow for filename-based versioning support, we need to create
10446 # libNAME.so.V as an archive file, containing:
10447 # *) an Import File, referring to the versioned filename of the
10448 # archive as well as the shared archive member, telling the
10449 # bitwidth (32 or 64) of that shared object, and providing the
10450 # list of exported symbols of that shared object, eventually
10451 # decorated with the 'weak' keyword
10452 # *) the shared object with the F_LOADONLY flag set, to really avoid
10453 # it being seen by the linker.
10454 # At run time we better use the real file rather than another symlink,
10455 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10456
10457 case $with_aix_soname,$aix_use_runtimelinking in
10458 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d9898ee8 10459 # soname into executable. Probably we can add versioning support to
10460 # collect2, so additional links can be useful in future.
d50284c4
CE
10461 aix,yes) # traditional libtool
10462 dynamic_linker='AIX unversionable lib.so'
d9898ee8 10463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10464 # instead of lib<name>.a to let people know that these are not
10465 # typical AIX shared libraries.
d50284c4
CE
10466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10467 ;;
10468 aix,no) # traditional AIX only
10469 dynamic_linker='AIX lib.a(lib.so.V)'
d9898ee8 10470 # We preserve .a as extension for shared libraries through AIX4.2
10471 # and later when we are not doing run time linking.
d50284c4
CE
10472 library_names_spec='$libname$release.a $libname.a'
10473 soname_spec='$libname$release$shared_ext$major'
10474 ;;
10475 svr4,*) # full svr4 only
10476 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10477 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10478 # We do not specify a path in Import Files, so LIBPATH fires.
10479 shlibpath_overrides_runpath=yes
10480 ;;
10481 *,yes) # both, prefer svr4
10482 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10483 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10484 # unpreferred sharedlib libNAME.a needs extra handling
10485 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10486 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10487 # We do not specify a path in Import Files, so LIBPATH fires.
10488 shlibpath_overrides_runpath=yes
10489 ;;
10490 *,no) # both, prefer aix
10491 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10492 library_names_spec='$libname$release.a $libname.a'
10493 soname_spec='$libname$release$shared_ext$major'
10494 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10495 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10496 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10497 ;;
10498 esac
d9898ee8 10499 shlibpath_var=LIBPATH
10500 fi
10501 ;;
10502
10503amigaos*)
8d138742
CE
10504 case $host_cpu in
10505 powerpc)
10506 # Since July 2007 AmigaOS4 officially supports .so libraries.
10507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
d50284c4 10508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
10509 ;;
10510 m68k)
10511 library_names_spec='$libname.ixlibrary $libname.a'
10512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
d50284c4 10513 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8d138742
CE
10514 ;;
10515 esac
d9898ee8 10516 ;;
10517
10518beos*)
d50284c4 10519 library_names_spec='$libname$shared_ext'
d9898ee8 10520 dynamic_linker="$host_os ld.so"
10521 shlibpath_var=LIBRARY_PATH
10522 ;;
10523
10524bsdi[45]*)
b0322a85 10525 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10526 need_version=no
d50284c4
CE
10527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10528 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10533 # the default ld.so.conf also contains /usr/contrib/lib and
10534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10535 # libtool to hard-code these into programs
10536 ;;
10537
8d138742 10538cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 10539 version_type=windows
d50284c4 10540 shrext_cmds=.dll
d9898ee8 10541 need_version=no
10542 need_lib_prefix=no
10543
b0322a85
CE
10544 case $GCC,$cc_basename in
10545 yes,*)
10546 # gcc
d9898ee8 10547 library_names_spec='$libname.dll.a'
10548 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
10549 postinstall_cmds='base_file=`basename \$file`~
10550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d9898ee8 10551 dldir=$destdir/`dirname \$dlpath`~
10552 test -d \$dldir || mkdir -p \$dldir~
10553 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10554 chmod a+x \$dldir/$dlname~
10555 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10556 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10557 fi'
d9898ee8 10558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10559 dlpath=$dir/\$dldll~
8d138742 10560 $RM \$dlpath'
d9898ee8 10561 shlibpath_overrides_runpath=yes
10562
10563 case $host_os in
10564 cygwin*)
10565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
d50284c4 10566 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b0322a85
CE
10567
10568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 10569 ;;
8d138742 10570 mingw* | cegcc*)
d9898ee8 10571 # MinGW DLLs use traditional 'lib' prefix
d50284c4 10572 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 10573 ;;
10574 pw32*)
10575 # pw32 DLLs use 'pw' prefix rather than 'lib'
d50284c4 10576 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 10577 ;;
10578 esac
b0322a85
CE
10579 dynamic_linker='Win32 ld.exe'
10580 ;;
10581
10582 *,cl*)
10583 # Native MSVC
10584 libname_spec='$name'
d50284c4
CE
10585 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10586 library_names_spec='$libname.dll.lib'
b0322a85
CE
10587
10588 case $build_os in
10589 mingw*)
10590 sys_lib_search_path_spec=
10591 lt_save_ifs=$IFS
10592 IFS=';'
10593 for lt_path in $LIB
10594 do
10595 IFS=$lt_save_ifs
10596 # Let DOS variable expansion print the short 8.3 style file name.
10597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10599 done
10600 IFS=$lt_save_ifs
10601 # Convert to MSYS style.
10602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10603 ;;
10604 cygwin*)
10605 # Convert to unix form, then to dos form, then back to unix form
10606 # but this time dos style (no spaces!) so that the unix form looks
10607 # like /cygdrive/c/PROGRA~1:/cygdr...
10608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10611 ;;
10612 *)
d50284c4 10613 sys_lib_search_path_spec=$LIB
b0322a85
CE
10614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10615 # It is most probably a Windows format PATH.
10616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10617 else
10618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10619 fi
10620 # FIXME: find the short name or the path components, as spaces are
10621 # common. (e.g. "Program Files" -> "PROGRA~1")
10622 ;;
10623 esac
10624
10625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
10626 postinstall_cmds='base_file=`basename \$file`~
10627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
b0322a85
CE
10628 dldir=$destdir/`dirname \$dlpath`~
10629 test -d \$dldir || mkdir -p \$dldir~
10630 $install_prog $dir/$dlname \$dldir/$dlname'
10631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10632 dlpath=$dir/\$dldll~
10633 $RM \$dlpath'
10634 shlibpath_overrides_runpath=yes
10635 dynamic_linker='Win32 link.exe'
d9898ee8 10636 ;;
10637
10638 *)
b0322a85 10639 # Assume MSVC wrapper
d50284c4 10640 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
b0322a85 10641 dynamic_linker='Win32 ld.exe'
d9898ee8 10642 ;;
10643 esac
d9898ee8 10644 # FIXME: first we should search . and the directory the executable is in
10645 shlibpath_var=PATH
10646 ;;
10647
10648darwin* | rhapsody*)
10649 dynamic_linker="$host_os dyld"
10650 version_type=darwin
10651 need_lib_prefix=no
10652 need_version=no
d50284c4
CE
10653 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10654 soname_spec='$libname$release$major$shared_ext'
d9898ee8 10655 shlibpath_overrides_runpath=yes
10656 shlibpath_var=DYLD_LIBRARY_PATH
10657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10658
8d138742 10659 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10660 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10661 ;;
10662
10663dgux*)
b0322a85 10664 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10665 need_lib_prefix=no
10666 need_version=no
d50284c4
CE
10667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10668 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10669 shlibpath_var=LD_LIBRARY_PATH
10670 ;;
10671
d9898ee8 10672freebsd* | dragonfly*)
10673 # DragonFly does not have aout. When/if they implement a new
10674 # versioning mechanism, adjust this.
10675 if test -x /usr/bin/objformat; then
10676 objformat=`/usr/bin/objformat`
10677 else
10678 case $host_os in
b0322a85 10679 freebsd[23].*) objformat=aout ;;
d9898ee8 10680 *) objformat=elf ;;
10681 esac
10682 fi
10683 version_type=freebsd-$objformat
10684 case $version_type in
10685 freebsd-elf*)
d50284c4
CE
10686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10687 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10688 need_version=no
10689 need_lib_prefix=no
10690 ;;
10691 freebsd-*)
d50284c4 10692 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 10693 need_version=yes
10694 ;;
10695 esac
10696 shlibpath_var=LD_LIBRARY_PATH
10697 case $host_os in
b0322a85 10698 freebsd2.*)
d9898ee8 10699 shlibpath_overrides_runpath=yes
10700 ;;
10701 freebsd3.[01]* | freebsdelf3.[01]*)
10702 shlibpath_overrides_runpath=yes
10703 hardcode_into_libs=yes
10704 ;;
10705 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10706 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10707 shlibpath_overrides_runpath=no
10708 hardcode_into_libs=yes
10709 ;;
ac40fd9e 10710 *) # from 4.6 on, and DragonFly
d9898ee8 10711 shlibpath_overrides_runpath=yes
10712 hardcode_into_libs=yes
10713 ;;
10714 esac
10715 ;;
10716
b0322a85
CE
10717haiku*)
10718 version_type=linux # correct to gnu/linux during the next big refactor
10719 need_lib_prefix=no
10720 need_version=no
10721 dynamic_linker="$host_os runtime_loader"
d50284c4
CE
10722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10723 soname_spec='$libname$release$shared_ext$major'
b0322a85 10724 shlibpath_var=LIBRARY_PATH
d50284c4 10725 shlibpath_overrides_runpath=no
b0322a85 10726 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 10727 hardcode_into_libs=yes
10728 ;;
10729
10730hpux9* | hpux10* | hpux11*)
10731 # Give a soname corresponding to the major version so that dld.sl refuses to
10732 # link against other versions.
10733 version_type=sunos
10734 need_lib_prefix=no
10735 need_version=no
10736 case $host_cpu in
10737 ia64*)
10738 shrext_cmds='.so'
10739 hardcode_into_libs=yes
10740 dynamic_linker="$host_os dld.so"
10741 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744 soname_spec='$libname$release$shared_ext$major'
10745 if test 32 = "$HPUX_IA64_MODE"; then
d9898ee8 10746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
d50284c4 10747 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
d9898ee8 10748 else
10749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
d50284c4 10750 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d9898ee8 10751 fi
d9898ee8 10752 ;;
8d138742
CE
10753 hppa*64*)
10754 shrext_cmds='.sl'
10755 hardcode_into_libs=yes
10756 dynamic_linker="$host_os dld.sl"
10757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
10759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10760 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
10761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10763 ;;
10764 *)
d9898ee8 10765 shrext_cmds='.sl'
10766 dynamic_linker="$host_os dld.sl"
10767 shlibpath_var=SHLIB_PATH
10768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
d50284c4
CE
10769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10770 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10771 ;;
10772 esac
b0322a85 10773 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 10774 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
10775 # or fails outright, so override atomically:
10776 install_override_mode=555
d9898ee8 10777 ;;
10778
ac40fd9e 10779interix[3-9]*)
b0322a85 10780 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10781 need_lib_prefix=no
10782 need_version=no
d50284c4
CE
10783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10784 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10785 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10789 ;;
10790
10791irix5* | irix6* | nonstopux*)
10792 case $host_os in
10793 nonstopux*) version_type=nonstopux ;;
10794 *)
d50284c4 10795 if test yes = "$lt_cv_prog_gnu_ld"; then
b0322a85 10796 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10797 else
10798 version_type=irix
10799 fi ;;
10800 esac
10801 need_lib_prefix=no
10802 need_version=no
d50284c4
CE
10803 soname_spec='$libname$release$shared_ext$major'
10804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d9898ee8 10805 case $host_os in
10806 irix5* | nonstopux*)
10807 libsuff= shlibsuff=
10808 ;;
10809 *)
10810 case $LD in # libtool.m4 will add one of these switches to LD
10811 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10812 libsuff= shlibsuff= libmagic=32-bit;;
10813 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10814 libsuff=32 shlibsuff=N32 libmagic=N32;;
10815 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10816 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10817 *) libsuff= shlibsuff= libmagic=never-match;;
10818 esac
10819 ;;
10820 esac
10821 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10822 shlibpath_overrides_runpath=no
d50284c4
CE
10823 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10824 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d9898ee8 10825 hardcode_into_libs=yes
10826 ;;
10827
10828# No shared lib support for Linux oldld, aout, or coff.
10829linux*oldld* | linux*aout* | linux*coff*)
10830 dynamic_linker=no
10831 ;;
10832
d50284c4
CE
10833linux*android*)
10834 version_type=none # Android doesn't support versioned libraries.
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='$libname$release$shared_ext'
10838 soname_spec='$libname$release$shared_ext'
10839 finish_cmds=
10840 shlibpath_var=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath=yes
10842
10843 # This implies no fast_install, which is unacceptable.
10844 # Some rework will be needed to allow for fast_install
10845 # before this can be enabled.
10846 hardcode_into_libs=yes
10847
10848 dynamic_linker='Android linker'
10849 # Don't embed -rpath directories since the linker doesn't support them.
10850 hardcode_libdir_flag_spec='-L$libdir'
10851 ;;
10852
b0322a85 10853# This must be glibc/ELF.
d50284c4 10854linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b0322a85 10855 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10856 need_lib_prefix=no
10857 need_version=no
d50284c4
CE
10858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10859 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=no
b0322a85 10863
8d138742 10864 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
10865 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10866 $as_echo_n "(cached) " >&6
10867else
10868 lt_cv_shlibpath_overrides_runpath=no
10869 save_LDFLAGS=$LDFLAGS
10870 save_libdir=$libdir
10871 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10872 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10874/* end confdefs.h. */
10875
10876int
10877main ()
10878{
10879
10880 ;
10881 return 0;
10882}
10883_ACEOF
b0322a85
CE
10884if ac_fn_c_try_link "$LINENO"; then :
10885 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10886 lt_cv_shlibpath_overrides_runpath=yes
8d138742 10887fi
b0322a85
CE
10888fi
10889rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS=$save_LDFLAGS
10892 libdir=$save_libdir
8d138742
CE
10893
10894fi
10895
b0322a85 10896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 10897
d9898ee8 10898 # This implies no fast_install, which is unacceptable.
10899 # Some rework will be needed to allow for fast_install
10900 # before this can be enabled.
10901 hardcode_into_libs=yes
8d138742
CE
10902
10903 # Add ABI-specific directories to the system library path.
10904 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 10905
d50284c4
CE
10906 # Ideally, we could use ldconfig to report *all* directores which are
10907 # searched for libraries, however this is still not possible. Aside from not
10908 # being certain /sbin/ldconfig is available, command
10909 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10910 # even though it is searched at run-time. Try to do the best guess by
10911 # appending ld.so.conf contents (and includes) to the search path.
d9898ee8 10912 if test -f /etc/ld.so.conf; then
b0322a85 10913 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
ac40fd9e 10914 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 10915 fi
10916
10917 # We used to test for /lib/ld.so.1 and disable shared libraries on
10918 # powerpc, because MkLinux only supported shared libraries with the
10919 # GNU dynamic linker. Since this was broken with cross compilers,
10920 # most powerpc-linux boxes support dynamic linking these days and
10921 # people can always --disable-shared, the test was removed, and we
10922 # assume the GNU/Linux dynamic linker is in use.
10923 dynamic_linker='GNU/Linux ld.so'
10924 ;;
10925
d9898ee8 10926netbsd*)
10927 version_type=sunos
10928 need_lib_prefix=no
10929 need_version=no
8d138742 10930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d50284c4 10931 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 10932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10933 dynamic_linker='NetBSD (a.out) ld.so'
10934 else
d50284c4
CE
10935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10936 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10937 dynamic_linker='NetBSD ld.elf_so'
10938 fi
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes
10941 hardcode_into_libs=yes
10942 ;;
10943
10944newsos6)
b0322a85 10945 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=yes
10949 ;;
10950
8d138742
CE
10951*nto* | *qnx*)
10952 version_type=qnx
d9898ee8 10953 need_lib_prefix=no
10954 need_version=no
d50284c4
CE
10955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10956 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10957 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
10958 shlibpath_overrides_runpath=no
10959 hardcode_into_libs=yes
10960 dynamic_linker='ldqnx.so'
d9898ee8 10961 ;;
10962
d50284c4 10963openbsd* | bitrig*)
d9898ee8 10964 version_type=sunos
d50284c4 10965 sys_lib_dlsearch_path_spec=/usr/lib
d9898ee8 10966 need_lib_prefix=no
d50284c4
CE
10967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10968 need_version=no
d9898ee8 10969 else
d50284c4 10970 need_version=yes
d9898ee8 10971 fi
d50284c4
CE
10972 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
d9898ee8 10976 ;;
10977
10978os2*)
10979 libname_spec='$name'
d50284c4
CE
10980 version_type=windows
10981 shrext_cmds=.dll
10982 need_version=no
d9898ee8 10983 need_lib_prefix=no
d50284c4
CE
10984 # OS/2 can only load a DLL with a base name of 8 characters or less.
10985 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10986 v=$($ECHO $release$versuffix | tr -d .-);
10987 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10988 $ECHO $n$v`$shared_ext'
10989 library_names_spec='${libname}_dll.$libext'
d9898ee8 10990 dynamic_linker='OS/2 ld.exe'
d50284c4
CE
10991 shlibpath_var=BEGINLIBPATH
10992 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10994 postinstall_cmds='base_file=`basename \$file`~
10995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10996 dldir=$destdir/`dirname \$dlpath`~
10997 test -d \$dldir || mkdir -p \$dldir~
10998 $install_prog $dir/$dlname \$dldir/$dlname~
10999 chmod a+x \$dldir/$dlname~
11000 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11001 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11002 fi'
11003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11004 dlpath=$dir/\$dldll~
11005 $RM \$dlpath'
d9898ee8 11006 ;;
11007
11008osf3* | osf4* | osf5*)
11009 version_type=osf
11010 need_lib_prefix=no
11011 need_version=no
d50284c4
CE
11012 soname_spec='$libname$release$shared_ext$major'
11013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 11014 shlibpath_var=LD_LIBRARY_PATH
11015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
d50284c4 11016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d9898ee8 11017 ;;
11018
ac40fd9e 11019rdos*)
11020 dynamic_linker=no
11021 ;;
11022
d9898ee8 11023solaris*)
b0322a85 11024 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11025 need_lib_prefix=no
11026 need_version=no
d50284c4
CE
11027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11028 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=yes
11031 hardcode_into_libs=yes
11032 # ldd complains unless libraries are executable
11033 postinstall_cmds='chmod +x $lib'
11034 ;;
11035
11036sunos4*)
11037 version_type=sunos
d50284c4 11038 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 11039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=yes
d50284c4 11042 if test yes = "$with_gnu_ld"; then
d9898ee8 11043 need_lib_prefix=no
11044 fi
11045 need_version=yes
11046 ;;
11047
11048sysv4 | sysv4.3*)
b0322a85 11049 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11051 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11052 shlibpath_var=LD_LIBRARY_PATH
11053 case $host_vendor in
11054 sni)
11055 shlibpath_overrides_runpath=no
11056 need_lib_prefix=no
d9898ee8 11057 runpath_var=LD_RUN_PATH
11058 ;;
11059 siemens)
11060 need_lib_prefix=no
11061 ;;
11062 motorola)
11063 need_lib_prefix=no
11064 need_version=no
11065 shlibpath_overrides_runpath=no
11066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11067 ;;
11068 esac
11069 ;;
11070
8d138742 11071sysv4*MP*)
d50284c4 11072 if test -d /usr/nec; then
b0322a85 11073 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11074 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11075 soname_spec='$libname$shared_ext.$major'
8d138742
CE
11076 shlibpath_var=LD_LIBRARY_PATH
11077 fi
11078 ;;
11079
11080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
d50284c4 11081 version_type=sco
8d138742
CE
11082 need_lib_prefix=no
11083 need_version=no
d50284c4
CE
11084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11085 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
d50284c4 11089 if test yes = "$with_gnu_ld"; then
8d138742
CE
11090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11091 else
11092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11093 case $host_os in
11094 sco3.2v5*)
11095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11096 ;;
11097 esac
11098 fi
11099 sys_lib_dlsearch_path_spec='/usr/lib'
11100 ;;
11101
11102tpf*)
11103 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 11104 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11105 need_lib_prefix=no
11106 need_version=no
d50284c4 11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11111 ;;
11112
11113uts4*)
b0322a85 11114 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11116 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
11117 shlibpath_var=LD_LIBRARY_PATH
11118 ;;
11119
11120*)
11121 dynamic_linker=no
11122 ;;
11123esac
b0322a85 11124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 11125$as_echo "$dynamic_linker" >&6; }
d50284c4 11126test no = "$dynamic_linker" && can_build_shared=no
8d138742
CE
11127
11128variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
d50284c4 11129if test yes = "$GCC"; then
8d138742
CE
11130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11131fi
11132
d50284c4
CE
11133if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11134 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
8d138742 11135fi
d50284c4
CE
11136
11137if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11138 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
8d138742
CE
11139fi
11140
d50284c4
CE
11141# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11142configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11143
11144# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11145func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11146
11147# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11148configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11149
11150
11151
11152
11153
11154
8d138742
CE
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
d9898ee8 11236
d9898ee8 11237
d9898ee8 11238
d9898ee8 11239
d9898ee8 11240
b0322a85
CE
11241
11242
11243
11244
11245
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
11247$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11248hardcode_action=
11249if test -n "$hardcode_libdir_flag_spec" ||
11250 test -n "$runpath_var" ||
d50284c4 11251 test yes = "$hardcode_automatic"; then
d9898ee8 11252
8d138742 11253 # We can hardcode non-existent directories.
d50284c4 11254 if test no != "$hardcode_direct" &&
d9898ee8 11255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11256 # have to relink, otherwise we might link with an installed library
11257 # when we should be linking with a yet-to-be-installed one
d50284c4
CE
11258 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11259 test no != "$hardcode_minus_L"; then
d9898ee8 11260 # Linking always hardcodes the temporary library directory.
8d138742 11261 hardcode_action=relink
d9898ee8 11262 else
11263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8d138742 11264 hardcode_action=immediate
d9898ee8 11265 fi
11266else
11267 # We cannot hardcode anything, or else we can only hardcode existing
11268 # directories.
8d138742 11269 hardcode_action=unsupported
d9898ee8 11270fi
b0322a85 11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742 11272$as_echo "$hardcode_action" >&6; }
d9898ee8 11273
d50284c4
CE
11274if test relink = "$hardcode_action" ||
11275 test yes = "$inherit_rpath"; then
d9898ee8 11276 # Fast installation is not supported
11277 enable_fast_install=no
d50284c4
CE
11278elif test yes = "$shlibpath_overrides_runpath" ||
11279 test no = "$enable_shared"; then
d9898ee8 11280 # Fast installation is not necessary
11281 enable_fast_install=needless
11282fi
11283
11284
d9898ee8 11285
d9898ee8 11286
d9898ee8 11287
d9898ee8 11288
d50284c4 11289 if test yes != "$enable_dlopen"; then
8d138742
CE
11290 enable_dlopen=unknown
11291 enable_dlopen_self=unknown
11292 enable_dlopen_self_static=unknown
11293else
11294 lt_cv_dlopen=no
11295 lt_cv_dlopen_libs=
d9898ee8 11296
8d138742
CE
11297 case $host_os in
11298 beos*)
d50284c4 11299 lt_cv_dlopen=load_add_on
8d138742
CE
11300 lt_cv_dlopen_libs=
11301 lt_cv_dlopen_self=yes
11302 ;;
d9898ee8 11303
8d138742 11304 mingw* | pw32* | cegcc*)
d50284c4 11305 lt_cv_dlopen=LoadLibrary
8d138742
CE
11306 lt_cv_dlopen_libs=
11307 ;;
d9898ee8 11308
8d138742 11309 cygwin*)
d50284c4 11310 lt_cv_dlopen=dlopen
8d138742
CE
11311 lt_cv_dlopen_libs=
11312 ;;
d9898ee8 11313
8d138742 11314 darwin*)
d50284c4 11315 # if libdl is installed we need to link against it
b0322a85 11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 11317$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 11318if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
11319 $as_echo_n "(cached) " >&6
11320else
11321 ac_check_lib_save_LIBS=$LIBS
11322LIBS="-ldl $LIBS"
b0322a85 11323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11324/* end confdefs.h. */
d9898ee8 11325
8d138742
CE
11326/* Override any GCC internal prototype to avoid an error.
11327 Use char because int might match the return type of a GCC
11328 builtin and then its argument prototype would still apply. */
11329#ifdef __cplusplus
11330extern "C"
11331#endif
11332char dlopen ();
11333int
11334main ()
11335{
11336return dlopen ();
11337 ;
11338 return 0;
11339}
11340_ACEOF
b0322a85 11341if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11342 ac_cv_lib_dl_dlopen=yes
11343else
b0322a85 11344 ac_cv_lib_dl_dlopen=no
8d138742 11345fi
b0322a85
CE
11346rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11348LIBS=$ac_check_lib_save_LIBS
11349fi
b0322a85 11350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 11351$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 11352if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 11353 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 11354else
d9898ee8 11355
d50284c4 11356 lt_cv_dlopen=dyld
8d138742 11357 lt_cv_dlopen_libs=
b0322a85 11358 lt_cv_dlopen_self=yes
d9898ee8 11359
8d138742 11360fi
d9898ee8 11361
b0322a85
CE
11362 ;;
11363
d50284c4
CE
11364 tpf*)
11365 # Don't try to run any link tests for TPF. We know it's impossible
11366 # because TPF is a cross-compiler, and we know how we open DSOs.
11367 lt_cv_dlopen=dlopen
11368 lt_cv_dlopen_libs=
11369 lt_cv_dlopen_self=no
11370 ;;
11371
b0322a85
CE
11372 *)
11373 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11374if test "x$ac_cv_func_shl_load" = xyes; then :
d50284c4 11375 lt_cv_dlopen=shl_load
8d138742 11376else
b0322a85
CE
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11378$as_echo_n "checking for shl_load in -ldld... " >&6; }
11379if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
11380 $as_echo_n "(cached) " >&6
11381else
b0322a85
CE
11382 ac_check_lib_save_LIBS=$LIBS
11383LIBS="-ldld $LIBS"
11384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11385/* end confdefs.h. */
d9898ee8 11386
8d138742
CE
11387/* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390#ifdef __cplusplus
11391extern "C"
11392#endif
b0322a85 11393char shl_load ();
8d138742
CE
11394int
11395main ()
11396{
b0322a85 11397return shl_load ();
8d138742
CE
11398 ;
11399 return 0;
11400}
11401_ACEOF
b0322a85
CE
11402if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_dld_shl_load=yes
8d138742 11404else
b0322a85 11405 ac_cv_lib_dld_shl_load=no
8d138742 11406fi
b0322a85
CE
11407rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409LIBS=$ac_check_lib_save_LIBS
8d138742 11410fi
b0322a85
CE
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11412$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11413if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d50284c4 11414 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
b0322a85
CE
11415else
11416 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11417if test "x$ac_cv_func_dlopen" = xyes; then :
d50284c4 11418 lt_cv_dlopen=dlopen
8d138742 11419else
b0322a85 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 11421$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 11422if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
11423 $as_echo_n "(cached) " >&6
11424else
11425 ac_check_lib_save_LIBS=$LIBS
11426LIBS="-ldl $LIBS"
b0322a85 11427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11428/* end confdefs.h. */
d9898ee8 11429
8d138742
CE
11430/* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11433#ifdef __cplusplus
11434extern "C"
11435#endif
11436char dlopen ();
11437int
11438main ()
11439{
11440return dlopen ();
11441 ;
11442 return 0;
11443}
11444_ACEOF
b0322a85 11445if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11446 ac_cv_lib_dl_dlopen=yes
11447else
b0322a85 11448 ac_cv_lib_dl_dlopen=no
8d138742 11449fi
b0322a85
CE
11450rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11452LIBS=$ac_check_lib_save_LIBS
11453fi
b0322a85 11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 11455$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 11456if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 11457 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 11458else
b0322a85 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 11460$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 11461if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
11462 $as_echo_n "(cached) " >&6
11463else
11464 ac_check_lib_save_LIBS=$LIBS
11465LIBS="-lsvld $LIBS"
b0322a85 11466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11467/* end confdefs.h. */
d9898ee8 11468
8d138742
CE
11469/* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11472#ifdef __cplusplus
11473extern "C"
11474#endif
11475char dlopen ();
11476int
11477main ()
11478{
11479return dlopen ();
11480 ;
11481 return 0;
11482}
11483_ACEOF
b0322a85 11484if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11485 ac_cv_lib_svld_dlopen=yes
11486else
b0322a85 11487 ac_cv_lib_svld_dlopen=no
8d138742 11488fi
b0322a85
CE
11489rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11491LIBS=$ac_check_lib_save_LIBS
11492fi
b0322a85 11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 11494$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 11495if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d50284c4 11496 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
8d138742 11497else
b0322a85 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 11499$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 11500if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
11501 $as_echo_n "(cached) " >&6
11502else
11503 ac_check_lib_save_LIBS=$LIBS
11504LIBS="-ldld $LIBS"
b0322a85 11505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11506/* end confdefs.h. */
d9898ee8 11507
8d138742
CE
11508/* Override any GCC internal prototype to avoid an error.
11509 Use char because int might match the return type of a GCC
11510 builtin and then its argument prototype would still apply. */
11511#ifdef __cplusplus
11512extern "C"
11513#endif
11514char dld_link ();
11515int
11516main ()
11517{
11518return dld_link ();
11519 ;
11520 return 0;
11521}
11522_ACEOF
b0322a85 11523if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11524 ac_cv_lib_dld_dld_link=yes
11525else
b0322a85 11526 ac_cv_lib_dld_dld_link=no
8d138742 11527fi
b0322a85
CE
11528rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11530LIBS=$ac_check_lib_save_LIBS
11531fi
b0322a85 11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 11533$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 11534if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d50284c4 11535 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
8d138742 11536fi
d9898ee8 11537
d9898ee8 11538
8d138742 11539fi
d9898ee8 11540
d9898ee8 11541
8d138742 11542fi
d9898ee8 11543
d9898ee8 11544
8d138742 11545fi
d9898ee8 11546
d9898ee8 11547
8d138742 11548fi
d9898ee8 11549
d9898ee8 11550
8d138742 11551fi
d9898ee8 11552
8d138742
CE
11553 ;;
11554 esac
d9898ee8 11555
d50284c4 11556 if test no = "$lt_cv_dlopen"; then
8d138742 11557 enable_dlopen=no
d50284c4
CE
11558 else
11559 enable_dlopen=yes
8d138742 11560 fi
d9898ee8 11561
8d138742
CE
11562 case $lt_cv_dlopen in
11563 dlopen)
d50284c4
CE
11564 save_CPPFLAGS=$CPPFLAGS
11565 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11566
d50284c4 11567 save_LDFLAGS=$LDFLAGS
8d138742 11568 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11569
d50284c4 11570 save_LIBS=$LIBS
8d138742 11571 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11572
b0322a85 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 11574$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 11575if ${lt_cv_dlopen_self+:} false; then :
8d138742
CE
11576 $as_echo_n "(cached) " >&6
11577else
d50284c4 11578 if test yes = "$cross_compiling"; then :
8d138742
CE
11579 lt_cv_dlopen_self=cross
11580else
11581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11582 lt_status=$lt_dlunknown
11583 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11584#line $LINENO "configure"
8d138742 11585#include "confdefs.h"
d9898ee8 11586
8d138742
CE
11587#if HAVE_DLFCN_H
11588#include <dlfcn.h>
11589#endif
d9898ee8 11590
8d138742 11591#include <stdio.h>
d9898ee8 11592
8d138742
CE
11593#ifdef RTLD_GLOBAL
11594# define LT_DLGLOBAL RTLD_GLOBAL
11595#else
11596# ifdef DL_GLOBAL
11597# define LT_DLGLOBAL DL_GLOBAL
11598# else
11599# define LT_DLGLOBAL 0
11600# endif
11601#endif
d9898ee8 11602
8d138742
CE
11603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11604 find out it does not work in some platform. */
11605#ifndef LT_DLLAZY_OR_NOW
11606# ifdef RTLD_LAZY
11607# define LT_DLLAZY_OR_NOW RTLD_LAZY
11608# else
11609# ifdef DL_LAZY
11610# define LT_DLLAZY_OR_NOW DL_LAZY
11611# else
11612# ifdef RTLD_NOW
11613# define LT_DLLAZY_OR_NOW RTLD_NOW
11614# else
11615# ifdef DL_NOW
11616# define LT_DLLAZY_OR_NOW DL_NOW
11617# else
11618# define LT_DLLAZY_OR_NOW 0
11619# endif
11620# endif
11621# endif
11622# endif
11623#endif
d9898ee8 11624
d50284c4 11625/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 11626 correspondingly for the symbols needed. */
d50284c4 11627#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
11628int fnord () __attribute__((visibility("default")));
11629#endif
11630
11631int fnord () { return 42; }
8d138742
CE
11632int main ()
11633{
11634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11635 int status = $lt_dlunknown;
d9898ee8 11636
8d138742
CE
11637 if (self)
11638 {
11639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11640 else
11641 {
11642 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11643 else puts (dlerror ());
11644 }
8d138742
CE
11645 /* dlclose (self); */
11646 }
11647 else
11648 puts (dlerror ());
d9898ee8 11649
8d138742
CE
11650 return status;
11651}
11652_LT_EOF
b0322a85 11653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11654 (eval $ac_link) 2>&5
11655 ac_status=$?
b0322a85 11656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 11657 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
11658 (./conftest; exit; ) >&5 2>/dev/null
11659 lt_status=$?
11660 case x$lt_status in
11661 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11662 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11663 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11664 esac
11665 else :
11666 # compilation failed
11667 lt_cv_dlopen_self=no
11668 fi
11669fi
11670rm -fr conftest*
d9898ee8 11671
d9898ee8 11672
8d138742 11673fi
b0322a85 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 11675$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11676
d50284c4 11677 if test yes = "$lt_cv_dlopen_self"; then
8d138742 11678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 11680$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 11681if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
11682 $as_echo_n "(cached) " >&6
11683else
d50284c4 11684 if test yes = "$cross_compiling"; then :
8d138742
CE
11685 lt_cv_dlopen_self_static=cross
11686else
11687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11688 lt_status=$lt_dlunknown
11689 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11690#line $LINENO "configure"
8d138742 11691#include "confdefs.h"
d9898ee8 11692
8d138742
CE
11693#if HAVE_DLFCN_H
11694#include <dlfcn.h>
11695#endif
d9898ee8 11696
8d138742 11697#include <stdio.h>
d9898ee8 11698
8d138742
CE
11699#ifdef RTLD_GLOBAL
11700# define LT_DLGLOBAL RTLD_GLOBAL
11701#else
11702# ifdef DL_GLOBAL
11703# define LT_DLGLOBAL DL_GLOBAL
11704# else
11705# define LT_DLGLOBAL 0
11706# endif
11707#endif
d9898ee8 11708
8d138742
CE
11709/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11710 find out it does not work in some platform. */
11711#ifndef LT_DLLAZY_OR_NOW
11712# ifdef RTLD_LAZY
11713# define LT_DLLAZY_OR_NOW RTLD_LAZY
11714# else
11715# ifdef DL_LAZY
11716# define LT_DLLAZY_OR_NOW DL_LAZY
11717# else
11718# ifdef RTLD_NOW
11719# define LT_DLLAZY_OR_NOW RTLD_NOW
11720# else
11721# ifdef DL_NOW
11722# define LT_DLLAZY_OR_NOW DL_NOW
11723# else
11724# define LT_DLLAZY_OR_NOW 0
11725# endif
11726# endif
11727# endif
11728# endif
11729#endif
d9898ee8 11730
d50284c4 11731/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 11732 correspondingly for the symbols needed. */
d50284c4 11733#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
11734int fnord () __attribute__((visibility("default")));
11735#endif
11736
11737int fnord () { return 42; }
8d138742
CE
11738int main ()
11739{
11740 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11741 int status = $lt_dlunknown;
d9898ee8 11742
8d138742
CE
11743 if (self)
11744 {
11745 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11746 else
11747 {
11748 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11749 else puts (dlerror ());
11750 }
8d138742
CE
11751 /* dlclose (self); */
11752 }
11753 else
11754 puts (dlerror ());
d9898ee8 11755
8d138742
CE
11756 return status;
11757}
11758_LT_EOF
b0322a85 11759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11760 (eval $ac_link) 2>&5
11761 ac_status=$?
b0322a85 11762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 11763 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
11764 (./conftest; exit; ) >&5 2>/dev/null
11765 lt_status=$?
11766 case x$lt_status in
11767 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11768 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11769 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11770 esac
11771 else :
11772 # compilation failed
11773 lt_cv_dlopen_self_static=no
11774 fi
11775fi
11776rm -fr conftest*
d9898ee8 11777
d9898ee8 11778
8d138742 11779fi
b0322a85 11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
11781$as_echo "$lt_cv_dlopen_self_static" >&6; }
11782 fi
d9898ee8 11783
d50284c4
CE
11784 CPPFLAGS=$save_CPPFLAGS
11785 LDFLAGS=$save_LDFLAGS
11786 LIBS=$save_LIBS
8d138742
CE
11787 ;;
11788 esac
d9898ee8 11789
8d138742
CE
11790 case $lt_cv_dlopen_self in
11791 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11792 *) enable_dlopen_self=unknown ;;
11793 esac
d9898ee8 11794
8d138742
CE
11795 case $lt_cv_dlopen_self_static in
11796 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11797 *) enable_dlopen_self_static=unknown ;;
11798 esac
11799fi
d9898ee8 11800
d9898ee8 11801
d9898ee8 11802
d9898ee8 11803
d9898ee8 11804
d9898ee8 11805
d9898ee8 11806
d9898ee8 11807
d9898ee8 11808
d9898ee8 11809
d9898ee8 11810
11811
d9898ee8 11812
11813
d9898ee8 11814
d9898ee8 11815
d9898ee8 11816
8d138742
CE
11817striplib=
11818old_striplib=
b0322a85 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
11820$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11821if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11822 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11823 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11825$as_echo "yes" >&6; }
11826else
11827# FIXME - insert some real tests, host_os isn't really good enough
11828 case $host_os in
11829 darwin*)
d50284c4 11830 if test -n "$STRIP"; then
8d138742
CE
11831 striplib="$STRIP -x"
11832 old_striplib="$STRIP -S"
b0322a85 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11834$as_echo "yes" >&6; }
11835 else
b0322a85 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11837$as_echo "no" >&6; }
11838 fi
11839 ;;
11840 *)
b0322a85 11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11842$as_echo "no" >&6; }
11843 ;;
11844 esac
11845fi
d9898ee8 11846
11847
d9898ee8 11848
d9898ee8 11849
d9898ee8 11850
d9898ee8 11851
d9898ee8 11852
d9898ee8 11853
d9898ee8 11854
d9898ee8 11855
11856
d9898ee8 11857
d50284c4 11858 # Report what library types will actually be built
b0322a85 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 11860$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 11862$as_echo "$can_build_shared" >&6; }
d9898ee8 11863
b0322a85 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742 11865$as_echo_n "checking whether to build shared libraries... " >&6; }
d50284c4 11866 test no = "$can_build_shared" && enable_shared=no
d9898ee8 11867
8d138742
CE
11868 # On AIX, shared libraries and static libraries use the same namespace, and
11869 # are all built from PIC.
11870 case $host_os in
11871 aix3*)
d50284c4 11872 test yes = "$enable_shared" && enable_static=no
8d138742
CE
11873 if test -n "$RANLIB"; then
11874 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11875 postinstall_cmds='$RANLIB $lib'
11876 fi
11877 ;;
d9898ee8 11878
8d138742 11879 aix[4-9]*)
d50284c4
CE
11880 if test ia64 != "$host_cpu"; then
11881 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11882 yes,aix,yes) ;; # shared object as lib.so file only
11883 yes,svr4,*) ;; # shared object as lib.so archive member only
11884 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11885 esac
8d138742 11886 fi
d9898ee8 11887 ;;
11888 esac
b0322a85 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742 11890$as_echo "$enable_shared" >&6; }
d9898ee8 11891
b0322a85 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
11893$as_echo_n "checking whether to build static libraries... " >&6; }
11894 # Make sure either enable_shared or enable_static is yes.
d50284c4 11895 test yes = "$enable_shared" || enable_static=yes
b0322a85 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 11897$as_echo "$enable_static" >&6; }
d9898ee8 11898
d9898ee8 11899
d9898ee8 11900
d9898ee8 11901
8d138742
CE
11902fi
11903ac_ext=c
11904ac_cpp='$CPP $CPPFLAGS'
11905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11908
d50284c4 11909CC=$lt_save_CC
d9898ee8 11910
d9898ee8 11911
d9898ee8 11912
d9898ee8 11913
d9898ee8 11914
d9898ee8 11915
d9898ee8 11916
d9898ee8 11917
d9898ee8 11918
d9898ee8 11919
d9898ee8 11920
d9898ee8 11921
d9898ee8 11922
b0322a85
CE
11923
11924
8d138742 11925 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11926
d9898ee8 11927
d9898ee8 11928
d9898ee8 11929
8d138742 11930# Only expand once:
d9898ee8 11931
d9898ee8 11932
d9898ee8 11933
8d138742
CE
11934if test x$GCC = xyes
11935then
11936 CFLAGS="-Wall $CFLAGS"
11937fi
11938if test x$GXX = xyes
11939then
11940 CXXFLAGS="-Wall $CXXFLAGS"
11941fi
d9898ee8 11942
b0322a85
CE
11943CFLAGS="-I../libs -I$srcdir/../libs $CFLAGS"
11944CXXFLAGS="-I../libs -I$srcdir/../libs $CXXFLAGS"
11945
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8d138742 11947$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b0322a85 11948if ${ac_cv_c_const+:} false; then :
8d138742
CE
11949 $as_echo_n "(cached) " >&6
11950else
b0322a85 11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11952/* end confdefs.h. */
d9898ee8 11953
8d138742
CE
11954int
11955main ()
11956{
b0322a85 11957
8d138742 11958#ifndef __cplusplus
b0322a85 11959 /* Ultrix mips cc rejects this sort of thing. */
8d138742 11960 typedef int charset[2];
b0322a85 11961 const charset cs = { 0, 0 };
8d138742
CE
11962 /* SunOS 4.1.1 cc rejects this. */
11963 char const *const *pcpcc;
11964 char **ppc;
11965 /* NEC SVR4.0.2 mips cc rejects this. */
11966 struct point {int x, y;};
11967 static struct point const zero = {0,0};
11968 /* AIX XL C 1.02.0.0 rejects this.
11969 It does not let you subtract one const X* pointer from another in
11970 an arm of an if-expression whose if-part is not a constant
11971 expression */
11972 const char *g = "string";
11973 pcpcc = &g + (g ? g-g : 0);
11974 /* HPUX 7.0 cc rejects these. */
11975 ++pcpcc;
11976 ppc = (char**) pcpcc;
11977 pcpcc = (char const *const *) ppc;
b0322a85
CE
11978 { /* SCO 3.2v4 cc rejects this sort of thing. */
11979 char tx;
11980 char *t = &tx;
8d138742 11981 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 11982
8d138742
CE
11983 *t++ = 0;
11984 if (s) return 0;
11985 }
11986 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11987 int x[] = {25, 17};
11988 const int *foo = &x[0];
11989 ++foo;
11990 }
11991 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11992 typedef const int *iptr;
11993 iptr p = 0;
11994 ++p;
11995 }
b0322a85 11996 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8d138742 11997 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
b0322a85
CE
11998 struct s { int j; const int *ap[3]; } bx;
11999 struct s *b = &bx; b->j = 5;
8d138742
CE
12000 }
12001 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12002 const int foo = 10;
12003 if (!foo) return 0;
12004 }
12005 return !cs[0] && !zero.x;
12006#endif
d9898ee8 12007
8d138742
CE
12008 ;
12009 return 0;
12010}
12011_ACEOF
b0322a85 12012if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
12013 ac_cv_c_const=yes
12014else
b0322a85 12015 ac_cv_c_const=no
8d138742 12016fi
8d138742
CE
12017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12018fi
b0322a85 12019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8d138742
CE
12020$as_echo "$ac_cv_c_const" >&6; }
12021if test $ac_cv_c_const = no; then
d9898ee8 12022
b0322a85 12023$as_echo "#define const /**/" >>confdefs.h
d9898ee8 12024
8d138742
CE
12025fi
12026
b0322a85 12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 12028$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 12029if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
12030 $as_echo_n "(cached) " >&6
12031else
b0322a85 12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12033/* end confdefs.h. */
12034#include <stdlib.h>
12035#include <stdarg.h>
12036#include <string.h>
12037#include <float.h>
12038
12039int
12040main ()
12041{
12042
12043 ;
12044 return 0;
12045}
12046_ACEOF
b0322a85 12047if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
12048 ac_cv_header_stdc=yes
12049else
b0322a85 12050 ac_cv_header_stdc=no
8d138742 12051fi
8d138742 12052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12053
8d138742
CE
12054if test $ac_cv_header_stdc = yes; then
12055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12057/* end confdefs.h. */
12058#include <string.h>
d9898ee8 12059
8d138742
CE
12060_ACEOF
12061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
12062 $EGREP "memchr" >/dev/null 2>&1; then :
12063
8d138742
CE
12064else
12065 ac_cv_header_stdc=no
12066fi
12067rm -f conftest*
d9898ee8 12068
8d138742 12069fi
d9898ee8 12070
8d138742
CE
12071if test $ac_cv_header_stdc = yes; then
12072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12074/* end confdefs.h. */
12075#include <stdlib.h>
d9898ee8 12076
8d138742
CE
12077_ACEOF
12078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
12079 $EGREP "free" >/dev/null 2>&1; then :
12080
8d138742
CE
12081else
12082 ac_cv_header_stdc=no
12083fi
12084rm -f conftest*
d9898ee8 12085
8d138742 12086fi
d9898ee8 12087
8d138742
CE
12088if test $ac_cv_header_stdc = yes; then
12089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 12090 if test "$cross_compiling" = yes; then :
8d138742
CE
12091 :
12092else
b0322a85 12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12094/* end confdefs.h. */
12095#include <ctype.h>
12096#include <stdlib.h>
12097#if ((' ' & 0x0FF) == 0x020)
12098# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12099# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12100#else
12101# define ISLOWER(c) \
12102 (('a' <= (c) && (c) <= 'i') \
12103 || ('j' <= (c) && (c) <= 'r') \
12104 || ('s' <= (c) && (c) <= 'z'))
12105# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12106#endif
d9898ee8 12107
8d138742
CE
12108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12109int
12110main ()
12111{
12112 int i;
12113 for (i = 0; i < 256; i++)
12114 if (XOR (islower (i), ISLOWER (i))
12115 || toupper (i) != TOUPPER (i))
12116 return 2;
12117 return 0;
12118}
12119_ACEOF
b0322a85 12120if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 12121
b0322a85
CE
12122else
12123 ac_cv_header_stdc=no
8d138742 12124fi
b0322a85
CE
12125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12126 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 12127fi
d9898ee8 12128
8d138742
CE
12129fi
12130fi
b0322a85 12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742
CE
12132$as_echo "$ac_cv_header_stdc" >&6; }
12133if test $ac_cv_header_stdc = yes; then
d9898ee8 12134
b0322a85 12135$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 12136
8d138742 12137fi
d9898ee8 12138
b0322a85
CE
12139for ac_header in fcntl.h string.h syslog.h
12140do :
12141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12142ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12144 cat >>confdefs.h <<_ACEOF
12145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146_ACEOF
d9898ee8 12147
b0322a85 12148fi
d9898ee8 12149
b0322a85 12150done
d9898ee8 12151
b0322a85
CE
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12153$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12154if ${ac_cv_type_uid_t+:} false; then :
8d138742 12155 $as_echo_n "(cached) " >&6
8d138742 12156else
b0322a85 12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12158/* end confdefs.h. */
b0322a85
CE
12159#include <sys/types.h>
12160
8d138742 12161_ACEOF
b0322a85
CE
12162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12163 $EGREP "uid_t" >/dev/null 2>&1; then :
12164 ac_cv_type_uid_t=yes
8d138742 12165else
b0322a85
CE
12166 ac_cv_type_uid_t=no
12167fi
12168rm -f conftest*
d9898ee8 12169
8d138742 12170fi
b0322a85
CE
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12172$as_echo "$ac_cv_type_uid_t" >&6; }
12173if test $ac_cv_type_uid_t = no; then
d9898ee8 12174
b0322a85 12175$as_echo "#define uid_t int" >>confdefs.h
d9898ee8 12176
d9898ee8 12177
b0322a85
CE
12178$as_echo "#define gid_t int" >>confdefs.h
12179
8d138742 12180fi
d9898ee8 12181
b0322a85
CE
12182# Check whether --enable-largefile was given.
12183if test "${enable_largefile+set}" = set; then :
12184 enableval=$enable_largefile;
12185fi
d9898ee8 12186
b0322a85
CE
12187if test "$enable_largefile" != no; then
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12190$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12191if ${ac_cv_sys_largefile_CC+:} false; then :
8d138742
CE
12192 $as_echo_n "(cached) " >&6
12193else
b0322a85
CE
12194 ac_cv_sys_largefile_CC=no
12195 if test "$GCC" != yes; then
12196 ac_save_CC=$CC
12197 while :; do
12198 # IRIX 6.2 and later do not support large files by default,
12199 # so use the C compiler's -n32 option if that helps.
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201/* end confdefs.h. */
12202#include <sys/types.h>
12203 /* Check that off_t can represent 2**63 - 1 correctly.
12204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12205 since some C++ compilers masquerading as C compilers
12206 incorrectly reject 9223372036854775807. */
12207#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12209 && LARGE_OFF_T % 2147483647 == 1)
12210 ? 1 : -1];
12211int
12212main ()
12213{
d9898ee8 12214
b0322a85
CE
12215 ;
12216 return 0;
12217}
8d138742 12218_ACEOF
b0322a85
CE
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220 break
8d138742 12221fi
b0322a85
CE
12222rm -f core conftest.err conftest.$ac_objext
12223 CC="$CC -n32"
12224 if ac_fn_c_try_compile "$LINENO"; then :
12225 ac_cv_sys_largefile_CC=' -n32'; break
12226fi
12227rm -f core conftest.err conftest.$ac_objext
12228 break
12229 done
12230 CC=$ac_save_CC
12231 rm -f conftest.$ac_ext
12232 fi
12233fi
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12235$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12236 if test "$ac_cv_sys_largefile_CC" != no; then
12237 CC=$CC$ac_cv_sys_largefile_CC
12238 fi
d9898ee8 12239
b0322a85
CE
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12241$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12242if ${ac_cv_sys_file_offset_bits+:} false; then :
8d138742
CE
12243 $as_echo_n "(cached) " >&6
12244else
b0322a85
CE
12245 while :; do
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12247/* end confdefs.h. */
12248#include <sys/types.h>
b0322a85
CE
12249 /* Check that off_t can represent 2**63 - 1 correctly.
12250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12251 since some C++ compilers masquerading as C compilers
12252 incorrectly reject 9223372036854775807. */
12253#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12255 && LARGE_OFF_T % 2147483647 == 1)
12256 ? 1 : -1];
12257int
12258main ()
12259{
d9898ee8 12260
b0322a85
CE
12261 ;
12262 return 0;
12263}
8d138742 12264_ACEOF
b0322a85
CE
12265if ac_fn_c_try_compile "$LINENO"; then :
12266 ac_cv_sys_file_offset_bits=no; break
8d138742 12267fi
b0322a85
CE
12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h. */
12271#define _FILE_OFFSET_BITS 64
12272#include <sys/types.h>
12273 /* Check that off_t can represent 2**63 - 1 correctly.
12274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12275 since some C++ compilers masquerading as C compilers
12276 incorrectly reject 9223372036854775807. */
12277#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12279 && LARGE_OFF_T % 2147483647 == 1)
12280 ? 1 : -1];
12281int
12282main ()
12283{
d9898ee8 12284
b0322a85
CE
12285 ;
12286 return 0;
12287}
8d138742 12288_ACEOF
b0322a85
CE
12289if ac_fn_c_try_compile "$LINENO"; then :
12290 ac_cv_sys_file_offset_bits=64; break
8d138742 12291fi
b0322a85
CE
12292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 ac_cv_sys_file_offset_bits=unknown
12294 break
12295done
12296fi
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12298$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12299case $ac_cv_sys_file_offset_bits in #(
12300 no | unknown) ;;
12301 *)
12302cat >>confdefs.h <<_ACEOF
12303#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12304_ACEOF
12305;;
12306esac
12307rm -rf conftest*
12308 if test $ac_cv_sys_file_offset_bits = unknown; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12310$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12311if ${ac_cv_sys_large_files+:} false; then :
8d138742
CE
12312 $as_echo_n "(cached) " >&6
12313else
b0322a85
CE
12314 while :; do
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12316/* end confdefs.h. */
b0322a85
CE
12317#include <sys/types.h>
12318 /* Check that off_t can represent 2**63 - 1 correctly.
12319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12320 since some C++ compilers masquerading as C compilers
12321 incorrectly reject 9223372036854775807. */
12322#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12324 && LARGE_OFF_T % 2147483647 == 1)
12325 ? 1 : -1];
12326int
12327main ()
12328{
d9898ee8 12329
b0322a85
CE
12330 ;
12331 return 0;
12332}
12333_ACEOF
12334if ac_fn_c_try_compile "$LINENO"; then :
12335 ac_cv_sys_large_files=no; break
12336fi
12337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339/* end confdefs.h. */
12340#define _LARGE_FILES 1
12341#include <sys/types.h>
12342 /* Check that off_t can represent 2**63 - 1 correctly.
12343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12344 since some C++ compilers masquerading as C compilers
12345 incorrectly reject 9223372036854775807. */
12346#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12348 && LARGE_OFF_T % 2147483647 == 1)
12349 ? 1 : -1];
8d138742
CE
12350int
12351main ()
12352{
b0322a85 12353
8d138742
CE
12354 ;
12355 return 0;
12356}
12357_ACEOF
b0322a85
CE
12358if ac_fn_c_try_compile "$LINENO"; then :
12359 ac_cv_sys_large_files=1; break
12360fi
12361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 ac_cv_sys_large_files=unknown
12363 break
12364done
12365fi
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12367$as_echo "$ac_cv_sys_large_files" >&6; }
12368case $ac_cv_sys_large_files in #(
12369 no | unknown) ;;
12370 *)
12371cat >>confdefs.h <<_ACEOF
12372#define _LARGE_FILES $ac_cv_sys_large_files
12373_ACEOF
12374;;
8d138742 12375esac
b0322a85
CE
12376rm -rf conftest*
12377 fi
d9898ee8 12378
d9898ee8 12379
8d138742 12380fi
b0322a85
CE
12381
12382for ac_func in strchr
12383do :
12384 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
12385if test "x$ac_cv_func_strchr" = xyes; then :
8d138742 12386 cat >>confdefs.h <<_ACEOF
b0322a85 12387#define HAVE_STRCHR 1
8d138742 12388_ACEOF
d9898ee8 12389
8d138742
CE
12390fi
12391done
d9898ee8 12392
d9898ee8 12393
d9898ee8 12394
8d138742 12395# Check whether --with-syslog was given.
b0322a85 12396if test "${with_syslog+set}" = set; then :
8d138742
CE
12397 withval=$with_syslog; logdest="LOG_$withval"
12398else
12399 logdest="LOG_MAIL"
12400fi
d9898ee8 12401
d9898ee8 12402
d9898ee8 12403
8d138742
CE
12404cat >>confdefs.h <<_ACEOF
12405#define LOG_DEST $logdest
12406_ACEOF
d9898ee8 12407
b0322a85 12408 if test -d ${srcdir}/../libs/docbook; then
8d138742
CE
12409 HAVE_SGML_TRUE=
12410 HAVE_SGML_FALSE='#'
12411else
12412 HAVE_SGML_TRUE='#'
12413 HAVE_SGML_FALSE=
12414fi
d9898ee8 12415
8d138742 12416ac_config_files="$ac_config_files Makefile"
d9898ee8 12417
8d138742
CE
12418cat >confcache <<\_ACEOF
12419# This file is a shell script that caches the results of configure
12420# tests run on this system so they can be shared between configure
12421# scripts and configure runs, see configure's option --config-cache.
12422# It is not useful on other systems. If it contains results you don't
12423# want to keep, you may remove or edit it.
12424#
12425# config.status only pays attention to the cache file if you give it
12426# the --recheck option to rerun configure.
12427#
12428# `ac_cv_env_foo' variables (set or unset) will be overridden when
12429# loading this file, other *unset* `ac_cv_foo' will be assigned the
12430# following values.
d9898ee8 12431
8d138742 12432_ACEOF
d9898ee8 12433
8d138742
CE
12434# The following way of writing the cache mishandles newlines in values,
12435# but we know of no workaround that is simple, portable, and efficient.
12436# So, we kill variables containing newlines.
12437# Ultrix sh set writes to stderr and can't be redirected directly,
12438# and sets the high bit in the cache file unless we assign to the vars.
12439(
12440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12441 eval ac_val=\$$ac_var
12442 case $ac_val in #(
12443 *${as_nl}*)
12444 case $ac_var in #(
b0322a85 12445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
12446$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12447 esac
12448 case $ac_var in #(
12449 _ | IFS | as_nl) ;; #(
12450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 12451 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
12452 esac ;;
12453 esac
12454 done
d9898ee8 12455
8d138742
CE
12456 (set) 2>&1 |
12457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12458 *${as_nl}ac_space=\ *)
b0322a85
CE
12459 # `set' does not quote correctly, so add quotes: double-quote
12460 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
12461 sed -n \
12462 "s/'/'\\\\''/g;
12463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12464 ;; #(
12465 *)
12466 # `set' quotes correctly as required by POSIX, so do not add quotes.
12467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12468 ;;
12469 esac |
12470 sort
12471) |
12472 sed '
12473 /^ac_cv_env_/b end
12474 t clear
12475 :clear
12476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12477 t end
12478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12479 :end' >>confcache
12480if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12481 if test -w "$cache_file"; then
b0322a85
CE
12482 if test "x$cache_file" != "x/dev/null"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 12484$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
12485 if test ! -f "$cache_file" || test -h "$cache_file"; then
12486 cat confcache >"$cache_file"
12487 else
12488 case $cache_file in #(
12489 */* | ?:*)
12490 mv -f confcache "$cache_file"$$ &&
12491 mv -f "$cache_file"$$ "$cache_file" ;; #(
12492 *)
12493 mv -f confcache "$cache_file" ;;
12494 esac
12495 fi
12496 fi
8d138742 12497 else
b0322a85 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
12499$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12500 fi
12501fi
12502rm -f confcache
d9898ee8 12503
8d138742
CE
12504test "x$prefix" = xNONE && prefix=$ac_default_prefix
12505# Let make expand exec_prefix.
12506test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 12507
8d138742 12508DEFS=-DHAVE_CONFIG_H
d9898ee8 12509
8d138742
CE
12510ac_libobjs=
12511ac_ltlibobjs=
d50284c4 12512U=
8d138742
CE
12513for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12514 # 1. Remove the extension, and $U if already installed.
12515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12518 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
12519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
12521done
12522LIBOBJS=$ac_libobjs
d9898ee8 12523
8d138742 12524LTLIBOBJS=$ac_ltlibobjs
d9898ee8 12525
12526
b0322a85
CE
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12528$as_echo_n "checking that generated files are newer than configure... " >&6; }
12529 if test -n "$am_sleep_pid"; then
12530 # Hide warnings about reused PIDs.
12531 wait $am_sleep_pid 2>/dev/null
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12534$as_echo "done" >&6; }
8d138742
CE
12535 if test -n "$EXEEXT"; then
12536 am__EXEEXT_TRUE=
12537 am__EXEEXT_FALSE='#'
d9898ee8 12538else
8d138742
CE
12539 am__EXEEXT_TRUE='#'
12540 am__EXEEXT_FALSE=
d9898ee8 12541fi
12542
8d138742 12543if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
12544 as_fn_error $? "conditional \"AMDEP\" was never defined.
12545Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12546fi
12547if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
12548 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12549Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12550fi
12551if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
b0322a85
CE
12552 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
12553Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 12554fi
d9898ee8 12555
b0322a85 12556: "${CONFIG_STATUS=./config.status}"
8d138742
CE
12557ac_write_fail=0
12558ac_clean_files_save=$ac_clean_files
12559ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 12561$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
12562as_write_fail=0
12563cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
12564#! $SHELL
12565# Generated by $as_me.
12566# Run this file to recreate the current configuration.
12567# Compiler output produced by configure, useful for debugging
12568# configure, is in config.log if it exists.
d9898ee8 12569
8d138742
CE
12570debug=false
12571ac_cs_recheck=false
12572ac_cs_silent=false
d9898ee8 12573
b0322a85
CE
12574SHELL=\${CONFIG_SHELL-$SHELL}
12575export SHELL
12576_ASEOF
12577cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12578## -------------------- ##
12579## M4sh Initialization. ##
12580## -------------------- ##
d9898ee8 12581
8d138742
CE
12582# Be more Bourne compatible
12583DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 12584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
12585 emulate sh
12586 NULLCMD=:
12587 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12588 # is contrary to our usage. Disable this feature.
12589 alias -g '${1+"$@"}'='"$@"'
12590 setopt NO_GLOB_SUBST
12591else
b0322a85
CE
12592 case `(set -o) 2>/dev/null` in #(
12593 *posix*) :
12594 set -o posix ;; #(
12595 *) :
12596 ;;
8d138742 12597esac
d9898ee8 12598fi
12599
12600
8d138742
CE
12601as_nl='
12602'
12603export as_nl
12604# Printing a long string crashes Solaris 7 /usr/bin/printf.
12605as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12606as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12607as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
12608# Prefer a ksh shell builtin over an external printf program on Solaris,
12609# but without wasting forks for bash or zsh.
12610if test -z "$BASH_VERSION$ZSH_VERSION" \
12611 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12612 as_echo='print -r --'
12613 as_echo_n='print -rn --'
12614elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
12615 as_echo='printf %s\n'
12616 as_echo_n='printf %s'
12617else
12618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12620 as_echo_n='/usr/ucb/echo -n'
12621 else
12622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12623 as_echo_n_body='eval
12624 arg=$1;
b0322a85 12625 case $arg in #(
8d138742
CE
12626 *"$as_nl"*)
12627 expr "X$arg" : "X\\(.*\\)$as_nl";
12628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12629 esac;
12630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12631 '
12632 export as_echo_n_body
12633 as_echo_n='sh -c $as_echo_n_body as_echo'
12634 fi
12635 export as_echo_body
12636 as_echo='sh -c $as_echo_body as_echo'
12637fi
d9898ee8 12638
8d138742
CE
12639# The user is always right.
12640if test "${PATH_SEPARATOR+set}" != set; then
12641 PATH_SEPARATOR=:
12642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12644 PATH_SEPARATOR=';'
12645 }
12646fi
d9898ee8 12647
d9898ee8 12648
8d138742
CE
12649# IFS
12650# We need space, tab and new line, in precisely that order. Quoting is
12651# there to prevent editors from complaining about space-tab.
12652# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12653# splitting by setting IFS to empty value.)
12654IFS=" "" $as_nl"
d9898ee8 12655
8d138742 12656# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
12657as_myself=
12658case $0 in #((
8d138742
CE
12659 *[\\/]* ) as_myself=$0 ;;
12660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661for as_dir in $PATH
12662do
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
b0322a85
CE
12665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12666 done
8d138742 12667IFS=$as_save_IFS
d9898ee8 12668
8d138742
CE
12669 ;;
12670esac
12671# We did not find ourselves, most probably we were run as `sh COMMAND'
12672# in which case we are not to be found in the path.
12673if test "x$as_myself" = x; then
12674 as_myself=$0
12675fi
12676if test ! -f "$as_myself"; then
12677 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 12678 exit 1
8d138742 12679fi
d9898ee8 12680
b0322a85
CE
12681# Unset variables that we do not need and which cause bugs (e.g. in
12682# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12683# suppresses any "Segmentation fault" message there. '((' could
12684# trigger a bug in pdksh 5.2.14.
12685for as_var in BASH_ENV ENV MAIL MAILPATH
12686do eval test x\${$as_var+set} = xset \
12687 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
12688done
12689PS1='$ '
12690PS2='> '
12691PS4='+ '
d9898ee8 12692
8d138742
CE
12693# NLS nuisances.
12694LC_ALL=C
12695export LC_ALL
12696LANGUAGE=C
12697export LANGUAGE
d9898ee8 12698
b0322a85
CE
12699# CDPATH.
12700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12701
12702
12703# as_fn_error STATUS ERROR [LINENO LOG_FD]
12704# ----------------------------------------
12705# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12706# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12707# script with STATUS, using 1 if that was 0.
12708as_fn_error ()
12709{
12710 as_status=$1; test $as_status -eq 0 && as_status=1
12711 if test "$4"; then
12712 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12713 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12714 fi
12715 $as_echo "$as_me: error: $2" >&2
12716 as_fn_exit $as_status
12717} # as_fn_error
12718
12719
12720# as_fn_set_status STATUS
12721# -----------------------
12722# Set $? to STATUS, without forking.
12723as_fn_set_status ()
12724{
12725 return $1
12726} # as_fn_set_status
12727
12728# as_fn_exit STATUS
12729# -----------------
12730# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12731as_fn_exit ()
12732{
12733 set +e
12734 as_fn_set_status $1
12735 exit $1
12736} # as_fn_exit
12737
12738# as_fn_unset VAR
12739# ---------------
12740# Portably unset VAR.
12741as_fn_unset ()
12742{
12743 { eval $1=; unset $1;}
12744}
12745as_unset=as_fn_unset
12746# as_fn_append VAR VALUE
12747# ----------------------
12748# Append the text in VALUE to the end of the definition contained in VAR. Take
12749# advantage of any shell optimizations that allow amortized linear growth over
12750# repeated appends, instead of the typical quadratic growth present in naive
12751# implementations.
12752if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12753 eval 'as_fn_append ()
12754 {
12755 eval $1+=\$2
12756 }'
12757else
12758 as_fn_append ()
12759 {
12760 eval $1=\$$1\$2
12761 }
12762fi # as_fn_append
12763
12764# as_fn_arith ARG...
12765# ------------------
12766# Perform arithmetic evaluation on the ARGs, and store the result in the
12767# global $as_val. Take advantage of shells that can avoid forks. The arguments
12768# must be portable across $(()) and expr.
12769if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12770 eval 'as_fn_arith ()
12771 {
12772 as_val=$(( $* ))
12773 }'
12774else
12775 as_fn_arith ()
12776 {
12777 as_val=`expr "$@" || test $? -eq 1`
12778 }
12779fi # as_fn_arith
12780
12781
8d138742
CE
12782if expr a : '\(a\)' >/dev/null 2>&1 &&
12783 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12784 as_expr=expr
12785else
12786 as_expr=false
12787fi
d9898ee8 12788
8d138742
CE
12789if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12790 as_basename=basename
12791else
12792 as_basename=false
12793fi
d9898ee8 12794
b0322a85
CE
12795if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12796 as_dirname=dirname
12797else
12798 as_dirname=false
12799fi
d9898ee8 12800
8d138742
CE
12801as_me=`$as_basename -- "$0" ||
12802$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12803 X"$0" : 'X\(//\)$' \| \
12804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12805$as_echo X/"$0" |
12806 sed '/^.*\/\([^/][^/]*\)\/*$/{
12807 s//\1/
12808 q
12809 }
12810 /^X\/\(\/\/\)$/{
12811 s//\1/
12812 q
12813 }
12814 /^X\/\(\/\).*/{
12815 s//\1/
12816 q
12817 }
12818 s/.*/./; q'`
d9898ee8 12819
b0322a85
CE
12820# Avoid depending upon Character Ranges.
12821as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12822as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12823as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12824as_cr_digits='0123456789'
12825as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 12826
8d138742 12827ECHO_C= ECHO_N= ECHO_T=
b0322a85 12828case `echo -n x` in #(((((
8d138742 12829-n*)
b0322a85 12830 case `echo 'xy\c'` in
8d138742 12831 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
12832 xy) ECHO_C='\c';;
12833 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12834 ECHO_T=' ';;
8d138742
CE
12835 esac;;
12836*)
12837 ECHO_N='-n';;
12838esac
b0322a85
CE
12839
12840rm -f conf$$ conf$$.exe conf$$.file
12841if test -d conf$$.dir; then
12842 rm -f conf$$.dir/conf$$.file
d9898ee8 12843else
b0322a85
CE
12844 rm -f conf$$.dir
12845 mkdir conf$$.dir 2>/dev/null
12846fi
12847if (echo >conf$$.file) 2>/dev/null; then
12848 if ln -s conf$$.file conf$$ 2>/dev/null; then
12849 as_ln_s='ln -s'
12850 # ... but there are two gotchas:
12851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12853 # In both cases, we have to default to `cp -pR'.
12854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12855 as_ln_s='cp -pR'
12856 elif ln conf$$.file conf$$ 2>/dev/null; then
12857 as_ln_s=ln
12858 else
12859 as_ln_s='cp -pR'
12860 fi
12861else
12862 as_ln_s='cp -pR'
8d138742 12863fi
b0322a85
CE
12864rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12865rmdir conf$$.dir 2>/dev/null
12866
12867
12868# as_fn_mkdir_p
12869# -------------
12870# Create "$as_dir" as a directory, including parents if necessary.
12871as_fn_mkdir_p ()
12872{
12873
12874 case $as_dir in #(
12875 -*) as_dir=./$as_dir;;
12876 esac
12877 test -d "$as_dir" || eval $as_mkdir_p || {
12878 as_dirs=
12879 while :; do
12880 case $as_dir in #(
12881 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12882 *) as_qdir=$as_dir;;
12883 esac
12884 as_dirs="'$as_qdir' $as_dirs"
12885 as_dir=`$as_dirname -- "$as_dir" ||
12886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12887 X"$as_dir" : 'X\(//\)[^/]' \| \
12888 X"$as_dir" : 'X\(//\)$' \| \
12889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12890$as_echo X"$as_dir" |
12891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12892 s//\1/
12893 q
12894 }
12895 /^X\(\/\/\)[^/].*/{
12896 s//\1/
12897 q
12898 }
12899 /^X\(\/\/\)$/{
12900 s//\1/
12901 q
12902 }
12903 /^X\(\/\).*/{
12904 s//\1/
12905 q
12906 }
12907 s/.*/./; q'`
12908 test -d "$as_dir" && break
12909 done
12910 test -z "$as_dirs" || eval "mkdir $as_dirs"
12911 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d9898ee8 12912
d9898ee8 12913
b0322a85 12914} # as_fn_mkdir_p
8d138742 12915if mkdir -p . 2>/dev/null; then
b0322a85 12916 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
12917else
12918 test -d ./-p && rmdir ./-p
12919 as_mkdir_p=false
d9898ee8 12920fi
dd184caf 12921
b0322a85
CE
12922
12923# as_fn_executable_p FILE
12924# -----------------------
12925# Test if FILE is an executable regular file.
12926as_fn_executable_p ()
12927{
12928 test -f "$1" && test -x "$1"
12929} # as_fn_executable_p
12930as_test_x='test -x'
12931as_executable_p=as_fn_executable_p
d9898ee8 12932
8d138742
CE
12933# Sed expression to map a string onto a valid CPP name.
12934as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12935
8d138742
CE
12936# Sed expression to map a string onto a valid variable name.
12937as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12938
d9898ee8 12939
8d138742 12940exec 6>&1
b0322a85
CE
12941## ----------------------------------- ##
12942## Main body of $CONFIG_STATUS script. ##
12943## ----------------------------------- ##
12944_ASEOF
12945test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8d138742 12946
b0322a85
CE
12947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12948# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
12949# report actual input values of CONFIG_FILES etc. instead of their
12950# values after options handling.
12951ac_log="
12952This file was extended by courierlogger $as_me 0.10, which was
b0322a85 12953generated by GNU Autoconf 2.69. Invocation command line was
8d138742
CE
12954
12955 CONFIG_FILES = $CONFIG_FILES
12956 CONFIG_HEADERS = $CONFIG_HEADERS
12957 CONFIG_LINKS = $CONFIG_LINKS
12958 CONFIG_COMMANDS = $CONFIG_COMMANDS
12959 $ $0 $@
12960
12961on `(hostname || uname -n) 2>/dev/null | sed 1q`
12962"
d9898ee8 12963
d9898ee8 12964_ACEOF
8d138742
CE
12965
12966case $ac_config_files in *"
12967"*) set x $ac_config_files; shift; ac_config_files=$*;;
dd184caf 12968esac
d9898ee8 12969
8d138742
CE
12970case $ac_config_headers in *"
12971"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12972esac
dd184caf 12973
d9898ee8 12974
8d138742
CE
12975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12976# Files that config.status was made for.
12977config_files="$ac_config_files"
12978config_headers="$ac_config_headers"
12979config_commands="$ac_config_commands"
d9898ee8 12980
12981_ACEOF
d9898ee8 12982
8d138742
CE
12983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12984ac_cs_usage="\
b0322a85
CE
12985\`$as_me' instantiates files and other configuration actions
12986from templates according to the current configuration. Unless the files
12987and actions are specified as TAGs, all are instantiated by default.
d9898ee8 12988
b0322a85 12989Usage: $0 [OPTION]... [TAG]...
d9898ee8 12990
8d138742
CE
12991 -h, --help print this help, then exit
12992 -V, --version print version number and configuration settings, then exit
b0322a85 12993 --config print configuration, then exit
8d138742
CE
12994 -q, --quiet, --silent
12995 do not print progress messages
12996 -d, --debug don't remove temporary files
12997 --recheck update $as_me by reconfiguring in the same conditions
12998 --file=FILE[:TEMPLATE]
12999 instantiate the configuration file FILE
13000 --header=FILE[:TEMPLATE]
13001 instantiate the configuration header FILE
d9898ee8 13002
8d138742
CE
13003Configuration files:
13004$config_files
13005
13006Configuration headers:
13007$config_headers
13008
13009Configuration commands:
13010$config_commands
13011
b0322a85 13012Report bugs to <courier-users@lists.sourceforge.net>."
d9898ee8 13013
d9898ee8 13014_ACEOF
8d138742 13015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13016ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742
CE
13017ac_cs_version="\\
13018courierlogger config.status 0.10
b0322a85
CE
13019configured by $0, generated by GNU Autoconf 2.69,
13020 with options \\"\$ac_cs_config\\"
d9898ee8 13021
b0322a85 13022Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
13023This config.status script is free software; the Free Software Foundation
13024gives unlimited permission to copy, distribute and modify it."
13025
13026ac_pwd='$ac_pwd'
13027srcdir='$srcdir'
13028INSTALL='$INSTALL'
13029MKDIR_P='$MKDIR_P'
13030AWK='$AWK'
13031test -n "\$AWK" || AWK=awk
d9898ee8 13032_ACEOF
d9898ee8 13033
8d138742
CE
13034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13035# The default lists apply if the user does not specify any file.
13036ac_need_defaults=:
13037while test $# != 0
13038do
13039 case $1 in
b0322a85 13040 --*=?*)
8d138742
CE
13041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13042 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13043 ac_shift=:
13044 ;;
b0322a85
CE
13045 --*=)
13046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13047 ac_optarg=
13048 ac_shift=:
13049 ;;
8d138742
CE
13050 *)
13051 ac_option=$1
13052 ac_optarg=$2
13053 ac_shift=shift
13054 ;;
13055 esac
13056
13057 case $ac_option in
13058 # Handling of the options.
13059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13060 ac_cs_recheck=: ;;
13061 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13062 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
13063 --config | --confi | --conf | --con | --co | --c )
13064 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
13065 --debug | --debu | --deb | --de | --d | -d )
13066 debug=: ;;
13067 --file | --fil | --fi | --f )
13068 $ac_shift
13069 case $ac_optarg in
13070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 13071 '') as_fn_error $? "missing file argument" ;;
8d138742 13072 esac
b0322a85 13073 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
13074 ac_need_defaults=false;;
13075 --header | --heade | --head | --hea )
13076 $ac_shift
13077 case $ac_optarg in
13078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13079 esac
b0322a85 13080 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
13081 ac_need_defaults=false;;
13082 --he | --h)
13083 # Conflict between --help and --header
b0322a85
CE
13084 as_fn_error $? "ambiguous option: \`$1'
13085Try \`$0 --help' for more information.";;
8d138742
CE
13086 --help | --hel | -h )
13087 $as_echo "$ac_cs_usage"; exit ;;
13088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13089 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13090 ac_cs_silent=: ;;
13091
13092 # This is an error.
b0322a85
CE
13093 -*) as_fn_error $? "unrecognized option: \`$1'
13094Try \`$0 --help' for more information." ;;
8d138742 13095
b0322a85 13096 *) as_fn_append ac_config_targets " $1"
8d138742 13097 ac_need_defaults=false ;;
dd184caf 13098
8d138742
CE
13099 esac
13100 shift
13101done
13102
13103ac_configure_extra_args=
dd184caf 13104
8d138742
CE
13105if $ac_cs_silent; then
13106 exec 6>/dev/null
13107 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 13108fi
8d138742
CE
13109
13110_ACEOF
13111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13112if \$ac_cs_recheck; then
b0322a85 13113 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
13114 shift
13115 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13116 CONFIG_SHELL='$SHELL'
13117 export CONFIG_SHELL
13118 exec "\$@"
d9898ee8 13119fi
d9898ee8 13120
d9898ee8 13121_ACEOF
8d138742
CE
13122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13123exec 5>>config.log
13124{
13125 echo
13126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13127## Running $as_me. ##
13128_ASBOX
13129 $as_echo "$ac_log"
13130} >&5
d9898ee8 13131
8d138742
CE
13132_ACEOF
13133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13134#
13135# INIT-COMMANDS
13136#
13137AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13138
13139
8d138742
CE
13140# The HP-UX ksh and POSIX shell print the target directory to stdout
13141# if CDPATH is set.
13142(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13143
8d138742
CE
13144sed_quote_subst='$sed_quote_subst'
13145double_quote_subst='$double_quote_subst'
13146delay_variable_subst='$delay_variable_subst'
b0322a85
CE
13147macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13148macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13149enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13150enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13151pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13152enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
d50284c4 13153shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13154SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13155ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13156PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13157host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13158host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13159host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13160build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13161build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13162build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13163SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13164Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13165GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13166EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13167FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13168LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13169NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13170LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13171max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13172ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13173exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13174lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13175lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13176lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13177lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13178lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13179reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13180reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13181OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13182deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13183file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13184file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13185want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13186DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13187sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13188AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13189AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13190archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13191STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13192RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13193old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13194old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13195old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13196lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13197CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13198CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13199compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13200GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13201lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13202lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
d50284c4 13203lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13204lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13205lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
d50284c4 13206lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13207nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13208lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
d50284c4 13209lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13210objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13211MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13212lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13213lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13214lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13215lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13216lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13217need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13218MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13219DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13220NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13221LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13222OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13223OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13224libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13225shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13226extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13227archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13228enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13229export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13230whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13231compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13232old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13233old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13234archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13235archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13236module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13237module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13238with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13239allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13240no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13241hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13242hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13243hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13244hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13245hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13246hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13247hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13248inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13249link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13250always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13251export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13252exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13253include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13254prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13255postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13256file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13257variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13258need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13259need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13260version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13261runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13262shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13263shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13264libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13265library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13266soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13267install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13268postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13269postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13270finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13271finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13272hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13273sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
d50284c4
CE
13274configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13275configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13276hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13277enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13278enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13279enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13280old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13281striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8d138742
CE
13282
13283LTCC='$LTCC'
13284LTCFLAGS='$LTCFLAGS'
13285compiler='$compiler_DEFAULT'
13286
b0322a85
CE
13287# A function that is used when there is no print builtin or printf.
13288func_fallback_echo ()
13289{
13290 eval 'cat <<_LTECHO_EOF
13291\$1
13292_LTECHO_EOF'
13293}
13294
8d138742 13295# Quote evaled strings.
b0322a85
CE
13296for var in SHELL \
13297ECHO \
13298PATH_SEPARATOR \
13299SED \
8d138742
CE
13300GREP \
13301EGREP \
13302FGREP \
13303LD \
13304NM \
13305LN_S \
13306lt_SP2NL \
13307lt_NL2SP \
13308reload_flag \
13309OBJDUMP \
13310deplibs_check_method \
13311file_magic_cmd \
b0322a85
CE
13312file_magic_glob \
13313want_nocaseglob \
13314DLLTOOL \
13315sharedlib_from_linklib_cmd \
8d138742
CE
13316AR \
13317AR_FLAGS \
b0322a85 13318archiver_list_spec \
8d138742
CE
13319STRIP \
13320RANLIB \
13321CC \
13322CFLAGS \
13323compiler \
13324lt_cv_sys_global_symbol_pipe \
13325lt_cv_sys_global_symbol_to_cdecl \
d50284c4 13326lt_cv_sys_global_symbol_to_import \
8d138742
CE
13327lt_cv_sys_global_symbol_to_c_name_address \
13328lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d50284c4 13329lt_cv_nm_interface \
b0322a85 13330nm_file_list_spec \
d50284c4 13331lt_cv_truncate_bin \
8d138742 13332lt_prog_compiler_no_builtin_flag \
8d138742 13333lt_prog_compiler_pic \
b0322a85 13334lt_prog_compiler_wl \
8d138742
CE
13335lt_prog_compiler_static \
13336lt_cv_prog_compiler_c_o \
13337need_locks \
b0322a85 13338MANIFEST_TOOL \
8d138742
CE
13339DSYMUTIL \
13340NMEDIT \
13341LIPO \
13342OTOOL \
13343OTOOL64 \
13344shrext_cmds \
13345export_dynamic_flag_spec \
13346whole_archive_flag_spec \
13347compiler_needs_object \
13348with_gnu_ld \
13349allow_undefined_flag \
13350no_undefined_flag \
13351hardcode_libdir_flag_spec \
8d138742 13352hardcode_libdir_separator \
8d138742
CE
13353exclude_expsyms \
13354include_expsyms \
13355file_list_spec \
13356variables_saved_for_relink \
13357libname_spec \
13358library_names_spec \
13359soname_spec \
b0322a85 13360install_override_mode \
8d138742
CE
13361finish_eval \
13362old_striplib \
13363striplib; do
b0322a85 13364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13365 *[\\\\\\\`\\"\\\$]*)
d50284c4 13366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
13367 ;;
13368 *)
13369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13370 ;;
13371 esac
13372done
d9898ee8 13373
8d138742
CE
13374# Double-quote double-evaled strings.
13375for var in reload_cmds \
13376old_postinstall_cmds \
13377old_postuninstall_cmds \
13378old_archive_cmds \
13379extract_expsyms_cmds \
13380old_archive_from_new_cmds \
13381old_archive_from_expsyms_cmds \
13382archive_cmds \
13383archive_expsym_cmds \
13384module_cmds \
13385module_expsym_cmds \
13386export_symbols_cmds \
13387prelink_cmds \
b0322a85 13388postlink_cmds \
8d138742
CE
13389postinstall_cmds \
13390postuninstall_cmds \
13391finish_cmds \
13392sys_lib_search_path_spec \
d50284c4
CE
13393configure_time_dlsearch_path \
13394configure_time_lt_sys_library_path; do
b0322a85 13395 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13396 *[\\\\\\\`\\"\\\$]*)
d50284c4 13397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
13398 ;;
13399 *)
13400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13401 ;;
13402 esac
13403done
13404
8d138742 13405ac_aux_dir='$ac_aux_dir'
8d138742 13406
d50284c4 13407# See if we are running on zsh, and set the options that allow our
8d138742 13408# commands through without removal of \ escapes INIT.
d50284c4 13409if test -n "\${ZSH_VERSION+set}"; then
8d138742 13410 setopt NO_GLOB_SUBST
d9898ee8 13411fi
dd184caf 13412
d9898ee8 13413
8d138742
CE
13414 PACKAGE='$PACKAGE'
13415 VERSION='$VERSION'
8d138742
CE
13416 RM='$RM'
13417 ofile='$ofile'
13418
13419
13420
13421
d9898ee8 13422_ACEOF
d9898ee8 13423
8d138742
CE
13424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13425
13426# Handling of arguments.
13427for ac_config_target in $ac_config_targets
13428do
13429 case $ac_config_target in
13430 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13431 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13432 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13433 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13434
b0322a85 13435 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
13436 esac
13437done
13438
13439
13440# If the user did not use the arguments to specify the items to instantiate,
13441# then the envvar interface is used. Set only those that are not.
13442# We use the long form for the default assignment because of an extremely
13443# bizarre bug on SunOS 4.1.3.
13444if $ac_need_defaults; then
13445 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13446 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
d9898ee8 13448fi
dd184caf 13449
8d138742
CE
13450# Have a temporary directory for convenience. Make it in the build tree
13451# simply because there is no reason against having it here, and in addition,
13452# creating and moving files from /tmp can sometimes cause problems.
13453# Hook for its removal unless debugging.
13454# Note that there is a small window in which the directory will not be cleaned:
13455# after its creation but before its name has been assigned to `$tmp'.
13456$debug ||
13457{
b0322a85 13458 tmp= ac_tmp=
8d138742 13459 trap 'exit_status=$?
b0322a85
CE
13460 : "${ac_tmp:=$tmp}"
13461 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 13462' 0
b0322a85 13463 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
13464}
13465# Create a (secure) tmp directory for tmp files.
d9898ee8 13466
8d138742
CE
13467{
13468 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 13469 test -d "$tmp"
8d138742
CE
13470} ||
13471{
13472 tmp=./conf$$-$RANDOM
13473 (umask 077 && mkdir "$tmp")
b0322a85
CE
13474} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13475ac_tmp=$tmp
8d138742
CE
13476
13477# Set up the scripts for CONFIG_FILES section.
13478# No need to generate them if there are no CONFIG_FILES.
13479# This happens for instance with `./config.status config.h'.
13480if test -n "$CONFIG_FILES"; then
13481
13482
b0322a85
CE
13483ac_cr=`echo X | tr X '\015'`
13484# On cygwin, bash can eat \r inside `` if the user requested igncr.
13485# But we know of no other shell where ac_cr would be empty at this
13486# point, so we can use a bashism as a fallback.
13487if test "x$ac_cr" = x; then
13488 eval ac_cr=\$\'\\r\'
13489fi
8d138742
CE
13490ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13491if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13492 ac_cs_awk_cr='\\r'
d9898ee8 13493else
8d138742 13494 ac_cs_awk_cr=$ac_cr
d9898ee8 13495fi
d9898ee8 13496
b0322a85 13497echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d9898ee8 13498_ACEOF
13499
d9898ee8 13500
8d138742
CE
13501{
13502 echo "cat >conf$$subs.awk <<_ACEOF" &&
13503 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13504 echo "_ACEOF"
13505} >conf$$subs.sh ||
b0322a85
CE
13506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13507ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
13508ac_delim='%!_!# '
13509for ac_last_try in false false false false false :; do
13510 . ./conf$$subs.sh ||
b0322a85 13511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
13512
13513 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13514 if test $ac_delim_n = $ac_delim_num; then
13515 break
13516 elif $ac_last_try; then
b0322a85 13517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
13518 else
13519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13520 fi
d9898ee8 13521done
8d138742
CE
13522rm -f conf$$subs.sh
13523
13524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13525cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
13526_ACEOF
13527sed -n '
13528h
13529s/^/S["/; s/!.*/"]=/
13530p
13531g
13532s/^[^!]*!//
13533:repl
13534t repl
13535s/'"$ac_delim"'$//
13536t delim
13537:nl
13538h
b0322a85 13539s/\(.\{148\}\)..*/\1/
8d138742
CE
13540t more1
13541s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13542p
13543n
13544b repl
13545:more1
13546s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13547p
13548g
13549s/.\{148\}//
13550t nl
13551:delim
13552h
b0322a85 13553s/\(.\{148\}\)..*/\1/
8d138742
CE
13554t more2
13555s/["\\]/\\&/g; s/^/"/; s/$/"/
13556p
13557b
13558:more2
13559s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13560p
13561g
13562s/.\{148\}//
13563t delim
13564' <conf$$subs.awk | sed '
13565/^[^""]/{
13566 N
13567 s/\n//
13568}
13569' >>$CONFIG_STATUS || ac_write_fail=1
13570rm -f conf$$subs.awk
13571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13572_ACAWK
b0322a85 13573cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
13574 for (key in S) S_is_set[key] = 1
13575 FS = "\a"
d9898ee8 13576
8d138742
CE
13577}
13578{
13579 line = $ 0
13580 nfields = split(line, field, "@")
13581 substed = 0
13582 len = length(field[1])
13583 for (i = 2; i < nfields; i++) {
13584 key = field[i]
13585 keylen = length(key)
13586 if (S_is_set[key]) {
13587 value = S[key]
13588 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13589 len += length(value) + length(field[++i])
13590 substed = 1
13591 } else
13592 len += 1 + keylen
13593 }
13594
13595 print line
13596}
13597
13598_ACAWK
13599_ACEOF
13600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13602 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 13603else
8d138742 13604 cat
b0322a85
CE
13605fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13606 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
d9898ee8 13607_ACEOF
d9898ee8 13608
b0322a85
CE
13609# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13610# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
13611# trailing colons and then remove the whole line if VPATH becomes empty
13612# (actually we leave an empty line to preserve line numbers).
13613if test "x$srcdir" = x.; then
b0322a85
CE
13614 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13615h
13616s///
13617s/^/:/
13618s/[ ]*$/:/
13619s/:\$(srcdir):/:/g
13620s/:\${srcdir}:/:/g
13621s/:@srcdir@:/:/g
13622s/^:*//
8d138742 13623s/:*$//
b0322a85
CE
13624x
13625s/\(=[ ]*\).*/\1/
13626G
13627s/\n//
8d138742
CE
13628s/^[^=]*=[ ]*$//
13629}'
13630fi
13631
13632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13633fi # test -n "$CONFIG_FILES"
13634
13635# Set up the scripts for CONFIG_HEADERS section.
13636# No need to generate them if there are no CONFIG_HEADERS.
13637# This happens for instance with `./config.status Makefile'.
13638if test -n "$CONFIG_HEADERS"; then
b0322a85 13639cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742
CE
13640BEGIN {
13641_ACEOF
13642
13643# Transform confdefs.h into an awk script `defines.awk', embedded as
13644# here-document in config.status, that substitutes the proper values into
13645# config.h.in to produce config.h.
13646
13647# Create a delimiter string that does not exist in confdefs.h, to ease
13648# handling of long lines.
13649ac_delim='%!_!# '
13650for ac_last_try in false false :; do
b0322a85
CE
13651 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13652 if test -z "$ac_tt"; then
8d138742
CE
13653 break
13654 elif $ac_last_try; then
b0322a85 13655 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
13656 else
13657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13658 fi
13659done
13660
13661# For the awk script, D is an array of macro values keyed by name,
13662# likewise P contains macro parameters if any. Preserve backslash
13663# newline sequences.
13664
13665ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13666sed -n '
13667s/.\{148\}/&'"$ac_delim"'/g
13668t rset
13669:rset
13670s/^[ ]*#[ ]*define[ ][ ]*/ /
13671t def
13672d
13673:def
13674s/\\$//
13675t bsnl
13676s/["\\]/\\&/g
13677s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13678D["\1"]=" \3"/p
13679s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13680d
13681:bsnl
13682s/["\\]/\\&/g
13683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13684D["\1"]=" \3\\\\\\n"\\/p
13685t cont
13686s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13687t cont
13688d
13689:cont
13690n
13691s/.\{148\}/&'"$ac_delim"'/g
13692t clear
13693:clear
13694s/\\$//
13695t bsnlc
13696s/["\\]/\\&/g; s/^/"/; s/$/"/p
13697d
13698:bsnlc
13699s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13700b cont
13701' <confdefs.h | sed '
13702s/'"$ac_delim"'/"\\\
13703"/g' >>$CONFIG_STATUS || ac_write_fail=1
13704
13705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706 for (key in D) D_is_set[key] = 1
13707 FS = "\a"
13708}
13709/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13710 line = \$ 0
13711 split(line, arg, " ")
13712 if (arg[1] == "#") {
13713 defundef = arg[2]
13714 mac1 = arg[3]
13715 } else {
13716 defundef = substr(arg[1], 2)
13717 mac1 = arg[2]
13718 }
13719 split(mac1, mac2, "(") #)
13720 macro = mac2[1]
13721 prefix = substr(line, 1, index(line, defundef) - 1)
13722 if (D_is_set[macro]) {
13723 # Preserve the white space surrounding the "#".
13724 print prefix "define", macro P[macro] D[macro]
13725 next
13726 } else {
13727 # Replace #undef with comments. This is necessary, for example,
13728 # in the case of _POSIX_SOURCE, which is predefined and required
13729 # on some systems where configure will not decide to define it.
13730 if (defundef == "undef") {
13731 print "/*", prefix defundef, macro, "*/"
13732 next
13733 }
13734 }
13735}
13736{ print }
13737_ACAWK
d9898ee8 13738_ACEOF
8d138742 13739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 13740 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 13741fi # test -n "$CONFIG_HEADERS"
d9898ee8 13742
d9898ee8 13743
8d138742
CE
13744eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13745shift
13746for ac_tag
13747do
13748 case $ac_tag in
13749 :[FHLC]) ac_mode=$ac_tag; continue;;
13750 esac
13751 case $ac_mode$ac_tag in
13752 :[FHL]*:*);;
b0322a85 13753 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
13754 :[FH]-) ac_tag=-:-;;
13755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13756 esac
13757 ac_save_IFS=$IFS
13758 IFS=:
13759 set x $ac_tag
13760 IFS=$ac_save_IFS
13761 shift
13762 ac_file=$1
13763 shift
d9898ee8 13764
8d138742
CE
13765 case $ac_mode in
13766 :L) ac_source=$1;;
13767 :[FH])
13768 ac_file_inputs=
13769 for ac_f
13770 do
13771 case $ac_f in
b0322a85 13772 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
13773 *) # Look for the file first in the build tree, then in the source tree
13774 # (if the path is not absolute). The absolute path cannot be DOS-style,
13775 # because $ac_f cannot contain `:'.
13776 test -f "$ac_f" ||
13777 case $ac_f in
13778 [\\/$]*) false;;
13779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13780 esac ||
b0322a85 13781 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
13782 esac
13783 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 13784 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 13785 done
d9898ee8 13786
8d138742
CE
13787 # Let's still pretend it is `configure' which instantiates (i.e., don't
13788 # use $as_me), people would be surprised to read:
13789 # /* config.h. Generated by config.status. */
13790 configure_input='Generated from '`
13791 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13792 `' by configure.'
13793 if test x"$ac_file" != x-; then
13794 configure_input="$ac_file. $configure_input"
b0322a85 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
13796$as_echo "$as_me: creating $ac_file" >&6;}
13797 fi
13798 # Neutralize special characters interpreted by sed in replacement strings.
13799 case $configure_input in #(
13800 *\&* | *\|* | *\\* )
13801 ac_sed_conf_input=`$as_echo "$configure_input" |
13802 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13803 *) ac_sed_conf_input=$configure_input;;
13804 esac
d9898ee8 13805
8d138742 13806 case $ac_tag in
b0322a85
CE
13807 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
13809 esac
13810 ;;
13811 esac
d9898ee8 13812
8d138742
CE
13813 ac_dir=`$as_dirname -- "$ac_file" ||
13814$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815 X"$ac_file" : 'X\(//\)[^/]' \| \
13816 X"$ac_file" : 'X\(//\)$' \| \
13817 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13818$as_echo X"$ac_file" |
13819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13820 s//\1/
13821 q
13822 }
13823 /^X\(\/\/\)[^/].*/{
13824 s//\1/
13825 q
13826 }
13827 /^X\(\/\/\)$/{
13828 s//\1/
13829 q
13830 }
13831 /^X\(\/\).*/{
13832 s//\1/
13833 q
13834 }
13835 s/.*/./; q'`
b0322a85 13836 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 13837 ac_builddir=.
d9898ee8 13838
8d138742
CE
13839case "$ac_dir" in
13840.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13841*)
13842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13843 # A ".." for each directory in $ac_dir_suffix.
13844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13845 case $ac_top_builddir_sub in
13846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13848 esac ;;
13849esac
13850ac_abs_top_builddir=$ac_pwd
13851ac_abs_builddir=$ac_pwd$ac_dir_suffix
13852# for backward compatibility:
13853ac_top_builddir=$ac_top_build_prefix
d9898ee8 13854
8d138742
CE
13855case $srcdir in
13856 .) # We are building in place.
13857 ac_srcdir=.
13858 ac_top_srcdir=$ac_top_builddir_sub
13859 ac_abs_top_srcdir=$ac_pwd ;;
13860 [\\/]* | ?:[\\/]* ) # Absolute name.
13861 ac_srcdir=$srcdir$ac_dir_suffix;
13862 ac_top_srcdir=$srcdir
13863 ac_abs_top_srcdir=$srcdir ;;
13864 *) # Relative name.
13865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13866 ac_top_srcdir=$ac_top_build_prefix$srcdir
13867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13868esac
13869ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 13870
d9898ee8 13871
8d138742
CE
13872 case $ac_mode in
13873 :F)
13874 #
13875 # CONFIG_FILE
13876 #
d9898ee8 13877
8d138742
CE
13878 case $INSTALL in
13879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13881 esac
13882 ac_MKDIR_P=$MKDIR_P
13883 case $MKDIR_P in
13884 [\\/$]* | ?:[\\/]* ) ;;
13885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13886 esac
13887_ACEOF
d9898ee8 13888
8d138742
CE
13889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13890# If the template does not know about datarootdir, expand it.
13891# FIXME: This hack should be removed a few years after 2.60.
13892ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
13893ac_sed_dataroot='
13894/datarootdir/ {
13895 p
13896 q
d9898ee8 13897}
8d138742
CE
13898/@datadir@/p
13899/@docdir@/p
13900/@infodir@/p
13901/@localedir@/p
b0322a85 13902/@mandir@/p'
8d138742
CE
13903case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13904*datarootdir*) ac_datarootdir_seen=yes;;
13905*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742 13907$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 13908_ACEOF
8d138742
CE
13909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13910 ac_datarootdir_hack='
13911 s&@datadir@&$datadir&g
13912 s&@docdir@&$docdir&g
13913 s&@infodir@&$infodir&g
13914 s&@localedir@&$localedir&g
13915 s&@mandir@&$mandir&g
b0322a85 13916 s&\\\${datarootdir}&$datarootdir&g' ;;
dd184caf 13917esac
d9898ee8 13918_ACEOF
13919
8d138742
CE
13920# Neutralize VPATH when `$srcdir' = `.'.
13921# Shell code in configure.ac might set extrasub.
13922# FIXME: do we really want to maintain this feature?
13923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924ac_sed_extra="$ac_vpsub
13925$extrasub
13926_ACEOF
13927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13928:t
13929/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13930s|@configure_input@|$ac_sed_conf_input|;t t
13931s&@top_builddir@&$ac_top_builddir_sub&;t t
13932s&@top_build_prefix@&$ac_top_build_prefix&;t t
13933s&@srcdir@&$ac_srcdir&;t t
13934s&@abs_srcdir@&$ac_abs_srcdir&;t t
13935s&@top_srcdir@&$ac_top_srcdir&;t t
13936s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13937s&@builddir@&$ac_builddir&;t t
13938s&@abs_builddir@&$ac_abs_builddir&;t t
13939s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13940s&@INSTALL@&$ac_INSTALL&;t t
13941s&@MKDIR_P@&$ac_MKDIR_P&;t t
13942$ac_datarootdir_hack
13943"
b0322a85
CE
13944eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13945 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 13946
8d138742 13947test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
13948 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13950 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13952which seems to be undefined. Please make sure it is defined" >&5
8d138742 13953$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 13954which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 13955
b0322a85 13956 rm -f "$ac_tmp/stdin"
8d138742 13957 case $ac_file in
b0322a85
CE
13958 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13959 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 13960 esac \
b0322a85 13961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13962 ;;
13963 :H)
13964 #
13965 # CONFIG_HEADER
13966 #
13967 if test x"$ac_file" != x-; then
13968 {
13969 $as_echo "/* $configure_input */" \
b0322a85
CE
13970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13971 } >"$ac_tmp/config.h" \
13972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13973 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
13975$as_echo "$as_me: $ac_file is unchanged" >&6;}
13976 else
13977 rm -f "$ac_file"
b0322a85
CE
13978 mv "$ac_tmp/config.h" "$ac_file" \
13979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13980 fi
13981 else
13982 $as_echo "/* $configure_input */" \
b0322a85
CE
13983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13984 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
13985 fi
13986# Compute "$ac_file"'s index in $config_headers.
13987_am_arg="$ac_file"
13988_am_stamp_count=1
13989for _am_header in $config_headers :; do
13990 case $_am_header in
13991 $_am_arg | $_am_arg:* )
13992 break ;;
13993 * )
13994 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13995 esac
13996done
13997echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13998$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13999 X"$_am_arg" : 'X\(//\)[^/]' \| \
14000 X"$_am_arg" : 'X\(//\)$' \| \
14001 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14002$as_echo X"$_am_arg" |
14003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14004 s//\1/
14005 q
14006 }
14007 /^X\(\/\/\)[^/].*/{
14008 s//\1/
14009 q
14010 }
14011 /^X\(\/\/\)$/{
14012 s//\1/
14013 q
14014 }
14015 /^X\(\/\).*/{
14016 s//\1/
14017 q
14018 }
14019 s/.*/./; q'`/stamp-h$_am_stamp_count
14020 ;;
d9898ee8 14021
b0322a85 14022 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
14023$as_echo "$as_me: executing $ac_file commands" >&6;}
14024 ;;
14025 esac
dd184caf 14026
d9898ee8 14027
8d138742
CE
14028 case $ac_file$ac_mode in
14029 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 14030 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
14031 # are listed without --file. Let's play safe and only enable the eval
14032 # if we detect the quoting.
14033 case $CONFIG_FILES in
14034 *\'*) eval set x "$CONFIG_FILES" ;;
14035 *) set x $CONFIG_FILES ;;
14036 esac
14037 shift
14038 for mf
14039 do
14040 # Strip MF so we end up with the name of the file.
14041 mf=`echo "$mf" | sed -e 's/:.*$//'`
14042 # Check whether this is an Automake generated Makefile or not.
b0322a85 14043 # We used to match only the files named 'Makefile.in', but
8d138742
CE
14044 # some people rename them; so instead we look at the file content.
14045 # Grep'ing the first line is not enough: some people post-process
14046 # each Makefile.in and add a new line on top of each file to say so.
14047 # Grep'ing the whole file is not good either: AIX grep has a line
14048 # limit of 2048, but all sed's we know have understand at least 4000.
14049 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14050 dirpart=`$as_dirname -- "$mf" ||
14051$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14052 X"$mf" : 'X\(//\)[^/]' \| \
14053 X"$mf" : 'X\(//\)$' \| \
14054 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14055$as_echo X"$mf" |
14056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14057 s//\1/
14058 q
14059 }
14060 /^X\(\/\/\)[^/].*/{
14061 s//\1/
14062 q
14063 }
14064 /^X\(\/\/\)$/{
14065 s//\1/
14066 q
14067 }
14068 /^X\(\/\).*/{
14069 s//\1/
14070 q
14071 }
14072 s/.*/./; q'`
14073 else
14074 continue
14075 fi
14076 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 14077 # from the Makefile without running 'make'.
8d138742
CE
14078 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14079 test -z "$DEPDIR" && continue
14080 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 14081 test -z "$am__include" && continue
8d138742 14082 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
14083 # Find all dependency output files, they are included files with
14084 # $(DEPDIR) in their names. We invoke sed twice because it is the
14085 # simplest approach to changing $(DEPDIR) to its actual value in the
14086 # expansion.
14087 for file in `sed -n "
14088 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 14089 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
14090 # Make sure the directory exists.
14091 test -f "$dirpart/$file" && continue
14092 fdir=`$as_dirname -- "$file" ||
14093$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14094 X"$file" : 'X\(//\)[^/]' \| \
14095 X"$file" : 'X\(//\)$' \| \
14096 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14097$as_echo X"$file" |
14098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14099 s//\1/
14100 q
14101 }
14102 /^X\(\/\/\)[^/].*/{
14103 s//\1/
14104 q
14105 }
14106 /^X\(\/\/\)$/{
14107 s//\1/
14108 q
14109 }
14110 /^X\(\/\).*/{
14111 s//\1/
14112 q
14113 }
14114 s/.*/./; q'`
b0322a85 14115 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
14116 # echo "creating $dirpart/$file"
14117 echo '# dummy' > "$dirpart/$file"
14118 done
14119 done
14120}
14121 ;;
14122 "libtool":C)
d9898ee8 14123
d50284c4 14124 # See if we are running on zsh, and set the options that allow our
8d138742 14125 # commands through without removal of \ escapes.
d50284c4 14126 if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
14127 setopt NO_GLOB_SUBST
14128 fi
d9898ee8 14129
d50284c4 14130 cfgfile=${ofile}T
8d138742
CE
14131 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14132 $RM "$cfgfile"
d9898ee8 14133
8d138742
CE
14134 cat <<_LT_EOF >> "$cfgfile"
14135#! $SHELL
d50284c4 14136# Generated automatically by $as_me ($PACKAGE) $VERSION
8d138742
CE
14137# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14138# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d50284c4
CE
14139
14140# Provide generalized library-building support services.
14141# Written by Gordon Matzigkeit, 1996
14142
14143# Copyright (C) 2014 Free Software Foundation, Inc.
14144# This is free software; see the source for copying conditions. There is NO
14145# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14146
14147# GNU Libtool is free software; you can redistribute it and/or modify
14148# it under the terms of the GNU General Public License as published by
14149# the Free Software Foundation; either version 2 of of the License, or
14150# (at your option) any later version.
d9898ee8 14151#
d50284c4
CE
14152# As a special exception to the GNU General Public License, if you
14153# distribute this file as part of a program or library that is built
14154# using GNU Libtool, you may include this file under the same
14155# distribution terms that you use for the rest of that program.
8d138742 14156#
d50284c4
CE
14157# GNU Libtool is distributed in the hope that it will be useful, but
14158# WITHOUT ANY WARRANTY; without even the implied warranty of
8d138742
CE
14159# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14160# GNU General Public License for more details.
14161#
14162# You should have received a copy of the GNU General Public License
d50284c4 14163# along with this program. If not, see <http://www.gnu.org/licenses/>.
d9898ee8 14164
d9898ee8 14165
8d138742 14166# The names of the tagged configurations supported by this script.
d50284c4
CE
14167available_tags=''
14168
14169# Configured defaults for sys_lib_dlsearch_path munging.
14170: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
dd184caf 14171
8d138742 14172# ### BEGIN LIBTOOL CONFIG
d9898ee8 14173
8d138742
CE
14174# Which release of libtool.m4 was used?
14175macro_version=$macro_version
14176macro_revision=$macro_revision
d9898ee8 14177
8d138742
CE
14178# Whether or not to build shared libraries.
14179build_libtool_libs=$enable_shared
d9898ee8 14180
8d138742
CE
14181# Whether or not to build static libraries.
14182build_old_libs=$enable_static
d9898ee8 14183
8d138742
CE
14184# What type of objects to build.
14185pic_mode=$pic_mode
d9898ee8 14186
8d138742
CE
14187# Whether or not to optimize for fast installation.
14188fast_install=$enable_fast_install
d9898ee8 14189
d50284c4
CE
14190# Shared archive member basename,for filename based shared library versioning on AIX.
14191shared_archive_member_spec=$shared_archive_member_spec
14192
b0322a85
CE
14193# Shell to use when invoking shell scripts.
14194SHELL=$lt_SHELL
14195
14196# An echo program that protects backslashes.
14197ECHO=$lt_ECHO
14198
14199# The PATH separator for the build system.
14200PATH_SEPARATOR=$lt_PATH_SEPARATOR
14201
8d138742
CE
14202# The host system.
14203host_alias=$host_alias
14204host=$host
14205host_os=$host_os
d9898ee8 14206
8d138742
CE
14207# The build system.
14208build_alias=$build_alias
14209build=$build
14210build_os=$build_os
d9898ee8 14211
8d138742
CE
14212# A sed program that does not truncate output.
14213SED=$lt_SED
d9898ee8 14214
8d138742
CE
14215# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14216Xsed="\$SED -e 1s/^X//"
d9898ee8 14217
8d138742
CE
14218# A grep program that handles long lines.
14219GREP=$lt_GREP
dd184caf 14220
8d138742
CE
14221# An ERE matcher.
14222EGREP=$lt_EGREP
dd184caf 14223
8d138742
CE
14224# A literal string matcher.
14225FGREP=$lt_FGREP
dd184caf 14226
8d138742
CE
14227# A BSD- or MS-compatible name lister.
14228NM=$lt_NM
dd184caf 14229
8d138742
CE
14230# Whether we need soft or hard links.
14231LN_S=$lt_LN_S
dd184caf 14232
8d138742
CE
14233# What is the maximum length of a command?
14234max_cmd_len=$max_cmd_len
dd184caf 14235
8d138742
CE
14236# Object file suffix (normally "o").
14237objext=$ac_objext
d9898ee8 14238
8d138742
CE
14239# Executable file suffix (normally "").
14240exeext=$exeext
d9898ee8 14241
8d138742
CE
14242# whether the shell understands "unset".
14243lt_unset=$lt_unset
d9898ee8 14244
8d138742
CE
14245# turn spaces into newlines.
14246SP2NL=$lt_lt_SP2NL
dd184caf 14247
8d138742
CE
14248# turn newlines into spaces.
14249NL2SP=$lt_lt_NL2SP
dd184caf 14250
b0322a85
CE
14251# convert \$build file names to \$host format.
14252to_host_file_cmd=$lt_cv_to_host_file_cmd
14253
14254# convert \$build files to toolchain format.
14255to_tool_file_cmd=$lt_cv_to_tool_file_cmd
dd184caf 14256
8d138742
CE
14257# An object symbol dumper.
14258OBJDUMP=$lt_OBJDUMP
d9898ee8 14259
8d138742
CE
14260# Method to check whether dependent libraries are shared objects.
14261deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14262
b0322a85 14263# Command to use when deplibs_check_method = "file_magic".
8d138742 14264file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14265
b0322a85
CE
14266# How to find potential files when deplibs_check_method = "file_magic".
14267file_magic_glob=$lt_file_magic_glob
14268
14269# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14270want_nocaseglob=$lt_want_nocaseglob
14271
14272# DLL creation program.
14273DLLTOOL=$lt_DLLTOOL
14274
14275# Command to associate shared and link libraries.
14276sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14277
8d138742
CE
14278# The archiver.
14279AR=$lt_AR
b0322a85
CE
14280
14281# Flags to create an archive.
8d138742 14282AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14283
b0322a85
CE
14284# How to feed a file listing to the archiver.
14285archiver_list_spec=$lt_archiver_list_spec
14286
8d138742
CE
14287# A symbol stripping program.
14288STRIP=$lt_STRIP
d9898ee8 14289
8d138742
CE
14290# Commands used to install an old-style archive.
14291RANLIB=$lt_RANLIB
14292old_postinstall_cmds=$lt_old_postinstall_cmds
14293old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14294
b0322a85
CE
14295# Whether to use a lock for old archive extraction.
14296lock_old_archive_extraction=$lock_old_archive_extraction
14297
8d138742
CE
14298# A C compiler.
14299LTCC=$lt_CC
d9898ee8 14300
8d138742
CE
14301# LTCC compiler flags.
14302LTCFLAGS=$lt_CFLAGS
d9898ee8 14303
8d138742
CE
14304# Take the output of nm and produce a listing of raw symbols and C names.
14305global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14306
8d138742
CE
14307# Transform the output of nm in a proper C declaration.
14308global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14309
d50284c4
CE
14310# Transform the output of nm into a list of symbols to manually relocate.
14311global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14312
8d138742
CE
14313# Transform the output of nm in a C name address pair.
14314global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14315
8d138742
CE
14316# Transform the output of nm in a C name address pair when lib prefix is needed.
14317global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 14318
d50284c4
CE
14319# The name lister interface.
14320nm_interface=$lt_lt_cv_nm_interface
14321
b0322a85
CE
14322# Specify filename containing input files for \$NM.
14323nm_file_list_spec=$lt_nm_file_list_spec
d9898ee8 14324
d50284c4 14325# The root where to search for dependent libraries,and where our libraries should be installed.
b0322a85 14326lt_sysroot=$lt_sysroot
dd184caf 14327
d50284c4
CE
14328# Command to truncate a binary pipe.
14329lt_truncate_bin=$lt_lt_cv_truncate_bin
14330
b0322a85
CE
14331# The name of the directory that contains temporary libtool files.
14332objdir=$objdir
d9898ee8 14333
8d138742
CE
14334# Used to examine libraries when file_magic_cmd begins with "file".
14335MAGIC_CMD=$MAGIC_CMD
d9898ee8 14336
8d138742
CE
14337# Must we lock files when doing compilation?
14338need_locks=$lt_need_locks
d9898ee8 14339
b0322a85
CE
14340# Manifest tool.
14341MANIFEST_TOOL=$lt_MANIFEST_TOOL
14342
8d138742
CE
14343# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14344DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14345
8d138742
CE
14346# Tool to change global to local symbols on Mac OS X.
14347NMEDIT=$lt_NMEDIT
d9898ee8 14348
8d138742
CE
14349# Tool to manipulate fat objects and archives on Mac OS X.
14350LIPO=$lt_LIPO
d9898ee8 14351
8d138742
CE
14352# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14353OTOOL=$lt_OTOOL
d9898ee8 14354
8d138742
CE
14355# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14356OTOOL64=$lt_OTOOL64
d9898ee8 14357
8d138742
CE
14358# Old archive suffix (normally "a").
14359libext=$libext
d9898ee8 14360
8d138742
CE
14361# Shared library suffix (normally ".so").
14362shrext_cmds=$lt_shrext_cmds
d9898ee8 14363
8d138742
CE
14364# The commands to extract the exported symbol list from a shared archive.
14365extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14366
8d138742
CE
14367# Variables whose values should be saved in libtool wrapper scripts and
14368# restored at link time.
14369variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14370
8d138742
CE
14371# Do we need the "lib" prefix for modules?
14372need_lib_prefix=$need_lib_prefix
d9898ee8 14373
8d138742
CE
14374# Do we need a version for libraries?
14375need_version=$need_version
d9898ee8 14376
8d138742
CE
14377# Library versioning type.
14378version_type=$version_type
d9898ee8 14379
8d138742
CE
14380# Shared library runtime path variable.
14381runpath_var=$runpath_var
d9898ee8 14382
8d138742
CE
14383# Shared library path variable.
14384shlibpath_var=$shlibpath_var
d9898ee8 14385
8d138742
CE
14386# Is shlibpath searched before the hard-coded library search path?
14387shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14388
8d138742
CE
14389# Format of library name prefix.
14390libname_spec=$lt_libname_spec
d9898ee8 14391
8d138742
CE
14392# List of archive names. First name is the real one, the rest are links.
14393# The last name is the one that the linker finds with -lNAME
14394library_names_spec=$lt_library_names_spec
d9898ee8 14395
8d138742
CE
14396# The coded name of the library, if different from the real name.
14397soname_spec=$lt_soname_spec
d9898ee8 14398
b0322a85
CE
14399# Permission mode override for installation of shared libraries.
14400install_override_mode=$lt_install_override_mode
14401
8d138742
CE
14402# Command to use after installation of a shared archive.
14403postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14404
8d138742
CE
14405# Command to use after uninstallation of a shared archive.
14406postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14407
8d138742
CE
14408# Commands used to finish a libtool library installation in a directory.
14409finish_cmds=$lt_finish_cmds
dd184caf 14410
8d138742
CE
14411# As "finish_cmds", except a single script fragment to be evaled but
14412# not shown.
14413finish_eval=$lt_finish_eval
d9898ee8 14414
8d138742
CE
14415# Whether we should hardcode library paths into libraries.
14416hardcode_into_libs=$hardcode_into_libs
d9898ee8 14417
8d138742
CE
14418# Compile-time system search path for libraries.
14419sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14420
d50284c4
CE
14421# Detected run-time system search path for libraries.
14422sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14423
14424# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14425configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d9898ee8 14426
8d138742
CE
14427# Whether dlopen is supported.
14428dlopen_support=$enable_dlopen
d9898ee8 14429
8d138742
CE
14430# Whether dlopen of programs is supported.
14431dlopen_self=$enable_dlopen_self
d9898ee8 14432
8d138742
CE
14433# Whether dlopen of statically linked programs is supported.
14434dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14435
8d138742
CE
14436# Commands to strip libraries.
14437old_striplib=$lt_old_striplib
14438striplib=$lt_striplib
d9898ee8 14439
d9898ee8 14440
8d138742
CE
14441# The linker used to build libraries.
14442LD=$lt_LD
d9898ee8 14443
b0322a85
CE
14444# How to create reloadable object files.
14445reload_flag=$lt_reload_flag
14446reload_cmds=$lt_reload_cmds
14447
8d138742
CE
14448# Commands used to build an old-style archive.
14449old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14450
8d138742
CE
14451# A language specific compiler.
14452CC=$lt_compiler
d9898ee8 14453
8d138742
CE
14454# Is the compiler the GNU compiler?
14455with_gcc=$GCC
dd184caf 14456
8d138742
CE
14457# Compiler flag to turn off builtin functions.
14458no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 14459
8d138742
CE
14460# Additional compiler flags for building library objects.
14461pic_flag=$lt_lt_prog_compiler_pic
dd184caf 14462
b0322a85
CE
14463# How to pass a linker flag through the compiler.
14464wl=$lt_lt_prog_compiler_wl
14465
8d138742
CE
14466# Compiler flag to prevent dynamic linking.
14467link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14468
8d138742
CE
14469# Does compiler simultaneously support -c and -o options?
14470compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14471
14472# Whether or not to add -lc for building shared libraries.
14473build_libtool_need_lc=$archive_cmds_need_lc
14474
14475# Whether or not to disallow shared libs when runtime libs are static.
14476allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14477
14478# Compiler flag to allow reflexive dlopens.
14479export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 14480
8d138742
CE
14481# Compiler flag to generate shared objects directly from archives.
14482whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14483
8d138742
CE
14484# Whether the compiler copes with passing no objects directly.
14485compiler_needs_object=$lt_compiler_needs_object
d9898ee8 14486
8d138742
CE
14487# Create an old-style archive from a shared archive.
14488old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14489
8d138742
CE
14490# Create a temporary old-style archive to link instead of a shared archive.
14491old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14492
8d138742
CE
14493# Commands used to build a shared archive.
14494archive_cmds=$lt_archive_cmds
14495archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 14496
8d138742
CE
14497# Commands used to build a loadable module if different from building
14498# a shared archive.
14499module_cmds=$lt_module_cmds
14500module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 14501
8d138742
CE
14502# Whether we are building with GNU ld or not.
14503with_gnu_ld=$lt_with_gnu_ld
dd184caf 14504
8d138742
CE
14505# Flag that allows shared libraries with undefined symbols to be built.
14506allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 14507
8d138742
CE
14508# Flag that enforces no undefined symbols.
14509no_undefined_flag=$lt_no_undefined_flag
d9898ee8 14510
8d138742
CE
14511# Flag to hardcode \$libdir into a binary during linking.
14512# This must work even if \$libdir does not exist
14513hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14514
8d138742
CE
14515# Whether we need a single "-rpath" flag with a separated argument.
14516hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14517
d50284c4 14518# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742
CE
14519# DIR into the resulting binary.
14520hardcode_direct=$hardcode_direct
dd184caf 14521
d50284c4 14522# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742 14523# DIR into the resulting binary and the resulting library dependency is
d50284c4 14524# "absolute",i.e impossible to change by setting \$shlibpath_var if the
8d138742
CE
14525# library is relocated.
14526hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 14527
8d138742
CE
14528# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14529# into the resulting binary.
14530hardcode_minus_L=$hardcode_minus_L
dd184caf 14531
8d138742
CE
14532# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14533# into the resulting binary.
14534hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14535
8d138742
CE
14536# Set to "yes" if building a shared library automatically hardcodes DIR
14537# into the library and all subsequent libraries and executables linked
14538# against it.
14539hardcode_automatic=$hardcode_automatic
dd184caf 14540
8d138742
CE
14541# Set to yes if linker adds runtime paths of dependent libraries
14542# to runtime path list.
14543inherit_rpath=$inherit_rpath
dd184caf 14544
8d138742
CE
14545# Whether libtool must link a program against all its dependency libraries.
14546link_all_deplibs=$link_all_deplibs
dd184caf 14547
8d138742
CE
14548# Set to "yes" if exported symbols are required.
14549always_export_symbols=$always_export_symbols
dd184caf 14550
8d138742
CE
14551# The commands to list exported symbols.
14552export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 14553
8d138742
CE
14554# Symbols that should not be listed in the preloaded symbols.
14555exclude_expsyms=$lt_exclude_expsyms
d9898ee8 14556
8d138742
CE
14557# Symbols that must always be exported.
14558include_expsyms=$lt_include_expsyms
d9898ee8 14559
8d138742
CE
14560# Commands necessary for linking programs (against libraries) with templates.
14561prelink_cmds=$lt_prelink_cmds
d9898ee8 14562
b0322a85
CE
14563# Commands necessary for finishing linking programs.
14564postlink_cmds=$lt_postlink_cmds
14565
8d138742
CE
14566# Specify filename containing input files.
14567file_list_spec=$lt_file_list_spec
14568
14569# How to hardcode a shared library path into an executable.
14570hardcode_action=$hardcode_action
d9898ee8 14571
8d138742 14572# ### END LIBTOOL CONFIG
d9898ee8 14573
d50284c4
CE
14574_LT_EOF
14575
14576 cat <<'_LT_EOF' >> "$cfgfile"
14577
14578# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14579
14580# func_munge_path_list VARIABLE PATH
14581# -----------------------------------
14582# VARIABLE is name of variable containing _space_ separated list of
14583# directories to be munged by the contents of PATH, which is string
14584# having a format:
14585# "DIR[:DIR]:"
14586# string "DIR[ DIR]" will be prepended to VARIABLE
14587# ":DIR[:DIR]"
14588# string "DIR[ DIR]" will be appended to VARIABLE
14589# "DIRP[:DIRP]::[DIRA:]DIRA"
14590# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14591# "DIRA[ DIRA]" will be appended to VARIABLE
14592# "DIR[:DIR]"
14593# VARIABLE will be replaced by "DIR[ DIR]"
14594func_munge_path_list ()
14595{
14596 case x$2 in
14597 x)
14598 ;;
14599 *:)
14600 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14601 ;;
14602 x:*)
14603 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14604 ;;
14605 *::*)
14606 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14607 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14608 ;;
14609 *)
14610 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14611 ;;
14612 esac
14613}
14614
14615
14616# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14617func_cc_basename ()
14618{
14619 for cc_temp in $*""; do
14620 case $cc_temp in
14621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14623 \-*) ;;
14624 *) break;;
14625 esac
14626 done
14627 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14628}
14629
14630
14631# ### END FUNCTIONS SHARED WITH CONFIGURE
14632
8d138742 14633_LT_EOF
d9898ee8 14634
8d138742
CE
14635 case $host_os in
14636 aix3*)
14637 cat <<\_LT_EOF >> "$cfgfile"
14638# AIX sometimes has problems with the GCC collect2 program. For some
14639# reason, if we set the COLLECT_NAMES environment variable, the problems
14640# vanish in a puff of smoke.
d50284c4 14641if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
14642 COLLECT_NAMES=
14643 export COLLECT_NAMES
14644fi
14645_LT_EOF
14646 ;;
d9898ee8 14647 esac
8d138742
CE
14648
14649
d50284c4 14650ltmain=$ac_aux_dir/ltmain.sh
8d138742
CE
14651
14652
14653 # We use sed instead of cat because bash on DJGPP gets confused if
14654 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14655 # text mode, it properly converts lines to CR/LF. This bash problem
14656 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
14657 sed '$q' "$ltmain" >> "$cfgfile" \
14658 || (rm -f "$cfgfile"; exit 1)
14659
b0322a85 14660 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
14661 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14662 chmod +x "$ofile"
14663
d9898ee8 14664 ;;
dd184caf 14665
d9898ee8 14666 esac
dd184caf 14667done # for ac_tag
d9898ee8 14668
d9898ee8 14669
b0322a85 14670as_fn_exit 0
d9898ee8 14671_ACEOF
d9898ee8 14672ac_clean_files=$ac_clean_files_save
14673
8d138742 14674test $ac_write_fail = 0 ||
b0322a85 14675 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 14676
d9898ee8 14677
14678# configure is writing to config.log, and then calls config.status.
14679# config.status does its own redirection, appending to config.log.
14680# Unfortunately, on DOS this fails, as config.log is still kept open
14681# by configure, so config.status won't be able to write to it; its
14682# output is simply discarded. So we exec the FD to /dev/null,
14683# effectively closing config.log, so it can be properly (re)opened and
14684# appended to by config.status. When coming back to configure, we
14685# need to make the FD available again.
14686if test "$no_create" != yes; then
14687 ac_cs_success=:
14688 ac_config_status_args=
14689 test "$silent" = yes &&
14690 ac_config_status_args="$ac_config_status_args --quiet"
14691 exec 5>/dev/null
14692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14693 exec 5>>config.log
14694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14695 # would make configure fail if this is the last instruction.
b0322a85 14696 $ac_cs_success || as_fn_exit 1
d9898ee8 14697fi
8d138742 14698if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
14700$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14701fi
d9898ee8 14702