Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
0e333c05 3# Generated by GNU Autoconf 2.69 for courier-authlib 0.69.0.
d9898ee8 4#
8d138742 5# Report bugs to <courier-users@lists.sourceforge.net>.
d9898ee8 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'
dd184caf 56 else
8d138742
CE
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'
dd184caf 69 fi
8d138742
CE
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
d9898ee8 83
dd184caf 84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
dd184caf 89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
92as_myself=
93case $0 in #((
dd184caf 94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
b0322a85
CE
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
dd184caf 102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
8d138742 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 113 exit 1
dd184caf 114fi
115
b0322a85
CE
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
dd184caf 123done
d9898ee8 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8d138742
CE
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
d9898ee8 133
b0322a85
CE
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
dd184caf 430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 432 as_expr=expr
433else
434 as_expr=false
435fi
436
dd184caf 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 438 as_basename=basename
439else
440 as_basename=false
441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
d9898ee8 448
dd184caf 449as_me=`$as_basename -- "$0" ||
d9898ee8 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
dd184caf 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 453$as_echo X/"$0" |
dd184caf 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
d9898ee8 467
b0322a85
CE
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 474
d9898ee8 475
b0322a85
CE
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
d9898ee8 498
b0322a85
CE
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
dd184caf 509}
d9898ee8 510
b0322a85
CE
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
dd184caf 523
b0322a85
CE
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
dd184caf 527else
b0322a85
CE
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
dd184caf 530fi
b0322a85
CE
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
dd184caf 547fi
b0322a85
CE
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
dd184caf 550
b0322a85
CE
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
dd184caf 553else
b0322a85
CE
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
dd184caf 556fi
557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
dd184caf 560
b0322a85
CE
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 563
b0322a85
CE
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 566
b0322a85 567SHELL=${CONFIG_SHELL-/bin/sh}
dd184caf 568
b0322a85 569lt_ltdl_dir='libltdl'
dd184caf 570
d50284c4 571lt_dlopen_dir=$lt_ltdl_dir
dd184caf 572
dd184caf 573
b0322a85
CE
574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
dd184caf 576
d9898ee8 577# Name of the host.
b0322a85 578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d9898ee8 579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
d9898ee8 582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
dd184caf 586ac_clean_files=
d9898ee8 587ac_config_libobj_dir=.
dd184caf 588LIBOBJS=
d9898ee8 589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
d9898ee8 593
d9898ee8 594# Identity of this package.
595PACKAGE_NAME='courier-authlib'
596PACKAGE_TARNAME='courier-authlib'
0e333c05
CE
597PACKAGE_VERSION='0.69.0'
598PACKAGE_STRING='courier-authlib 0.69.0'
8d138742 599PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 600PACKAGE_URL=''
d9898ee8 601
602ac_unique_file="courierauth.h"
603# Factoring default headers for most tests.
604ac_includes_default="\
605#include <stdio.h>
dd184caf 606#ifdef HAVE_SYS_TYPES_H
d9898ee8 607# include <sys/types.h>
608#endif
dd184caf 609#ifdef HAVE_SYS_STAT_H
d9898ee8 610# include <sys/stat.h>
611#endif
dd184caf 612#ifdef STDC_HEADERS
d9898ee8 613# include <stdlib.h>
614# include <stddef.h>
615#else
dd184caf 616# ifdef HAVE_STDLIB_H
d9898ee8 617# include <stdlib.h>
618# endif
619#endif
dd184caf 620#ifdef HAVE_STRING_H
621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 622# include <memory.h>
623# endif
624# include <string.h>
625#endif
dd184caf 626#ifdef HAVE_STRINGS_H
d9898ee8 627# include <strings.h>
628#endif
dd184caf 629#ifdef HAVE_INTTYPES_H
d9898ee8 630# include <inttypes.h>
d9898ee8 631#endif
dd184caf 632#ifdef HAVE_STDINT_H
633# include <stdint.h>
634#endif
635#ifdef HAVE_UNISTD_H
d9898ee8 636# include <unistd.h>
637#endif"
638
8d138742
CE
639enable_option_checking=no
640ac_subst_vars='ltdl_LTLIBOBJS
641ltdl_LIBOBJS
642am__EXEEXT_FALSE
643am__EXEEXT_TRUE
644LTLIBOBJS
645LIBOBJS
646HAVE_SGML_FALSE
647HAVE_SGML_TRUE
648REPOSITORY
649mailgroup
650mailuser
651LIBM
652authdaemonvar
653authdaemonrc
654CRYPTLIBS
655LIBAUTHPIPE
656HAVE_PIPE_FALSE
657HAVE_PIPE_TRUE
658authProg
659LIBAUTHCUSTOM
660HAVE_CUSTOM_FALSE
661HAVE_CUSTOM_TRUE
b0322a85
CE
662HAVE_AUTHSQLITE_FALSE
663HAVE_AUTHSQLITE_TRUE
664LIBAUTHSQLITE
665SQLITE_LIBS
666authsqliterc
8d138742
CE
667HAVE_AUTHMYSQL_FALSE
668HAVE_AUTHMYSQL_TRUE
669MYSQL_LIBS
670LIBAUTHMYSQL
671MYSQL_CONFIG
672authmysqlrc
673HAVE_AUTHPGSQL_FALSE
674HAVE_AUTHPGSQL_TRUE
675LIBAUTHPGSQL
676PGSQL_LIBS
677PG_CONFIG
678authpgsqlrc
679LIBAUTHPWD
680LIBAUTHSHADOW
681SHADOWLIBS
682HAVE_LDAP_FALSE
683HAVE_LDAP_TRUE
684LIBAUTHLDAP
685LDAPLIBS
686authldaprc
687LIBAUTHPAM
688AUTHPAMCRYPT
689LIBDL
690userdb
691LIBAUTHUSERDB
692LIBDB
693LIBGDBM
694dblibrary
695USE_DB
696USE_GDBM
697NETLIBS
698PASSWD
699EXPECT
700COURIERCONFIG
701PERL
702LTDLOPEN
703LT_CONFIG_H
704subdirs
705CONVENIENCE_LTDL_FALSE
706CONVENIENCE_LTDL_TRUE
707INSTALL_LTDL_FALSE
708INSTALL_LTDL_TRUE
d50284c4 709LT_ARGZ_H
8d138742
CE
710sys_symbol_underscore
711LIBADD_DL
712LT_DLPREOPEN
713LIBADD_DLD_LINK
714LIBADD_SHL_LOAD
715LIBADD_DLOPEN
716LT_DLLOADERS
717INCLTDL
718LTDLINCL
719LTDLDEPS
720LIBLTDL
0e333c05 721CXXCPP
d50284c4 722LT_SYS_LIBRARY_PATH
8d138742
CE
723OTOOL64
724OTOOL
725LIPO
726NMEDIT
727DSYMUTIL
b0322a85 728MANIFEST_TOOL
8d138742 729RANLIB
b0322a85 730ac_ct_AR
8d138742 731AR
b0322a85 732DLLTOOL
8d138742
CE
733OBJDUMP
734NM
735ac_ct_DUMPBIN
736DUMPBIN
737LD
738FGREP
739EGREP
740GREP
741SED
742host_os
743host_vendor
744host_cpu
745host
746build_os
747build_vendor
748build_cpu
749build
750LIBTOOL
751SYSCONFTOOL
752SYSCONFTOOL_PERL
753LN_S
754CPP
0e333c05
CE
755am__fastdepCXX_FALSE
756am__fastdepCXX_TRUE
757CXXDEPMODE
758ac_ct_CXX
759CXXFLAGS
760CXX
8d138742
CE
761am__fastdepCC_FALSE
762am__fastdepCC_TRUE
763CCDEPMODE
b0322a85 764am__nodep
8d138742
CE
765AMDEPBACKSLASH
766AMDEP_FALSE
767AMDEP_TRUE
768am__quote
769am__include
770DEPDIR
771OBJEXT
772EXEEXT
773ac_ct_CC
774CPPFLAGS
775LDFLAGS
776CFLAGS
777CC
b0322a85
CE
778AM_BACKSLASH
779AM_DEFAULT_VERBOSITY
780AM_DEFAULT_V
781AM_V
8d138742
CE
782am__untar
783am__tar
784AMTAR
785am__leading_dot
786SET_MAKE
787AWK
788mkdir_p
789MKDIR_P
790INSTALL_STRIP_PROGRAM
791STRIP
792install_sh
793MAKEINFO
794AUTOHEADER
795AUTOMAKE
796AUTOCONF
797ACLOCAL
798VERSION
799PACKAGE
800CYGPATH_W
801am__isrc
802INSTALL_DATA
803INSTALL_SCRIPT
804INSTALL_PROGRAM
805target_alias
806host_alias
dd184caf 807build_alias
8d138742
CE
808LIBS
809ECHO_T
810ECHO_N
811ECHO_C
812DEFS
813mandir
814localedir
815libdir
816psdir
817pdfdir
818dvidir
819htmldir
820infodir
821docdir
822oldincludedir
823includedir
824localstatedir
825sharedstatedir
826sysconfdir
827datadir
828datarootdir
829libexecdir
830sbindir
831bindir
832program_transform_name
833prefix
834exec_prefix
b0322a85 835PACKAGE_URL
8d138742
CE
836PACKAGE_BUGREPORT
837PACKAGE_STRING
838PACKAGE_VERSION
839PACKAGE_TARNAME
840PACKAGE_NAME
841PATH_SEPARATOR
842SHELL'
843ac_subst_files=''
844ac_user_opts='
845enable_option_checking
b0322a85 846enable_silent_rules
8d138742
CE
847enable_dependency_tracking
848enable_shared
849enable_static
850with_pic
851enable_fast_install
d50284c4 852with_aix_soname
8d138742 853with_gnu_ld
b0322a85 854with_sysroot
8d138742
CE
855enable_libtool_lock
856with_included_ltdl
857with_ltdl_include
858with_ltdl_lib
859enable_ltdl_install
8d138742
CE
860with_pkgconfdir
861with_db
862with_authuserdb
863with_makedatprog
864with_userdb
865with_authpam
866with_authpam_libraries
867with_authldap
868with_authldaprc
869with_authpwd
870with_authshadow
871with_authpgsqlrc
872with_authpgsql
873with_pgsql_libs
874with_pgsql_includes
875with_authmysqlrc
876with_authmysql
877with_mysql_libs
878with_mysql_includes
b0322a85
CE
879with_authsqliterc
880with_authsqlite
881with_sqlite_libs
882with_sqlite_includes
8d138742
CE
883with_authcustom
884with_pipeprog
885with_authpipe
886with_authdaemonrc
887with_authdaemonvar
888with_mailuser
889with_mailgroup
890with_stdheaderdir
891with_repository
892'
893 ac_precious_vars='build_alias
dd184caf 894host_alias
895target_alias
896CC
897CFLAGS
898LDFLAGS
899LIBS
900CPPFLAGS
0e333c05
CE
901CXX
902CXXFLAGS
903CCC
d50284c4 904CPP
0e333c05
CE
905LT_SYS_LIBRARY_PATH
906CXXCPP'
8d138742 907ac_subdirs_all='libltdl
d50284c4 908libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog'
d9898ee8 909
910# Initialize some variables set by options.
911ac_init_help=
912ac_init_version=false
8d138742
CE
913ac_unrecognized_opts=
914ac_unrecognized_sep=
d9898ee8 915# The variables have the same names as the options, with
916# dashes changed to underlines.
917cache_file=/dev/null
918exec_prefix=NONE
919no_create=
920no_recursion=
921prefix=NONE
922program_prefix=NONE
923program_suffix=NONE
924program_transform_name=s,x,x,
925silent=
926site=
927srcdir=
928verbose=
929x_includes=NONE
930x_libraries=NONE
931
932# Installation directory options.
933# These are left unexpanded so users can "make install exec_prefix=/foo"
934# and all the variables that are supposed to be based on exec_prefix
935# by default will actually change.
936# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 937# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 938bindir='${exec_prefix}/bin'
939sbindir='${exec_prefix}/sbin'
940libexecdir='${exec_prefix}/libexec'
dd184caf 941datarootdir='${prefix}/share'
942datadir='${datarootdir}'
d9898ee8 943sysconfdir='${prefix}/etc'
944sharedstatedir='${prefix}/com'
945localstatedir='${prefix}/var'
d9898ee8 946includedir='${prefix}/include'
947oldincludedir='/usr/include'
dd184caf 948docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949infodir='${datarootdir}/info'
950htmldir='${docdir}'
951dvidir='${docdir}'
952pdfdir='${docdir}'
953psdir='${docdir}'
954libdir='${exec_prefix}/lib'
955localedir='${datarootdir}/locale'
956mandir='${datarootdir}/man'
d9898ee8 957
958ac_prev=
dd184caf 959ac_dashdash=
d9898ee8 960for ac_option
961do
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
dd184caf 964 eval $ac_prev=\$ac_option
d9898ee8 965 ac_prev=
966 continue
967 fi
968
dd184caf 969 case $ac_option in
b0322a85
CE
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 *=) ac_optarg= ;;
972 *) ac_optarg=yes ;;
dd184caf 973 esac
d9898ee8 974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
dd184caf 977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
d9898ee8 980
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
985
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
1000
dd184caf 1001 -datadir | --datadir | --datadi | --datad)
d9898ee8 1002 ac_prev=datadir ;;
dd184caf 1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1004 datadir=$ac_optarg ;;
1005
dd184caf 1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
d9898ee8 1013 -disable-* | --disable-*)
8d138742 1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1015 # Reject names that are not valid shell variable names.
8d138742 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1017 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022"enable_$ac_useropt"
1023"*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=no ;;
dd184caf 1028
1029 -docdir | --docdir | --docdi | --doc | --do)
1030 ac_prev=docdir ;;
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1033
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 ac_prev=dvidir ;;
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
d9898ee8 1038
1039 -enable-* | --enable-*)
8d138742 1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1041 # Reject names that are not valid shell variable names.
8d138742 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1043 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1054
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1063
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1067
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1074
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1079
dd184caf 1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1085
d9898ee8 1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1092
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1097
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1102
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1109
dd184caf 1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1114
d9898ee8 1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1116 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1120 localstatedir=$ac_optarg ;;
1121
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1126
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1130
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1133 no_create=yes ;;
1134
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1138
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1147
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1152
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1159
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1166
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1183
dd184caf 1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1188
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1193
d9898ee8 1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1197
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 ac_prev=sbindir ;;
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 | --sbi=* | --sb=*)
1202 sbindir=$ac_optarg ;;
1203
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1207 | --sha | --sh)
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 | --sha=* | --sh=*)
1213 sharedstatedir=$ac_optarg ;;
1214
1215 -site | --site | --sit)
1216 ac_prev=site ;;
1217 -site=* | --site=* | --sit=*)
1218 site=$ac_optarg ;;
1219
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 ac_prev=srcdir ;;
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223 srcdir=$ac_optarg ;;
1224
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230 sysconfdir=$ac_optarg ;;
1231
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
1233 ac_prev=target_alias ;;
1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235 target_alias=$ac_optarg ;;
1236
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 verbose=yes ;;
1239
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
1242
1243 -with-* | --with-*)
8d138742 1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1245 # Reject names that are not valid shell variable names.
8d138742 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1247 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1258
1259 -without-* | --without-*)
8d138742 1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1261 # Reject names that are not valid shell variable names.
8d138742 1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1263 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1267 *"
1268"with_$ac_useropt"
1269"*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1272 esac
1273 eval with_$ac_useropt=no ;;
d9898ee8 1274
1275 --x)
1276 # Obsolete; use --with-x.
1277 with_x=yes ;;
1278
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1285
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1292
b0322a85
CE
1293 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294Try \`$0 --help' for more information"
d9898ee8 1295 ;;
1296
1297 *=*)
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
b0322a85
CE
1300 case $ac_envvar in #(
1301 '' | [0-9]* | *[!_$as_cr_alnum]* )
1302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303 esac
dd184caf 1304 eval $ac_envvar=\$ac_optarg
d9898ee8 1305 export $ac_envvar ;;
1306
1307 *)
1308 # FIXME: should be removed in autoconf 3.0.
8d138742 1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1313 ;;
1314
1315 esac
1316done
1317
1318if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1320 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1321fi
1322
8d138742
CE
1323if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1325 no) ;;
b0322a85 1326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 esac
1329fi
1330
1331# Check all directory arguments for consistency.
dd184caf 1332for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
d9898ee8 1336do
dd184caf 1337 eval ac_val=\$$ac_var
8d138742
CE
1338 # Remove trailing slashes.
1339 case $ac_val in
1340 */ )
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1343 esac
1344 # Be sure to have absolute directory names.
d9898ee8 1345 case $ac_val in
dd184caf 1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1348 esac
b0322a85 1349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1350done
1351
1352# There might be people who depend on the old broken behavior: `$host'
1353# used to hold the argument of --host etc.
1354# FIXME: To remove some day.
1355build=$build_alias
1356host=$host_alias
1357target=$target_alias
1358
1359# FIXME: To remove some day.
1360if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
d9898ee8 1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1365 fi
1366fi
1367
1368ac_tool_prefix=
1369test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371test "$silent" = yes && exec 6>/dev/null
1372
1373
dd184caf 1374ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375ac_ls_di=`ls -di .` &&
1376ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1377 as_fn_error $? "working directory cannot be determined"
dd184caf 1378test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1379 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1380
1381
d9898ee8 1382# Find the source files, if location was not specified.
1383if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
dd184caf 1385 # Try the directory containing this script, then the parent directory.
8d138742
CE
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391$as_echo X"$as_myself" |
dd184caf 1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\).*/{
1405 s//\1/
1406 q
1407 }
1408 s/.*/./; q'`
d9898ee8 1409 srcdir=$ac_confdir
dd184caf 1410 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1411 srcdir=..
1412 fi
1413else
1414 ac_srcdir_defaulted=no
1415fi
dd184caf 1416if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1418 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1419fi
dd184caf 1420ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421ac_abs_confdir=`(
b0322a85 1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1423 pwd)`
1424# When building in place, set srcdir=.
1425if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 srcdir=.
1427fi
1428# Remove unnecessary trailing slashes from srcdir.
1429# Double slashes in file names in object file debugging info
1430# mess up M-x gdb in Emacs.
1431case $srcdir in
1432*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433esac
1434for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439done
d9898ee8 1440
1441#
1442# Report the --help message.
1443#
1444if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
0e333c05 1448\`configure' configures courier-authlib 0.69.0 to adapt to many kinds of systems.
d9898ee8 1449
1450Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455Defaults for the options are specified in brackets.
1456
1457Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
b0322a85 1462 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
d9898ee8 1468Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1470 [$ac_default_prefix]
d9898ee8 1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1472 [PREFIX]
d9898ee8 1473
1474By default, \`make install' will install all the files in
1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477for instance \`--prefix=\$HOME'.
1478
1479For better control, use the options below.
1480
1481Fine tuning of the installation directories:
8d138742
CE
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1501_ACEOF
1502
1503 cat <<\_ACEOF
1504
1505Program names:
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509
1510System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513_ACEOF
1514fi
1515
1516if test -n "$ac_init_help"; then
1517 case $ac_init_help in
0e333c05 1518 short | recursive ) echo "Configuration of courier-authlib 0.69.0:";;
d9898ee8 1519 esac
1520 cat <<\_ACEOF
1521
1522Optional Features:
8d138742 1523 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1526 --enable-silent-rules less verbose build output (undo: "make V=1")
1527 --disable-silent-rules verbose build output (undo: "make V=0")
1528 --enable-dependency-tracking
1529 do not reject slow dependency extractors
1530 --disable-dependency-tracking
1531 speeds up one-time build
dd184caf 1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
8d138742 1537 --enable-ltdl-install install libltdl
d9898ee8 1538
1539Optional Packages:
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1542 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1543 both]
d50284c4
CE
1544 --with-aix-soname=aix|svr4|both
1545 shared library versioning (aka "SONAME") variant to
1546 provide on AIX, [default=aix].
8d138742 1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d50284c4
CE
1548 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1549 compiler's sysroot if not specified).
8d138742
CE
1550 --with-included-ltdl use the GNU ltdl sources included here
1551 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1552 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
d9898ee8 1553 --with-pkgconfdir=d Install config files in directory
1554 --with-db=gdbm Use the GDBM library.
1555 --with-db=db Use the libdb.a library.
1556 --without-authuserdb Do not include the authuserdb module
1557
b0322a85 1558
d9898ee8 1559 --without-authpam Do not include the authpam module
1560 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1561 required for FreeBSD 3.3
1562 --without-authldap Do not include the authldap module
1563 --with-authldaprc=filename Expect to find authldaprc here
1564 --without-authpwd Do not include the authpwd module
1565 --without-authshadow Do not include the authshadow module
d9898ee8 1566 --with-authpgsqlrc=filename Expect to find authpgsql here
1567 --without-authpgsql Do not include the authpgsql module
1568 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1569 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1570 --with-authmysqlrc=filename Expect to find authmysql here
1571 --without-authmysql Do not include the authmysql module
1572 --with-mysql-libs=DIR Look for mysql libs in this dir
1573 --with-mysql-includes=DIR Look for mysql includes in this dir
b0322a85
CE
1574 --with-authsqliterc=filename Expect to find authmysql here
1575 --without-authsqlite Do not include the authsqlite module
1576 --with-sqlite-libs=DIR Look for sqlite libs in this dir
1577 --with-sqlite-includes=DIR Look for sqlite includes in this dir
d9898ee8 1578 --without-authcustom Do not include the authcustom module
1579 --with-pipeprog=filename Expect to find the pipe-prog here
1580 --without-authpipe Do not include the authpipe module
1581 --with-authdaemonrc=filename Expect to find authdaemonrc here
1582 --with-authdaemonvar=directory Directory where authdaemon.pid and
1583 the listening socket is created
1584 --with-mailuser=user Specify mail user name (defaults to
1585 courier, daemon, admin, bin, or root)
1586 --with-mailgroup=group Specify mail group name (defaults to courier,
1587 daemon, sys, adm, or root)
1588 --without-stdheaderdir Header files will be installed into a directory
1589 not in the compiler's default search path.
1590
1591Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
dd184caf 1596 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1598 you have headers in a nonstandard directory <include dir>
0e333c05
CE
1599 CXX C++ compiler command
1600 CXXFLAGS C++ compiler flags
d9898ee8 1601 CPP C preprocessor
d50284c4
CE
1602 LT_SYS_LIBRARY_PATH
1603 User-defined run-time library search path.
0e333c05 1604 CXXCPP C++ preprocessor
d9898ee8 1605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
8d138742 1609Report bugs to <courier-users@lists.sourceforge.net>.
d9898ee8 1610_ACEOF
dd184caf 1611ac_status=$?
d9898ee8 1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
d9898ee8 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
d9898ee8 1620 ac_builddir=.
1621
dd184caf 1622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
8d138742 1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1626 # A ".." for each directory in $ac_dir_suffix.
8d138742 1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
d9898ee8 1637
1638case $srcdir in
dd184caf 1639 .) # We are building in place.
d9898ee8 1640 ac_srcdir=.
dd184caf 1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1644 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1651esac
dd184caf 1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1662 else
8d138742 1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1666 done
1667fi
1668
dd184caf 1669test -n "$ac_init_help" && exit $ac_status
d9898ee8 1670if $ac_init_version; then
1671 cat <<\_ACEOF
0e333c05 1672courier-authlib configure 0.69.0
b0322a85 1673generated by GNU Autoconf 2.69
d9898ee8 1674
b0322a85 1675Copyright (C) 2012 Free Software Foundation, Inc.
d9898ee8 1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
dd184caf 1679 exit
d9898ee8 1680fi
d9898ee8 1681
b0322a85
CE
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
d9898ee8 1685
b0322a85
CE
1686# ac_fn_c_try_compile LINENO
1687# --------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_compile ()
d9898ee8 1690{
b0322a85
CE
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 1716
b0322a85
CE
1717 ac_retval=1
1718fi
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_compile
1723
0e333c05
CE
1724# ac_fn_cxx_try_compile LINENO
1725# ----------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_cxx_try_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760} # ac_fn_cxx_try_compile
1761
b0322a85
CE
1762# ac_fn_c_try_cpp LINENO
1763# ----------------------
1764# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_cpp ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1769case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } > conftest.i && {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 }; then :
1787 ac_retval=0
1788else
1789 $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793fi
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1796
1797} # ac_fn_c_try_cpp
1798
1799# ac_fn_c_try_link LINENO
1800# -----------------------
1801# Try to link conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_link ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1807case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 test -x conftest$ac_exeext
1827 }; then :
1828 ac_retval=0
1829else
1830 $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834fi
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_link
1844
1845# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846# -------------------------------------------------------
1847# Tests whether HEADER exists and can be compiled using the include files in
1848# INCLUDES, setting the cache variable VAR accordingly.
1849ac_fn_c_check_header_compile ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1856else
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h. */
1859$4
1860#include <$2>
1861_ACEOF
1862if ac_fn_c_try_compile "$LINENO"; then :
1863 eval "$3=yes"
1864else
1865 eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_header_compile
1875
1876# ac_fn_c_try_run LINENO
1877# ----------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879# that executables *can* be run.
1880ac_fn_c_try_run ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>&5
1891 ac_status=$?
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894 { { case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_try") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; }; }; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: program exited with status $ac_status" >&5
1907 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=$ac_status
1911fi
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1915
1916} # ac_fn_c_try_run
1917
1918# ac_fn_c_check_func LINENO FUNC VAR
1919# ----------------------------------
1920# Tests whether FUNC exists, setting the cache variable VAR accordingly
1921ac_fn_c_check_func ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933#define $2 innocuous_$2
1934
1935/* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1939
1940#ifdef __STDC__
1941# include <limits.h>
1942#else
1943# include <assert.h>
1944#endif
1945
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main ()
1964{
1965return $2 ();
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"; then :
1971 eval "$3=yes"
1972else
1973 eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_c_check_func
1984
0e333c05
CE
1985# ac_fn_cxx_try_cpp LINENO
1986# ------------------------
1987# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988ac_fn_cxx_try_cpp ()
1989{
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { { ac_try="$ac_cpp conftest.$ac_ext"
1992case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995esac
1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997$as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1999 ac_status=$?
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2004 fi
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } > conftest.i && {
2007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2009 }; then :
2010 ac_retval=0
2011else
2012 $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016fi
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2019
2020} # ac_fn_cxx_try_cpp
2021
2022# ac_fn_cxx_try_link LINENO
2023# -------------------------
2024# Try to link conftest.$ac_ext, and return whether this succeeded.
2025ac_fn_cxx_try_link ()
2026{
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 rm -f conftest.$ac_objext conftest$ac_exeext
2029 if { { ac_try="$ac_link"
2030case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033esac
2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035$as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>conftest.err
2037 ac_status=$?
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2042 fi
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } && {
2045 test -z "$ac_cxx_werror_flag" ||
2046 test ! -s conftest.err
2047 } && test -s conftest$ac_exeext && {
2048 test "$cross_compiling" = yes ||
2049 test -x conftest$ac_exeext
2050 }; then :
2051 ac_retval=0
2052else
2053 $as_echo "$as_me: failed program was:" >&5
2054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 ac_retval=1
2057fi
2058 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060 # interfere with the next link command; also delete a directory that is
2061 # left behind by Apple's compiler. We do this before executing the actions.
2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 as_fn_set_status $ac_retval
2065
2066} # ac_fn_cxx_try_link
2067
b0322a85
CE
2068# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2069# ---------------------------------------------
2070# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2071# accordingly.
2072ac_fn_c_check_decl ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 as_decl_name=`echo $2|sed 's/ *(.*//'`
2076 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079if eval \${$3+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088#ifndef $as_decl_name
2089#ifdef __cplusplus
2090 (void) $as_decl_use;
2091#else
2092 (void) $as_decl_name;
2093#endif
2094#endif
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$3=yes"
2102else
2103 eval "$3=no"
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112} # ac_fn_c_check_decl
2113
2114# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115# -------------------------------------------
2116# Tests whether TYPE exists after having included INCLUDES, setting cache
2117# variable VAR accordingly.
2118ac_fn_c_check_type ()
2119{
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122$as_echo_n "checking for $2... " >&6; }
2123if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125else
2126 eval "$3=no"
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130int
2131main ()
2132{
2133if (sizeof ($2))
2134 return 0;
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h. */
2142$4
2143int
2144main ()
2145{
2146if (sizeof (($2)))
2147 return 0;
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153
2154else
2155 eval "$3=yes"
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160fi
2161eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163$as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166} # ac_fn_c_check_type
2167
2168# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2169# -------------------------------------------------------
2170# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2171# the include files in INCLUDES and setting the cache variable VAR
2172# accordingly.
2173ac_fn_c_check_header_mongrel ()
2174{
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if eval \${$3+:} false; then :
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178$as_echo_n "checking for $2... " >&6; }
2179if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2181fi
2182eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184$as_echo "$ac_res" >&6; }
2185else
2186 # Is the header compilable?
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2188$as_echo_n "checking $2 usability... " >&6; }
2189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h. */
2191$4
2192#include <$2>
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_header_compiler=yes
2196else
2197 ac_header_compiler=no
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2201$as_echo "$ac_header_compiler" >&6; }
2202
2203# Is the header present?
2204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2205$as_echo_n "checking $2 presence... " >&6; }
2206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h. */
2208#include <$2>
2209_ACEOF
2210if ac_fn_c_try_cpp "$LINENO"; then :
2211 ac_header_preproc=yes
2212else
2213 ac_header_preproc=no
2214fi
2215rm -f conftest.err conftest.i conftest.$ac_ext
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2217$as_echo "$ac_header_preproc" >&6; }
2218
2219# So? What about this header?
2220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2221 yes:no: )
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2223$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226 ;;
2227 no:yes:* )
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2229$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2231$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2233$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2235$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238( $as_echo "## -------------------------------------------------- ##
2239## Report this to courier-users@lists.sourceforge.net ##
2240## -------------------------------------------------- ##"
2241 ) | sed "s/^/$as_me: WARNING: /" >&2
2242 ;;
2243esac
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245$as_echo_n "checking for $2... " >&6; }
2246if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248else
2249 eval "$3=\$ac_header_compiler"
2250fi
2251eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253$as_echo "$ac_res" >&6; }
2254fi
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256
2257} # ac_fn_c_check_header_mongrel
2258cat >config.log <<_ACEOF
2259This file contains any messages produced by compilers while
2260running configure, to aid debugging if configure makes a mistake.
2261
0e333c05 2262It was created by courier-authlib $as_me 0.69.0, which was
b0322a85
CE
2263generated by GNU Autoconf 2.69. Invocation command line was
2264
2265 $ $0 $@
2266
2267_ACEOF
2268exec 5>>config.log
2269{
2270cat <<_ASUNAME
2271## --------- ##
2272## Platform. ##
2273## --------- ##
2274
2275hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
d9898ee8 2276uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280
2281/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283
2284/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 2287/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 2288/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291
2292_ASUNAME
2293
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
b0322a85
CE
2299 $as_echo "PATH: $as_dir"
2300 done
dd184caf 2301IFS=$as_save_IFS
d9898ee8 2302
2303} >&5
2304
2305cat >&5 <<_ACEOF
2306
2307
2308## ----------- ##
2309## Core tests. ##
2310## ----------- ##
2311
2312_ACEOF
2313
2314
2315# Keep a trace of the command line.
2316# Strip out --no-create and --no-recursion so they do not pile up.
2317# Strip out --silent because we don't want to record it for future runs.
2318# Also quote any args containing shell meta-characters.
2319# Make two passes to allow for proper duplicate-argument suppression.
2320ac_configure_args=
2321ac_configure_args0=
2322ac_configure_args1=
d9898ee8 2323ac_must_keep_next=false
2324for ac_pass in 1 2
2325do
2326 for ac_arg
2327 do
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
dd184caf 2333 *\'*)
8d138742 2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2335 esac
2336 case $ac_pass in
b0322a85 2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 2338 2)
b0322a85 2339 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2351 ;;
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2354 fi
b0322a85 2355 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2356 ;;
2357 esac
2358 done
2359done
b0322a85
CE
2360{ ac_configure_args0=; unset ac_configure_args0;}
2361{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2362
2363# When interrupted or exit'd, cleanup temporary files, and complete
2364# config.log. We remove comments because anyway the quotes in there
2365# would cause problems or look ugly.
dd184caf 2366# WARNING: Use '\'' to represent an apostrophe within the trap.
2367# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2368trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2370 {
2371 echo
2372
b0322a85 2373 $as_echo "## ---------------- ##
d9898ee8 2374## Cache variables. ##
b0322a85 2375## ---------------- ##"
d9898ee8 2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
dd184caf 2378(
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
b0322a85 2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
8d138742 2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2390 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2391 esac ;;
2392 esac
2393 done
d9898ee8 2394 (set) 2>&1 |
dd184caf 2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
d9898ee8 2397 sed -n \
dd184caf 2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
d9898ee8 2401 *)
dd184caf 2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2403 ;;
dd184caf 2404 esac |
2405 sort
2406)
d9898ee8 2407 echo
2408
b0322a85 2409 $as_echo "## ----------------- ##
d9898ee8 2410## Output variables. ##
b0322a85 2411## ----------------- ##"
d9898ee8 2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
dd184caf 2415 eval ac_val=\$$ac_var
2416 case $ac_val in
8d138742 2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2418 esac
8d138742 2419 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
b0322a85 2424 $as_echo "## ------------------- ##
dd184caf 2425## File substitutions. ##
b0322a85 2426## ------------------- ##"
d9898ee8 2427 echo
2428 for ac_var in $ac_subst_files
2429 do
dd184caf 2430 eval ac_val=\$$ac_var
2431 case $ac_val in
8d138742 2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2433 esac
8d138742 2434 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2435 done | sort
2436 echo
2437 fi
2438
2439 if test -s confdefs.h; then
b0322a85 2440 $as_echo "## ----------- ##
d9898ee8 2441## confdefs.h. ##
b0322a85 2442## ----------- ##"
d9898ee8 2443 echo
dd184caf 2444 cat confdefs.h
d9898ee8 2445 echo
2446 fi
2447 test "$ac_signal" != 0 &&
8d138742
CE
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
d9898ee8 2450 } >&5
dd184caf 2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2453 exit $exit_status
dd184caf 2454' 0
d9898ee8 2455for ac_signal in 1 2 13 15; do
b0322a85 2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2457done
2458ac_signal=0
2459
2460# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2461rm -f -r conftest* confdefs.h
d9898ee8 2462
b0322a85
CE
2463$as_echo "/* confdefs.h */" > confdefs.h
2464
d9898ee8 2465# Predefined preprocessor variables.
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_NAME "$PACKAGE_NAME"
2469_ACEOF
2470
d9898ee8 2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473_ACEOF
2474
d9898ee8 2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_VERSION "$PACKAGE_VERSION"
2477_ACEOF
2478
d9898ee8 2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_STRING "$PACKAGE_STRING"
2481_ACEOF
2482
d9898ee8 2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485_ACEOF
2486
b0322a85
CE
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_URL "$PACKAGE_URL"
2489_ACEOF
2490
d9898ee8 2491
2492# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2493# Prefer an explicitly selected file to automatically selected ones.
2494ac_site_file1=NONE
2495ac_site_file2=NONE
dd184caf 2496if test -n "$CONFIG_SITE"; then
b0322a85
CE
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
dd184caf 2503elif test "x$prefix" != xNONE; then
8d138742
CE
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
dd184caf 2506else
8d138742
CE
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2509fi
8d138742 2510for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2511do
8d138742 2512 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2515$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2516 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520as_fn_error $? "failed to load site script $ac_site_file
2521See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2522 fi
2523done
2524
2525if test -r "$cache_file"; then
b0322a85
CE
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2530$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2531 case $cache_file in
dd184caf 2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
d9898ee8 2534 esac
2535 fi
2536else
b0322a85 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2538$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2539 >$cache_file
2540fi
2541
2542# Check that the precious variables saved in the cache have kept the same
2543# value.
2544ac_cache_corrupted=false
dd184caf 2545for ac_var in $ac_precious_vars; do
d9898ee8 2546 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2547 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2548 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2549 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2550 case $ac_old_set,$ac_new_set in
2551 set,)
b0322a85 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2553$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2554 ac_cache_corrupted=: ;;
2555 ,set)
b0322a85 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2557$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2558 ac_cache_corrupted=: ;;
2559 ,);;
2560 *)
2561 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2562 # differences in whitespace do not lead to failure.
2563 ac_old_val_w=`echo x $ac_old_val`
2564 ac_new_val_w=`echo x $ac_new_val`
2565 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2567$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2568 ac_cache_corrupted=:
2569 else
b0322a85 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2571$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2572 eval $ac_var=\$ac_old_val
2573 fi
b0322a85 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2575$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2577$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2578 fi;;
2579 esac
2580 # Pass precious variables to config.status.
2581 if test "$ac_new_set" = set; then
2582 case $ac_new_val in
8d138742 2583 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2584 *) ac_arg=$ac_var=$ac_new_val ;;
2585 esac
2586 case " $ac_configure_args " in
2587 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2588 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2589 esac
2590 fi
2591done
2592if $ac_cache_corrupted; then
b0322a85 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2596$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2597 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2598fi
b0322a85
CE
2599## -------------------- ##
2600## Main body of script. ##
2601## -------------------- ##
d9898ee8 2602
b0322a85
CE
2603ac_ext=c
2604ac_cpp='$CPP $CPPFLAGS'
2605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2608
2609
2610
2611
2612
d50284c4 2613am__api_version='1.15'
d9898ee8 2614
d9898ee8 2615ac_aux_dir=
dd184caf 2616for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2617 if test -f "$ac_dir/install-sh"; then
d9898ee8 2618 ac_aux_dir=$ac_dir
2619 ac_install_sh="$ac_aux_dir/install-sh -c"
2620 break
dd184caf 2621 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/install.sh -c"
2624 break
dd184caf 2625 elif test -f "$ac_dir/shtool"; then
d9898ee8 2626 ac_aux_dir=$ac_dir
2627 ac_install_sh="$ac_aux_dir/shtool install -c"
2628 break
2629 fi
2630done
2631if test -z "$ac_aux_dir"; then
b0322a85 2632 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
d9898ee8 2633fi
dd184caf 2634
2635# These three variables are undocumented and unsupported,
2636# and are intended to be withdrawn in a future Autoconf release.
2637# They can cause serious problems if a builder's source tree is in a directory
2638# whose full name contains unusual characters.
2639ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2640ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2641ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2642
d9898ee8 2643
2644# Find a good install program. We prefer a C program (faster),
2645# so one script is as good as another. But avoid the broken or
2646# incompatible versions:
2647# SysV /etc/install, /usr/sbin/install
2648# SunOS /usr/etc/install
2649# IRIX /sbin/install
2650# AIX /bin/install
2651# AmigaOS /C/install, which installs bootblocks on floppy discs
2652# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2653# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2654# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2655# OS/2's system install, which has a completely different semantic
2656# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2657# Reject install programs that cannot install multiple files.
b0322a85 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2659$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2660if test -z "$INSTALL"; then
b0322a85 2661if ${ac_cv_path_install+:} false; then :
8d138742 2662 $as_echo_n "(cached) " >&6
d9898ee8 2663else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
b0322a85
CE
2669 # Account for people who put trailing slashes in PATH elements.
2670case $as_dir/ in #((
2671 ./ | .// | /[cC]/* | \
d9898ee8 2672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2673 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2674 /usr/ucb/* ) ;;
2675 *)
2676 # OSF1 and SCO ODT 3.0 have their own names for install.
2677 # Don't use installbsd from OSF since it installs stuff as root
2678 # by default.
2679 for ac_prog in ginstall scoinst install; do
2680 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2681 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2682 if test $ac_prog = install &&
2683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684 # AIX install. It has an incompatible calling convention.
2685 :
2686 elif test $ac_prog = install &&
2687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688 # program-specific install script used by HP pwplus--don't use.
2689 :
2690 else
8d138742
CE
2691 rm -rf conftest.one conftest.two conftest.dir
2692 echo one > conftest.one
2693 echo two > conftest.two
2694 mkdir conftest.dir
2695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2696 test -s conftest.one && test -s conftest.two &&
2697 test -s conftest.dir/conftest.one &&
2698 test -s conftest.dir/conftest.two
2699 then
2700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2701 break 3
2702 fi
d9898ee8 2703 fi
2704 fi
2705 done
2706 done
2707 ;;
2708esac
8d138742 2709
b0322a85 2710 done
dd184caf 2711IFS=$as_save_IFS
d9898ee8 2712
8d138742 2713rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2714
2715fi
2716 if test "${ac_cv_path_install+set}" = set; then
2717 INSTALL=$ac_cv_path_install
2718 else
dd184caf 2719 # As a last resort, use the slow shell script. Don't cache a
2720 # value for INSTALL within a source directory, because that will
d9898ee8 2721 # break other packages using the cache if that directory is
dd184caf 2722 # removed, or if the value is a relative name.
d9898ee8 2723 INSTALL=$ac_install_sh
2724 fi
2725fi
b0322a85 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2727$as_echo "$INSTALL" >&6; }
d9898ee8 2728
2729# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2730# It thinks the first close brace ends the variable substitution.
2731test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2732
2733test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2734
2735test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2736
b0322a85 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2738$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2739# Reject unsafe characters in $srcdir or the absolute working directory
2740# name. Accept space and tab only in the latter.
2741am_lf='
2742'
2743case `pwd` in
2744 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2745 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2746esac
2747case $srcdir in
2748 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2749 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2750esac
2751
b0322a85 2752# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2753# arguments. Must try -L first in case configure is actually a
2754# symlink; some systems play weird games with the mod time of symlinks
2755# (eg FreeBSD returns the mod time of the symlink's containing
2756# directory).
2757if (
b0322a85
CE
2758 am_has_slept=no
2759 for am_try in 1 2; do
2760 echo "timestamp, slept: $am_has_slept" > conftest.file
2761 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2762 if test "$*" = "X"; then
2763 # -L didn't work.
2764 set X `ls -t "$srcdir/configure" conftest.file`
2765 fi
2766 if test "$*" != "X $srcdir/configure conftest.file" \
2767 && test "$*" != "X conftest.file $srcdir/configure"; then
2768
2769 # If neither matched, then we have a broken ls. This can happen
2770 # if, for instance, CONFIG_SHELL is bash and it inherits a
2771 # broken ls alias from the environment. This has actually
2772 # happened. Such a system could not be considered "sane".
2773 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2774 alias in your environment" "$LINENO" 5
2775 fi
2776 if test "$2" = conftest.file || test $am_try -eq 2; then
2777 break
2778 fi
2779 # Just in case.
2780 sleep 1
2781 am_has_slept=yes
2782 done
d9898ee8 2783 test "$2" = conftest.file
2784 )
2785then
2786 # Ok.
2787 :
2788else
b0322a85
CE
2789 as_fn_error $? "newly created file is older than distributed files!
2790Check your system clock" "$LINENO" 5
d9898ee8 2791fi
b0322a85 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2793$as_echo "yes" >&6; }
b0322a85
CE
2794# If we didn't sleep, we still need to ensure time stamps of config.status and
2795# generated files are strictly newer.
2796am_sleep_pid=
2797if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2798 ( sleep 1 ) &
2799 am_sleep_pid=$!
2800fi
2801
2802rm -f conftest.file
2803
d9898ee8 2804test "$program_prefix" != NONE &&
dd184caf 2805 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2806# Use a double $ so make ignores it.
2807test "$program_suffix" != NONE &&
dd184caf 2808 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2809# Double any \ or $.
d9898ee8 2810# By default was `s,x,x', remove it if useless.
8d138742
CE
2811ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2812program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2813
d50284c4
CE
2814# Expand $ac_aux_dir to an absolute path.
2815am_aux_dir=`cd "$ac_aux_dir" && pwd`
d9898ee8 2816
8d138742
CE
2817if test x"${MISSING+set}" != xset; then
2818 case $am_aux_dir in
2819 *\ * | *\ *)
2820 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2821 *)
2822 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2823 esac
2824fi
d9898ee8 2825# Use eval to expand $SHELL
b0322a85
CE
2826if eval "$MISSING --is-lightweight"; then
2827 am_missing_run="$MISSING "
d9898ee8 2828else
2829 am_missing_run=
b0322a85
CE
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2831$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2832fi
2833
d50284c4 2834if test x"${install_sh+set}" != xset; then
8d138742
CE
2835 case $am_aux_dir in
2836 *\ * | *\ *)
2837 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2838 *)
2839 install_sh="\${SHELL} $am_aux_dir/install-sh"
2840 esac
2841fi
2842
b0322a85
CE
2843# Installed binaries are usually stripped using 'strip' when the user
2844# run "make install-strip". However 'strip' might not be the right
8d138742 2845# tool to use in cross-compilation environments, therefore Automake
b0322a85 2846# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2847if test "$cross_compiling" != no; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2852$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2853if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2854 $as_echo_n "(cached) " >&6
2855else
2856 if test -n "$STRIP"; then
2857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
b0322a85
CE
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2868 break 2
2869 fi
2870done
b0322a85 2871 done
8d138742
CE
2872IFS=$as_save_IFS
2873
2874fi
2875fi
2876STRIP=$ac_cv_prog_STRIP
2877if test -n "$STRIP"; then
b0322a85 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2879$as_echo "$STRIP" >&6; }
2880else
b0322a85 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2882$as_echo "no" >&6; }
2883fi
2884
2885
2886fi
2887if test -z "$ac_cv_prog_STRIP"; then
2888 ac_ct_STRIP=$STRIP
2889 # Extract the first word of "strip", so it can be a program name with args.
2890set dummy strip; ac_word=$2
b0322a85 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2892$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2893if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2894 $as_echo_n "(cached) " >&6
2895else
2896 if test -n "$ac_ct_STRIP"; then
2897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
b0322a85
CE
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2906 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2908 break 2
2909 fi
2910done
b0322a85 2911 done
8d138742
CE
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2917if test -n "$ac_ct_STRIP"; then
b0322a85 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2919$as_echo "$ac_ct_STRIP" >&6; }
2920else
b0322a85 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2922$as_echo "no" >&6; }
2923fi
2924
2925 if test "x$ac_ct_STRIP" = x; then
2926 STRIP=":"
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929yes:)
b0322a85 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
2934 STRIP=$ac_ct_STRIP
2935 fi
2936else
2937 STRIP="$ac_cv_prog_STRIP"
2938fi
2939
d9898ee8 2940fi
8d138742 2941INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2942
b0322a85 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2944$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2945if test -z "$MKDIR_P"; then
b0322a85 2946 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2947 $as_echo_n "(cached) " >&6
dd184caf 2948else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2951do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
b0322a85 2954 for ac_prog in mkdir gmkdir; do
dd184caf 2955 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2956 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2958 'mkdir (GNU coreutils) '* | \
2959 'mkdir (coreutils) '* | \
2960 'mkdir (fileutils) '4.1*)
2961 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2962 break 3;;
2963 esac
2964 done
2965 done
b0322a85 2966 done
dd184caf 2967IFS=$as_save_IFS
2968
2969fi
2970
b0322a85 2971 test -d ./--version && rmdir ./--version
dd184caf 2972 if test "${ac_cv_path_mkdir+set}" = set; then
2973 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2974 else
dd184caf 2975 # As a last resort, use the slow shell script. Don't cache a
2976 # value for MKDIR_P within a source directory, because that will
2977 # break other packages using the cache if that directory is
2978 # removed, or if the value is a relative name.
dd184caf 2979 MKDIR_P="$ac_install_sh -d"
d9898ee8 2980 fi
2981fi
b0322a85 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2983$as_echo "$MKDIR_P" >&6; }
dd184caf 2984
d9898ee8 2985for ac_prog in gawk mawk nawk awk
2986do
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988set dummy $ac_prog; ac_word=$2
b0322a85 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2990$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2991if ${ac_cv_prog_AWK+:} false; then :
8d138742 2992 $as_echo_n "(cached) " >&6
d9898ee8 2993else
2994 if test -n "$AWK"; then
2995 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
b0322a85
CE
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3004 ac_cv_prog_AWK="$ac_prog"
b0322a85 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3006 break 2
3007 fi
3008done
b0322a85 3009 done
dd184caf 3010IFS=$as_save_IFS
d9898ee8 3011
3012fi
3013fi
3014AWK=$ac_cv_prog_AWK
3015if test -n "$AWK"; then
b0322a85 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 3017$as_echo "$AWK" >&6; }
d9898ee8 3018else
b0322a85 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3020$as_echo "no" >&6; }
d9898ee8 3021fi
3022
dd184caf 3023
d9898ee8 3024 test -n "$AWK" && break
3025done
3026
b0322a85 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
3028$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3029set x ${MAKE-make}
3030ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 3031if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 3032 $as_echo_n "(cached) " >&6
d9898ee8 3033else
3034 cat >conftest.make <<\_ACEOF
dd184caf 3035SHELL = /bin/sh
d9898ee8 3036all:
dd184caf 3037 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 3038_ACEOF
b0322a85 3039# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 3040case `${MAKE-make} -f conftest.make 2>/dev/null` in
3041 *@@@%%%=?*=@@@%%%*)
3042 eval ac_cv_prog_make_${ac_make}_set=yes;;
3043 *)
3044 eval ac_cv_prog_make_${ac_make}_set=no;;
3045esac
d9898ee8 3046rm -f conftest.make
3047fi
dd184caf 3048if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 3050$as_echo "yes" >&6; }
d9898ee8 3051 SET_MAKE=
3052else
b0322a85 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3054$as_echo "no" >&6; }
d9898ee8 3055 SET_MAKE="MAKE=${MAKE-make}"
3056fi
3057
3058rm -rf .tst 2>/dev/null
3059mkdir .tst 2>/dev/null
3060if test -d .tst; then
3061 am__leading_dot=.
3062else
3063 am__leading_dot=_
3064fi
3065rmdir .tst 2>/dev/null
3066
b0322a85
CE
3067# Check whether --enable-silent-rules was given.
3068if test "${enable_silent_rules+set}" = set; then :
3069 enableval=$enable_silent_rules;
3070fi
3071
3072case $enable_silent_rules in # (((
3073 yes) AM_DEFAULT_VERBOSITY=0;;
3074 no) AM_DEFAULT_VERBOSITY=1;;
3075 *) AM_DEFAULT_VERBOSITY=1;;
3076esac
3077am_make=${MAKE-make}
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3079$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3080if ${am_cv_make_support_nested_variables+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082else
3083 if $as_echo 'TRUE=$(BAR$(V))
3084BAR0=false
3085BAR1=true
3086V=1
3087am__doit:
3088 @$(TRUE)
3089.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3090 am_cv_make_support_nested_variables=yes
3091else
3092 am_cv_make_support_nested_variables=no
3093fi
3094fi
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096$as_echo "$am_cv_make_support_nested_variables" >&6; }
3097if test $am_cv_make_support_nested_variables = yes; then
3098 AM_V='$(V)'
3099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3100else
3101 AM_V=$AM_DEFAULT_VERBOSITY
3102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3103fi
3104AM_BACKSLASH='\'
3105
dd184caf 3106if test "`cd $srcdir && pwd`" != "`pwd`"; then
3107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3108 # is not polluted with repeated "-I."
3109 am__isrc=' -I$(srcdir)'
3110 # test to see if srcdir already configured
3111 if test -f $srcdir/config.status; then
b0322a85 3112 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 3113 fi
d9898ee8 3114fi
3115
3116# test whether we have cygpath
3117if test -z "$CYGPATH_W"; then
3118 if (cygpath --version) >/dev/null 2>/dev/null; then
3119 CYGPATH_W='cygpath -w'
3120 else
3121 CYGPATH_W=echo
3122 fi
3123fi
3124
3125
3126# Define the identity of the package.
3127 PACKAGE='courier-authlib'
0e333c05 3128 VERSION='0.69.0'
d9898ee8 3129
3130
3131cat >>confdefs.h <<_ACEOF
3132#define PACKAGE "$PACKAGE"
3133_ACEOF
3134
3135
3136cat >>confdefs.h <<_ACEOF
3137#define VERSION "$VERSION"
3138_ACEOF
3139
3140# Some tools Automake needs.
3141
3142ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3143
3144
3145AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3146
3147
3148AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3149
3150
3151AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3152
3153
3154MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3155
b0322a85
CE
3156# For better backward compatibility. To be removed once Automake 1.9.x
3157# dies out for good. For more background, see:
3158# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3159# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3160mkdir_p='$(MKDIR_P)'
3161
d50284c4
CE
3162# We need awk for the "check" target (and possibly the TAP driver). The
3163# system "awk" is bad on some platforms.
b0322a85
CE
3164# Always define AMTAR for backward compatibility. Yes, it's still used
3165# in the wild :-( We should find a proper way to deprecate it ...
3166AMTAR='$${TAR-tar}'
3167
3168
3169# We'll loop over all known methods to create a tar archive until one works.
3170_am_tools='gnutar pax cpio none'
d9898ee8 3171
b0322a85 3172am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d9898ee8 3173
d9898ee8 3174
3175
3176
3177
3178
d50284c4
CE
3179# POSIX will say in a future version that running "rm -f" with no argument
3180# is OK; and we want to be able to make that assumption in our Makefile
3181# recipes. So use an aggressive probe to check that the usage we want is
3182# actually supported "in the wild" to an acceptable degree.
3183# See automake bug#10828.
3184# To make any issue more visible, cause the running configure to be aborted
3185# by default if the 'rm' program in use doesn't match our expectations; the
3186# user can still override this though.
3187if rm -f && rm -fr && rm -rf; then : OK; else
3188 cat >&2 <<'END'
3189Oops!
3190
3191Your 'rm' program seems unable to run without file operands specified
3192on the command line, even when the '-f' option is present. This is contrary
3193to the behaviour of most rm programs out there, and not conforming with
3194the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3195
3196Please tell bug-automake@gnu.org about your system, including the value
3197of your $PATH and any error possibly output before this message. This
3198can help us improve future automake versions.
3199
3200END
3201 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3202 echo 'Configuration will proceed anyway, since you have set the' >&2
3203 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3204 echo >&2
3205 else
3206 cat >&2 <<'END'
3207Aborting the configuration process, to ensure you take notice of the issue.
3208
3209You can download and install GNU coreutils to get an 'rm' implementation
3210that behaves properly: <http://www.gnu.org/software/coreutils/>.
3211
3212If you want to complete the configuration process using your problematic
3213'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3214to "yes", and re-run configure.
3215
3216END
3217 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3218 fi
3219fi
3220
b0322a85
CE
3221ac_config_headers="$ac_config_headers courier_auth_config.h"
3222
d9898ee8 3223>confdefs.h # Kill PACKAGE_ macros
3224
3225LPATH="$PATH:/usr/local/bin"
3226
3227for ac_prog in gawk mawk nawk awk
3228do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230set dummy $ac_prog; ac_word=$2
b0322a85 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3232$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3233if ${ac_cv_prog_AWK+:} false; then :
8d138742 3234 $as_echo_n "(cached) " >&6
d9898ee8 3235else
3236 if test -n "$AWK"; then
3237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3238else
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
b0322a85
CE
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3246 ac_cv_prog_AWK="$ac_prog"
b0322a85 3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3248 break 2
3249 fi
3250done
b0322a85 3251 done
dd184caf 3252IFS=$as_save_IFS
d9898ee8 3253
3254fi
3255fi
3256AWK=$ac_cv_prog_AWK
3257if test -n "$AWK"; then
b0322a85 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 3259$as_echo "$AWK" >&6; }
d9898ee8 3260else
b0322a85 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3262$as_echo "no" >&6; }
d9898ee8 3263fi
3264
dd184caf 3265
d9898ee8 3266 test -n "$AWK" && break
3267done
3268
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3278$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3279if ${ac_cv_prog_CC+:} false; then :
8d138742 3280 $as_echo_n "(cached) " >&6
d9898ee8 3281else
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284else
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
b0322a85
CE
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3294 break 2
3295 fi
3296done
b0322a85 3297 done
dd184caf 3298IFS=$as_save_IFS
d9898ee8 3299
3300fi
3301fi
3302CC=$ac_cv_prog_CC
3303if test -n "$CC"; then
b0322a85 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3305$as_echo "$CC" >&6; }
d9898ee8 3306else
b0322a85 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3308$as_echo "no" >&6; }
d9898ee8 3309fi
3310
dd184caf 3311
d9898ee8 3312fi
3313if test -z "$ac_cv_prog_CC"; then
3314 ac_ct_CC=$CC
3315 # Extract the first word of "gcc", so it can be a program name with args.
3316set dummy gcc; ac_word=$2
b0322a85 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3318$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3319if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3320 $as_echo_n "(cached) " >&6
d9898ee8 3321else
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
b0322a85
CE
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3332 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3334 break 2
3335 fi
3336done
b0322a85 3337 done
dd184caf 3338IFS=$as_save_IFS
d9898ee8 3339
3340fi
3341fi
3342ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343if test -n "$ac_ct_CC"; then
b0322a85 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3345$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3346else
b0322a85 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3348$as_echo "no" >&6; }
d9898ee8 3349fi
3350
dd184caf 3351 if test "x$ac_ct_CC" = x; then
3352 CC=""
3353 else
3354 case $cross_compiling:$ac_tool_warned in
3355yes:)
b0322a85 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3358ac_tool_warned=yes ;;
3359esac
3360 CC=$ac_ct_CC
3361 fi
d9898ee8 3362else
3363 CC="$ac_cv_prog_CC"
3364fi
3365
3366if test -z "$CC"; then
dd184caf 3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 3369set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3371$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3372if ${ac_cv_prog_CC+:} false; then :
8d138742 3373 $as_echo_n "(cached) " >&6
d9898ee8 3374else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
b0322a85
CE
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3385 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3387 break 2
3388 fi
3389done
b0322a85 3390 done
dd184caf 3391IFS=$as_save_IFS
d9898ee8 3392
3393fi
3394fi
3395CC=$ac_cv_prog_CC
3396if test -n "$CC"; then
b0322a85 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3398$as_echo "$CC" >&6; }
d9898ee8 3399else
b0322a85 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3401$as_echo "no" >&6; }
d9898ee8 3402fi
3403
d9898ee8 3404
dd184caf 3405 fi
d9898ee8 3406fi
3407if test -z "$CC"; then
3408 # Extract the first word of "cc", so it can be a program name with args.
3409set dummy cc; ac_word=$2
b0322a85 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3411$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3412if ${ac_cv_prog_CC+:} false; then :
8d138742 3413 $as_echo_n "(cached) " >&6
d9898ee8 3414else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417else
3418 ac_prog_rejected=no
3419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420for as_dir in $PATH
3421do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
b0322a85
CE
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3426 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3427 ac_prog_rejected=yes
3428 continue
3429 fi
3430 ac_cv_prog_CC="cc"
b0322a85 3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3432 break 2
3433 fi
3434done
b0322a85 3435 done
dd184caf 3436IFS=$as_save_IFS
d9898ee8 3437
3438if test $ac_prog_rejected = yes; then
3439 # We found a bogon in the path, so make sure we never use it.
3440 set dummy $ac_cv_prog_CC
3441 shift
3442 if test $# != 0; then
3443 # We chose a different compiler from the bogus one.
3444 # However, it has the same basename, so the bogon will be chosen
3445 # first if we set CC to just the basename; use the full file name.
3446 shift
3447 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3448 fi
3449fi
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
b0322a85 3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3455$as_echo "$CC" >&6; }
d9898ee8 3456else
b0322a85 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3458$as_echo "no" >&6; }
d9898ee8 3459fi
3460
dd184caf 3461
d9898ee8 3462fi
3463if test -z "$CC"; then
3464 if test -n "$ac_tool_prefix"; then
dd184caf 3465 for ac_prog in cl.exe
d9898ee8 3466 do
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3470$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3471if ${ac_cv_prog_CC+:} false; then :
8d138742 3472 $as_echo_n "(cached) " >&6
d9898ee8 3473else
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476else
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
b0322a85
CE
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3484 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3486 break 2
3487 fi
3488done
b0322a85 3489 done
dd184caf 3490IFS=$as_save_IFS
d9898ee8 3491
3492fi
3493fi
3494CC=$ac_cv_prog_CC
3495if test -n "$CC"; then
b0322a85 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3497$as_echo "$CC" >&6; }
d9898ee8 3498else
b0322a85 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3500$as_echo "no" >&6; }
d9898ee8 3501fi
3502
dd184caf 3503
d9898ee8 3504 test -n "$CC" && break
3505 done
3506fi
3507if test -z "$CC"; then
3508 ac_ct_CC=$CC
dd184caf 3509 for ac_prog in cl.exe
d9898ee8 3510do
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512set dummy $ac_prog; ac_word=$2
b0322a85 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3514$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3515if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3516 $as_echo_n "(cached) " >&6
d9898ee8 3517else
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
b0322a85
CE
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3528 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3530 break 2
3531 fi
3532done
b0322a85 3533 done
dd184caf 3534IFS=$as_save_IFS
d9898ee8 3535
3536fi
3537fi
3538ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539if test -n "$ac_ct_CC"; then
b0322a85 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3541$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3542else
b0322a85 3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3544$as_echo "no" >&6; }
d9898ee8 3545fi
3546
dd184caf 3547
d9898ee8 3548 test -n "$ac_ct_CC" && break
3549done
3550
dd184caf 3551 if test "x$ac_ct_CC" = x; then
3552 CC=""
3553 else
3554 case $cross_compiling:$ac_tool_warned in
3555yes:)
b0322a85 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3558ac_tool_warned=yes ;;
3559esac
3560 CC=$ac_ct_CC
3561 fi
d9898ee8 3562fi
3563
3564fi
3565
3566
b0322a85 3567test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3569as_fn_error $? "no acceptable C compiler found in \$PATH
3570See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3571
3572# Provide some information about the compiler.
b0322a85 3573$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3574set X $ac_compile
3575ac_compiler=$2
b0322a85
CE
3576for ac_option in --version -v -V -qversion; do
3577 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3578case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581esac
b0322a85
CE
3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583$as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3585 ac_status=$?
b0322a85
CE
3586 if test -s conftest.err; then
3587 sed '10a\
3588... rest of stderr output deleted ...
3589 10q' conftest.err >conftest.er1
3590 cat conftest.er1 >&5
3591 fi
3592 rm -f conftest.er1 conftest.err
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }
3595done
d9898ee8 3596
b0322a85 3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3598/* end confdefs.h. */
3599
3600int
3601main ()
3602{
3603
3604 ;
3605 return 0;
3606}
3607_ACEOF
3608ac_clean_files_save=$ac_clean_files
8d138742 3609ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3610# Try to create an executable without -o first, disregard a.out.
3611# It will help us diagnose broken compilers, and finding out an intuition
3612# of exeext.
b0322a85
CE
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3614$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3615ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3616
3617# The possible output files:
3618ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3619
dd184caf 3620ac_rmfiles=
3621for ac_file in $ac_files
3622do
3623 case $ac_file in
8d138742 3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3625 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626 esac
3627done
3628rm -f $ac_rmfiles
3629
b0322a85 3630if { { ac_try="$ac_link_default"
dd184caf 3631case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634esac
b0322a85
CE
3635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636$as_echo "$ac_try_echo"; } >&5
dd184caf 3637 (eval "$ac_link_default") 2>&5
d9898ee8 3638 ac_status=$?
b0322a85
CE
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; then :
dd184caf 3641 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3642# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3643# in a Makefile. We should not override ac_cv_exeext if it was cached,
3644# so that the user can short-circuit this test for compilers unknown to
3645# Autoconf.
3646for ac_file in $ac_files ''
d9898ee8 3647do
3648 test -f "$ac_file" || continue
3649 case $ac_file in
8d138742 3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3651 ;;
3652 [ab].out )
3653 # We found the default executable, but exeext='' is most
3654 # certainly right.
3655 break;;
3656 *.* )
b0322a85 3657 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3658 then :; else
3659 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 fi
3661 # We set ac_cv_exeext here because the later test for it is not
3662 # safe: cross compilers may not add the suffix if given an `-o'
3663 # argument, so we may need to know it at that point already.
3664 # Even if this section looks crufty: it has the advantage of
3665 # actually working.
d9898ee8 3666 break;;
3667 * )
3668 break;;
3669 esac
3670done
dd184caf 3671test "$ac_cv_exeext" = no && ac_cv_exeext=
3672
d9898ee8 3673else
dd184caf 3674 ac_file=''
3675fi
b0322a85
CE
3676if test -z "$ac_file"; then :
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678$as_echo "no" >&6; }
3679$as_echo "$as_me: failed program was:" >&5
d9898ee8 3680sed 's/^/| /' conftest.$ac_ext >&5
3681
b0322a85 3682{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3684as_fn_error 77 "C compiler cannot create executables
3685See \`config.log' for more details" "$LINENO" 5; }
3686else
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688$as_echo "yes" >&6; }
d9898ee8 3689fi
b0322a85
CE
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3691$as_echo_n "checking for C compiler default output file name... " >&6; }
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3693$as_echo "$ac_file" >&6; }
d9898ee8 3694ac_exeext=$ac_cv_exeext
d9898ee8 3695
8d138742 3696rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3697ac_clean_files=$ac_clean_files_save
b0322a85 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3699$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3700if { { ac_try="$ac_link"
dd184caf 3701case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
b0322a85
CE
3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706$as_echo "$ac_try_echo"; } >&5
dd184caf 3707 (eval "$ac_link") 2>&5
d9898ee8 3708 ac_status=$?
b0322a85
CE
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }; then :
d9898ee8 3711 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3712# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3713# work properly (i.e., refer to `conftest.exe'), while it won't with
3714# `rm'.
3715for ac_file in conftest.exe conftest conftest.*; do
3716 test -f "$ac_file" || continue
3717 case $ac_file in
8d138742 3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3719 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3720 break;;
3721 * ) break;;
3722 esac
3723done
3724else
b0322a85 3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3727as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3728See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3729fi
b0322a85
CE
3730rm -f conftest conftest$ac_cv_exeext
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3732$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3733
3734rm -f conftest.$ac_ext
3735EXEEXT=$ac_cv_exeext
3736ac_exeext=$EXEEXT
b0322a85
CE
3737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h. */
3739#include <stdio.h>
3740int
3741main ()
3742{
3743FILE *f = fopen ("conftest.out", "w");
3744 return ferror (f) || fclose (f) != 0;
3745
3746 ;
3747 return 0;
3748}
3749_ACEOF
3750ac_clean_files="$ac_clean_files conftest.out"
3751# Check that the compiler produces executables we can run. If not, either
3752# the compiler is broken, or we cross compile.
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3754$as_echo_n "checking whether we are cross compiling... " >&6; }
3755if test "$cross_compiling" != yes; then
3756 { { ac_try="$ac_link"
3757case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760esac
3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762$as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_link") 2>&5
3764 ac_status=$?
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }
3767 if { ac_try='./conftest$ac_cv_exeext'
3768 { { case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771esac
3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773$as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_try") 2>&5
3775 ac_status=$?
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; }; then
3778 cross_compiling=no
3779 else
3780 if test "$cross_compiling" = maybe; then
3781 cross_compiling=yes
3782 else
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785as_fn_error $? "cannot run C compiled programs.
3786If you meant to cross compile, use \`--host'.
3787See \`config.log' for more details" "$LINENO" 5; }
3788 fi
3789 fi
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3792$as_echo "$cross_compiling" >&6; }
3793
3794rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3795ac_clean_files=$ac_clean_files_save
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3797$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3798if ${ac_cv_objext+:} false; then :
8d138742 3799 $as_echo_n "(cached) " >&6
d9898ee8 3800else
b0322a85 3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3802/* end confdefs.h. */
3803
3804int
3805main ()
3806{
3807
3808 ;
3809 return 0;
3810}
3811_ACEOF
3812rm -f conftest.o conftest.obj
b0322a85 3813if { { ac_try="$ac_compile"
dd184caf 3814case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817esac
b0322a85
CE
3818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819$as_echo "$ac_try_echo"; } >&5
dd184caf 3820 (eval "$ac_compile") 2>&5
d9898ee8 3821 ac_status=$?
b0322a85
CE
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
dd184caf 3824 for ac_file in conftest.o conftest.obj conftest.*; do
3825 test -f "$ac_file" || continue;
d9898ee8 3826 case $ac_file in
8d138742 3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3828 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3829 break;;
3830 esac
3831done
3832else
8d138742 3833 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3834sed 's/^/| /' conftest.$ac_ext >&5
3835
b0322a85 3836{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3838as_fn_error $? "cannot compute suffix of object files: cannot compile
3839See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3840fi
d9898ee8 3841rm -f conftest.$ac_cv_objext conftest.$ac_ext
3842fi
b0322a85 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3844$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3845OBJEXT=$ac_cv_objext
3846ac_objext=$OBJEXT
b0322a85 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3848$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3849if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3850 $as_echo_n "(cached) " >&6
d9898ee8 3851else
b0322a85 3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3853/* end confdefs.h. */
3854
3855int
3856main ()
3857{
3858#ifndef __GNUC__
3859 choke me
3860#endif
3861
3862 ;
3863 return 0;
3864}
3865_ACEOF
b0322a85 3866if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3867 ac_compiler_gnu=yes
3868else
b0322a85 3869 ac_compiler_gnu=no
d9898ee8 3870fi
dd184caf 3871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3872ac_cv_c_compiler_gnu=$ac_compiler_gnu
3873
3874fi
b0322a85 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3876$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3877if test $ac_compiler_gnu = yes; then
3878 GCC=yes
3879else
3880 GCC=
3881fi
d9898ee8 3882ac_test_CFLAGS=${CFLAGS+set}
3883ac_save_CFLAGS=$CFLAGS
b0322a85 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3885$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3886if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3887 $as_echo_n "(cached) " >&6
d9898ee8 3888else
dd184caf 3889 ac_save_c_werror_flag=$ac_c_werror_flag
3890 ac_c_werror_flag=yes
3891 ac_cv_prog_cc_g=no
3892 CFLAGS="-g"
b0322a85 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3894/* end confdefs.h. */
3895
3896int
3897main ()
3898{
3899
3900 ;
3901 return 0;
3902}
3903_ACEOF
b0322a85 3904if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3905 ac_cv_prog_cc_g=yes
3906else
b0322a85
CE
3907 CFLAGS=""
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3909/* end confdefs.h. */
3910
3911int
3912main ()
3913{
3914
3915 ;
3916 return 0;
3917}
3918_ACEOF
b0322a85 3919if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3920
b0322a85
CE
3921else
3922 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3923 CFLAGS="-g"
b0322a85 3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3925/* end confdefs.h. */
3926
3927int
3928main ()
3929{
3930
3931 ;
3932 return 0;
3933}
3934_ACEOF
b0322a85 3935if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3936 ac_cv_prog_cc_g=yes
d9898ee8 3937fi
dd184caf 3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939fi
dd184caf 3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941fi
dd184caf 3942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3944fi
b0322a85 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3946$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3947if test "$ac_test_CFLAGS" = set; then
3948 CFLAGS=$ac_save_CFLAGS
3949elif test $ac_cv_prog_cc_g = yes; then
3950 if test "$GCC" = yes; then
3951 CFLAGS="-g -O2"
3952 else
3953 CFLAGS="-g"
3954 fi
3955else
3956 if test "$GCC" = yes; then
3957 CFLAGS="-O2"
3958 else
3959 CFLAGS=
3960 fi
3961fi
b0322a85 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3963$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3964if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3965 $as_echo_n "(cached) " >&6
d9898ee8 3966else
dd184caf 3967 ac_cv_prog_cc_c89=no
d9898ee8 3968ac_save_CC=$CC
b0322a85 3969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3970/* end confdefs.h. */
3971#include <stdarg.h>
3972#include <stdio.h>
b0322a85 3973struct stat;
d9898ee8 3974/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3975struct buf { int x; };
3976FILE * (*rcsopen) (struct buf *, struct stat *, int);
3977static char *e (p, i)
3978 char **p;
3979 int i;
3980{
3981 return p[i];
3982}
3983static char *f (char * (*g) (char **, int), char **p, ...)
3984{
3985 char *s;
3986 va_list v;
3987 va_start (v,p);
3988 s = g (p, va_arg (v,int));
3989 va_end (v);
3990 return s;
3991}
3992
3993/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3994 function prototypes and stuff, but not '\xHH' hex character constants.
3995 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3996 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3998 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3999 that's true only with -std. */
d9898ee8 4000int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4001
dd184caf 4002/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4003 inside strings and character constants. */
4004#define FOO(x) 'x'
4005int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4006
d9898ee8 4007int test (int i, double x);
4008struct s1 {int (*f) (int a);};
4009struct s2 {int (*f) (double a);};
4010int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4011int argc;
4012char **argv;
4013int
4014main ()
4015{
4016return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4017 ;
4018 return 0;
4019}
4020_ACEOF
dd184caf 4021for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 4023do
4024 CC="$ac_save_CC $ac_arg"
b0322a85 4025 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 4026 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 4027fi
dd184caf 4028rm -f core conftest.err conftest.$ac_objext
4029 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 4030done
dd184caf 4031rm -f conftest.$ac_ext
d9898ee8 4032CC=$ac_save_CC
4033
4034fi
dd184caf 4035# AC_CACHE_VAL
4036case "x$ac_cv_prog_cc_c89" in
4037 x)
b0322a85 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 4039$as_echo "none needed" >&6; } ;;
dd184caf 4040 xno)
b0322a85 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 4042$as_echo "unsupported" >&6; } ;;
d9898ee8 4043 *)
dd184caf 4044 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 4046$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 4047esac
b0322a85 4048if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 4049
b0322a85 4050fi
d9898ee8 4051
d9898ee8 4052ac_ext=c
4053ac_cpp='$CPP $CPPFLAGS'
4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
d50284c4
CE
4057
4058ac_ext=c
4059ac_cpp='$CPP $CPPFLAGS'
4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4064$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4065if ${am_cv_prog_cc_c_o+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067else
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h. */
4070
4071int
4072main ()
4073{
4074
4075 ;
4076 return 0;
4077}
4078_ACEOF
4079 # Make sure it works both with $CC and with simple cc.
4080 # Following AC_PROG_CC_C_O, we do the test twice because some
4081 # compilers refuse to overwrite an existing .o file with -o,
4082 # though they will create one.
4083 am_cv_prog_cc_c_o=yes
4084 for am_i in 1 2; do
4085 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4086 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } \
4090 && test -f conftest2.$ac_objext; then
4091 : OK
4092 else
4093 am_cv_prog_cc_c_o=no
4094 break
4095 fi
4096 done
4097 rm -f core conftest*
4098 unset am_i
4099fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4101$as_echo "$am_cv_prog_cc_c_o" >&6; }
4102if test "$am_cv_prog_cc_c_o" != yes; then
4103 # Losing compiler, so override with the script.
4104 # FIXME: It is wrong to rewrite CC.
4105 # But if we don't then we get into trouble of one sort or another.
4106 # A longer-term fix would be to have automake use am__CC in this case,
4107 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4108 CC="$am_aux_dir/compile $CC"
4109fi
4110ac_ext=c
4111ac_cpp='$CPP $CPPFLAGS'
4112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
d9898ee8 4116DEPDIR="${am__leading_dot}deps"
4117
dd184caf 4118ac_config_commands="$ac_config_commands depfiles"
d9898ee8 4119
4120
4121am_make=${MAKE-make}
4122cat > confinc << 'END'
4123am__doit:
8d138742 4124 @echo this is the am__doit target
d9898ee8 4125.PHONY: am__doit
4126END
4127# If we don't find an include directive, just comment out the code.
b0322a85 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 4129$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 4130am__include="#"
4131am__quote=
4132_am_result=none
4133# First try GNU make style include.
4134echo "include confinc" > confmf
b0322a85 4135# Ignore all kinds of additional output from 'make'.
8d138742
CE
4136case `$am_make -s -f confmf 2> /dev/null` in #(
4137*the\ am__doit\ target*)
4138 am__include=include
4139 am__quote=
4140 _am_result=GNU
4141 ;;
4142esac
d9898ee8 4143# Now try BSD make style include.
4144if test "$am__include" = "#"; then
4145 echo '.include "confinc"' > confmf
8d138742
CE
4146 case `$am_make -s -f confmf 2> /dev/null` in #(
4147 *the\ am__doit\ target*)
4148 am__include=.include
4149 am__quote="\""
4150 _am_result=BSD
4151 ;;
4152 esac
d9898ee8 4153fi
4154
4155
b0322a85 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 4157$as_echo "$_am_result" >&6; }
d9898ee8 4158rm -f confinc confmf
4159
dd184caf 4160# Check whether --enable-dependency-tracking was given.
b0322a85 4161if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 4162 enableval=$enable_dependency_tracking;
4163fi
d9898ee8 4164
d9898ee8 4165if test "x$enable_dependency_tracking" != xno; then
4166 am_depcomp="$ac_aux_dir/depcomp"
4167 AMDEPBACKSLASH='\'
b0322a85 4168 am__nodep='_no'
d9898ee8 4169fi
dd184caf 4170 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 4171 AMDEP_TRUE=
4172 AMDEP_FALSE='#'
4173else
4174 AMDEP_TRUE='#'
4175 AMDEP_FALSE=
4176fi
4177
4178
4179
d9898ee8 4180depcc="$CC" am_compiler_list=
4181
b0322a85 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 4183$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 4184if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 4185 $as_echo_n "(cached) " >&6
d9898ee8 4186else
4187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188 # We make a subdir and do the tests there. Otherwise we can end up
4189 # making bogus files that we don't know about and never remove. For
4190 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
4191 # making a dummy file named 'D' -- because '-MD' means "put the output
4192 # in D".
4193 rm -rf conftest.dir
d9898ee8 4194 mkdir conftest.dir
4195 # Copy depcomp to subdir because otherwise we won't find it if we're
4196 # using a relative directory.
4197 cp "$am_depcomp" conftest.dir
4198 cd conftest.dir
4199 # We will build objects and dependencies in a subdirectory because
4200 # it helps to detect inapplicable dependency modes. For instance
4201 # both Tru64's cc and ICC support -MD to output dependencies as a
4202 # side effect of compilation, but ICC will put the dependencies in
4203 # the current directory while Tru64 will put them in the object
4204 # directory.
4205 mkdir sub
4206
4207 am_cv_CC_dependencies_compiler_type=none
4208 if test "$am_compiler_list" = ""; then
4209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4210 fi
8d138742
CE
4211 am__universal=false
4212 case " $depcc " in #(
4213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4214 esac
4215
d9898ee8 4216 for depmode in $am_compiler_list; do
4217 # Setup a source with many dependencies, because some compilers
4218 # like to wrap large dependency lists on column 80 (with \), and
4219 # we should not choose a depcomp mode which is confused by this.
4220 #
4221 # We need to recreate these files for each test, as the compiler may
4222 # overwrite some of them when testing with obscure command lines.
4223 # This happens at least with the AIX C compiler.
4224 : > sub/conftest.c
4225 for i in 1 2 3 4 5 6; do
4226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
4227 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4228 # Solaris 10 /bin/sh.
4229 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 4230 done
4231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4232
b0322a85 4233 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 4234 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
4235 # handle '-M -o', and we need to detect this. Also, some Intel
4236 # versions had trouble with output in subdirs.
8d138742
CE
4237 am__obj=sub/conftest.${OBJEXT-o}
4238 am__minus_obj="-o $am__obj"
d9898ee8 4239 case $depmode in
8d138742
CE
4240 gcc)
4241 # This depmode causes a compiler race in universal mode.
4242 test "$am__universal" = false || continue
4243 ;;
d9898ee8 4244 nosideeffect)
b0322a85
CE
4245 # After this tag, mechanisms are not by side-effect, so they'll
4246 # only be used when explicitly requested.
d9898ee8 4247 if test "x$enable_dependency_tracking" = xyes; then
4248 continue
4249 else
4250 break
4251 fi
4252 ;;
b0322a85
CE
4253 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4254 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
4255 # not run yet. These depmodes are late enough in the game, and
4256 # so weak that their functioning should not be impacted.
4257 am__obj=conftest.${OBJEXT-o}
4258 am__minus_obj=
4259 ;;
d9898ee8 4260 none) break ;;
4261 esac
d9898ee8 4262 if depmode=$depmode \
8d138742 4263 source=sub/conftest.c object=$am__obj \
d9898ee8 4264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 4265 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 4266 >/dev/null 2>conftest.err &&
dd184caf 4267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 4269 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271 # icc doesn't choke on unknown options, it will just issue warnings
4272 # or remarks (even with -Werror). So we grep stderr for any message
4273 # that says an option was ignored or not supported.
4274 # When given -MP, icc 7.0 and 7.1 complain thusly:
4275 # icc: Command line warning: ignoring option '-M'; no argument required
4276 # The diagnosis changed in icc 8.0:
4277 # icc: Command line remark: option '-MP' not supported
4278 if (grep 'ignoring option' conftest.err ||
4279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280 am_cv_CC_dependencies_compiler_type=$depmode
4281 break
4282 fi
4283 fi
4284 done
4285
4286 cd ..
4287 rm -rf conftest.dir
4288else
4289 am_cv_CC_dependencies_compiler_type=none
4290fi
4291
4292fi
b0322a85 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 4294$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 4295CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4296
dd184caf 4297 if
d9898ee8 4298 test "x$enable_dependency_tracking" != xno \
4299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4300 am__fastdepCC_TRUE=
4301 am__fastdepCC_FALSE='#'
4302else
4303 am__fastdepCC_TRUE='#'
4304 am__fastdepCC_FALSE=
4305fi
4306
4307
0e333c05
CE
4308ac_ext=cpp
4309ac_cpp='$CXXCPP $CPPFLAGS'
4310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4313if test -z "$CXX"; then
4314 if test -n "$CCC"; then
4315 CXX=$CCC
4316 else
4317 if test -n "$ac_tool_prefix"; then
4318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4319 do
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
4324if ${ac_cv_prog_CXX+:} false; then :
8d138742 4325 $as_echo_n "(cached) " >&6
d9898ee8 4326else
0e333c05
CE
4327 if test -n "$CXX"; then
4328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
d9898ee8 4332do
0e333c05
CE
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4340 fi
4341done
4342 done
4343IFS=$as_save_IFS
d9898ee8 4344
d9898ee8 4345fi
d9898ee8 4346fi
0e333c05
CE
4347CXX=$ac_cv_prog_CXX
4348if test -n "$CXX"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4350$as_echo "$CXX" >&6; }
4351else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
d9898ee8 4354fi
4355
d9898ee8 4356
0e333c05
CE
4357 test -n "$CXX" && break
4358 done
d9898ee8 4359fi
0e333c05
CE
4360if test -z "$CXX"; then
4361 ac_ct_CXX=$CXX
4362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4363do
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365set dummy $ac_prog; ac_word=$2
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367$as_echo_n "checking for $ac_word... " >&6; }
4368if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4369 $as_echo_n "(cached) " >&6
d9898ee8 4370else
0e333c05
CE
4371 if test -n "$ac_ct_CXX"; then
4372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
d9898ee8 4376do
0e333c05
CE
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_ac_ct_CXX="$ac_prog"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385done
4386 done
4387IFS=$as_save_IFS
d9898ee8 4388
d9898ee8 4389fi
0e333c05
CE
4390fi
4391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4392if test -n "$ac_ct_CXX"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4394$as_echo "$ac_ct_CXX" >&6; }
d9898ee8 4395else
0e333c05
CE
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397$as_echo "no" >&6; }
d9898ee8 4398fi
d9898ee8 4399
0e333c05
CE
4400
4401 test -n "$ac_ct_CXX" && break
d9898ee8 4402done
b0322a85 4403
0e333c05
CE
4404 if test "x$ac_ct_CXX" = x; then
4405 CXX="g++"
4406 else
4407 case $cross_compiling:$ac_tool_warned in
4408yes:)
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411ac_tool_warned=yes ;;
4412esac
4413 CXX=$ac_ct_CXX
4414 fi
d9898ee8 4415fi
4416
0e333c05 4417 fi
d9898ee8 4418fi
0e333c05
CE
4419# Provide some information about the compiler.
4420$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4421set X $ac_compile
4422ac_compiler=$2
4423for ac_option in --version -v -V -qversion; do
4424 { { ac_try="$ac_compiler $ac_option >&5"
4425case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428esac
4429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430$as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4432 ac_status=$?
4433 if test -s conftest.err; then
4434 sed '10a\
4435... rest of stderr output deleted ...
4436 10q' conftest.err >conftest.er1
4437 cat conftest.er1 >&5
4438 fi
4439 rm -f conftest.er1 conftest.err
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }
4442done
d9898ee8 4443
0e333c05
CE
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4445$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4446if ${ac_cv_cxx_compiler_gnu+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448else
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450/* end confdefs.h. */
d9898ee8 4451
0e333c05
CE
4452int
4453main ()
4454{
4455#ifndef __GNUC__
4456 choke me
4457#endif
d9898ee8 4458
0e333c05
CE
4459 ;
4460 return 0;
4461}
4462_ACEOF
4463if ac_fn_cxx_try_compile "$LINENO"; then :
4464 ac_compiler_gnu=yes
d9898ee8 4465else
0e333c05
CE
4466 ac_compiler_gnu=no
4467fi
4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d9898ee8 4470
d9898ee8 4471fi
0e333c05
CE
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4473$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4474if test $ac_compiler_gnu = yes; then
4475 GXX=yes
d9898ee8 4476else
0e333c05 4477 GXX=
d9898ee8 4478fi
0e333c05
CE
4479ac_test_CXXFLAGS=${CXXFLAGS+set}
4480ac_save_CXXFLAGS=$CXXFLAGS
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4482$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4483if ${ac_cv_prog_cxx_g+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485else
4486 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4487 ac_cxx_werror_flag=yes
4488 ac_cv_prog_cxx_g=no
4489 CXXFLAGS="-g"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h. */
d9898ee8 4492
0e333c05
CE
4493int
4494main ()
4495{
dd184caf 4496
0e333c05
CE
4497 ;
4498 return 0;
4499}
4500_ACEOF
4501if ac_fn_cxx_try_compile "$LINENO"; then :
4502 ac_cv_prog_cxx_g=yes
4503else
4504 CXXFLAGS=""
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h. */
d9898ee8 4507
0e333c05
CE
4508int
4509main ()
4510{
dd184caf 4511
0e333c05
CE
4512 ;
4513 return 0;
4514}
4515_ACEOF
4516if ac_fn_cxx_try_compile "$LINENO"; then :
dd184caf 4517
0e333c05
CE
4518else
4519 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4520 CXXFLAGS="-g"
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h. */
d9898ee8 4523
0e333c05
CE
4524int
4525main ()
4526{
d9898ee8 4527
0e333c05
CE
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532if ac_fn_cxx_try_compile "$LINENO"; then :
4533 ac_cv_prog_cxx_g=yes
4534fi
4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536fi
4537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538fi
4539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4543$as_echo "$ac_cv_prog_cxx_g" >&6; }
4544if test "$ac_test_CXXFLAGS" = set; then
4545 CXXFLAGS=$ac_save_CXXFLAGS
4546elif test $ac_cv_prog_cxx_g = yes; then
4547 if test "$GXX" = yes; then
4548 CXXFLAGS="-g -O2"
4549 else
4550 CXXFLAGS="-g"
4551 fi
d9898ee8 4552else
0e333c05
CE
4553 if test "$GXX" = yes; then
4554 CXXFLAGS="-O2"
4555 else
4556 CXXFLAGS=
4557 fi
d9898ee8 4558fi
0e333c05
CE
4559ac_ext=c
4560ac_cpp='$CPP $CPPFLAGS'
4561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 4564
0e333c05 4565depcc="$CXX" am_compiler_list=
dd184caf 4566
0e333c05
CE
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4568$as_echo_n "checking dependency style of $depcc... " >&6; }
4569if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8d138742 4570 $as_echo_n "(cached) " >&6
d9898ee8 4571else
0e333c05
CE
4572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4573 # We make a subdir and do the tests there. Otherwise we can end up
4574 # making bogus files that we don't know about and never remove. For
4575 # instance it was reported that on HP-UX the gcc test will end up
4576 # making a dummy file named 'D' -- because '-MD' means "put the output
4577 # in D".
4578 rm -rf conftest.dir
4579 mkdir conftest.dir
4580 # Copy depcomp to subdir because otherwise we won't find it if we're
4581 # using a relative directory.
4582 cp "$am_depcomp" conftest.dir
4583 cd conftest.dir
4584 # We will build objects and dependencies in a subdirectory because
4585 # it helps to detect inapplicable dependency modes. For instance
4586 # both Tru64's cc and ICC support -MD to output dependencies as a
4587 # side effect of compilation, but ICC will put the dependencies in
4588 # the current directory while Tru64 will put them in the object
4589 # directory.
4590 mkdir sub
b0322a85 4591
0e333c05
CE
4592 am_cv_CXX_dependencies_compiler_type=none
4593 if test "$am_compiler_list" = ""; then
4594 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4595 fi
4596 am__universal=false
4597 case " $depcc " in #(
4598 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4599 esac
b0322a85 4600
0e333c05
CE
4601 for depmode in $am_compiler_list; do
4602 # Setup a source with many dependencies, because some compilers
4603 # like to wrap large dependency lists on column 80 (with \), and
4604 # we should not choose a depcomp mode which is confused by this.
4605 #
4606 # We need to recreate these files for each test, as the compiler may
4607 # overwrite some of them when testing with obscure command lines.
4608 # This happens at least with the AIX C compiler.
4609 : > sub/conftest.c
4610 for i in 1 2 3 4 5 6; do
4611 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4612 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4613 # Solaris 10 /bin/sh.
4614 echo '/* dummy */' > sub/conftst$i.h
4615 done
4616 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
b0322a85 4617
0e333c05
CE
4618 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4619 # mode. It turns out that the SunPro C++ compiler does not properly
4620 # handle '-M -o', and we need to detect this. Also, some Intel
4621 # versions had trouble with output in subdirs.
4622 am__obj=sub/conftest.${OBJEXT-o}
4623 am__minus_obj="-o $am__obj"
4624 case $depmode in
4625 gcc)
4626 # This depmode causes a compiler race in universal mode.
4627 test "$am__universal" = false || continue
4628 ;;
4629 nosideeffect)
4630 # After this tag, mechanisms are not by side-effect, so they'll
4631 # only be used when explicitly requested.
4632 if test "x$enable_dependency_tracking" = xyes; then
4633 continue
4634 else
4635 break
4636 fi
4637 ;;
4638 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4639 # This compiler won't grok '-c -o', but also, the minuso test has
4640 # not run yet. These depmodes are late enough in the game, and
4641 # so weak that their functioning should not be impacted.
4642 am__obj=conftest.${OBJEXT-o}
4643 am__minus_obj=
4644 ;;
4645 none) break ;;
4646 esac
4647 if depmode=$depmode \
4648 source=sub/conftest.c object=$am__obj \
4649 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4650 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4651 >/dev/null 2>conftest.err &&
4652 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4653 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4654 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4655 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4656 # icc doesn't choke on unknown options, it will just issue warnings
4657 # or remarks (even with -Werror). So we grep stderr for any message
4658 # that says an option was ignored or not supported.
4659 # When given -MP, icc 7.0 and 7.1 complain thusly:
4660 # icc: Command line warning: ignoring option '-M'; no argument required
4661 # The diagnosis changed in icc 8.0:
4662 # icc: Command line remark: option '-MP' not supported
4663 if (grep 'ignoring option' conftest.err ||
4664 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4665 am_cv_CXX_dependencies_compiler_type=$depmode
4666 break
4667 fi
4668 fi
4669 done
b0322a85 4670
0e333c05
CE
4671 cd ..
4672 rm -rf conftest.dir
b0322a85 4673else
0e333c05 4674 am_cv_CXX_dependencies_compiler_type=none
b0322a85
CE
4675fi
4676
0e333c05
CE
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4679$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4680CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
b0322a85 4681
0e333c05
CE
4682 if
4683 test "x$enable_dependency_tracking" != xno \
4684 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4685 am__fastdepCXX_TRUE=
4686 am__fastdepCXX_FALSE='#'
4687else
4688 am__fastdepCXX_TRUE='#'
4689 am__fastdepCXX_FALSE=
4690fi
b0322a85
CE
4691
4692
0e333c05
CE
4693ac_ext=c
4694ac_cpp='$CPP $CPPFLAGS'
4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4699$as_echo_n "checking how to run the C preprocessor... " >&6; }
4700# On Suns, sometimes $CPP names a directory.
4701if test -n "$CPP" && test -d "$CPP"; then
4702 CPP=
4703fi
4704if test -z "$CPP"; then
4705 if ${ac_cv_prog_CPP+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707else
4708 # Double quotes because CPP needs to be expanded
4709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4710 do
4711 ac_preproc_ok=false
4712for ac_c_preproc_warn_flag in '' yes
4713do
4714 # Use a header file that comes with gcc, so configuring glibc
4715 # with a fresh cross-compiler works.
4716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4717 # <limits.h> exists even on freestanding compilers.
4718 # On the NeXT, cc -E runs the code through the compiler's parser,
4719 # not just through cpp. "Syntax error" is here to catch this case.
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h. */
4722#ifdef __STDC__
4723# include <limits.h>
4724#else
4725# include <assert.h>
4726#endif
4727 Syntax error
4728_ACEOF
4729if ac_fn_c_try_cpp "$LINENO"; then :
b0322a85 4730
0e333c05
CE
4731else
4732 # Broken: fails on valid input.
4733continue
4734fi
4735rm -f conftest.err conftest.i conftest.$ac_ext
b0322a85 4736
0e333c05
CE
4737 # OK, works on sane cases. Now check whether nonexistent headers
4738 # can be detected and how.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h. */
4741#include <ac_nonexistent.h>
4742_ACEOF
4743if ac_fn_c_try_cpp "$LINENO"; then :
4744 # Broken: success on invalid input.
4745continue
4746else
4747 # Passes both tests.
4748ac_preproc_ok=:
4749break
4750fi
4751rm -f conftest.err conftest.i conftest.$ac_ext
b0322a85 4752
0e333c05
CE
4753done
4754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4755rm -f conftest.i conftest.err conftest.$ac_ext
4756if $ac_preproc_ok; then :
4757 break
4758fi
b0322a85 4759
0e333c05
CE
4760 done
4761 ac_cv_prog_CPP=$CPP
b0322a85 4762
0e333c05
CE
4763fi
4764 CPP=$ac_cv_prog_CPP
8d138742 4765else
0e333c05
CE
4766 ac_cv_prog_CPP=$CPP
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4769$as_echo "$CPP" >&6; }
4770ac_preproc_ok=false
4771for ac_c_preproc_warn_flag in '' yes
d9898ee8 4772do
0e333c05
CE
4773 # Use a header file that comes with gcc, so configuring glibc
4774 # with a fresh cross-compiler works.
4775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776 # <limits.h> exists even on freestanding compilers.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
4781#ifdef __STDC__
4782# include <limits.h>
4783#else
4784# include <assert.h>
4785#endif
4786 Syntax error
4787_ACEOF
4788if ac_fn_c_try_cpp "$LINENO"; then :
dd184caf 4789
8d138742 4790else
0e333c05
CE
4791 # Broken: fails on valid input.
4792continue
dd184caf 4793fi
0e333c05 4794rm -f conftest.err conftest.i conftest.$ac_ext
dd184caf 4795
0e333c05
CE
4796 # OK, works on sane cases. Now check whether nonexistent headers
4797 # can be detected and how.
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h. */
4800#include <ac_nonexistent.h>
4801_ACEOF
4802if ac_fn_c_try_cpp "$LINENO"; then :
4803 # Broken: success on invalid input.
4804continue
4805else
4806 # Passes both tests.
4807ac_preproc_ok=:
4808break
dd184caf 4809fi
0e333c05 4810rm -f conftest.err conftest.i conftest.$ac_ext
8d138742 4811
0e333c05
CE
4812done
4813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4814rm -f conftest.i conftest.err conftest.$ac_ext
4815if $ac_preproc_ok; then :
8d138742 4816
0e333c05
CE
4817else
4818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4820as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4821See \`config.log' for more details" "$LINENO" 5; }
4822fi
8d138742 4823
0e333c05
CE
4824ac_ext=c
4825ac_cpp='$CPP $CPPFLAGS'
4826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828ac_compiler_gnu=$ac_cv_c_compiler_gnu
8d138742
CE
4829
4830
0e333c05
CE
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4832$as_echo_n "checking whether ln -s works... " >&6; }
4833LN_S=$as_ln_s
4834if test "$LN_S" = "ln -s"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836$as_echo "yes" >&6; }
4837else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4839$as_echo "no, using $LN_S" >&6; }
4840fi
8d138742
CE
4841
4842
4843
0e333c05
CE
4844 for ac_prog in perl5 perl
4845do
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847set dummy $ac_prog; ac_word=$2
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849$as_echo_n "checking for $ac_word... " >&6; }
4850if ${ac_cv_path_SYSCONFTOOL_PERL+:} false; then :
8d138742
CE
4851 $as_echo_n "(cached) " >&6
4852else
0e333c05
CE
4853 case $SYSCONFTOOL_PERL in
4854 [\\/]* | ?:[\\/]*)
4855 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
4856 ;;
4857 *)
8d138742 4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0e333c05 4859for as_dir in $PATH
8d138742
CE
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
8d138742 4863 for ac_exec_ext in '' $ac_executable_extensions; do
0e333c05
CE
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869done
b0322a85 4870 done
8d138742 4871IFS=$as_save_IFS
dd184caf 4872
0e333c05
CE
4873 ;;
4874esac
4875fi
4876SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
4877if test -n "$SYSCONFTOOL_PERL"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5
4879$as_echo "$SYSCONFTOOL_PERL" >&6; }
4880else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
dd184caf 4883fi
dd184caf 4884
d9898ee8 4885
0e333c05
CE
4886 test -n "$SYSCONFTOOL_PERL" && break
4887done
4888test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl"
dd184caf 4889
dd184caf 4890
0e333c05
CE
4891 if test "$SYSCONFTOOL_PERL" = "perl"
4892 then
4893 as_fn_error $? "perl not found - please install perl" "$LINENO" 5
4894 fi
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5
4897$as_echo_n "checking for sysconftool...... " >&6; }
4898 SYSCONFTOOL=""
4899 for sysconf_dir in $ac_aux_dir . .. ../..
4900 do
4901 if test -f $srcdir/$sysconf_dir/sysconftool
4902 then
4903 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
4904 break
4905 fi
4906 done
4907
4908 if test "$SYSCONFTOOL" = ""
4909 then
4910 as_fn_error $? "sysconftool missing - not in the package" "$LINENO" 5
4911 fi
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5
4914$as_echo "$SYSCONFTOOL" >&6; }
4915 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4916
4917
4918
4919case `pwd` in
4920 *\ * | *\ *)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4922$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4923esac
4924
4925
4926
4927macro_version='2.4.6'
4928macro_revision='2.4.6'
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942ltmain=$ac_aux_dir/ltmain.sh
4943
4944# Make sure we can run config.sub.
4945$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4946 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4947
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4949$as_echo_n "checking build system type... " >&6; }
4950if ${ac_cv_build+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952else
4953 ac_build_alias=$build_alias
4954test "x$ac_build_alias" = x &&
4955 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4956test "x$ac_build_alias" = x &&
4957 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4958ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4959 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4960
dd184caf 4961fi
0e333c05
CE
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4963$as_echo "$ac_cv_build" >&6; }
4964case $ac_cv_build in
4965*-*-*) ;;
4966*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4967esac
4968build=$ac_cv_build
4969ac_save_IFS=$IFS; IFS='-'
4970set x $ac_cv_build
4971shift
4972build_cpu=$1
4973build_vendor=$2
4974shift; shift
4975# Remember, the first character of IFS is used to create $*,
4976# except with old shells:
4977build_os=$*
4978IFS=$ac_save_IFS
4979case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
dd184caf 4980
8d138742 4981
0e333c05
CE
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4983$as_echo_n "checking host system type... " >&6; }
4984if ${ac_cv_host+:} false; then :
8d138742 4985 $as_echo_n "(cached) " >&6
dd184caf 4986else
0e333c05
CE
4987 if test "x$host_alias" = x; then
4988 ac_cv_host=$ac_cv_build
4989else
4990 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4991 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4992fi
4993
4994fi
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4996$as_echo "$ac_cv_host" >&6; }
4997case $ac_cv_host in
4998*-*-*) ;;
4999*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5000esac
5001host=$ac_cv_host
5002ac_save_IFS=$IFS; IFS='-'
5003set x $ac_cv_host
5004shift
5005host_cpu=$1
5006host_vendor=$2
5007shift; shift
5008# Remember, the first character of IFS is used to create $*,
5009# except with old shells:
5010host_os=$*
5011IFS=$ac_save_IFS
5012case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5013
5014
5015# Backslashify metacharacters that are still active within
5016# double-quoted strings.
5017sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5018
5019# Same as above, but do not quote variable references.
5020double_quote_subst='s/\(["`\\]\)/\\\1/g'
5021
5022# Sed substitution to delay expansion of an escaped shell variable in a
5023# double_quote_subst'ed string.
5024delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5025
5026# Sed substitution to delay expansion of an escaped single quote.
5027delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5028
5029# Sed substitution to avoid accidental globbing in evaled expressions
5030no_glob_subst='s/\*/\\\*/g'
5031
5032ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5033ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5034ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5035
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5037$as_echo_n "checking how to print strings... " >&6; }
5038# Test print first, because it will be a builtin if present.
5039if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5040 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5041 ECHO='print -r --'
5042elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5043 ECHO='printf %s\n'
5044else
5045 # Use this function as a fallback that always works.
5046 func_fallback_echo ()
5047 {
5048 eval 'cat <<_LTECHO_EOF
5049$1
5050_LTECHO_EOF'
5051 }
5052 ECHO='func_fallback_echo'
5053fi
5054
5055# func_echo_all arg...
5056# Invoke $ECHO with all args, space-separated.
5057func_echo_all ()
5058{
5059 $ECHO ""
5060}
5061
5062case $ECHO in
5063 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5064$as_echo "printf" >&6; } ;;
5065 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5066$as_echo "print -r" >&6; } ;;
5067 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5068$as_echo "cat" >&6; } ;;
5069esac
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5085$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5086if ${ac_cv_path_SED+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088else
5089 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5090 for ac_i in 1 2 3 4 5 6 7; do
5091 ac_script="$ac_script$as_nl$ac_script"
5092 done
5093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5094 { ac_script=; unset ac_script;}
5095 if test -z "$SED"; then
5096 ac_path_SED_found=false
8d138742
CE
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0e333c05 5099for as_dir in $PATH
8d138742
CE
5100do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
0e333c05 5103 for ac_prog in sed gsed; do
8d138742 5104 for ac_exec_ext in '' $ac_executable_extensions; do
0e333c05
CE
5105 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5106 as_fn_executable_p "$ac_path_SED" || continue
5107# Check for GNU ac_path_SED and select it if it is found.
5108 # Check for GNU $ac_path_SED
5109case `"$ac_path_SED" --version 2>&1` in
8d138742 5110*GNU*)
0e333c05 5111 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8d138742
CE
5112*)
5113 ac_count=0
5114 $as_echo_n 0123456789 >"conftest.in"
5115 while :
5116 do
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
0e333c05
CE
5120 $as_echo '' >> "conftest.nl"
5121 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8d138742 5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
0e333c05 5124 if test $ac_count -gt ${ac_path_SED_max-0}; then
8d138742 5125 # Best one so far, save it but keep looking for a better one
0e333c05
CE
5126 ac_cv_path_SED="$ac_path_SED"
5127 ac_path_SED_max=$ac_count
8d138742
CE
5128 fi
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133esac
dd184caf 5134
0e333c05 5135 $ac_path_SED_found && break 3
8d138742
CE
5136 done
5137 done
b0322a85 5138 done
8d138742 5139IFS=$as_save_IFS
0e333c05
CE
5140 if test -z "$ac_cv_path_SED"; then
5141 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8d138742
CE
5142 fi
5143else
0e333c05 5144 ac_cv_path_SED=$SED
8d138742 5145fi
dd184caf 5146
d9898ee8 5147fi
0e333c05
CE
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5149$as_echo "$ac_cv_path_SED" >&6; }
5150 SED="$ac_cv_path_SED"
5151 rm -f conftest.sed
5152
5153test -z "$SED" && SED=sed
5154Xsed="$SED -e 1s/^X//"
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5167$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5168if ${ac_cv_path_GREP+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170else
5171 if test -z "$GREP"; then
5172 ac_path_GREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in grep ggrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5182 as_fn_executable_p "$ac_path_GREP" || continue
5183# Check for GNU ac_path_GREP and select it if it is found.
5184 # Check for GNU $ac_path_GREP
5185case `"$ac_path_GREP" --version 2>&1` in
5186*GNU*)
5187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5188*)
5189 ac_count=0
5190 $as_echo_n 0123456789 >"conftest.in"
5191 while :
5192 do
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'GREP' >> "conftest.nl"
5197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_GREP="$ac_path_GREP"
5203 ac_path_GREP_max=$ac_count
5204 fi
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5207 done
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209esac
5210
5211 $ac_path_GREP_found && break 3
5212 done
5213 done
5214 done
5215IFS=$as_save_IFS
5216 if test -z "$ac_cv_path_GREP"; then
5217 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218 fi
5219else
5220 ac_cv_path_GREP=$GREP
5221fi
5222
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5225$as_echo "$ac_cv_path_GREP" >&6; }
5226 GREP="$ac_cv_path_GREP"
5227
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5230$as_echo_n "checking for egrep... " >&6; }
5231if ${ac_cv_path_EGREP+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233else
5234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5235 then ac_cv_path_EGREP="$GREP -E"
5236 else
5237 if test -z "$EGREP"; then
5238 ac_path_EGREP_found=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_prog in egrep; do
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5248 as_fn_executable_p "$ac_path_EGREP" || continue
5249# Check for GNU ac_path_EGREP and select it if it is found.
5250 # Check for GNU $ac_path_EGREP
5251case `"$ac_path_EGREP" --version 2>&1` in
5252*GNU*)
5253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5254*)
5255 ac_count=0
5256 $as_echo_n 0123456789 >"conftest.in"
5257 while :
5258 do
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 $as_echo 'EGREP' >> "conftest.nl"
5263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_EGREP="$ac_path_EGREP"
5269 ac_path_EGREP_max=$ac_count
5270 fi
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275esac
5276
5277 $ac_path_EGREP_found && break 3
5278 done
5279 done
5280 done
5281IFS=$as_save_IFS
5282 if test -z "$ac_cv_path_EGREP"; then
5283 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5284 fi
5285else
5286 ac_cv_path_EGREP=$EGREP
5287fi
5288
5289 fi
5290fi
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5292$as_echo "$ac_cv_path_EGREP" >&6; }
5293 EGREP="$ac_cv_path_EGREP"
5294
5295
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5297$as_echo_n "checking for fgrep... " >&6; }
5298if ${ac_cv_path_FGREP+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300else
5301 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5302 then ac_cv_path_FGREP="$GREP -F"
5303 else
5304 if test -z "$FGREP"; then
5305 ac_path_FGREP_found=false
5306 # Loop through the user's path and test for each of PROGNAME-LIST
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5309do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_prog in fgrep; do
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5315 as_fn_executable_p "$ac_path_FGREP" || continue
5316# Check for GNU ac_path_FGREP and select it if it is found.
5317 # Check for GNU $ac_path_FGREP
5318case `"$ac_path_FGREP" --version 2>&1` in
5319*GNU*)
5320 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5321*)
5322 ac_count=0
5323 $as_echo_n 0123456789 >"conftest.in"
5324 while :
5325 do
5326 cat "conftest.in" "conftest.in" >"conftest.tmp"
5327 mv "conftest.tmp" "conftest.in"
5328 cp "conftest.in" "conftest.nl"
5329 $as_echo 'FGREP' >> "conftest.nl"
5330 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5332 as_fn_arith $ac_count + 1 && ac_count=$as_val
5333 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5334 # Best one so far, save it but keep looking for a better one
5335 ac_cv_path_FGREP="$ac_path_FGREP"
5336 ac_path_FGREP_max=$ac_count
5337 fi
5338 # 10*(2^10) chars as input seems more than enough
5339 test $ac_count -gt 10 && break
5340 done
5341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5342esac
5343
5344 $ac_path_FGREP_found && break 3
5345 done
5346 done
5347 done
5348IFS=$as_save_IFS
5349 if test -z "$ac_cv_path_FGREP"; then
5350 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5351 fi
5352else
5353 ac_cv_path_FGREP=$FGREP
5354fi
5355
5356 fi
5357fi
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5359$as_echo "$ac_cv_path_FGREP" >&6; }
5360 FGREP="$ac_cv_path_FGREP"
5361
8d138742
CE
5362
5363test -z "$GREP" && GREP=grep
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
d9898ee8 5380
5381
5382
dd184caf 5383# Check whether --with-gnu-ld was given.
b0322a85 5384if test "${with_gnu_ld+set}" = set; then :
d50284c4 5385 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d9898ee8 5386else
5387 with_gnu_ld=no
dd184caf 5388fi
5389
d9898ee8 5390ac_prog=ld
d50284c4 5391if test yes = "$GCC"; then
d9898ee8 5392 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 5394$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 5395 case $host in
5396 *-*-mingw*)
d50284c4 5397 # gcc leaves a trailing carriage return, which upsets mingw
d9898ee8 5398 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5399 *)
5400 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5401 esac
5402 case $ac_prog in
5403 # Accept absolute paths.
5404 [\\/]* | ?:[\\/]*)
5405 re_direlt='/[^/][^/]*/\.\./'
5406 # Canonicalize the pathname of ld
8d138742
CE
5407 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5408 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5409 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 5410 done
d50284c4 5411 test -z "$LD" && LD=$ac_prog
d9898ee8 5412 ;;
5413 "")
5414 # If it fails, then pretend we aren't using GCC.
5415 ac_prog=ld
5416 ;;
5417 *)
5418 # If it is relative, then search for the first ld in PATH.
5419 with_gnu_ld=unknown
5420 ;;
5421 esac
d50284c4 5422elif test yes = "$with_gnu_ld"; then
b0322a85 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 5424$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 5425else
b0322a85 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 5427$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 5428fi
b0322a85 5429if ${lt_cv_path_LD+:} false; then :
8d138742 5430 $as_echo_n "(cached) " >&6
d9898ee8 5431else
5432 if test -z "$LD"; then
d50284c4 5433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 5434 for ac_dir in $PATH; do
d50284c4 5435 IFS=$lt_save_ifs
d9898ee8 5436 test -z "$ac_dir" && ac_dir=.
5437 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
d50284c4 5438 lt_cv_path_LD=$ac_dir/$ac_prog
d9898ee8 5439 # Check to see if the program is GNU ld. I'd rather use --version,
5440 # but apparently some variants of GNU ld only accept -v.
5441 # Break only if it was the GNU/non-GNU ld that we prefer.
5442 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5443 *GNU* | *'with BFD'*)
d50284c4 5444 test no != "$with_gnu_ld" && break
d9898ee8 5445 ;;
5446 *)
d50284c4 5447 test yes != "$with_gnu_ld" && break
d9898ee8 5448 ;;
5449 esac
5450 fi
5451 done
d50284c4 5452 IFS=$lt_save_ifs
d9898ee8 5453else
d50284c4 5454 lt_cv_path_LD=$LD # Let the user override the test with a path.
d9898ee8 5455fi
5456fi
5457
d50284c4 5458LD=$lt_cv_path_LD
d9898ee8 5459if test -n "$LD"; then
b0322a85 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 5461$as_echo "$LD" >&6; }
d9898ee8 5462else
b0322a85 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5464$as_echo "no" >&6; }
d9898ee8 5465fi
b0322a85
CE
5466test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 5468$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 5469if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 5470 $as_echo_n "(cached) " >&6
d9898ee8 5471else
5472 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5473case `$LD -v 2>&1 </dev/null` in
5474*GNU* | *'with BFD'*)
5475 lt_cv_prog_gnu_ld=yes
5476 ;;
5477*)
5478 lt_cv_prog_gnu_ld=no
5479 ;;
5480esac
5481fi
b0322a85 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 5483$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 5484with_gnu_ld=$lt_cv_prog_gnu_ld
5485
5486
d9898ee8 5487
8d138742
CE
5488
5489
5490
5491
5492
5493
b0322a85 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 5495$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 5496if ${lt_cv_path_NM+:} false; then :
8d138742 5497 $as_echo_n "(cached) " >&6
d9898ee8 5498else
5499 if test -n "$NM"; then
5500 # Let the user override the test.
d50284c4 5501 lt_cv_path_NM=$NM
d9898ee8 5502else
d50284c4 5503 lt_nm_to_check=${ac_tool_prefix}nm
d9898ee8 5504 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5505 lt_nm_to_check="$lt_nm_to_check nm"
5506 fi
5507 for lt_tmp_nm in $lt_nm_to_check; do
d50284c4 5508 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 5509 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
d50284c4 5510 IFS=$lt_save_ifs
d9898ee8 5511 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
5512 tmp_nm=$ac_dir/$lt_tmp_nm
5513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d9898ee8 5514 # Check to see if the nm accepts a BSD-compat flag.
d50284c4 5515 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d9898ee8 5516 # nm: unknown option "B" ignored
5517 # Tru64's nm complains that /dev/null is an invalid object file
d50284c4
CE
5518 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5519 case $build_os in
5520 mingw*) lt_bad_file=conftest.nm/nofile ;;
5521 *) lt_bad_file=/dev/null ;;
5522 esac
5523 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5524 *$lt_bad_file* | *'Invalid file or object type'*)
d9898ee8 5525 lt_cv_path_NM="$tmp_nm -B"
d50284c4 5526 break 2
d9898ee8 5527 ;;
5528 *)
5529 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5530 */dev/null*)
5531 lt_cv_path_NM="$tmp_nm -p"
d50284c4 5532 break 2
d9898ee8 5533 ;;
5534 *)
5535 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5536 continue # so that we can try to find one that supports BSD flags
5537 ;;
5538 esac
5539 ;;
5540 esac
5541 fi
5542 done
d50284c4 5543 IFS=$lt_save_ifs
d9898ee8 5544 done
8d138742 5545 : ${lt_cv_path_NM=no}
d9898ee8 5546fi
5547fi
b0322a85 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742 5549$as_echo "$lt_cv_path_NM" >&6; }
d50284c4
CE
5550if test no != "$lt_cv_path_NM"; then
5551 NM=$lt_cv_path_NM
8d138742
CE
5552else
5553 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
5554 if test -n "$DUMPBIN"; then :
5555 # Let the user override the test.
5556 else
5557 if test -n "$ac_tool_prefix"; then
5558 for ac_prog in dumpbin "link -dump"
8d138742
CE
5559 do
5560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5561set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5563$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5564if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
5565 $as_echo_n "(cached) " >&6
5566else
5567 if test -n "$DUMPBIN"; then
5568 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
b0322a85
CE
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5577 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5579 break 2
5580 fi
5581done
b0322a85 5582 done
8d138742 5583IFS=$as_save_IFS
d9898ee8 5584
8d138742
CE
5585fi
5586fi
5587DUMPBIN=$ac_cv_prog_DUMPBIN
5588if test -n "$DUMPBIN"; then
b0322a85 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742 5590$as_echo "$DUMPBIN" >&6; }
d9898ee8 5591else
b0322a85 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5593$as_echo "no" >&6; }
5594fi
d9898ee8 5595
d9898ee8 5596
8d138742
CE
5597 test -n "$DUMPBIN" && break
5598 done
5599fi
5600if test -z "$DUMPBIN"; then
5601 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 5602 for ac_prog in dumpbin "link -dump"
8d138742
CE
5603do
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605set dummy $ac_prog; ac_word=$2
b0322a85 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5607$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5608if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
5609 $as_echo_n "(cached) " >&6
5610else
5611 if test -n "$ac_ct_DUMPBIN"; then
5612 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
b0322a85
CE
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5621 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5623 break 2
5624 fi
5625done
b0322a85 5626 done
8d138742 5627IFS=$as_save_IFS
d9898ee8 5628
8d138742
CE
5629fi
5630fi
5631ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5632if test -n "$ac_ct_DUMPBIN"; then
b0322a85 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
5634$as_echo "$ac_ct_DUMPBIN" >&6; }
5635else
b0322a85 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5637$as_echo "no" >&6; }
5638fi
d9898ee8 5639
d9898ee8 5640
8d138742
CE
5641 test -n "$ac_ct_DUMPBIN" && break
5642done
5643
5644 if test "x$ac_ct_DUMPBIN" = x; then
5645 DUMPBIN=":"
ac40fd9e 5646 else
8d138742
CE
5647 case $cross_compiling:$ac_tool_warned in
5648yes:)
b0322a85 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651ac_tool_warned=yes ;;
5652esac
5653 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 5654 fi
8d138742 5655fi
d9898ee8 5656
d50284c4 5657 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
b0322a85 5658 *COFF*)
d50284c4 5659 DUMPBIN="$DUMPBIN -symbols -headers"
b0322a85
CE
5660 ;;
5661 *)
5662 DUMPBIN=:
5663 ;;
5664 esac
5665 fi
d9898ee8 5666
d50284c4
CE
5667 if test : != "$DUMPBIN"; then
5668 NM=$DUMPBIN
d9898ee8 5669 fi
8d138742
CE
5670fi
5671test -z "$NM" && NM=nm
d9898ee8 5672
d9898ee8 5673
d9898ee8 5674
d9898ee8 5675
d9898ee8 5676
d9898ee8 5677
b0322a85 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 5679$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 5680if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
5681 $as_echo_n "(cached) " >&6
5682else
5683 lt_cv_nm_interface="BSD nm"
5684 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 5685 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
5686 (eval "$ac_compile" 2>conftest.err)
5687 cat conftest.err >&5
b0322a85 5688 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
5689 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5690 cat conftest.err >&5
b0322a85 5691 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
5692 cat conftest.out >&5
5693 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5694 lt_cv_nm_interface="MS dumpbin"
d9898ee8 5695 fi
8d138742
CE
5696 rm -f conftest*
5697fi
b0322a85 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 5699$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 5700
8d138742 5701# find the maximum length of command line arguments
b0322a85 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 5703$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 5704if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
5705 $as_echo_n "(cached) " >&6
5706else
5707 i=0
d50284c4 5708 teststring=ABCD
d9898ee8 5709
8d138742
CE
5710 case $build_os in
5711 msdosdjgpp*)
5712 # On DJGPP, this test can blow up pretty badly due to problems in libc
5713 # (any single argument exceeding 2000 bytes causes a buffer overrun
5714 # during glob expansion). Even if it were fixed, the result of this
5715 # check would be larger than it should be.
5716 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5717 ;;
d9898ee8 5718
8d138742
CE
5719 gnu*)
5720 # Under GNU Hurd, this test is not required because there is
5721 # no limit to the length of command line arguments.
5722 # Libtool will interpret -1 as no limit whatsoever
5723 lt_cv_sys_max_cmd_len=-1;
5724 ;;
d9898ee8 5725
8d138742
CE
5726 cygwin* | mingw* | cegcc*)
5727 # On Win9x/ME, this test blows up -- it succeeds, but takes
5728 # about 5 minutes as the teststring grows exponentially.
5729 # Worse, since 9x/ME are not pre-emptively multitasking,
5730 # you end up with a "frozen" computer, even though with patience
5731 # the test eventually succeeds (with a max line length of 256k).
5732 # Instead, let's just punt: use the minimum linelength reported by
5733 # all of the supported platforms: 8192 (on NT/2K/XP).
5734 lt_cv_sys_max_cmd_len=8192;
5735 ;;
ac40fd9e 5736
b0322a85
CE
5737 mint*)
5738 # On MiNT this can take a long time and run out of memory.
5739 lt_cv_sys_max_cmd_len=8192;
5740 ;;
5741
8d138742
CE
5742 amigaos*)
5743 # On AmigaOS with pdksh, this test takes hours, literally.
5744 # So we just punt and use a minimum line length of 8192.
5745 lt_cv_sys_max_cmd_len=8192;
5746 ;;
d9898ee8 5747
d50284c4 5748 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8d138742
CE
5749 # This has been around since 386BSD, at least. Likely further.
5750 if test -x /sbin/sysctl; then
5751 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5752 elif test -x /usr/sbin/sysctl; then
5753 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5754 else
5755 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5756 fi
5757 # And add a safety zone
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 5760 ;;
8d138742
CE
5761
5762 interix*)
5763 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5764 lt_cv_sys_max_cmd_len=196608
d9898ee8 5765 ;;
8d138742 5766
b0322a85
CE
5767 os2*)
5768 # The test takes a long time on OS/2.
5769 lt_cv_sys_max_cmd_len=8192
5770 ;;
5771
8d138742
CE
5772 osf*)
5773 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5774 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5775 # nice to cause kernel panics so lets avoid the loop below.
5776 # First set a reasonable default.
5777 lt_cv_sys_max_cmd_len=16384
5778 #
5779 if test -x /sbin/sysconfig; then
5780 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5781 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5782 esac
5783 fi
d9898ee8 5784 ;;
8d138742
CE
5785 sco3.2v5*)
5786 lt_cv_sys_max_cmd_len=102400
d9898ee8 5787 ;;
8d138742
CE
5788 sysv5* | sco5v6* | sysv4.2uw2*)
5789 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5790 if test -n "$kargmax"; then
5791 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5792 else
5793 lt_cv_sys_max_cmd_len=32768
5794 fi
d9898ee8 5795 ;;
8d138742
CE
5796 *)
5797 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
d50284c4
CE
5798 if test -n "$lt_cv_sys_max_cmd_len" && \
5799 test undefined != "$lt_cv_sys_max_cmd_len"; then
8d138742
CE
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5802 else
5803 # Make teststring a little bigger before we do anything with it.
5804 # a 1K string should be a reasonable start.
d50284c4 5805 for i in 1 2 3 4 5 6 7 8; do
8d138742
CE
5806 teststring=$teststring$teststring
5807 done
5808 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5809 # If test is not a shell built-in, we'll probably end up computing a
5810 # maximum length that is only half of the actual maximum length, but
5811 # we can't tell.
d50284c4 5812 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
b0322a85 5813 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
d50284c4 5814 test 17 != "$i" # 1/2 MB should be enough
8d138742
CE
5815 do
5816 i=`expr $i + 1`
5817 teststring=$teststring$teststring
5818 done
5819 # Only check the string length outside the loop.
5820 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5821 teststring=
5822 # Add a significant safety factor because C++ compilers can tack on
5823 # massive amounts of additional arguments before passing them to the
5824 # linker. It appears as though 1/2 is a usable value.
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5826 fi
d9898ee8 5827 ;;
5828 esac
d9898ee8 5829
8d138742 5830fi
d9898ee8 5831
d50284c4 5832if test -n "$lt_cv_sys_max_cmd_len"; then
b0322a85 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
5834$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5835else
b0322a85 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742 5837$as_echo "none" >&6; }
d9898ee8 5838fi
8d138742 5839max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 5840
5841
5842
5843
d9898ee8 5844
d9898ee8 5845
8d138742
CE
5846: ${CP="cp -f"}
5847: ${MV="mv -f"}
5848: ${RM="rm -f"}
d9898ee8 5849
8d138742
CE
5850if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5851 lt_unset=unset
5852else
5853 lt_unset=false
dd184caf 5854fi
d9898ee8 5855
d9898ee8 5856
8d138742
CE
5857
5858
5859
5860# test EBCDIC or ASCII
5861case `echo X|tr X '\101'` in
5862 A) # ASCII based system
5863 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5864 lt_SP2NL='tr \040 \012'
5865 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 5866 ;;
8d138742
CE
5867 *) # EBCDIC based system
5868 lt_SP2NL='tr \100 \n'
5869 lt_NL2SP='tr \r\n \100\100'
d9898ee8 5870 ;;
8d138742 5871esac
d9898ee8 5872
d9898ee8 5873
d9898ee8 5874
d9898ee8 5875
d9898ee8 5876
d9898ee8 5877
dd184caf 5878
d9898ee8 5879
8d138742 5880
b0322a85
CE
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5882$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5883if ${lt_cv_to_host_file_cmd+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885else
5886 case $host in
5887 *-*-mingw* )
5888 case $build in
5889 *-*-mingw* ) # actually msys
5890 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5891 ;;
5892 *-*-cygwin* )
5893 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5894 ;;
5895 * ) # otherwise, assume *nix
5896 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5897 ;;
5898 esac
5899 ;;
5900 *-*-cygwin* )
5901 case $build in
5902 *-*-mingw* ) # actually msys
5903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5904 ;;
5905 *-*-cygwin* )
5906 lt_cv_to_host_file_cmd=func_convert_file_noop
5907 ;;
5908 * ) # otherwise, assume *nix
5909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5910 ;;
5911 esac
5912 ;;
5913 * ) # unhandled hosts (and "normal" native builds)
5914 lt_cv_to_host_file_cmd=func_convert_file_noop
5915 ;;
5916esac
5917
5918fi
5919
5920to_host_file_cmd=$lt_cv_to_host_file_cmd
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5922$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5923
5924
5925
5926
5927
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5929$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5930if ${lt_cv_to_tool_file_cmd+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932else
5933 #assume ordinary cross tools, or native build.
5934lt_cv_to_tool_file_cmd=func_convert_file_noop
5935case $host in
5936 *-*-mingw* )
5937 case $build in
5938 *-*-mingw* ) # actually msys
5939 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5940 ;;
5941 esac
5942 ;;
5943esac
5944
5945fi
5946
5947to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5949$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5950
5951
5952
5953
5954
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 5956$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 5957if ${lt_cv_ld_reload_flag+:} false; then :
8d138742
CE
5958 $as_echo_n "(cached) " >&6
5959else
5960 lt_cv_ld_reload_flag='-r'
d9898ee8 5961fi
b0322a85 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
5963$as_echo "$lt_cv_ld_reload_flag" >&6; }
5964reload_flag=$lt_cv_ld_reload_flag
5965case $reload_flag in
5966"" | " "*) ;;
5967*) reload_flag=" $reload_flag" ;;
5968esac
5969reload_cmds='$LD$reload_flag -o $output$reload_objs'
5970case $host_os in
b0322a85 5971 cygwin* | mingw* | pw32* | cegcc*)
d50284c4 5972 if test yes != "$GCC"; then
b0322a85
CE
5973 reload_cmds=false
5974 fi
5975 ;;
8d138742 5976 darwin*)
d50284c4
CE
5977 if test yes = "$GCC"; then
5978 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8d138742
CE
5979 else
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981 fi
5982 ;;
5983esac
d9898ee8 5984
5985
d9898ee8 5986
d9898ee8 5987
5988
5989
d9898ee8 5990
d9898ee8 5991
8d138742
CE
5992
5993if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5997$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5998if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 5999 $as_echo_n "(cached) " >&6
d9898ee8 6000else
8d138742
CE
6001 if test -n "$OBJDUMP"; then
6002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
b0322a85
CE
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6011 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6013 break 2
6014 fi
6015done
b0322a85 6016 done
8d138742 6017IFS=$as_save_IFS
d9898ee8 6018
8d138742
CE
6019fi
6020fi
6021OBJDUMP=$ac_cv_prog_OBJDUMP
6022if test -n "$OBJDUMP"; then
b0322a85 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742
CE
6024$as_echo "$OBJDUMP" >&6; }
6025else
b0322a85 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6027$as_echo "no" >&6; }
d9898ee8 6028fi
dd184caf 6029
d9898ee8 6030
8d138742
CE
6031fi
6032if test -z "$ac_cv_prog_OBJDUMP"; then
6033 ac_ct_OBJDUMP=$OBJDUMP
6034 # Extract the first word of "objdump", so it can be a program name with args.
6035set dummy objdump; ac_word=$2
b0322a85 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6037$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6038if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742
CE
6039 $as_echo_n "(cached) " >&6
6040else
6041 if test -n "$ac_ct_OBJDUMP"; then
6042 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
b0322a85
CE
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6051 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6053 break 2
6054 fi
6055done
b0322a85 6056 done
8d138742 6057IFS=$as_save_IFS
d9898ee8 6058
8d138742
CE
6059fi
6060fi
6061ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6062if test -n "$ac_ct_OBJDUMP"; then
b0322a85 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742 6064$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 6065else
b0322a85 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6067$as_echo "no" >&6; }
d9898ee8 6068fi
d9898ee8 6069
8d138742
CE
6070 if test "x$ac_ct_OBJDUMP" = x; then
6071 OBJDUMP="false"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074yes:)
b0322a85 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077ac_tool_warned=yes ;;
6078esac
6079 OBJDUMP=$ac_ct_OBJDUMP
6080 fi
6081else
6082 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 6083fi
6084
8d138742 6085test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 6086
d9898ee8 6087
d9898ee8 6088
d9898ee8 6089
d9898ee8 6090
dd184caf 6091
6092
d9898ee8 6093
d9898ee8 6094
b0322a85 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 6096$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 6097if ${lt_cv_deplibs_check_method+:} false; then :
8d138742
CE
6098 $as_echo_n "(cached) " >&6
6099else
6100 lt_cv_file_magic_cmd='$MAGIC_CMD'
6101lt_cv_file_magic_test_file=
6102lt_cv_deplibs_check_method='unknown'
6103# Need to set the preceding variable on all platforms that support
6104# interlibrary dependencies.
6105# 'none' -- dependencies not supported.
d50284c4 6106# 'unknown' -- same as none, but documents that we really don't know.
8d138742
CE
6107# 'pass_all' -- all dependencies passed with no checks.
6108# 'test_compile' -- check by making test program.
6109# 'file_magic [[regex]]' -- check by looking for files in library path
d50284c4
CE
6110# that responds to the $file_magic_cmd with a given extended regex.
6111# If you have 'file' or equivalent on your system and you're not sure
6112# whether 'pass_all' will *always* work, you probably want this one.
d9898ee8 6113
8d138742
CE
6114case $host_os in
6115aix[4-9]*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
d9898ee8 6118
8d138742
CE
6119beos*)
6120 lt_cv_deplibs_check_method=pass_all
6121 ;;
d9898ee8 6122
8d138742
CE
6123bsdi[45]*)
6124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6125 lt_cv_file_magic_cmd='/usr/bin/file -L'
6126 lt_cv_file_magic_test_file=/shlib/libc.so
6127 ;;
d9898ee8 6128
8d138742
CE
6129cygwin*)
6130 # func_win32_libid is a shell function defined in ltmain.sh
6131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6132 lt_cv_file_magic_cmd='func_win32_libid'
6133 ;;
d9898ee8 6134
8d138742
CE
6135mingw* | pw32*)
6136 # Base MSYS/MinGW do not provide the 'file' command needed by
6137 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6138 # unless we find 'file', for example because we are cross-compiling.
d50284c4 6139 if ( file / ) >/dev/null 2>&1; then
8d138742
CE
6140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6141 lt_cv_file_magic_cmd='func_win32_libid'
6142 else
b0322a85
CE
6143 # Keep this pattern in sync with the one in func_win32_libid.
6144 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
6145 lt_cv_file_magic_cmd='$OBJDUMP -f'
6146 fi
6147 ;;
d9898ee8 6148
b0322a85 6149cegcc*)
8d138742
CE
6150 # use the weaker test based on 'objdump'. See mingw*.
6151 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6152 lt_cv_file_magic_cmd='$OBJDUMP -f'
6153 ;;
d9898ee8 6154
8d138742
CE
6155darwin* | rhapsody*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
d9898ee8 6158
8d138742
CE
6159freebsd* | dragonfly*)
6160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6161 case $host_cpu in
6162 i*86 )
6163 # Not sure whether the presence of OpenBSD here was a mistake.
6164 # Let's accept both of them until this is cleared up.
6165 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6166 lt_cv_file_magic_cmd=/usr/bin/file
6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6168 ;;
6169 esac
6170 else
6171 lt_cv_deplibs_check_method=pass_all
6172 fi
6173 ;;
d9898ee8 6174
b0322a85
CE
6175haiku*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178
8d138742
CE
6179hpux10.20* | hpux11*)
6180 lt_cv_file_magic_cmd=/usr/bin/file
6181 case $host_cpu in
6182 ia64*)
6183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6184 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6185 ;;
6186 hppa*64*)
b0322a85 6187 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
6188 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6189 ;;
6190 *)
b0322a85 6191 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
6192 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6193 ;;
6194 esac
6195 ;;
d9898ee8 6196
8d138742
CE
6197interix[3-9]*)
6198 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6200 ;;
d9898ee8 6201
8d138742
CE
6202irix5* | irix6* | nonstopux*)
6203 case $LD in
6204 *-32|*"-32 ") libmagic=32-bit;;
6205 *-n32|*"-n32 ") libmagic=N32;;
6206 *-64|*"-64 ") libmagic=64-bit;;
6207 *) libmagic=never-match;;
6208 esac
6209 lt_cv_deplibs_check_method=pass_all
6210 ;;
dd184caf 6211
b0322a85 6212# This must be glibc/ELF.
d50284c4 6213linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742
CE
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
d9898ee8 6216
8d138742
CE
6217netbsd*)
6218 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220 else
6221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6222 fi
6223 ;;
d9898ee8 6224
8d138742
CE
6225newos6*)
6226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6227 lt_cv_file_magic_cmd=/usr/bin/file
6228 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6229 ;;
d9898ee8 6230
8d138742
CE
6231*nto* | *qnx*)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
d9898ee8 6234
d50284c4
CE
6235openbsd* | bitrig*)
6236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8d138742
CE
6237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6238 else
6239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6240 fi
6241 ;;
d9898ee8 6242
8d138742
CE
6243osf3* | osf4* | osf5*)
6244 lt_cv_deplibs_check_method=pass_all
6245 ;;
d9898ee8 6246
8d138742
CE
6247rdos*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
dd184caf 6250
8d138742
CE
6251solaris*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
d9898ee8 6254
8d138742
CE
6255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
d9898ee8 6258
8d138742
CE
6259sysv4 | sysv4.3*)
6260 case $host_vendor in
6261 motorola)
6262 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]'
6263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
d9898ee8 6264 ;;
8d138742
CE
6265 ncr)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268 sequent)
6269 lt_cv_file_magic_cmd='/bin/file'
6270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6271 ;;
6272 sni)
6273 lt_cv_file_magic_cmd='/bin/file'
6274 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6275 lt_cv_file_magic_test_file=/lib/libc.so
6276 ;;
6277 siemens)
6278 lt_cv_deplibs_check_method=pass_all
d9898ee8 6279 ;;
8d138742
CE
6280 pc)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283 esac
6284 ;;
6285
6286tpf*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
d50284c4
CE
6289os2*)
6290 lt_cv_deplibs_check_method=pass_all
6291 ;;
d9898ee8 6292esac
d9898ee8 6293
6294fi
b0322a85 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8d138742 6296$as_echo "$lt_cv_deplibs_check_method" >&6; }
b0322a85
CE
6297
6298file_magic_glob=
6299want_nocaseglob=no
6300if test "$build" = "$host"; then
6301 case $host_os in
6302 mingw* | pw32*)
6303 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6304 want_nocaseglob=yes
6305 else
6306 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6307 fi
6308 ;;
6309 esac
6310fi
6311
8d138742
CE
6312file_magic_cmd=$lt_cv_file_magic_cmd
6313deplibs_check_method=$lt_cv_deplibs_check_method
6314test -z "$deplibs_check_method" && deplibs_check_method=unknown
d9898ee8 6315
d9898ee8 6316
d9898ee8 6317
8d138742
CE
6318
6319
6320
6321
6322
6323
6324
6325
6326
b0322a85
CE
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6339set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341$as_echo_n "checking for $ac_word... " >&6; }
6342if ${ac_cv_prog_DLLTOOL+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344else
6345 if test -n "$DLLTOOL"; then
6346 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359done
6360 done
6361IFS=$as_save_IFS
6362
6363fi
6364fi
6365DLLTOOL=$ac_cv_prog_DLLTOOL
6366if test -n "$DLLTOOL"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6368$as_echo "$DLLTOOL" >&6; }
6369else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371$as_echo "no" >&6; }
6372fi
6373
6374
6375fi
6376if test -z "$ac_cv_prog_DLLTOOL"; then
6377 ac_ct_DLLTOOL=$DLLTOOL
6378 # Extract the first word of "dlltool", so it can be a program name with args.
6379set dummy dlltool; ac_word=$2
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381$as_echo_n "checking for $ac_word... " >&6; }
6382if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384else
6385 if test -n "$ac_ct_DLLTOOL"; then
6386 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399done
6400 done
6401IFS=$as_save_IFS
6402
6403fi
6404fi
6405ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6406if test -n "$ac_ct_DLLTOOL"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6408$as_echo "$ac_ct_DLLTOOL" >&6; }
6409else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414 if test "x$ac_ct_DLLTOOL" = x; then
6415 DLLTOOL="false"
6416 else
6417 case $cross_compiling:$ac_tool_warned in
6418yes:)
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421ac_tool_warned=yes ;;
6422esac
6423 DLLTOOL=$ac_ct_DLLTOOL
6424 fi
6425else
6426 DLLTOOL="$ac_cv_prog_DLLTOOL"
6427fi
6428
6429test -z "$DLLTOOL" && DLLTOOL=dlltool
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6441$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6442if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444else
6445 lt_cv_sharedlib_from_linklib_cmd='unknown'
6446
6447case $host_os in
6448cygwin* | mingw* | pw32* | cegcc*)
d50284c4
CE
6449 # two different shell functions defined in ltmain.sh;
6450 # decide which one to use based on capabilities of $DLLTOOL
b0322a85
CE
6451 case `$DLLTOOL --help 2>&1` in
6452 *--identify-strict*)
6453 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6454 ;;
6455 *)
6456 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6457 ;;
6458 esac
6459 ;;
6460*)
6461 # fallback: assume linklib IS sharedlib
d50284c4 6462 lt_cv_sharedlib_from_linklib_cmd=$ECHO
b0322a85
CE
6463 ;;
6464esac
6465
6466fi
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6468$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6469sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6470test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6471
6472
6473
6474
6475
6476
6477
6478
8d138742 6479if test -n "$ac_tool_prefix"; then
b0322a85
CE
6480 for ac_prog in ar
6481 do
6482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6485$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6486if ${ac_cv_prog_AR+:} false; then :
8d138742 6487 $as_echo_n "(cached) " >&6
d9898ee8 6488else
8d138742
CE
6489 if test -n "$AR"; then
6490 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
b0322a85
CE
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6501 break 2
6502 fi
6503done
b0322a85 6504 done
dd184caf 6505IFS=$as_save_IFS
d9898ee8 6506
6507fi
6508fi
8d138742
CE
6509AR=$ac_cv_prog_AR
6510if test -n "$AR"; then
b0322a85 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742 6512$as_echo "$AR" >&6; }
d9898ee8 6513else
b0322a85 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6515$as_echo "no" >&6; }
d9898ee8 6516fi
6517
dd184caf 6518
b0322a85
CE
6519 test -n "$AR" && break
6520 done
d9898ee8 6521fi
b0322a85 6522if test -z "$AR"; then
8d138742 6523 ac_ct_AR=$AR
b0322a85
CE
6524 for ac_prog in ar
6525do
6526 # Extract the first word of "$ac_prog", so it can be a program name with args.
6527set dummy $ac_prog; ac_word=$2
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6529$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6530if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742 6531 $as_echo_n "(cached) " >&6
d9898ee8 6532else
8d138742
CE
6533 if test -n "$ac_ct_AR"; then
6534 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
b0322a85
CE
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_ac_ct_AR="$ac_prog"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6545 break 2
6546 fi
6547done
b0322a85 6548 done
dd184caf 6549IFS=$as_save_IFS
d9898ee8 6550
6551fi
6552fi
8d138742
CE
6553ac_ct_AR=$ac_cv_prog_ac_ct_AR
6554if test -n "$ac_ct_AR"; then
b0322a85 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742 6556$as_echo "$ac_ct_AR" >&6; }
d9898ee8 6557else
b0322a85 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6559$as_echo "no" >&6; }
d9898ee8 6560fi
6561
b0322a85
CE
6562
6563 test -n "$ac_ct_AR" && break
6564done
6565
8d138742
CE
6566 if test "x$ac_ct_AR" = x; then
6567 AR="false"
dd184caf 6568 else
6569 case $cross_compiling:$ac_tool_warned in
6570yes:)
b0322a85 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6573ac_tool_warned=yes ;;
6574esac
8d138742 6575 AR=$ac_ct_AR
dd184caf 6576 fi
8d138742 6577fi
d9898ee8 6578
b0322a85
CE
6579: ${AR=ar}
6580: ${AR_FLAGS=cru}
d9898ee8 6581
d9898ee8 6582
dd184caf 6583
d9898ee8 6584
d9898ee8 6585
d9898ee8 6586
dd184caf 6587
dd184caf 6588
d9898ee8 6589
dd184caf 6590
dd184caf 6591
b0322a85
CE
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6593$as_echo_n "checking for archiver @FILE support... " >&6; }
6594if ${lt_cv_ar_at_file+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596else
6597 lt_cv_ar_at_file=no
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h. */
6600
6601int
6602main ()
6603{
6604
6605 ;
6606 return 0;
6607}
6608_ACEOF
6609if ac_fn_c_try_compile "$LINENO"; then :
6610 echo conftest.$ac_objext > conftest.lst
6611 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6613 (eval $lt_ar_try) 2>&5
6614 ac_status=$?
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }
d50284c4 6617 if test 0 -eq "$ac_status"; then
b0322a85
CE
6618 # Ensure the archiver fails upon bogus file names.
6619 rm -f conftest.$ac_objext libconftest.a
6620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6621 (eval $lt_ar_try) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }
d50284c4 6625 if test 0 -ne "$ac_status"; then
b0322a85
CE
6626 lt_cv_ar_at_file=@
6627 fi
6628 fi
6629 rm -f conftest.* libconftest.a
6630
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633
6634fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6636$as_echo "$lt_cv_ar_at_file" >&6; }
6637
d50284c4 6638if test no = "$lt_cv_ar_at_file"; then
b0322a85
CE
6639 archiver_list_spec=
6640else
6641 archiver_list_spec=$lt_cv_ar_at_file
6642fi
6643
6644
6645
6646
6647
6648
6649
8d138742
CE
6650if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6652set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6654$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6655if ${ac_cv_prog_STRIP+:} false; then :
8d138742 6656 $as_echo_n "(cached) " >&6
d9898ee8 6657else
8d138742
CE
6658 if test -n "$STRIP"; then
6659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
b0322a85
CE
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6670 break 2
6671 fi
6672done
b0322a85 6673 done
8d138742 6674IFS=$as_save_IFS
dd184caf 6675
d9898ee8 6676fi
8d138742
CE
6677fi
6678STRIP=$ac_cv_prog_STRIP
6679if test -n "$STRIP"; then
b0322a85 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
6681$as_echo "$STRIP" >&6; }
6682else
b0322a85 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6684$as_echo "no" >&6; }
6685fi
6686
dd184caf 6687
d9898ee8 6688fi
8d138742
CE
6689if test -z "$ac_cv_prog_STRIP"; then
6690 ac_ct_STRIP=$STRIP
6691 # Extract the first word of "strip", so it can be a program name with args.
6692set dummy strip; ac_word=$2
b0322a85 6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6694$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6695if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
6696 $as_echo_n "(cached) " >&6
6697else
6698 if test -n "$ac_ct_STRIP"; then
6699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
b0322a85
CE
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6708 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6710 break 2
6711 fi
6712done
b0322a85 6713 done
8d138742 6714IFS=$as_save_IFS
d9898ee8 6715
8d138742
CE
6716fi
6717fi
6718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6719if test -n "$ac_ct_STRIP"; then
b0322a85 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
6721$as_echo "$ac_ct_STRIP" >&6; }
6722else
b0322a85 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6724$as_echo "no" >&6; }
dd184caf 6725fi
6726
8d138742
CE
6727 if test "x$ac_ct_STRIP" = x; then
6728 STRIP=":"
dd184caf 6729 else
8d138742
CE
6730 case $cross_compiling:$ac_tool_warned in
6731yes:)
b0322a85 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734ac_tool_warned=yes ;;
6735esac
6736 STRIP=$ac_ct_STRIP
dd184caf 6737 fi
6738else
8d138742 6739 STRIP="$ac_cv_prog_STRIP"
dd184caf 6740fi
d9898ee8 6741
8d138742 6742test -z "$STRIP" && STRIP=:
d9898ee8 6743
d9898ee8 6744
d9898ee8 6745
d9898ee8 6746
8d138742
CE
6747
6748
6749if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6751set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6753$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6754if ${ac_cv_prog_RANLIB+:} false; then :
8d138742 6755 $as_echo_n "(cached) " >&6
d9898ee8 6756else
8d138742
CE
6757 if test -n "$RANLIB"; then
6758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
b0322a85
CE
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6769 break 2
6770 fi
6771done
b0322a85 6772 done
8d138742 6773IFS=$as_save_IFS
d9898ee8 6774
6775fi
8d138742
CE
6776fi
6777RANLIB=$ac_cv_prog_RANLIB
6778if test -n "$RANLIB"; then
b0322a85 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742 6780$as_echo "$RANLIB" >&6; }
d9898ee8 6781else
b0322a85 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6783$as_echo "no" >&6; }
d9898ee8 6784fi
6785
6786
8d138742
CE
6787fi
6788if test -z "$ac_cv_prog_RANLIB"; then
6789 ac_ct_RANLIB=$RANLIB
6790 # Extract the first word of "ranlib", so it can be a program name with args.
6791set dummy ranlib; ac_word=$2
b0322a85 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6793$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6794if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742 6795 $as_echo_n "(cached) " >&6
d9898ee8 6796else
8d138742
CE
6797 if test -n "$ac_ct_RANLIB"; then
6798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d9898ee8 6799else
8d138742
CE
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
b0322a85
CE
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6807 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6809 break 2
6810 fi
6811done
b0322a85 6812 done
8d138742 6813IFS=$as_save_IFS
d9898ee8 6814
8d138742
CE
6815fi
6816fi
6817ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6818if test -n "$ac_ct_RANLIB"; then
b0322a85 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
6820$as_echo "$ac_ct_RANLIB" >&6; }
6821else
b0322a85 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6823$as_echo "no" >&6; }
d9898ee8 6824fi
dd184caf 6825
8d138742
CE
6826 if test "x$ac_ct_RANLIB" = x; then
6827 RANLIB=":"
6828 else
6829 case $cross_compiling:$ac_tool_warned in
6830yes:)
b0322a85 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833ac_tool_warned=yes ;;
dd184caf 6834esac
8d138742
CE
6835 RANLIB=$ac_ct_RANLIB
6836 fi
d9898ee8 6837else
8d138742 6838 RANLIB="$ac_cv_prog_RANLIB"
d9898ee8 6839fi
dd184caf 6840
8d138742 6841test -z "$RANLIB" && RANLIB=:
d9898ee8 6842
d9898ee8 6843
d9898ee8 6844
d9898ee8 6845
dd184caf 6846
d9898ee8 6847
8d138742
CE
6848# Determine commands to create old-style static archives.
6849old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6850old_postinstall_cmds='chmod 644 $oldlib'
6851old_postuninstall_cmds=
d9898ee8 6852
8d138742
CE
6853if test -n "$RANLIB"; then
6854 case $host_os in
d50284c4 6855 bitrig* | openbsd*)
b0322a85 6856 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8d138742
CE
6857 ;;
6858 *)
b0322a85 6859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
6860 ;;
6861 esac
b0322a85 6862 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 6863fi
dd184caf 6864
b0322a85
CE
6865case $host_os in
6866 darwin*)
6867 lock_old_archive_extraction=yes ;;
6868 *)
6869 lock_old_archive_extraction=no ;;
6870esac
6871
6872
6873
6874
6875
6876
d9898ee8 6877
d9898ee8 6878
d9898ee8 6879
d9898ee8 6880
6881
d9898ee8 6882
d9898ee8 6883
dd184caf 6884
d9898ee8 6885
d9898ee8 6886
dd184caf 6887
d9898ee8 6888
d9898ee8 6889
6890
d9898ee8 6891
d9898ee8 6892
d9898ee8 6893
dd184caf 6894
d9898ee8 6895
d9898ee8 6896
6897
6898
d9898ee8 6899
d9898ee8 6900
d9898ee8 6901
d9898ee8 6902
d9898ee8 6903
d9898ee8 6904
d9898ee8 6905
d9898ee8 6906
d9898ee8 6907
d9898ee8 6908
d9898ee8 6909
8d138742
CE
6910# If no C compiler was specified, use CC.
6911LTCC=${LTCC-"$CC"}
d9898ee8 6912
8d138742
CE
6913# If no C compiler flags were specified, use CFLAGS.
6914LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 6915
8d138742
CE
6916# Allow CC to be a program name with arguments.
6917compiler=$CC
d9898ee8 6918
ac40fd9e 6919
d9898ee8 6920# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 6922$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 6923if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 6924 $as_echo_n "(cached) " >&6
d9898ee8 6925else
6926
6927# These are sane defaults that work on at least a few old systems.
6928# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6929
6930# Character class describing NM global symbol codes.
6931symcode='[BCDEGRST]'
6932
6933# Regexp to match symbols that can be accessed directly from C.
6934sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6935
d9898ee8 6936# Define system-specific variables.
6937case $host_os in
6938aix*)
6939 symcode='[BCDT]'
6940 ;;
8d138742 6941cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 6942 symcode='[ABCDGISTW]'
6943 ;;
8d138742 6944hpux*)
d50284c4 6945 if test ia64 = "$host_cpu"; then
d9898ee8 6946 symcode='[ABCDEGRST]'
6947 fi
d9898ee8 6948 ;;
6949irix* | nonstopux*)
6950 symcode='[BCDEGRST]'
6951 ;;
6952osf*)
6953 symcode='[BCDEGQRST]'
6954 ;;
6955solaris*)
6956 symcode='[BDRT]'
6957 ;;
6958sco3.2v5*)
6959 symcode='[DT]'
6960 ;;
6961sysv4.2uw2*)
6962 symcode='[DT]'
6963 ;;
6964sysv5* | sco5v6* | unixware* | OpenUNIX*)
6965 symcode='[ABDT]'
6966 ;;
6967sysv4)
6968 symcode='[DFNSTU]'
6969 ;;
6970esac
6971
8d138742
CE
6972# If we're using GNU nm, then use its standard symbol codes.
6973case `$NM -V 2>&1` in
6974*GNU* | *'with BFD'*)
6975 symcode='[ABCDGIRSTW]' ;;
6976esac
6977
d50284c4
CE
6978if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6979 # Gets list of data symbols to import.
6980 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6981 # Adjust the below global symbol transforms to fixup imported variables.
6982 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6983 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6984 lt_c_name_lib_hook="\
6985 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6986 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6987else
6988 # Disable hooks by default.
6989 lt_cv_sys_global_symbol_to_import=
6990 lt_cdecl_hook=
6991 lt_c_name_hook=
6992 lt_c_name_lib_hook=
6993fi
6994
8d138742
CE
6995# Transform an extracted symbol line into a proper C declaration.
6996# Some systems (esp. on ia64) link data and code symbols differently,
6997# so use this general approach.
d50284c4
CE
6998lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6999$lt_cdecl_hook\
7000" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7001" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8d138742
CE
7002
7003# Transform an extracted symbol line into symbol name and symbol address
d50284c4
CE
7004lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7005$lt_c_name_hook\
7006" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7007" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7008
7009# Transform an extracted symbol line into symbol name with lib prefix and
7010# symbol address.
7011lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7012$lt_c_name_lib_hook\
7013" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7014" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7015" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8d138742 7016
d9898ee8 7017# Handle CRLF in mingw tool chain
7018opt_cr=
7019case $build_os in
7020mingw*)
8d138742 7021 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 7022 ;;
7023esac
7024
8d138742 7025# Try without a prefix underscore, then with it.
d9898ee8 7026for ac_symprfx in "" "_"; do
7027
7028 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7029 symxfrm="\\1 $ac_symprfx\\2 \\2"
7030
7031 # Write the raw and C identifiers.
8d138742 7032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
d50284c4
CE
7033 # Fake it for dumpbin and say T for any non-static function,
7034 # D for any global variable and I for any imported variable.
8d138742
CE
7035 # Also find C++ and __fastcall symbols from MSVC++,
7036 # which start with @ or ?.
7037 lt_cv_sys_global_symbol_pipe="$AWK '"\
7038" {last_section=section; section=\$ 3};"\
b0322a85 7039" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742 7040" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
d50284c4
CE
7041" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7042" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7043" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8d138742
CE
7044" \$ 0!~/External *\|/{next};"\
7045" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7046" {if(hide[section]) next};"\
d50284c4
CE
7047" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7048" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7049" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7050" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8d138742
CE
7051" ' prfx=^$ac_symprfx"
7052 else
7053 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7054 fi
b0322a85 7055 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d9898ee8 7056
7057 # Check to see that the pipe works correctly.
7058 pipe_works=no
7059
7060 rm -f conftest*
8d138742 7061 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 7062#ifdef __cplusplus
7063extern "C" {
7064#endif
7065char nm_test_var;
8d138742
CE
7066void nm_test_func(void);
7067void nm_test_func(void){}
d9898ee8 7068#ifdef __cplusplus
7069}
7070#endif
7071int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 7072_LT_EOF
d9898ee8 7073
b0322a85 7074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 7075 (eval $ac_compile) 2>&5
7076 ac_status=$?
b0322a85
CE
7077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078 test $ac_status = 0; }; then
d9898ee8 7079 # Now try to grab the symbols.
7080 nlist=conftest.nm
b0322a85
CE
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7082 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d9898ee8 7083 ac_status=$?
b0322a85
CE
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; } && test -s "$nlist"; then
d9898ee8 7086 # Try sorting and uniquifying the output.
7087 if sort "$nlist" | uniq > "$nlist"T; then
7088 mv -f "$nlist"T "$nlist"
7089 else
7090 rm -f "$nlist"T
7091 fi
7092
7093 # Make sure that we snagged all the symbols we need.
8d138742
CE
7094 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7095 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7096 cat <<_LT_EOF > conftest.$ac_ext
b0322a85 7097/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
d50284c4
CE
7098#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7099/* DATA imports from DLLs on WIN32 can't be const, because runtime
b0322a85
CE
7100 relocations are performed -- see ld's documentation on pseudo-relocs. */
7101# define LT_DLSYM_CONST
d50284c4 7102#elif defined __osf__
b0322a85
CE
7103/* This system does not cope well with relocations in const data. */
7104# define LT_DLSYM_CONST
7105#else
7106# define LT_DLSYM_CONST const
7107#endif
7108
d9898ee8 7109#ifdef __cplusplus
7110extern "C" {
7111#endif
7112
8d138742 7113_LT_EOF
d9898ee8 7114 # Now generate the symbol file.
8d138742 7115 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 7116
8d138742 7117 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 7118
8d138742 7119/* The mapping between symbol names and symbols. */
b0322a85 7120LT_DLSYM_CONST struct {
d9898ee8 7121 const char *name;
8d138742 7122 void *address;
d9898ee8 7123}
8d138742 7124lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 7125{
8d138742
CE
7126 { "@PROGRAM@", (void *) 0 },
7127_LT_EOF
d50284c4 7128 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8d138742
CE
7129 cat <<\_LT_EOF >> conftest.$ac_ext
7130 {0, (void *) 0}
d9898ee8 7131};
7132
8d138742
CE
7133/* This works around a problem in FreeBSD linker */
7134#ifdef FREEBSD_WORKAROUND
7135static const void *lt_preloaded_setup() {
7136 return lt__PROGRAM__LTX_preloaded_symbols;
7137}
7138#endif
7139
d9898ee8 7140#ifdef __cplusplus
7141}
7142#endif
8d138742 7143_LT_EOF
d9898ee8 7144 # Now try linking the two files.
7145 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
7146 lt_globsym_save_LIBS=$LIBS
7147 lt_globsym_save_CFLAGS=$CFLAGS
d50284c4 7148 LIBS=conftstm.$ac_objext
d9898ee8 7149 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 7150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d9898ee8 7151 (eval $ac_link) 2>&5
7152 ac_status=$?
b0322a85 7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 7154 test $ac_status = 0; } && test -s conftest$ac_exeext; then
d9898ee8 7155 pipe_works=yes
7156 fi
b0322a85
CE
7157 LIBS=$lt_globsym_save_LIBS
7158 CFLAGS=$lt_globsym_save_CFLAGS
d9898ee8 7159 else
7160 echo "cannot find nm_test_func in $nlist" >&5
7161 fi
7162 else
7163 echo "cannot find nm_test_var in $nlist" >&5
7164 fi
7165 else
7166 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7167 fi
7168 else
7169 echo "$progname: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7171 fi
8d138742 7172 rm -rf conftest* conftst*
d9898ee8 7173
7174 # Do not use the global_symbol_pipe unless it works.
d50284c4 7175 if test yes = "$pipe_works"; then
d9898ee8 7176 break
7177 else
7178 lt_cv_sys_global_symbol_pipe=
7179 fi
7180done
7181
7182fi
7183
7184if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185 lt_cv_sys_global_symbol_to_cdecl=
7186fi
7187if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 7189$as_echo "failed" >&6; }
d9898ee8 7190else
b0322a85 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 7192$as_echo "ok" >&6; }
d9898ee8 7193fi
7194
b0322a85
CE
7195# Response file support.
7196if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7197 nm_file_list_spec='@'
7198elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7199 nm_file_list_spec='@'
7200fi
7201
7202
7203
7204
7205
7206
7207
d9898ee8 7208
7209
7210
7211
7212
d9898ee8 7213
d9898ee8 7214
d9898ee8 7215
d9898ee8 7216
d50284c4
CE
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
d9898ee8 7227
d9898ee8 7228
d9898ee8 7229
d9898ee8 7230
d9898ee8 7231
d9898ee8 7232
dd184caf 7233
d9898ee8 7234
b0322a85
CE
7235
7236
7237
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7239$as_echo_n "checking for sysroot... " >&6; }
7240
7241# Check whether --with-sysroot was given.
7242if test "${with_sysroot+set}" = set; then :
7243 withval=$with_sysroot;
7244else
7245 with_sysroot=no
7246fi
7247
7248
7249lt_sysroot=
d50284c4 7250case $with_sysroot in #(
b0322a85 7251 yes)
d50284c4 7252 if test yes = "$GCC"; then
b0322a85
CE
7253 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7254 fi
7255 ;; #(
7256 /*)
7257 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7258 ;; #(
7259 no|'')
7260 ;; #(
7261 *)
d50284c4
CE
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7263$as_echo "$with_sysroot" >&6; }
b0322a85
CE
7264 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7265 ;;
7266esac
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7269$as_echo "${lt_sysroot:-no}" >&6; }
8d138742
CE
7270
7271
7272
7273
7274
d50284c4
CE
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7276$as_echo_n "checking for a working dd... " >&6; }
7277if ${ac_cv_path_lt_DD+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279else
7280 printf 0123456789abcdef0123456789abcdef >conftest.i
7281cat conftest.i conftest.i >conftest2.i
7282: ${lt_DD:=$DD}
7283if test -z "$lt_DD"; then
7284 ac_path_lt_DD_found=false
7285 # Loop through the user's path and test for each of PROGNAME-LIST
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_prog in dd; do
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7294 as_fn_executable_p "$ac_path_lt_DD" || continue
7295if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7296 cmp -s conftest.i conftest.out \
7297 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7298fi
7299 $ac_path_lt_DD_found && break 3
7300 done
7301 done
7302 done
7303IFS=$as_save_IFS
7304 if test -z "$ac_cv_path_lt_DD"; then
7305 :
7306 fi
7307else
7308 ac_cv_path_lt_DD=$lt_DD
7309fi
7310
7311rm -f conftest.i conftest2.i conftest.out
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7314$as_echo "$ac_cv_path_lt_DD" >&6; }
7315
7316
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7318$as_echo_n "checking how to truncate binary pipes... " >&6; }
7319if ${lt_cv_truncate_bin+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321else
7322 printf 0123456789abcdef0123456789abcdef >conftest.i
7323cat conftest.i conftest.i >conftest2.i
7324lt_cv_truncate_bin=
7325if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7326 cmp -s conftest.i conftest.out \
7327 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7328fi
7329rm -f conftest.i conftest2.i conftest.out
7330test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7331fi
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7333$as_echo "$lt_cv_truncate_bin" >&6; }
7334
7335
7336
7337
7338
7339
7340
7341# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7342func_cc_basename ()
7343{
7344 for cc_temp in $*""; do
7345 case $cc_temp in
7346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7348 \-*) ;;
7349 *) break;;
7350 esac
7351 done
7352 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7353}
7354
8d138742 7355# Check whether --enable-libtool-lock was given.
b0322a85 7356if test "${enable_libtool_lock+set}" = set; then :
8d138742 7357 enableval=$enable_libtool_lock;
d9898ee8 7358fi
8d138742 7359
d50284c4 7360test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8d138742
CE
7361
7362# Some flags need to be propagated to the compiler or linker for good
7363# libtool support.
7364case $host in
7365ia64-*-hpux*)
d50284c4
CE
7366 # Find out what ABI is being produced by ac_compile, and set mode
7367 # options accordingly.
8d138742 7368 echo 'int i;' > conftest.$ac_ext
b0322a85 7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7370 (eval $ac_compile) 2>&5
7371 ac_status=$?
b0322a85
CE
7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373 test $ac_status = 0; }; then
8d138742
CE
7374 case `/usr/bin/file conftest.$ac_objext` in
7375 *ELF-32*)
d50284c4 7376 HPUX_IA64_MODE=32
8d138742
CE
7377 ;;
7378 *ELF-64*)
d50284c4 7379 HPUX_IA64_MODE=64
8d138742
CE
7380 ;;
7381 esac
7382 fi
7383 rm -rf conftest*
7384 ;;
7385*-*-irix6*)
d50284c4
CE
7386 # Find out what ABI is being produced by ac_compile, and set linker
7387 # options accordingly.
b0322a85
CE
7388 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7390 (eval $ac_compile) 2>&5
7391 ac_status=$?
b0322a85
CE
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }; then
d50284c4 7394 if test yes = "$lt_cv_prog_gnu_ld"; then
8d138742
CE
7395 case `/usr/bin/file conftest.$ac_objext` in
7396 *32-bit*)
7397 LD="${LD-ld} -melf32bsmip"
7398 ;;
7399 *N32*)
7400 LD="${LD-ld} -melf32bmipn32"
7401 ;;
7402 *64-bit*)
7403 LD="${LD-ld} -melf64bmip"
7404 ;;
7405 esac
7406 else
7407 case `/usr/bin/file conftest.$ac_objext` in
7408 *32-bit*)
7409 LD="${LD-ld} -32"
7410 ;;
7411 *N32*)
7412 LD="${LD-ld} -n32"
7413 ;;
7414 *64-bit*)
7415 LD="${LD-ld} -64"
7416 ;;
7417 esac
7418 fi
7419 fi
7420 rm -rf conftest*
7421 ;;
7422
d50284c4
CE
7423mips64*-*linux*)
7424 # Find out what ABI is being produced by ac_compile, and set linker
7425 # options accordingly.
7426 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 emul=elf
7433 case `/usr/bin/file conftest.$ac_objext` in
7434 *32-bit*)
7435 emul="${emul}32"
7436 ;;
7437 *64-bit*)
7438 emul="${emul}64"
7439 ;;
7440 esac
7441 case `/usr/bin/file conftest.$ac_objext` in
7442 *MSB*)
7443 emul="${emul}btsmip"
7444 ;;
7445 *LSB*)
7446 emul="${emul}ltsmip"
7447 ;;
7448 esac
7449 case `/usr/bin/file conftest.$ac_objext` in
7450 *N32*)
7451 emul="${emul}n32"
7452 ;;
7453 esac
7454 LD="${LD-ld} -m $emul"
7455 fi
7456 rm -rf conftest*
7457 ;;
7458
b0322a85 7459x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8d138742 7460s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
d50284c4
CE
7461 # Find out what ABI is being produced by ac_compile, and set linker
7462 # options accordingly. Note that the listed cases only cover the
7463 # situations where additional linker options are needed (such as when
7464 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7465 # vice versa); the common cases where no linker options are needed do
7466 # not appear in the list.
8d138742 7467 echo 'int i;' > conftest.$ac_ext
b0322a85 7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7469 (eval $ac_compile) 2>&5
7470 ac_status=$?
b0322a85
CE
7471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }; then
8d138742
CE
7473 case `/usr/bin/file conftest.o` in
7474 *32-bit*)
7475 case $host in
7476 x86_64-*kfreebsd*-gnu)
7477 LD="${LD-ld} -m elf_i386_fbsd"
7478 ;;
7479 x86_64-*linux*)
d50284c4
CE
7480 case `/usr/bin/file conftest.o` in
7481 *x86-64*)
7482 LD="${LD-ld} -m elf32_x86_64"
7483 ;;
7484 *)
7485 LD="${LD-ld} -m elf_i386"
7486 ;;
7487 esac
8d138742 7488 ;;
d50284c4 7489 powerpc64le-*linux*)
b0322a85
CE
7490 LD="${LD-ld} -m elf32lppclinux"
7491 ;;
d50284c4 7492 powerpc64-*linux*)
8d138742
CE
7493 LD="${LD-ld} -m elf32ppclinux"
7494 ;;
7495 s390x-*linux*)
7496 LD="${LD-ld} -m elf_s390"
7497 ;;
7498 sparc64-*linux*)
7499 LD="${LD-ld} -m elf32_sparc"
7500 ;;
7501 esac
7502 ;;
7503 *64-bit*)
7504 case $host in
7505 x86_64-*kfreebsd*-gnu)
7506 LD="${LD-ld} -m elf_x86_64_fbsd"
7507 ;;
7508 x86_64-*linux*)
7509 LD="${LD-ld} -m elf_x86_64"
7510 ;;
b0322a85
CE
7511 powerpcle-*linux*)
7512 LD="${LD-ld} -m elf64lppc"
7513 ;;
7514 powerpc-*linux*)
8d138742
CE
7515 LD="${LD-ld} -m elf64ppc"
7516 ;;
7517 s390*-*linux*|s390*-*tpf*)
7518 LD="${LD-ld} -m elf64_s390"
7519 ;;
7520 sparc*-*linux*)
7521 LD="${LD-ld} -m elf64_sparc"
7522 ;;
7523 esac
7524 ;;
7525 esac
7526 fi
7527 rm -rf conftest*
7528 ;;
7529
7530*-*-sco3.2v5*)
7531 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
d50284c4 7532 SAVE_CFLAGS=$CFLAGS
8d138742 7533 CFLAGS="$CFLAGS -belf"
b0322a85 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 7535$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 7536if ${lt_cv_cc_needs_belf+:} false; then :
8d138742 7537 $as_echo_n "(cached) " >&6
d9898ee8 7538else
8d138742
CE
7539 ac_ext=c
7540ac_cpp='$CPP $CPPFLAGS'
7541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7544
b0322a85 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7546/* end confdefs.h. */
7547
7548int
7549main ()
7550{
7551
7552 ;
7553 return 0;
7554}
7555_ACEOF
b0322a85 7556if ac_fn_c_try_link "$LINENO"; then :
8d138742 7557 lt_cv_cc_needs_belf=yes
d9898ee8 7558else
b0322a85 7559 lt_cv_cc_needs_belf=no
d9898ee8 7560fi
b0322a85
CE
7561rm -f core conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
7563 ac_ext=c
7564ac_cpp='$CPP $CPPFLAGS'
7565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567ac_compiler_gnu=$ac_cv_c_compiler_gnu
7568
7569fi
b0322a85 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742 7571$as_echo "$lt_cv_cc_needs_belf" >&6; }
d50284c4 7572 if test yes != "$lt_cv_cc_needs_belf"; then
8d138742 7573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
d50284c4 7574 CFLAGS=$SAVE_CFLAGS
8d138742
CE
7575 fi
7576 ;;
b0322a85 7577*-*solaris*)
d50284c4
CE
7578 # Find out what ABI is being produced by ac_compile, and set linker
7579 # options accordingly.
8d138742 7580 echo 'int i;' > conftest.$ac_ext
b0322a85 7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7582 (eval $ac_compile) 2>&5
7583 ac_status=$?
b0322a85
CE
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
8d138742
CE
7586 case `/usr/bin/file conftest.o` in
7587 *64-bit*)
7588 case $lt_cv_prog_gnu_ld in
b0322a85
CE
7589 yes*)
7590 case $host in
d50284c4 7591 i?86-*-solaris*|x86_64-*-solaris*)
b0322a85
CE
7592 LD="${LD-ld} -m elf_x86_64"
7593 ;;
7594 sparc*-*-solaris*)
7595 LD="${LD-ld} -m elf64_sparc"
7596 ;;
7597 esac
7598 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7599 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
d50284c4 7600 LD=${LD-ld}_sol2
b0322a85
CE
7601 fi
7602 ;;
8d138742
CE
7603 *)
7604 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7605 LD="${LD-ld} -64"
7606 fi
7607 ;;
7608 esac
7609 ;;
7610 esac
7611 fi
7612 rm -rf conftest*
7613 ;;
7614esac
7615
d50284c4 7616need_locks=$enable_libtool_lock
8d138742 7617
b0322a85
CE
7618if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7620set dummy ${ac_tool_prefix}mt; ac_word=$2
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7622$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7623if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8d138742 7624 $as_echo_n "(cached) " >&6
d9898ee8 7625else
b0322a85
CE
7626 if test -n "$MANIFEST_TOOL"; then
7627 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
d9898ee8 7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
b0322a85
CE
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7638 break 2
7639 fi
7640done
b0322a85 7641 done
dd184caf 7642IFS=$as_save_IFS
d9898ee8 7643
7644fi
7645fi
b0322a85
CE
7646MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7647if test -n "$MANIFEST_TOOL"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7649$as_echo "$MANIFEST_TOOL" >&6; }
d9898ee8 7650else
b0322a85 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7652$as_echo "no" >&6; }
d9898ee8 7653fi
7654
dd184caf 7655
d9898ee8 7656fi
b0322a85
CE
7657if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7658 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7659 # Extract the first word of "mt", so it can be a program name with args.
7660set dummy mt; ac_word=$2
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7662$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7663if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8d138742 7664 $as_echo_n "(cached) " >&6
d9898ee8 7665else
b0322a85
CE
7666 if test -n "$ac_ct_MANIFEST_TOOL"; then
7667 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
d9898ee8 7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
b0322a85
CE
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7678 break 2
7679 fi
7680done
b0322a85 7681 done
dd184caf 7682IFS=$as_save_IFS
d9898ee8 7683
d9898ee8 7684fi
7685fi
b0322a85
CE
7686ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7687if test -n "$ac_ct_MANIFEST_TOOL"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7689$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
d9898ee8 7690else
b0322a85 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7692$as_echo "no" >&6; }
d9898ee8 7693fi
7694
b0322a85
CE
7695 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7696 MANIFEST_TOOL=":"
dd184caf 7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699yes:)
b0322a85 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7702ac_tool_warned=yes ;;
7703esac
b0322a85 7704 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
dd184caf 7705 fi
d9898ee8 7706else
b0322a85 7707 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
d9898ee8 7708fi
7709
b0322a85
CE
7710test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7712$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7713if ${lt_cv_path_mainfest_tool+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715else
7716 lt_cv_path_mainfest_tool=no
7717 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7718 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7719 cat conftest.err >&5
7720 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7721 lt_cv_path_mainfest_tool=yes
7722 fi
7723 rm -f conftest*
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7726$as_echo "$lt_cv_path_mainfest_tool" >&6; }
d50284c4 7727if test yes != "$lt_cv_path_mainfest_tool"; then
b0322a85
CE
7728 MANIFEST_TOOL=:
7729fi
7730
7731
7732
7733
7734
7735
7736 case $host_os in
7737 rhapsody* | darwin*)
7738 if test -n "$ac_tool_prefix"; then
7739 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7740set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742$as_echo_n "checking for $ac_word... " >&6; }
7743if ${ac_cv_prog_DSYMUTIL+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745else
7746 if test -n "$DSYMUTIL"; then
7747 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7748else
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7759 fi
7760done
7761 done
7762IFS=$as_save_IFS
7763
7764fi
7765fi
7766DSYMUTIL=$ac_cv_prog_DSYMUTIL
7767if test -n "$DSYMUTIL"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7769$as_echo "$DSYMUTIL" >&6; }
7770else
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772$as_echo "no" >&6; }
7773fi
7774
7775
7776fi
7777if test -z "$ac_cv_prog_DSYMUTIL"; then
7778 ac_ct_DSYMUTIL=$DSYMUTIL
7779 # Extract the first word of "dsymutil", so it can be a program name with args.
7780set dummy dsymutil; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
7783if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785else
7786 if test -n "$ac_ct_DSYMUTIL"; then
7787 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800done
7801 done
7802IFS=$as_save_IFS
7803
7804fi
7805fi
7806ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7807if test -n "$ac_ct_DSYMUTIL"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7809$as_echo "$ac_ct_DSYMUTIL" >&6; }
7810else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812$as_echo "no" >&6; }
7813fi
7814
7815 if test "x$ac_ct_DSYMUTIL" = x; then
7816 DSYMUTIL=":"
7817 else
7818 case $cross_compiling:$ac_tool_warned in
7819yes:)
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7822ac_tool_warned=yes ;;
7823esac
7824 DSYMUTIL=$ac_ct_DSYMUTIL
7825 fi
7826else
7827 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7828fi
7829
7830 if test -n "$ac_tool_prefix"; then
8d138742
CE
7831 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7832set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7834$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7835if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742 7836 $as_echo_n "(cached) " >&6
d9898ee8 7837else
8d138742
CE
7838 if test -n "$NMEDIT"; then
7839 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
b0322a85
CE
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7848 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7850 break 2
7851 fi
7852done
b0322a85 7853 done
dd184caf 7854IFS=$as_save_IFS
d9898ee8 7855
7856fi
7857fi
8d138742
CE
7858NMEDIT=$ac_cv_prog_NMEDIT
7859if test -n "$NMEDIT"; then
b0322a85 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742 7861$as_echo "$NMEDIT" >&6; }
d9898ee8 7862else
b0322a85 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7864$as_echo "no" >&6; }
d9898ee8 7865fi
7866
dd184caf 7867
d9898ee8 7868fi
8d138742
CE
7869if test -z "$ac_cv_prog_NMEDIT"; then
7870 ac_ct_NMEDIT=$NMEDIT
7871 # Extract the first word of "nmedit", so it can be a program name with args.
7872set dummy nmedit; ac_word=$2
b0322a85 7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7874$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7875if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742 7876 $as_echo_n "(cached) " >&6
d9898ee8 7877else
8d138742
CE
7878 if test -n "$ac_ct_NMEDIT"; then
7879 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
b0322a85
CE
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7888 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7890 break 2
7891 fi
7892done
b0322a85 7893 done
dd184caf 7894IFS=$as_save_IFS
d9898ee8 7895
d9898ee8 7896fi
7897fi
8d138742
CE
7898ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7899if test -n "$ac_ct_NMEDIT"; then
b0322a85 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742 7901$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 7902else
b0322a85 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7904$as_echo "no" >&6; }
d9898ee8 7905fi
7906
8d138742
CE
7907 if test "x$ac_ct_NMEDIT" = x; then
7908 NMEDIT=":"
dd184caf 7909 else
7910 case $cross_compiling:$ac_tool_warned in
7911yes:)
b0322a85 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7914ac_tool_warned=yes ;;
7915esac
8d138742 7916 NMEDIT=$ac_ct_NMEDIT
dd184caf 7917 fi
d9898ee8 7918else
8d138742 7919 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 7920fi
7921
8d138742
CE
7922 if test -n "$ac_tool_prefix"; then
7923 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7924set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7926$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7927if ${ac_cv_prog_LIPO+:} false; then :
8d138742
CE
7928 $as_echo_n "(cached) " >&6
7929else
7930 if test -n "$LIPO"; then
7931 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7932else
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
b0322a85
CE
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7940 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7942 break 2
7943 fi
7944done
b0322a85 7945 done
8d138742 7946IFS=$as_save_IFS
d9898ee8 7947
8d138742
CE
7948fi
7949fi
7950LIPO=$ac_cv_prog_LIPO
7951if test -n "$LIPO"; then
b0322a85 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742
CE
7953$as_echo "$LIPO" >&6; }
7954else
b0322a85 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7956$as_echo "no" >&6; }
7957fi
d9898ee8 7958
d9898ee8 7959
d9898ee8 7960fi
8d138742
CE
7961if test -z "$ac_cv_prog_LIPO"; then
7962 ac_ct_LIPO=$LIPO
7963 # Extract the first word of "lipo", so it can be a program name with args.
7964set dummy lipo; ac_word=$2
b0322a85 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7966$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7967if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742
CE
7968 $as_echo_n "(cached) " >&6
7969else
7970 if test -n "$ac_ct_LIPO"; then
7971 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7972else
7973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974for as_dir in $PATH
7975do
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
b0322a85
CE
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7980 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7982 break 2
7983 fi
d9898ee8 7984done
b0322a85 7985 done
8d138742 7986IFS=$as_save_IFS
d9898ee8 7987
8d138742
CE
7988fi
7989fi
7990ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7991if test -n "$ac_ct_LIPO"; then
b0322a85 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 7993$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 7994else
b0322a85 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7996$as_echo "no" >&6; }
7997fi
d9898ee8 7998
8d138742
CE
7999 if test "x$ac_ct_LIPO" = x; then
8000 LIPO=":"
8001 else
8002 case $cross_compiling:$ac_tool_warned in
8003yes:)
b0322a85 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006ac_tool_warned=yes ;;
d9898ee8 8007esac
8d138742
CE
8008 LIPO=$ac_ct_LIPO
8009 fi
8010else
8011 LIPO="$ac_cv_prog_LIPO"
d9898ee8 8012fi
8013
8d138742
CE
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8016set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8018$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8019if ${ac_cv_prog_OTOOL+:} false; then :
8d138742 8020 $as_echo_n "(cached) " >&6
d9898ee8 8021else
8d138742
CE
8022 if test -n "$OTOOL"; then
8023 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
b0322a85
CE
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8032 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8034 break 2
8035 fi
8036done
b0322a85 8037 done
8d138742 8038IFS=$as_save_IFS
d9898ee8 8039
8d138742
CE
8040fi
8041fi
8042OTOOL=$ac_cv_prog_OTOOL
8043if test -n "$OTOOL"; then
b0322a85 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742 8045$as_echo "$OTOOL" >&6; }
d9898ee8 8046else
b0322a85 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8048$as_echo "no" >&6; }
8049fi
d9898ee8 8050
d9898ee8 8051
d9898ee8 8052fi
8d138742
CE
8053if test -z "$ac_cv_prog_OTOOL"; then
8054 ac_ct_OTOOL=$OTOOL
8055 # Extract the first word of "otool", so it can be a program name with args.
8056set dummy otool; ac_word=$2
b0322a85 8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8058$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8059if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742
CE
8060 $as_echo_n "(cached) " >&6
8061else
8062 if test -n "$ac_ct_OTOOL"; then
8063 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
b0322a85
CE
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8072 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8074 break 2
8075 fi
8076done
b0322a85 8077 done
8d138742 8078IFS=$as_save_IFS
d9898ee8 8079
8d138742
CE
8080fi
8081fi
8082ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8083if test -n "$ac_ct_OTOOL"; then
b0322a85 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742 8085$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 8086else
b0322a85 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 8088$as_echo "no" >&6; }
d9898ee8 8089fi
8090
8d138742
CE
8091 if test "x$ac_ct_OTOOL" = x; then
8092 OTOOL=":"
d9898ee8 8093 else
8d138742
CE
8094 case $cross_compiling:$ac_tool_warned in
8095yes:)
b0322a85 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098ac_tool_warned=yes ;;
8099esac
8100 OTOOL=$ac_ct_OTOOL
d9898ee8 8101 fi
8d138742
CE
8102else
8103 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 8104fi
8105
8d138742
CE
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8108set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8110$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8111if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742
CE
8112 $as_echo_n "(cached) " >&6
8113else
8114 if test -n "$OTOOL64"; then
8115 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
b0322a85
CE
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8124 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 8126 break 2
d9898ee8 8127 fi
8d138742 8128done
b0322a85 8129 done
8d138742 8130IFS=$as_save_IFS
d9898ee8 8131
8d138742
CE
8132fi
8133fi
8134OTOOL64=$ac_cv_prog_OTOOL64
8135if test -n "$OTOOL64"; then
b0322a85 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742
CE
8137$as_echo "$OTOOL64" >&6; }
8138else
b0322a85 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 8140$as_echo "no" >&6; }
dd184caf 8141fi
d9898ee8 8142
d9898ee8 8143
8d138742
CE
8144fi
8145if test -z "$ac_cv_prog_OTOOL64"; then
8146 ac_ct_OTOOL64=$OTOOL64
8147 # Extract the first word of "otool64", so it can be a program name with args.
8148set dummy otool64; ac_word=$2
b0322a85 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 8150$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 8151if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742
CE
8152 $as_echo_n "(cached) " >&6
8153else
8154 if test -n "$ac_ct_OTOOL64"; then
8155 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8156else
8157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
b0322a85
CE
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 8164 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
8166 break 2
8167 fi
8168done
b0322a85 8169 done
8d138742 8170IFS=$as_save_IFS
d9898ee8 8171
8d138742
CE
8172fi
8173fi
8174ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8175if test -n "$ac_ct_OTOOL64"; then
b0322a85 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742 8177$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 8178else
b0322a85 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 8180$as_echo "no" >&6; }
dd184caf 8181fi
8182
8d138742
CE
8183 if test "x$ac_ct_OTOOL64" = x; then
8184 OTOOL64=":"
8185 else
8186 case $cross_compiling:$ac_tool_warned in
8187yes:)
b0322a85 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190ac_tool_warned=yes ;;
8191esac
8192 OTOOL64=$ac_ct_OTOOL64
8193 fi
8194else
8195 OTOOL64="$ac_cv_prog_OTOOL64"
8196fi
d9898ee8 8197
d9898ee8 8198
8199
d9898ee8 8200
d9898ee8 8201
d9898ee8 8202
d9898ee8 8203
8204
d9898ee8 8205
d9898ee8 8206
d9898ee8 8207
8208
d9898ee8 8209
d9898ee8 8210
8211
8212
d9898ee8 8213
d9898ee8 8214
8215
d9898ee8 8216
d9898ee8 8217
d9898ee8 8218
d9898ee8 8219
d9898ee8 8220
d9898ee8 8221
d9898ee8 8222
8d138742 8223
b0322a85 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 8225$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 8226if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742
CE
8227 $as_echo_n "(cached) " >&6
8228else
8229 lt_cv_apple_cc_single_mod=no
d50284c4 8230 if test -z "$LT_MULTI_MODULE"; then
8d138742
CE
8231 # By default we will add the -single_module flag. You can override
8232 # by either setting the environment variable LT_MULTI_MODULE
8233 # non-empty at configure time, or by adding -multi_module to the
8234 # link flags.
8235 rm -rf libconftest.dylib*
8236 echo "int foo(void){return 1;}" > conftest.c
8237 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8238-dynamiclib -Wl,-single_module conftest.c" >&5
8239 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8240 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8241 _lt_result=$?
b0322a85
CE
8242 # If there is a non-empty error log, and "single_module"
8243 # appears in it, assume the flag caused a linker warning
8244 if test -s conftest.err && $GREP single_module conftest.err; then
8245 cat conftest.err >&5
8246 # Otherwise, if the output was created with a 0 exit code from
8247 # the compiler, it worked.
d50284c4 8248 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8d138742
CE
8249 lt_cv_apple_cc_single_mod=yes
8250 else
8251 cat conftest.err >&5
8252 fi
8253 rm -rf libconftest.dylib*
8254 rm -f conftest.*
d9898ee8 8255 fi
8d138742 8256fi
b0322a85 8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 8258$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 8261$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 8262if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
8263 $as_echo_n "(cached) " >&6
8264else
8265 lt_cv_ld_exported_symbols_list=no
8266 save_LDFLAGS=$LDFLAGS
8267 echo "_main" > conftest.sym
8268 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 8270/* end confdefs.h. */
d9898ee8 8271
8d138742
CE
8272int
8273main ()
8274{
d9898ee8 8275
8d138742
CE
8276 ;
8277 return 0;
8278}
8279_ACEOF
b0322a85 8280if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
8281 lt_cv_ld_exported_symbols_list=yes
8282else
b0322a85 8283 lt_cv_ld_exported_symbols_list=no
8d138742 8284fi
b0322a85
CE
8285rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
d50284c4 8287 LDFLAGS=$save_LDFLAGS
d9898ee8 8288
8d138742 8289fi
b0322a85 8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 8291$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8294$as_echo_n "checking for -force_load linker flag... " >&6; }
8295if ${lt_cv_ld_force_load+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297else
8298 lt_cv_ld_force_load=no
8299 cat > conftest.c << _LT_EOF
8300int forced_loaded() { return 2;}
8301_LT_EOF
8302 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8303 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8304 echo "$AR cru libconftest.a conftest.o" >&5
8305 $AR cru libconftest.a conftest.o 2>&5
8306 echo "$RANLIB libconftest.a" >&5
8307 $RANLIB libconftest.a 2>&5
8308 cat > conftest.c << _LT_EOF
8309int main() { return 0;}
8310_LT_EOF
8311 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8312 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8313 _lt_result=$?
8314 if test -s conftest.err && $GREP force_load conftest.err; then
8315 cat conftest.err >&5
d50284c4 8316 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
b0322a85
CE
8317 lt_cv_ld_force_load=yes
8318 else
8319 cat conftest.err >&5
8320 fi
8321 rm -f conftest.err libconftest.a conftest conftest.c
8322 rm -rf conftest.dSYM
8323
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8326$as_echo "$lt_cv_ld_force_load" >&6; }
8d138742
CE
8327 case $host_os in
8328 rhapsody* | darwin1.[012])
d50284c4 8329 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8d138742 8330 darwin1.*)
d50284c4 8331 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742
CE
8332 darwin*) # darwin 5.x on
8333 # if running on 10.5 or later, the deployment target defaults
8334 # to the OS version, if on x86, and 10.4, the deployment
8335 # target defaults to 10.4. Don't you love it?
8336 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8337 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
d50284c4
CE
8338 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8339 10.[012][,.]*)
8340 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742 8341 10.*)
d50284c4 8342 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8d138742
CE
8343 esac
8344 ;;
8345 esac
d50284c4 8346 if test yes = "$lt_cv_apple_cc_single_mod"; then
8d138742
CE
8347 _lt_dar_single_mod='$single_module'
8348 fi
d50284c4
CE
8349 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8350 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8d138742 8351 else
d50284c4 8352 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8d138742 8353 fi
d50284c4 8354 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8d138742
CE
8355 _lt_dsymutil='~$DSYMUTIL $lib || :'
8356 else
8357 _lt_dsymutil=
8358 fi
8359 ;;
8360 esac
d9898ee8 8361
d50284c4
CE
8362# func_munge_path_list VARIABLE PATH
8363# -----------------------------------
8364# VARIABLE is name of variable containing _space_ separated list of
8365# directories to be munged by the contents of PATH, which is string
8366# having a format:
8367# "DIR[:DIR]:"
8368# string "DIR[ DIR]" will be prepended to VARIABLE
8369# ":DIR[:DIR]"
8370# string "DIR[ DIR]" will be appended to VARIABLE
8371# "DIRP[:DIRP]::[DIRA:]DIRA"
8372# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8373# "DIRA[ DIRA]" will be appended to VARIABLE
8374# "DIR[:DIR]"
8375# VARIABLE will be replaced by "DIR[ DIR]"
8376func_munge_path_list ()
8377{
8378 case x$2 in
8379 x)
8380 ;;
8381 *:)
8382 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8383 ;;
8384 x:*)
8385 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8386 ;;
8387 *::*)
8388 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8389 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8390 ;;
8391 *)
8392 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8393 ;;
8394 esac
8395}
8396
d9898ee8 8397
b0322a85 8398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 8399$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 8400if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
8401 $as_echo_n "(cached) " >&6
8402else
b0322a85 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
8404/* end confdefs.h. */
8405#include <stdlib.h>
8406#include <stdarg.h>
8407#include <string.h>
8408#include <float.h>
d9898ee8 8409
8d138742
CE
8410int
8411main ()
8412{
d9898ee8 8413
8d138742
CE
8414 ;
8415 return 0;
8416}
8417_ACEOF
b0322a85 8418if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
8419 ac_cv_header_stdc=yes
8420else
b0322a85 8421 ac_cv_header_stdc=no
8d138742 8422fi
8d138742 8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 8424
8d138742
CE
8425if test $ac_cv_header_stdc = yes; then
8426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
8428/* end confdefs.h. */
8429#include <string.h>
d9898ee8 8430
8d138742
CE
8431_ACEOF
8432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
8433 $EGREP "memchr" >/dev/null 2>&1; then :
8434
8d138742
CE
8435else
8436 ac_cv_header_stdc=no
8437fi
8438rm -f conftest*
d9898ee8 8439
8d138742 8440fi
d9898ee8 8441
8d138742
CE
8442if test $ac_cv_header_stdc = yes; then
8443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
8445/* end confdefs.h. */
8446#include <stdlib.h>
ac40fd9e 8447
8d138742
CE
8448_ACEOF
8449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
8450 $EGREP "free" >/dev/null 2>&1; then :
8451
8d138742
CE
8452else
8453 ac_cv_header_stdc=no
8454fi
8455rm -f conftest*
d9898ee8 8456
8d138742 8457fi
d9898ee8 8458
8d138742
CE
8459if test $ac_cv_header_stdc = yes; then
8460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 8461 if test "$cross_compiling" = yes; then :
8d138742
CE
8462 :
8463else
b0322a85 8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
8465/* end confdefs.h. */
8466#include <ctype.h>
8467#include <stdlib.h>
8468#if ((' ' & 0x0FF) == 0x020)
8469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8471#else
8472# define ISLOWER(c) \
8473 (('a' <= (c) && (c) <= 'i') \
8474 || ('j' <= (c) && (c) <= 'r') \
8475 || ('s' <= (c) && (c) <= 'z'))
8476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8477#endif
d9898ee8 8478
8d138742
CE
8479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8480int
8481main ()
8482{
8483 int i;
8484 for (i = 0; i < 256; i++)
8485 if (XOR (islower (i), ISLOWER (i))
8486 || toupper (i) != TOUPPER (i))
8487 return 2;
8488 return 0;
8489}
8490_ACEOF
b0322a85 8491if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 8492
b0322a85
CE
8493else
8494 ac_cv_header_stdc=no
8d138742 8495fi
b0322a85
CE
8496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8497 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 8498fi
d9898ee8 8499
8d138742
CE
8500fi
8501fi
b0322a85 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742
CE
8503$as_echo "$ac_cv_header_stdc" >&6; }
8504if test $ac_cv_header_stdc = yes; then
d9898ee8 8505
b0322a85 8506$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 8507
8d138742 8508fi
d9898ee8 8509
8d138742 8510# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8d138742
CE
8511for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8512 inttypes.h stdint.h unistd.h
b0322a85
CE
8513do :
8514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8515ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8516"
8517if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
8518 cat >>confdefs.h <<_ACEOF
8519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8520_ACEOF
d9898ee8 8521
8d138742 8522fi
d9898ee8 8523
8d138742
CE
8524done
8525
8526
8d138742 8527for ac_header in dlfcn.h
b0322a85
CE
8528do :
8529 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8530"
8531if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8d138742 8532 cat >>confdefs.h <<_ACEOF
b0322a85 8533#define HAVE_DLFCN_H 1
8d138742
CE
8534_ACEOF
8535
8536fi
d9898ee8 8537
d9898ee8 8538done
d9898ee8 8539
d9898ee8 8540
d9898ee8 8541
b0322a85 8542
0e333c05
CE
8543func_stripname_cnf ()
8544{
8545 case $2 in
8546 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8547 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8548 esac
8549} # func_stripname_cnf
8550
8551
8552
8553
b0322a85 8554
8d138742
CE
8555# Set options
8556enable_dlopen=yes
d9898ee8 8557
d9898ee8 8558
d9898ee8 8559
d9898ee8 8560
8d138742 8561 enable_win32_dll=no
d9898ee8 8562
d9898ee8 8563
8d138742 8564 # Check whether --enable-shared was given.
b0322a85 8565if test "${enable_shared+set}" = set; then :
8d138742
CE
8566 enableval=$enable_shared; p=${PACKAGE-default}
8567 case $enableval in
8568 yes) enable_shared=yes ;;
8569 no) enable_shared=no ;;
8570 *)
8571 enable_shared=no
8572 # Look at the argument we got. We use all the common list separators.
d50284c4 8573 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 8574 for pkg in $enableval; do
d50284c4 8575 IFS=$lt_save_ifs
8d138742
CE
8576 if test "X$pkg" = "X$p"; then
8577 enable_shared=yes
8578 fi
8579 done
d50284c4 8580 IFS=$lt_save_ifs
d9898ee8 8581 ;;
8d138742
CE
8582 esac
8583else
8584 enable_shared=yes
8585fi
8586
8587
d9898ee8 8588
d9898ee8 8589
d9898ee8 8590
d9898ee8 8591
d9898ee8 8592
8d138742
CE
8593
8594
8595 # Check whether --enable-static was given.
b0322a85 8596if test "${enable_static+set}" = set; then :
8d138742
CE
8597 enableval=$enable_static; p=${PACKAGE-default}
8598 case $enableval in
8599 yes) enable_static=yes ;;
8600 no) enable_static=no ;;
8601 *)
8602 enable_static=no
8603 # Look at the argument we got. We use all the common list separators.
d50284c4 8604 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 8605 for pkg in $enableval; do
d50284c4 8606 IFS=$lt_save_ifs
8d138742
CE
8607 if test "X$pkg" = "X$p"; then
8608 enable_static=yes
d9898ee8 8609 fi
8d138742 8610 done
d50284c4 8611 IFS=$lt_save_ifs
d9898ee8 8612 ;;
8d138742
CE
8613 esac
8614else
8615 enable_static=yes
8616fi
d9898ee8 8617
d9898ee8 8618
d9898ee8 8619
d9898ee8 8620
d9898ee8 8621
d9898ee8 8622
d9898ee8 8623
d9898ee8 8624
d9898ee8 8625
8d138742
CE
8626
8627# Check whether --with-pic was given.
b0322a85
CE
8628if test "${with_pic+set}" = set; then :
8629 withval=$with_pic; lt_p=${PACKAGE-default}
8630 case $withval in
8631 yes|no) pic_mode=$withval ;;
8632 *)
8633 pic_mode=default
8634 # Look at the argument we got. We use all the common list separators.
d50284c4 8635 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
b0322a85 8636 for lt_pkg in $withval; do
d50284c4 8637 IFS=$lt_save_ifs
b0322a85
CE
8638 if test "X$lt_pkg" = "X$lt_p"; then
8639 pic_mode=yes
8640 fi
8641 done
d50284c4 8642 IFS=$lt_save_ifs
b0322a85
CE
8643 ;;
8644 esac
8645else
8646 pic_mode=default
8647fi
8648
8649
8d138742
CE
8650
8651
8652
8653
8654
8655
8656 # Check whether --enable-fast-install was given.
b0322a85 8657if test "${enable_fast_install+set}" = set; then :
8d138742
CE
8658 enableval=$enable_fast_install; p=${PACKAGE-default}
8659 case $enableval in
8660 yes) enable_fast_install=yes ;;
8661 no) enable_fast_install=no ;;
d9898ee8 8662 *)
8d138742
CE
8663 enable_fast_install=no
8664 # Look at the argument we got. We use all the common list separators.
d50284c4 8665 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 8666 for pkg in $enableval; do
d50284c4 8667 IFS=$lt_save_ifs
8d138742
CE
8668 if test "X$pkg" = "X$p"; then
8669 enable_fast_install=yes
8670 fi
8671 done
d50284c4 8672 IFS=$lt_save_ifs
d9898ee8 8673 ;;
8674 esac
8d138742
CE
8675else
8676 enable_fast_install=yes
8677fi
d9898ee8 8678
d9898ee8 8679
d9898ee8 8680
d9898ee8 8681
d9898ee8 8682
d9898ee8 8683
d9898ee8 8684
d9898ee8 8685
d50284c4
CE
8686 shared_archive_member_spec=
8687case $host,$enable_shared in
8688power*-*-aix[5-9]*,yes)
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8690$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8691
8692# Check whether --with-aix-soname was given.
8693if test "${with_aix_soname+set}" = set; then :
8694 withval=$with_aix_soname; case $withval in
8695 aix|svr4|both)
8696 ;;
8697 *)
8698 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8699 ;;
8700 esac
8701 lt_cv_with_aix_soname=$with_aix_soname
8702else
8703 if ${lt_cv_with_aix_soname+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705else
8706 lt_cv_with_aix_soname=aix
8707fi
8708
8709 with_aix_soname=$lt_cv_with_aix_soname
8710fi
8711
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8713$as_echo "$with_aix_soname" >&6; }
8714 if test aix != "$with_aix_soname"; then
8715 # For the AIX way of multilib, we name the shared archive member
8716 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8717 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8718 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8719 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8720 if test 64 = "${OBJECT_MODE-32}"; then
8721 shared_archive_member_spec=shr_64
8722 else
8723 shared_archive_member_spec=shr
8724 fi
8725 fi
8726 ;;
8727*)
8728 with_aix_soname=aix
8729 ;;
8730esac
8731
8732
8733
8734
8735
8736
8737
d9898ee8 8738
d9898ee8 8739
d9898ee8 8740
8d138742 8741# This can be used to rebuild libtool when needed
d50284c4 8742LIBTOOL_DEPS=$ltmain
d9898ee8 8743
8d138742
CE
8744# Always use our own libtool.
8745LIBTOOL='$(SHELL) $(top_builddir)/libtool'
dd184caf 8746
dd184caf 8747
d9898ee8 8748
d9898ee8 8749
d9898ee8 8750
d9898ee8 8751
d9898ee8 8752
dd184caf 8753
dd184caf 8754
d9898ee8 8755
d9898ee8 8756
d9898ee8 8757
d9898ee8 8758
d9898ee8 8759
d9898ee8 8760
d9898ee8 8761
d9898ee8 8762
d9898ee8 8763
d9898ee8 8764
b0322a85
CE
8765
8766
8767
8768
8769
d9898ee8 8770
d9898ee8 8771
d9898ee8 8772
d9898ee8 8773
d9898ee8 8774
d9898ee8 8775
8d138742 8776test -z "$LN_S" && LN_S="ln -s"
d9898ee8 8777
d9898ee8 8778
d9898ee8 8779
d9898ee8 8780
d9898ee8 8781
d9898ee8 8782
d9898ee8 8783
d9898ee8 8784
d9898ee8 8785
d9898ee8 8786
d9898ee8 8787
d9898ee8 8788
d9898ee8 8789
d9898ee8 8790
d50284c4 8791if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
8792 setopt NO_GLOB_SUBST
8793fi
d9898ee8 8794
b0322a85 8795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 8796$as_echo_n "checking for objdir... " >&6; }
b0322a85 8797if ${lt_cv_objdir+:} false; then :
8d138742
CE
8798 $as_echo_n "(cached) " >&6
8799else
8800 rm -f .libs 2>/dev/null
8801mkdir .libs 2>/dev/null
8802if test -d .libs; then
8803 lt_cv_objdir=.libs
8804else
8805 # MS-DOS does not allow filenames that begin with a dot.
8806 lt_cv_objdir=_libs
8807fi
8808rmdir .libs 2>/dev/null
8809fi
b0322a85 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
8811$as_echo "$lt_cv_objdir" >&6; }
8812objdir=$lt_cv_objdir
d9898ee8 8813
d9898ee8 8814
d9898ee8 8815
d9898ee8 8816
d9898ee8 8817
8d138742
CE
8818cat >>confdefs.h <<_ACEOF
8819#define LT_OBJDIR "$lt_cv_objdir/"
8820_ACEOF
d9898ee8 8821
d9898ee8 8822
d9898ee8 8823
d9898ee8 8824
8d138742
CE
8825case $host_os in
8826aix3*)
8827 # AIX sometimes has problems with the GCC collect2 program. For some
8828 # reason, if we set the COLLECT_NAMES environment variable, the problems
8829 # vanish in a puff of smoke.
d50284c4 8830 if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
8831 COLLECT_NAMES=
8832 export COLLECT_NAMES
d9898ee8 8833 fi
8834 ;;
8835esac
8836
8d138742
CE
8837# Global variables:
8838ofile=libtool
8839can_build_shared=yes
8840
d50284c4 8841# All known linkers require a '.a' archive for static linking (except MSVC,
8d138742
CE
8842# which needs '.lib').
8843libext=a
8844
d50284c4 8845with_gnu_ld=$lt_cv_prog_gnu_ld
8d138742 8846
d50284c4
CE
8847old_CC=$CC
8848old_CFLAGS=$CFLAGS
8d138742
CE
8849
8850# Set sane defaults for various variables
8851test -z "$CC" && CC=cc
8852test -z "$LTCC" && LTCC=$CC
8853test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8854test -z "$LD" && LD=ld
8855test -z "$ac_objext" && ac_objext=o
8856
d50284c4
CE
8857func_cc_basename $compiler
8858cc_basename=$func_cc_basename_result
8d138742
CE
8859
8860
8861# Only perform the check for file, if the check method requires it
8862test -z "$MAGIC_CMD" && MAGIC_CMD=file
8863case $deplibs_check_method in
8864file_magic*)
8865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 8867$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 8868if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
8869 $as_echo_n "(cached) " >&6
8870else
8871 case $MAGIC_CMD in
8872[\\/*] | ?:[\\/]*)
d50284c4 8873 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
8874 ;;
8875*)
d50284c4
CE
8876 lt_save_MAGIC_CMD=$MAGIC_CMD
8877 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
8878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8879 for ac_dir in $ac_dummy; do
d50284c4 8880 IFS=$lt_save_ifs
8d138742 8881 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
8882 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8883 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8d138742
CE
8884 if test -n "$file_magic_test_file"; then
8885 case $deplibs_check_method in
8886 "file_magic "*)
8887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 8888 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
8889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8890 $EGREP "$file_magic_regex" > /dev/null; then
8891 :
8892 else
8893 cat <<_LT_EOF 1>&2
8894
8895*** Warning: the command libtool uses to detect shared libraries,
8896*** $file_magic_cmd, produces output that libtool cannot recognize.
8897*** The result is that libtool may fail to recognize shared libraries
8898*** as such. This will affect the creation of libtool libraries that
8899*** depend on shared libraries, but programs linked with such libtool
8900*** libraries will work regardless of this problem. Nevertheless, you
8901*** may want to report the problem to your system manager and/or to
8902*** bug-libtool@gnu.org
8903
8904_LT_EOF
8905 fi ;;
8906 esac
8907 fi
8908 break
ac40fd9e 8909 fi
8910 done
d50284c4
CE
8911 IFS=$lt_save_ifs
8912 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742
CE
8913 ;;
8914esac
8915fi
8916
d50284c4 8917MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 8918if test -n "$MAGIC_CMD"; then
b0322a85 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 8920$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 8921else
b0322a85 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 8923$as_echo "no" >&6; }
d9898ee8 8924fi
d9898ee8 8925
d9898ee8 8926
d9898ee8 8927
8d138742
CE
8928
8929
8930if test -z "$lt_cv_path_MAGIC_CMD"; then
8931 if test -n "$ac_tool_prefix"; then
b0322a85 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 8933$as_echo_n "checking for file... " >&6; }
b0322a85 8934if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
8935 $as_echo_n "(cached) " >&6
8936else
8937 case $MAGIC_CMD in
8938[\\/*] | ?:[\\/]*)
d50284c4 8939 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d9898ee8 8940 ;;
8d138742 8941*)
d50284c4
CE
8942 lt_save_MAGIC_CMD=$MAGIC_CMD
8943 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
8944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8945 for ac_dir in $ac_dummy; do
d50284c4 8946 IFS=$lt_save_ifs
8d138742 8947 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
8948 if test -f "$ac_dir/file"; then
8949 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8d138742
CE
8950 if test -n "$file_magic_test_file"; then
8951 case $deplibs_check_method in
8952 "file_magic "*)
8953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 8954 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
8955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8956 $EGREP "$file_magic_regex" > /dev/null; then
8957 :
8958 else
8959 cat <<_LT_EOF 1>&2
d9898ee8 8960
8d138742
CE
8961*** Warning: the command libtool uses to detect shared libraries,
8962*** $file_magic_cmd, produces output that libtool cannot recognize.
8963*** The result is that libtool may fail to recognize shared libraries
8964*** as such. This will affect the creation of libtool libraries that
8965*** depend on shared libraries, but programs linked with such libtool
8966*** libraries will work regardless of this problem. Nevertheless, you
8967*** may want to report the problem to your system manager and/or to
8968*** bug-libtool@gnu.org
8969
8970_LT_EOF
8971 fi ;;
8972 esac
d9898ee8 8973 fi
8d138742 8974 break
d9898ee8 8975 fi
8d138742 8976 done
d50284c4
CE
8977 IFS=$lt_save_ifs
8978 MAGIC_CMD=$lt_save_MAGIC_CMD
d9898ee8 8979 ;;
8d138742
CE
8980esac
8981fi
d9898ee8 8982
d50284c4 8983MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 8984if test -n "$MAGIC_CMD"; then
b0322a85 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
8986$as_echo "$MAGIC_CMD" >&6; }
8987else
b0322a85 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8989$as_echo "no" >&6; }
8990fi
d9898ee8 8991
d9898ee8 8992
8d138742
CE
8993 else
8994 MAGIC_CMD=:
8995 fi
8996fi
8997
8998 fi
d9898ee8 8999 ;;
8d138742 9000esac
d9898ee8 9001
8d138742 9002# Use C for the default configuration in the libtool script
d9898ee8 9003
d50284c4 9004lt_save_CC=$CC
8d138742
CE
9005ac_ext=c
9006ac_cpp='$CPP $CPPFLAGS'
9007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 9010
d9898ee8 9011
8d138742
CE
9012# Source file extension for C test sources.
9013ac_ext=c
d9898ee8 9014
8d138742
CE
9015# Object file extension for compiled C test sources.
9016objext=o
9017objext=$objext
ac40fd9e 9018
8d138742
CE
9019# Code to be used in simple compile tests
9020lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 9021
8d138742
CE
9022# Code to be used in simple link tests
9023lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 9024
d9898ee8 9025
d9898ee8 9026
d9898ee8 9027
d9898ee8 9028
d9898ee8 9029
d9898ee8 9030
8d138742
CE
9031# If no C compiler was specified, use CC.
9032LTCC=${LTCC-"$CC"}
d9898ee8 9033
8d138742
CE
9034# If no C compiler flags were specified, use CFLAGS.
9035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 9036
8d138742
CE
9037# Allow CC to be a program name with arguments.
9038compiler=$CC
d9898ee8 9039
8d138742
CE
9040# Save the default compiler, since it gets overwritten when the other
9041# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9042compiler_DEFAULT=$CC
d9898ee8 9043
8d138742
CE
9044# save warnings/boilerplate of simple test code
9045ac_outfile=conftest.$ac_objext
9046echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9047eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9048_lt_compiler_boilerplate=`cat conftest.err`
9049$RM conftest*
d9898ee8 9050
8d138742
CE
9051ac_outfile=conftest.$ac_objext
9052echo "$lt_simple_link_test_code" >conftest.$ac_ext
9053eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9054_lt_linker_boilerplate=`cat conftest.err`
9055$RM -r conftest*
d9898ee8 9056
d9898ee8 9057
8d138742 9058if test -n "$compiler"; then
d9898ee8 9059
8d138742 9060lt_prog_compiler_no_builtin_flag=
d9898ee8 9061
d50284c4 9062if test yes = "$GCC"; then
b0322a85
CE
9063 case $cc_basename in
9064 nvcc*)
9065 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9066 *)
9067 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9068 esac
d9898ee8 9069
b0322a85 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 9071$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 9072if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
9073 $as_echo_n "(cached) " >&6
9074else
9075 lt_cv_prog_compiler_rtti_exceptions=no
9076 ac_outfile=conftest.$ac_objext
9077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 9078 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
9079 # Insert the option either (1) after the last *FLAGS variable, or
9080 # (2) before a word containing "conftest.", or (3) at the end.
9081 # Note that $ac_compile itself does not contain backslashes and begins
9082 # with a dollar sign (not a hyphen), so the echo should work correctly.
9083 # The option is referenced via a variable to avoid confusing sed.
9084 lt_compile=`echo "$ac_compile" | $SED \
9085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9087 -e 's:$: $lt_compiler_flag:'`
b0322a85 9088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9089 (eval "$lt_compile" 2>conftest.err)
9090 ac_status=$?
9091 cat conftest.err >&5
b0322a85 9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9093 if (exit $ac_status) && test -s "$ac_outfile"; then
9094 # The compiler can only warn and ignore the option if not recognized
9095 # So say no if there are warnings other than the usual output.
b0322a85 9096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
9097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9099 lt_cv_prog_compiler_rtti_exceptions=yes
9100 fi
9101 fi
9102 $RM conftest*
d9898ee8 9103
d9898ee8 9104fi
b0322a85 9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 9106$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 9107
d50284c4 9108if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8d138742 9109 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 9110else
8d138742 9111 :
d9898ee8 9112fi
d9898ee8 9113
d9898ee8 9114fi
9115
d9898ee8 9116
d9898ee8 9117
d9898ee8 9118
d9898ee8 9119
d9898ee8 9120
8d138742
CE
9121 lt_prog_compiler_wl=
9122lt_prog_compiler_pic=
9123lt_prog_compiler_static=
d9898ee8 9124
d9898ee8 9125
d50284c4 9126 if test yes = "$GCC"; then
8d138742
CE
9127 lt_prog_compiler_wl='-Wl,'
9128 lt_prog_compiler_static='-static'
dd184caf 9129
8d138742
CE
9130 case $host_os in
9131 aix*)
9132 # All AIX code is PIC.
d50284c4 9133 if test ia64 = "$host_cpu"; then
8d138742
CE
9134 # AIX 5 now supports IA64 processor
9135 lt_prog_compiler_static='-Bstatic'
9136 fi
d50284c4 9137 lt_prog_compiler_pic='-fPIC'
8d138742 9138 ;;
d9898ee8 9139
8d138742
CE
9140 amigaos*)
9141 case $host_cpu in
9142 powerpc)
9143 # see comment about AmigaOS4 .so support
9144 lt_prog_compiler_pic='-fPIC'
9145 ;;
9146 m68k)
9147 # FIXME: we need at least 68020 code to build shared libraries, but
d50284c4
CE
9148 # adding the '-m68020' flag to GCC prevents building anything better,
9149 # like '-m68040'.
8d138742
CE
9150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9151 ;;
9152 esac
9153 ;;
d9898ee8 9154
8d138742
CE
9155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9156 # PIC is the default for these OSes.
9157 ;;
d9898ee8 9158
8d138742
CE
9159 mingw* | cygwin* | pw32* | os2* | cegcc*)
9160 # This hack is so that the source file can tell whether it is being
9161 # built for inclusion in a dll (and should export symbols for example).
9162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9163 # (--disable-auto-import) libraries
9164 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
9165 case $host_os in
9166 os2*)
9167 lt_prog_compiler_static='$wl-static'
9168 ;;
9169 esac
8d138742 9170 ;;
d9898ee8 9171
8d138742
CE
9172 darwin* | rhapsody*)
9173 # PIC is the default on this platform
9174 # Common symbols not allowed in MH_DYLIB files
9175 lt_prog_compiler_pic='-fno-common'
9176 ;;
d9898ee8 9177
b0322a85
CE
9178 haiku*)
9179 # PIC is the default for Haiku.
9180 # The "-static" flag exists, but is broken.
9181 lt_prog_compiler_static=
9182 ;;
9183
8d138742
CE
9184 hpux*)
9185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9187 # sets the default TLS model and affects inlining.
9188 case $host_cpu in
9189 hppa*64*)
9190 # +Z the default
9191 ;;
9192 *)
9193 lt_prog_compiler_pic='-fPIC'
9194 ;;
9195 esac
9196 ;;
d9898ee8 9197
8d138742
CE
9198 interix[3-9]*)
9199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9200 # Instead, we relocate shared libraries at runtime.
9201 ;;
d9898ee8 9202
8d138742
CE
9203 msdosdjgpp*)
9204 # Just because we use GCC doesn't mean we suddenly get shared libraries
9205 # on systems that don't support them.
9206 lt_prog_compiler_can_build_shared=no
9207 enable_shared=no
9208 ;;
d9898ee8 9209
8d138742
CE
9210 *nto* | *qnx*)
9211 # QNX uses GNU C++, but need to define -shared option too, otherwise
9212 # it will coredump.
9213 lt_prog_compiler_pic='-fPIC -shared'
9214 ;;
d9898ee8 9215
8d138742
CE
9216 sysv4*MP*)
9217 if test -d /usr/nec; then
9218 lt_prog_compiler_pic=-Kconform_pic
9219 fi
9220 ;;
d9898ee8 9221
8d138742
CE
9222 *)
9223 lt_prog_compiler_pic='-fPIC'
9224 ;;
9225 esac
b0322a85
CE
9226
9227 case $cc_basename in
9228 nvcc*) # Cuda Compiler Driver 2.2
9229 lt_prog_compiler_wl='-Xlinker '
9230 if test -n "$lt_prog_compiler_pic"; then
9231 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9232 fi
9233 ;;
9234 esac
8d138742
CE
9235 else
9236 # PORTME Check for flag to pass linker flags through the system compiler.
9237 case $host_os in
9238 aix*)
9239 lt_prog_compiler_wl='-Wl,'
d50284c4 9240 if test ia64 = "$host_cpu"; then
8d138742
CE
9241 # AIX 5 now supports IA64 processor
9242 lt_prog_compiler_static='-Bstatic'
9243 else
9244 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9245 fi
9246 ;;
dd184caf 9247
d50284c4
CE
9248 darwin* | rhapsody*)
9249 # PIC is the default on this platform
9250 # Common symbols not allowed in MH_DYLIB files
9251 lt_prog_compiler_pic='-fno-common'
9252 case $cc_basename in
9253 nagfor*)
9254 # NAG Fortran compiler
9255 lt_prog_compiler_wl='-Wl,-Wl,,'
9256 lt_prog_compiler_pic='-PIC'
9257 lt_prog_compiler_static='-Bstatic'
9258 ;;
9259 esac
9260 ;;
9261
8d138742
CE
9262 mingw* | cygwin* | pw32* | os2* | cegcc*)
9263 # This hack is so that the source file can tell whether it is being
9264 # built for inclusion in a dll (and should export symbols for example).
9265 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
9266 case $host_os in
9267 os2*)
9268 lt_prog_compiler_static='$wl-static'
9269 ;;
9270 esac
8d138742 9271 ;;
d9898ee8 9272
8d138742
CE
9273 hpux9* | hpux10* | hpux11*)
9274 lt_prog_compiler_wl='-Wl,'
9275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9276 # not for PA HP-UX.
9277 case $host_cpu in
9278 hppa*64*|ia64*)
9279 # +Z the default
9280 ;;
9281 *)
9282 lt_prog_compiler_pic='+Z'
9283 ;;
9284 esac
9285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
d50284c4 9286 lt_prog_compiler_static='$wl-a ${wl}archive'
8d138742 9287 ;;
d9898ee8 9288
8d138742
CE
9289 irix5* | irix6* | nonstopux*)
9290 lt_prog_compiler_wl='-Wl,'
9291 # PIC (with -KPIC) is the default.
9292 lt_prog_compiler_static='-non_shared'
9293 ;;
dd184caf 9294
d50284c4 9295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742 9296 case $cc_basename in
d50284c4 9297 # old Intel for x86_64, which still supported -KPIC.
8d138742
CE
9298 ecc*)
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-static'
9302 ;;
9303 # icc used to be incompatible with GCC.
9304 # ICC 10 doesn't accept -KPIC any more.
9305 icc* | ifort*)
9306 lt_prog_compiler_wl='-Wl,'
9307 lt_prog_compiler_pic='-fPIC'
9308 lt_prog_compiler_static='-static'
9309 ;;
9310 # Lahey Fortran 8.1.
9311 lf95*)
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_pic='--shared'
9314 lt_prog_compiler_static='--static'
9315 ;;
b0322a85
CE
9316 nagfor*)
9317 # NAG Fortran compiler
9318 lt_prog_compiler_wl='-Wl,-Wl,,'
9319 lt_prog_compiler_pic='-PIC'
9320 lt_prog_compiler_static='-Bstatic'
9321 ;;
d50284c4
CE
9322 tcc*)
9323 # Fabrice Bellard et al's Tiny C Compiler
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_pic='-fPIC'
9326 lt_prog_compiler_static='-static'
9327 ;;
b0322a85 9328 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
9329 # Portland Group compilers (*not* the Pentium gcc compiler,
9330 # which looks to be a dead project)
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-fpic'
9333 lt_prog_compiler_static='-Bstatic'
9334 ;;
9335 ccc*)
9336 lt_prog_compiler_wl='-Wl,'
9337 # All Alpha code is PIC.
9338 lt_prog_compiler_static='-non_shared'
9339 ;;
b0322a85
CE
9340 xl* | bgxl* | bgf* | mpixl*)
9341 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
9342 lt_prog_compiler_wl='-Wl,'
9343 lt_prog_compiler_pic='-qpic'
9344 lt_prog_compiler_static='-qstaticlink'
9345 ;;
9346 *)
9347 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
9348 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9349 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9350 lt_prog_compiler_pic='-KPIC'
9351 lt_prog_compiler_static='-Bstatic'
9352 lt_prog_compiler_wl=''
9353 ;;
9354 *Sun\ F* | *Sun*Fortran*)
9355 lt_prog_compiler_pic='-KPIC'
9356 lt_prog_compiler_static='-Bstatic'
9357 lt_prog_compiler_wl='-Qoption ld '
9358 ;;
8d138742
CE
9359 *Sun\ C*)
9360 # Sun C 5.9
9361 lt_prog_compiler_pic='-KPIC'
9362 lt_prog_compiler_static='-Bstatic'
9363 lt_prog_compiler_wl='-Wl,'
9364 ;;
b0322a85
CE
9365 *Intel*\ [CF]*Compiler*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-fPIC'
9368 lt_prog_compiler_static='-static'
9369 ;;
9370 *Portland\ Group*)
9371 lt_prog_compiler_wl='-Wl,'
9372 lt_prog_compiler_pic='-fpic'
8d138742 9373 lt_prog_compiler_static='-Bstatic'
8d138742
CE
9374 ;;
9375 esac
9376 ;;
9377 esac
9378 ;;
d9898ee8 9379
8d138742
CE
9380 newsos6)
9381 lt_prog_compiler_pic='-KPIC'
9382 lt_prog_compiler_static='-Bstatic'
9383 ;;
d9898ee8 9384
8d138742
CE
9385 *nto* | *qnx*)
9386 # QNX uses GNU C++, but need to define -shared option too, otherwise
9387 # it will coredump.
9388 lt_prog_compiler_pic='-fPIC -shared'
9389 ;;
d9898ee8 9390
8d138742
CE
9391 osf3* | osf4* | osf5*)
9392 lt_prog_compiler_wl='-Wl,'
9393 # All OSF/1 code is PIC.
9394 lt_prog_compiler_static='-non_shared'
9395 ;;
d9898ee8 9396
8d138742
CE
9397 rdos*)
9398 lt_prog_compiler_static='-non_shared'
9399 ;;
d9898ee8 9400
8d138742
CE
9401 solaris*)
9402 lt_prog_compiler_pic='-KPIC'
9403 lt_prog_compiler_static='-Bstatic'
9404 case $cc_basename in
b0322a85 9405 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
9406 lt_prog_compiler_wl='-Qoption ld ';;
9407 *)
9408 lt_prog_compiler_wl='-Wl,';;
9409 esac
9410 ;;
d9898ee8 9411
8d138742
CE
9412 sunos4*)
9413 lt_prog_compiler_wl='-Qoption ld '
9414 lt_prog_compiler_pic='-PIC'
9415 lt_prog_compiler_static='-Bstatic'
9416 ;;
dd184caf 9417
8d138742
CE
9418 sysv4 | sysv4.2uw2* | sysv4.3*)
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_pic='-KPIC'
9421 lt_prog_compiler_static='-Bstatic'
9422 ;;
d9898ee8 9423
8d138742 9424 sysv4*MP*)
d50284c4 9425 if test -d /usr/nec; then
8d138742
CE
9426 lt_prog_compiler_pic='-Kconform_pic'
9427 lt_prog_compiler_static='-Bstatic'
9428 fi
9429 ;;
9430
9431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9432 lt_prog_compiler_wl='-Wl,'
9433 lt_prog_compiler_pic='-KPIC'
9434 lt_prog_compiler_static='-Bstatic'
9435 ;;
9436
9437 unicos*)
9438 lt_prog_compiler_wl='-Wl,'
9439 lt_prog_compiler_can_build_shared=no
9440 ;;
9441
9442 uts4*)
9443 lt_prog_compiler_pic='-pic'
9444 lt_prog_compiler_static='-Bstatic'
9445 ;;
9446
9447 *)
9448 lt_prog_compiler_can_build_shared=no
9449 ;;
9450 esac
9451 fi
9452
9453case $host_os in
d50284c4 9454 # For platforms that do not support PIC, -DPIC is meaningless:
8d138742
CE
9455 *djgpp*)
9456 lt_prog_compiler_pic=
9457 ;;
9458 *)
9459 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9460 ;;
dd184caf 9461esac
dd184caf 9462
b0322a85
CE
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9464$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9465if ${lt_cv_prog_compiler_pic+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467else
9468 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9469fi
9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9471$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9472lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 9473
8d138742
CE
9474#
9475# Check to make sure the PIC flag actually works.
9476#
9477if test -n "$lt_prog_compiler_pic"; then
b0322a85 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 9479$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 9480if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742 9481 $as_echo_n "(cached) " >&6
d9898ee8 9482else
8d138742
CE
9483 lt_cv_prog_compiler_pic_works=no
9484 ac_outfile=conftest.$ac_objext
9485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 9486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
9487 # Insert the option either (1) after the last *FLAGS variable, or
9488 # (2) before a word containing "conftest.", or (3) at the end.
9489 # Note that $ac_compile itself does not contain backslashes and begins
9490 # with a dollar sign (not a hyphen), so the echo should work correctly.
9491 # The option is referenced via a variable to avoid confusing sed.
9492 lt_compile=`echo "$ac_compile" | $SED \
9493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495 -e 's:$: $lt_compiler_flag:'`
b0322a85 9496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9497 (eval "$lt_compile" 2>conftest.err)
9498 ac_status=$?
9499 cat conftest.err >&5
b0322a85 9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9501 if (exit $ac_status) && test -s "$ac_outfile"; then
9502 # The compiler can only warn and ignore the option if not recognized
9503 # So say no if there are warnings other than the usual output.
b0322a85 9504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
9505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9507 lt_cv_prog_compiler_pic_works=yes
9508 fi
9509 fi
9510 $RM conftest*
d9898ee8 9511
d9898ee8 9512fi
b0322a85 9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 9514$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
dd184caf 9515
d50284c4 9516if test yes = "$lt_cv_prog_compiler_pic_works"; then
8d138742
CE
9517 case $lt_prog_compiler_pic in
9518 "" | " "*) ;;
9519 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9520 esac
9521else
9522 lt_prog_compiler_pic=
9523 lt_prog_compiler_can_build_shared=no
d9898ee8 9524fi
9525
d9898ee8 9526fi
9527
9528
d9898ee8 9529
9530
d9898ee8 9531
9532
b0322a85
CE
9533
9534
9535
9536
9537
8d138742
CE
9538#
9539# Check to make sure the static flag actually works.
9540#
9541wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 9543$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 9544if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742
CE
9545 $as_echo_n "(cached) " >&6
9546else
9547 lt_cv_prog_compiler_static_works=no
d50284c4 9548 save_LDFLAGS=$LDFLAGS
8d138742
CE
9549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9552 # The linker can only warn and ignore the option if not recognized
9553 # So say no if there are warnings
9554 if test -s conftest.err; then
9555 # Append any errors to the config.log.
9556 cat conftest.err 1>&5
b0322a85 9557 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
9558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9559 if diff conftest.exp conftest.er2 >/dev/null; then
9560 lt_cv_prog_compiler_static_works=yes
9561 fi
9562 else
9563 lt_cv_prog_compiler_static_works=yes
9564 fi
9565 fi
9566 $RM -r conftest*
d50284c4 9567 LDFLAGS=$save_LDFLAGS
d9898ee8 9568
8d138742 9569fi
b0322a85 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 9571$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 9572
d50284c4 9573if test yes = "$lt_cv_prog_compiler_static_works"; then
8d138742
CE
9574 :
9575else
9576 lt_prog_compiler_static=
d9898ee8 9577fi
9578
d9898ee8 9579
d9898ee8 9580
d9898ee8 9581
d9898ee8 9582
d9898ee8 9583
8d138742 9584
b0322a85 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 9586$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 9587if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742 9588 $as_echo_n "(cached) " >&6
d9898ee8 9589else
8d138742
CE
9590 lt_cv_prog_compiler_c_o=no
9591 $RM -r conftest 2>/dev/null
9592 mkdir conftest
9593 cd conftest
9594 mkdir out
9595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9596
8d138742
CE
9597 lt_compiler_flag="-o out/conftest2.$ac_objext"
9598 # Insert the option either (1) after the last *FLAGS variable, or
9599 # (2) before a word containing "conftest.", or (3) at the end.
9600 # Note that $ac_compile itself does not contain backslashes and begins
9601 # with a dollar sign (not a hyphen), so the echo should work correctly.
9602 lt_compile=`echo "$ac_compile" | $SED \
9603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9605 -e 's:$: $lt_compiler_flag:'`
b0322a85 9606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9607 (eval "$lt_compile" 2>out/conftest.err)
9608 ac_status=$?
9609 cat out/conftest.err >&5
b0322a85 9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9612 then
9613 # The compiler can only warn and ignore the option if not recognized
9614 # So say no if there are warnings
b0322a85 9615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
9616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9618 lt_cv_prog_compiler_c_o=yes
9619 fi
9620 fi
9621 chmod u+w . 2>&5
9622 $RM conftest*
9623 # SGI C++ compiler will create directory out/ii_files/ for
9624 # template instantiation
9625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9626 $RM out/* && rmdir out
9627 cd ..
9628 $RM -r conftest
9629 $RM conftest*
d9898ee8 9630
8d138742 9631fi
b0322a85 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 9633$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 9634
d9898ee8 9635
d9898ee8 9636
d9898ee8 9637
d9898ee8 9638
d9898ee8 9639
b0322a85 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 9641$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 9642if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
9643 $as_echo_n "(cached) " >&6
9644else
9645 lt_cv_prog_compiler_c_o=no
9646 $RM -r conftest 2>/dev/null
9647 mkdir conftest
9648 cd conftest
9649 mkdir out
9650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9651
8d138742
CE
9652 lt_compiler_flag="-o out/conftest2.$ac_objext"
9653 # Insert the option either (1) after the last *FLAGS variable, or
9654 # (2) before a word containing "conftest.", or (3) at the end.
9655 # Note that $ac_compile itself does not contain backslashes and begins
9656 # with a dollar sign (not a hyphen), so the echo should work correctly.
9657 lt_compile=`echo "$ac_compile" | $SED \
9658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9660 -e 's:$: $lt_compiler_flag:'`
b0322a85 9661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9662 (eval "$lt_compile" 2>out/conftest.err)
9663 ac_status=$?
9664 cat out/conftest.err >&5
b0322a85 9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9667 then
9668 # The compiler can only warn and ignore the option if not recognized
9669 # So say no if there are warnings
b0322a85 9670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
9671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9673 lt_cv_prog_compiler_c_o=yes
9674 fi
9675 fi
9676 chmod u+w . 2>&5
9677 $RM conftest*
9678 # SGI C++ compiler will create directory out/ii_files/ for
9679 # template instantiation
9680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9681 $RM out/* && rmdir out
9682 cd ..
9683 $RM -r conftest
9684 $RM conftest*
d9898ee8 9685
9686fi
b0322a85 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 9688$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 9689
d9898ee8 9690
d9898ee8 9691
d9898ee8 9692
d50284c4
CE
9693hard_links=nottested
9694if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8d138742 9695 # do not overwrite the value of need_locks provided by the user
b0322a85 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
9697$as_echo_n "checking if we can lock with hard links... " >&6; }
9698 hard_links=yes
9699 $RM conftest*
9700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9701 touch conftest.a
9702 ln conftest.a conftest.b 2>&5 || hard_links=no
9703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742 9705$as_echo "$hard_links" >&6; }
d50284c4
CE
9706 if test no = "$hard_links"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9708$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8d138742
CE
9709 need_locks=warn
9710 fi
9711else
9712 need_locks=no
9713fi
d9898ee8 9714
d9898ee8 9715
d9898ee8 9716
d9898ee8 9717
d9898ee8 9718
d9898ee8 9719
b0322a85 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 9721$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 9722
8d138742
CE
9723 runpath_var=
9724 allow_undefined_flag=
9725 always_export_symbols=no
9726 archive_cmds=
9727 archive_expsym_cmds=
9728 compiler_needs_object=no
9729 enable_shared_with_static_runtimes=no
9730 export_dynamic_flag_spec=
9731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9732 hardcode_automatic=no
9733 hardcode_direct=no
9734 hardcode_direct_absolute=no
9735 hardcode_libdir_flag_spec=
8d138742
CE
9736 hardcode_libdir_separator=
9737 hardcode_minus_L=no
9738 hardcode_shlibpath_var=unsupported
9739 inherit_rpath=no
9740 link_all_deplibs=unknown
9741 module_cmds=
9742 module_expsym_cmds=
9743 old_archive_from_new_cmds=
9744 old_archive_from_expsyms_cmds=
9745 thread_safe_flag_spec=
9746 whole_archive_flag_spec=
9747 # include_expsyms should be a list of space-separated symbols to be *always*
9748 # included in the symbol list
9749 include_expsyms=
9750 # exclude_expsyms can be an extended regexp of symbols to exclude
d50284c4
CE
9751 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9752 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9753 # as well as any symbol that contains 'd'.
8d138742
CE
9754 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9755 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9756 # platforms (ab)use it in PIC code, but their linkers get confused if
9757 # the symbol is explicitly referenced. Since portable code cannot
9758 # rely on this symbol name, it's probably fine to never include it in
9759 # preloaded symbol tables.
9760 # Exclude shared library initialization/finalization symbols.
9761 extract_expsyms_cmds=
d9898ee8 9762
8d138742
CE
9763 case $host_os in
9764 cygwin* | mingw* | pw32* | cegcc*)
9765 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9766 # When not using gcc, we currently assume that we are using
9767 # Microsoft Visual C++.
d50284c4 9768 if test yes != "$GCC"; then
8d138742
CE
9769 with_gnu_ld=no
9770 fi
9771 ;;
9772 interix*)
9773 # we just hope/assume this is gcc and not c89 (= MSVC++)
9774 with_gnu_ld=yes
9775 ;;
d50284c4 9776 openbsd* | bitrig*)
8d138742 9777 with_gnu_ld=no
d9898ee8 9778 ;;
9779 esac
9780
8d138742 9781 ld_shlibs=yes
b0322a85
CE
9782
9783 # On some targets, GNU ld is compatible enough with the native linker
9784 # that we're better off using the native interface for both.
9785 lt_use_gnu_ld_interface=no
d50284c4 9786 if test yes = "$with_gnu_ld"; then
b0322a85
CE
9787 case $host_os in
9788 aix*)
9789 # The AIX port of GNU ld has always aspired to compatibility
9790 # with the native linker. However, as the warning in the GNU ld
9791 # block says, versions before 2.19.5* couldn't really create working
9792 # shared libraries, regardless of the interface used.
9793 case `$LD -v 2>&1` in
9794 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9795 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9796 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9797 *)
9798 lt_use_gnu_ld_interface=yes
9799 ;;
9800 esac
9801 ;;
9802 *)
9803 lt_use_gnu_ld_interface=yes
9804 ;;
9805 esac
9806 fi
9807
d50284c4 9808 if test yes = "$lt_use_gnu_ld_interface"; then
8d138742 9809 # If archive_cmds runs LD, not CC, wlarc should be empty
d50284c4 9810 wlarc='$wl'
d9898ee8 9811
8d138742
CE
9812 # Set some defaults for GNU ld with shared library support. These
9813 # are reset later if shared libraries are not supported. Putting them
9814 # here allows them to be overridden if necessary.
9815 runpath_var=LD_RUN_PATH
d50284c4
CE
9816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9817 export_dynamic_flag_spec='$wl--export-dynamic'
8d138742
CE
9818 # ancient GNU ld didn't support --whole-archive et. al.
9819 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
d50284c4 9820 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8d138742
CE
9821 else
9822 whole_archive_flag_spec=
9823 fi
9824 supports_anon_versioning=no
d50284c4 9825 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
b0322a85 9826 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
9827 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9828 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9829 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9830 *\ 2.11.*) ;; # other 2.11 versions
9831 *) supports_anon_versioning=yes ;;
9832 esac
d9898ee8 9833
8d138742
CE
9834 # See if GNU ld supports shared libraries.
9835 case $host_os in
9836 aix[3-9]*)
9837 # On AIX/PPC, the GNU linker is very broken
d50284c4 9838 if test ia64 != "$host_cpu"; then
8d138742
CE
9839 ld_shlibs=no
9840 cat <<_LT_EOF 1>&2
d9898ee8 9841
b0322a85 9842*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
9843*** to be unable to reliably create shared libraries on AIX.
9844*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
9845*** really care for shared libraries, you may want to install binutils
9846*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9847*** You will then need to restart the configuration process.
d9898ee8 9848
8d138742
CE
9849_LT_EOF
9850 fi
9851 ;;
d9898ee8 9852
8d138742
CE
9853 amigaos*)
9854 case $host_cpu in
9855 powerpc)
9856 # see comment about AmigaOS4 .so support
d50284c4 9857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9858 archive_expsym_cmds=''
9859 ;;
9860 m68k)
9861 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)'
9862 hardcode_libdir_flag_spec='-L$libdir'
9863 hardcode_minus_L=yes
9864 ;;
9865 esac
d9898ee8 9866 ;;
8d138742
CE
9867
9868 beos*)
9869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9870 allow_undefined_flag=unsupported
9871 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9872 # support --undefined. This deserves some investigation. FIXME
d50284c4 9873 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9874 else
9875 ld_shlibs=no
9876 fi
d9898ee8 9877 ;;
d9898ee8 9878
8d138742
CE
9879 cygwin* | mingw* | pw32* | cegcc*)
9880 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9881 # as there is no search path for DLLs.
9882 hardcode_libdir_flag_spec='-L$libdir'
d50284c4 9883 export_dynamic_flag_spec='$wl--export-all-symbols'
8d138742
CE
9884 allow_undefined_flag=unsupported
9885 always_export_symbols=no
9886 enable_shared_with_static_runtimes=yes
b0322a85
CE
9887 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'
9888 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 9889
8d138742 9890 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
d50284c4
CE
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9892 # If the export-symbols file already is a .def file, use it as
9893 # is; otherwise, prepend EXPORTS...
9894 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9895 cp $export_symbols $output_objdir/$soname.def;
9896 else
9897 echo EXPORTS > $output_objdir/$soname.def;
9898 cat $export_symbols >> $output_objdir/$soname.def;
9899 fi~
9900 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8d138742
CE
9901 else
9902 ld_shlibs=no
9903 fi
9904 ;;
d9898ee8 9905
b0322a85 9906 haiku*)
d50284c4 9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
b0322a85
CE
9908 link_all_deplibs=yes
9909 ;;
9910
d50284c4
CE
9911 os2*)
9912 hardcode_libdir_flag_spec='-L$libdir'
9913 hardcode_minus_L=yes
9914 allow_undefined_flag=unsupported
9915 shrext_cmds=.dll
9916 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9917 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9918 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9919 $ECHO EXPORTS >> $output_objdir/$libname.def~
9920 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9921 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9922 emximp -o $lib $output_objdir/$libname.def'
9923 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9924 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9925 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9926 $ECHO EXPORTS >> $output_objdir/$libname.def~
9927 prefix_cmds="$SED"~
9928 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9929 prefix_cmds="$prefix_cmds -e 1d";
9930 fi~
9931 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9932 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9933 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9934 emximp -o $lib $output_objdir/$libname.def'
9935 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9936 enable_shared_with_static_runtimes=yes
9937 ;;
9938
8d138742
CE
9939 interix[3-9]*)
9940 hardcode_direct=no
9941 hardcode_shlibpath_var=no
d50284c4
CE
9942 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9943 export_dynamic_flag_spec='$wl-E'
8d138742
CE
9944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9945 # Instead, shared libraries are loaded at an image base (0x10000000 by
9946 # default) and relocated if they conflict, which is a slow very memory
9947 # consuming and fragmenting process. To avoid this, we pick a random,
9948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
d50284c4
CE
9950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9951 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8d138742 9952 ;;
d9898ee8 9953
b0322a85 9954 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742 9955 tmp_diet=no
d50284c4 9956 if test linux-dietlibc = "$host_os"; then
8d138742
CE
9957 case $cc_basename in
9958 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9959 esac
9960 fi
9961 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
d50284c4 9962 && test no = "$tmp_diet"
8d138742 9963 then
b0322a85 9964 tmp_addflag=' $pic_flag'
8d138742
CE
9965 tmp_sharedflag='-shared'
9966 case $cc_basename,$host_cpu in
9967 pgcc*) # Portland Group C compiler
d50284c4 9968 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8d138742
CE
9969 tmp_addflag=' $pic_flag'
9970 ;;
b0322a85
CE
9971 pgf77* | pgf90* | pgf95* | pgfortran*)
9972 # Portland Group f77 and f90 compilers
d50284c4 9973 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8d138742
CE
9974 tmp_addflag=' $pic_flag -Mnomain' ;;
9975 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9976 tmp_addflag=' -i_dynamic' ;;
9977 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9978 tmp_addflag=' -i_dynamic -nofor_main' ;;
9979 ifc* | ifort*) # Intel Fortran compiler
9980 tmp_addflag=' -nofor_main' ;;
9981 lf95*) # Lahey Fortran 8.1
9982 whole_archive_flag_spec=
9983 tmp_sharedflag='--shared' ;;
d50284c4
CE
9984 nagfor*) # NAGFOR 5.3
9985 tmp_sharedflag='-Wl,-shared' ;;
b0322a85 9986 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
9987 tmp_sharedflag='-qmkshrobj'
9988 tmp_addflag= ;;
b0322a85 9989 nvcc*) # Cuda Compiler Driver 2.2
d50284c4 9990 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
9991 compiler_needs_object=yes
9992 ;;
8d138742
CE
9993 esac
9994 case `$CC -V 2>&1 | sed 5q` in
9995 *Sun\ C*) # Sun C 5.9
d50284c4 9996 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8d138742
CE
9997 compiler_needs_object=yes
9998 tmp_sharedflag='-G' ;;
9999 *Sun\ F*) # Sun Fortran 8.3
10000 tmp_sharedflag='-G' ;;
10001 esac
d50284c4 10002 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d9898ee8 10003
d50284c4 10004 if test yes = "$supports_anon_versioning"; then
8d138742 10005 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
10006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10007 echo "local: *; };" >> $output_objdir/$libname.ver~
10008 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8d138742 10009 fi
d9898ee8 10010
8d138742 10011 case $cc_basename in
d50284c4
CE
10012 tcc*)
10013 export_dynamic_flag_spec='-rdynamic'
10014 ;;
b0322a85 10015 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
10016 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10017 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
d50284c4 10018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
b0322a85 10019 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
d50284c4 10020 if test yes = "$supports_anon_versioning"; then
8d138742 10021 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
10022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10023 echo "local: *; };" >> $output_objdir/$libname.ver~
10024 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
10025 fi
10026 ;;
10027 esac
10028 else
10029 ld_shlibs=no
10030 fi
10031 ;;
d9898ee8 10032
8d138742
CE
10033 netbsd*)
10034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10035 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10036 wlarc=
10037 else
d50284c4
CE
10038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
10040 fi
10041 ;;
d9898ee8 10042
8d138742
CE
10043 solaris*)
10044 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10045 ld_shlibs=no
10046 cat <<_LT_EOF 1>&2
d9898ee8 10047
8d138742
CE
10048*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10049*** create shared libraries on Solaris systems. Therefore, libtool
10050*** is disabling shared libraries support. We urge you to upgrade GNU
10051*** binutils to release 2.9.1 or newer. Another option is to modify
10052*** your PATH or compiler configuration so that the native linker is
10053*** used, and then restart.
d9898ee8 10054
8d138742
CE
10055_LT_EOF
10056 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
10057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10058 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
10059 else
10060 ld_shlibs=no
10061 fi
10062 ;;
d9898ee8 10063
8d138742
CE
10064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10065 case `$LD -v 2>&1` in
10066 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10067 ld_shlibs=no
10068 cat <<_LT_EOF 1>&2
d9898ee8 10069
d50284c4 10070*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8d138742
CE
10071*** reliably create shared libraries on SCO systems. Therefore, libtool
10072*** is disabling shared libraries support. We urge you to upgrade GNU
10073*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10074*** your PATH or compiler configuration so that the native linker is
10075*** used, and then restart.
d9898ee8 10076
8d138742
CE
10077_LT_EOF
10078 ;;
10079 *)
10080 # For security reasons, it is highly recommended that you always
10081 # use absolute paths for naming shared libraries, and exclude the
10082 # DT_RUNPATH tag from executables and libraries. But doing so
10083 # requires that you compile everything twice, which is a pain.
10084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
10085 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
10092 esac
10093 ;;
d9898ee8 10094
8d138742
CE
10095 sunos4*)
10096 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10097 wlarc=
10098 hardcode_direct=yes
10099 hardcode_shlibpath_var=no
10100 ;;
d9898ee8 10101
8d138742
CE
10102 *)
10103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
10104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10105 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
10106 else
10107 ld_shlibs=no
10108 fi
10109 ;;
10110 esac
d9898ee8 10111
d50284c4 10112 if test no = "$ld_shlibs"; then
8d138742
CE
10113 runpath_var=
10114 hardcode_libdir_flag_spec=
10115 export_dynamic_flag_spec=
10116 whole_archive_flag_spec=
10117 fi
10118 else
10119 # PORTME fill in a description of your system's linker (not GNU ld)
10120 case $host_os in
10121 aix3*)
10122 allow_undefined_flag=unsupported
10123 always_export_symbols=yes
10124 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'
10125 # Note: this linker hardcodes the directories in LIBPATH if there
10126 # are no directories specified by -L.
10127 hardcode_minus_L=yes
d50284c4 10128 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8d138742
CE
10129 # Neither direct hardcoding nor static linking is supported with a
10130 # broken collect2.
10131 hardcode_direct=unsupported
10132 fi
10133 ;;
d9898ee8 10134
8d138742 10135 aix[4-9]*)
d50284c4 10136 if test ia64 = "$host_cpu"; then
8d138742
CE
10137 # On IA64, the linker does run time linking by default, so we don't
10138 # have to do anything special.
10139 aix_use_runtimelinking=no
10140 exp_sym_flag='-Bexport'
d50284c4 10141 no_entry_flag=
8d138742
CE
10142 else
10143 # If we're using GNU nm, then we don't want the "-C" option.
d50284c4
CE
10144 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10145 # Without the "-l" option, or with the "-B" option, AIX nm treats
10146 # weak defined symbols like other global defined symbols, whereas
10147 # GNU nm marks them as "W".
10148 # While the 'weak' keyword is ignored in the Export File, we need
10149 # it in the Import File for the 'aix-soname' feature, so we have
10150 # to replace the "-B" option with "-P" for AIX nm.
8d138742 10151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
d50284c4 10152 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8d138742 10153 else
d50284c4 10154 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8d138742
CE
10155 fi
10156 aix_use_runtimelinking=no
d9898ee8 10157
8d138742
CE
10158 # Test if we are trying to use run time linking or normal
10159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
d50284c4
CE
10160 # have runtime linking enabled, and use it for executables.
10161 # For shared libraries, we enable/disable runtime linking
10162 # depending on the kind of the shared library created -
10163 # when "with_aix_soname,aix_use_runtimelinking" is:
10164 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10165 # "aix,yes" lib.so shared, rtl:yes, for executables
10166 # lib.a static archive
10167 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10168 # lib.a(lib.so.V) shared, rtl:no, for executables
10169 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10170 # lib.a(lib.so.V) shared, rtl:no
10171 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10172 # lib.a static archive
8d138742
CE
10173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10174 for ld_flag in $LDFLAGS; do
d50284c4 10175 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8d138742
CE
10176 aix_use_runtimelinking=yes
10177 break
10178 fi
10179 done
d50284c4
CE
10180 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10181 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10182 # so we don't have lib.a shared libs to link our executables.
10183 # We have to force runtime linking in this case.
10184 aix_use_runtimelinking=yes
10185 LDFLAGS="$LDFLAGS -Wl,-brtl"
10186 fi
8d138742
CE
10187 ;;
10188 esac
d9898ee8 10189
8d138742
CE
10190 exp_sym_flag='-bexport'
10191 no_entry_flag='-bnoentry'
10192 fi
d9898ee8 10193
8d138742
CE
10194 # When large executables or shared objects are built, AIX ld can
10195 # have problems creating the table of contents. If linking a library
10196 # or program results in "error TOC overflow" add -mminimal-toc to
10197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 10199
8d138742
CE
10200 archive_cmds=''
10201 hardcode_direct=yes
10202 hardcode_direct_absolute=yes
10203 hardcode_libdir_separator=':'
10204 link_all_deplibs=yes
d50284c4
CE
10205 file_list_spec='$wl-f,'
10206 case $with_aix_soname,$aix_use_runtimelinking in
10207 aix,*) ;; # traditional, no import file
10208 svr4,* | *,yes) # use import file
10209 # The Import File defines what to hardcode.
10210 hardcode_direct=no
10211 hardcode_direct_absolute=no
10212 ;;
10213 esac
d9898ee8 10214
d50284c4 10215 if test yes = "$GCC"; then
8d138742
CE
10216 case $host_os in aix4.[012]|aix4.[012].*)
10217 # We only want to do this on AIX 4.2 and lower, the check
10218 # below for broken collect2 doesn't work under 4.3+
d50284c4 10219 collect2name=`$CC -print-prog-name=collect2`
8d138742
CE
10220 if test -f "$collect2name" &&
10221 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10222 then
10223 # We have reworked collect2
10224 :
10225 else
10226 # We have old collect2
10227 hardcode_direct=unsupported
10228 # It fails to find uninstalled libraries when the uninstalled
10229 # path is not listed in the libpath. Setting hardcode_minus_L
10230 # to unsupported forces relinking
10231 hardcode_minus_L=yes
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_libdir_separator=
10234 fi
10235 ;;
10236 esac
10237 shared_flag='-shared'
d50284c4
CE
10238 if test yes = "$aix_use_runtimelinking"; then
10239 shared_flag="$shared_flag "'$wl-G'
8d138742 10240 fi
d50284c4
CE
10241 # Need to ensure runtime linking is disabled for the traditional
10242 # shared library, or the linker may eventually find shared libraries
10243 # /with/ Import File - we do not want to mix them.
10244 shared_flag_aix='-shared'
10245 shared_flag_svr4='-shared $wl-G'
8d138742
CE
10246 else
10247 # not using gcc
d50284c4 10248 if test ia64 = "$host_cpu"; then
8d138742
CE
10249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10250 # chokes on -Wl,-G. The following line is correct:
10251 shared_flag='-G'
10252 else
d50284c4
CE
10253 if test yes = "$aix_use_runtimelinking"; then
10254 shared_flag='$wl-G'
8d138742 10255 else
d50284c4 10256 shared_flag='$wl-bM:SRE'
8d138742 10257 fi
d50284c4
CE
10258 shared_flag_aix='$wl-bM:SRE'
10259 shared_flag_svr4='$wl-G'
8d138742
CE
10260 fi
10261 fi
d9898ee8 10262
d50284c4 10263 export_dynamic_flag_spec='$wl-bexpall'
8d138742
CE
10264 # It seems that -bexpall does not export symbols beginning with
10265 # underscore (_), so it is better to generate a list of symbols to export.
10266 always_export_symbols=yes
d50284c4 10267 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8d138742
CE
10268 # Warning - without using the other runtime loading flags (-brtl),
10269 # -berok will link without error, but may produce a broken library.
10270 allow_undefined_flag='-berok'
10271 # Determine the default libpath from the value encoded in an
10272 # empty executable.
d50284c4 10273 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
10274 aix_libpath=$lt_cv_aix_libpath
10275else
10276 if ${lt_cv_aix_libpath_+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278else
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10280/* end confdefs.h. */
d9898ee8 10281
8d138742
CE
10282int
10283main ()
10284{
d9898ee8 10285
8d138742
CE
10286 ;
10287 return 0;
10288}
10289_ACEOF
b0322a85 10290if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 10291
b0322a85
CE
10292 lt_aix_libpath_sed='
10293 /Import File Strings/,/^$/ {
10294 /^0/ {
10295 s/^0 *\([^ ]*\) *$/\1/
10296 p
10297 }
10298 }'
10299 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10300 # Check for a 64-bit object if we didn't find anything.
10301 if test -z "$lt_cv_aix_libpath_"; then
10302 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10303 fi
10304fi
10305rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 10308 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 10309 fi
d9898ee8 10310
8d138742 10311fi
d9898ee8 10312
b0322a85
CE
10313 aix_libpath=$lt_cv_aix_libpath_
10314fi
d9898ee8 10315
d50284c4
CE
10316 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10317 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 10318 else
d50284c4
CE
10319 if test ia64 = "$host_cpu"; then
10320 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8d138742 10321 allow_undefined_flag="-z nodefs"
d50284c4 10322 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
8d138742
CE
10323 else
10324 # Determine the default libpath from the value encoded in an
10325 # empty executable.
d50284c4 10326 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
10327 aix_libpath=$lt_cv_aix_libpath
10328else
10329 if ${lt_cv_aix_libpath_+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331else
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10333/* end confdefs.h. */
d9898ee8 10334
8d138742
CE
10335int
10336main ()
10337{
d9898ee8 10338
8d138742
CE
10339 ;
10340 return 0;
10341}
10342_ACEOF
b0322a85 10343if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 10344
b0322a85
CE
10345 lt_aix_libpath_sed='
10346 /Import File Strings/,/^$/ {
10347 /^0/ {
10348 s/^0 *\([^ ]*\) *$/\1/
10349 p
10350 }
10351 }'
10352 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10353 # Check for a 64-bit object if we didn't find anything.
10354 if test -z "$lt_cv_aix_libpath_"; then
10355 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10356 fi
10357fi
10358rm -f core conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 10361 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 10362 fi
d9898ee8 10363
8d138742 10364fi
d9898ee8 10365
b0322a85
CE
10366 aix_libpath=$lt_cv_aix_libpath_
10367fi
d9898ee8 10368
d50284c4 10369 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8d138742
CE
10370 # Warning - without using the other run time loading flags,
10371 # -berok will link without error, but may produce a broken library.
d50284c4
CE
10372 no_undefined_flag=' $wl-bernotok'
10373 allow_undefined_flag=' $wl-berok'
10374 if test yes = "$with_gnu_ld"; then
b0322a85 10375 # We only use this code for GNU lds that support --whole-archive.
d50284c4 10376 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
b0322a85
CE
10377 else
10378 # Exported symbols can be pulled into shared objects from archives
10379 whole_archive_flag_spec='$convenience'
10380 fi
8d138742 10381 archive_cmds_need_lc=yes
d50284c4
CE
10382 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10383 # -brtl affects multiple linker settings, -berok does not and is overridden later
10384 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10385 if test svr4 != "$with_aix_soname"; then
10386 # This is similar to how AIX traditionally builds its shared libraries.
10387 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'
10388 fi
10389 if test aix != "$with_aix_soname"; then
10390 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'
10391 else
10392 # used by -dlpreopen to get the symbols
10393 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10394 fi
10395 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8d138742
CE
10396 fi
10397 fi
10398 ;;
d9898ee8 10399
8d138742
CE
10400 amigaos*)
10401 case $host_cpu in
10402 powerpc)
10403 # see comment about AmigaOS4 .so support
d50284c4 10404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
10405 archive_expsym_cmds=''
10406 ;;
10407 m68k)
10408 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)'
10409 hardcode_libdir_flag_spec='-L$libdir'
10410 hardcode_minus_L=yes
10411 ;;
10412 esac
10413 ;;
d9898ee8 10414
8d138742
CE
10415 bsdi[45]*)
10416 export_dynamic_flag_spec=-rdynamic
10417 ;;
d9898ee8 10418
8d138742
CE
10419 cygwin* | mingw* | pw32* | cegcc*)
10420 # When not using gcc, we currently assume that we are using
10421 # Microsoft Visual C++.
10422 # hardcode_libdir_flag_spec is actually meaningless, as there is
10423 # no search path for DLLs.
b0322a85
CE
10424 case $cc_basename in
10425 cl*)
10426 # Native MSVC
10427 hardcode_libdir_flag_spec=' '
10428 allow_undefined_flag=unsupported
10429 always_export_symbols=yes
10430 file_list_spec='@'
10431 # Tell ltmain to make .lib files, not .a files.
10432 libext=lib
10433 # Tell ltmain to make .dll files, not .so files.
d50284c4 10434 shrext_cmds=.dll
b0322a85 10435 # FIXME: Setting linknames here is a bad hack.
d50284c4
CE
10436 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10437 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10438 cp "$export_symbols" "$output_objdir/$soname.def";
10439 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10440 else
10441 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10442 fi~
10443 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10444 linknames='
b0322a85
CE
10445 # The linker will not automatically build a static lib if we build a DLL.
10446 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10447 enable_shared_with_static_runtimes=yes
10448 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10450 # Don't use ranlib
10451 old_postinstall_cmds='chmod 644 $oldlib'
10452 postlink_cmds='lt_outputfile="@OUTPUT@"~
d50284c4
CE
10453 lt_tool_outputfile="@TOOL_OUTPUT@"~
10454 case $lt_outputfile in
10455 *.exe|*.EXE) ;;
10456 *)
10457 lt_outputfile=$lt_outputfile.exe
10458 lt_tool_outputfile=$lt_tool_outputfile.exe
10459 ;;
10460 esac~
10461 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10462 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10463 $RM "$lt_outputfile.manifest";
10464 fi'
b0322a85
CE
10465 ;;
10466 *)
10467 # Assume MSVC wrapper
10468 hardcode_libdir_flag_spec=' '
10469 allow_undefined_flag=unsupported
10470 # Tell ltmain to make .lib files, not .a files.
10471 libext=lib
10472 # Tell ltmain to make .dll files, not .so files.
d50284c4 10473 shrext_cmds=.dll
b0322a85
CE
10474 # FIXME: Setting linknames here is a bad hack.
10475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10476 # The linker will automatically build a .lib file if we build a DLL.
10477 old_archive_from_new_cmds='true'
10478 # FIXME: Should let the user specify the lib program.
10479 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10480 enable_shared_with_static_runtimes=yes
10481 ;;
10482 esac
8d138742 10483 ;;
d9898ee8 10484
8d138742 10485 darwin* | rhapsody*)
d9898ee8 10486
d9898ee8 10487
8d138742
CE
10488 archive_cmds_need_lc=no
10489 hardcode_direct=no
10490 hardcode_automatic=yes
10491 hardcode_shlibpath_var=unsupported
d50284c4
CE
10492 if test yes = "$lt_cv_ld_force_load"; then
10493 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
10494
10495 else
10496 whole_archive_flag_spec=''
10497 fi
8d138742 10498 link_all_deplibs=yes
d50284c4 10499 allow_undefined_flag=$_lt_dar_allow_undefined
8d138742 10500 case $cc_basename in
d50284c4 10501 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8d138742
CE
10502 *) _lt_dar_can_shared=$GCC ;;
10503 esac
d50284c4 10504 if test yes = "$_lt_dar_can_shared"; then
b0322a85 10505 output_verbose_link_cmd=func_echo_all
d50284c4
CE
10506 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10507 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10508 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"
10509 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d9898ee8 10510
8d138742
CE
10511 else
10512 ld_shlibs=no
10513 fi
d9898ee8 10514
8d138742 10515 ;;
d9898ee8 10516
8d138742
CE
10517 dgux*)
10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519 hardcode_libdir_flag_spec='-L$libdir'
10520 hardcode_shlibpath_var=no
10521 ;;
d9898ee8 10522
8d138742
CE
10523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10524 # support. Future versions do this automatically, but an explicit c++rt0.o
10525 # does not break anything, and helps significantly (at the cost of a little
10526 # extra space).
10527 freebsd2.2*)
10528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10529 hardcode_libdir_flag_spec='-R$libdir'
10530 hardcode_direct=yes
10531 hardcode_shlibpath_var=no
10532 ;;
d9898ee8 10533
8d138742 10534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 10535 freebsd2.*)
8d138742
CE
10536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_direct=yes
10538 hardcode_minus_L=yes
10539 hardcode_shlibpath_var=no
10540 ;;
d9898ee8 10541
8d138742
CE
10542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10543 freebsd* | dragonfly*)
b0322a85 10544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10545 hardcode_libdir_flag_spec='-R$libdir'
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 ;;
d9898ee8 10549
8d138742 10550 hpux9*)
d50284c4
CE
10551 if test yes = "$GCC"; then
10552 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8d138742 10553 else
d50284c4 10554 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8d138742 10555 fi
d50284c4 10556 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
10557 hardcode_libdir_separator=:
10558 hardcode_direct=yes
d9898ee8 10559
8d138742
CE
10560 # hardcode_minus_L: Not really in the search PATH,
10561 # but as the default location of the library.
10562 hardcode_minus_L=yes
d50284c4 10563 export_dynamic_flag_spec='$wl-E'
8d138742 10564 ;;
d9898ee8 10565
8d138742 10566 hpux10*)
d50284c4
CE
10567 if test yes,no = "$GCC,$with_gnu_ld"; then
10568 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10569 else
10570 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10571 fi
d50284c4
CE
10572 if test no = "$with_gnu_ld"; then
10573 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
10574 hardcode_libdir_separator=:
10575 hardcode_direct=yes
10576 hardcode_direct_absolute=yes
d50284c4 10577 export_dynamic_flag_spec='$wl-E'
8d138742
CE
10578 # hardcode_minus_L: Not really in the search PATH,
10579 # but as the default location of the library.
10580 hardcode_minus_L=yes
10581 fi
10582 ;;
d9898ee8 10583
8d138742 10584 hpux11*)
d50284c4 10585 if test yes,no = "$GCC,$with_gnu_ld"; then
8d138742
CE
10586 case $host_cpu in
10587 hppa*64*)
d50284c4 10588 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10589 ;;
10590 ia64*)
d50284c4 10591 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10592 ;;
10593 *)
d50284c4 10594 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10595 ;;
10596 esac
10597 else
10598 case $host_cpu in
10599 hppa*64*)
d50284c4 10600 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10601 ;;
10602 ia64*)
d50284c4 10603 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10604 ;;
10605 *)
b0322a85
CE
10606
10607 # Older versions of the 11.00 compiler do not understand -b yet
10608 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10610$as_echo_n "checking if $CC understands -b... " >&6; }
10611if ${lt_cv_prog_compiler__b+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613else
10614 lt_cv_prog_compiler__b=no
d50284c4 10615 save_LDFLAGS=$LDFLAGS
b0322a85
CE
10616 LDFLAGS="$LDFLAGS -b"
10617 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10618 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10619 # The linker can only warn and ignore the option if not recognized
10620 # So say no if there are warnings
10621 if test -s conftest.err; then
10622 # Append any errors to the config.log.
10623 cat conftest.err 1>&5
10624 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10626 if diff conftest.exp conftest.er2 >/dev/null; then
10627 lt_cv_prog_compiler__b=yes
10628 fi
10629 else
10630 lt_cv_prog_compiler__b=yes
10631 fi
10632 fi
10633 $RM -r conftest*
d50284c4 10634 LDFLAGS=$save_LDFLAGS
b0322a85
CE
10635
10636fi
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10638$as_echo "$lt_cv_prog_compiler__b" >&6; }
10639
d50284c4
CE
10640if test yes = "$lt_cv_prog_compiler__b"; then
10641 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
10642else
10643 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10644fi
10645
8d138742
CE
10646 ;;
10647 esac
10648 fi
d50284c4
CE
10649 if test no = "$with_gnu_ld"; then
10650 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742 10651 hardcode_libdir_separator=:
d9898ee8 10652
8d138742
CE
10653 case $host_cpu in
10654 hppa*64*|ia64*)
10655 hardcode_direct=no
10656 hardcode_shlibpath_var=no
10657 ;;
10658 *)
10659 hardcode_direct=yes
10660 hardcode_direct_absolute=yes
d50284c4 10661 export_dynamic_flag_spec='$wl-E'
d9898ee8 10662
8d138742
CE
10663 # hardcode_minus_L: Not really in the search PATH,
10664 # but as the default location of the library.
10665 hardcode_minus_L=yes
10666 ;;
10667 esac
10668 fi
10669 ;;
d9898ee8 10670
8d138742 10671 irix5* | irix6* | nonstopux*)
d50284c4
CE
10672 if test yes = "$GCC"; then
10673 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
10674 # Try to use the -exported_symbol ld option, if it does not
10675 # work, assume that -exports_file does not work either and
10676 # implicitly export all symbols.
b0322a85
CE
10677 # This should be the same for all languages, so no per-tag cache variable.
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10679$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10680if ${lt_cv_irix_exported_symbol+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682else
d50284c4
CE
10683 save_LDFLAGS=$LDFLAGS
10684 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
b0322a85
CE
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686/* end confdefs.h. */
10687int foo (void) { return 0; }
8d138742 10688_ACEOF
b0322a85
CE
10689if ac_fn_c_try_link "$LINENO"; then :
10690 lt_cv_irix_exported_symbol=yes
8d138742 10691else
b0322a85 10692 lt_cv_irix_exported_symbol=no
8d138742 10693fi
b0322a85
CE
10694rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
d50284c4 10696 LDFLAGS=$save_LDFLAGS
b0322a85
CE
10697fi
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10699$as_echo "$lt_cv_irix_exported_symbol" >&6; }
d50284c4
CE
10700 if test yes = "$lt_cv_irix_exported_symbol"; then
10701 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 10702 fi
8d138742 10703 else
d50284c4
CE
10704 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'
10705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
8d138742
CE
10706 fi
10707 archive_cmds_need_lc='no'
d50284c4 10708 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
10709 hardcode_libdir_separator=:
10710 inherit_rpath=yes
10711 link_all_deplibs=yes
10712 ;;
d9898ee8 10713
d50284c4
CE
10714 linux*)
10715 case $cc_basename in
10716 tcc*)
10717 # Fabrice Bellard et al's Tiny C Compiler
10718 ld_shlibs=yes
10719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10720 ;;
10721 esac
10722 ;;
10723
8d138742
CE
10724 netbsd*)
10725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10727 else
10728 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10729 fi
10730 hardcode_libdir_flag_spec='-R$libdir'
10731 hardcode_direct=yes
10732 hardcode_shlibpath_var=no
10733 ;;
d9898ee8 10734
8d138742
CE
10735 newsos6)
10736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737 hardcode_direct=yes
d50284c4 10738 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
10739 hardcode_libdir_separator=:
10740 hardcode_shlibpath_var=no
10741 ;;
d9898ee8 10742
8d138742
CE
10743 *nto* | *qnx*)
10744 ;;
d9898ee8 10745
d50284c4 10746 openbsd* | bitrig*)
8d138742
CE
10747 if test -f /usr/libexec/ld.so; then
10748 hardcode_direct=yes
10749 hardcode_shlibpath_var=no
10750 hardcode_direct_absolute=yes
d50284c4 10751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8d138742 10752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d50284c4
CE
10753 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10754 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10755 export_dynamic_flag_spec='$wl-E'
8d138742 10756 else
d50284c4
CE
10757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10758 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8d138742
CE
10759 fi
10760 else
10761 ld_shlibs=no
10762 fi
10763 ;;
d9898ee8 10764
8d138742
CE
10765 os2*)
10766 hardcode_libdir_flag_spec='-L$libdir'
10767 hardcode_minus_L=yes
10768 allow_undefined_flag=unsupported
d50284c4
CE
10769 shrext_cmds=.dll
10770 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10773 $ECHO EXPORTS >> $output_objdir/$libname.def~
10774 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10775 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10776 emximp -o $lib $output_objdir/$libname.def'
10777 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10778 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10779 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10780 $ECHO EXPORTS >> $output_objdir/$libname.def~
10781 prefix_cmds="$SED"~
10782 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10783 prefix_cmds="$prefix_cmds -e 1d";
10784 fi~
10785 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10786 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10787 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10788 emximp -o $lib $output_objdir/$libname.def'
10789 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10790 enable_shared_with_static_runtimes=yes
8d138742 10791 ;;
d9898ee8 10792
8d138742 10793 osf3*)
d50284c4
CE
10794 if test yes = "$GCC"; then
10795 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10796 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
8d138742
CE
10797 else
10798 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 10799 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
8d138742
CE
10800 fi
10801 archive_cmds_need_lc='no'
d50284c4 10802 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
10803 hardcode_libdir_separator=:
10804 ;;
d9898ee8 10805
8d138742 10806 osf4* | osf5*) # as osf3* with the addition of -msym flag
d50284c4
CE
10807 if test yes = "$GCC"; then
10808 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10809 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'
10810 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
10811 else
10812 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 10813 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 10814 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 10815 $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 10816
8d138742
CE
10817 # Both c and cxx compiler support -rpath directly
10818 hardcode_libdir_flag_spec='-rpath $libdir'
10819 fi
10820 archive_cmds_need_lc='no'
10821 hardcode_libdir_separator=:
10822 ;;
d9898ee8 10823
8d138742
CE
10824 solaris*)
10825 no_undefined_flag=' -z defs'
d50284c4
CE
10826 if test yes = "$GCC"; then
10827 wlarc='$wl'
10828 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10830 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8d138742
CE
10831 else
10832 case `$CC -V 2>&1` in
10833 *"Compilers 5.0"*)
10834 wlarc=''
d50284c4 10835 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
8d138742 10836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10837 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8d138742
CE
10838 ;;
10839 *)
d50284c4
CE
10840 wlarc='$wl'
10841 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10843 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8d138742
CE
10844 ;;
10845 esac
10846 fi
10847 hardcode_libdir_flag_spec='-R$libdir'
10848 hardcode_shlibpath_var=no
10849 case $host_os in
10850 solaris2.[0-5] | solaris2.[0-5].*) ;;
10851 *)
10852 # The compiler driver will combine and reorder linker options,
d50284c4 10853 # but understands '-z linker_flag'. GCC discards it without '$wl',
8d138742
CE
10854 # but is careful enough not to reorder.
10855 # Supported since Solaris 2.6 (maybe 2.5.1?)
d50284c4
CE
10856 if test yes = "$GCC"; then
10857 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
8d138742
CE
10858 else
10859 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10860 fi
10861 ;;
10862 esac
10863 link_all_deplibs=yes
10864 ;;
d9898ee8 10865
8d138742 10866 sunos4*)
d50284c4 10867 if test sequent = "$host_vendor"; then
8d138742
CE
10868 # Use $CC to link under sequent, because it throws in some extra .o
10869 # files that make .init and .fini sections work.
d50284c4 10870 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10871 else
10872 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10873 fi
10874 hardcode_libdir_flag_spec='-L$libdir'
10875 hardcode_direct=yes
10876 hardcode_minus_L=yes
10877 hardcode_shlibpath_var=no
10878 ;;
d9898ee8 10879
8d138742
CE
10880 sysv4)
10881 case $host_vendor in
10882 sni)
10883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884 hardcode_direct=yes # is this really true???
10885 ;;
10886 siemens)
10887 ## LD is ld it makes a PLAMLIB
10888 ## CC just makes a GrossModule.
10889 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10890 reload_cmds='$CC -r -o $output$reload_objs'
10891 hardcode_direct=no
10892 ;;
10893 motorola)
10894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10896 ;;
10897 esac
10898 runpath_var='LD_RUN_PATH'
10899 hardcode_shlibpath_var=no
10900 ;;
d9898ee8 10901
8d138742
CE
10902 sysv4.3*)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_shlibpath_var=no
10905 export_dynamic_flag_spec='-Bexport'
10906 ;;
d9898ee8 10907
8d138742
CE
10908 sysv4*MP*)
10909 if test -d /usr/nec; then
10910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911 hardcode_shlibpath_var=no
10912 runpath_var=LD_RUN_PATH
10913 hardcode_runpath_var=yes
10914 ld_shlibs=yes
10915 fi
10916 ;;
d9898ee8 10917
8d138742 10918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d50284c4 10919 no_undefined_flag='$wl-z,text'
8d138742
CE
10920 archive_cmds_need_lc=no
10921 hardcode_shlibpath_var=no
10922 runpath_var='LD_RUN_PATH'
d9898ee8 10923
d50284c4
CE
10924 if test yes = "$GCC"; then
10925 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10927 else
d50284c4
CE
10928 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10929 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10930 fi
10931 ;;
d9898ee8 10932
8d138742 10933 sysv5* | sco3.2v5* | sco5v6*)
d50284c4 10934 # Note: We CANNOT use -z defs as we might desire, because we do not
8d138742
CE
10935 # link with -lc, and that would cause any symbols used from libc to
10936 # always be unresolved, which means just about no library would
10937 # ever link correctly. If we're not using GNU ld we use -z text
10938 # though, which does catch some bad symbols but isn't as heavy-handed
10939 # as -z defs.
d50284c4
CE
10940 no_undefined_flag='$wl-z,text'
10941 allow_undefined_flag='$wl-z,nodefs'
8d138742
CE
10942 archive_cmds_need_lc=no
10943 hardcode_shlibpath_var=no
d50284c4 10944 hardcode_libdir_flag_spec='$wl-R,$libdir'
8d138742
CE
10945 hardcode_libdir_separator=':'
10946 link_all_deplibs=yes
d50284c4 10947 export_dynamic_flag_spec='$wl-Bexport'
8d138742 10948 runpath_var='LD_RUN_PATH'
d9898ee8 10949
d50284c4
CE
10950 if test yes = "$GCC"; then
10951 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10953 else
d50284c4
CE
10954 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10956 fi
10957 ;;
d9898ee8 10958
8d138742
CE
10959 uts4*)
10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961 hardcode_libdir_flag_spec='-L$libdir'
10962 hardcode_shlibpath_var=no
10963 ;;
d9898ee8 10964
8d138742
CE
10965 *)
10966 ld_shlibs=no
10967 ;;
10968 esac
d9898ee8 10969
d50284c4 10970 if test sni = "$host_vendor"; then
8d138742
CE
10971 case $host in
10972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d50284c4 10973 export_dynamic_flag_spec='$wl-Blargedynsym'
8d138742
CE
10974 ;;
10975 esac
10976 fi
10977 fi
d9898ee8 10978
b0322a85 10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742 10980$as_echo "$ld_shlibs" >&6; }
d50284c4 10981test no = "$ld_shlibs" && can_build_shared=no
d9898ee8 10982
8d138742 10983with_gnu_ld=$with_gnu_ld
d9898ee8 10984
10985
d9898ee8 10986
d9898ee8 10987
d9898ee8 10988
d9898ee8 10989
d9898ee8 10990
10991
d9898ee8 10992
d9898ee8 10993
10994
dd184caf 10995
d9898ee8 10996
d9898ee8 10997
d9898ee8 10998
8d138742
CE
10999#
11000# Do we need to explicitly link libc?
11001#
11002case "x$archive_cmds_need_lc" in
11003x|xyes)
11004 # Assume -lc should be added
11005 archive_cmds_need_lc=yes
d9898ee8 11006
d50284c4 11007 if test yes,yes = "$GCC,$enable_shared"; then
8d138742
CE
11008 case $archive_cmds in
11009 *'~'*)
11010 # FIXME: we may have to deal with multi-command sequences.
11011 ;;
11012 '$CC '*)
11013 # Test whether the compiler implicitly links with -lc since on some
11014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11015 # to ld, don't add -lc before -lgcc.
b0322a85 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 11017$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
11018if ${lt_cv_archive_cmds_need_lc+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020else
11021 $RM conftest*
11022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8d138742 11023
b0322a85 11024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
11025 (eval $ac_compile) 2>&5
11026 ac_status=$?
b0322a85
CE
11027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11028 test $ac_status = 0; } 2>conftest.err; then
11029 soname=conftest
11030 lib=conftest
11031 libobjs=conftest.$ac_objext
11032 deplibs=
11033 wl=$lt_prog_compiler_wl
11034 pic_flag=$lt_prog_compiler_pic
11035 compiler_flags=-v
11036 linker_flags=-v
11037 verstring=
11038 output_objdir=.
11039 libname=conftest
11040 lt_save_allow_undefined_flag=$allow_undefined_flag
11041 allow_undefined_flag=
11042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
11043 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11044 ac_status=$?
b0322a85
CE
11045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11046 test $ac_status = 0; }
11047 then
11048 lt_cv_archive_cmds_need_lc=no
11049 else
11050 lt_cv_archive_cmds_need_lc=yes
11051 fi
11052 allow_undefined_flag=$lt_save_allow_undefined_flag
11053 else
11054 cat conftest.err 1>&5
11055 fi
11056 $RM conftest*
11057
11058fi
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11060$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11061 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8d138742 11062 ;;
d9898ee8 11063 esac
8d138742
CE
11064 fi
11065 ;;
11066esac
d9898ee8 11067
d9898ee8 11068
d9898ee8 11069
d9898ee8 11070
d9898ee8 11071
d9898ee8 11072
d9898ee8 11073
d9898ee8 11074
d9898ee8 11075
11076
d9898ee8 11077
d9898ee8 11078
11079
d9898ee8 11080
11081
d9898ee8 11082
d9898ee8 11083
11084
dd184caf 11085
d9898ee8 11086
d9898ee8 11087
11088
11089
d9898ee8 11090
d9898ee8 11091
d9898ee8 11092
d9898ee8 11093
d9898ee8 11094
d9898ee8 11095
d9898ee8 11096
d9898ee8 11097
d9898ee8 11098
d9898ee8 11099
d9898ee8 11100
d9898ee8 11101
d9898ee8 11102
dd184caf 11103
dd184caf 11104
d9898ee8 11105
d9898ee8 11106
d9898ee8 11107
d9898ee8 11108
d9898ee8 11109
d9898ee8 11110
dd184caf 11111
dd184caf 11112
d9898ee8 11113
d9898ee8 11114
d9898ee8 11115
d9898ee8 11116
d9898ee8 11117
d9898ee8 11118
d9898ee8 11119
d9898ee8 11120
d9898ee8 11121
d9898ee8 11122
d9898ee8 11123
d9898ee8 11124
d9898ee8 11125
d9898ee8 11126
d9898ee8 11127
d9898ee8 11128
d9898ee8 11129
d9898ee8 11130
d9898ee8 11131
d9898ee8 11132
d9898ee8 11133
d9898ee8 11134
d9898ee8 11135
d9898ee8 11136
11137
d9898ee8 11138
d9898ee8 11139
d9898ee8 11140
d9898ee8 11141
d9898ee8 11142
d9898ee8 11143
d9898ee8 11144
d9898ee8 11145
d9898ee8 11146
ac40fd9e 11147
ac40fd9e 11148
d9898ee8 11149
11150
d9898ee8 11151
d9898ee8 11152
d9898ee8 11153
d9898ee8 11154
d9898ee8 11155
d9898ee8 11156
d9898ee8 11157
d9898ee8 11158
d9898ee8 11159
d9898ee8 11160
d9898ee8 11161
d9898ee8 11162
d9898ee8 11163
d9898ee8 11164
11165
d9898ee8 11166
d9898ee8 11167
d9898ee8 11168
11169
d9898ee8 11170
d9898ee8 11171
d9898ee8 11172
d9898ee8 11173
d9898ee8 11174
d9898ee8 11175
d9898ee8 11176
ac40fd9e 11177
d9898ee8 11178
d9898ee8 11179
d9898ee8 11180
d9898ee8 11181
d9898ee8 11182
d9898ee8 11183
d9898ee8 11184
8d138742
CE
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
b0322a85 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
11220$as_echo_n "checking dynamic linker characteristics... " >&6; }
11221
d50284c4 11222if test yes = "$GCC"; then
8d138742 11223 case $host_os in
d50284c4
CE
11224 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11225 *) lt_awk_arg='/^libraries:/' ;;
8d138742 11226 esac
b0322a85 11227 case $host_os in
d50284c4
CE
11228 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11229 *) lt_sed_strip_eq='s|=/|/|g' ;;
b0322a85
CE
11230 esac
11231 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11232 case $lt_search_path_spec in
11233 *\;*)
8d138742
CE
11234 # if the path contains ";" then we assume it to be the separator
11235 # otherwise default to the standard path separator (i.e. ":") - it is
11236 # assumed that no part of a normal pathname contains ";" but that should
11237 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
11238 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11239 ;;
11240 *)
11241 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11242 ;;
11243 esac
8d138742 11244 # Ok, now we have the path, separated by spaces, we can step through it
d50284c4 11245 # and add multilib dir if necessary...
8d138742 11246 lt_tmp_lt_search_path_spec=
d50284c4
CE
11247 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11248 # ...but if some path component already ends with the multilib dir we assume
11249 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11250 case "$lt_multi_os_dir; $lt_search_path_spec " in
11251 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11252 lt_multi_os_dir=
11253 ;;
11254 esac
8d138742 11255 for lt_sys_path in $lt_search_path_spec; do
d50284c4
CE
11256 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11257 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11258 elif test -n "$lt_multi_os_dir"; then
8d138742
CE
11259 test -d "$lt_sys_path" && \
11260 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11261 fi
11262 done
b0322a85 11263 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d50284c4
CE
11264BEGIN {RS = " "; FS = "/|\n";} {
11265 lt_foo = "";
11266 lt_count = 0;
8d138742
CE
11267 for (lt_i = NF; lt_i > 0; lt_i--) {
11268 if ($lt_i != "" && $lt_i != ".") {
11269 if ($lt_i == "..") {
11270 lt_count++;
11271 } else {
11272 if (lt_count == 0) {
d50284c4 11273 lt_foo = "/" $lt_i lt_foo;
8d138742
CE
11274 } else {
11275 lt_count--;
11276 }
11277 }
11278 }
11279 }
11280 if (lt_foo != "") { lt_freq[lt_foo]++; }
11281 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11282}'`
b0322a85
CE
11283 # AWK program above erroneously prepends '/' to C:/dos/paths
11284 # for these hosts.
11285 case $host_os in
11286 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
d50284c4 11287 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
b0322a85
CE
11288 esac
11289 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
11290else
11291 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11292fi
11293library_names_spec=
11294libname_spec='lib$name'
11295soname_spec=
d50284c4 11296shrext_cmds=.so
8d138742
CE
11297postinstall_cmds=
11298postuninstall_cmds=
11299finish_cmds=
11300finish_eval=
11301shlibpath_var=
11302shlibpath_overrides_runpath=unknown
11303version_type=none
11304dynamic_linker="$host_os ld.so"
11305sys_lib_dlsearch_path_spec="/lib /usr/lib"
11306need_lib_prefix=unknown
11307hardcode_into_libs=no
11308
11309# when you set need_version to no, make sure it does not cause -set_version
11310# flags to be left without arguments
11311need_version=unknown
11312
d50284c4
CE
11313
11314
8d138742
CE
11315case $host_os in
11316aix3*)
b0322a85 11317 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 11318 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
8d138742
CE
11319 shlibpath_var=LIBPATH
11320
11321 # AIX 3 has no versioning support, so we append a major version to the name.
d50284c4 11322 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
11323 ;;
11324
11325aix[4-9]*)
b0322a85 11326 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11327 need_lib_prefix=no
11328 need_version=no
11329 hardcode_into_libs=yes
d50284c4 11330 if test ia64 = "$host_cpu"; then
8d138742 11331 # AIX 5 supports IA64
d50284c4 11332 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
8d138742
CE
11333 shlibpath_var=LD_LIBRARY_PATH
11334 else
11335 # With GCC up to 2.95.x, collect2 would create an import file
11336 # for dependence libraries. The import file would start with
d50284c4
CE
11337 # the line '#! .'. This would cause the generated library to
11338 # depend on '.', always an invalid library. This was fixed in
8d138742
CE
11339 # development snapshots of GCC prior to 3.0.
11340 case $host_os in
11341 aix4 | aix4.[01] | aix4.[01].*)
11342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11343 echo ' yes '
d50284c4 11344 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
8d138742
CE
11345 :
11346 else
11347 can_build_shared=no
11348 fi
11349 ;;
11350 esac
d50284c4
CE
11351 # Using Import Files as archive members, it is possible to support
11352 # filename-based versioning of shared library archives on AIX. While
11353 # this would work for both with and without runtime linking, it will
11354 # prevent static linking of such archives. So we do filename-based
11355 # shared library versioning with .so extension only, which is used
11356 # when both runtime linking and shared linking is enabled.
11357 # Unfortunately, runtime linking may impact performance, so we do
11358 # not want this to be the default eventually. Also, we use the
11359 # versioned .so libs for executables only if there is the -brtl
11360 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11361 # To allow for filename-based versioning support, we need to create
11362 # libNAME.so.V as an archive file, containing:
11363 # *) an Import File, referring to the versioned filename of the
11364 # archive as well as the shared archive member, telling the
11365 # bitwidth (32 or 64) of that shared object, and providing the
11366 # list of exported symbols of that shared object, eventually
11367 # decorated with the 'weak' keyword
11368 # *) the shared object with the F_LOADONLY flag set, to really avoid
11369 # it being seen by the linker.
11370 # At run time we better use the real file rather than another symlink,
11371 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11372
11373 case $with_aix_soname,$aix_use_runtimelinking in
11374 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
8d138742
CE
11375 # soname into executable. Probably we can add versioning support to
11376 # collect2, so additional links can be useful in future.
d50284c4
CE
11377 aix,yes) # traditional libtool
11378 dynamic_linker='AIX unversionable lib.so'
8d138742
CE
11379 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11380 # instead of lib<name>.a to let people know that these are not
11381 # typical AIX shared libraries.
d50284c4
CE
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11383 ;;
11384 aix,no) # traditional AIX only
11385 dynamic_linker='AIX lib.a(lib.so.V)'
8d138742
CE
11386 # We preserve .a as extension for shared libraries through AIX4.2
11387 # and later when we are not doing run time linking.
d50284c4
CE
11388 library_names_spec='$libname$release.a $libname.a'
11389 soname_spec='$libname$release$shared_ext$major'
11390 ;;
11391 svr4,*) # full svr4 only
11392 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11393 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11394 # We do not specify a path in Import Files, so LIBPATH fires.
11395 shlibpath_overrides_runpath=yes
11396 ;;
11397 *,yes) # both, prefer svr4
11398 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11399 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11400 # unpreferred sharedlib libNAME.a needs extra handling
11401 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"'
11402 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"'
11403 # We do not specify a path in Import Files, so LIBPATH fires.
11404 shlibpath_overrides_runpath=yes
11405 ;;
11406 *,no) # both, prefer aix
11407 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11408 library_names_spec='$libname$release.a $libname.a'
11409 soname_spec='$libname$release$shared_ext$major'
11410 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11411 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)'
11412 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"'
11413 ;;
11414 esac
8d138742
CE
11415 shlibpath_var=LIBPATH
11416 fi
11417 ;;
11418
11419amigaos*)
11420 case $host_cpu in
11421 powerpc)
11422 # Since July 2007 AmigaOS4 officially supports .so libraries.
11423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
d50284c4 11424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
11425 ;;
11426 m68k)
11427 library_names_spec='$libname.ixlibrary $libname.a'
11428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
d50284c4 11429 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
11430 ;;
11431 esac
11432 ;;
11433
11434beos*)
d50284c4 11435 library_names_spec='$libname$shared_ext'
8d138742
CE
11436 dynamic_linker="$host_os ld.so"
11437 shlibpath_var=LIBRARY_PATH
11438 ;;
11439
11440bsdi[45]*)
b0322a85 11441 version_type=linux # correct to gnu/linux during the next big refactor
8d138742 11442 need_version=no
d50284c4
CE
11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11449 # the default ld.so.conf also contains /usr/contrib/lib and
11450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11451 # libtool to hard-code these into programs
11452 ;;
11453
8d138742 11454cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 11455 version_type=windows
d50284c4 11456 shrext_cmds=.dll
d9898ee8 11457 need_version=no
11458 need_lib_prefix=no
11459
b0322a85
CE
11460 case $GCC,$cc_basename in
11461 yes,*)
11462 # gcc
d9898ee8 11463 library_names_spec='$libname.dll.a'
11464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
11465 postinstall_cmds='base_file=`basename \$file`~
11466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d9898ee8 11467 dldir=$destdir/`dirname \$dlpath`~
11468 test -d \$dldir || mkdir -p \$dldir~
11469 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
11470 chmod a+x \$dldir/$dlname~
11471 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11473 fi'
d9898ee8 11474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11475 dlpath=$dir/\$dldll~
8d138742 11476 $RM \$dlpath'
d9898ee8 11477 shlibpath_overrides_runpath=yes
11478
11479 case $host_os in
11480 cygwin*)
11481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
d50284c4 11482 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b0322a85
CE
11483
11484 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 11485 ;;
8d138742 11486 mingw* | cegcc*)
d9898ee8 11487 # MinGW DLLs use traditional 'lib' prefix
d50284c4 11488 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 11489 ;;
11490 pw32*)
11491 # pw32 DLLs use 'pw' prefix rather than 'lib'
d50284c4 11492 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 11493 ;;
11494 esac
b0322a85 11495 dynamic_linker='Win32 ld.exe'
d9898ee8 11496 ;;
11497
b0322a85
CE
11498 *,cl*)
11499 # Native MSVC
11500 libname_spec='$name'
d50284c4
CE
11501 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11502 library_names_spec='$libname.dll.lib'
b0322a85
CE
11503
11504 case $build_os in
11505 mingw*)
11506 sys_lib_search_path_spec=
11507 lt_save_ifs=$IFS
11508 IFS=';'
11509 for lt_path in $LIB
11510 do
11511 IFS=$lt_save_ifs
11512 # Let DOS variable expansion print the short 8.3 style file name.
11513 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11514 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11515 done
11516 IFS=$lt_save_ifs
11517 # Convert to MSYS style.
11518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11519 ;;
11520 cygwin*)
11521 # Convert to unix form, then to dos form, then back to unix form
11522 # but this time dos style (no spaces!) so that the unix form looks
11523 # like /cygdrive/c/PROGRA~1:/cygdr...
11524 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11525 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11526 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11527 ;;
11528 *)
d50284c4 11529 sys_lib_search_path_spec=$LIB
b0322a85
CE
11530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11531 # It is most probably a Windows format PATH.
11532 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11533 else
11534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11535 fi
11536 # FIXME: find the short name or the path components, as spaces are
11537 # common. (e.g. "Program Files" -> "PROGRA~1")
11538 ;;
11539 esac
11540
11541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
11542 postinstall_cmds='base_file=`basename \$file`~
11543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
b0322a85
CE
11544 dldir=$destdir/`dirname \$dlpath`~
11545 test -d \$dldir || mkdir -p \$dldir~
11546 $install_prog $dir/$dlname \$dldir/$dlname'
11547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11548 dlpath=$dir/\$dldll~
11549 $RM \$dlpath'
11550 shlibpath_overrides_runpath=yes
11551 dynamic_linker='Win32 link.exe'
11552 ;;
11553
11554 *)
11555 # Assume MSVC wrapper
d50284c4 11556 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
b0322a85
CE
11557 dynamic_linker='Win32 ld.exe'
11558 ;;
11559 esac
d9898ee8 11560 # FIXME: first we should search . and the directory the executable is in
11561 shlibpath_var=PATH
11562 ;;
11563
11564darwin* | rhapsody*)
11565 dynamic_linker="$host_os dyld"
11566 version_type=darwin
11567 need_lib_prefix=no
11568 need_version=no
d50284c4
CE
11569 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11570 soname_spec='$libname$release$major$shared_ext'
d9898ee8 11571 shlibpath_overrides_runpath=yes
11572 shlibpath_var=DYLD_LIBRARY_PATH
11573 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 11574
8d138742 11575 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 11576 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11577 ;;
11578
11579dgux*)
b0322a85 11580 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11581 need_lib_prefix=no
11582 need_version=no
d50284c4
CE
11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11584 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11585 shlibpath_var=LD_LIBRARY_PATH
11586 ;;
11587
d9898ee8 11588freebsd* | dragonfly*)
11589 # DragonFly does not have aout. When/if they implement a new
11590 # versioning mechanism, adjust this.
11591 if test -x /usr/bin/objformat; then
11592 objformat=`/usr/bin/objformat`
11593 else
11594 case $host_os in
b0322a85 11595 freebsd[23].*) objformat=aout ;;
d9898ee8 11596 *) objformat=elf ;;
11597 esac
11598 fi
11599 version_type=freebsd-$objformat
11600 case $version_type in
11601 freebsd-elf*)
d50284c4
CE
11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11604 need_version=no
11605 need_lib_prefix=no
11606 ;;
11607 freebsd-*)
d50284c4 11608 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 11609 need_version=yes
11610 ;;
11611 esac
11612 shlibpath_var=LD_LIBRARY_PATH
11613 case $host_os in
b0322a85 11614 freebsd2.*)
d9898ee8 11615 shlibpath_overrides_runpath=yes
11616 ;;
11617 freebsd3.[01]* | freebsdelf3.[01]*)
11618 shlibpath_overrides_runpath=yes
11619 hardcode_into_libs=yes
11620 ;;
11621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11623 shlibpath_overrides_runpath=no
11624 hardcode_into_libs=yes
11625 ;;
ac40fd9e 11626 *) # from 4.6 on, and DragonFly
d9898ee8 11627 shlibpath_overrides_runpath=yes
11628 hardcode_into_libs=yes
11629 ;;
11630 esac
11631 ;;
11632
b0322a85
CE
11633haiku*)
11634 version_type=linux # correct to gnu/linux during the next big refactor
11635 need_lib_prefix=no
11636 need_version=no
11637 dynamic_linker="$host_os runtime_loader"
d50284c4
CE
11638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11639 soname_spec='$libname$release$shared_ext$major'
b0322a85 11640 shlibpath_var=LIBRARY_PATH
d50284c4 11641 shlibpath_overrides_runpath=no
b0322a85 11642 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 11643 hardcode_into_libs=yes
11644 ;;
11645
11646hpux9* | hpux10* | hpux11*)
11647 # Give a soname corresponding to the major version so that dld.sl refuses to
11648 # link against other versions.
11649 version_type=sunos
11650 need_lib_prefix=no
11651 need_version=no
11652 case $host_cpu in
11653 ia64*)
11654 shrext_cmds='.so'
11655 hardcode_into_libs=yes
11656 dynamic_linker="$host_os dld.so"
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11660 soname_spec='$libname$release$shared_ext$major'
11661 if test 32 = "$HPUX_IA64_MODE"; then
d9898ee8 11662 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
d50284c4 11663 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
d9898ee8 11664 else
11665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
d50284c4 11666 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d9898ee8 11667 fi
d9898ee8 11668 ;;
8d138742
CE
11669 hppa*64*)
11670 shrext_cmds='.sl'
11671 hardcode_into_libs=yes
11672 dynamic_linker="$host_os dld.sl"
11673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
11675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11676 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
11677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11679 ;;
11680 *)
d9898ee8 11681 shrext_cmds='.sl'
11682 dynamic_linker="$host_os dld.sl"
11683 shlibpath_var=SHLIB_PATH
11684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
d50284c4
CE
11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11687 ;;
11688 esac
b0322a85 11689 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 11690 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
11691 # or fails outright, so override atomically:
11692 install_override_mode=555
d9898ee8 11693 ;;
11694
ac40fd9e 11695interix[3-9]*)
b0322a85 11696 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11697 need_lib_prefix=no
11698 need_version=no
d50284c4
CE
11699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11700 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11701 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
11704 hardcode_into_libs=yes
11705 ;;
11706
11707irix5* | irix6* | nonstopux*)
11708 case $host_os in
11709 nonstopux*) version_type=nonstopux ;;
11710 *)
d50284c4 11711 if test yes = "$lt_cv_prog_gnu_ld"; then
b0322a85 11712 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11713 else
11714 version_type=irix
11715 fi ;;
11716 esac
11717 need_lib_prefix=no
11718 need_version=no
d50284c4
CE
11719 soname_spec='$libname$release$shared_ext$major'
11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d9898ee8 11721 case $host_os in
11722 irix5* | nonstopux*)
11723 libsuff= shlibsuff=
11724 ;;
11725 *)
11726 case $LD in # libtool.m4 will add one of these switches to LD
11727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11728 libsuff= shlibsuff= libmagic=32-bit;;
11729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11730 libsuff=32 shlibsuff=N32 libmagic=N32;;
11731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11733 *) libsuff= shlibsuff= libmagic=never-match;;
11734 esac
11735 ;;
11736 esac
11737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11738 shlibpath_overrides_runpath=no
d50284c4
CE
11739 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11740 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d9898ee8 11741 hardcode_into_libs=yes
11742 ;;
11743
11744# No shared lib support for Linux oldld, aout, or coff.
11745linux*oldld* | linux*aout* | linux*coff*)
11746 dynamic_linker=no
11747 ;;
11748
d50284c4
CE
11749linux*android*)
11750 version_type=none # Android doesn't support versioned libraries.
11751 need_lib_prefix=no
11752 need_version=no
11753 library_names_spec='$libname$release$shared_ext'
11754 soname_spec='$libname$release$shared_ext'
11755 finish_cmds=
11756 shlibpath_var=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath=yes
11758
11759 # This implies no fast_install, which is unacceptable.
11760 # Some rework will be needed to allow for fast_install
11761 # before this can be enabled.
11762 hardcode_into_libs=yes
11763
11764 dynamic_linker='Android linker'
11765 # Don't embed -rpath directories since the linker doesn't support them.
11766 hardcode_libdir_flag_spec='-L$libdir'
11767 ;;
11768
b0322a85 11769# This must be glibc/ELF.
d50284c4 11770linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b0322a85 11771 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11772 need_lib_prefix=no
11773 need_version=no
d50284c4
CE
11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=no
b0322a85 11779
8d138742 11780 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
11781 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783else
11784 lt_cv_shlibpath_overrides_runpath=no
11785 save_LDFLAGS=$LDFLAGS
11786 save_libdir=$libdir
11787 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11788 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11790/* end confdefs.h. */
11791
11792int
11793main ()
11794{
11795
11796 ;
11797 return 0;
11798}
11799_ACEOF
b0322a85
CE
11800if ac_fn_c_try_link "$LINENO"; then :
11801 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11802 lt_cv_shlibpath_overrides_runpath=yes
8d138742 11803fi
b0322a85
CE
11804fi
11805rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11807 LDFLAGS=$save_LDFLAGS
11808 libdir=$save_libdir
8d138742
CE
11809
11810fi
11811
b0322a85 11812 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 11813
d9898ee8 11814 # This implies no fast_install, which is unacceptable.
11815 # Some rework will be needed to allow for fast_install
11816 # before this can be enabled.
11817 hardcode_into_libs=yes
8d138742
CE
11818
11819 # Add ABI-specific directories to the system library path.
11820 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 11821
d50284c4
CE
11822 # Ideally, we could use ldconfig to report *all* directores which are
11823 # searched for libraries, however this is still not possible. Aside from not
11824 # being certain /sbin/ldconfig is available, command
11825 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11826 # even though it is searched at run-time. Try to do the best guess by
11827 # appending ld.so.conf contents (and includes) to the search path.
d9898ee8 11828 if test -f /etc/ld.so.conf; then
b0322a85 11829 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 11830 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 11831 fi
11832
11833 # We used to test for /lib/ld.so.1 and disable shared libraries on
11834 # powerpc, because MkLinux only supported shared libraries with the
11835 # GNU dynamic linker. Since this was broken with cross compilers,
11836 # most powerpc-linux boxes support dynamic linking these days and
11837 # people can always --disable-shared, the test was removed, and we
11838 # assume the GNU/Linux dynamic linker is in use.
11839 dynamic_linker='GNU/Linux ld.so'
11840 ;;
11841
d9898ee8 11842netbsd*)
11843 version_type=sunos
11844 need_lib_prefix=no
11845 need_version=no
8d138742 11846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d50284c4 11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 11848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11849 dynamic_linker='NetBSD (a.out) ld.so'
11850 else
d50284c4
CE
11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11852 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11853 dynamic_linker='NetBSD ld.elf_so'
11854 fi
11855 shlibpath_var=LD_LIBRARY_PATH
11856 shlibpath_overrides_runpath=yes
11857 hardcode_into_libs=yes
11858 ;;
11859
11860newsos6)
b0322a85 11861 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 11862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=yes
11865 ;;
11866
8d138742
CE
11867*nto* | *qnx*)
11868 version_type=qnx
d9898ee8 11869 need_lib_prefix=no
11870 need_version=no
d50284c4
CE
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11873 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
11874 shlibpath_overrides_runpath=no
11875 hardcode_into_libs=yes
11876 dynamic_linker='ldqnx.so'
d9898ee8 11877 ;;
11878
d50284c4 11879openbsd* | bitrig*)
d9898ee8 11880 version_type=sunos
d50284c4 11881 sys_lib_dlsearch_path_spec=/usr/lib
d9898ee8 11882 need_lib_prefix=no
d50284c4
CE
11883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11884 need_version=no
d9898ee8 11885 else
d50284c4 11886 need_version=yes
d9898ee8 11887 fi
d50284c4
CE
11888 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes
d9898ee8 11892 ;;
11893
11894os2*)
11895 libname_spec='$name'
d50284c4
CE
11896 version_type=windows
11897 shrext_cmds=.dll
11898 need_version=no
d9898ee8 11899 need_lib_prefix=no
d50284c4
CE
11900 # OS/2 can only load a DLL with a base name of 8 characters or less.
11901 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11902 v=$($ECHO $release$versuffix | tr -d .-);
11903 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11904 $ECHO $n$v`$shared_ext'
11905 library_names_spec='${libname}_dll.$libext'
d9898ee8 11906 dynamic_linker='OS/2 ld.exe'
d50284c4
CE
11907 shlibpath_var=BEGINLIBPATH
11908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11910 postinstall_cmds='base_file=`basename \$file`~
11911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11912 dldir=$destdir/`dirname \$dlpath`~
11913 test -d \$dldir || mkdir -p \$dldir~
11914 $install_prog $dir/$dlname \$dldir/$dlname~
11915 chmod a+x \$dldir/$dlname~
11916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11918 fi'
11919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11920 dlpath=$dir/\$dldll~
11921 $RM \$dlpath'
d9898ee8 11922 ;;
11923
11924osf3* | osf4* | osf5*)
11925 version_type=osf
11926 need_lib_prefix=no
11927 need_version=no
d50284c4
CE
11928 soname_spec='$libname$release$shared_ext$major'
11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 11930 shlibpath_var=LD_LIBRARY_PATH
11931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
d50284c4 11932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d9898ee8 11933 ;;
11934
ac40fd9e 11935rdos*)
11936 dynamic_linker=no
11937 ;;
11938
d9898ee8 11939solaris*)
b0322a85 11940 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11941 need_lib_prefix=no
11942 need_version=no
d50284c4
CE
11943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11944 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11945 shlibpath_var=LD_LIBRARY_PATH
11946 shlibpath_overrides_runpath=yes
11947 hardcode_into_libs=yes
11948 # ldd complains unless libraries are executable
11949 postinstall_cmds='chmod +x $lib'
11950 ;;
11951
11952sunos4*)
11953 version_type=sunos
d50284c4 11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 11955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=yes
d50284c4 11958 if test yes = "$with_gnu_ld"; then
d9898ee8 11959 need_lib_prefix=no
11960 fi
11961 need_version=yes
11962 ;;
11963
11964sysv4 | sysv4.3*)
b0322a85 11965 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11968 shlibpath_var=LD_LIBRARY_PATH
11969 case $host_vendor in
11970 sni)
11971 shlibpath_overrides_runpath=no
11972 need_lib_prefix=no
d9898ee8 11973 runpath_var=LD_RUN_PATH
11974 ;;
11975 siemens)
11976 need_lib_prefix=no
11977 ;;
11978 motorola)
11979 need_lib_prefix=no
11980 need_version=no
11981 shlibpath_overrides_runpath=no
11982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11983 ;;
11984 esac
11985 ;;
11986
11987sysv4*MP*)
d50284c4 11988 if test -d /usr/nec; then
b0322a85 11989 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11990 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11991 soname_spec='$libname$shared_ext.$major'
d9898ee8 11992 shlibpath_var=LD_LIBRARY_PATH
11993 fi
11994 ;;
11995
11996sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
d50284c4 11997 version_type=sco
d9898ee8 11998 need_lib_prefix=no
11999 need_version=no
d50284c4
CE
12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12001 soname_spec='$libname$release$shared_ext$major'
d9898ee8 12002 shlibpath_var=LD_LIBRARY_PATH
8d138742 12003 shlibpath_overrides_runpath=yes
d9898ee8 12004 hardcode_into_libs=yes
d50284c4 12005 if test yes = "$with_gnu_ld"; then
d9898ee8 12006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 12007 else
12008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 12009 case $host_os in
12010 sco3.2v5*)
12011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12012 ;;
12013 esac
12014 fi
12015 sys_lib_dlsearch_path_spec='/usr/lib'
12016 ;;
12017
8d138742
CE
12018tpf*)
12019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 12020 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
12021 need_lib_prefix=no
12022 need_version=no
d50284c4 12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
12024 shlibpath_var=LD_LIBRARY_PATH
12025 shlibpath_overrides_runpath=no
12026 hardcode_into_libs=yes
12027 ;;
12028
d9898ee8 12029uts4*)
b0322a85 12030 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032 soname_spec='$libname$release$shared_ext$major'
d9898ee8 12033 shlibpath_var=LD_LIBRARY_PATH
12034 ;;
12035
12036*)
12037 dynamic_linker=no
12038 ;;
12039esac
b0322a85 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 12041$as_echo "$dynamic_linker" >&6; }
d50284c4 12042test no = "$dynamic_linker" && can_build_shared=no
d9898ee8 12043
12044variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
d50284c4 12045if test yes = "$GCC"; then
d9898ee8 12046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12047fi
12048
d50284c4
CE
12049if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12050 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
8d138742 12051fi
d50284c4
CE
12052
12053if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12054 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
8d138742 12055fi
d9898ee8 12056
d50284c4
CE
12057# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12058configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12059
12060# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12061func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12062
12063# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12064configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12065
12066
12067
12068
12069
12070
d9898ee8 12071
d9898ee8 12072
d9898ee8 12073
d9898ee8 12074
d9898ee8 12075
d9898ee8 12076
d9898ee8 12077
d9898ee8 12078
d9898ee8 12079
d9898ee8 12080
d9898ee8 12081
d9898ee8 12082
d9898ee8 12083
d9898ee8 12084
d9898ee8 12085
d9898ee8 12086
d9898ee8 12087
d9898ee8 12088
d9898ee8 12089
d9898ee8 12090
d9898ee8 12091
d9898ee8 12092
d9898ee8 12093
d9898ee8 12094
d9898ee8 12095
d9898ee8 12096
d9898ee8 12097
d9898ee8 12098
d9898ee8 12099
d9898ee8 12100
d9898ee8 12101
d9898ee8 12102
d9898ee8 12103
d9898ee8 12104
d9898ee8 12105
d9898ee8 12106
d9898ee8 12107
d9898ee8 12108
d9898ee8 12109
d9898ee8 12110
d9898ee8 12111
d9898ee8 12112
d9898ee8 12113
d9898ee8 12114
d9898ee8 12115
d9898ee8 12116
d9898ee8 12117
d9898ee8 12118
d9898ee8 12119
d9898ee8 12120
d9898ee8 12121
d9898ee8 12122
d9898ee8 12123
d9898ee8 12124
d9898ee8 12125
d9898ee8 12126
d9898ee8 12127
d9898ee8 12128
d9898ee8 12129
d9898ee8 12130
d9898ee8 12131
d9898ee8 12132
d9898ee8 12133
d9898ee8 12134
d9898ee8 12135
d9898ee8 12136
d9898ee8 12137
d9898ee8 12138
d9898ee8 12139
d9898ee8 12140
d9898ee8 12141
d9898ee8 12142
d9898ee8 12143
d9898ee8 12144
d9898ee8 12145
d9898ee8 12146
d9898ee8 12147
d9898ee8 12148
d9898ee8 12149
d9898ee8 12150
d9898ee8 12151
d9898ee8 12152
d9898ee8 12153
d9898ee8 12154
d9898ee8 12155
d9898ee8 12156
b0322a85
CE
12157
12158
12159
12160
12161
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
12163$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12164hardcode_action=
12165if test -n "$hardcode_libdir_flag_spec" ||
12166 test -n "$runpath_var" ||
d50284c4 12167 test yes = "$hardcode_automatic"; then
d9898ee8 12168
8d138742 12169 # We can hardcode non-existent directories.
d50284c4 12170 if test no != "$hardcode_direct" &&
8d138742
CE
12171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12172 # have to relink, otherwise we might link with an installed library
12173 # when we should be linking with a yet-to-be-installed one
d50284c4
CE
12174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12175 test no != "$hardcode_minus_L"; then
8d138742
CE
12176 # Linking always hardcodes the temporary library directory.
12177 hardcode_action=relink
12178 else
12179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12180 hardcode_action=immediate
12181 fi
12182else
12183 # We cannot hardcode anything, or else we can only hardcode existing
12184 # directories.
12185 hardcode_action=unsupported
12186fi
b0322a85 12187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742 12188$as_echo "$hardcode_action" >&6; }
d9898ee8 12189
d50284c4
CE
12190if test relink = "$hardcode_action" ||
12191 test yes = "$inherit_rpath"; then
8d138742
CE
12192 # Fast installation is not supported
12193 enable_fast_install=no
d50284c4
CE
12194elif test yes = "$shlibpath_overrides_runpath" ||
12195 test no = "$enable_shared"; then
8d138742
CE
12196 # Fast installation is not necessary
12197 enable_fast_install=needless
12198fi
d9898ee8 12199
d9898ee8 12200
d9898ee8 12201
d9898ee8 12202
d9898ee8 12203
d9898ee8 12204
d50284c4 12205 if test yes != "$enable_dlopen"; then
8d138742
CE
12206 enable_dlopen=unknown
12207 enable_dlopen_self=unknown
12208 enable_dlopen_self_static=unknown
12209else
12210 lt_cv_dlopen=no
12211 lt_cv_dlopen_libs=
d9898ee8 12212
8d138742
CE
12213 case $host_os in
12214 beos*)
d50284c4 12215 lt_cv_dlopen=load_add_on
8d138742
CE
12216 lt_cv_dlopen_libs=
12217 lt_cv_dlopen_self=yes
12218 ;;
d9898ee8 12219
8d138742 12220 mingw* | pw32* | cegcc*)
d50284c4 12221 lt_cv_dlopen=LoadLibrary
8d138742
CE
12222 lt_cv_dlopen_libs=
12223 ;;
d9898ee8 12224
8d138742 12225 cygwin*)
d50284c4 12226 lt_cv_dlopen=dlopen
8d138742
CE
12227 lt_cv_dlopen_libs=
12228 ;;
d9898ee8 12229
8d138742 12230 darwin*)
d50284c4 12231 # if libdl is installed we need to link against it
b0322a85 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 12233$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 12234if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
12235 $as_echo_n "(cached) " >&6
12236else
12237 ac_check_lib_save_LIBS=$LIBS
12238LIBS="-ldl $LIBS"
b0322a85 12239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12240/* end confdefs.h. */
d9898ee8 12241
8d138742
CE
12242/* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245#ifdef __cplusplus
12246extern "C"
12247#endif
12248char dlopen ();
12249int
12250main ()
12251{
12252return dlopen ();
12253 ;
12254 return 0;
12255}
12256_ACEOF
b0322a85 12257if ac_fn_c_try_link "$LINENO"; then :
8d138742 12258 ac_cv_lib_dl_dlopen=yes
d9898ee8 12259else
b0322a85 12260 ac_cv_lib_dl_dlopen=no
d9898ee8 12261fi
b0322a85
CE
12262rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12264LIBS=$ac_check_lib_save_LIBS
12265fi
b0322a85 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 12267$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 12268if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 12269 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 12270else
d9898ee8 12271
d50284c4 12272 lt_cv_dlopen=dyld
8d138742
CE
12273 lt_cv_dlopen_libs=
12274 lt_cv_dlopen_self=yes
d9898ee8 12275
8d138742 12276fi
d9898ee8 12277
8d138742 12278 ;;
d9898ee8 12279
d50284c4
CE
12280 tpf*)
12281 # Don't try to run any link tests for TPF. We know it's impossible
12282 # because TPF is a cross-compiler, and we know how we open DSOs.
12283 lt_cv_dlopen=dlopen
12284 lt_cv_dlopen_libs=
12285 lt_cv_dlopen_self=no
12286 ;;
12287
8d138742 12288 *)
b0322a85
CE
12289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12290if test "x$ac_cv_func_shl_load" = xyes; then :
d50284c4 12291 lt_cv_dlopen=shl_load
8d138742 12292else
b0322a85 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 12294$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 12295if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
12296 $as_echo_n "(cached) " >&6
12297else
12298 ac_check_lib_save_LIBS=$LIBS
12299LIBS="-ldld $LIBS"
b0322a85 12300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12301/* end confdefs.h. */
d9898ee8 12302
8d138742
CE
12303/* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12306#ifdef __cplusplus
12307extern "C"
12308#endif
12309char shl_load ();
12310int
12311main ()
12312{
12313return shl_load ();
12314 ;
12315 return 0;
12316}
12317_ACEOF
b0322a85 12318if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12319 ac_cv_lib_dld_shl_load=yes
12320else
b0322a85 12321 ac_cv_lib_dld_shl_load=no
8d138742 12322fi
b0322a85
CE
12323rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12325LIBS=$ac_check_lib_save_LIBS
12326fi
b0322a85 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 12328$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 12329if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d50284c4 12330 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
8d138742 12331else
b0322a85
CE
12332 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12333if test "x$ac_cv_func_dlopen" = xyes; then :
d50284c4 12334 lt_cv_dlopen=dlopen
8d138742 12335else
b0322a85 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 12337$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 12338if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
12339 $as_echo_n "(cached) " >&6
12340else
12341 ac_check_lib_save_LIBS=$LIBS
12342LIBS="-ldl $LIBS"
b0322a85 12343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12344/* end confdefs.h. */
d9898ee8 12345
8d138742
CE
12346/* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12349#ifdef __cplusplus
12350extern "C"
12351#endif
12352char dlopen ();
12353int
12354main ()
12355{
12356return dlopen ();
12357 ;
12358 return 0;
12359}
12360_ACEOF
b0322a85 12361if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12362 ac_cv_lib_dl_dlopen=yes
12363else
b0322a85 12364 ac_cv_lib_dl_dlopen=no
8d138742 12365fi
b0322a85
CE
12366rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12368LIBS=$ac_check_lib_save_LIBS
12369fi
b0322a85 12370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 12371$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 12372if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 12373 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 12374else
b0322a85 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 12376$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 12377if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
12378 $as_echo_n "(cached) " >&6
12379else
12380 ac_check_lib_save_LIBS=$LIBS
12381LIBS="-lsvld $LIBS"
b0322a85 12382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12383/* end confdefs.h. */
d9898ee8 12384
8d138742
CE
12385/* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388#ifdef __cplusplus
12389extern "C"
12390#endif
12391char dlopen ();
12392int
12393main ()
12394{
12395return dlopen ();
12396 ;
12397 return 0;
12398}
12399_ACEOF
b0322a85 12400if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12401 ac_cv_lib_svld_dlopen=yes
12402else
b0322a85 12403 ac_cv_lib_svld_dlopen=no
8d138742 12404fi
b0322a85
CE
12405rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12407LIBS=$ac_check_lib_save_LIBS
12408fi
b0322a85 12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 12410$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 12411if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d50284c4 12412 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
8d138742 12413else
b0322a85 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 12415$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 12416if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
12417 $as_echo_n "(cached) " >&6
12418else
12419 ac_check_lib_save_LIBS=$LIBS
12420LIBS="-ldld $LIBS"
b0322a85 12421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12422/* end confdefs.h. */
d9898ee8 12423
8d138742
CE
12424/* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12427#ifdef __cplusplus
12428extern "C"
12429#endif
12430char dld_link ();
12431int
12432main ()
12433{
12434return dld_link ();
12435 ;
12436 return 0;
12437}
12438_ACEOF
b0322a85 12439if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
12440 ac_cv_lib_dld_dld_link=yes
12441else
b0322a85 12442 ac_cv_lib_dld_dld_link=no
8d138742 12443fi
b0322a85
CE
12444rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12446LIBS=$ac_check_lib_save_LIBS
12447fi
b0322a85 12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 12449$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 12450if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d50284c4 12451 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
8d138742 12452fi
d9898ee8 12453
d9898ee8 12454
8d138742 12455fi
d9898ee8 12456
d9898ee8 12457
8d138742 12458fi
d9898ee8 12459
d9898ee8 12460
8d138742 12461fi
d9898ee8 12462
d9898ee8 12463
8d138742 12464fi
d9898ee8 12465
d9898ee8 12466
8d138742 12467fi
ac40fd9e 12468
8d138742
CE
12469 ;;
12470 esac
d9898ee8 12471
d50284c4 12472 if test no = "$lt_cv_dlopen"; then
8d138742 12473 enable_dlopen=no
d50284c4
CE
12474 else
12475 enable_dlopen=yes
8d138742 12476 fi
d9898ee8 12477
8d138742
CE
12478 case $lt_cv_dlopen in
12479 dlopen)
d50284c4
CE
12480 save_CPPFLAGS=$CPPFLAGS
12481 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 12482
d50284c4 12483 save_LDFLAGS=$LDFLAGS
8d138742 12484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 12485
d50284c4 12486 save_LIBS=$LIBS
8d138742 12487 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 12488
b0322a85 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 12490$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 12491if ${lt_cv_dlopen_self+:} false; then :
8d138742
CE
12492 $as_echo_n "(cached) " >&6
12493else
d50284c4 12494 if test yes = "$cross_compiling"; then :
8d138742
CE
12495 lt_cv_dlopen_self=cross
12496else
12497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12498 lt_status=$lt_dlunknown
12499 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 12500#line $LINENO "configure"
8d138742 12501#include "confdefs.h"
d9898ee8 12502
8d138742
CE
12503#if HAVE_DLFCN_H
12504#include <dlfcn.h>
12505#endif
d9898ee8 12506
8d138742 12507#include <stdio.h>
d9898ee8 12508
8d138742
CE
12509#ifdef RTLD_GLOBAL
12510# define LT_DLGLOBAL RTLD_GLOBAL
12511#else
12512# ifdef DL_GLOBAL
12513# define LT_DLGLOBAL DL_GLOBAL
12514# else
12515# define LT_DLGLOBAL 0
12516# endif
12517#endif
d9898ee8 12518
8d138742
CE
12519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12520 find out it does not work in some platform. */
12521#ifndef LT_DLLAZY_OR_NOW
12522# ifdef RTLD_LAZY
12523# define LT_DLLAZY_OR_NOW RTLD_LAZY
12524# else
12525# ifdef DL_LAZY
12526# define LT_DLLAZY_OR_NOW DL_LAZY
12527# else
12528# ifdef RTLD_NOW
12529# define LT_DLLAZY_OR_NOW RTLD_NOW
12530# else
12531# ifdef DL_NOW
12532# define LT_DLLAZY_OR_NOW DL_NOW
12533# else
12534# define LT_DLLAZY_OR_NOW 0
12535# endif
12536# endif
12537# endif
12538# endif
12539#endif
d9898ee8 12540
d50284c4 12541/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 12542 correspondingly for the symbols needed. */
d50284c4 12543#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
12544int fnord () __attribute__((visibility("default")));
12545#endif
12546
12547int fnord () { return 42; }
8d138742
CE
12548int main ()
12549{
12550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12551 int status = $lt_dlunknown;
d9898ee8 12552
8d138742
CE
12553 if (self)
12554 {
12555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
12556 else
12557 {
12558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559 else puts (dlerror ());
12560 }
12561 /* dlclose (self); */
8d138742
CE
12562 }
12563 else
12564 puts (dlerror ());
d9898ee8 12565
8d138742
CE
12566 return status;
12567}
12568_LT_EOF
b0322a85 12569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
12570 (eval $ac_link) 2>&5
12571 ac_status=$?
b0322a85 12572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 12573 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
12574 (./conftest; exit; ) >&5 2>/dev/null
12575 lt_status=$?
12576 case x$lt_status in
12577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12580 esac
12581 else :
12582 # compilation failed
12583 lt_cv_dlopen_self=no
12584 fi
d9898ee8 12585fi
8d138742
CE
12586rm -fr conftest*
12587
d9898ee8 12588
12589fi
b0322a85 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 12591$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 12592
d50284c4 12593 if test yes = "$lt_cv_dlopen_self"; then
8d138742 12594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 12596$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 12597if ${lt_cv_dlopen_self_static+:} false; then :
8d138742 12598 $as_echo_n "(cached) " >&6
d9898ee8 12599else
d50284c4 12600 if test yes = "$cross_compiling"; then :
8d138742
CE
12601 lt_cv_dlopen_self_static=cross
12602else
12603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12604 lt_status=$lt_dlunknown
12605 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 12606#line $LINENO "configure"
8d138742 12607#include "confdefs.h"
d9898ee8 12608
8d138742
CE
12609#if HAVE_DLFCN_H
12610#include <dlfcn.h>
12611#endif
d9898ee8 12612
8d138742 12613#include <stdio.h>
d9898ee8 12614
8d138742
CE
12615#ifdef RTLD_GLOBAL
12616# define LT_DLGLOBAL RTLD_GLOBAL
12617#else
12618# ifdef DL_GLOBAL
12619# define LT_DLGLOBAL DL_GLOBAL
12620# else
12621# define LT_DLGLOBAL 0
12622# endif
12623#endif
d9898ee8 12624
8d138742
CE
12625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12626 find out it does not work in some platform. */
12627#ifndef LT_DLLAZY_OR_NOW
12628# ifdef RTLD_LAZY
12629# define LT_DLLAZY_OR_NOW RTLD_LAZY
12630# else
12631# ifdef DL_LAZY
12632# define LT_DLLAZY_OR_NOW DL_LAZY
12633# else
12634# ifdef RTLD_NOW
12635# define LT_DLLAZY_OR_NOW RTLD_NOW
12636# else
12637# ifdef DL_NOW
12638# define LT_DLLAZY_OR_NOW DL_NOW
12639# else
12640# define LT_DLLAZY_OR_NOW 0
12641# endif
12642# endif
12643# endif
12644# endif
12645#endif
d9898ee8 12646
d50284c4 12647/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 12648 correspondingly for the symbols needed. */
d50284c4 12649#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
12650int fnord () __attribute__((visibility("default")));
12651#endif
12652
12653int fnord () { return 42; }
8d138742
CE
12654int main ()
12655{
12656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12657 int status = $lt_dlunknown;
12658
12659 if (self)
12660 {
12661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
12662 else
12663 {
12664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12665 else puts (dlerror ());
12666 }
8d138742
CE
12667 /* dlclose (self); */
12668 }
12669 else
12670 puts (dlerror ());
d9898ee8 12671
8d138742
CE
12672 return status;
12673}
12674_LT_EOF
b0322a85 12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
12676 (eval $ac_link) 2>&5
12677 ac_status=$?
b0322a85 12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 12679 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
12680 (./conftest; exit; ) >&5 2>/dev/null
12681 lt_status=$?
12682 case x$lt_status in
12683 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12684 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12685 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12686 esac
12687 else :
12688 # compilation failed
12689 lt_cv_dlopen_self_static=no
12690 fi
d9898ee8 12691fi
0e333c05
CE
12692rm -fr conftest*
12693
12694
12695fi
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12697$as_echo "$lt_cv_dlopen_self_static" >&6; }
12698 fi
12699
12700 CPPFLAGS=$save_CPPFLAGS
12701 LDFLAGS=$save_LDFLAGS
12702 LIBS=$save_LIBS
12703 ;;
12704 esac
12705
12706 case $lt_cv_dlopen_self in
12707 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12708 *) enable_dlopen_self=unknown ;;
12709 esac
12710
12711 case $lt_cv_dlopen_self_static in
12712 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12713 *) enable_dlopen_self_static=unknown ;;
12714 esac
12715fi
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733striplib=
12734old_striplib=
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12736$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12737if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12741$as_echo "yes" >&6; }
12742else
12743# FIXME - insert some real tests, host_os isn't really good enough
12744 case $host_os in
12745 darwin*)
12746 if test -n "$STRIP"; then
12747 striplib="$STRIP -x"
12748 old_striplib="$STRIP -S"
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12750$as_echo "yes" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753$as_echo "no" >&6; }
12754 fi
12755 ;;
12756 *)
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
12759 ;;
12760 esac
12761fi
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774 # Report what library types will actually be built
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12776$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12778$as_echo "$can_build_shared" >&6; }
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12781$as_echo_n "checking whether to build shared libraries... " >&6; }
12782 test no = "$can_build_shared" && enable_shared=no
12783
12784 # On AIX, shared libraries and static libraries use the same namespace, and
12785 # are all built from PIC.
12786 case $host_os in
12787 aix3*)
12788 test yes = "$enable_shared" && enable_static=no
12789 if test -n "$RANLIB"; then
12790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12791 postinstall_cmds='$RANLIB $lib'
12792 fi
12793 ;;
12794
12795 aix[4-9]*)
12796 if test ia64 != "$host_cpu"; then
12797 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12798 yes,aix,yes) ;; # shared object as lib.so file only
12799 yes,svr4,*) ;; # shared object as lib.so archive member only
12800 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12801 esac
12802 fi
12803 ;;
12804 esac
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12806$as_echo "$enable_shared" >&6; }
12807
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12809$as_echo_n "checking whether to build static libraries... " >&6; }
12810 # Make sure either enable_shared or enable_static is yes.
12811 test yes = "$enable_shared" || enable_static=yes
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12813$as_echo "$enable_static" >&6; }
12814
12815
12816
12817
12818fi
12819ac_ext=c
12820ac_cpp='$CPP $CPPFLAGS'
12821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824
12825CC=$lt_save_CC
12826
12827 if test -n "$CXX" && ( test no != "$CXX" &&
12828 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12829 (test g++ != "$CXX"))); then
12830 ac_ext=cpp
12831ac_cpp='$CXXCPP $CPPFLAGS'
12832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12836$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12837if test -z "$CXXCPP"; then
12838 if ${ac_cv_prog_CXXCPP+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840else
12841 # Double quotes because CXXCPP needs to be expanded
12842 for CXXCPP in "$CXX -E" "/lib/cpp"
12843 do
12844 ac_preproc_ok=false
12845for ac_cxx_preproc_warn_flag in '' yes
12846do
12847 # Use a header file that comes with gcc, so configuring glibc
12848 # with a fresh cross-compiler works.
12849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12850 # <limits.h> exists even on freestanding compilers.
12851 # On the NeXT, cc -E runs the code through the compiler's parser,
12852 # not just through cpp. "Syntax error" is here to catch this case.
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854/* end confdefs.h. */
12855#ifdef __STDC__
12856# include <limits.h>
12857#else
12858# include <assert.h>
12859#endif
12860 Syntax error
12861_ACEOF
12862if ac_fn_cxx_try_cpp "$LINENO"; then :
12863
12864else
12865 # Broken: fails on valid input.
12866continue
12867fi
12868rm -f conftest.err conftest.i conftest.$ac_ext
12869
12870 # OK, works on sane cases. Now check whether nonexistent headers
12871 # can be detected and how.
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873/* end confdefs.h. */
12874#include <ac_nonexistent.h>
12875_ACEOF
12876if ac_fn_cxx_try_cpp "$LINENO"; then :
12877 # Broken: success on invalid input.
12878continue
12879else
12880 # Passes both tests.
12881ac_preproc_ok=:
12882break
12883fi
12884rm -f conftest.err conftest.i conftest.$ac_ext
12885
12886done
12887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12888rm -f conftest.i conftest.err conftest.$ac_ext
12889if $ac_preproc_ok; then :
12890 break
12891fi
12892
12893 done
12894 ac_cv_prog_CXXCPP=$CXXCPP
12895
12896fi
12897 CXXCPP=$ac_cv_prog_CXXCPP
12898else
12899 ac_cv_prog_CXXCPP=$CXXCPP
12900fi
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12902$as_echo "$CXXCPP" >&6; }
12903ac_preproc_ok=false
12904for ac_cxx_preproc_warn_flag in '' yes
12905do
12906 # Use a header file that comes with gcc, so configuring glibc
12907 # with a fresh cross-compiler works.
12908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12909 # <limits.h> exists even on freestanding compilers.
12910 # On the NeXT, cc -E runs the code through the compiler's parser,
12911 # not just through cpp. "Syntax error" is here to catch this case.
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913/* end confdefs.h. */
12914#ifdef __STDC__
12915# include <limits.h>
12916#else
12917# include <assert.h>
12918#endif
12919 Syntax error
12920_ACEOF
12921if ac_fn_cxx_try_cpp "$LINENO"; then :
12922
12923else
12924 # Broken: fails on valid input.
12925continue
12926fi
12927rm -f conftest.err conftest.i conftest.$ac_ext
12928
12929 # OK, works on sane cases. Now check whether nonexistent headers
12930 # can be detected and how.
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h. */
12933#include <ac_nonexistent.h>
12934_ACEOF
12935if ac_fn_cxx_try_cpp "$LINENO"; then :
12936 # Broken: success on invalid input.
12937continue
12938else
12939 # Passes both tests.
12940ac_preproc_ok=:
12941break
12942fi
12943rm -f conftest.err conftest.i conftest.$ac_ext
12944
12945done
12946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12947rm -f conftest.i conftest.err conftest.$ac_ext
12948if $ac_preproc_ok; then :
12949
12950else
12951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12953as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12954See \`config.log' for more details" "$LINENO" 5; }
12955fi
12956
12957ac_ext=c
12958ac_cpp='$CPP $CPPFLAGS'
12959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962
12963else
12964 _lt_caught_CXX_error=yes
12965fi
12966
12967ac_ext=cpp
12968ac_cpp='$CXXCPP $CPPFLAGS'
12969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12972
12973archive_cmds_need_lc_CXX=no
12974allow_undefined_flag_CXX=
12975always_export_symbols_CXX=no
12976archive_expsym_cmds_CXX=
12977compiler_needs_object_CXX=no
12978export_dynamic_flag_spec_CXX=
12979hardcode_direct_CXX=no
12980hardcode_direct_absolute_CXX=no
12981hardcode_libdir_flag_spec_CXX=
12982hardcode_libdir_separator_CXX=
12983hardcode_minus_L_CXX=no
12984hardcode_shlibpath_var_CXX=unsupported
12985hardcode_automatic_CXX=no
12986inherit_rpath_CXX=no
12987module_cmds_CXX=
12988module_expsym_cmds_CXX=
12989link_all_deplibs_CXX=unknown
12990old_archive_cmds_CXX=$old_archive_cmds
12991reload_flag_CXX=$reload_flag
12992reload_cmds_CXX=$reload_cmds
12993no_undefined_flag_CXX=
12994whole_archive_flag_spec_CXX=
12995enable_shared_with_static_runtimes_CXX=no
12996
12997# Source file extension for C++ test sources.
12998ac_ext=cpp
12999
13000# Object file extension for compiled C++ test sources.
13001objext=o
13002objext_CXX=$objext
13003
13004# No sense in running all these tests if we already determined that
13005# the CXX compiler isn't working. Some variables (like enable_shared)
13006# are currently assumed to apply to all compilers on this platform,
13007# and will be corrupted by setting them based on a non-working compiler.
13008if test yes != "$_lt_caught_CXX_error"; then
13009 # Code to be used in simple compile tests
13010 lt_simple_compile_test_code="int some_variable = 0;"
13011
13012 # Code to be used in simple link tests
13013 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13014
13015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13016
13017
13018
13019
13020
13021
13022# If no C compiler was specified, use CC.
13023LTCC=${LTCC-"$CC"}
13024
13025# If no C compiler flags were specified, use CFLAGS.
13026LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13027
13028# Allow CC to be a program name with arguments.
13029compiler=$CC
13030
13031
13032 # save warnings/boilerplate of simple test code
13033 ac_outfile=conftest.$ac_objext
13034echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13035eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13036_lt_compiler_boilerplate=`cat conftest.err`
13037$RM conftest*
13038
13039 ac_outfile=conftest.$ac_objext
13040echo "$lt_simple_link_test_code" >conftest.$ac_ext
13041eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13042_lt_linker_boilerplate=`cat conftest.err`
13043$RM -r conftest*
13044
13045
13046 # Allow CC to be a program name with arguments.
13047 lt_save_CC=$CC
13048 lt_save_CFLAGS=$CFLAGS
13049 lt_save_LD=$LD
13050 lt_save_GCC=$GCC
13051 GCC=$GXX
13052 lt_save_with_gnu_ld=$with_gnu_ld
13053 lt_save_path_LD=$lt_cv_path_LD
13054 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13055 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13056 else
13057 $as_unset lt_cv_prog_gnu_ld
13058 fi
13059 if test -n "${lt_cv_path_LDCXX+set}"; then
13060 lt_cv_path_LD=$lt_cv_path_LDCXX
13061 else
13062 $as_unset lt_cv_path_LD
13063 fi
13064 test -z "${LDCXX+set}" || LD=$LDCXX
13065 CC=${CXX-"c++"}
13066 CFLAGS=$CXXFLAGS
13067 compiler=$CC
13068 compiler_CXX=$CC
13069 func_cc_basename $compiler
13070cc_basename=$func_cc_basename_result
13071
13072
13073 if test -n "$compiler"; then
13074 # We don't want -fno-exception when compiling C++ code, so set the
13075 # no_builtin_flag separately
13076 if test yes = "$GXX"; then
13077 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13078 else
13079 lt_prog_compiler_no_builtin_flag_CXX=
13080 fi
13081
13082 if test yes = "$GXX"; then
13083 # Set up default GNU C++ configuration
13084
13085
13086
13087# Check whether --with-gnu-ld was given.
13088if test "${with_gnu_ld+set}" = set; then :
13089 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13090else
13091 with_gnu_ld=no
13092fi
13093
13094ac_prog=ld
13095if test yes = "$GCC"; then
13096 # Check if gcc -print-prog-name=ld gives a path.
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13098$as_echo_n "checking for ld used by $CC... " >&6; }
13099 case $host in
13100 *-*-mingw*)
13101 # gcc leaves a trailing carriage return, which upsets mingw
13102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13103 *)
13104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13105 esac
13106 case $ac_prog in
13107 # Accept absolute paths.
13108 [\\/]* | ?:[\\/]*)
13109 re_direlt='/[^/][^/]*/\.\./'
13110 # Canonicalize the pathname of ld
13111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13114 done
13115 test -z "$LD" && LD=$ac_prog
13116 ;;
13117 "")
13118 # If it fails, then pretend we aren't using GCC.
13119 ac_prog=ld
13120 ;;
13121 *)
13122 # If it is relative, then search for the first ld in PATH.
13123 with_gnu_ld=unknown
13124 ;;
13125 esac
13126elif test yes = "$with_gnu_ld"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13128$as_echo_n "checking for GNU ld... " >&6; }
13129else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13131$as_echo_n "checking for non-GNU ld... " >&6; }
13132fi
13133if ${lt_cv_path_LD+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135else
13136 if test -z "$LD"; then
13137 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13138 for ac_dir in $PATH; do
13139 IFS=$lt_save_ifs
13140 test -z "$ac_dir" && ac_dir=.
13141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13142 lt_cv_path_LD=$ac_dir/$ac_prog
13143 # Check to see if the program is GNU ld. I'd rather use --version,
13144 # but apparently some variants of GNU ld only accept -v.
13145 # Break only if it was the GNU/non-GNU ld that we prefer.
13146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13147 *GNU* | *'with BFD'*)
13148 test no != "$with_gnu_ld" && break
13149 ;;
13150 *)
13151 test yes != "$with_gnu_ld" && break
13152 ;;
13153 esac
13154 fi
13155 done
13156 IFS=$lt_save_ifs
13157else
13158 lt_cv_path_LD=$LD # Let the user override the test with a path.
13159fi
13160fi
13161
13162LD=$lt_cv_path_LD
13163if test -n "$LD"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13165$as_echo "$LD" >&6; }
13166else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
13169fi
13170test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13172$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13173if ${lt_cv_prog_gnu_ld+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175else
13176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13177case `$LD -v 2>&1 </dev/null` in
13178*GNU* | *'with BFD'*)
13179 lt_cv_prog_gnu_ld=yes
13180 ;;
13181*)
13182 lt_cv_prog_gnu_ld=no
13183 ;;
13184esac
13185fi
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13187$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13188with_gnu_ld=$lt_cv_prog_gnu_ld
13189
13190
13191
13192
13193
13194
13195
13196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13197 # archiving commands below assume that GNU ld is being used.
13198 if test yes = "$with_gnu_ld"; then
13199 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13200 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13201
13202 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13203 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13204
13205 # If archive_cmds runs LD, not CC, wlarc should be empty
13206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13207 # investigate it a little bit more. (MM)
13208 wlarc='$wl'
13209
13210 # ancient GNU ld didn't support --whole-archive et. al.
13211 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13212 $GREP 'no-whole-archive' > /dev/null; then
13213 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13214 else
13215 whole_archive_flag_spec_CXX=
13216 fi
13217 else
13218 with_gnu_ld=no
13219 wlarc=
13220
13221 # A generic and very simple default shared library creation
13222 # command for GNU C++ for the case where it uses the native
13223 # linker, instead of GNU ld. If possible, this setting should
13224 # overridden to take advantage of the native linker features on
13225 # the platform it is being used on.
13226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13227 fi
13228
13229 # Commands to make compiler produce verbose output that lists
13230 # what "hidden" libraries, object files and flags are used when
13231 # linking a shared library.
13232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13233
13234 else
13235 GXX=no
13236 with_gnu_ld=no
13237 wlarc=
13238 fi
13239
13240 # PORTME: fill in a description of your system's C++ link characteristics
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13242$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13243 ld_shlibs_CXX=yes
13244 case $host_os in
13245 aix3*)
13246 # FIXME: insert proper C++ library support
13247 ld_shlibs_CXX=no
13248 ;;
13249 aix[4-9]*)
13250 if test ia64 = "$host_cpu"; then
13251 # On IA64, the linker does run time linking by default, so we don't
13252 # have to do anything special.
13253 aix_use_runtimelinking=no
13254 exp_sym_flag='-Bexport'
13255 no_entry_flag=
13256 else
13257 aix_use_runtimelinking=no
13258
13259 # Test if we are trying to use run time linking or normal
13260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13261 # have runtime linking enabled, and use it for executables.
13262 # For shared libraries, we enable/disable runtime linking
13263 # depending on the kind of the shared library created -
13264 # when "with_aix_soname,aix_use_runtimelinking" is:
13265 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13266 # "aix,yes" lib.so shared, rtl:yes, for executables
13267 # lib.a static archive
13268 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13269 # lib.a(lib.so.V) shared, rtl:no, for executables
13270 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13271 # lib.a(lib.so.V) shared, rtl:no
13272 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13273 # lib.a static archive
13274 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13275 for ld_flag in $LDFLAGS; do
13276 case $ld_flag in
13277 *-brtl*)
13278 aix_use_runtimelinking=yes
13279 break
13280 ;;
13281 esac
13282 done
13283 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13284 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13285 # so we don't have lib.a shared libs to link our executables.
13286 # We have to force runtime linking in this case.
13287 aix_use_runtimelinking=yes
13288 LDFLAGS="$LDFLAGS -Wl,-brtl"
13289 fi
13290 ;;
13291 esac
13292
13293 exp_sym_flag='-bexport'
13294 no_entry_flag='-bnoentry'
13295 fi
13296
13297 # When large executables or shared objects are built, AIX ld can
13298 # have problems creating the table of contents. If linking a library
13299 # or program results in "error TOC overflow" add -mminimal-toc to
13300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13302
13303 archive_cmds_CXX=''
13304 hardcode_direct_CXX=yes
13305 hardcode_direct_absolute_CXX=yes
13306 hardcode_libdir_separator_CXX=':'
13307 link_all_deplibs_CXX=yes
13308 file_list_spec_CXX='$wl-f,'
13309 case $with_aix_soname,$aix_use_runtimelinking in
13310 aix,*) ;; # no import file
13311 svr4,* | *,yes) # use import file
13312 # The Import File defines what to hardcode.
13313 hardcode_direct_CXX=no
13314 hardcode_direct_absolute_CXX=no
13315 ;;
13316 esac
13317
13318 if test yes = "$GXX"; then
13319 case $host_os in aix4.[012]|aix4.[012].*)
13320 # We only want to do this on AIX 4.2 and lower, the check
13321 # below for broken collect2 doesn't work under 4.3+
13322 collect2name=`$CC -print-prog-name=collect2`
13323 if test -f "$collect2name" &&
13324 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13325 then
13326 # We have reworked collect2
13327 :
13328 else
13329 # We have old collect2
13330 hardcode_direct_CXX=unsupported
13331 # It fails to find uninstalled libraries when the uninstalled
13332 # path is not listed in the libpath. Setting hardcode_minus_L
13333 # to unsupported forces relinking
13334 hardcode_minus_L_CXX=yes
13335 hardcode_libdir_flag_spec_CXX='-L$libdir'
13336 hardcode_libdir_separator_CXX=
13337 fi
13338 esac
13339 shared_flag='-shared'
13340 if test yes = "$aix_use_runtimelinking"; then
13341 shared_flag=$shared_flag' $wl-G'
13342 fi
13343 # Need to ensure runtime linking is disabled for the traditional
13344 # shared library, or the linker may eventually find shared libraries
13345 # /with/ Import File - we do not want to mix them.
13346 shared_flag_aix='-shared'
13347 shared_flag_svr4='-shared $wl-G'
13348 else
13349 # not using gcc
13350 if test ia64 = "$host_cpu"; then
13351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13352 # chokes on -Wl,-G. The following line is correct:
13353 shared_flag='-G'
13354 else
13355 if test yes = "$aix_use_runtimelinking"; then
13356 shared_flag='$wl-G'
13357 else
13358 shared_flag='$wl-bM:SRE'
13359 fi
13360 shared_flag_aix='$wl-bM:SRE'
13361 shared_flag_svr4='$wl-G'
13362 fi
13363 fi
13364
13365 export_dynamic_flag_spec_CXX='$wl-bexpall'
13366 # It seems that -bexpall does not export symbols beginning with
13367 # underscore (_), so it is better to generate a list of symbols to
13368 # export.
13369 always_export_symbols_CXX=yes
13370 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13371 # Warning - without using the other runtime loading flags (-brtl),
13372 # -berok will link without error, but may produce a broken library.
13373 # The "-G" linker flag allows undefined symbols.
13374 no_undefined_flag_CXX='-bernotok'
13375 # Determine the default libpath from the value encoded in an empty
13376 # executable.
13377 if test set = "${lt_cv_aix_libpath+set}"; then
13378 aix_libpath=$lt_cv_aix_libpath
13379else
13380 if ${lt_cv_aix_libpath__CXX+:} false; then :
13381 $as_echo_n "(cached) " >&6
13382else
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384/* end confdefs.h. */
13385
13386int
13387main ()
13388{
13389
13390 ;
13391 return 0;
13392}
13393_ACEOF
13394if ac_fn_cxx_try_link "$LINENO"; then :
13395
13396 lt_aix_libpath_sed='
13397 /Import File Strings/,/^$/ {
13398 /^0/ {
13399 s/^0 *\([^ ]*\) *$/\1/
13400 p
13401 }
13402 }'
13403 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13404 # Check for a 64-bit object if we didn't find anything.
13405 if test -z "$lt_cv_aix_libpath__CXX"; then
13406 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13407 fi
13408fi
13409rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411 if test -z "$lt_cv_aix_libpath__CXX"; then
13412 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13413 fi
13414
13415fi
13416
13417 aix_libpath=$lt_cv_aix_libpath__CXX
13418fi
13419
13420 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13421
13422 archive_expsym_cmds_CXX='$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
13423 else
13424 if test ia64 = "$host_cpu"; then
13425 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13426 allow_undefined_flag_CXX="-z nodefs"
13427 archive_expsym_cmds_CXX="\$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"
13428 else
13429 # Determine the default libpath from the value encoded in an
13430 # empty executable.
13431 if test set = "${lt_cv_aix_libpath+set}"; then
13432 aix_libpath=$lt_cv_aix_libpath
13433else
13434 if ${lt_cv_aix_libpath__CXX+:} false; then :
13435 $as_echo_n "(cached) " >&6
13436else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438/* end confdefs.h. */
13439
13440int
13441main ()
13442{
13443
13444 ;
13445 return 0;
13446}
13447_ACEOF
13448if ac_fn_cxx_try_link "$LINENO"; then :
13449
13450 lt_aix_libpath_sed='
13451 /Import File Strings/,/^$/ {
13452 /^0/ {
13453 s/^0 *\([^ ]*\) *$/\1/
13454 p
13455 }
13456 }'
13457 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13458 # Check for a 64-bit object if we didn't find anything.
13459 if test -z "$lt_cv_aix_libpath__CXX"; then
13460 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13461 fi
13462fi
13463rm -f core conftest.err conftest.$ac_objext \
13464 conftest$ac_exeext conftest.$ac_ext
13465 if test -z "$lt_cv_aix_libpath__CXX"; then
13466 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13467 fi
13468
13469fi
13470
13471 aix_libpath=$lt_cv_aix_libpath__CXX
13472fi
13473
13474 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13475 # Warning - without using the other run time loading flags,
13476 # -berok will link without error, but may produce a broken library.
13477 no_undefined_flag_CXX=' $wl-bernotok'
13478 allow_undefined_flag_CXX=' $wl-berok'
13479 if test yes = "$with_gnu_ld"; then
13480 # We only use this code for GNU lds that support --whole-archive.
13481 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13482 else
13483 # Exported symbols can be pulled into shared objects from archives
13484 whole_archive_flag_spec_CXX='$convenience'
13485 fi
13486 archive_cmds_need_lc_CXX=yes
13487 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13488 # -brtl affects multiple linker settings, -berok does not and is overridden later
13489 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13490 if test svr4 != "$with_aix_soname"; then
13491 # This is similar to how AIX traditionally builds its shared
13492 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13493 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
13494 fi
13495 if test aix != "$with_aix_soname"; then
13496 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
13497 else
13498 # used by -dlpreopen to get the symbols
13499 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13500 fi
13501 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13502 fi
13503 fi
13504 ;;
13505
13506 beos*)
13507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13508 allow_undefined_flag_CXX=unsupported
13509 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13510 # support --undefined. This deserves some investigation. FIXME
13511 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13512 else
13513 ld_shlibs_CXX=no
13514 fi
13515 ;;
13516
13517 chorus*)
13518 case $cc_basename in
13519 *)
13520 # FIXME: insert proper C++ library support
13521 ld_shlibs_CXX=no
13522 ;;
13523 esac
13524 ;;
13525
13526 cygwin* | mingw* | pw32* | cegcc*)
13527 case $GXX,$cc_basename in
13528 ,cl* | no,cl*)
13529 # Native MSVC
13530 # hardcode_libdir_flag_spec is actually meaningless, as there is
13531 # no search path for DLLs.
13532 hardcode_libdir_flag_spec_CXX=' '
13533 allow_undefined_flag_CXX=unsupported
13534 always_export_symbols_CXX=yes
13535 file_list_spec_CXX='@'
13536 # Tell ltmain to make .lib files, not .a files.
13537 libext=lib
13538 # Tell ltmain to make .dll files, not .so files.
13539 shrext_cmds=.dll
13540 # FIXME: Setting linknames here is a bad hack.
13541 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13542 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13543 cp "$export_symbols" "$output_objdir/$soname.def";
13544 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13545 else
13546 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13547 fi~
13548 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13549 linknames='
13550 # The linker will not automatically build a static lib if we build a DLL.
13551 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13552 enable_shared_with_static_runtimes_CXX=yes
13553 # Don't use ranlib
13554 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13555 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13556 lt_tool_outputfile="@TOOL_OUTPUT@"~
13557 case $lt_outputfile in
13558 *.exe|*.EXE) ;;
13559 *)
13560 lt_outputfile=$lt_outputfile.exe
13561 lt_tool_outputfile=$lt_tool_outputfile.exe
13562 ;;
13563 esac~
13564 func_to_tool_file "$lt_outputfile"~
13565 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13566 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13567 $RM "$lt_outputfile.manifest";
13568 fi'
13569 ;;
13570 *)
13571 # g++
13572 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13573 # as there is no search path for DLLs.
13574 hardcode_libdir_flag_spec_CXX='-L$libdir'
13575 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13576 allow_undefined_flag_CXX=unsupported
13577 always_export_symbols_CXX=no
13578 enable_shared_with_static_runtimes_CXX=yes
13579
13580 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13581 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13582 # If the export-symbols file already is a .def file, use it as
13583 # is; otherwise, prepend EXPORTS...
13584 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13585 cp $export_symbols $output_objdir/$soname.def;
13586 else
13587 echo EXPORTS > $output_objdir/$soname.def;
13588 cat $export_symbols >> $output_objdir/$soname.def;
13589 fi~
13590 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13591 else
13592 ld_shlibs_CXX=no
13593 fi
13594 ;;
13595 esac
13596 ;;
13597 darwin* | rhapsody*)
13598
13599
13600 archive_cmds_need_lc_CXX=no
13601 hardcode_direct_CXX=no
13602 hardcode_automatic_CXX=yes
13603 hardcode_shlibpath_var_CXX=unsupported
13604 if test yes = "$lt_cv_ld_force_load"; then
13605 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13606
13607 else
13608 whole_archive_flag_spec_CXX=''
13609 fi
13610 link_all_deplibs_CXX=yes
13611 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13612 case $cc_basename in
13613 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13614 *) _lt_dar_can_shared=$GCC ;;
13615 esac
13616 if test yes = "$_lt_dar_can_shared"; then
13617 output_verbose_link_cmd=func_echo_all
13618 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13619 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13620 archive_expsym_cmds_CXX="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"
13621 module_expsym_cmds_CXX="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"
13622 if test yes != "$lt_cv_apple_cc_single_mod"; then
13623 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13624 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13625 fi
13626
13627 else
13628 ld_shlibs_CXX=no
13629 fi
13630
13631 ;;
13632
13633 os2*)
13634 hardcode_libdir_flag_spec_CXX='-L$libdir'
13635 hardcode_minus_L_CXX=yes
13636 allow_undefined_flag_CXX=unsupported
13637 shrext_cmds=.dll
13638 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13639 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13640 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13641 $ECHO EXPORTS >> $output_objdir/$libname.def~
13642 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13643 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13644 emximp -o $lib $output_objdir/$libname.def'
13645 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13646 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13647 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13648 $ECHO EXPORTS >> $output_objdir/$libname.def~
13649 prefix_cmds="$SED"~
13650 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13651 prefix_cmds="$prefix_cmds -e 1d";
13652 fi~
13653 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13654 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13655 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13656 emximp -o $lib $output_objdir/$libname.def'
13657 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13658 enable_shared_with_static_runtimes_CXX=yes
13659 ;;
13660
13661 dgux*)
13662 case $cc_basename in
13663 ec++*)
13664 # FIXME: insert proper C++ library support
13665 ld_shlibs_CXX=no
13666 ;;
13667 ghcx*)
13668 # Green Hills C++ Compiler
13669 # FIXME: insert proper C++ library support
13670 ld_shlibs_CXX=no
13671 ;;
13672 *)
13673 # FIXME: insert proper C++ library support
13674 ld_shlibs_CXX=no
13675 ;;
13676 esac
13677 ;;
13678
13679 freebsd2.*)
13680 # C++ shared libraries reported to be fairly broken before
13681 # switch to ELF
13682 ld_shlibs_CXX=no
13683 ;;
13684
13685 freebsd-elf*)
13686 archive_cmds_need_lc_CXX=no
13687 ;;
13688
13689 freebsd* | dragonfly*)
13690 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13691 # conventions
13692 ld_shlibs_CXX=yes
13693 ;;
13694
13695 haiku*)
13696 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13697 link_all_deplibs_CXX=yes
13698 ;;
13699
13700 hpux9*)
13701 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13702 hardcode_libdir_separator_CXX=:
13703 export_dynamic_flag_spec_CXX='$wl-E'
13704 hardcode_direct_CXX=yes
13705 hardcode_minus_L_CXX=yes # Not in the search PATH,
13706 # but as the default
13707 # location of the library.
13708
13709 case $cc_basename in
13710 CC*)
13711 # FIXME: insert proper C++ library support
13712 ld_shlibs_CXX=no
13713 ;;
13714 aCC*)
13715 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13716 # Commands to make compiler produce verbose output that lists
13717 # what "hidden" libraries, object files and flags are used when
13718 # linking a shared library.
13719 #
13720 # There doesn't appear to be a way to prevent this compiler from
13721 # explicitly linking system object files so we need to strip them
13722 # from the output so that they don't get included in the library
13723 # dependencies.
13724 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13725 ;;
13726 *)
13727 if test yes = "$GXX"; then
13728 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13729 else
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13732 fi
13733 ;;
13734 esac
13735 ;;
13736
13737 hpux10*|hpux11*)
13738 if test no = "$with_gnu_ld"; then
13739 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13740 hardcode_libdir_separator_CXX=:
13741
13742 case $host_cpu in
13743 hppa*64*|ia64*)
13744 ;;
13745 *)
13746 export_dynamic_flag_spec_CXX='$wl-E'
13747 ;;
13748 esac
13749 fi
13750 case $host_cpu in
13751 hppa*64*|ia64*)
13752 hardcode_direct_CXX=no
13753 hardcode_shlibpath_var_CXX=no
13754 ;;
13755 *)
13756 hardcode_direct_CXX=yes
13757 hardcode_direct_absolute_CXX=yes
13758 hardcode_minus_L_CXX=yes # Not in the search PATH,
13759 # but as the default
13760 # location of the library.
13761 ;;
13762 esac
13763
13764 case $cc_basename in
13765 CC*)
13766 # FIXME: insert proper C++ library support
13767 ld_shlibs_CXX=no
13768 ;;
13769 aCC*)
13770 case $host_cpu in
13771 hppa*64*)
13772 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13773 ;;
13774 ia64*)
13775 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13776 ;;
13777 *)
13778 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13779 ;;
13780 esac
13781 # Commands to make compiler produce verbose output that lists
13782 # what "hidden" libraries, object files and flags are used when
13783 # linking a shared library.
13784 #
13785 # There doesn't appear to be a way to prevent this compiler from
13786 # explicitly linking system object files so we need to strip them
13787 # from the output so that they don't get included in the library
13788 # dependencies.
13789 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13790 ;;
13791 *)
13792 if test yes = "$GXX"; then
13793 if test no = "$with_gnu_ld"; then
13794 case $host_cpu in
13795 hppa*64*)
13796 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13797 ;;
13798 ia64*)
13799 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13800 ;;
13801 *)
13802 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13803 ;;
13804 esac
13805 fi
13806 else
13807 # FIXME: insert proper C++ library support
13808 ld_shlibs_CXX=no
13809 fi
13810 ;;
13811 esac
13812 ;;
13813
13814 interix[3-9]*)
13815 hardcode_direct_CXX=no
13816 hardcode_shlibpath_var_CXX=no
13817 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13818 export_dynamic_flag_spec_CXX='$wl-E'
13819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13820 # Instead, shared libraries are loaded at an image base (0x10000000 by
13821 # default) and relocated if they conflict, which is a slow very memory
13822 # consuming and fragmenting process. To avoid this, we pick a random,
13823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13825 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13826 archive_expsym_cmds_CXX='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'
13827 ;;
13828 irix5* | irix6*)
13829 case $cc_basename in
13830 CC*)
13831 # SGI C++
13832 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13833
13834 # Archives containing C++ object files must be created using
13835 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13836 # necessary to make sure instantiated templates are included
13837 # in the archive.
13838 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13839 ;;
13840 *)
13841 if test yes = "$GXX"; then
13842 if test no = "$with_gnu_ld"; then
13843 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13844 else
13845 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13846 fi
13847 fi
13848 link_all_deplibs_CXX=yes
13849 ;;
13850 esac
13851 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13852 hardcode_libdir_separator_CXX=:
13853 inherit_rpath_CXX=yes
13854 ;;
13855
13856 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13857 case $cc_basename in
13858 KCC*)
13859 # Kuck and Associates, Inc. (KAI) C++ Compiler
13860
13861 # KCC will only create a shared library if the output file
13862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13863 # to its proper name (with version) after linking.
13864 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13865 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
13866 # Commands to make compiler produce verbose output that lists
13867 # what "hidden" libraries, object files and flags are used when
13868 # linking a shared library.
13869 #
13870 # There doesn't appear to be a way to prevent this compiler from
13871 # explicitly linking system object files so we need to strip them
13872 # from the output so that they don't get included in the library
13873 # dependencies.
13874 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13875
13876 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13877 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13878
13879 # Archives containing C++ object files must be created using
13880 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13881 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13882 ;;
13883 icpc* | ecpc* )
13884 # Intel C++
13885 with_gnu_ld=yes
13886 # version 8.0 and above of icpc choke on multiply defined symbols
13887 # if we add $predep_objects and $postdep_objects, however 7.1 and
13888 # earlier do not add the objects themselves.
13889 case `$CC -V 2>&1` in
13890 *"Version 7."*)
13891 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13892 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13893 ;;
13894 *) # Version 8.0 or newer
13895 tmp_idyn=
13896 case $host_cpu in
13897 ia64*) tmp_idyn=' -i_dynamic';;
13898 esac
13899 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13900 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13901 ;;
13902 esac
13903 archive_cmds_need_lc_CXX=no
13904 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13905 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13906 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13907 ;;
13908 pgCC* | pgcpp*)
13909 # Portland Group C++ compiler
13910 case `$CC -V` in
13911 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13912 prelink_cmds_CXX='tpldir=Template.dir~
13913 rm -rf $tpldir~
13914 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13915 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13916 old_archive_cmds_CXX='tpldir=Template.dir~
13917 rm -rf $tpldir~
13918 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13919 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13920 $RANLIB $oldlib'
13921 archive_cmds_CXX='tpldir=Template.dir~
13922 rm -rf $tpldir~
13923 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13924 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13925 archive_expsym_cmds_CXX='tpldir=Template.dir~
13926 rm -rf $tpldir~
13927 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13928 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13929 ;;
13930 *) # Version 6 and above use weak symbols
13931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13932 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13933 ;;
13934 esac
13935
13936 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13937 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13938 whole_archive_flag_spec_CXX='$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'
13939 ;;
13940 cxx*)
13941 # Compaq C++
13942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13943 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
13944
13945 runpath_var=LD_RUN_PATH
13946 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13947 hardcode_libdir_separator_CXX=:
13948
13949 # Commands to make compiler produce verbose output that lists
13950 # what "hidden" libraries, object files and flags are used when
13951 # linking a shared library.
13952 #
13953 # There doesn't appear to be a way to prevent this compiler from
13954 # explicitly linking system object files so we need to strip them
13955 # from the output so that they don't get included in the library
13956 # dependencies.
13957 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13958 ;;
13959 xl* | mpixl* | bgxl*)
13960 # IBM XL 8.0 on PPC, with GNU ld
13961 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13962 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13963 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13964 if test yes = "$supports_anon_versioning"; then
13965 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13967 echo "local: *; };" >> $output_objdir/$libname.ver~
13968 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13969 fi
13970 ;;
13971 *)
13972 case `$CC -V 2>&1 | sed 5q` in
13973 *Sun\ C*)
13974 # Sun C++ 5.9
13975 no_undefined_flag_CXX=' -zdefs'
13976 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13977 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
13978 hardcode_libdir_flag_spec_CXX='-R$libdir'
13979 whole_archive_flag_spec_CXX='$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'
13980 compiler_needs_object_CXX=yes
13981
13982 # Not sure whether something based on
13983 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13984 # would be better.
13985 output_verbose_link_cmd='func_echo_all'
13986
13987 # Archives containing C++ object files must be created using
13988 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13989 # necessary to make sure instantiated templates are included
13990 # in the archive.
13991 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13992 ;;
13993 esac
13994 ;;
13995 esac
13996 ;;
13997
13998 lynxos*)
13999 # FIXME: insert proper C++ library support
14000 ld_shlibs_CXX=no
14001 ;;
14002
14003 m88k*)
14004 # FIXME: insert proper C++ library support
14005 ld_shlibs_CXX=no
14006 ;;
14007
14008 mvs*)
14009 case $cc_basename in
14010 cxx*)
14011 # FIXME: insert proper C++ library support
14012 ld_shlibs_CXX=no
14013 ;;
14014 *)
14015 # FIXME: insert proper C++ library support
14016 ld_shlibs_CXX=no
14017 ;;
14018 esac
14019 ;;
14020
14021 netbsd*)
14022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14023 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14024 wlarc=
14025 hardcode_libdir_flag_spec_CXX='-R$libdir'
14026 hardcode_direct_CXX=yes
14027 hardcode_shlibpath_var_CXX=no
14028 fi
14029 # Workaround some broken pre-1.5 toolchains
14030 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14031 ;;
14032
14033 *nto* | *qnx*)
14034 ld_shlibs_CXX=yes
14035 ;;
14036
14037 openbsd* | bitrig*)
14038 if test -f /usr/libexec/ld.so; then
14039 hardcode_direct_CXX=yes
14040 hardcode_shlibpath_var_CXX=no
14041 hardcode_direct_absolute_CXX=yes
14042 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14043 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14045 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14046 export_dynamic_flag_spec_CXX='$wl-E'
14047 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14048 fi
14049 output_verbose_link_cmd=func_echo_all
14050 else
14051 ld_shlibs_CXX=no
14052 fi
14053 ;;
14054
14055 osf3* | osf4* | osf5*)
14056 case $cc_basename in
14057 KCC*)
14058 # Kuck and Associates, Inc. (KAI) C++ Compiler
14059
14060 # KCC will only create a shared library if the output file
14061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14062 # to its proper name (with version) after linking.
14063 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14064
14065 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14066 hardcode_libdir_separator_CXX=:
14067
14068 # Archives containing C++ object files must be created using
14069 # the KAI C++ compiler.
14070 case $host in
14071 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14072 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14073 esac
14074 ;;
14075 RCC*)
14076 # Rational C++ 2.4.1
14077 # FIXME: insert proper C++ library support
14078 ld_shlibs_CXX=no
14079 ;;
14080 cxx*)
14081 case $host in
14082 osf3*)
14083 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14084 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14085 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14086 ;;
14087 *)
14088 allow_undefined_flag_CXX=' -expect_unresolved \*'
14089 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14090 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14091 echo "-hidden">> $lib.exp~
14092 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14093 $RM $lib.exp'
14094 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14095 ;;
14096 esac
14097
14098 hardcode_libdir_separator_CXX=:
14099
14100 # Commands to make compiler produce verbose output that lists
14101 # what "hidden" libraries, object files and flags are used when
14102 # linking a shared library.
14103 #
14104 # There doesn't appear to be a way to prevent this compiler from
14105 # explicitly linking system object files so we need to strip them
14106 # from the output so that they don't get included in the library
14107 # dependencies.
14108 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14109 ;;
14110 *)
14111 if test yes,no = "$GXX,$with_gnu_ld"; then
14112 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14113 case $host in
14114 osf3*)
14115 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14116 ;;
14117 *)
14118 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14119 ;;
14120 esac
14121
14122 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14123 hardcode_libdir_separator_CXX=:
14124
14125 # Commands to make compiler produce verbose output that lists
14126 # what "hidden" libraries, object files and flags are used when
14127 # linking a shared library.
14128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14129
14130 else
14131 # FIXME: insert proper C++ library support
14132 ld_shlibs_CXX=no
14133 fi
14134 ;;
14135 esac
14136 ;;
14137
14138 psos*)
14139 # FIXME: insert proper C++ library support
14140 ld_shlibs_CXX=no
14141 ;;
14142
14143 sunos4*)
14144 case $cc_basename in
14145 CC*)
14146 # Sun C++ 4.x
14147 # FIXME: insert proper C++ library support
14148 ld_shlibs_CXX=no
14149 ;;
14150 lcc*)
14151 # Lucid
14152 # FIXME: insert proper C++ library support
14153 ld_shlibs_CXX=no
14154 ;;
14155 *)
14156 # FIXME: insert proper C++ library support
14157 ld_shlibs_CXX=no
14158 ;;
14159 esac
14160 ;;
14161
14162 solaris*)
14163 case $cc_basename in
14164 CC* | sunCC*)
14165 # Sun C++ 4.2, 5.x and Centerline C++
14166 archive_cmds_need_lc_CXX=yes
14167 no_undefined_flag_CXX=' -zdefs'
14168 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14169 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14170 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14171
14172 hardcode_libdir_flag_spec_CXX='-R$libdir'
14173 hardcode_shlibpath_var_CXX=no
14174 case $host_os in
14175 solaris2.[0-5] | solaris2.[0-5].*) ;;
14176 *)
14177 # The compiler driver will combine and reorder linker options,
14178 # but understands '-z linker_flag'.
14179 # Supported since Solaris 2.6 (maybe 2.5.1?)
14180 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14181 ;;
14182 esac
14183 link_all_deplibs_CXX=yes
14184
14185 output_verbose_link_cmd='func_echo_all'
14186
14187 # Archives containing C++ object files must be created using
14188 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14189 # necessary to make sure instantiated templates are included
14190 # in the archive.
14191 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14192 ;;
14193 gcx*)
14194 # Green Hills C++ Compiler
14195 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14196
14197 # The C++ compiler must be used to create the archive.
14198 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14199 ;;
14200 *)
14201 # GNU C++ compiler with Solaris linker
14202 if test yes,no = "$GXX,$with_gnu_ld"; then
14203 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14204 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14205 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14206 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14207 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14208
14209 # Commands to make compiler produce verbose output that lists
14210 # what "hidden" libraries, object files and flags are used when
14211 # linking a shared library.
14212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14213 else
14214 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14215 # platform.
14216 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14217 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14218 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14219
14220 # Commands to make compiler produce verbose output that lists
14221 # what "hidden" libraries, object files and flags are used when
14222 # linking a shared library.
14223 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14224 fi
14225
14226 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14227 case $host_os in
14228 solaris2.[0-5] | solaris2.[0-5].*) ;;
14229 *)
14230 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14231 ;;
14232 esac
14233 fi
14234 ;;
14235 esac
14236 ;;
14237
14238 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14239 no_undefined_flag_CXX='$wl-z,text'
14240 archive_cmds_need_lc_CXX=no
14241 hardcode_shlibpath_var_CXX=no
14242 runpath_var='LD_RUN_PATH'
14243
14244 case $cc_basename in
14245 CC*)
14246 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14247 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14248 ;;
14249 *)
14250 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14251 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14252 ;;
14253 esac
14254 ;;
14255
14256 sysv5* | sco3.2v5* | sco5v6*)
14257 # Note: We CANNOT use -z defs as we might desire, because we do not
14258 # link with -lc, and that would cause any symbols used from libc to
14259 # always be unresolved, which means just about no library would
14260 # ever link correctly. If we're not using GNU ld we use -z text
14261 # though, which does catch some bad symbols but isn't as heavy-handed
14262 # as -z defs.
14263 no_undefined_flag_CXX='$wl-z,text'
14264 allow_undefined_flag_CXX='$wl-z,nodefs'
14265 archive_cmds_need_lc_CXX=no
14266 hardcode_shlibpath_var_CXX=no
14267 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14268 hardcode_libdir_separator_CXX=':'
14269 link_all_deplibs_CXX=yes
14270 export_dynamic_flag_spec_CXX='$wl-Bexport'
14271 runpath_var='LD_RUN_PATH'
14272
14273 case $cc_basename in
14274 CC*)
14275 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14278 '"$old_archive_cmds_CXX"
14279 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14280 '"$reload_cmds_CXX"
14281 ;;
14282 *)
14283 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14285 ;;
14286 esac
14287 ;;
14288
14289 tandem*)
14290 case $cc_basename in
14291 NCC*)
14292 # NonStop-UX NCC 3.20
14293 # FIXME: insert proper C++ library support
14294 ld_shlibs_CXX=no
14295 ;;
14296 *)
14297 # FIXME: insert proper C++ library support
14298 ld_shlibs_CXX=no
14299 ;;
14300 esac
14301 ;;
14302
14303 vxworks*)
14304 # FIXME: insert proper C++ library support
14305 ld_shlibs_CXX=no
14306 ;;
14307
14308 *)
14309 # FIXME: insert proper C++ library support
14310 ld_shlibs_CXX=no
14311 ;;
14312 esac
14313
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14315$as_echo "$ld_shlibs_CXX" >&6; }
14316 test no = "$ld_shlibs_CXX" && can_build_shared=no
14317
14318 GCC_CXX=$GXX
14319 LD_CXX=$LD
14320
14321 ## CAVEAT EMPTOR:
14322 ## There is no encapsulation within the following macros, do not change
14323 ## the running order or otherwise move them around unless you know exactly
14324 ## what you are doing...
14325 # Dependencies to place before and after the object being linked:
14326predep_objects_CXX=
14327postdep_objects_CXX=
14328predeps_CXX=
14329postdeps_CXX=
14330compiler_lib_search_path_CXX=
14331
14332cat > conftest.$ac_ext <<_LT_EOF
14333class Foo
14334{
14335public:
14336 Foo (void) { a = 0; }
14337private:
14338 int a;
14339};
14340_LT_EOF
14341
14342
14343_lt_libdeps_save_CFLAGS=$CFLAGS
14344case "$CC $CFLAGS " in #(
14345*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14346*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14347*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14348esac
14349
14350if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14351 (eval $ac_compile) 2>&5
14352 ac_status=$?
14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14354 test $ac_status = 0; }; then
14355 # Parse the compiler output and extract the necessary
14356 # objects, libraries and library flags.
14357
14358 # Sentinel used to keep track of whether or not we are before
14359 # the conftest object file.
14360 pre_test_object_deps_done=no
14361
14362 for p in `eval "$output_verbose_link_cmd"`; do
14363 case $prev$p in
14364
14365 -L* | -R* | -l*)
14366 # Some compilers place space between "-{L,R}" and the path.
14367 # Remove the space.
14368 if test x-L = "$p" ||
14369 test x-R = "$p"; then
14370 prev=$p
14371 continue
14372 fi
14373
14374 # Expand the sysroot to ease extracting the directories later.
14375 if test -z "$prev"; then
14376 case $p in
14377 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14378 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14379 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14380 esac
14381 fi
14382 case $p in
14383 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14384 esac
14385 if test no = "$pre_test_object_deps_done"; then
14386 case $prev in
14387 -L | -R)
14388 # Internal compiler library paths should come after those
14389 # provided the user. The postdeps already come after the
14390 # user supplied libs so there is no need to process them.
14391 if test -z "$compiler_lib_search_path_CXX"; then
14392 compiler_lib_search_path_CXX=$prev$p
14393 else
14394 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14395 fi
14396 ;;
14397 # The "-l" case would never come before the object being
14398 # linked, so don't bother handling this case.
14399 esac
14400 else
14401 if test -z "$postdeps_CXX"; then
14402 postdeps_CXX=$prev$p
14403 else
14404 postdeps_CXX="${postdeps_CXX} $prev$p"
14405 fi
14406 fi
14407 prev=
14408 ;;
14409
14410 *.lto.$objext) ;; # Ignore GCC LTO objects
14411 *.$objext)
14412 # This assumes that the test object file only shows up
14413 # once in the compiler output.
14414 if test "$p" = "conftest.$objext"; then
14415 pre_test_object_deps_done=yes
14416 continue
14417 fi
14418
14419 if test no = "$pre_test_object_deps_done"; then
14420 if test -z "$predep_objects_CXX"; then
14421 predep_objects_CXX=$p
14422 else
14423 predep_objects_CXX="$predep_objects_CXX $p"
14424 fi
14425 else
14426 if test -z "$postdep_objects_CXX"; then
14427 postdep_objects_CXX=$p
14428 else
14429 postdep_objects_CXX="$postdep_objects_CXX $p"
14430 fi
14431 fi
14432 ;;
14433
14434 *) ;; # Ignore the rest.
14435
14436 esac
14437 done
14438
14439 # Clean up.
14440 rm -f a.out a.exe
14441else
14442 echo "libtool.m4: error: problem compiling CXX test program"
14443fi
14444
14445$RM -f confest.$objext
14446CFLAGS=$_lt_libdeps_save_CFLAGS
14447
14448# PORTME: override above test on systems where it is broken
14449case $host_os in
14450interix[3-9]*)
14451 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14452 # hack all around it, let's just trust "g++" to DTRT.
14453 predep_objects_CXX=
14454 postdep_objects_CXX=
14455 postdeps_CXX=
14456 ;;
14457esac
14458
14459
14460case " $postdeps_CXX " in
14461*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14462esac
14463 compiler_lib_search_dirs_CXX=
14464if test -n "${compiler_lib_search_path_CXX}"; then
14465 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14466fi
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498 lt_prog_compiler_wl_CXX=
14499lt_prog_compiler_pic_CXX=
14500lt_prog_compiler_static_CXX=
14501
14502
14503 # C++ specific cases for pic, static, wl, etc.
14504 if test yes = "$GXX"; then
14505 lt_prog_compiler_wl_CXX='-Wl,'
14506 lt_prog_compiler_static_CXX='-static'
14507
14508 case $host_os in
14509 aix*)
14510 # All AIX code is PIC.
14511 if test ia64 = "$host_cpu"; then
14512 # AIX 5 now supports IA64 processor
14513 lt_prog_compiler_static_CXX='-Bstatic'
14514 fi
14515 lt_prog_compiler_pic_CXX='-fPIC'
14516 ;;
14517
14518 amigaos*)
14519 case $host_cpu in
14520 powerpc)
14521 # see comment about AmigaOS4 .so support
14522 lt_prog_compiler_pic_CXX='-fPIC'
14523 ;;
14524 m68k)
14525 # FIXME: we need at least 68020 code to build shared libraries, but
14526 # adding the '-m68020' flag to GCC prevents building anything better,
14527 # like '-m68040'.
14528 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14529 ;;
14530 esac
14531 ;;
14532
14533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14534 # PIC is the default for these OSes.
14535 ;;
14536 mingw* | cygwin* | os2* | pw32* | cegcc*)
14537 # This hack is so that the source file can tell whether it is being
14538 # built for inclusion in a dll (and should export symbols for example).
14539 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14540 # (--disable-auto-import) libraries
14541 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14542 case $host_os in
14543 os2*)
14544 lt_prog_compiler_static_CXX='$wl-static'
14545 ;;
14546 esac
14547 ;;
14548 darwin* | rhapsody*)
14549 # PIC is the default on this platform
14550 # Common symbols not allowed in MH_DYLIB files
14551 lt_prog_compiler_pic_CXX='-fno-common'
14552 ;;
14553 *djgpp*)
14554 # DJGPP does not support shared libraries at all
14555 lt_prog_compiler_pic_CXX=
14556 ;;
14557 haiku*)
14558 # PIC is the default for Haiku.
14559 # The "-static" flag exists, but is broken.
14560 lt_prog_compiler_static_CXX=
14561 ;;
14562 interix[3-9]*)
14563 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14564 # Instead, we relocate shared libraries at runtime.
14565 ;;
14566 sysv4*MP*)
14567 if test -d /usr/nec; then
14568 lt_prog_compiler_pic_CXX=-Kconform_pic
14569 fi
14570 ;;
14571 hpux*)
14572 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14573 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14574 # sets the default TLS model and affects inlining.
14575 case $host_cpu in
14576 hppa*64*)
14577 ;;
14578 *)
14579 lt_prog_compiler_pic_CXX='-fPIC'
14580 ;;
14581 esac
14582 ;;
14583 *qnx* | *nto*)
14584 # QNX uses GNU C++, but need to define -shared option too, otherwise
14585 # it will coredump.
14586 lt_prog_compiler_pic_CXX='-fPIC -shared'
14587 ;;
14588 *)
14589 lt_prog_compiler_pic_CXX='-fPIC'
14590 ;;
14591 esac
14592 else
14593 case $host_os in
14594 aix[4-9]*)
14595 # All AIX code is PIC.
14596 if test ia64 = "$host_cpu"; then
14597 # AIX 5 now supports IA64 processor
14598 lt_prog_compiler_static_CXX='-Bstatic'
14599 else
14600 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14601 fi
14602 ;;
14603 chorus*)
14604 case $cc_basename in
14605 cxch68*)
14606 # Green Hills C++ Compiler
14607 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14608 ;;
14609 esac
14610 ;;
14611 mingw* | cygwin* | os2* | pw32* | cegcc*)
14612 # This hack is so that the source file can tell whether it is being
14613 # built for inclusion in a dll (and should export symbols for example).
14614 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14615 ;;
14616 dgux*)
14617 case $cc_basename in
14618 ec++*)
14619 lt_prog_compiler_pic_CXX='-KPIC'
14620 ;;
14621 ghcx*)
14622 # Green Hills C++ Compiler
14623 lt_prog_compiler_pic_CXX='-pic'
14624 ;;
14625 *)
14626 ;;
14627 esac
14628 ;;
14629 freebsd* | dragonfly*)
14630 # FreeBSD uses GNU C++
14631 ;;
14632 hpux9* | hpux10* | hpux11*)
14633 case $cc_basename in
14634 CC*)
14635 lt_prog_compiler_wl_CXX='-Wl,'
14636 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14637 if test ia64 != "$host_cpu"; then
14638 lt_prog_compiler_pic_CXX='+Z'
14639 fi
14640 ;;
14641 aCC*)
14642 lt_prog_compiler_wl_CXX='-Wl,'
14643 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14644 case $host_cpu in
14645 hppa*64*|ia64*)
14646 # +Z the default
14647 ;;
14648 *)
14649 lt_prog_compiler_pic_CXX='+Z'
14650 ;;
14651 esac
14652 ;;
14653 *)
14654 ;;
14655 esac
14656 ;;
14657 interix*)
14658 # This is c89, which is MS Visual C++ (no shared libs)
14659 # Anyone wants to do a port?
14660 ;;
14661 irix5* | irix6* | nonstopux*)
14662 case $cc_basename in
14663 CC*)
14664 lt_prog_compiler_wl_CXX='-Wl,'
14665 lt_prog_compiler_static_CXX='-non_shared'
14666 # CC pic flag -KPIC is the default.
14667 ;;
14668 *)
14669 ;;
14670 esac
14671 ;;
14672 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14673 case $cc_basename in
14674 KCC*)
14675 # KAI C++ Compiler
14676 lt_prog_compiler_wl_CXX='--backend -Wl,'
14677 lt_prog_compiler_pic_CXX='-fPIC'
14678 ;;
14679 ecpc* )
14680 # old Intel C++ for x86_64, which still supported -KPIC.
14681 lt_prog_compiler_wl_CXX='-Wl,'
14682 lt_prog_compiler_pic_CXX='-KPIC'
14683 lt_prog_compiler_static_CXX='-static'
14684 ;;
14685 icpc* )
14686 # Intel C++, used to be incompatible with GCC.
14687 # ICC 10 doesn't accept -KPIC any more.
14688 lt_prog_compiler_wl_CXX='-Wl,'
14689 lt_prog_compiler_pic_CXX='-fPIC'
14690 lt_prog_compiler_static_CXX='-static'
14691 ;;
14692 pgCC* | pgcpp*)
14693 # Portland Group C++ compiler
14694 lt_prog_compiler_wl_CXX='-Wl,'
14695 lt_prog_compiler_pic_CXX='-fpic'
14696 lt_prog_compiler_static_CXX='-Bstatic'
14697 ;;
14698 cxx*)
14699 # Compaq C++
14700 # Make sure the PIC flag is empty. It appears that all Alpha
14701 # Linux and Compaq Tru64 Unix objects are PIC.
14702 lt_prog_compiler_pic_CXX=
14703 lt_prog_compiler_static_CXX='-non_shared'
14704 ;;
14705 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14706 # IBM XL 8.0, 9.0 on PPC and BlueGene
14707 lt_prog_compiler_wl_CXX='-Wl,'
14708 lt_prog_compiler_pic_CXX='-qpic'
14709 lt_prog_compiler_static_CXX='-qstaticlink'
14710 ;;
14711 *)
14712 case `$CC -V 2>&1 | sed 5q` in
14713 *Sun\ C*)
14714 # Sun C++ 5.9
14715 lt_prog_compiler_pic_CXX='-KPIC'
14716 lt_prog_compiler_static_CXX='-Bstatic'
14717 lt_prog_compiler_wl_CXX='-Qoption ld '
14718 ;;
14719 esac
14720 ;;
14721 esac
14722 ;;
14723 lynxos*)
14724 ;;
14725 m88k*)
14726 ;;
14727 mvs*)
14728 case $cc_basename in
14729 cxx*)
14730 lt_prog_compiler_pic_CXX='-W c,exportall'
14731 ;;
14732 *)
14733 ;;
14734 esac
14735 ;;
14736 netbsd*)
14737 ;;
14738 *qnx* | *nto*)
14739 # QNX uses GNU C++, but need to define -shared option too, otherwise
14740 # it will coredump.
14741 lt_prog_compiler_pic_CXX='-fPIC -shared'
14742 ;;
14743 osf3* | osf4* | osf5*)
14744 case $cc_basename in
14745 KCC*)
14746 lt_prog_compiler_wl_CXX='--backend -Wl,'
14747 ;;
14748 RCC*)
14749 # Rational C++ 2.4.1
14750 lt_prog_compiler_pic_CXX='-pic'
14751 ;;
14752 cxx*)
14753 # Digital/Compaq C++
14754 lt_prog_compiler_wl_CXX='-Wl,'
14755 # Make sure the PIC flag is empty. It appears that all Alpha
14756 # Linux and Compaq Tru64 Unix objects are PIC.
14757 lt_prog_compiler_pic_CXX=
14758 lt_prog_compiler_static_CXX='-non_shared'
14759 ;;
14760 *)
14761 ;;
14762 esac
14763 ;;
14764 psos*)
14765 ;;
14766 solaris*)
14767 case $cc_basename in
14768 CC* | sunCC*)
14769 # Sun C++ 4.2, 5.x and Centerline C++
14770 lt_prog_compiler_pic_CXX='-KPIC'
14771 lt_prog_compiler_static_CXX='-Bstatic'
14772 lt_prog_compiler_wl_CXX='-Qoption ld '
14773 ;;
14774 gcx*)
14775 # Green Hills C++ Compiler
14776 lt_prog_compiler_pic_CXX='-PIC'
14777 ;;
14778 *)
14779 ;;
14780 esac
14781 ;;
14782 sunos4*)
14783 case $cc_basename in
14784 CC*)
14785 # Sun C++ 4.x
14786 lt_prog_compiler_pic_CXX='-pic'
14787 lt_prog_compiler_static_CXX='-Bstatic'
14788 ;;
14789 lcc*)
14790 # Lucid
14791 lt_prog_compiler_pic_CXX='-pic'
14792 ;;
14793 *)
14794 ;;
14795 esac
14796 ;;
14797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14798 case $cc_basename in
14799 CC*)
14800 lt_prog_compiler_wl_CXX='-Wl,'
14801 lt_prog_compiler_pic_CXX='-KPIC'
14802 lt_prog_compiler_static_CXX='-Bstatic'
14803 ;;
14804 esac
14805 ;;
14806 tandem*)
14807 case $cc_basename in
14808 NCC*)
14809 # NonStop-UX NCC 3.20
14810 lt_prog_compiler_pic_CXX='-KPIC'
14811 ;;
14812 *)
14813 ;;
14814 esac
14815 ;;
14816 vxworks*)
14817 ;;
14818 *)
14819 lt_prog_compiler_can_build_shared_CXX=no
14820 ;;
14821 esac
14822 fi
14823
14824case $host_os in
14825 # For platforms that do not support PIC, -DPIC is meaningless:
14826 *djgpp*)
14827 lt_prog_compiler_pic_CXX=
14828 ;;
14829 *)
14830 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14831 ;;
14832esac
14833
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14835$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14836if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14837 $as_echo_n "(cached) " >&6
14838else
14839 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14840fi
14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14842$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14843lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14844
14845#
14846# Check to make sure the PIC flag actually works.
14847#
14848if test -n "$lt_prog_compiler_pic_CXX"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14850$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14851if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14852 $as_echo_n "(cached) " >&6
14853else
14854 lt_cv_prog_compiler_pic_works_CXX=no
14855 ac_outfile=conftest.$ac_objext
14856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14857 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14858 # Insert the option either (1) after the last *FLAGS variable, or
14859 # (2) before a word containing "conftest.", or (3) at the end.
14860 # Note that $ac_compile itself does not contain backslashes and begins
14861 # with a dollar sign (not a hyphen), so the echo should work correctly.
14862 # The option is referenced via a variable to avoid confusing sed.
14863 lt_compile=`echo "$ac_compile" | $SED \
14864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14866 -e 's:$: $lt_compiler_flag:'`
14867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14868 (eval "$lt_compile" 2>conftest.err)
14869 ac_status=$?
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 if (exit $ac_status) && test -s "$ac_outfile"; then
14873 # The compiler can only warn and ignore the option if not recognized
14874 # So say no if there are warnings other than the usual output.
14875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14878 lt_cv_prog_compiler_pic_works_CXX=yes
14879 fi
14880 fi
14881 $RM conftest*
14882
14883fi
14884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14885$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14886
14887if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14888 case $lt_prog_compiler_pic_CXX in
14889 "" | " "*) ;;
14890 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14891 esac
14892else
14893 lt_prog_compiler_pic_CXX=
14894 lt_prog_compiler_can_build_shared_CXX=no
14895fi
14896
14897fi
14898
14899
14900
14901
14902
14903#
14904# Check to make sure the static flag actually works.
14905#
14906wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14908$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14909if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911else
14912 lt_cv_prog_compiler_static_works_CXX=no
14913 save_LDFLAGS=$LDFLAGS
14914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14915 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14917 # The linker can only warn and ignore the option if not recognized
14918 # So say no if there are warnings
14919 if test -s conftest.err; then
14920 # Append any errors to the config.log.
14921 cat conftest.err 1>&5
14922 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924 if diff conftest.exp conftest.er2 >/dev/null; then
14925 lt_cv_prog_compiler_static_works_CXX=yes
14926 fi
14927 else
14928 lt_cv_prog_compiler_static_works_CXX=yes
14929 fi
14930 fi
14931 $RM -r conftest*
14932 LDFLAGS=$save_LDFLAGS
14933
14934fi
14935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14936$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14937
14938if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14939 :
14940else
14941 lt_prog_compiler_static_CXX=
14942fi
14943
14944
14945
14946
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14948$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14949if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951else
14952 lt_cv_prog_compiler_c_o_CXX=no
14953 $RM -r conftest 2>/dev/null
14954 mkdir conftest
14955 cd conftest
14956 mkdir out
14957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14958
14959 lt_compiler_flag="-o out/conftest2.$ac_objext"
14960 # Insert the option either (1) after the last *FLAGS variable, or
14961 # (2) before a word containing "conftest.", or (3) at the end.
14962 # Note that $ac_compile itself does not contain backslashes and begins
14963 # with a dollar sign (not a hyphen), so the echo should work correctly.
14964 lt_compile=`echo "$ac_compile" | $SED \
14965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967 -e 's:$: $lt_compiler_flag:'`
14968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14969 (eval "$lt_compile" 2>out/conftest.err)
14970 ac_status=$?
14971 cat out/conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14974 then
14975 # The compiler can only warn and ignore the option if not recognized
14976 # So say no if there are warnings
14977 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14980 lt_cv_prog_compiler_c_o_CXX=yes
14981 fi
14982 fi
14983 chmod u+w . 2>&5
14984 $RM conftest*
14985 # SGI C++ compiler will create directory out/ii_files/ for
14986 # template instantiation
14987 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14988 $RM out/* && rmdir out
14989 cd ..
14990 $RM -r conftest
14991 $RM conftest*
14992
14993fi
14994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14995$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14996
14997
14998
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15000$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15001if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003else
15004 lt_cv_prog_compiler_c_o_CXX=no
15005 $RM -r conftest 2>/dev/null
15006 mkdir conftest
15007 cd conftest
15008 mkdir out
15009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15010
15011 lt_compiler_flag="-o out/conftest2.$ac_objext"
15012 # Insert the option either (1) after the last *FLAGS variable, or
15013 # (2) before a word containing "conftest.", or (3) at the end.
15014 # Note that $ac_compile itself does not contain backslashes and begins
15015 # with a dollar sign (not a hyphen), so the echo should work correctly.
15016 lt_compile=`echo "$ac_compile" | $SED \
15017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15019 -e 's:$: $lt_compiler_flag:'`
15020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15021 (eval "$lt_compile" 2>out/conftest.err)
15022 ac_status=$?
15023 cat out/conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15026 then
15027 # The compiler can only warn and ignore the option if not recognized
15028 # So say no if there are warnings
15029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15032 lt_cv_prog_compiler_c_o_CXX=yes
15033 fi
15034 fi
15035 chmod u+w . 2>&5
15036 $RM conftest*
15037 # SGI C++ compiler will create directory out/ii_files/ for
15038 # template instantiation
15039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15040 $RM out/* && rmdir out
15041 cd ..
15042 $RM -r conftest
15043 $RM conftest*
15044
15045fi
15046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15047$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15048
15049
15050
15051
15052hard_links=nottested
15053if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15054 # do not overwrite the value of need_locks provided by the user
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15056$as_echo_n "checking if we can lock with hard links... " >&6; }
15057 hard_links=yes
15058 $RM conftest*
15059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15060 touch conftest.a
15061 ln conftest.a conftest.b 2>&5 || hard_links=no
15062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15064$as_echo "$hard_links" >&6; }
15065 if test no = "$hard_links"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15067$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15068 need_locks=warn
15069 fi
15070else
15071 need_locks=no
15072fi
15073
15074
15075
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15077$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15078
15079 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15080 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15081 case $host_os in
15082 aix[4-9]*)
15083 # If we're using GNU nm, then we don't want the "-C" option.
15084 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15085 # Without the "-l" option, or with the "-B" option, AIX nm treats
15086 # weak defined symbols like other global defined symbols, whereas
15087 # GNU nm marks them as "W".
15088 # While the 'weak' keyword is ignored in the Export File, we need
15089 # it in the Import File for the 'aix-soname' feature, so we have
15090 # to replace the "-B" option with "-P" for AIX nm.
15091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15092 export_symbols_cmds_CXX='$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'
15093 else
15094 export_symbols_cmds_CXX='`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'
15095 fi
15096 ;;
15097 pw32*)
15098 export_symbols_cmds_CXX=$ltdll_cmds
15099 ;;
15100 cygwin* | mingw* | cegcc*)
15101 case $cc_basename in
15102 cl*)
15103 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15104 ;;
15105 *)
15106 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15107 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15108 ;;
15109 esac
15110 ;;
15111 *)
15112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15113 ;;
15114 esac
15115
15116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15117$as_echo "$ld_shlibs_CXX" >&6; }
15118test no = "$ld_shlibs_CXX" && can_build_shared=no
15119
15120with_gnu_ld_CXX=$with_gnu_ld
15121
15122
15123
15124
15125
15126
15127#
15128# Do we need to explicitly link libc?
15129#
15130case "x$archive_cmds_need_lc_CXX" in
15131x|xyes)
15132 # Assume -lc should be added
15133 archive_cmds_need_lc_CXX=yes
15134
15135 if test yes,yes = "$GCC,$enable_shared"; then
15136 case $archive_cmds_CXX in
15137 *'~'*)
15138 # FIXME: we may have to deal with multi-command sequences.
15139 ;;
15140 '$CC '*)
15141 # Test whether the compiler implicitly links with -lc since on some
15142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15143 # to ld, don't add -lc before -lgcc.
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15145$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15146if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148else
15149 $RM conftest*
15150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15151
15152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15153 (eval $ac_compile) 2>&5
15154 ac_status=$?
15155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15156 test $ac_status = 0; } 2>conftest.err; then
15157 soname=conftest
15158 lib=conftest
15159 libobjs=conftest.$ac_objext
15160 deplibs=
15161 wl=$lt_prog_compiler_wl_CXX
15162 pic_flag=$lt_prog_compiler_pic_CXX
15163 compiler_flags=-v
15164 linker_flags=-v
15165 verstring=
15166 output_objdir=.
15167 libname=conftest
15168 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15169 allow_undefined_flag_CXX=
15170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15171 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15172 ac_status=$?
15173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15174 test $ac_status = 0; }
15175 then
15176 lt_cv_archive_cmds_need_lc_CXX=no
15177 else
15178 lt_cv_archive_cmds_need_lc_CXX=yes
15179 fi
15180 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15181 else
15182 cat conftest.err 1>&5
15183 fi
15184 $RM conftest*
15185
15186fi
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15188$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15189 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15190 ;;
15191 esac
15192 fi
15193 ;;
15194esac
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15258$as_echo_n "checking dynamic linker characteristics... " >&6; }
15259
15260library_names_spec=
15261libname_spec='lib$name'
15262soname_spec=
15263shrext_cmds=.so
15264postinstall_cmds=
15265postuninstall_cmds=
15266finish_cmds=
15267finish_eval=
15268shlibpath_var=
15269shlibpath_overrides_runpath=unknown
15270version_type=none
15271dynamic_linker="$host_os ld.so"
15272sys_lib_dlsearch_path_spec="/lib /usr/lib"
15273need_lib_prefix=unknown
15274hardcode_into_libs=no
15275
15276# when you set need_version to no, make sure it does not cause -set_version
15277# flags to be left without arguments
15278need_version=unknown
15279
15280
15281
15282case $host_os in
15283aix3*)
15284 version_type=linux # correct to gnu/linux during the next big refactor
15285 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15286 shlibpath_var=LIBPATH
15287
15288 # AIX 3 has no versioning support, so we append a major version to the name.
15289 soname_spec='$libname$release$shared_ext$major'
15290 ;;
15291
15292aix[4-9]*)
15293 version_type=linux # correct to gnu/linux during the next big refactor
15294 need_lib_prefix=no
15295 need_version=no
15296 hardcode_into_libs=yes
15297 if test ia64 = "$host_cpu"; then
15298 # AIX 5 supports IA64
15299 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 else
15302 # With GCC up to 2.95.x, collect2 would create an import file
15303 # for dependence libraries. The import file would start with
15304 # the line '#! .'. This would cause the generated library to
15305 # depend on '.', always an invalid library. This was fixed in
15306 # development snapshots of GCC prior to 3.0.
15307 case $host_os in
15308 aix4 | aix4.[01] | aix4.[01].*)
15309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15310 echo ' yes '
15311 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15312 :
15313 else
15314 can_build_shared=no
15315 fi
15316 ;;
15317 esac
15318 # Using Import Files as archive members, it is possible to support
15319 # filename-based versioning of shared library archives on AIX. While
15320 # this would work for both with and without runtime linking, it will
15321 # prevent static linking of such archives. So we do filename-based
15322 # shared library versioning with .so extension only, which is used
15323 # when both runtime linking and shared linking is enabled.
15324 # Unfortunately, runtime linking may impact performance, so we do
15325 # not want this to be the default eventually. Also, we use the
15326 # versioned .so libs for executables only if there is the -brtl
15327 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15328 # To allow for filename-based versioning support, we need to create
15329 # libNAME.so.V as an archive file, containing:
15330 # *) an Import File, referring to the versioned filename of the
15331 # archive as well as the shared archive member, telling the
15332 # bitwidth (32 or 64) of that shared object, and providing the
15333 # list of exported symbols of that shared object, eventually
15334 # decorated with the 'weak' keyword
15335 # *) the shared object with the F_LOADONLY flag set, to really avoid
15336 # it being seen by the linker.
15337 # At run time we better use the real file rather than another symlink,
15338 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15339
15340 case $with_aix_soname,$aix_use_runtimelinking in
15341 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15342 # soname into executable. Probably we can add versioning support to
15343 # collect2, so additional links can be useful in future.
15344 aix,yes) # traditional libtool
15345 dynamic_linker='AIX unversionable lib.so'
15346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15347 # instead of lib<name>.a to let people know that these are not
15348 # typical AIX shared libraries.
15349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15350 ;;
15351 aix,no) # traditional AIX only
15352 dynamic_linker='AIX lib.a(lib.so.V)'
15353 # We preserve .a as extension for shared libraries through AIX4.2
15354 # and later when we are not doing run time linking.
15355 library_names_spec='$libname$release.a $libname.a'
15356 soname_spec='$libname$release$shared_ext$major'
15357 ;;
15358 svr4,*) # full svr4 only
15359 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15360 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15361 # We do not specify a path in Import Files, so LIBPATH fires.
15362 shlibpath_overrides_runpath=yes
15363 ;;
15364 *,yes) # both, prefer svr4
15365 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15366 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15367 # unpreferred sharedlib libNAME.a needs extra handling
15368 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"'
15369 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"'
15370 # We do not specify a path in Import Files, so LIBPATH fires.
15371 shlibpath_overrides_runpath=yes
15372 ;;
15373 *,no) # both, prefer aix
15374 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15375 library_names_spec='$libname$release.a $libname.a'
15376 soname_spec='$libname$release$shared_ext$major'
15377 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15378 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)'
15379 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"'
15380 ;;
15381 esac
15382 shlibpath_var=LIBPATH
15383 fi
15384 ;;
15385
15386amigaos*)
15387 case $host_cpu in
15388 powerpc)
15389 # Since July 2007 AmigaOS4 officially supports .so libraries.
15390 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15392 ;;
15393 m68k)
15394 library_names_spec='$libname.ixlibrary $libname.a'
15395 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15396 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'
15397 ;;
15398 esac
15399 ;;
15400
15401beos*)
15402 library_names_spec='$libname$shared_ext'
15403 dynamic_linker="$host_os ld.so"
15404 shlibpath_var=LIBRARY_PATH
15405 ;;
15406
15407bsdi[45]*)
15408 version_type=linux # correct to gnu/linux during the next big refactor
15409 need_version=no
15410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15411 soname_spec='$libname$release$shared_ext$major'
15412 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15415 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15416 # the default ld.so.conf also contains /usr/contrib/lib and
15417 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15418 # libtool to hard-code these into programs
15419 ;;
15420
15421cygwin* | mingw* | pw32* | cegcc*)
15422 version_type=windows
15423 shrext_cmds=.dll
15424 need_version=no
15425 need_lib_prefix=no
15426
15427 case $GCC,$cc_basename in
15428 yes,*)
15429 # gcc
15430 library_names_spec='$libname.dll.a'
15431 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15432 postinstall_cmds='base_file=`basename \$file`~
15433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15434 dldir=$destdir/`dirname \$dlpath`~
15435 test -d \$dldir || mkdir -p \$dldir~
15436 $install_prog $dir/$dlname \$dldir/$dlname~
15437 chmod a+x \$dldir/$dlname~
15438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15440 fi'
15441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15442 dlpath=$dir/\$dldll~
15443 $RM \$dlpath'
15444 shlibpath_overrides_runpath=yes
15445
15446 case $host_os in
15447 cygwin*)
15448 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15449 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15450
15451 ;;
15452 mingw* | cegcc*)
15453 # MinGW DLLs use traditional 'lib' prefix
15454 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15455 ;;
15456 pw32*)
15457 # pw32 DLLs use 'pw' prefix rather than 'lib'
15458 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15459 ;;
15460 esac
15461 dynamic_linker='Win32 ld.exe'
15462 ;;
15463
15464 *,cl*)
15465 # Native MSVC
15466 libname_spec='$name'
15467 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15468 library_names_spec='$libname.dll.lib'
15469
15470 case $build_os in
15471 mingw*)
15472 sys_lib_search_path_spec=
15473 lt_save_ifs=$IFS
15474 IFS=';'
15475 for lt_path in $LIB
15476 do
15477 IFS=$lt_save_ifs
15478 # Let DOS variable expansion print the short 8.3 style file name.
15479 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15480 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15481 done
15482 IFS=$lt_save_ifs
15483 # Convert to MSYS style.
15484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15485 ;;
15486 cygwin*)
15487 # Convert to unix form, then to dos form, then back to unix form
15488 # but this time dos style (no spaces!) so that the unix form looks
15489 # like /cygdrive/c/PROGRA~1:/cygdr...
15490 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15491 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15492 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15493 ;;
15494 *)
15495 sys_lib_search_path_spec=$LIB
15496 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15497 # It is most probably a Windows format PATH.
15498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15499 else
15500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15501 fi
15502 # FIXME: find the short name or the path components, as spaces are
15503 # common. (e.g. "Program Files" -> "PROGRA~1")
15504 ;;
15505 esac
15506
15507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15508 postinstall_cmds='base_file=`basename \$file`~
15509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15510 dldir=$destdir/`dirname \$dlpath`~
15511 test -d \$dldir || mkdir -p \$dldir~
15512 $install_prog $dir/$dlname \$dldir/$dlname'
15513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15514 dlpath=$dir/\$dldll~
15515 $RM \$dlpath'
15516 shlibpath_overrides_runpath=yes
15517 dynamic_linker='Win32 link.exe'
15518 ;;
15519
15520 *)
15521 # Assume MSVC wrapper
15522 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15523 dynamic_linker='Win32 ld.exe'
15524 ;;
15525 esac
15526 # FIXME: first we should search . and the directory the executable is in
15527 shlibpath_var=PATH
15528 ;;
15529
15530darwin* | rhapsody*)
15531 dynamic_linker="$host_os dyld"
15532 version_type=darwin
15533 need_lib_prefix=no
15534 need_version=no
15535 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15536 soname_spec='$libname$release$major$shared_ext'
15537 shlibpath_overrides_runpath=yes
15538 shlibpath_var=DYLD_LIBRARY_PATH
15539 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15540
15541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15542 ;;
15543
15544dgux*)
15545 version_type=linux # correct to gnu/linux during the next big refactor
15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15549 soname_spec='$libname$release$shared_ext$major'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 ;;
15552
15553freebsd* | dragonfly*)
15554 # DragonFly does not have aout. When/if they implement a new
15555 # versioning mechanism, adjust this.
15556 if test -x /usr/bin/objformat; then
15557 objformat=`/usr/bin/objformat`
15558 else
15559 case $host_os in
15560 freebsd[23].*) objformat=aout ;;
15561 *) objformat=elf ;;
15562 esac
15563 fi
15564 version_type=freebsd-$objformat
15565 case $version_type in
15566 freebsd-elf*)
15567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15568 soname_spec='$libname$release$shared_ext$major'
15569 need_version=no
15570 need_lib_prefix=no
15571 ;;
15572 freebsd-*)
15573 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15574 need_version=yes
15575 ;;
15576 esac
15577 shlibpath_var=LD_LIBRARY_PATH
15578 case $host_os in
15579 freebsd2.*)
15580 shlibpath_overrides_runpath=yes
15581 ;;
15582 freebsd3.[01]* | freebsdelf3.[01]*)
15583 shlibpath_overrides_runpath=yes
15584 hardcode_into_libs=yes
15585 ;;
15586 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15587 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15588 shlibpath_overrides_runpath=no
15589 hardcode_into_libs=yes
15590 ;;
15591 *) # from 4.6 on, and DragonFly
15592 shlibpath_overrides_runpath=yes
15593 hardcode_into_libs=yes
15594 ;;
15595 esac
15596 ;;
15597
15598haiku*)
15599 version_type=linux # correct to gnu/linux during the next big refactor
15600 need_lib_prefix=no
15601 need_version=no
15602 dynamic_linker="$host_os runtime_loader"
15603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15604 soname_spec='$libname$release$shared_ext$major'
15605 shlibpath_var=LIBRARY_PATH
15606 shlibpath_overrides_runpath=no
15607 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15608 hardcode_into_libs=yes
15609 ;;
15610
15611hpux9* | hpux10* | hpux11*)
15612 # Give a soname corresponding to the major version so that dld.sl refuses to
15613 # link against other versions.
15614 version_type=sunos
15615 need_lib_prefix=no
15616 need_version=no
15617 case $host_cpu in
15618 ia64*)
15619 shrext_cmds='.so'
15620 hardcode_into_libs=yes
15621 dynamic_linker="$host_os dld.so"
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15625 soname_spec='$libname$release$shared_ext$major'
15626 if test 32 = "$HPUX_IA64_MODE"; then
15627 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15628 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15629 else
15630 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15631 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15632 fi
15633 ;;
15634 hppa*64*)
15635 shrext_cmds='.sl'
15636 hardcode_into_libs=yes
15637 dynamic_linker="$host_os dld.sl"
15638 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15641 soname_spec='$libname$release$shared_ext$major'
15642 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15644 ;;
15645 *)
15646 shrext_cmds='.sl'
15647 dynamic_linker="$host_os dld.sl"
15648 shlibpath_var=SHLIB_PATH
15649 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15651 soname_spec='$libname$release$shared_ext$major'
15652 ;;
15653 esac
15654 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15655 postinstall_cmds='chmod 555 $lib'
15656 # or fails outright, so override atomically:
15657 install_override_mode=555
15658 ;;
15659
15660interix[3-9]*)
15661 version_type=linux # correct to gnu/linux during the next big refactor
15662 need_lib_prefix=no
15663 need_version=no
15664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15665 soname_spec='$libname$release$shared_ext$major'
15666 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 shlibpath_overrides_runpath=no
15669 hardcode_into_libs=yes
15670 ;;
15671
15672irix5* | irix6* | nonstopux*)
15673 case $host_os in
15674 nonstopux*) version_type=nonstopux ;;
15675 *)
15676 if test yes = "$lt_cv_prog_gnu_ld"; then
15677 version_type=linux # correct to gnu/linux during the next big refactor
15678 else
15679 version_type=irix
15680 fi ;;
15681 esac
15682 need_lib_prefix=no
15683 need_version=no
15684 soname_spec='$libname$release$shared_ext$major'
15685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15686 case $host_os in
15687 irix5* | nonstopux*)
15688 libsuff= shlibsuff=
15689 ;;
15690 *)
15691 case $LD in # libtool.m4 will add one of these switches to LD
15692 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15693 libsuff= shlibsuff= libmagic=32-bit;;
15694 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15695 libsuff=32 shlibsuff=N32 libmagic=N32;;
15696 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15697 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15698 *) libsuff= shlibsuff= libmagic=never-match;;
15699 esac
15700 ;;
15701 esac
15702 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15703 shlibpath_overrides_runpath=no
15704 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15705 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15706 hardcode_into_libs=yes
15707 ;;
15708
15709# No shared lib support for Linux oldld, aout, or coff.
15710linux*oldld* | linux*aout* | linux*coff*)
15711 dynamic_linker=no
15712 ;;
15713
15714linux*android*)
15715 version_type=none # Android doesn't support versioned libraries.
15716 need_lib_prefix=no
15717 need_version=no
15718 library_names_spec='$libname$release$shared_ext'
15719 soname_spec='$libname$release$shared_ext'
15720 finish_cmds=
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=yes
15723
15724 # This implies no fast_install, which is unacceptable.
15725 # Some rework will be needed to allow for fast_install
15726 # before this can be enabled.
15727 hardcode_into_libs=yes
15728
15729 dynamic_linker='Android linker'
15730 # Don't embed -rpath directories since the linker doesn't support them.
15731 hardcode_libdir_flag_spec_CXX='-L$libdir'
15732 ;;
15733
15734# This must be glibc/ELF.
15735linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15736 version_type=linux # correct to gnu/linux during the next big refactor
15737 need_lib_prefix=no
15738 need_version=no
15739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15740 soname_spec='$libname$release$shared_ext$major'
15741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=no
15744
15745 # Some binutils ld are patched to set DT_RUNPATH
15746 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15747 $as_echo_n "(cached) " >&6
15748else
15749 lt_cv_shlibpath_overrides_runpath=no
15750 save_LDFLAGS=$LDFLAGS
15751 save_libdir=$libdir
15752 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15753 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755/* end confdefs.h. */
15756
15757int
15758main ()
15759{
15760
15761 ;
15762 return 0;
15763}
15764_ACEOF
15765if ac_fn_cxx_try_link "$LINENO"; then :
15766 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15767 lt_cv_shlibpath_overrides_runpath=yes
15768fi
15769fi
15770rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15772 LDFLAGS=$save_LDFLAGS
15773 libdir=$save_libdir
15774
15775fi
15776
15777 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15778
15779 # This implies no fast_install, which is unacceptable.
15780 # Some rework will be needed to allow for fast_install
15781 # before this can be enabled.
15782 hardcode_into_libs=yes
15783
15784 # Add ABI-specific directories to the system library path.
15785 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15786
15787 # Ideally, we could use ldconfig to report *all* directores which are
15788 # searched for libraries, however this is still not possible. Aside from not
15789 # being certain /sbin/ldconfig is available, command
15790 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15791 # even though it is searched at run-time. Try to do the best guess by
15792 # appending ld.so.conf contents (and includes) to the search path.
15793 if test -f /etc/ld.so.conf; then
15794 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' ' '`
15795 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15796 fi
15797
15798 # We used to test for /lib/ld.so.1 and disable shared libraries on
15799 # powerpc, because MkLinux only supported shared libraries with the
15800 # GNU dynamic linker. Since this was broken with cross compilers,
15801 # most powerpc-linux boxes support dynamic linking these days and
15802 # people can always --disable-shared, the test was removed, and we
15803 # assume the GNU/Linux dynamic linker is in use.
15804 dynamic_linker='GNU/Linux ld.so'
15805 ;;
15806
15807netbsd*)
15808 version_type=sunos
15809 need_lib_prefix=no
15810 need_version=no
15811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15812 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15814 dynamic_linker='NetBSD (a.out) ld.so'
15815 else
15816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15817 soname_spec='$libname$release$shared_ext$major'
15818 dynamic_linker='NetBSD ld.elf_so'
15819 fi
15820 shlibpath_var=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath=yes
15822 hardcode_into_libs=yes
15823 ;;
15824
15825newsos6)
15826 version_type=linux # correct to gnu/linux during the next big refactor
15827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath=yes
15830 ;;
15831
15832*nto* | *qnx*)
15833 version_type=qnx
15834 need_lib_prefix=no
15835 need_version=no
15836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15837 soname_spec='$libname$release$shared_ext$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath=no
15840 hardcode_into_libs=yes
15841 dynamic_linker='ldqnx.so'
15842 ;;
15843
15844openbsd* | bitrig*)
15845 version_type=sunos
15846 sys_lib_dlsearch_path_spec=/usr/lib
15847 need_lib_prefix=no
15848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15849 need_version=no
15850 else
15851 need_version=yes
15852 fi
15853 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15855 shlibpath_var=LD_LIBRARY_PATH
15856 shlibpath_overrides_runpath=yes
15857 ;;
15858
15859os2*)
15860 libname_spec='$name'
15861 version_type=windows
15862 shrext_cmds=.dll
15863 need_version=no
15864 need_lib_prefix=no
15865 # OS/2 can only load a DLL with a base name of 8 characters or less.
15866 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15867 v=$($ECHO $release$versuffix | tr -d .-);
15868 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15869 $ECHO $n$v`$shared_ext'
15870 library_names_spec='${libname}_dll.$libext'
15871 dynamic_linker='OS/2 ld.exe'
15872 shlibpath_var=BEGINLIBPATH
15873 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15875 postinstall_cmds='base_file=`basename \$file`~
15876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15877 dldir=$destdir/`dirname \$dlpath`~
15878 test -d \$dldir || mkdir -p \$dldir~
15879 $install_prog $dir/$dlname \$dldir/$dlname~
15880 chmod a+x \$dldir/$dlname~
15881 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15882 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15883 fi'
15884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15885 dlpath=$dir/\$dldll~
15886 $RM \$dlpath'
15887 ;;
15888
15889osf3* | osf4* | osf5*)
15890 version_type=osf
15891 need_lib_prefix=no
15892 need_version=no
15893 soname_spec='$libname$release$shared_ext$major'
15894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15898 ;;
15899
15900rdos*)
15901 dynamic_linker=no
15902 ;;
15903
15904solaris*)
15905 version_type=linux # correct to gnu/linux during the next big refactor
15906 need_lib_prefix=no
15907 need_version=no
15908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15909 soname_spec='$libname$release$shared_ext$major'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 shlibpath_overrides_runpath=yes
15912 hardcode_into_libs=yes
15913 # ldd complains unless libraries are executable
15914 postinstall_cmds='chmod +x $lib'
15915 ;;
15916
15917sunos4*)
15918 version_type=sunos
15919 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath=yes
15923 if test yes = "$with_gnu_ld"; then
15924 need_lib_prefix=no
15925 fi
15926 need_version=yes
15927 ;;
15928
15929sysv4 | sysv4.3*)
15930 version_type=linux # correct to gnu/linux during the next big refactor
15931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15932 soname_spec='$libname$release$shared_ext$major'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 case $host_vendor in
15935 sni)
15936 shlibpath_overrides_runpath=no
15937 need_lib_prefix=no
15938 runpath_var=LD_RUN_PATH
15939 ;;
15940 siemens)
15941 need_lib_prefix=no
15942 ;;
15943 motorola)
15944 need_lib_prefix=no
15945 need_version=no
15946 shlibpath_overrides_runpath=no
15947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15948 ;;
15949 esac
15950 ;;
15951
15952sysv4*MP*)
15953 if test -d /usr/nec; then
15954 version_type=linux # correct to gnu/linux during the next big refactor
15955 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15956 soname_spec='$libname$shared_ext.$major'
15957 shlibpath_var=LD_LIBRARY_PATH
15958 fi
15959 ;;
15960
15961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15962 version_type=sco
15963 need_lib_prefix=no
15964 need_version=no
15965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15966 soname_spec='$libname$release$shared_ext$major'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=yes
15969 hardcode_into_libs=yes
15970 if test yes = "$with_gnu_ld"; then
15971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15972 else
15973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15974 case $host_os in
15975 sco3.2v5*)
15976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15977 ;;
15978 esac
15979 fi
15980 sys_lib_dlsearch_path_spec='/usr/lib'
15981 ;;
15982
15983tpf*)
15984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15985 version_type=linux # correct to gnu/linux during the next big refactor
15986 need_lib_prefix=no
15987 need_version=no
15988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15989 shlibpath_var=LD_LIBRARY_PATH
15990 shlibpath_overrides_runpath=no
15991 hardcode_into_libs=yes
15992 ;;
15993
15994uts4*)
15995 version_type=linux # correct to gnu/linux during the next big refactor
15996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15997 soname_spec='$libname$release$shared_ext$major'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 ;;
16000
16001*)
16002 dynamic_linker=no
16003 ;;
16004esac
16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16006$as_echo "$dynamic_linker" >&6; }
16007test no = "$dynamic_linker" && can_build_shared=no
16008
16009variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16010if test yes = "$GCC"; then
16011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16012fi
16013
16014if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16015 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16016fi
d9898ee8 16017
0e333c05
CE
16018if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16019 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
d9898ee8 16020fi
16021
0e333c05
CE
16022# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16023configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16024
16025# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16026func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16027
16028# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16029configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16030
16031
d9898ee8 16032
d9898ee8 16033
8d138742
CE
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
d9898ee8 16051
d9898ee8 16052
8d138742
CE
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
8d138742 16063
8d138742 16064
d9898ee8 16065
d9898ee8 16066
d9898ee8 16067
d9898ee8 16068
d9898ee8 16069
0e333c05
CE
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16071$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16072hardcode_action_CXX=
16073if test -n "$hardcode_libdir_flag_spec_CXX" ||
16074 test -n "$runpath_var_CXX" ||
16075 test yes = "$hardcode_automatic_CXX"; then
16076
16077 # We can hardcode non-existent directories.
16078 if test no != "$hardcode_direct_CXX" &&
16079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16080 # have to relink, otherwise we might link with an installed library
16081 # when we should be linking with a yet-to-be-installed one
16082 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16083 test no != "$hardcode_minus_L_CXX"; then
16084 # Linking always hardcodes the temporary library directory.
16085 hardcode_action_CXX=relink
16086 else
16087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16088 hardcode_action_CXX=immediate
16089 fi
16090else
16091 # We cannot hardcode anything, or else we can only hardcode existing
16092 # directories.
16093 hardcode_action_CXX=unsupported
16094fi
16095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16096$as_echo "$hardcode_action_CXX" >&6; }
d9898ee8 16097
0e333c05
CE
16098if test relink = "$hardcode_action_CXX" ||
16099 test yes = "$inherit_rpath_CXX"; then
16100 # Fast installation is not supported
16101 enable_fast_install=no
16102elif test yes = "$shlibpath_overrides_runpath" ||
16103 test no = "$enable_shared"; then
16104 # Fast installation is not necessary
16105 enable_fast_install=needless
8d138742 16106fi
0e333c05
CE
16107
16108
16109
16110
16111
16112
16113
16114 fi # test -n "$compiler"
16115
16116 CC=$lt_save_CC
16117 CFLAGS=$lt_save_CFLAGS
16118 LDCXX=$LD
16119 LD=$lt_save_LD
16120 GCC=$lt_save_GCC
16121 with_gnu_ld=$lt_save_with_gnu_ld
16122 lt_cv_path_LDCXX=$lt_cv_path_LD
16123 lt_cv_path_LD=$lt_save_path_LD
16124 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16125 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16126fi # test yes != "$_lt_caught_CXX_error"
16127
8d138742
CE
16128ac_ext=c
16129ac_cpp='$CPP $CPPFLAGS'
16130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 16133
d9898ee8 16134
d9898ee8 16135
d9898ee8 16136
d9898ee8 16137
d9898ee8 16138
d9898ee8 16139
d9898ee8 16140
d9898ee8 16141
d9898ee8 16142
d9898ee8 16143
d9898ee8 16144
d9898ee8 16145
b0322a85
CE
16146
16147
8d138742 16148 ac_config_commands="$ac_config_commands libtool"
d9898ee8 16149
d9898ee8 16150
d9898ee8 16151
d9898ee8 16152
8d138742 16153# Only expand once:
d9898ee8 16154
d9898ee8 16155
d50284c4
CE
16156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
16157$as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
b0322a85 16158if ${libltdl_cv_shlibext+:} false; then :
8d138742
CE
16159 $as_echo_n "(cached) " >&6
16160else
d9898ee8 16161
8d138742
CE
16162module=yes
16163eval libltdl_cv_shlibext=$shrext_cmds
b0322a85
CE
16164module=no
16165eval libltdl_cv_shrext=$shrext_cmds
8d138742
CE
16166
16167fi
b0322a85 16168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
8d138742
CE
16169$as_echo "$libltdl_cv_shlibext" >&6; }
16170if test -n "$libltdl_cv_shlibext"; then
16171
16172cat >>confdefs.h <<_ACEOF
16173#define LT_MODULE_EXT "$libltdl_cv_shlibext"
d9898ee8 16174_ACEOF
8d138742 16175
b0322a85
CE
16176fi
16177if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16178
16179cat >>confdefs.h <<_ACEOF
16180#define LT_SHARED_EXT "$libltdl_cv_shrext"
16181_ACEOF
16182
d50284c4
CE
16183fi
16184if test -n "$shared_archive_member_spec"; then
16185
16186cat >>confdefs.h <<_ACEOF
16187#define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
16188_ACEOF
16189
8d138742
CE
16190fi
16191
d50284c4
CE
16192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
16193$as_echo_n "checking what variable specifies run-time module search path... " >&6; }
b0322a85 16194if ${lt_cv_module_path_var+:} false; then :
8d138742
CE
16195 $as_echo_n "(cached) " >&6
16196else
d50284c4 16197 lt_cv_module_path_var=$shlibpath_var
8d138742 16198fi
b0322a85 16199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
8d138742
CE
16200$as_echo "$lt_cv_module_path_var" >&6; }
16201if test -n "$lt_cv_module_path_var"; then
16202
16203cat >>confdefs.h <<_ACEOF
16204#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16205_ACEOF
16206
16207fi
16208
b0322a85 16209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
8d138742 16210$as_echo_n "checking for the default library search path... " >&6; }
b0322a85 16211if ${lt_cv_sys_dlsearch_path+:} false; then :
8d138742
CE
16212 $as_echo_n "(cached) " >&6
16213else
d50284c4 16214 lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
8d138742 16215fi
b0322a85 16216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
8d138742
CE
16217$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
16218if test -n "$lt_cv_sys_dlsearch_path"; then
16219 sys_dlsearch_path=
16220 for dir in $lt_cv_sys_dlsearch_path; do
16221 if test -z "$sys_dlsearch_path"; then
d50284c4 16222 sys_dlsearch_path=$dir
8d138742 16223 else
d50284c4 16224 sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
8d138742
CE
16225 fi
16226 done
16227
16228cat >>confdefs.h <<_ACEOF
16229#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16230_ACEOF
16231
16232fi
16233
16234
16235LT_DLLOADERS=
16236
16237
16238ac_ext=c
16239ac_cpp='$CPP $CPPFLAGS'
16240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16242ac_compiler_gnu=$ac_cv_c_compiler_gnu
16243
d50284c4 16244lt_dlload_save_LIBS=$LIBS
8d138742
CE
16245
16246LIBADD_DLOPEN=
b0322a85 16247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8d138742 16248$as_echo_n "checking for library containing dlopen... " >&6; }
b0322a85 16249if ${ac_cv_search_dlopen+:} false; then :
8d138742
CE
16250 $as_echo_n "(cached) " >&6
16251else
16252 ac_func_search_save_LIBS=$LIBS
b0322a85 16253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
16254/* end confdefs.h. */
16255
16256/* Override any GCC internal prototype to avoid an error.
16257 Use char because int might match the return type of a GCC
16258 builtin and then its argument prototype would still apply. */
16259#ifdef __cplusplus
16260extern "C"
16261#endif
16262char dlopen ();
16263int
16264main ()
16265{
16266return dlopen ();
16267 ;
16268 return 0;
16269}
16270_ACEOF
16271for ac_lib in '' dl; do
16272 if test -z "$ac_lib"; then
16273 ac_res="none required"
16274 else
16275 ac_res=-l$ac_lib
16276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16277 fi
b0322a85 16278 if ac_fn_c_try_link "$LINENO"; then :
8d138742 16279 ac_cv_search_dlopen=$ac_res
d9898ee8 16280fi
b0322a85
CE
16281rm -f core conftest.err conftest.$ac_objext \
16282 conftest$ac_exeext
16283 if ${ac_cv_search_dlopen+:} false; then :
8d138742
CE
16284 break
16285fi
16286done
b0322a85
CE
16287if ${ac_cv_search_dlopen+:} false; then :
16288
8d138742
CE
16289else
16290 ac_cv_search_dlopen=no
16291fi
16292rm conftest.$ac_ext
16293LIBS=$ac_func_search_save_LIBS
16294fi
b0322a85 16295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8d138742
CE
16296$as_echo "$ac_cv_search_dlopen" >&6; }
16297ac_res=$ac_cv_search_dlopen
b0322a85 16298if test "$ac_res" != no; then :
8d138742 16299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 16300
b0322a85 16301$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
8d138742 16302
d50284c4
CE
16303 if test "$ac_cv_search_dlopen" != "none required"; then
16304 LIBADD_DLOPEN=-ldl
8d138742 16305 fi
d50284c4 16306 libltdl_cv_lib_dl_dlopen=yes
8d138742
CE
16307 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16308else
b0322a85 16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
16310/* end confdefs.h. */
16311#if HAVE_DLFCN_H
16312# include <dlfcn.h>
16313#endif
d9898ee8 16314
8d138742
CE
16315int
16316main ()
16317{
16318dlopen(0, 0);
16319 ;
16320 return 0;
16321}
d9898ee8 16322_ACEOF
b0322a85 16323if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 16324
b0322a85 16325$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
8d138742 16326
d50284c4 16327 libltdl_cv_func_dlopen=yes
8d138742 16328 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
d9898ee8 16329else
b0322a85 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 16331$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 16332if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
16333 $as_echo_n "(cached) " >&6
16334else
16335 ac_check_lib_save_LIBS=$LIBS
16336LIBS="-lsvld $LIBS"
b0322a85 16337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
16338/* end confdefs.h. */
16339
16340/* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
16343#ifdef __cplusplus
16344extern "C"
16345#endif
16346char dlopen ();
16347int
16348main ()
16349{
16350return dlopen ();
16351 ;
16352 return 0;
16353}
16354_ACEOF
b0322a85 16355if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
16356 ac_cv_lib_svld_dlopen=yes
16357else
b0322a85 16358 ac_cv_lib_svld_dlopen=no
d9898ee8 16359fi
b0322a85
CE
16360rm -f core conftest.err conftest.$ac_objext \
16361 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
16362LIBS=$ac_check_lib_save_LIBS
16363fi
b0322a85 16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 16365$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 16366if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d9898ee8 16367
b0322a85 16368$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
d9898ee8 16369
d50284c4 16370 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
8d138742
CE
16371 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16372fi
d9898ee8 16373
8d138742 16374fi
b0322a85
CE
16375rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
8d138742 16377fi
d9898ee8 16378
d50284c4 16379if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
8d138742 16380then
d50284c4 16381 lt_save_LIBS=$LIBS
8d138742 16382 LIBS="$LIBS $LIBADD_DLOPEN"
b0322a85
CE
16383 for ac_func in dlerror
16384do :
16385 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16386if test "x$ac_cv_func_dlerror" = xyes; then :
8d138742 16387 cat >>confdefs.h <<_ACEOF
b0322a85 16388#define HAVE_DLERROR 1
8d138742 16389_ACEOF
d9898ee8 16390
8d138742
CE
16391fi
16392done
d9898ee8 16393
d50284c4 16394 LIBS=$lt_save_LIBS
8d138742 16395fi
d9898ee8 16396
d9898ee8 16397
8d138742 16398LIBADD_SHL_LOAD=
b0322a85
CE
16399ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16400if test "x$ac_cv_func_shl_load" = xyes; then :
d9898ee8 16401
b0322a85 16402$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
d9898ee8 16403
8d138742
CE
16404 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16405else
b0322a85 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 16407$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 16408if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
16409 $as_echo_n "(cached) " >&6
16410else
16411 ac_check_lib_save_LIBS=$LIBS
16412LIBS="-ldld $LIBS"
b0322a85 16413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16414/* end confdefs.h. */
d9898ee8 16415
8d138742
CE
16416/* Override any GCC internal prototype to avoid an error.
16417 Use char because int might match the return type of a GCC
16418 builtin and then its argument prototype would still apply. */
16419#ifdef __cplusplus
16420extern "C"
16421#endif
16422char shl_load ();
16423int
16424main ()
16425{
16426return shl_load ();
16427 ;
16428 return 0;
16429}
16430_ACEOF
b0322a85 16431if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
16432 ac_cv_lib_dld_shl_load=yes
16433else
b0322a85 16434 ac_cv_lib_dld_shl_load=no
8d138742 16435fi
b0322a85
CE
16436rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
16438LIBS=$ac_check_lib_save_LIBS
16439fi
b0322a85 16440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 16441$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 16442if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d9898ee8 16443
b0322a85 16444$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
d9898ee8 16445
8d138742 16446 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
d50284c4 16447 LIBADD_SHL_LOAD=-ldld
8d138742 16448fi
d9898ee8 16449
8d138742 16450fi
d9898ee8 16451
d9898ee8 16452
d9898ee8 16453
8d138742
CE
16454case $host_os in
16455darwin[1567].*)
16456# We only want this for pre-Mac OS X 10.4.
b0322a85
CE
16457 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16458if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16459
16460$as_echo "#define HAVE_DYLD 1" >>confdefs.h
16461
16462 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16463fi
16464
16465 ;;
16466beos*)
16467 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16468 ;;
d50284c4 16469cygwin* | mingw* | pw32*)
b0322a85
CE
16470 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16471"
16472if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16473 ac_have_decl=1
8d138742 16474else
b0322a85
CE
16475 ac_have_decl=0
16476fi
d9898ee8 16477
b0322a85
CE
16478cat >>confdefs.h <<_ACEOF
16479#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16480_ACEOF
d9898ee8 16481
b0322a85
CE
16482 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16483 ;;
16484esac
d9898ee8 16485
b0322a85
CE
16486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16487$as_echo_n "checking for dld_link in -ldld... " >&6; }
16488if ${ac_cv_lib_dld_dld_link+:} false; then :
16489 $as_echo_n "(cached) " >&6
16490else
16491 ac_check_lib_save_LIBS=$LIBS
16492LIBS="-ldld $LIBS"
16493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494/* end confdefs.h. */
d9898ee8 16495
8d138742
CE
16496/* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16499#ifdef __cplusplus
16500extern "C"
16501#endif
b0322a85 16502char dld_link ();
8d138742
CE
16503int
16504main ()
16505{
b0322a85 16506return dld_link ();
8d138742
CE
16507 ;
16508 return 0;
16509}
16510_ACEOF
b0322a85
CE
16511if ac_fn_c_try_link "$LINENO"; then :
16512 ac_cv_lib_dld_dld_link=yes
8d138742 16513else
b0322a85 16514 ac_cv_lib_dld_dld_link=no
8d138742 16515fi
b0322a85
CE
16516rm -f core conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16518LIBS=$ac_check_lib_save_LIBS
8d138742 16519fi
b0322a85
CE
16520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16521$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16522if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d9898ee8 16523
b0322a85 16524$as_echo "#define HAVE_DLD 1" >>confdefs.h
d9898ee8 16525
8d138742
CE
16526 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16527fi
d9898ee8 16528
d9898ee8 16529
d9898ee8 16530
d9898ee8 16531
8d138742
CE
16532LT_DLPREOPEN=
16533if test -n "$LT_DLLOADERS"
16534then
16535 for lt_loader in $LT_DLLOADERS; do
16536 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16537 done
d9898ee8 16538
b0322a85 16539$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
d9898ee8 16540
8d138742 16541fi
d9898ee8 16542
ac40fd9e 16543
8d138742 16544LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
d9898ee8 16545
d9898ee8 16546
d50284c4 16547LIBS=$lt_dlload_save_LIBS
8d138742
CE
16548ac_ext=c
16549ac_cpp='$CPP $CPPFLAGS'
16550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 16553
d9898ee8 16554
b0322a85 16555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
8d138742 16556$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
b0322a85 16557if ${lt_cv_sys_symbol_underscore+:} false; then :
8d138742
CE
16558 $as_echo_n "(cached) " >&6
16559else
16560 lt_cv_sys_symbol_underscore=no
16561 cat > conftest.$ac_ext <<_LT_EOF
16562void nm_test_func(){}
16563int main(){nm_test_func;return 0;}
16564_LT_EOF
b0322a85 16565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
16566 (eval $ac_compile) 2>&5
16567 ac_status=$?
b0322a85
CE
16568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16569 test $ac_status = 0; }; then
8d138742
CE
16570 # Now try to grab the symbols.
16571 ac_nlist=conftest.nm
b0322a85 16572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
8d138742
CE
16573 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16574 ac_status=$?
b0322a85
CE
16575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16576 test $ac_status = 0; } && test -s "$ac_nlist"; then
8d138742
CE
16577 # See whether the symbols have a leading underscore.
16578 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16579 lt_cv_sys_symbol_underscore=yes
16580 else
16581 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16582 :
16583 else
16584 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16585 fi
16586 fi
16587 else
16588 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16589 fi
d9898ee8 16590 else
8d138742
CE
16591 echo "configure: failed program was:" >&5
16592 cat conftest.c >&5
d9898ee8 16593 fi
8d138742 16594 rm -rf conftest*
d9898ee8 16595
d9898ee8 16596fi
b0322a85 16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
8d138742
CE
16598$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
16599 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
d9898ee8 16600
d9898ee8 16601
d50284c4
CE
16602if test yes = "$lt_cv_sys_symbol_underscore"; then
16603 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
8d138742 16605$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
b0322a85 16606if ${libltdl_cv_need_uscore+:} false; then :
8d138742 16607 $as_echo_n "(cached) " >&6
d9898ee8 16608else
8d138742 16609 libltdl_cv_need_uscore=unknown
d50284c4
CE
16610 dlsym_uscore_save_LIBS=$LIBS
16611 LIBS="$LIBS $LIBADD_DLOPEN"
16612 libname=conftmod # stay within 8.3 filename limits!
16613 cat >$libname.$ac_ext <<_LT_EOF
b0322a85 16614#line $LINENO "configure"
8d138742 16615#include "confdefs.h"
d50284c4
CE
16616/* When -fvisibility=hidden is used, assume the code has been annotated
16617 correspondingly for the symbols needed. */
16618#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16619int fnord () __attribute__((visibility("default")));
16620#endif
16621int fnord () { return 42; }
16622_LT_EOF
d9898ee8 16623
d50284c4
CE
16624 # ltfn_module_cmds module_cmds
16625 # Execute tilde-delimited MODULE_CMDS with environment primed for
16626 # $module_cmds or $archive_cmds type content.
16627 ltfn_module_cmds ()
16628 {( # subshell avoids polluting parent global environment
16629 module_cmds_save_ifs=$IFS; IFS='~'
16630 for cmd in $1; do
16631 IFS=$module_cmds_save_ifs
16632 libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
16633 rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
16634 major=; versuffix=; verstring=; deplibs=
16635 ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
16636 eval $cmd
16637 done
16638 IFS=$module_cmds_save_ifs
16639 )}
16640
16641 # Compile a loadable module using libtool macro expansion results.
16642 $CC $pic_flag -c $libname.$ac_ext
16643 ltfn_module_cmds "${module_cmds:-$archive_cmds}"
16644
16645 # Try to fetch fnord with dlsym().
16646 libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
16647 cat >conftest.$ac_ext <<_LT_EOF
16648#line $LINENO "configure"
16649#include "confdefs.h"
8d138742
CE
16650#if HAVE_DLFCN_H
16651#include <dlfcn.h>
16652#endif
8d138742 16653#include <stdio.h>
d50284c4 16654#ifndef RTLD_GLOBAL
8d138742 16655# ifdef DL_GLOBAL
d50284c4 16656# define RTLD_GLOBAL DL_GLOBAL
8d138742 16657# else
d50284c4 16658# define RTLD_GLOBAL 0
8d138742
CE
16659# endif
16660#endif
d50284c4
CE
16661#ifndef RTLD_NOW
16662# ifdef DL_NOW
16663# define RTLD_NOW DL_NOW
8d138742 16664# else
d50284c4 16665# define RTLD_NOW 0
8d138742
CE
16666# endif
16667#endif
d50284c4
CE
16668int main () {
16669 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
16670 int status = $libltdl_dlunknown;
16671 if (handle) {
16672 if (dlsym (handle, "fnord"))
16673 status = $libltdl_dlnouscore;
16674 else {
16675 if (dlsym (handle, "_fnord"))
16676 status = $libltdl_dluscore;
b0322a85 16677 else
d50284c4 16678 puts (dlerror ());
8d138742 16679 }
d50284c4
CE
16680 dlclose (handle);
16681 } else
8d138742 16682 puts (dlerror ());
8d138742
CE
16683 return status;
16684}
16685_LT_EOF
d50284c4 16686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
16687 (eval $ac_link) 2>&5
16688 ac_status=$?
b0322a85 16689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4
CE
16690 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16691 (./conftest; exit; ) >&5 2>/dev/null
16692 libltdl_status=$?
16693 case x$libltdl_status in
16694 x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
16695 x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
16696 x*) libltdl_cv_need_uscore=unknown ;;
16697 esac
16698 fi
16699 rm -rf conftest* $libname*
16700 LIBS=$dlsym_uscore_save_LIBS
d9898ee8 16701
8d138742 16702fi
b0322a85 16703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
8d138742
CE
16704$as_echo "$libltdl_cv_need_uscore" >&6; }
16705 fi
16706fi
d9898ee8 16707
d50284c4 16708if test yes = "$libltdl_cv_need_uscore"; then
d9898ee8 16709
b0322a85 16710$as_echo "#define NEED_USCORE 1" >>confdefs.h
d9898ee8 16711
8d138742 16712fi
d9898ee8 16713
b0322a85 16714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
8d138742 16715$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
b0322a85 16716if ${lt_cv_sys_dlopen_deplibs+:} false; then :
8d138742
CE
16717 $as_echo_n "(cached) " >&6
16718else
16719 # PORTME does your system automatically load deplibs for dlopen?
16720 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16721 # For now, we just catch OSes we know something about -- in the
16722 # future, we'll try test this programmatically.
16723 lt_cv_sys_dlopen_deplibs=unknown
16724 case $host_os in
16725 aix3*|aix4.1.*|aix4.2.*)
16726 # Unknown whether this is true for these versions of AIX, but
d50284c4 16727 # we want this 'case' here to explicitly catch those versions.
8d138742
CE
16728 lt_cv_sys_dlopen_deplibs=unknown
16729 ;;
16730 aix[4-9]*)
16731 lt_cv_sys_dlopen_deplibs=yes
16732 ;;
16733 amigaos*)
16734 case $host_cpu in
16735 powerpc)
16736 lt_cv_sys_dlopen_deplibs=no
16737 ;;
16738 esac
16739 ;;
d50284c4
CE
16740 bitrig*)
16741 lt_cv_sys_dlopen_deplibs=yes
16742 ;;
8d138742
CE
16743 darwin*)
16744 # Assuming the user has installed a libdl from somewhere, this is true
16745 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16746 lt_cv_sys_dlopen_deplibs=yes
16747 ;;
16748 freebsd* | dragonfly*)
16749 lt_cv_sys_dlopen_deplibs=yes
16750 ;;
b0322a85 16751 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
16752 # GNU and its variants, using gnu ld.so (Glibc)
16753 lt_cv_sys_dlopen_deplibs=yes
16754 ;;
16755 hpux10*|hpux11*)
16756 lt_cv_sys_dlopen_deplibs=yes
16757 ;;
16758 interix*)
16759 lt_cv_sys_dlopen_deplibs=yes
16760 ;;
16761 irix[12345]*|irix6.[01]*)
16762 # Catch all versions of IRIX before 6.2, and indicate that we don't
16763 # know how it worked for any of those versions.
16764 lt_cv_sys_dlopen_deplibs=unknown
16765 ;;
16766 irix*)
16767 # The case above catches anything before 6.2, and it's known that
16768 # at 6.2 and later dlopen does load deplibs.
16769 lt_cv_sys_dlopen_deplibs=yes
16770 ;;
16771 netbsd*)
16772 lt_cv_sys_dlopen_deplibs=yes
16773 ;;
16774 openbsd*)
16775 lt_cv_sys_dlopen_deplibs=yes
16776 ;;
16777 osf[1234]*)
16778 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16779 # it did *not* use an RPATH in a shared library to find objects the
d50284c4 16780 # library depends on, so we explicitly say 'no'.
8d138742
CE
16781 lt_cv_sys_dlopen_deplibs=no
16782 ;;
16783 osf5.0|osf5.0a|osf5.1)
16784 # dlopen *does* load deplibs and with the right loader patch applied
16785 # it even uses RPATH in a shared library to search for shared objects
16786 # that the library depends on, but there's no easy way to know if that
16787 # patch is installed. Since this is the case, all we can really
16788 # say is unknown -- it depends on the patch being installed. If
d50284c4 16789 # it is, this changes to 'yes'. Without it, it would be 'no'.
8d138742
CE
16790 lt_cv_sys_dlopen_deplibs=unknown
16791 ;;
16792 osf*)
16793 # the two cases above should catch all versions of osf <= 5.1. Read
16794 # the comments above for what we know about them.
16795 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
d50284c4 16796 # is used to find them so we can finally say 'yes'.
8d138742
CE
16797 lt_cv_sys_dlopen_deplibs=yes
16798 ;;
16799 qnx*)
16800 lt_cv_sys_dlopen_deplibs=yes
16801 ;;
16802 solaris*)
16803 lt_cv_sys_dlopen_deplibs=yes
16804 ;;
16805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16806 libltdl_cv_sys_dlopen_deplibs=yes
16807 ;;
16808 esac
d9898ee8 16809
8d138742 16810fi
b0322a85 16811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
8d138742 16812$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
d50284c4 16813if test yes != "$lt_cv_sys_dlopen_deplibs"; then
d9898ee8 16814
b0322a85 16815$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
d9898ee8 16816
8d138742 16817fi
d9898ee8 16818
d9898ee8 16819
8d138742 16820for ac_header in argz.h
b0322a85
CE
16821do :
16822 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16823"
16824if test "x$ac_cv_header_argz_h" = xyes; then :
8d138742 16825 cat >>confdefs.h <<_ACEOF
b0322a85 16826#define HAVE_ARGZ_H 1
8d138742 16827_ACEOF
d9898ee8 16828
8d138742 16829fi
d9898ee8 16830
8d138742 16831done
d9898ee8 16832
d9898ee8 16833
b0322a85 16834ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
8d138742
CE
16835# include <argz.h>
16836#endif
b0322a85
CE
16837"
16838if test "x$ac_cv_type_error_t" = xyes; then :
d9898ee8 16839
b0322a85
CE
16840cat >>confdefs.h <<_ACEOF
16841#define HAVE_ERROR_T 1
8d138742 16842_ACEOF
d9898ee8 16843
b0322a85 16844
8d138742 16845else
d9898ee8 16846
b0322a85 16847$as_echo "#define error_t int" >>confdefs.h
d9898ee8 16848
d9898ee8 16849
b0322a85 16850$as_echo "#define __error_t_defined 1" >>confdefs.h
d9898ee8 16851
8d138742 16852fi
d9898ee8 16853
d9898ee8 16854
d50284c4 16855LT_ARGZ_H=
b0322a85
CE
16856for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16857 argz_next argz_stringify
16858do :
16859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16860ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16861if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16862 cat >>confdefs.h <<_ACEOF
16863#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8d138742 16864_ACEOF
d9898ee8 16865
8d138742 16866else
d50284c4 16867 LT_ARGZ_H=lt__argz.h;
d9898ee8 16868
d50284c4 16869 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
d9898ee8 16870
b0322a85
CE
16871fi
16872done
d9898ee8 16873
d9898ee8 16874
d50284c4 16875if test -z "$LT_ARGZ_H"; then :
b0322a85
CE
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16877$as_echo_n "checking if argz actually works... " >&6; }
16878if ${lt_cv_sys_argz_works+:} false; then :
16879 $as_echo_n "(cached) " >&6
16880else
16881 case $host_os in #(
16882 *cygwin*)
16883 lt_cv_sys_argz_works=no
d50284c4 16884 if test no != "$cross_compiling"; then
b0322a85
CE
16885 lt_cv_sys_argz_works="guessing no"
16886 else
16887 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16888 save_IFS=$IFS
16889 IFS=-.
16890 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16891 IFS=$save_IFS
16892 lt_os_major=${2-0}
16893 lt_os_minor=${3-0}
16894 lt_os_micro=${4-0}
d50284c4
CE
16895 if test 1 -lt "$lt_os_major" \
16896 || { test 1 -eq "$lt_os_major" \
16897 && { test 5 -lt "$lt_os_minor" \
16898 || { test 5 -eq "$lt_os_minor" \
16899 && test 24 -lt "$lt_os_micro"; }; }; }; then
b0322a85
CE
16900 lt_cv_sys_argz_works=yes
16901 fi
16902 fi
16903 ;; #(
16904 *) lt_cv_sys_argz_works=yes ;;
16905 esac
8d138742 16906fi
b0322a85
CE
16907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16908$as_echo "$lt_cv_sys_argz_works" >&6; }
d50284c4 16909 if test yes = "$lt_cv_sys_argz_works"; then :
d9898ee8 16910
b0322a85 16911$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
d9898ee8 16912
b0322a85 16913else
d50284c4 16914 LT_ARGZ_H=lt__argz.h
d9898ee8 16915
d9898ee8 16916
d50284c4 16917 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
d9898ee8 16918
b0322a85
CE
16919fi
16920fi
d9898ee8 16921
d9898ee8 16922
d9898ee8 16923
b0322a85
CE
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16925$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16926if ${libltdl_cv_preloaded_symbols+:} false; then :
8d138742
CE
16927 $as_echo_n "(cached) " >&6
16928else
b0322a85
CE
16929 if test -n "$lt_cv_sys_global_symbol_pipe"; then
16930 libltdl_cv_preloaded_symbols=yes
16931 else
16932 libltdl_cv_preloaded_symbols=no
16933 fi
d9898ee8 16934
b0322a85
CE
16935fi
16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16937$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
d50284c4 16938if test yes = "$libltdl_cv_preloaded_symbols"; then
d9898ee8 16939
b0322a85 16940$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
d9898ee8 16941
8d138742 16942fi
d9898ee8 16943
d9898ee8 16944
d9898ee8 16945
8d138742 16946# Set options
d9898ee8 16947
d9898ee8 16948
d9898ee8 16949
d9898ee8 16950
d9898ee8 16951
d9898ee8 16952
d9898ee8 16953
d9898ee8 16954
d9898ee8 16955
d9898ee8 16956
d9898ee8 16957
16958
8d138742 16959# Check whether --with-included_ltdl was given.
b0322a85 16960if test "${with_included_ltdl+set}" = set; then :
8d138742 16961 withval=$with_included_ltdl;
d9898ee8 16962fi
16963
16964
d50284c4 16965if test yes != "$with_included_ltdl"; then
8d138742
CE
16966 # We are not being forced to use the included libltdl sources, so
16967 # decide whether there is a useful installed version we can use.
b0322a85 16968 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
d9898ee8 16969
b0322a85
CE
16970"
16971if test "x$ac_cv_header_ltdl_h" = xyes; then :
16972 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
8d138742 16973 #include <ltdl.h>
b0322a85
CE
16974"
16975if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
8d138742 16977$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
b0322a85 16978if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
8d138742
CE
16979 $as_echo_n "(cached) " >&6
16980else
16981 ac_check_lib_save_LIBS=$LIBS
16982LIBS="-lltdl $LIBS"
b0322a85 16983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
16984/* end confdefs.h. */
16985
16986/* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
16989#ifdef __cplusplus
16990extern "C"
16991#endif
16992char lt_dladvise_preload ();
16993int
16994main ()
16995{
16996return lt_dladvise_preload ();
16997 ;
16998 return 0;
16999}
17000_ACEOF
b0322a85 17001if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
17002 ac_cv_lib_ltdl_lt_dladvise_preload=yes
17003else
b0322a85 17004 ac_cv_lib_ltdl_lt_dladvise_preload=no
8d138742 17005fi
b0322a85
CE
17006rm -f core conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
17008LIBS=$ac_check_lib_save_LIBS
17009fi
b0322a85 17010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
8d138742 17011$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
b0322a85 17012if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
8d138742
CE
17013 with_included_ltdl=no
17014else
17015 with_included_ltdl=yes
17016fi
d9898ee8 17017
8d138742
CE
17018else
17019 with_included_ltdl=yes
17020fi
d9898ee8 17021
8d138742
CE
17022else
17023 with_included_ltdl=yes
17024fi
d9898ee8 17025
17026
8d138742 17027fi
d9898ee8 17028
d9898ee8 17029
17030
d9898ee8 17031
b0322a85
CE
17032
17033
17034
17035
8d138742 17036# Check whether --with-ltdl_include was given.
b0322a85 17037if test "${with_ltdl_include+set}" = set; then :
8d138742 17038 withval=$with_ltdl_include;
d9898ee8 17039fi
d9898ee8 17040
8d138742
CE
17041
17042if test -n "$with_ltdl_include"; then
17043 if test -f "$with_ltdl_include/ltdl.h"; then :
17044 else
d50284c4 17045 as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
8d138742 17046 fi
d9898ee8 17047else
8d138742 17048 with_ltdl_include=no
d9898ee8 17049fi
17050
8d138742
CE
17051
17052# Check whether --with-ltdl_lib was given.
b0322a85 17053if test "${with_ltdl_lib+set}" = set; then :
8d138742 17054 withval=$with_ltdl_lib;
d9898ee8 17055fi
17056
d9898ee8 17057
8d138742
CE
17058if test -n "$with_ltdl_lib"; then
17059 if test -f "$with_ltdl_lib/libltdl.la"; then :
17060 else
d50284c4 17061 as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
8d138742
CE
17062 fi
17063else
17064 with_ltdl_lib=no
17065fi
d9898ee8 17066
8d138742
CE
17067case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17068 ,yes,no,no,)
17069 case $enable_ltdl_convenience in
b0322a85 17070 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
8d138742
CE
17071 "") enable_ltdl_convenience=yes
17072 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17073esac
d50284c4 17074LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
8d138742 17075LTDLDEPS=$LIBLTDL
d50284c4 17076LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
d9898ee8 17077
d9898ee8 17078
d9898ee8 17079
d9898ee8 17080
d9898ee8 17081
8d138742 17082# For backwards non-gettext consistent compatibility...
d50284c4 17083INCLTDL=$LTDLINCL
d9898ee8 17084
d9898ee8 17085
8d138742
CE
17086 ;;
17087 ,no,no,no,)
17088 # If the included ltdl is not to be used, then use the
17089 # preinstalled libltdl we found.
d9898ee8 17090
b0322a85 17091$as_echo "#define HAVE_LTDL 1" >>confdefs.h
d9898ee8 17092
8d138742
CE
17093 LIBLTDL=-lltdl
17094 LTDLDEPS=
17095 LTDLINCL=
d9898ee8 17096 ;;
8d138742 17097 ,no*,no,*)
d50284c4 17098 as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
d9898ee8 17099 ;;
8d138742
CE
17100 *) with_included_ltdl=no
17101 LIBLTDL="-L$with_ltdl_lib -lltdl"
17102 LTDLDEPS=
d50284c4 17103 LTDLINCL=-I$with_ltdl_include
8d138742
CE
17104 ;;
17105esac
d50284c4 17106INCLTDL=$LTDLINCL
d9898ee8 17107
8d138742 17108# Report our decision...
b0322a85 17109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
8d138742 17110$as_echo_n "checking where to find libltdl headers... " >&6; }
b0322a85 17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
8d138742 17112$as_echo "$LTDLINCL" >&6; }
b0322a85 17113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
8d138742 17114$as_echo_n "checking where to find libltdl library... " >&6; }
b0322a85 17115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
8d138742 17116$as_echo "$LIBLTDL" >&6; }
d9898ee8 17117
d9898ee8 17118
d9898ee8 17119
8d138742 17120# Check whether --enable-ltdl-install was given.
b0322a85 17121if test "${enable_ltdl_install+set}" = set; then :
8d138742
CE
17122 enableval=$enable_ltdl_install;
17123fi
d9898ee8 17124
d9898ee8 17125
d50284c4 17126case ,$enable_ltdl_install,$enable_ltdl_convenience in
8d138742
CE
17127 *yes*) ;;
17128 *) enable_ltdl_convenience=yes ;;
17129esac
d9898ee8 17130
d50284c4 17131 if test no != "${enable_ltdl_install-no}"; then
8d138742
CE
17132 INSTALL_LTDL_TRUE=
17133 INSTALL_LTDL_FALSE='#'
17134else
17135 INSTALL_LTDL_TRUE='#'
17136 INSTALL_LTDL_FALSE=
17137fi
d9898ee8 17138
d50284c4 17139 if test no != "${enable_ltdl_convenience-no}"; then
8d138742
CE
17140 CONVENIENCE_LTDL_TRUE=
17141 CONVENIENCE_LTDL_FALSE='#'
17142else
17143 CONVENIENCE_LTDL_TRUE='#'
17144 CONVENIENCE_LTDL_FALSE=
17145fi
ac40fd9e 17146
d9898ee8 17147
d9898ee8 17148
8d138742 17149 subdirs="$subdirs libltdl"
d9898ee8 17150
d9898ee8 17151
d9898ee8 17152
d9898ee8 17153
8d138742
CE
17154# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17155# the user used. This is so that ltdl.h can pick up the parent projects
17156# config.h file, The first file in AC_CONFIG_HEADERS must contain the
17157# definitions required by ltdl.c.
17158# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
d9898ee8 17159
d9898ee8 17160
d9898ee8 17161
b0322a85
CE
17162for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17163do :
17164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17165ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17166"
17167if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17168 cat >>confdefs.h <<_ACEOF
17169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17170_ACEOF
d9898ee8 17171
b0322a85 17172fi
d9898ee8 17173
b0322a85 17174done
d9898ee8 17175
d9898ee8 17176
b0322a85
CE
17177for ac_func in closedir opendir readdir
17178do :
17179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17180ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17181if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17182 cat >>confdefs.h <<_ACEOF
17183#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8d138742 17184_ACEOF
d9898ee8 17185
d9898ee8 17186else
d9898ee8 17187
d9898ee8 17188
b0322a85
CE
17189 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17190
d9898ee8 17191fi
b0322a85
CE
17192done
17193
17194for ac_func in strlcat strlcpy
17195do :
17196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17197ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17198if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8d138742 17199 cat >>confdefs.h <<_ACEOF
b0322a85 17200#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8d138742 17201_ACEOF
d9898ee8 17202
b0322a85
CE
17203else
17204
d9898ee8 17205
b0322a85
CE
17206 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17207
17208fi
d9898ee8 17209done
d9898ee8 17210
d9898ee8 17211
d9898ee8 17212
b0322a85
CE
17213cat >>confdefs.h <<_ACEOF
17214#define LT_LIBEXT "$libext"
17215_ACEOF
d9898ee8 17216
d9898ee8 17217
b0322a85
CE
17218name=
17219eval "lt_libprefix=\"$libname_spec\""
17220
17221cat >>confdefs.h <<_ACEOF
17222#define LT_LIBPREFIX "$lt_libprefix"
d9898ee8 17223_ACEOF
8d138742 17224
8d138742 17225
b0322a85
CE
17226name=ltdl
17227eval "LTDLOPEN=\"$libname_spec\""
d9898ee8 17228
d9898ee8 17229
d9898ee8 17230
d9898ee8 17231
d9898ee8 17232
d9898ee8 17233
d9898ee8 17234
d9898ee8 17235
8d138742 17236# Only expand once:
d9898ee8 17237
d9898ee8 17238
d9898ee8 17239
d9898ee8 17240
8d138742
CE
17241for ac_prog in perl5 perl
17242do
17243 # Extract the first word of "$ac_prog", so it can be a program name with args.
17244set dummy $ac_prog; ac_word=$2
b0322a85 17245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 17246$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 17247if ${ac_cv_path_PERL+:} false; then :
8d138742
CE
17248 $as_echo_n "(cached) " >&6
17249else
17250 case $PERL in
17251 [\\/]* | ?:[\\/]*)
17252 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17253 ;;
17254 *)
17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256for as_dir in $LPATH
17257do
17258 IFS=$as_save_IFS
17259 test -z "$as_dir" && as_dir=.
b0322a85
CE
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 17262 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
b0322a85 17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
17264 break 2
17265 fi
17266done
b0322a85 17267 done
8d138742 17268IFS=$as_save_IFS
d9898ee8 17269
8d138742
CE
17270 ;;
17271esac
17272fi
17273PERL=$ac_cv_path_PERL
17274if test -n "$PERL"; then
b0322a85 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8d138742
CE
17276$as_echo "$PERL" >&6; }
17277else
b0322a85 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
17279$as_echo "no" >&6; }
17280fi
d9898ee8 17281
d9898ee8 17282
8d138742
CE
17283 test -n "$PERL" && break
17284done
17285test -n "$PERL" || PERL="perl"
d9898ee8 17286
8d138742
CE
17287for ac_prog in courier-config
17288do
17289 # Extract the first word of "$ac_prog", so it can be a program name with args.
17290set dummy $ac_prog; ac_word=$2
b0322a85 17291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 17292$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 17293if ${ac_cv_path_COURIERCONFIG+:} false; then :
8d138742
CE
17294 $as_echo_n "(cached) " >&6
17295else
17296 case $COURIERCONFIG in
17297 [\\/]* | ?:[\\/]*)
17298 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
17299 ;;
17300 *)
17301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17302for as_dir in $LPATH
17303do
17304 IFS=$as_save_IFS
17305 test -z "$as_dir" && as_dir=.
b0322a85
CE
17306 for ac_exec_ext in '' $ac_executable_extensions; do
17307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 17308 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
b0322a85 17309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
17310 break 2
17311 fi
17312done
b0322a85 17313 done
8d138742 17314IFS=$as_save_IFS
d9898ee8 17315
8d138742
CE
17316 ;;
17317esac
17318fi
17319COURIERCONFIG=$ac_cv_path_COURIERCONFIG
17320if test -n "$COURIERCONFIG"; then
b0322a85 17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERCONFIG" >&5
8d138742
CE
17322$as_echo "$COURIERCONFIG" >&6; }
17323else
b0322a85 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
17325$as_echo "no" >&6; }
17326fi
d9898ee8 17327
d9898ee8 17328
8d138742
CE
17329 test -n "$COURIERCONFIG" && break
17330done
17331test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
d9898ee8 17332
d9898ee8 17333
b0322a85
CE
17334ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
17335if test "x$ac_cv_header_ltdl_h" = xyes; then :
17336 :
17337else
17338 as_fn_error $? "Unable to find ltdl.h. Please install Libtool's ltdl library" "$LINENO" 5
17339fi
17340
17341
17342
8d138742
CE
17343if test "$PERL" = "perl"
17344then
b0322a85 17345 as_fn_error $? "Perl is required" "$LINENO" 5
8d138742 17346fi
d9898ee8 17347
8d138742
CE
17348test "x$prefix" = xNONE && prefix=$ac_default_prefix
17349test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17350eval "prefix=$prefix"
17351eval "exec_prefix=$exec_prefix"
17352eval "sysconfdir=$sysconfdir"
17353eval "bindir=$bindir"
17354eval "sbindir=$sbindir"
17355eval "localstatedir=$localstatedir"
17356eval "libexecdir=$libexecdir"
b0322a85
CE
17357eval "datarootdir=$datarootdir"
17358eval "datedir=$datadir"
d9898ee8 17359
8d138742
CE
17360for ac_prog in expect
17361do
17362 # Extract the first word of "$ac_prog", so it can be a program name with args.
17363set dummy $ac_prog; ac_word=$2
b0322a85 17364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 17365$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 17366if ${ac_cv_path_EXPECT+:} false; then :
8d138742
CE
17367 $as_echo_n "(cached) " >&6
17368else
17369 case $EXPECT in
17370 [\\/]* | ?:[\\/]*)
17371 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
17372 ;;
17373 *)
17374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17375for as_dir in $LPATH
17376do
17377 IFS=$as_save_IFS
17378 test -z "$as_dir" && as_dir=.
b0322a85
CE
17379 for ac_exec_ext in '' $ac_executable_extensions; do
17380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 17381 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
b0322a85 17382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 17383 break 2
d9898ee8 17384 fi
8d138742 17385done
b0322a85 17386 done
8d138742 17387IFS=$as_save_IFS
d9898ee8 17388
8d138742
CE
17389 ;;
17390esac
17391fi
17392EXPECT=$ac_cv_path_EXPECT
17393if test -n "$EXPECT"; then
b0322a85 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8d138742
CE
17395$as_echo "$EXPECT" >&6; }
17396else
b0322a85 17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
17398$as_echo "no" >&6; }
17399fi
d9898ee8 17400
d9898ee8 17401
8d138742
CE
17402 test -n "$EXPECT" && break
17403done
17404test -n "$EXPECT" || EXPECT="expect"
d9898ee8 17405
8d138742
CE
17406
17407if test "$EXPECT" = "expect"
17408then
b0322a85 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
8d138742 17410$as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
b0322a85 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect not found - will not be able to change passwds" >&5
8d138742 17412$as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
b0322a85 17413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in webmail" >&5
8d138742 17414$as_echo "$as_me: WARNING: in webmail" >&2;}
b0322a85 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
8d138742
CE
17416$as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
17417 sleep 5
17418else
17419
17420cat >>confdefs.h <<_ACEOF
17421#define HAVE_EXPECT 1
17422_ACEOF
17423
17424fi
17425
17426for ac_prog in passwd
17427do
17428 # Extract the first word of "$ac_prog", so it can be a program name with args.
17429set dummy $ac_prog; ac_word=$2
b0322a85 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 17431$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 17432if ${ac_cv_path_PASSWD+:} false; then :
8d138742
CE
17433 $as_echo_n "(cached) " >&6
17434else
17435 case $PASSWD in
17436 [\\/]* | ?:[\\/]*)
17437 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
17438 ;;
17439 *)
17440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17441for as_dir in $LPATH
17442do
17443 IFS=$as_save_IFS
17444 test -z "$as_dir" && as_dir=.
b0322a85
CE
17445 for ac_exec_ext in '' $ac_executable_extensions; do
17446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 17447 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
b0322a85 17448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 17449 break 2
d9898ee8 17450 fi
8d138742 17451done
b0322a85 17452 done
8d138742
CE
17453IFS=$as_save_IFS
17454
d9898ee8 17455 ;;
17456esac
8d138742
CE
17457fi
17458PASSWD=$ac_cv_path_PASSWD
17459if test -n "$PASSWD"; then
b0322a85 17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PASSWD" >&5
8d138742
CE
17461$as_echo "$PASSWD" >&6; }
17462else
b0322a85 17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
17464$as_echo "no" >&6; }
17465fi
d9898ee8 17466
ac40fd9e 17467
8d138742
CE
17468 test -n "$PASSWD" && break
17469done
17470test -n "$PASSWD" || PASSWD="passwd"
d9898ee8 17471
d9898ee8 17472
d9898ee8 17473
8d138742
CE
17474if test "$GCC" = "yes"
17475then
17476 CFLAGS="$CFLAGS -Wall"
0e333c05 17477 CXXFLAGS="$CXXFLAGS -Wall"
8d138742 17478fi
d9898ee8 17479
b0322a85 17480CFLAGS="$CFLAGS -Ilibs -I${srcdir}/libs"
0e333c05 17481CXXFLAGS="$CXXFLAGS -Ilibs -I${srcdir}/libs"
d9898ee8 17482
b0322a85 17483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed for floor" >&5
8d138742 17484$as_echo_n "checking whether -lm is needed for floor... " >&6; }
b0322a85 17485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 17486/* end confdefs.h. */
d9898ee8 17487
8d138742
CE
17488/* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17491#ifdef __cplusplus
17492extern "C"
17493#endif
17494char floor ();
17495int
17496main ()
17497{
17498return floor ();
17499 ;
17500 return 0;
17501}
17502_ACEOF
b0322a85
CE
17503if ac_fn_c_try_link "$LINENO"; then :
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
17505$as_echo "no" >&6; }
17506else
b0322a85
CE
17507 LIBM="-lm"
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
17509$as_echo "yes" >&6; }
17510fi
b0322a85
CE
17511rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17513
d9898ee8 17514
8d138742 17515# Check whether --with-pkgconfdir was given.
b0322a85 17516if test "${with_pkgconfdir+set}" = set; then :
8d138742
CE
17517 withval=$with_pkgconfdir; pkgconfdir="$withval"
17518else
17519 pkgconfdir="$sysconfdir/authlib"
17520fi
d9898ee8 17521
d9898ee8 17522
8d138742
CE
17523saveLIBS="$LIBS"
17524NETLIBS=""
17525USENSL=no
ac40fd9e 17526
b0322a85 17527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
8d138742 17528$as_echo_n "checking for socket in -lsocket... " >&6; }
b0322a85 17529if ${ac_cv_lib_socket_socket+:} false; then :
8d138742
CE
17530 $as_echo_n "(cached) " >&6
17531else
17532 ac_check_lib_save_LIBS=$LIBS
17533LIBS="-lsocket $LIBS"
b0322a85 17534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 17535/* end confdefs.h. */
d9898ee8 17536
8d138742
CE
17537/* Override any GCC internal prototype to avoid an error.
17538 Use char because int might match the return type of a GCC
17539 builtin and then its argument prototype would still apply. */
17540#ifdef __cplusplus
17541extern "C"
17542#endif
17543char socket ();
17544int
17545main ()
17546{
17547return socket ();
17548 ;
17549 return 0;
17550}
17551_ACEOF
b0322a85 17552if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
17553 ac_cv_lib_socket_socket=yes
17554else
b0322a85 17555 ac_cv_lib_socket_socket=no
8d138742 17556fi
b0322a85
CE
17557rm -f core conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17559LIBS=$ac_check_lib_save_LIBS
17560fi
b0322a85 17561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8d138742 17562$as_echo "$ac_cv_lib_socket_socket" >&6; }
b0322a85 17563if test "x$ac_cv_lib_socket_socket" = xyes; then :
d9898ee8 17564 result=yes
17565else
17566 result=no
17567fi
17568
17569if test $result = yes; then
17570 NETLIBS="-lsocket"
17571else
b0322a85 17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
8d138742 17573$as_echo_n "checking for socket in -lsocket... " >&6; }
b0322a85 17574if ${ac_cv_lib_socket_socket+:} false; then :
8d138742 17575 $as_echo_n "(cached) " >&6
d9898ee8 17576else
17577 ac_check_lib_save_LIBS=$LIBS
17578LIBS="-lsocket -lnsl $LIBS"
b0322a85 17579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17580/* end confdefs.h. */
17581
dd184caf 17582/* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
d9898ee8 17585#ifdef __cplusplus
17586extern "C"
17587#endif
d9898ee8 17588char socket ();
17589int
17590main ()
17591{
dd184caf 17592return socket ();
d9898ee8 17593 ;
17594 return 0;
17595}
17596_ACEOF
b0322a85 17597if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 17598 ac_cv_lib_socket_socket=yes
17599else
b0322a85 17600 ac_cv_lib_socket_socket=no
d9898ee8 17601fi
b0322a85
CE
17602rm -f core conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17604LIBS=$ac_check_lib_save_LIBS
17605fi
b0322a85 17606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8d138742 17607$as_echo "$ac_cv_lib_socket_socket" >&6; }
b0322a85 17608if test "x$ac_cv_lib_socket_socket" = xyes; then :
d9898ee8 17609 result=yes
17610else
17611 result=no
17612fi
17613
17614 if test $result = yes; then
17615 NETLIBS = "-lsocket -lnsl"
17616 USENSL=yes
17617 else
b0322a85 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8d138742 17619$as_echo_n "checking for connect in -lsocket... " >&6; }
b0322a85 17620if ${ac_cv_lib_socket_connect+:} false; then :
8d138742 17621 $as_echo_n "(cached) " >&6
d9898ee8 17622else
17623 ac_check_lib_save_LIBS=$LIBS
17624LIBS="-lsocket $LIBS"
b0322a85 17625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17626/* end confdefs.h. */
17627
dd184caf 17628/* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
d9898ee8 17631#ifdef __cplusplus
17632extern "C"
17633#endif
d9898ee8 17634char connect ();
17635int
17636main ()
17637{
dd184caf 17638return connect ();
d9898ee8 17639 ;
17640 return 0;
17641}
17642_ACEOF
b0322a85 17643if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 17644 ac_cv_lib_socket_connect=yes
17645else
b0322a85 17646 ac_cv_lib_socket_connect=no
d9898ee8 17647fi
b0322a85
CE
17648rm -f core conftest.err conftest.$ac_objext \
17649 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17650LIBS=$ac_check_lib_save_LIBS
17651fi
b0322a85 17652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8d138742 17653$as_echo "$ac_cv_lib_socket_connect" >&6; }
b0322a85 17654if test "x$ac_cv_lib_socket_connect" = xyes; then :
d9898ee8 17655 result=yes
17656else
17657 result=no
17658fi
17659
17660 if test $result = yes; then
17661 NETLIBS="-lsocket"
17662 else
b0322a85 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8d138742 17664$as_echo_n "checking for connect in -lsocket... " >&6; }
b0322a85 17665if ${ac_cv_lib_socket_connect+:} false; then :
8d138742 17666 $as_echo_n "(cached) " >&6
d9898ee8 17667else
17668 ac_check_lib_save_LIBS=$LIBS
17669LIBS="-lsocket -lnsl $LIBS"
b0322a85 17670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17671/* end confdefs.h. */
17672
dd184caf 17673/* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
d9898ee8 17676#ifdef __cplusplus
17677extern "C"
17678#endif
d9898ee8 17679char connect ();
17680int
17681main ()
17682{
dd184caf 17683return connect ();
d9898ee8 17684 ;
17685 return 0;
17686}
17687_ACEOF
b0322a85 17688if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 17689 ac_cv_lib_socket_connect=yes
17690else
b0322a85 17691 ac_cv_lib_socket_connect=no
d9898ee8 17692fi
b0322a85
CE
17693rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17695LIBS=$ac_check_lib_save_LIBS
17696fi
b0322a85 17697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8d138742 17698$as_echo "$ac_cv_lib_socket_connect" >&6; }
b0322a85 17699if test "x$ac_cv_lib_socket_connect" = xyes; then :
d9898ee8 17700 result=yes
17701else
17702 result=no
17703fi
17704
17705 if test $result = yes; then
17706 NETLIBS="-lsocket -lnsl"
17707 USENSL=yes
17708 fi
17709 fi
17710 fi
17711fi
17712
17713if test $USENSL != yes; then
17714 LIBS="$LIBS $NETLIBS"
b0322a85 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17716/* end confdefs.h. */
17717
dd184caf 17718/* Override any GCC internal prototype to avoid an error.
17719 Use char because int might match the return type of a GCC
17720 builtin and then its argument prototype would still apply. */
d9898ee8 17721#ifdef __cplusplus
17722extern "C"
17723#endif
d9898ee8 17724char inet_addr ();
17725int
17726main ()
17727{
dd184caf 17728return inet_addr ();
d9898ee8 17729 ;
17730 return 0;
17731}
17732_ACEOF
b0322a85 17733if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 17734 :
17735else
d9898ee8 17736
b0322a85 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
8d138742 17738$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
b0322a85 17739if ${ac_cv_lib_nsl_inet_addr+:} false; then :
8d138742 17740 $as_echo_n "(cached) " >&6
d9898ee8 17741else
17742 ac_check_lib_save_LIBS=$LIBS
17743LIBS="-lnsl $LIBS"
b0322a85 17744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17745/* end confdefs.h. */
17746
dd184caf 17747/* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
d9898ee8 17750#ifdef __cplusplus
17751extern "C"
17752#endif
d9898ee8 17753char inet_addr ();
17754int
17755main ()
17756{
dd184caf 17757return inet_addr ();
d9898ee8 17758 ;
17759 return 0;
17760}
17761_ACEOF
b0322a85 17762if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 17763 ac_cv_lib_nsl_inet_addr=yes
17764else
b0322a85 17765 ac_cv_lib_nsl_inet_addr=no
d9898ee8 17766fi
b0322a85
CE
17767rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17769LIBS=$ac_check_lib_save_LIBS
17770fi
b0322a85 17771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
8d138742 17772$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
b0322a85 17773if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
d9898ee8 17774 result=yes
17775else
17776 result=no
17777fi
17778
17779 if test $result = yes; then
17780 NETLIBS="$NETLIBS -lnsl"
17781 fi
17782
17783fi
b0322a85
CE
17784rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17786fi
17787
17788LIBS="$saveLIBS"
17789
17790
0e333c05
CE
17791
17792
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking courier-unicode library and version" >&5
17794$as_echo_n "checking courier-unicode library and version... " >&6; }
17795
d50284c4
CE
17796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797/* end confdefs.h. */
17798
17799#include <courier-unicode.h>
0e333c05
CE
17800#ifndef COURIER_UNICODE_VERSION
17801#define COURIER_UNICODE_VERSION 0
17802#endif
17803
17804#if COURIER_UNICODE_VERSION < 210
17805#error "courier-unicode 2.1 library is required"
17806#endif
17807
d50284c4
CE
17808
17809int
17810main ()
17811{
17812
d50284c4
CE
17813 ;
17814 return 0;
17815}
17816_ACEOF
0e333c05
CE
17817if ac_fn_c_try_compile "$LINENO"; then :
17818
d50284c4 17819else
0e333c05
CE
17820 as_fn_error $? "
17821ERROR: The Courier Unicode Library 2.1 header files appear not to be installed.
17822You may need to upgrade the library or install a separate development
17823subpackage in addition to the main package." "$LINENO" 5
17824
d50284c4 17825fi
0e333c05
CE
17826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827
17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17829$as_echo "ok" >&6; }
17830
d50284c4 17831
d9898ee8 17832
17833
17834
17835
17836
dd184caf 17837# Check whether --with-db was given.
b0322a85 17838if test "${with_db+set}" = set; then :
dd184caf 17839 withval=$with_db; db="$withval"
d9898ee8 17840else
17841 needs_withdb=1
dd184caf 17842fi
17843
d9898ee8 17844
17845case "$db" in
17846gdbm)
17847 ;;
17848db)
17849 ;;
17850"")
17851 ;;
17852*)
b0322a85 17853 as_fn_error $? "Invalid --with-db option." "$LINENO" 5
d9898ee8 17854 ;;
17855esac
17856
17857saveLIBS="$LIBS"
17858
17859if test "$db" != "db"
17860then
b0322a85 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
8d138742 17862$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
b0322a85 17863if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
8d138742 17864 $as_echo_n "(cached) " >&6
d9898ee8 17865else
17866 ac_check_lib_save_LIBS=$LIBS
17867LIBS="-lgdbm $LIBS"
b0322a85 17868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17869/* end confdefs.h. */
17870
dd184caf 17871/* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
d9898ee8 17874#ifdef __cplusplus
17875extern "C"
17876#endif
d9898ee8 17877char gdbm_open ();
17878int
17879main ()
17880{
dd184caf 17881return gdbm_open ();
d9898ee8 17882 ;
17883 return 0;
17884}
17885_ACEOF
b0322a85 17886if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 17887 ac_cv_lib_gdbm_gdbm_open=yes
17888else
b0322a85 17889 ac_cv_lib_gdbm_gdbm_open=no
d9898ee8 17890fi
b0322a85
CE
17891rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17893LIBS=$ac_check_lib_save_LIBS
17894fi
b0322a85 17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
8d138742 17896$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
b0322a85 17897if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
d9898ee8 17898 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
17899fi
17900
b0322a85
CE
17901 ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open"
17902if test "x$ac_cv_func_gdbm_open" = xyes; then :
d9898ee8 17903 HAVE_GDBM=y
17904fi
17905
17906fi
17907
17908LIBS="$saveLIBS"
17909
17910if test "$db" != "gdbm"
17911then
b0322a85 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5
8d138742 17913$as_echo_n "checking for dbopen in -ldb... " >&6; }
b0322a85 17914if ${ac_cv_lib_db_dbopen+:} false; then :
8d138742 17915 $as_echo_n "(cached) " >&6
d9898ee8 17916else
17917 ac_check_lib_save_LIBS=$LIBS
17918LIBS="-ldb $LIBS"
b0322a85 17919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17920/* end confdefs.h. */
17921
dd184caf 17922/* Override any GCC internal prototype to avoid an error.
17923 Use char because int might match the return type of a GCC
17924 builtin and then its argument prototype would still apply. */
d9898ee8 17925#ifdef __cplusplus
17926extern "C"
17927#endif
d9898ee8 17928char dbopen ();
17929int
17930main ()
17931{
dd184caf 17932return dbopen ();
d9898ee8 17933 ;
17934 return 0;
17935}
17936_ACEOF
b0322a85 17937if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 17938 ac_cv_lib_db_dbopen=yes
17939else
b0322a85 17940 ac_cv_lib_db_dbopen=no
d9898ee8 17941fi
b0322a85
CE
17942rm -f core conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17944LIBS=$ac_check_lib_save_LIBS
17945fi
b0322a85 17946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5
8d138742 17947$as_echo "$ac_cv_lib_db_dbopen" >&6; }
b0322a85 17948if test "x$ac_cv_lib_db_dbopen" = xyes; then :
d9898ee8 17949 LIBDB=-ldb ; LIBS="-ldb $LIBS"
17950else
b0322a85 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5
8d138742 17952$as_echo_n "checking for db_open in -ldb... " >&6; }
b0322a85 17953if ${ac_cv_lib_db_db_open+:} false; then :
8d138742 17954 $as_echo_n "(cached) " >&6
d9898ee8 17955else
17956 ac_check_lib_save_LIBS=$LIBS
17957LIBS="-ldb $LIBS"
b0322a85 17958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17959/* end confdefs.h. */
17960
dd184caf 17961/* Override any GCC internal prototype to avoid an error.
17962 Use char because int might match the return type of a GCC
17963 builtin and then its argument prototype would still apply. */
d9898ee8 17964#ifdef __cplusplus
17965extern "C"
17966#endif
d9898ee8 17967char db_open ();
17968int
17969main ()
17970{
dd184caf 17971return db_open ();
d9898ee8 17972 ;
17973 return 0;
17974}
17975_ACEOF
b0322a85 17976if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 17977 ac_cv_lib_db_db_open=yes
17978else
b0322a85 17979 ac_cv_lib_db_db_open=no
d9898ee8 17980fi
b0322a85
CE
17981rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
d9898ee8 17983LIBS=$ac_check_lib_save_LIBS
17984fi
b0322a85 17985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5
8d138742 17986$as_echo "$ac_cv_lib_db_db_open" >&6; }
b0322a85 17987if test "x$ac_cv_lib_db_db_open" = xyes; then :
d9898ee8 17988 LIBDB=-ldb ; LIBS="-ldb $LIBS"
17989else
b0322a85 17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5
8d138742 17991$as_echo_n "checking for db_env_create in -ldb... " >&6; }
b0322a85 17992if ${ac_cv_lib_db_db_env_create+:} false; then :
8d138742 17993 $as_echo_n "(cached) " >&6
d9898ee8 17994else
17995 ac_check_lib_save_LIBS=$LIBS
17996LIBS="-ldb $LIBS"
b0322a85 17997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 17998/* end confdefs.h. */
17999
dd184caf 18000/* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
d9898ee8 18003#ifdef __cplusplus
18004extern "C"
18005#endif
d9898ee8 18006char db_env_create ();
18007int
18008main ()
18009{
dd184caf 18010return db_env_create ();
d9898ee8 18011 ;
18012 return 0;
18013}
18014_ACEOF
b0322a85 18015if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 18016 ac_cv_lib_db_db_env_create=yes
18017else
b0322a85 18018 ac_cv_lib_db_db_env_create=no
d9898ee8 18019fi
b0322a85
CE
18020rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
d9898ee8 18022LIBS=$ac_check_lib_save_LIBS
18023fi
b0322a85 18024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5
8d138742 18025$as_echo "$ac_cv_lib_db_db_env_create" >&6; }
b0322a85 18026if test "x$ac_cv_lib_db_db_env_create" = xyes; then :
d9898ee8 18027 LIBDB=-ldb; LIBS="-ldb $LIBS"
18028fi
18029
18030
18031fi
18032
18033fi
18034
18035
b0322a85
CE
18036 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
18037if test "x$ac_cv_func_dbopen" = xyes; then :
18038 HAVE_BDB=1
18039fi
d9898ee8 18040
b0322a85
CE
18041 ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open"
18042if test "x$ac_cv_func_db_open" = xyes; then :
18043 HAVE_BDB=1
18044fi
d9898ee8 18045
b0322a85
CE
18046 ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create"
18047if test "x$ac_cv_func_db_env_create" = xyes; then :
18048 HAVE_BDB=1
18049fi
d9898ee8 18050
b0322a85 18051fi
d9898ee8 18052
b0322a85 18053LIBS="$saveLIBS"
d9898ee8 18054
b0322a85
CE
18055if test "$HAVE_GDBM$HAVE_BDB" = ""
18056then
18057 as_fn_error $? "Cannot find either the gdbm or the db library." "$LINENO" 5
d9898ee8 18058fi
dd184caf 18059
b0322a85
CE
18060USE_GDBM=0
18061USE_DB=0
d9898ee8 18062
b0322a85
CE
18063if test "$HAVE_GDBM" = "y"
18064then
18065 LIBDB=""
18066 USE_GDBM=1
18067 if test "$needs_withdb" = 1
18068 then
18069 ac_configure_args="$ac_configure_args --with-db=gdbm"
18070 fi
18071 dblibrary=libs/gdbmobj/libgdbmobj.la
d9898ee8 18072else
b0322a85
CE
18073 LIBGDBM=""
18074 USE_DB=1
18075 if test "$needs_withdb" = 1
18076 then
18077 ac_configure_args="$ac_configure_args --with-db=db"
18078 fi
18079 dblibrary=libs/bdbobj/libbdbobj.la
18080fi
d9898ee8 18081
d9898ee8 18082
d9898ee8 18083
d9898ee8 18084
d9898ee8 18085
b0322a85
CE
18086# Check whether --with-authuserdb was given.
18087if test "${with_authuserdb+set}" = set; then :
18088 withval=$with_authuserdb; doauthuserdb="$withval"
d9898ee8 18089else
b0322a85
CE
18090 doauthuserdb="no"
18091 if test -d ${srcdir}/userdb
18092 then
18093 doauthuserdb="yes"
18094 fi
dd184caf 18095fi
18096
d9898ee8 18097
18098if test "$doauthuserdb" = "no"
18099then
18100 AUTHUSERDB=""
18101else
18102 AUTHUSERDB="authuserdb"
18103 LIBAUTHUSERDB="libauthuserdb.la"
18104
18105fi
18106
18107
dd184caf 18108# Check whether --with-makedatprog was given.
b0322a85 18109if test "${with_makedatprog+set}" = set; then :
dd184caf 18110 withval=$with_makedatprog; :
d9898ee8 18111else
18112
18113 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
18114
dd184caf 18115fi
18116
d9898ee8 18117
18118cat >dbobj.config <<EOF
18119LIBDB=$LIBDB
18120LIBGDBM=$LIBGDBM
18121dblibrary=$dblibrary
18122EOF
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132userdb="$pkgconfdir/userdb"
18133
dd184caf 18134# Check whether --with-userdb was given.
b0322a85 18135if test "${with_userdb+set}" = set; then :
dd184caf 18136 withval=$with_userdb; userdb="$withval"
d9898ee8 18137else
18138 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
dd184caf 18139fi
18140
d9898ee8 18141
18142
18143cat >>confdefs.h <<_ACEOF
18144#define USERDB "$userdb"
18145_ACEOF
18146
18147
18148
d9898ee8 18149for ac_header in stdio.h
b0322a85
CE
18150do :
18151 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
18152if test "x$ac_cv_header_stdio_h" = xyes; then :
d9898ee8 18153 cat >>confdefs.h <<_ACEOF
b0322a85 18154#define HAVE_STDIO_H 1
d9898ee8 18155_ACEOF
18156
18157fi
18158
18159done
18160
18161
18162
18163
18164
18165
dd184caf 18166# Check whether --with-authpam was given.
b0322a85 18167if test "${with_authpam+set}" = set; then :
dd184caf 18168 withval=$with_authpam; doauthpam="$withval"
18169fi
18170
d9898ee8 18171
d9898ee8 18172for ac_header in security/pam_appl.h Pam/pam_appl.h
b0322a85
CE
18173do :
18174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18175ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18176if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d9898ee8 18177 cat >>confdefs.h <<_ACEOF
8d138742 18178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 18179_ACEOF
18180
18181fi
18182
18183done
18184
18185if test "$doauthpam" = "no"
18186then
18187 LIBDL=""
18188else
18189 saveLIBS="$LIBS"
18190 LIBDL=""
b0322a85 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 18192$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 18193if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742 18194 $as_echo_n "(cached) " >&6
d9898ee8 18195else
18196 ac_check_lib_save_LIBS=$LIBS
18197LIBS="-ldl $LIBS"
b0322a85 18198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 18199/* end confdefs.h. */
18200
dd184caf 18201/* Override any GCC internal prototype to avoid an error.
18202 Use char because int might match the return type of a GCC
18203 builtin and then its argument prototype would still apply. */
d9898ee8 18204#ifdef __cplusplus
18205extern "C"
18206#endif
d9898ee8 18207char dlopen ();
18208int
18209main ()
18210{
dd184caf 18211return dlopen ();
d9898ee8 18212 ;
18213 return 0;
18214}
18215_ACEOF
b0322a85 18216if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 18217 ac_cv_lib_dl_dlopen=yes
18218else
b0322a85 18219 ac_cv_lib_dl_dlopen=no
d9898ee8 18220fi
b0322a85
CE
18221rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
d9898ee8 18223LIBS=$ac_check_lib_save_LIBS
18224fi
b0322a85 18225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 18226$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 18227if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d9898ee8 18228 LIBDL="-ldl"
18229fi
18230
18231 LIBS="$saveLIBS"
18232
b0322a85 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8d138742 18234$as_echo_n "checking for pam_start in -lpam... " >&6; }
b0322a85 18235if ${ac_cv_lib_pam_pam_start+:} false; then :
8d138742 18236 $as_echo_n "(cached) " >&6
d9898ee8 18237else
18238 ac_check_lib_save_LIBS=$LIBS
18239LIBS="-lpam $LIBDL $LIBS"
b0322a85 18240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 18241/* end confdefs.h. */
18242
dd184caf 18243/* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
d9898ee8 18246#ifdef __cplusplus
18247extern "C"
18248#endif
d9898ee8 18249char pam_start ();
18250int
18251main ()
18252{
dd184caf 18253return pam_start ();
d9898ee8 18254 ;
18255 return 0;
18256}
18257_ACEOF
b0322a85 18258if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 18259 ac_cv_lib_pam_pam_start=yes
18260else
b0322a85 18261 ac_cv_lib_pam_pam_start=no
d9898ee8 18262fi
b0322a85
CE
18263rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
d9898ee8 18265LIBS=$ac_check_lib_save_LIBS
18266fi
b0322a85 18267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8d138742 18268$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
b0322a85 18269if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
d9898ee8 18270 HAVE_PAM=1
18271 LIBS="-lpam $LIBDL $LIBS"
b0322a85
CE
18272 for ac_func in pam_setcred
18273do :
18274 ac_fn_c_check_func "$LINENO" "pam_setcred" "ac_cv_func_pam_setcred"
18275if test "x$ac_cv_func_pam_setcred" = xyes; then :
d9898ee8 18276 cat >>confdefs.h <<_ACEOF
b0322a85 18277#define HAVE_PAM_SETCRED 1
d9898ee8 18278_ACEOF
18279
18280fi
18281done
18282
18283else
18284 HAVE_PAM=0
18285fi
18286
18287 LIBS="$saveLIBS"
18288fi
18289
18290
18291LIBAUTHPAM=""
18292if test "$HAVE_PAM" = 1
18293then
18294 LIBAUTHPAM=libauthpam.la
18295fi
18296
18297
dd184caf 18298# Check whether --with-authpam-libraries was given.
b0322a85 18299if test "${with_authpam_libraries+set}" = set; then :
dd184caf 18300 withval=$with_authpam_libraries; authpamcrypt="$withval"
18301fi
18302
d9898ee8 18303
18304AUTHPAMCRYPT="$authpamcrypt"
18305
18306
18307
18308
18309
18310
18311
dd184caf 18312# Check whether --with-authldap was given.
b0322a85 18313if test "${with_authldap+set}" = set; then :
dd184caf 18314 withval=$with_authldap; doauthldap="$withval"
d9898ee8 18315else
18316 doauthldap="yes"
dd184caf 18317fi
18318
d9898ee8 18319
d9898ee8 18320for ac_header in lber.h
b0322a85
CE
18321do :
18322 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
18323if test "x$ac_cv_header_lber_h" = xyes; then :
d9898ee8 18324 cat >>confdefs.h <<_ACEOF
b0322a85 18325#define HAVE_LBER_H 1
d9898ee8 18326_ACEOF
18327
18328fi
18329
18330done
18331
d9898ee8 18332for ac_header in ldap.h
b0322a85
CE
18333do :
18334 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
18335if test "x$ac_cv_header_ldap_h" = xyes; then :
d9898ee8 18336 cat >>confdefs.h <<_ACEOF
b0322a85 18337#define HAVE_LDAP_H 1
d9898ee8 18338_ACEOF
18339
18340fi
18341
18342done
18343
d9898ee8 18344for ac_header in netinet/in.h
b0322a85
CE
18345do :
18346 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18347if test "x$ac_cv_header_netinet_in_h" = xyes; then :
d9898ee8 18348 cat >>confdefs.h <<_ACEOF
b0322a85 18349#define HAVE_NETINET_IN_H 1
d9898ee8 18350_ACEOF
18351
18352fi
18353
18354done
18355
18356
18357if test "$doauthldap" = "no"
18358then
18359 HAVE_LDAP=0
18360else
18361 saveLIBS="$LIBS"
18362 LIBS="$NETLIBS $LIBS"
18363 LDAPLIBS=""
18364
b0322a85 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lresolv is needed for res_query" >&5
8d138742 18366$as_echo_n "checking whether -lresolv is needed for res_query... " >&6; }
b0322a85 18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 18368/* end confdefs.h. */
18369
18370#include <sys/types.h>
18371#if HAVE_NETINET_IN_H
18372#include <netinet/in.h>
18373#endif
18374#include <resolv.h>
18375
18376void (*func)()= (void (*)())res_query;
18377
18378int
18379main ()
18380{
18381 (*func)();
18382 ;
18383 return 0;
18384}
18385_ACEOF
b0322a85
CE
18386if ac_fn_c_try_link "$LINENO"; then :
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 18388$as_echo "no" >&6; }
d9898ee8 18389else
d9898ee8 18390
b0322a85 18391 LIBS="-lresolv $LIBS"
d9898ee8 18392
b0322a85
CE
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394/* end confdefs.h. */
18395
18396#include <sys/types.h>
18397#if HAVE_NETINET_IN_H
18398#include <netinet/in.h>
d9898ee8 18399#endif
b0322a85
CE
18400#include <resolv.h>
18401
18402void (*func)()= (void (*)())res_query;
d9898ee8 18403
18404int
18405main ()
18406{
b0322a85 18407 (*func)();
d9898ee8 18408 ;
18409 return 0;
18410}
18411_ACEOF
b0322a85 18412if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 18413
b0322a85
CE
18414 LDAPLIBS="-lresolv $LDAPLIBS"
18415 HAVE_LDAP=1
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18417$as_echo "yes" >&6; }
dd184caf 18418
d9898ee8 18419else
b0322a85 18420 as_fn_error $? "Cannot find function res_query" "$LINENO" 5
d9898ee8 18421fi
b0322a85
CE
18422rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
d9898ee8 18424
b0322a85
CE
18425fi
18426rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_scanf in -llber" >&5
18430$as_echo_n "checking for ber_scanf in -llber... " >&6; }
18431if ${ac_cv_lib_lber_ber_scanf+:} false; then :
8d138742 18432 $as_echo_n "(cached) " >&6
d9898ee8 18433else
b0322a85
CE
18434 ac_check_lib_save_LIBS=$LIBS
18435LIBS="-llber $LIBS"
18436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 18437/* end confdefs.h. */
d9898ee8 18438
dd184caf 18439/* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
d9898ee8 18442#ifdef __cplusplus
18443extern "C"
d9898ee8 18444#endif
b0322a85 18445char ber_scanf ();
d9898ee8 18446int
18447main ()
18448{
b0322a85 18449return ber_scanf ();
d9898ee8 18450 ;
18451 return 0;
18452}
18453_ACEOF
b0322a85
CE
18454if ac_fn_c_try_link "$LINENO"; then :
18455 ac_cv_lib_lber_ber_scanf=yes
d9898ee8 18456else
b0322a85 18457 ac_cv_lib_lber_ber_scanf=no
d9898ee8 18458fi
b0322a85
CE
18459rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461LIBS=$ac_check_lib_save_LIBS
d9898ee8 18462fi
b0322a85
CE
18463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_scanf" >&5
18464$as_echo "$ac_cv_lib_lber_ber_scanf" >&6; }
18465if test "x$ac_cv_lib_lber_ber_scanf" = xyes; then :
18466 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
d9898ee8 18467fi
18468
b0322a85
CE
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
18470$as_echo_n "checking for ldap_open in -lldap... " >&6; }
18471if ${ac_cv_lib_ldap_ldap_open+:} false; then :
8d138742 18472 $as_echo_n "(cached) " >&6
d9898ee8 18473else
b0322a85
CE
18474 ac_check_lib_save_LIBS=$LIBS
18475LIBS="-lldap $LIBS"
18476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 18477/* end confdefs.h. */
d9898ee8 18478
dd184caf 18479/* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
d9898ee8 18482#ifdef __cplusplus
18483extern "C"
d9898ee8 18484#endif
b0322a85 18485char ldap_open ();
d9898ee8 18486int
18487main ()
18488{
b0322a85 18489return ldap_open ();
d9898ee8 18490 ;
18491 return 0;
18492}
18493_ACEOF
b0322a85
CE
18494if ac_fn_c_try_link "$LINENO"; then :
18495 ac_cv_lib_ldap_ldap_open=yes
d9898ee8 18496else
b0322a85
CE
18497 ac_cv_lib_ldap_ldap_open=no
18498fi
18499rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext conftest.$ac_ext
18501LIBS=$ac_check_lib_save_LIBS
18502fi
18503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
18504$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
18505if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
18506 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
18507fi
18508
18509 ac_fn_c_check_func "$LINENO" "ldap_search_st" "ac_cv_func_ldap_search_st"
18510if test "x$ac_cv_func_ldap_search_st" = xyes; then :
18511 HAVE_LDAP=1
18512else
18513 HAVE_LDAP=0
18514fi
d9898ee8 18515
b0322a85
CE
18516 ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s"
18517if test "x$ac_cv_func_ldap_start_tls_s" = xyes; then :
18518 HAVE_LDAP_TLS=1
18519else
18520 HAVE_LDAP_TLS=0
d9898ee8 18521fi
dd184caf 18522
b0322a85
CE
18523 ac_fn_c_check_func "$LINENO" "ldap_result2error" "ac_cv_func_ldap_result2error"
18524if test "x$ac_cv_func_ldap_result2error" = xyes; then :
18525 HAVE_LDAP_RESULT2ERROR=1
18526else
18527 HAVE_LDAP_RESULT2ERROR=0
d9898ee8 18528fi
b0322a85
CE
18529
18530 ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result"
18531if test "x$ac_cv_func_ldap_parse_result" = xyes; then :
d9898ee8 18532 HAVE_LDAP_PARSE_RESULT=1
18533else
18534 HAVE_LDAP_PARSE_RESULT=0
18535fi
18536
18537 LIBS="$saveLIBS"
18538fi
18539
18540
dd184caf 18541# Check whether --with-authldaprc was given.
b0322a85 18542if test "${with_authldaprc+set}" = set; then :
dd184caf 18543 withval=$with_authldaprc; authldaprc="$withval"
d9898ee8 18544else
18545 authldaprc="$pkgconfdir/authldaprc"
dd184caf 18546fi
18547
d9898ee8 18548
18549
18550LIBAUTHLDAP=""
18551if test "$HAVE_LDAP" = 1
18552then
18553 LIBAUTHLDAP="libauthldap.la"
18554else
18555 authldaprc=""
18556fi
18557
18558
18559
dd184caf 18560 if test "$HAVE_LDAP" = 1; then
d9898ee8 18561 HAVE_LDAP_TRUE=
18562 HAVE_LDAP_FALSE='#'
18563else
18564 HAVE_LDAP_TRUE='#'
18565 HAVE_LDAP_FALSE=
18566fi
18567
18568
18569cat >>confdefs.h <<_ACEOF
18570#define HAVE_LDAP_TLS $HAVE_LDAP_TLS
18571_ACEOF
18572
18573
18574cat >>confdefs.h <<_ACEOF
18575#define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
18576_ACEOF
18577
18578
18579cat >>confdefs.h <<_ACEOF
18580#define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
18581_ACEOF
18582
18583
18584
18585
18586
dd184caf 18587# Check whether --with-authpwd was given.
b0322a85 18588if test "${with_authpwd+set}" = set; then :
dd184caf 18589 withval=$with_authpwd; doauthpwd="$withval"
b0322a85
CE
18590else
18591 doauthpwd="yes"
18592 test "$HAVE_PAM" = 1 && doauthpwd="no"
18593 test "$HAVE_LDAP" = 1 && doauthpwd="no"
d9898ee8 18594
d9898ee8 18595fi
dd184caf 18596
d9898ee8 18597
b0322a85
CE
18598HAVE_PWD=1
18599if test "$doauthpwd" = "no"
18600then
18601 HAVE_PWD=0
18602fi
18603for ac_func in endpwent
18604do :
18605 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
18606if test "x$ac_cv_func_endpwent" = xyes; then :
18607 cat >>confdefs.h <<_ACEOF
18608#define HAVE_ENDPWENT 1
d9898ee8 18609_ACEOF
d9898ee8 18610
d9898ee8 18611fi
b0322a85 18612done
dd184caf 18613
d9898ee8 18614
b0322a85
CE
18615
18616
18617
18618
18619# Check whether --with-authshadow was given.
18620if test "${with_authshadow+set}" = set; then :
18621 withval=$with_authshadow; doauthshadow="$withval"
d9898ee8 18622else
b0322a85
CE
18623 doauthshadow="yes"
18624 test "$HAVE_PAM" = 1 && doauthshadow="no"
18625 test "$HAVE_LDAP" = 1 && doauthshadow="no"
d9898ee8 18626fi
d9898ee8 18627
b0322a85
CE
18628
18629for ac_header in shadow.h
18630do :
18631 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
18632if test "x$ac_cv_header_shadow_h" = xyes; then :
d9898ee8 18633 cat >>confdefs.h <<_ACEOF
b0322a85 18634#define HAVE_SHADOW_H 1
d9898ee8 18635_ACEOF
18636
18637fi
18638
18639done
18640
18641saveLIBS="$LIBS"
18642SHADOWLIBS=""
b0322a85 18643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
8d138742 18644$as_echo_n "checking for getspent in -lshadow... " >&6; }
b0322a85 18645if ${ac_cv_lib_shadow_getspent+:} false; then :
8d138742 18646 $as_echo_n "(cached) " >&6
d9898ee8 18647else
18648 ac_check_lib_save_LIBS=$LIBS
18649LIBS="-lshadow $LIBS"
b0322a85 18650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 18651/* end confdefs.h. */
18652
dd184caf 18653/* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
d9898ee8 18656#ifdef __cplusplus
18657extern "C"
18658#endif
d9898ee8 18659char getspent ();
18660int
18661main ()
18662{
dd184caf 18663return getspent ();
d9898ee8 18664 ;
18665 return 0;
18666}
18667_ACEOF
b0322a85 18668if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 18669 ac_cv_lib_shadow_getspent=yes
18670else
b0322a85 18671 ac_cv_lib_shadow_getspent=no
d9898ee8 18672fi
b0322a85
CE
18673rm -f core conftest.err conftest.$ac_objext \
18674 conftest$ac_exeext conftest.$ac_ext
d9898ee8 18675LIBS=$ac_check_lib_save_LIBS
18676fi
b0322a85 18677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
8d138742 18678$as_echo "$ac_cv_lib_shadow_getspent" >&6; }
b0322a85 18679if test "x$ac_cv_lib_shadow_getspent" = xyes; then :
d9898ee8 18680 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
18681fi
18682
d9898ee8 18683for ac_func in endspent getspent
b0322a85
CE
18684do :
18685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18687if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d9898ee8 18688 cat >>confdefs.h <<_ACEOF
8d138742 18689#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 18690_ACEOF
18691
18692fi
18693done
18694
18695LIBS="$saveLIBS"
18696
18697if test "$doauthshadow" = "no"
18698then
18699 HAVE_SHADOW=0
18700else
18701
18702 saveLIBS="$LIBS"
b0322a85 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
8d138742 18704$as_echo_n "checking for getspent in -lshadow... " >&6; }
b0322a85 18705if ${ac_cv_lib_shadow_getspent+:} false; then :
8d138742 18706 $as_echo_n "(cached) " >&6
d9898ee8 18707else
18708 ac_check_lib_save_LIBS=$LIBS
18709LIBS="-lshadow $LIBS"
b0322a85 18710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 18711/* end confdefs.h. */
18712
dd184caf 18713/* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
d9898ee8 18716#ifdef __cplusplus
18717extern "C"
18718#endif
d9898ee8 18719char getspent ();
18720int
18721main ()
18722{
dd184caf 18723return getspent ();
d9898ee8 18724 ;
18725 return 0;
18726}
18727_ACEOF
b0322a85 18728if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 18729 ac_cv_lib_shadow_getspent=yes
18730else
b0322a85 18731 ac_cv_lib_shadow_getspent=no
d9898ee8 18732fi
b0322a85
CE
18733rm -f core conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
d9898ee8 18735LIBS=$ac_check_lib_save_LIBS
18736fi
b0322a85 18737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
8d138742 18738$as_echo "$ac_cv_lib_shadow_getspent" >&6; }
b0322a85 18739if test "x$ac_cv_lib_shadow_getspent" = xyes; then :
d9898ee8 18740 cat >>confdefs.h <<_ACEOF
18741#define HAVE_LIBSHADOW 1
18742_ACEOF
18743
18744 LIBS="-lshadow $LIBS"
18745
18746fi
18747
b0322a85
CE
18748 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
18749if test "x$ac_cv_func_getspent" = xyes; then :
d9898ee8 18750 HAVE_SHADOW=1
18751else
18752 HAVE_SHADOW=0
18753fi
18754
18755 LIBS="$saveLIBS"
18756fi
18757
18758LIBAUTHSHADOW=""
18759if test "$HAVE_SHADOW" = 1
18760then
18761 LIBAUTHSHADOW="libauthshadow.la"
18762fi
18763
18764
18765
18766LIBAUTHPWD=""
18767if test "$HAVE_PWD" = 1
18768then
18769 LIBAUTHPWD="libauthpwd.la"
18770fi
18771
18772
18773
18774
18775
18776
dd184caf 18777# Check whether --with-authpgsqlrc was given.
b0322a85 18778if test "${with_authpgsqlrc+set}" = set; then :
dd184caf 18779 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
d9898ee8 18780else
18781 authpgsqlrc="$pkgconfdir/authpgsqlrc"
dd184caf 18782fi
d9898ee8 18783
18784
18785
dd184caf 18786
18787# Check whether --with-authpgsql was given.
b0322a85 18788if test "${with_authpgsql+set}" = set; then :
dd184caf 18789 withval=$with_authpgsql; doauthpgsql="$withval"
18790fi
18791
d9898ee8 18792
18793for ac_prog in pg_config
18794do
18795 # Extract the first word of "$ac_prog", so it can be a program name with args.
18796set dummy $ac_prog; ac_word=$2
b0322a85 18797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 18798$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 18799if ${ac_cv_path_PG_CONFIG+:} false; then :
8d138742 18800 $as_echo_n "(cached) " >&6
d9898ee8 18801else
18802 case $PG_CONFIG in
18803 [\\/]* | ?:[\\/]*)
18804 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
18805 ;;
18806 *)
18807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808for as_dir in $LPATH
18809do
18810 IFS=$as_save_IFS
18811 test -z "$as_dir" && as_dir=.
b0322a85
CE
18812 for ac_exec_ext in '' $ac_executable_extensions; do
18813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 18814 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
b0322a85 18815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 18816 break 2
18817 fi
18818done
b0322a85 18819 done
dd184caf 18820IFS=$as_save_IFS
d9898ee8 18821
18822 ;;
18823esac
18824fi
18825PG_CONFIG=$ac_cv_path_PG_CONFIG
d9898ee8 18826if test -n "$PG_CONFIG"; then
b0322a85 18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
8d138742 18828$as_echo "$PG_CONFIG" >&6; }
d9898ee8 18829else
b0322a85 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 18831$as_echo "no" >&6; }
d9898ee8 18832fi
18833
dd184caf 18834
d9898ee8 18835 test -n "$PG_CONFIG" && break
18836done
18837test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
18838
18839
18840PGSQL_LIBS="-lpq"
18841
dd184caf 18842# Check whether --with-pgsql-libs was given.
b0322a85 18843if test "${with_pgsql_libs+set}" = set; then :
dd184caf 18844 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
d9898ee8 18845else
18846 if test -x $PG_CONFIG
18847 then
18848 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
18849 fi
18850
dd184caf 18851fi
18852
d9898ee8 18853
dd184caf 18854# Check whether --with-pgsql-includes was given.
b0322a85 18855if test "${with_pgsql_includes+set}" = set; then :
dd184caf 18856 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
d9898ee8 18857else
18858 if test -x $PG_CONFIG
18859 then
18860 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
18861 fi
18862
dd184caf 18863fi
18864
d9898ee8 18865
18866if test "$doauthpgsql" = ""
b0322a85
CE
18867then
18868 LIBS="$PGSQL_LIBS $LIBS"
18869 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
18870if test "x$ac_cv_func_PQsetdbLogin" = xyes; then :
d9898ee8 18871 doauthpgsql="yes"
18872
18873fi
18874
18875 LIBS="$saveLIBS"
18876fi
18877
18878if test "$doauthpgsql" != "yes"
18879then
18880 LIBAUTHPGSQL=""
18881 HAVE_AUTHPGSQL=0
18882else
18883 saveLIBS="$LIBS"
18884 LIBS="$PGSQL_LIBS $LIBS"
b0322a85
CE
18885 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
18886if test "x$ac_cv_func_PQsetdbLogin" = xyes; then :
d9898ee8 18887 AUTHPGSQL="authpgsql"
18888 HAVE_AUTHPGSQL=1
18889else
b0322a85 18890 as_fn_error $? "--with-authpgsql specified but no libpq.so" "$LINENO" 5
d9898ee8 18891fi
18892
18893 LIBS="$saveLIBS"
18894 HAVE_AUTHPGSQL=1
18895 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
0e333c05 18896 CXXFLAGS="$PGSQL_CFLAGS $CXXFLAGS"
d9898ee8 18897 LIBAUTHPGSQL="libauthpgsql.la"
18898fi
18899
18900
18901
dd184caf 18902 if test "$HAVE_AUTHPGSQL" = 1; then
d9898ee8 18903 HAVE_AUTHPGSQL_TRUE=
18904 HAVE_AUTHPGSQL_FALSE='#'
18905else
18906 HAVE_AUTHPGSQL_TRUE='#'
18907 HAVE_AUTHPGSQL_FALSE=
18908fi
18909
18910
18911
18912
18913
18914
dd184caf 18915# Check whether --with-authmysqlrc was given.
b0322a85 18916if test "${with_authmysqlrc+set}" = set; then :
dd184caf 18917 withval=$with_authmysqlrc; authmysqlrc="$withval"
d9898ee8 18918else
18919 authmysqlrc="$pkgconfdir/authmysqlrc"
dd184caf 18920fi
18921
d9898ee8 18922
18923
18924
dd184caf 18925# Check whether --with-authmysql was given.
b0322a85 18926if test "${with_authmysql+set}" = set; then :
dd184caf 18927 withval=$with_authmysql; doauthmysql="$withval"
18928fi
18929
d9898ee8 18930
dd184caf 18931# Check whether --with-mysql-libs was given.
b0322a85 18932if test "${with_mysql_libs+set}" = set; then :
dd184caf 18933 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
18934
18935fi
d9898ee8 18936
d9898ee8 18937
dd184caf 18938# Check whether --with-mysql-includes was given.
b0322a85 18939if test "${with_mysql_includes+set}" = set; then :
dd184caf 18940 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
18941
18942fi
d9898ee8 18943
d9898ee8 18944
18945for ac_prog in mysql_config
18946do
18947 # Extract the first word of "$ac_prog", so it can be a program name with args.
18948set dummy $ac_prog; ac_word=$2
b0322a85 18949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 18950$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 18951if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
8d138742 18952 $as_echo_n "(cached) " >&6
d9898ee8 18953else
18954 case $MYSQL_CONFIG in
18955 [\\/]* | ?:[\\/]*)
18956 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
18957 ;;
18958 *)
18959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960for as_dir in $LPATH
18961do
18962 IFS=$as_save_IFS
18963 test -z "$as_dir" && as_dir=.
b0322a85
CE
18964 for ac_exec_ext in '' $ac_executable_extensions; do
18965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 18966 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
b0322a85 18967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 18968 break 2
18969 fi
18970done
b0322a85 18971 done
dd184caf 18972IFS=$as_save_IFS
d9898ee8 18973
8d138742
CE
18974 ;;
18975esac
18976fi
18977MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
18978if test -n "$MYSQL_CONFIG"; then
b0322a85 18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
8d138742
CE
18980$as_echo "$MYSQL_CONFIG" >&6; }
18981else
b0322a85 18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
18983$as_echo "no" >&6; }
18984fi
18985
18986
18987 test -n "$MYSQL_CONFIG" && break
18988done
18989test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
18990
18991
18992if test -x "$MYSQL_CONFIG"
18993then
18994 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
18995 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
18996
b0322a85
CE
18997 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
18998 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
18999fi
d9898ee8 19000
b0322a85
CE
19001if test "$doauthmysql" = ""
19002then
19003 LIBS="$MYSQL_LIBS $LIBS"
19004 ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
19005if test "x$ac_cv_func_mysql_connect" = xyes; then :
19006 doauthmysql="yes"
d9898ee8 19007
b0322a85 19008fi
d9898ee8 19009
b0322a85
CE
19010 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
19011if test "x$ac_cv_func_mysql_real_connect" = xyes; then :
19012 doauthmysql="yes"
d9898ee8 19013
d9898ee8 19014fi
dd184caf 19015
b0322a85 19016 LIBS="$saveLIBS"
d9898ee8 19017fi
b0322a85
CE
19018
19019if test "$doauthmysql" != "yes"
19020then
19021 LIBAUTHMYSQL=""
19022 HAVE_AUTHMYSQL=0
19023else
19024 saveLIBS="$LIBS"
19025 LIBS="$MYSQL_LIBS $LIBS"
19026 ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
19027if test "x$ac_cv_func_mysql_connect" = xyes; then :
19028 LIBAUTHMYSQL="libauthmysql.la"
19029 HAVE_AUTHMYSQL=1
19030else
19031
19032 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
19033if test "x$ac_cv_func_mysql_real_connect" = xyes; then :
8d138742
CE
19034 LIBAUTHMYSQL="libauthmysql.la"
19035 HAVE_AUTHMYSQL=1
19036else
b0322a85 19037 as_fn_error $? "--with-authmysql specified but no mysqlclient.so" "$LINENO" 5
8d138742
CE
19038
19039fi
19040
19041
d9898ee8 19042
19043fi
19044
19045 LIBS="$saveLIBS"
8d138742
CE
19046 HAVE_AUTHMYSQL=1
19047 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
0e333c05 19048 CXXFLAGS="$MYSQL_CFLAGS $CXXFLAGS"
d9898ee8 19049fi
19050
8d138742
CE
19051
19052 if test "$HAVE_AUTHMYSQL" = 1; then
19053 HAVE_AUTHMYSQL_TRUE=
19054 HAVE_AUTHMYSQL_FALSE='#'
19055else
19056 HAVE_AUTHMYSQL_TRUE='#'
19057 HAVE_AUTHMYSQL_FALSE=
19058fi
19059
19060
19061
19062
19063
19064
b0322a85
CE
19065# Check whether --with-authsqliterc was given.
19066if test "${with_authsqliterc+set}" = set; then :
19067 withval=$with_authsqliterc; authsqliterc="$withval"
19068else
19069 authsqliterc="$pkgconfdir/authsqliterc"
19070fi
19071
19072
19073
19074
19075# Check whether --with-authsqlite was given.
19076if test "${with_authsqlite+set}" = set; then :
19077 withval=$with_authsqlite; doauthsqlite="$withval"
19078fi
19079
19080
19081
19082# Check whether --with-sqlite-libs was given.
19083if test "${with_sqlite_libs+set}" = set; then :
19084 withval=$with_sqlite_libs; SQLITE_LIBS="-lsqlite3"
19085
19086fi
19087
19088
19089# Check whether --with-sqlite-includes was given.
19090if test "${with_sqlite_includes+set}" = set; then :
19091 withval=$with_sqlite_includes; SQLITE_CFLAGS="-I$withval"
19092
19093fi
19094
19095
19096if test "$doauthsqlite" = ""
19097then
19098 SQLITE_CFLAGS="`pkg-config --cflags sqlite3 2>/dev/null`"
19099 SQLITE_LIBS="`pkg-config --libs sqlite3 2>/dev/null`"
19100 saveLIBS="$LIBS"
19101 LIBS="$SQLITE_LIBS $LIBS"
19102 ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
19103if test "x$ac_cv_func_sqlite3_version" = xyes; then :
19104 doauthsqlite="yes"
19105
19106fi
19107
19108 LIBS="$saveLIBS"
19109fi
19110
19111if test "$doauthsqlite" != "yes"
19112then
19113 SQLITE_LIBS=""
19114 SQLITE_CFLAGS=""
19115 HAVE_AUTHSQLITE=0
19116 LIBAUTHSQLITE=""
19117else
19118 saveLIBS="$LIBS"
19119 LIBS="$SQLITE_LIBS $LIBS"
19120 ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
19121if test "x$ac_cv_func_sqlite3_version" = xyes; then :
19122 :
19123else
19124 as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5
19125
19126fi
19127
19128 LIBS="$saveLIBS"
19129 HAVE_AUTHSQLITE=1
19130 CFLAGS="$SQLITE_CFLAGS $CFLAGS"
0e333c05 19131 CXXFLAGS="$SQLITE_CXXFLAGS $CFLAGS"
b0322a85
CE
19132 LIBAUTHSQLITE="libauthsqlite.la"
19133
19134fi
19135
19136
19137 if test "$HAVE_AUTHSQLITE" = 1; then
19138 HAVE_AUTHSQLITE_TRUE=
19139 HAVE_AUTHSQLITE_FALSE='#'
19140else
19141 HAVE_AUTHSQLITE_TRUE='#'
19142 HAVE_AUTHSQLITE_FALSE=
19143fi
19144
19145
19146
19147
19148
8d138742
CE
19149
19150
19151# Check whether --with-authcustom was given.
b0322a85 19152if test "${with_authcustom+set}" = set; then :
8d138742
CE
19153 withval=$with_authcustom; doauthcustom="$withval"
19154else
19155 doauthcustom=yes
19156fi
19157
19158
19159LIBAUTHCUSTOM=""
19160
19161if test "$doauthcustom" = "yes"
d9898ee8 19162then
8d138742
CE
19163 LIBAUTHCUSTOM="libauthcustom.la"
19164fi
19165
19166 if test "$AUTHCUSTOM" != ""; then
19167 HAVE_CUSTOM_TRUE=
19168 HAVE_CUSTOM_FALSE='#'
d9898ee8 19169else
8d138742
CE
19170 HAVE_CUSTOM_TRUE='#'
19171 HAVE_CUSTOM_FALSE=
19172fi
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182# Check whether --with-pipeprog was given.
b0322a85 19183if test "${with_pipeprog+set}" = set; then :
8d138742
CE
19184 withval=$with_pipeprog; authProg="$withval"
19185else
19186 authProg="$pkgconfdir/authProg"
19187fi
19188
19189
19190
19191
19192# Check whether --with-authpipe was given.
b0322a85 19193if test "${with_authpipe+set}" = set; then :
8d138742
CE
19194 withval=$with_authpipe; doauthpipe="$withval"
19195else
19196 doauthpipe=yes
19197fi
19198
19199
19200LIBAUTHPIPE=""
19201
19202if test "$doauthpipe" = "yes"
19203then
19204 LIBAUTHPIPE="libauthpipe.la"
19205fi
19206
19207 if test "$AUTHPIPE" != ""; then
19208 HAVE_PIPE_TRUE=
19209 HAVE_PIPE_FALSE='#'
19210else
19211 HAVE_PIPE_TRUE='#'
19212 HAVE_PIPE_FALSE=
19213fi
19214
19215
19216
19217
19218
b0322a85 19219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 19220$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 19221if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
19222 $as_echo_n "(cached) " >&6
19223else
b0322a85 19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
19225/* end confdefs.h. */
19226#include <stdlib.h>
19227#include <stdarg.h>
19228#include <string.h>
19229#include <float.h>
19230
19231int
19232main ()
19233{
19234
19235 ;
19236 return 0;
19237}
19238_ACEOF
b0322a85 19239if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
19240 ac_cv_header_stdc=yes
19241else
b0322a85 19242 ac_cv_header_stdc=no
8d138742 19243fi
8d138742
CE
19244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19245
19246if test $ac_cv_header_stdc = yes; then
19247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
19249/* end confdefs.h. */
19250#include <string.h>
19251
19252_ACEOF
19253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
19254 $EGREP "memchr" >/dev/null 2>&1; then :
19255
8d138742
CE
19256else
19257 ac_cv_header_stdc=no
19258fi
19259rm -f conftest*
19260
19261fi
19262
19263if test $ac_cv_header_stdc = yes; then
19264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 19265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
19266/* end confdefs.h. */
19267#include <stdlib.h>
19268
19269_ACEOF
19270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
19271 $EGREP "free" >/dev/null 2>&1; then :
19272
8d138742
CE
19273else
19274 ac_cv_header_stdc=no
19275fi
19276rm -f conftest*
19277
19278fi
19279
19280if test $ac_cv_header_stdc = yes; then
19281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 19282 if test "$cross_compiling" = yes; then :
8d138742 19283 :
d9898ee8 19284else
b0322a85 19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 19286/* end confdefs.h. */
8d138742
CE
19287#include <ctype.h>
19288#include <stdlib.h>
19289#if ((' ' & 0x0FF) == 0x020)
19290# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19291# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
d9898ee8 19292#else
8d138742
CE
19293# define ISLOWER(c) \
19294 (('a' <= (c) && (c) <= 'i') \
19295 || ('j' <= (c) && (c) <= 'r') \
19296 || ('s' <= (c) && (c) <= 'z'))
19297# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
d9898ee8 19298#endif
19299
8d138742 19300#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
d9898ee8 19301int
19302main ()
19303{
8d138742
CE
19304 int i;
19305 for (i = 0; i < 256; i++)
19306 if (XOR (islower (i), ISLOWER (i))
b0322a85
CE
19307 || toupper (i) != TOUPPER (i))
19308 return 2;
19309 return 0;
19310}
19311_ACEOF
19312if ac_fn_c_try_run "$LINENO"; then :
19313
d9898ee8 19314else
b0322a85
CE
19315 ac_cv_header_stdc=no
19316fi
19317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19318 conftest.$ac_objext conftest.beam conftest.$ac_ext
19319fi
d9898ee8 19320
8d138742 19321fi
b0322a85
CE
19322fi
19323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19324$as_echo "$ac_cv_header_stdc" >&6; }
19325if test $ac_cv_header_stdc = yes; then
d9898ee8 19326
b0322a85 19327$as_echo "#define STDC_HEADERS 1" >>confdefs.h
dd184caf 19328
b0322a85
CE
19329fi
19330
19331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19332$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19333if ${ac_cv_header_sys_wait_h+:} false; then :
8d138742 19334 $as_echo_n "(cached) " >&6
d9898ee8 19335else
b0322a85
CE
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337/* end confdefs.h. */
19338#include <sys/types.h>
19339#include <sys/wait.h>
19340#ifndef WEXITSTATUS
19341# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19342#endif
19343#ifndef WIFEXITED
19344# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19345#endif
19346
19347int
19348main ()
19349{
19350 int s;
19351 wait (&s);
19352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19353 ;
19354 return 0;
19355}
19356_ACEOF
19357if ac_fn_c_try_compile "$LINENO"; then :
19358 ac_cv_header_sys_wait_h=yes
19359else
19360 ac_cv_header_sys_wait_h=no
dd184caf 19361fi
b0322a85
CE
19362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363fi
19364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19365$as_echo "$ac_cv_header_sys_wait_h" >&6; }
19366if test $ac_cv_header_sys_wait_h = yes; then
19367
19368$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
dd184caf 19369
d9898ee8 19370fi
b0322a85
CE
19371
19372for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
19373do :
19374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19375ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19376if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
19377 cat >>confdefs.h <<_ACEOF
19378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19379_ACEOF
d9898ee8 19380
d9898ee8 19381fi
19382
8d138742 19383done
d9898ee8 19384
19385
b0322a85 19386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8d138742 19387$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b0322a85 19388if ${ac_cv_c_const+:} false; then :
8d138742 19389 $as_echo_n "(cached) " >&6
d9898ee8 19390else
b0322a85 19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 19392/* end confdefs.h. */
d9898ee8 19393
19394int
19395main ()
19396{
b0322a85 19397
8d138742 19398#ifndef __cplusplus
b0322a85 19399 /* Ultrix mips cc rejects this sort of thing. */
8d138742 19400 typedef int charset[2];
b0322a85 19401 const charset cs = { 0, 0 };
8d138742
CE
19402 /* SunOS 4.1.1 cc rejects this. */
19403 char const *const *pcpcc;
19404 char **ppc;
19405 /* NEC SVR4.0.2 mips cc rejects this. */
19406 struct point {int x, y;};
19407 static struct point const zero = {0,0};
19408 /* AIX XL C 1.02.0.0 rejects this.
19409 It does not let you subtract one const X* pointer from another in
19410 an arm of an if-expression whose if-part is not a constant
19411 expression */
19412 const char *g = "string";
19413 pcpcc = &g + (g ? g-g : 0);
19414 /* HPUX 7.0 cc rejects these. */
19415 ++pcpcc;
19416 ppc = (char**) pcpcc;
19417 pcpcc = (char const *const *) ppc;
b0322a85
CE
19418 { /* SCO 3.2v4 cc rejects this sort of thing. */
19419 char tx;
19420 char *t = &tx;
8d138742
CE
19421 char const *s = 0 ? (char *) 0 : (char const *) 0;
19422
19423 *t++ = 0;
19424 if (s) return 0;
19425 }
19426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19427 int x[] = {25, 17};
19428 const int *foo = &x[0];
19429 ++foo;
19430 }
19431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19432 typedef const int *iptr;
19433 iptr p = 0;
19434 ++p;
19435 }
b0322a85 19436 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8d138742 19437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
b0322a85
CE
19438 struct s { int j; const int *ap[3]; } bx;
19439 struct s *b = &bx; b->j = 5;
8d138742
CE
19440 }
19441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19442 const int foo = 10;
19443 if (!foo) return 0;
19444 }
19445 return !cs[0] && !zero.x;
19446#endif
d9898ee8 19447
19448 ;
19449 return 0;
19450}
19451_ACEOF
b0322a85 19452if ac_fn_c_try_compile "$LINENO"; then :
8d138742 19453 ac_cv_c_const=yes
d9898ee8 19454else
b0322a85 19455 ac_cv_c_const=no
d9898ee8 19456fi
dd184caf 19457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 19458fi
b0322a85 19459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8d138742
CE
19460$as_echo "$ac_cv_c_const" >&6; }
19461if test $ac_cv_c_const = no; then
d9898ee8 19462
b0322a85 19463$as_echo "#define const /**/" >>confdefs.h
d9898ee8 19464
d9898ee8 19465fi
8d138742 19466
b0322a85
CE
19467ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19468if test "x$ac_cv_type_pid_t" = xyes; then :
8d138742 19469
8d138742
CE
19470else
19471
19472cat >>confdefs.h <<_ACEOF
19473#define pid_t int
19474_ACEOF
19475
d9898ee8 19476fi
dd184caf 19477
b0322a85 19478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8d138742 19479$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
b0322a85 19480if ${ac_cv_type_uid_t+:} false; then :
8d138742
CE
19481 $as_echo_n "(cached) " >&6
19482else
b0322a85 19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
19484/* end confdefs.h. */
19485#include <sys/types.h>
dd184caf 19486
8d138742
CE
19487_ACEOF
19488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85 19489 $EGREP "uid_t" >/dev/null 2>&1; then :
8d138742
CE
19490 ac_cv_type_uid_t=yes
19491else
19492 ac_cv_type_uid_t=no
d9898ee8 19493fi
8d138742
CE
19494rm -f conftest*
19495
d9898ee8 19496fi
b0322a85 19497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8d138742
CE
19498$as_echo "$ac_cv_type_uid_t" >&6; }
19499if test $ac_cv_type_uid_t = no; then
d9898ee8 19500
b0322a85 19501$as_echo "#define uid_t int" >>confdefs.h
8d138742
CE
19502
19503
b0322a85 19504$as_echo "#define gid_t int" >>confdefs.h
d9898ee8 19505
19506fi
19507
8d138742 19508for ac_func in setsid setlogin
b0322a85
CE
19509do :
19510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19511ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19512if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19513 cat >>confdefs.h <<_ACEOF
19514#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19515_ACEOF
19516
19517fi
19518done
8d138742 19519
b0322a85
CE
19520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
19521$as_echo_n "checking for crypt in -lcrypt... " >&6; }
19522if ${ac_cv_lib_crypt_crypt+:} false; then :
19523 $as_echo_n "(cached) " >&6
19524else
19525 ac_check_lib_save_LIBS=$LIBS
19526LIBS="-lcrypt $LIBS"
19527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528/* end confdefs.h. */
8d138742
CE
19529
19530/* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19533#ifdef __cplusplus
19534extern "C"
19535#endif
19536char crypt ();
8d138742
CE
19537int
19538main ()
19539{
19540return crypt ();
19541 ;
19542 return 0;
19543}
d9898ee8 19544_ACEOF
b0322a85
CE
19545if ac_fn_c_try_link "$LINENO"; then :
19546 ac_cv_lib_crypt_crypt=yes
d9898ee8 19547else
b0322a85 19548 ac_cv_lib_crypt_crypt=no
d9898ee8 19549fi
b0322a85
CE
19550rm -f core conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19552LIBS=$ac_check_lib_save_LIBS
19553fi
19554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
19555$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19556if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
19557 CRYPTLIBS="-lcrypt"
d9898ee8 19558fi
b0322a85
CE
19559
19560saveLIBS="$LIBS"
19561LIBS="$CRYPTLIBS $LIBS"
19562ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
19563if test "x$ac_cv_func_crypt" = xyes; then :
d9898ee8 19564
8d138742
CE
19565cat >>confdefs.h <<_ACEOF
19566#define HAVE_CRYPT 1
d9898ee8 19567_ACEOF
19568
19569fi
19570
0e333c05
CE
19571ac_fn_c_check_func "$LINENO" "bcrypt" "ac_cv_func_bcrypt"
19572if test "x$ac_cv_func_bcrypt" = xyes; then :
19573
19574cat >>confdefs.h <<_ACEOF
19575#define HAVE_BCRYPT 1
19576_ACEOF
19577
19578fi
19579
8d138742 19580LIBS="$saveLIBS"
b0322a85 19581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5
8d138742 19582$as_echo_n "checking for crypt() prototype... " >&6; }
b0322a85 19583if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then :
8d138742 19584 $as_echo_n "(cached) " >&6
d9898ee8 19585else
b0322a85 19586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
19587/* end confdefs.h. */
19588
19589 #if HAVE_CRYPT_H
19590 #include <crypt.h>
19591 #endif
19592 #if HAVE_UNISTD_H
19593 #include <unistd.h>
19594 #endif
19595 int crypt(int, int);
19596
19597
19598int
19599main ()
19600{
d9898ee8 19601
19602 ;
19603 return 0;
19604}
19605_ACEOF
b0322a85 19606if ac_fn_c_try_compile "$LINENO"; then :
8d138742 19607 userdb_cv_NEED_CRYPT_PROTOTYPE=1
d9898ee8 19608else
b0322a85 19609 userdb_cv_NEED_CRYPT_PROTOTYPE=0
d9898ee8 19610fi
dd184caf 19611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
19612
19613
d9898ee8 19614fi
b0322a85 19615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
8d138742 19616$as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
d9898ee8 19617
8d138742
CE
19618
19619cat >>confdefs.h <<_ACEOF
19620#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
d9898ee8 19621_ACEOF
19622
8d138742
CE
19623
19624
19625
19626
19627
19628
19629# Check whether --with-authdaemonrc was given.
b0322a85 19630if test "${with_authdaemonrc+set}" = set; then :
8d138742
CE
19631 withval=$with_authdaemonrc; authdaemonrc="$withval"
19632else
19633 authdaemonrc="$pkgconfdir/authdaemonrc"
19634fi
19635
19636
19637
19638
19639# Check whether --with-authdaemonvar was given.
b0322a85 19640if test "${with_authdaemonvar+set}" = set; then :
8d138742
CE
19641 withval=$with_authdaemonvar; authdaemonvar="$withval"
19642else
19643 authdaemonvar="$localstatedir/spool/authdaemon"
d9898ee8 19644fi
19645
8d138742
CE
19646
19647
19648
19649
19650
19651rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
19652
19653
19654result=""
19655
19656if test -x "$COURIERCONFIG"
19657then
19658 $COURIERCONFIG >conftest.out || exit 1
19659 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
19660 . ./conftest2.out
19661 rm -f conftest.out conftest2.out
19662
19663 cmailuser="$mailuser"
19664 cmailgroup="$mailgroup"
19665 result=" (from courier-config)"
19666fi
19667
19668if test -x "$bindir/courierauthconfig"
19669then
19670 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
19671 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
19672 . ./conftest2.out
19673 rm -f conftest.out conftest2.out
19674
19675 cmailuser="$mailuser"
19676 cmailgroup="$mailgroup"
19677 result=" (from previous courierauthconfig)"
19678fi
19679
19680
19681
19682LB='['
19683RB=']'
19684
19685
19686
b0322a85 19687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail userid" >&5
8d138742
CE
19688$as_echo_n "checking for mail userid... " >&6; }
19689
19690
19691# Check whether --with-mailuser was given.
b0322a85 19692if test "${with_mailuser+set}" = set; then :
8d138742
CE
19693 withval=$with_mailuser; mailuser="$withval"
19694else
19695 if test "$cmailuser" = ""
19696 then
b0322a85
CE
19697 if test "$cross_compiling" = yes; then :
19698 as_fn_error $? "Must use --with-mailuser when cross compiling." "$LINENO" 5
d9898ee8 19699else
b0322a85 19700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 19701/* end confdefs.h. */
8d138742
CE
19702
19703#include <stdio.h>
19704#include <pwd.h>
19705#include <stdlib.h>
19706
19707static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
19708
19709int main()
d9898ee8 19710{
8d138742
CE
19711int i;
19712FILE *f;
19713char *p;
19714
19715 for (i=0; ids $LB i $RB; i++)
19716 if (getpwnam(ids $LB i $RB)) break;
19717
19718 f=fopen("conftest.out", "w");
19719 if (f && ids $LB i $RB)
19720 {
19721 fprintf(f, "%s\n", ids $LB i $RB);
19722 fclose(f);
19723 exit(0);
19724 }
19725 fclose(f);
19726 exit (1);
19727 return (1);
d9898ee8 19728}
8d138742 19729
d9898ee8 19730_ACEOF
b0322a85 19731if ac_fn_c_try_run "$LINENO"; then :
8d138742 19732 mailuser=`cat conftest.out`
d9898ee8 19733else
b0322a85 19734 as_fn_error use --with-mailuser. "Cannot determine mail user" "$LINENO" 5
d9898ee8 19735fi
b0322a85
CE
19736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19737 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 19738fi
d9898ee8 19739
8d138742
CE
19740 else
19741 mailuser="$cmailuser"
19742 fi
19743 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
d9898ee8 19744fi
19745
8d138742 19746
b0322a85 19747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailuser $result" >&5
8d138742
CE
19748$as_echo "$mailuser $result" >&6; }
19749
b0322a85 19750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail group id" >&5
8d138742
CE
19751$as_echo_n "checking for mail group id... " >&6; }
19752
19753
19754# Check whether --with-mailgroup was given.
b0322a85 19755if test "${with_mailgroup+set}" = set; then :
8d138742
CE
19756 withval=$with_mailgroup; mailgroup="$withval"
19757else
19758 if test "$cmailgroup" = ""
19759 then
b0322a85
CE
19760 if test "$cross_compiling" = yes; then :
19761 as_fn_error $? "Must use --with-mailgroup when cross compiling." "$LINENO" 5
d9898ee8 19762else
b0322a85 19763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 19764/* end confdefs.h. */
8d138742
CE
19765
19766#include <stdio.h>
19767#include <grp.h>
19768#include <stdlib.h>
19769
19770static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
19771
19772int main()
19773{
19774int i;
19775FILE *f;
19776
19777 for (i=0; ids $LB i $RB; i++)
19778 if (getgrnam(ids $LB i $RB)) break;
19779
19780 f=fopen("conftest.out", "w");
19781 if (f && ids $LB i $RB)
19782 {
19783 fprintf(f, "%s\n", ids $LB i $RB);
19784 fclose(f);
19785 exit(0);
19786 }
19787 fclose(f);
19788 exit (1);
19789 return (1);
19790}
d9898ee8 19791
19792_ACEOF
b0322a85 19793if ac_fn_c_try_run "$LINENO"; then :
8d138742 19794 mailgroup=`cat conftest.out`
d9898ee8 19795else
b0322a85 19796 as_fn_error use --with-mailgroup. "Cannot determine mail group" "$LINENO" 5
d9898ee8 19797fi
b0322a85
CE
19798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19799 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742
CE
19800fi
19801
8d138742
CE
19802 else
19803 mailgroup="$cmailgroup"
19804 fi
19805 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
d9898ee8 19806
19807fi
d9898ee8 19808
b0322a85 19809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailgroup $result" >&5
8d138742 19810$as_echo "$mailgroup $result" >&6; }
d9898ee8 19811
19812
8d138742
CE
19813rm -f conftest.out
19814
19815
19816# Check whether --with-stdheaderdir was given.
b0322a85 19817if test "${with_stdheaderdir+set}" = set; then :
8d138742
CE
19818 withval=$with_stdheaderdir;
19819 if test "$withval" = "no"
19820 then
19821
19822cat >>confdefs.h <<_ACEOF
19823#define HAVE_NOSTDHEADERDIR 1
d9898ee8 19824_ACEOF
19825
8d138742
CE
19826 fi
19827
d9898ee8 19828fi
19829
8d138742 19830
b0322a85 19831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
8d138742 19832$as_echo_n "checking for socklen_t... " >&6; }
b0322a85 19833if ${authlib_cv_hassocklen_t+:} false; then :
8d138742 19834 $as_echo_n "(cached) " >&6
d9898ee8 19835else
b0322a85 19836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 19837/* end confdefs.h. */
8d138742 19838
b0322a85 19839
d9898ee8 19840#include <sys/types.h>
8d138742
CE
19841#include <sys/socket.h>
19842
19843socklen_t sl_t;
d9898ee8 19844
d9898ee8 19845_ACEOF
b0322a85 19846if ac_fn_c_try_compile "$LINENO"; then :
8d138742 19847 authlib_cv_hassocklen_t=yes
d9898ee8 19848else
b0322a85 19849 authlib_cv_hassocklen_t=no
d9898ee8 19850fi
dd184caf 19851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 19852
d9898ee8 19853fi
b0322a85 19854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_hassocklen_t" >&5
8d138742
CE
19855$as_echo "$authlib_cv_hassocklen_t" >&6; }
19856
19857socklen_t="int"
19858
19859if test $authlib_cv_hassocklen_t = yes
19860then
19861 :
19862else
d9898ee8 19863
19864cat >>confdefs.h <<_ACEOF
8d138742 19865#define socklen_t int
d9898ee8 19866_ACEOF
19867
8d138742
CE
19868fi
19869
d9898ee8 19870
8d138742 19871# Check whether --with-repository was given.
b0322a85 19872if test "${with_repository+set}" = set; then :
8d138742
CE
19873 withval=$with_repository; REPOSITORY="$withval"
19874fi
d9898ee8 19875
19876
19877
b0322a85 19878 if test -d ${srcdir}/libs/docbook; then
8d138742
CE
19879 HAVE_SGML_TRUE=
19880 HAVE_SGML_FALSE='#'
d9898ee8 19881else
8d138742
CE
19882 HAVE_SGML_TRUE='#'
19883 HAVE_SGML_FALSE=
19884fi
d9898ee8 19885
d50284c4
CE
19886
19887# This gets built by the make rule, and is not in the git repo
19888
19889for f in authdaemonrc.in
19890do
19891 if test ! -f "$srcdir/$f"
19892 then
19893 cp -p "$srcdir/$f.git" "$srcdir/$f"
19894 touch "$srcdir/$f.git"
19895 fi
19896done
19897
19898subdirs="$subdirs libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog"
d9898ee8 19899
d9898ee8 19900
b0322a85 19901ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit courier-authlib.service userdb-test-cram-md5.pl"
d9898ee8 19902
8d138742
CE
19903cat >confcache <<\_ACEOF
19904# This file is a shell script that caches the results of configure
19905# tests run on this system so they can be shared between configure
19906# scripts and configure runs, see configure's option --config-cache.
19907# It is not useful on other systems. If it contains results you don't
19908# want to keep, you may remove or edit it.
19909#
19910# config.status only pays attention to the cache file if you give it
19911# the --recheck option to rerun configure.
19912#
19913# `ac_cv_env_foo' variables (set or unset) will be overridden when
19914# loading this file, other *unset* `ac_cv_foo' will be assigned the
19915# following values.
d9898ee8 19916
d9898ee8 19917_ACEOF
d9898ee8 19918
8d138742
CE
19919# The following way of writing the cache mishandles newlines in values,
19920# but we know of no workaround that is simple, portable, and efficient.
19921# So, we kill variables containing newlines.
19922# Ultrix sh set writes to stderr and can't be redirected directly,
19923# and sets the high bit in the cache file unless we assign to the vars.
19924(
19925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19926 eval ac_val=\$$ac_var
19927 case $ac_val in #(
19928 *${as_nl}*)
19929 case $ac_var in #(
b0322a85 19930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
19931$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19932 esac
19933 case $ac_var in #(
19934 _ | IFS | as_nl) ;; #(
19935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 19936 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
19937 esac ;;
19938 esac
19939 done
dd184caf 19940
8d138742
CE
19941 (set) 2>&1 |
19942 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19943 *${as_nl}ac_space=\ *)
b0322a85
CE
19944 # `set' does not quote correctly, so add quotes: double-quote
19945 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
19946 sed -n \
19947 "s/'/'\\\\''/g;
19948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19949 ;; #(
19950 *)
19951 # `set' quotes correctly as required by POSIX, so do not add quotes.
19952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19953 ;;
19954 esac |
19955 sort
19956) |
19957 sed '
19958 /^ac_cv_env_/b end
19959 t clear
19960 :clear
19961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19962 t end
19963 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19964 :end' >>confcache
19965if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19966 if test -w "$cache_file"; then
b0322a85
CE
19967 if test "x$cache_file" != "x/dev/null"; then
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 19969$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
19970 if test ! -f "$cache_file" || test -h "$cache_file"; then
19971 cat confcache >"$cache_file"
19972 else
19973 case $cache_file in #(
19974 */* | ?:*)
19975 mv -f confcache "$cache_file"$$ &&
19976 mv -f "$cache_file"$$ "$cache_file" ;; #(
19977 *)
19978 mv -f confcache "$cache_file" ;;
19979 esac
19980 fi
19981 fi
8d138742 19982 else
b0322a85 19983 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
19984$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19985 fi
d9898ee8 19986fi
8d138742 19987rm -f confcache
d9898ee8 19988
8d138742
CE
19989test "x$prefix" = xNONE && prefix=$ac_default_prefix
19990# Let make expand exec_prefix.
19991test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19992
19993DEFS=-DHAVE_CONFIG_H
19994
19995ac_libobjs=
19996ac_ltlibobjs=
d50284c4 19997U=
8d138742
CE
19998for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19999 # 1. Remove the extension, and $U if already installed.
20000 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20001 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20002 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20003 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
20004 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20005 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 20006done
8d138742 20007LIBOBJS=$ac_libobjs
d9898ee8 20008
8d138742 20009LTLIBOBJS=$ac_ltlibobjs
d9898ee8 20010
8d138742 20011
b0322a85
CE
20012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20013$as_echo_n "checking that generated files are newer than configure... " >&6; }
20014 if test -n "$am_sleep_pid"; then
20015 # Hide warnings about reused PIDs.
20016 wait $am_sleep_pid 2>/dev/null
20017 fi
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20019$as_echo "done" >&6; }
8d138742
CE
20020 if test -n "$EXEEXT"; then
20021 am__EXEEXT_TRUE=
20022 am__EXEEXT_FALSE='#'
d9898ee8 20023else
8d138742
CE
20024 am__EXEEXT_TRUE='#'
20025 am__EXEEXT_FALSE=
20026fi
d9898ee8 20027
8d138742 20028if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
20029 as_fn_error $? "conditional \"AMDEP\" was never defined.
20030Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
20031fi
20032if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
20033 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20034Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 20035fi
0e333c05
CE
20036if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20037 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20038Usually this means the macro was only invoked conditionally." "$LINENO" 5
20039fi
8d138742 20040if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
b0322a85
CE
20041 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
20042Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
20043fi
20044if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
b0322a85
CE
20045 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
20046Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
20047fi
20048LT_CONFIG_H=courier_auth_config.h
20049
20050 _ltdl_libobjs=
20051 _ltdl_ltlibobjs=
20052 if test -n "$_LT_LIBOBJS"; then
20053 # Remove the extension.
20054 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
20055 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
20056 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
20057 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
20058 done
20059 fi
20060 ltdl_LIBOBJS=$_ltdl_libobjs
20061
20062 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
20063
20064
20065if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
b0322a85
CE
20066 as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
20067Usually this means the macro was only invoked conditionally." "$LINENO" 5
d9898ee8 20068fi
8d138742 20069if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
b0322a85
CE
20070 as_fn_error $? "conditional \"HAVE_AUTHPGSQL\" was never defined.
20071Usually this means the macro was only invoked conditionally." "$LINENO" 5
d9898ee8 20072fi
8d138742 20073if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
b0322a85
CE
20074 as_fn_error $? "conditional \"HAVE_AUTHMYSQL\" was never defined.
20075Usually this means the macro was only invoked conditionally." "$LINENO" 5
20076fi
20077if test -z "${HAVE_AUTHSQLITE_TRUE}" && test -z "${HAVE_AUTHSQLITE_FALSE}"; then
20078 as_fn_error $? "conditional \"HAVE_AUTHSQLITE\" was never defined.
20079Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
20080fi
20081if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
b0322a85
CE
20082 as_fn_error $? "conditional \"HAVE_CUSTOM\" was never defined.
20083Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
20084fi
20085if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
b0322a85
CE
20086 as_fn_error $? "conditional \"HAVE_PIPE\" was never defined.
20087Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
20088fi
20089if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
b0322a85
CE
20090 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
20091Usually this means the macro was only invoked conditionally." "$LINENO" 5
d9898ee8 20092fi
20093
b0322a85 20094: "${CONFIG_STATUS=./config.status}"
8d138742
CE
20095ac_write_fail=0
20096ac_clean_files_save=$ac_clean_files
20097ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 20098{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 20099$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
20100as_write_fail=0
20101cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
20102#! $SHELL
20103# Generated by $as_me.
20104# Run this file to recreate the current configuration.
20105# Compiler output produced by configure, useful for debugging
20106# configure, is in config.log if it exists.
20107
20108debug=false
20109ac_cs_recheck=false
20110ac_cs_silent=false
d9898ee8 20111
b0322a85
CE
20112SHELL=\${CONFIG_SHELL-$SHELL}
20113export SHELL
20114_ASEOF
20115cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20116## -------------------- ##
20117## M4sh Initialization. ##
20118## -------------------- ##
d9898ee8 20119
8d138742
CE
20120# Be more Bourne compatible
20121DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 20122if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
20123 emulate sh
20124 NULLCMD=:
20125 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20126 # is contrary to our usage. Disable this feature.
20127 alias -g '${1+"$@"}'='"$@"'
20128 setopt NO_GLOB_SUBST
20129else
b0322a85
CE
20130 case `(set -o) 2>/dev/null` in #(
20131 *posix*) :
20132 set -o posix ;; #(
20133 *) :
20134 ;;
8d138742 20135esac
8d138742 20136fi
d9898ee8 20137
d9898ee8 20138
8d138742
CE
20139as_nl='
20140'
20141export as_nl
20142# Printing a long string crashes Solaris 7 /usr/bin/printf.
20143as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20144as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
20146# Prefer a ksh shell builtin over an external printf program on Solaris,
20147# but without wasting forks for bash or zsh.
20148if test -z "$BASH_VERSION$ZSH_VERSION" \
20149 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20150 as_echo='print -r --'
20151 as_echo_n='print -rn --'
20152elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
20153 as_echo='printf %s\n'
20154 as_echo_n='printf %s'
20155else
20156 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20157 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20158 as_echo_n='/usr/ucb/echo -n'
20159 else
20160 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20161 as_echo_n_body='eval
20162 arg=$1;
b0322a85 20163 case $arg in #(
8d138742
CE
20164 *"$as_nl"*)
20165 expr "X$arg" : "X\\(.*\\)$as_nl";
20166 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20167 esac;
20168 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20169 '
20170 export as_echo_n_body
20171 as_echo_n='sh -c $as_echo_n_body as_echo'
20172 fi
20173 export as_echo_body
20174 as_echo='sh -c $as_echo_body as_echo'
20175fi
d9898ee8 20176
8d138742
CE
20177# The user is always right.
20178if test "${PATH_SEPARATOR+set}" != set; then
20179 PATH_SEPARATOR=:
20180 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20181 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20182 PATH_SEPARATOR=';'
20183 }
d9898ee8 20184fi
20185
d9898ee8 20186
8d138742
CE
20187# IFS
20188# We need space, tab and new line, in precisely that order. Quoting is
20189# there to prevent editors from complaining about space-tab.
20190# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20191# splitting by setting IFS to empty value.)
20192IFS=" "" $as_nl"
d9898ee8 20193
8d138742 20194# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
20195as_myself=
20196case $0 in #((
8d138742
CE
20197 *[\\/]* ) as_myself=$0 ;;
20198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20199for as_dir in $PATH
20200do
20201 IFS=$as_save_IFS
20202 test -z "$as_dir" && as_dir=.
b0322a85
CE
20203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20204 done
8d138742 20205IFS=$as_save_IFS
d9898ee8 20206
8d138742 20207 ;;
dd184caf 20208esac
8d138742
CE
20209# We did not find ourselves, most probably we were run as `sh COMMAND'
20210# in which case we are not to be found in the path.
20211if test "x$as_myself" = x; then
20212 as_myself=$0
20213fi
20214if test ! -f "$as_myself"; then
20215 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 20216 exit 1
d9898ee8 20217fi
dd184caf 20218
b0322a85
CE
20219# Unset variables that we do not need and which cause bugs (e.g. in
20220# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20221# suppresses any "Segmentation fault" message there. '((' could
20222# trigger a bug in pdksh 5.2.14.
20223for as_var in BASH_ENV ENV MAIL MAILPATH
20224do eval test x\${$as_var+set} = xset \
20225 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
20226done
20227PS1='$ '
20228PS2='> '
20229PS4='+ '
d9898ee8 20230
8d138742
CE
20231# NLS nuisances.
20232LC_ALL=C
20233export LC_ALL
20234LANGUAGE=C
20235export LANGUAGE
20236
b0322a85
CE
20237# CDPATH.
20238(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20239
20240
20241# as_fn_error STATUS ERROR [LINENO LOG_FD]
20242# ----------------------------------------
20243# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20244# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20245# script with STATUS, using 1 if that was 0.
20246as_fn_error ()
20247{
20248 as_status=$1; test $as_status -eq 0 && as_status=1
20249 if test "$4"; then
20250 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20251 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20252 fi
20253 $as_echo "$as_me: error: $2" >&2
20254 as_fn_exit $as_status
20255} # as_fn_error
20256
20257
20258# as_fn_set_status STATUS
20259# -----------------------
20260# Set $? to STATUS, without forking.
20261as_fn_set_status ()
20262{
20263 return $1
20264} # as_fn_set_status
20265
20266# as_fn_exit STATUS
20267# -----------------
20268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20269as_fn_exit ()
20270{
20271 set +e
20272 as_fn_set_status $1
20273 exit $1
20274} # as_fn_exit
20275
20276# as_fn_unset VAR
20277# ---------------
20278# Portably unset VAR.
20279as_fn_unset ()
20280{
20281 { eval $1=; unset $1;}
20282}
20283as_unset=as_fn_unset
20284# as_fn_append VAR VALUE
20285# ----------------------
20286# Append the text in VALUE to the end of the definition contained in VAR. Take
20287# advantage of any shell optimizations that allow amortized linear growth over
20288# repeated appends, instead of the typical quadratic growth present in naive
20289# implementations.
20290if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20291 eval 'as_fn_append ()
20292 {
20293 eval $1+=\$2
20294 }'
20295else
20296 as_fn_append ()
20297 {
20298 eval $1=\$$1\$2
20299 }
20300fi # as_fn_append
20301
20302# as_fn_arith ARG...
20303# ------------------
20304# Perform arithmetic evaluation on the ARGs, and store the result in the
20305# global $as_val. Take advantage of shells that can avoid forks. The arguments
20306# must be portable across $(()) and expr.
20307if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20308 eval 'as_fn_arith ()
20309 {
20310 as_val=$(( $* ))
20311 }'
20312else
20313 as_fn_arith ()
20314 {
20315 as_val=`expr "$@" || test $? -eq 1`
20316 }
20317fi # as_fn_arith
20318
20319
8d138742
CE
20320if expr a : '\(a\)' >/dev/null 2>&1 &&
20321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20322 as_expr=expr
20323else
20324 as_expr=false
20325fi
d9898ee8 20326
8d138742
CE
20327if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20328 as_basename=basename
20329else
20330 as_basename=false
d9898ee8 20331fi
d9898ee8 20332
b0322a85
CE
20333if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20334 as_dirname=dirname
20335else
20336 as_dirname=false
20337fi
d9898ee8 20338
8d138742
CE
20339as_me=`$as_basename -- "$0" ||
20340$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20341 X"$0" : 'X\(//\)$' \| \
20342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20343$as_echo X/"$0" |
20344 sed '/^.*\/\([^/][^/]*\)\/*$/{
20345 s//\1/
20346 q
20347 }
20348 /^X\/\(\/\/\)$/{
20349 s//\1/
20350 q
20351 }
20352 /^X\/\(\/\).*/{
20353 s//\1/
20354 q
20355 }
20356 s/.*/./; q'`
20357
b0322a85
CE
20358# Avoid depending upon Character Ranges.
20359as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20360as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20361as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20362as_cr_digits='0123456789'
20363as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 20364
8d138742 20365ECHO_C= ECHO_N= ECHO_T=
b0322a85 20366case `echo -n x` in #(((((
8d138742 20367-n*)
b0322a85 20368 case `echo 'xy\c'` in
8d138742 20369 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
20370 xy) ECHO_C='\c';;
20371 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20372 ECHO_T=' ';;
8d138742
CE
20373 esac;;
20374*)
20375 ECHO_N='-n';;
20376esac
dd184caf 20377
8d138742
CE
20378rm -f conf$$ conf$$.exe conf$$.file
20379if test -d conf$$.dir; then
20380 rm -f conf$$.dir/conf$$.file
20381else
20382 rm -f conf$$.dir
20383 mkdir conf$$.dir 2>/dev/null
20384fi
20385if (echo >conf$$.file) 2>/dev/null; then
20386 if ln -s conf$$.file conf$$ 2>/dev/null; then
20387 as_ln_s='ln -s'
20388 # ... but there are two gotchas:
20389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
b0322a85 20391 # In both cases, we have to default to `cp -pR'.
8d138742 20392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 20393 as_ln_s='cp -pR'
8d138742
CE
20394 elif ln conf$$.file conf$$ 2>/dev/null; then
20395 as_ln_s=ln
20396 else
b0322a85 20397 as_ln_s='cp -pR'
8d138742
CE
20398 fi
20399else
b0322a85 20400 as_ln_s='cp -pR'
8d138742
CE
20401fi
20402rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20403rmdir conf$$.dir 2>/dev/null
d9898ee8 20404
20405
b0322a85
CE
20406# as_fn_mkdir_p
20407# -------------
20408# Create "$as_dir" as a directory, including parents if necessary.
20409as_fn_mkdir_p ()
20410{
20411
20412 case $as_dir in #(
20413 -*) as_dir=./$as_dir;;
20414 esac
20415 test -d "$as_dir" || eval $as_mkdir_p || {
20416 as_dirs=
20417 while :; do
20418 case $as_dir in #(
20419 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20420 *) as_qdir=$as_dir;;
20421 esac
20422 as_dirs="'$as_qdir' $as_dirs"
20423 as_dir=`$as_dirname -- "$as_dir" ||
20424$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20425 X"$as_dir" : 'X\(//\)[^/]' \| \
20426 X"$as_dir" : 'X\(//\)$' \| \
20427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20428$as_echo X"$as_dir" |
20429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20430 s//\1/
20431 q
20432 }
20433 /^X\(\/\/\)[^/].*/{
20434 s//\1/
20435 q
20436 }
20437 /^X\(\/\/\)$/{
20438 s//\1/
20439 q
20440 }
20441 /^X\(\/\).*/{
20442 s//\1/
20443 q
20444 }
20445 s/.*/./; q'`
20446 test -d "$as_dir" && break
20447 done
20448 test -z "$as_dirs" || eval "mkdir $as_dirs"
20449 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20450
20451
20452} # as_fn_mkdir_p
20453if mkdir -p . 2>/dev/null; then
20454 as_mkdir_p='mkdir -p "$as_dir"'
8d138742 20455else
b0322a85
CE
20456 test -d ./-p && rmdir ./-p
20457 as_mkdir_p=false
8d138742 20458fi
b0322a85
CE
20459
20460
20461# as_fn_executable_p FILE
20462# -----------------------
20463# Test if FILE is an executable regular file.
20464as_fn_executable_p ()
20465{
20466 test -f "$1" && test -x "$1"
20467} # as_fn_executable_p
20468as_test_x='test -x'
20469as_executable_p=as_fn_executable_p
d9898ee8 20470
8d138742
CE
20471# Sed expression to map a string onto a valid CPP name.
20472as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 20473
8d138742
CE
20474# Sed expression to map a string onto a valid variable name.
20475as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 20476
d9898ee8 20477
8d138742 20478exec 6>&1
b0322a85
CE
20479## ----------------------------------- ##
20480## Main body of $CONFIG_STATUS script. ##
20481## ----------------------------------- ##
20482_ASEOF
20483test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 20484
b0322a85
CE
20485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20486# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
20487# report actual input values of CONFIG_FILES etc. instead of their
20488# values after options handling.
20489ac_log="
0e333c05 20490This file was extended by courier-authlib $as_me 0.69.0, which was
b0322a85 20491generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 20492
8d138742
CE
20493 CONFIG_FILES = $CONFIG_FILES
20494 CONFIG_HEADERS = $CONFIG_HEADERS
20495 CONFIG_LINKS = $CONFIG_LINKS
20496 CONFIG_COMMANDS = $CONFIG_COMMANDS
20497 $ $0 $@
d9898ee8 20498
8d138742
CE
20499on `(hostname || uname -n) 2>/dev/null | sed 1q`
20500"
d9898ee8 20501
8d138742 20502_ACEOF
d9898ee8 20503
8d138742
CE
20504case $ac_config_files in *"
20505"*) set x $ac_config_files; shift; ac_config_files=$*;;
20506esac
d9898ee8 20507
8d138742
CE
20508case $ac_config_headers in *"
20509"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20510esac
d9898ee8 20511
20512
8d138742
CE
20513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20514# Files that config.status was made for.
20515config_files="$ac_config_files"
20516config_headers="$ac_config_headers"
20517config_commands="$ac_config_commands"
d9898ee8 20518
8d138742 20519_ACEOF
d9898ee8 20520
8d138742
CE
20521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20522ac_cs_usage="\
b0322a85
CE
20523\`$as_me' instantiates files and other configuration actions
20524from templates according to the current configuration. Unless the files
20525and actions are specified as TAGs, all are instantiated by default.
d9898ee8 20526
b0322a85 20527Usage: $0 [OPTION]... [TAG]...
d9898ee8 20528
8d138742
CE
20529 -h, --help print this help, then exit
20530 -V, --version print version number and configuration settings, then exit
b0322a85 20531 --config print configuration, then exit
8d138742
CE
20532 -q, --quiet, --silent
20533 do not print progress messages
20534 -d, --debug don't remove temporary files
20535 --recheck update $as_me by reconfiguring in the same conditions
20536 --file=FILE[:TEMPLATE]
20537 instantiate the configuration file FILE
20538 --header=FILE[:TEMPLATE]
20539 instantiate the configuration header FILE
d9898ee8 20540
8d138742
CE
20541Configuration files:
20542$config_files
d9898ee8 20543
8d138742
CE
20544Configuration headers:
20545$config_headers
d9898ee8 20546
8d138742
CE
20547Configuration commands:
20548$config_commands
d9898ee8 20549
b0322a85 20550Report bugs to <courier-users@lists.sourceforge.net>."
d9898ee8 20551
8d138742
CE
20552_ACEOF
20553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 20554ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742 20555ac_cs_version="\\
0e333c05 20556courier-authlib config.status 0.69.0
b0322a85
CE
20557configured by $0, generated by GNU Autoconf 2.69,
20558 with options \\"\$ac_cs_config\\"
d9898ee8 20559
b0322a85 20560Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
20561This config.status script is free software; the Free Software Foundation
20562gives unlimited permission to copy, distribute and modify it."
d9898ee8 20563
8d138742
CE
20564ac_pwd='$ac_pwd'
20565srcdir='$srcdir'
20566INSTALL='$INSTALL'
20567MKDIR_P='$MKDIR_P'
20568AWK='$AWK'
20569test -n "\$AWK" || AWK=awk
d9898ee8 20570_ACEOF
d9898ee8 20571
8d138742
CE
20572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20573# The default lists apply if the user does not specify any file.
20574ac_need_defaults=:
20575while test $# != 0
20576do
20577 case $1 in
b0322a85 20578 --*=?*)
8d138742
CE
20579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20581 ac_shift=:
20582 ;;
b0322a85
CE
20583 --*=)
20584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20585 ac_optarg=
20586 ac_shift=:
20587 ;;
8d138742
CE
20588 *)
20589 ac_option=$1
20590 ac_optarg=$2
20591 ac_shift=shift
20592 ;;
20593 esac
20594
20595 case $ac_option in
20596 # Handling of the options.
20597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20598 ac_cs_recheck=: ;;
20599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20600 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
20601 --config | --confi | --conf | --con | --co | --c )
20602 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
20603 --debug | --debu | --deb | --de | --d | -d )
20604 debug=: ;;
20605 --file | --fil | --fi | --f )
20606 $ac_shift
20607 case $ac_optarg in
20608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 20609 '') as_fn_error $? "missing file argument" ;;
8d138742 20610 esac
b0322a85 20611 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
20612 ac_need_defaults=false;;
20613 --header | --heade | --head | --hea )
20614 $ac_shift
20615 case $ac_optarg in
20616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20617 esac
b0322a85 20618 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
20619 ac_need_defaults=false;;
20620 --he | --h)
20621 # Conflict between --help and --header
b0322a85
CE
20622 as_fn_error $? "ambiguous option: \`$1'
20623Try \`$0 --help' for more information.";;
8d138742
CE
20624 --help | --hel | -h )
20625 $as_echo "$ac_cs_usage"; exit ;;
20626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20628 ac_cs_silent=: ;;
dd184caf 20629
8d138742 20630 # This is an error.
b0322a85
CE
20631 -*) as_fn_error $? "unrecognized option: \`$1'
20632Try \`$0 --help' for more information." ;;
dd184caf 20633
b0322a85 20634 *) as_fn_append ac_config_targets " $1"
8d138742 20635 ac_need_defaults=false ;;
d9898ee8 20636
8d138742
CE
20637 esac
20638 shift
20639done
d9898ee8 20640
8d138742 20641ac_configure_extra_args=
d9898ee8 20642
8d138742
CE
20643if $ac_cs_silent; then
20644 exec 6>/dev/null
20645 ac_configure_extra_args="$ac_configure_extra_args --silent"
20646fi
d9898ee8 20647
8d138742
CE
20648_ACEOF
20649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20650if \$ac_cs_recheck; then
b0322a85 20651 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
20652 shift
20653 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20654 CONFIG_SHELL='$SHELL'
20655 export CONFIG_SHELL
20656 exec "\$@"
20657fi
dd184caf 20658
d9898ee8 20659_ACEOF
8d138742
CE
20660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20661exec 5>>config.log
20662{
20663 echo
20664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20665## Running $as_me. ##
20666_ASBOX
20667 $as_echo "$ac_log"
20668} >&5
d9898ee8 20669
8d138742
CE
20670_ACEOF
20671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20672#
20673# INIT-COMMANDS
20674#
20675AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 20676
d9898ee8 20677
8d138742
CE
20678# The HP-UX ksh and POSIX shell print the target directory to stdout
20679# if CDPATH is set.
20680(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 20681
8d138742
CE
20682sed_quote_subst='$sed_quote_subst'
20683double_quote_subst='$double_quote_subst'
20684delay_variable_subst='$delay_variable_subst'
b0322a85
CE
20685macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20686macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20687enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20688enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20689pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20690enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
d50284c4 20691shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
20692SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20693ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20694PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20695host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20696host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20697host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20698build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20699build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20700build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20701SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20702Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20703GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20704EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20705FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20706LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20707NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20708LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20709max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20710ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20711exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20712lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20713lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20714lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20715lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20716lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20717reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20718reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20719OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20720deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20721file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20722file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20723want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20724DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20725sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20726AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20727AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20728archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20729STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20730RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20731old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20732old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20733old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20734lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20735CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20736CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20737compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20738GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20739lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20740lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
d50284c4 20741lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
20742lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20743lt_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 20744lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
20745nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20746lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
d50284c4 20747lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
20748objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20749MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20750lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20751lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20752lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20753lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20754lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20755need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20756MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20757DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20758NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20759LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20760OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20761OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20762libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20763shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20764extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20765archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20766enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20767export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20768whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20769compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20770old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20771old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20772archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20773archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20774module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20775module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20776with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20777allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20778no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20779hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20780hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20781hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20782hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20783hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20784hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20785hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20786inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20787link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20788always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20789export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20790exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20791include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20792prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20793postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20794file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20795variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20796need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20797need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20798version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20799runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20800shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20801shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20802libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20803library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20804soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20805install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20806postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20807postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20808finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20809finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20810hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20811sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
d50284c4
CE
20812configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20813configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
20814hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20815enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20816enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20817enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20818old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20819striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
0e333c05
CE
20820compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20821predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20822postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20823predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20824postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20825compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20826LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20827reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20828reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20829old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20830compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20831GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20832lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20833lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20834lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20835lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20836lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20837archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20838enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20839export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20840whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20841compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20842old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20843old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20844archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20845archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20846module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20847module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20848with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20849allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20850no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20851hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20852hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20853hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20854hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20855hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20856hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20857hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20858inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20859link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20860always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20861export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20862exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20863include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20864prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20865postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20866file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20867hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20868compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20869predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20870postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20871predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20872postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20873compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
8d138742
CE
20874
20875LTCC='$LTCC'
20876LTCFLAGS='$LTCFLAGS'
20877compiler='$compiler_DEFAULT'
20878
b0322a85
CE
20879# A function that is used when there is no print builtin or printf.
20880func_fallback_echo ()
20881{
20882 eval 'cat <<_LTECHO_EOF
20883\$1
20884_LTECHO_EOF'
20885}
20886
8d138742 20887# Quote evaled strings.
b0322a85
CE
20888for var in SHELL \
20889ECHO \
20890PATH_SEPARATOR \
20891SED \
8d138742
CE
20892GREP \
20893EGREP \
20894FGREP \
20895LD \
20896NM \
20897LN_S \
20898lt_SP2NL \
20899lt_NL2SP \
20900reload_flag \
20901OBJDUMP \
20902deplibs_check_method \
20903file_magic_cmd \
b0322a85
CE
20904file_magic_glob \
20905want_nocaseglob \
20906DLLTOOL \
20907sharedlib_from_linklib_cmd \
8d138742
CE
20908AR \
20909AR_FLAGS \
b0322a85 20910archiver_list_spec \
8d138742
CE
20911STRIP \
20912RANLIB \
20913CC \
20914CFLAGS \
20915compiler \
20916lt_cv_sys_global_symbol_pipe \
20917lt_cv_sys_global_symbol_to_cdecl \
d50284c4 20918lt_cv_sys_global_symbol_to_import \
8d138742
CE
20919lt_cv_sys_global_symbol_to_c_name_address \
20920lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d50284c4 20921lt_cv_nm_interface \
b0322a85 20922nm_file_list_spec \
d50284c4 20923lt_cv_truncate_bin \
8d138742 20924lt_prog_compiler_no_builtin_flag \
8d138742 20925lt_prog_compiler_pic \
b0322a85 20926lt_prog_compiler_wl \
8d138742
CE
20927lt_prog_compiler_static \
20928lt_cv_prog_compiler_c_o \
20929need_locks \
b0322a85 20930MANIFEST_TOOL \
8d138742
CE
20931DSYMUTIL \
20932NMEDIT \
20933LIPO \
20934OTOOL \
20935OTOOL64 \
20936shrext_cmds \
20937export_dynamic_flag_spec \
20938whole_archive_flag_spec \
20939compiler_needs_object \
20940with_gnu_ld \
20941allow_undefined_flag \
20942no_undefined_flag \
20943hardcode_libdir_flag_spec \
8d138742 20944hardcode_libdir_separator \
8d138742
CE
20945exclude_expsyms \
20946include_expsyms \
20947file_list_spec \
20948variables_saved_for_relink \
20949libname_spec \
20950library_names_spec \
20951soname_spec \
b0322a85 20952install_override_mode \
8d138742
CE
20953finish_eval \
20954old_striplib \
0e333c05
CE
20955striplib \
20956compiler_lib_search_dirs \
20957predep_objects \
20958postdep_objects \
20959predeps \
20960postdeps \
20961compiler_lib_search_path \
20962LD_CXX \
20963reload_flag_CXX \
20964compiler_CXX \
20965lt_prog_compiler_no_builtin_flag_CXX \
20966lt_prog_compiler_pic_CXX \
20967lt_prog_compiler_wl_CXX \
20968lt_prog_compiler_static_CXX \
20969lt_cv_prog_compiler_c_o_CXX \
20970export_dynamic_flag_spec_CXX \
20971whole_archive_flag_spec_CXX \
20972compiler_needs_object_CXX \
20973with_gnu_ld_CXX \
20974allow_undefined_flag_CXX \
20975no_undefined_flag_CXX \
20976hardcode_libdir_flag_spec_CXX \
20977hardcode_libdir_separator_CXX \
20978exclude_expsyms_CXX \
20979include_expsyms_CXX \
20980file_list_spec_CXX \
20981compiler_lib_search_dirs_CXX \
20982predep_objects_CXX \
20983postdep_objects_CXX \
20984predeps_CXX \
20985postdeps_CXX \
20986compiler_lib_search_path_CXX; do
b0322a85 20987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 20988 *[\\\\\\\`\\"\\\$]*)
d50284c4 20989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
20990 ;;
20991 *)
20992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20993 ;;
20994 esac
20995done
d9898ee8 20996
8d138742
CE
20997# Double-quote double-evaled strings.
20998for var in reload_cmds \
20999old_postinstall_cmds \
21000old_postuninstall_cmds \
21001old_archive_cmds \
21002extract_expsyms_cmds \
21003old_archive_from_new_cmds \
21004old_archive_from_expsyms_cmds \
21005archive_cmds \
21006archive_expsym_cmds \
21007module_cmds \
21008module_expsym_cmds \
21009export_symbols_cmds \
21010prelink_cmds \
b0322a85 21011postlink_cmds \
8d138742
CE
21012postinstall_cmds \
21013postuninstall_cmds \
21014finish_cmds \
21015sys_lib_search_path_spec \
d50284c4 21016configure_time_dlsearch_path \
0e333c05
CE
21017configure_time_lt_sys_library_path \
21018reload_cmds_CXX \
21019old_archive_cmds_CXX \
21020old_archive_from_new_cmds_CXX \
21021old_archive_from_expsyms_cmds_CXX \
21022archive_cmds_CXX \
21023archive_expsym_cmds_CXX \
21024module_cmds_CXX \
21025module_expsym_cmds_CXX \
21026export_symbols_cmds_CXX \
21027prelink_cmds_CXX \
21028postlink_cmds_CXX; do
b0322a85 21029 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 21030 *[\\\\\\\`\\"\\\$]*)
d50284c4 21031 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
21032 ;;
21033 *)
21034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21035 ;;
21036 esac
21037done
d9898ee8 21038
8d138742 21039ac_aux_dir='$ac_aux_dir'
8d138742 21040
d50284c4 21041# See if we are running on zsh, and set the options that allow our
8d138742 21042# commands through without removal of \ escapes INIT.
d50284c4 21043if test -n "\${ZSH_VERSION+set}"; then
8d138742 21044 setopt NO_GLOB_SUBST
d9898ee8 21045fi
dd184caf 21046
21047
8d138742
CE
21048 PACKAGE='$PACKAGE'
21049 VERSION='$VERSION'
8d138742
CE
21050 RM='$RM'
21051 ofile='$ofile'
d9898ee8 21052
dd184caf 21053
d9898ee8 21054
21055
0e333c05
CE
21056
21057
8d138742 21058_ACEOF
d9898ee8 21059
8d138742 21060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 21061
8d138742
CE
21062# Handling of arguments.
21063for ac_config_target in $ac_config_targets
21064do
21065 case $ac_config_target in
21066 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
21067 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21068 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21069 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21070 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
21071 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
21072 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
21073 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
21074 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;;
21075 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
21076 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
21077 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
21078 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
21079 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
b0322a85 21080 "courier-authlib.service") CONFIG_FILES="$CONFIG_FILES courier-authlib.service" ;;
8d138742 21081 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
d9898ee8 21082
b0322a85 21083 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
21084 esac
21085done
d9898ee8 21086
d9898ee8 21087
8d138742
CE
21088# If the user did not use the arguments to specify the items to instantiate,
21089# then the envvar interface is used. Set only those that are not.
21090# We use the long form for the default assignment because of an extremely
21091# bizarre bug on SunOS 4.1.3.
21092if $ac_need_defaults; then
21093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
dd184caf 21096fi
21097
8d138742
CE
21098# Have a temporary directory for convenience. Make it in the build tree
21099# simply because there is no reason against having it here, and in addition,
21100# creating and moving files from /tmp can sometimes cause problems.
21101# Hook for its removal unless debugging.
21102# Note that there is a small window in which the directory will not be cleaned:
21103# after its creation but before its name has been assigned to `$tmp'.
21104$debug ||
21105{
b0322a85 21106 tmp= ac_tmp=
8d138742 21107 trap 'exit_status=$?
b0322a85
CE
21108 : "${ac_tmp:=$tmp}"
21109 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 21110' 0
b0322a85 21111 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
21112}
21113# Create a (secure) tmp directory for tmp files.
d9898ee8 21114
8d138742
CE
21115{
21116 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 21117 test -d "$tmp"
8d138742
CE
21118} ||
21119{
21120 tmp=./conf$$-$RANDOM
21121 (umask 077 && mkdir "$tmp")
b0322a85
CE
21122} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21123ac_tmp=$tmp
d9898ee8 21124
8d138742
CE
21125# Set up the scripts for CONFIG_FILES section.
21126# No need to generate them if there are no CONFIG_FILES.
21127# This happens for instance with `./config.status config.h'.
21128if test -n "$CONFIG_FILES"; then
d9898ee8 21129
d9898ee8 21130
b0322a85
CE
21131ac_cr=`echo X | tr X '\015'`
21132# On cygwin, bash can eat \r inside `` if the user requested igncr.
21133# But we know of no other shell where ac_cr would be empty at this
21134# point, so we can use a bashism as a fallback.
21135if test "x$ac_cr" = x; then
21136 eval ac_cr=\$\'\\r\'
21137fi
8d138742
CE
21138ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21139if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21140 ac_cs_awk_cr='\\r'
d9898ee8 21141else
8d138742 21142 ac_cs_awk_cr=$ac_cr
d9898ee8 21143fi
dd184caf 21144
b0322a85 21145echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8d138742 21146_ACEOF
d9898ee8 21147
d9898ee8 21148
8d138742
CE
21149{
21150 echo "cat >conf$$subs.awk <<_ACEOF" &&
21151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21152 echo "_ACEOF"
21153} >conf$$subs.sh ||
b0322a85
CE
21154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21155ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
21156ac_delim='%!_!# '
21157for ac_last_try in false false false false false :; do
21158 . ./conf$$subs.sh ||
b0322a85 21159 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
21160
21161 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21162 if test $ac_delim_n = $ac_delim_num; then
21163 break
21164 elif $ac_last_try; then
b0322a85 21165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
21166 else
21167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21168 fi
21169done
21170rm -f conf$$subs.sh
21171
21172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 21173cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
21174_ACEOF
21175sed -n '
21176h
21177s/^/S["/; s/!.*/"]=/
21178p
21179g
21180s/^[^!]*!//
21181:repl
21182t repl
21183s/'"$ac_delim"'$//
21184t delim
21185:nl
21186h
b0322a85 21187s/\(.\{148\}\)..*/\1/
8d138742
CE
21188t more1
21189s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21190p
21191n
21192b repl
21193:more1
21194s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21195p
21196g
21197s/.\{148\}//
21198t nl
21199:delim
21200h
b0322a85 21201s/\(.\{148\}\)..*/\1/
8d138742
CE
21202t more2
21203s/["\\]/\\&/g; s/^/"/; s/$/"/
21204p
21205b
21206:more2
21207s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21208p
21209g
21210s/.\{148\}//
21211t delim
21212' <conf$$subs.awk | sed '
21213/^[^""]/{
21214 N
21215 s/\n//
21216}
21217' >>$CONFIG_STATUS || ac_write_fail=1
21218rm -f conf$$subs.awk
21219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21220_ACAWK
b0322a85 21221cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
21222 for (key in S) S_is_set[key] = 1
21223 FS = "\a"
21224
21225}
21226{
21227 line = $ 0
21228 nfields = split(line, field, "@")
21229 substed = 0
21230 len = length(field[1])
21231 for (i = 2; i < nfields; i++) {
21232 key = field[i]
21233 keylen = length(key)
21234 if (S_is_set[key]) {
21235 value = S[key]
21236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21237 len += length(value) + length(field[++i])
21238 substed = 1
21239 } else
21240 len += 1 + keylen
21241 }
21242
21243 print line
21244}
d9898ee8 21245
8d138742
CE
21246_ACAWK
21247_ACEOF
21248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21249if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21250 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 21251else
8d138742 21252 cat
b0322a85
CE
21253fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21254 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
d9898ee8 21255_ACEOF
21256
b0322a85
CE
21257# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21258# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
21259# trailing colons and then remove the whole line if VPATH becomes empty
21260# (actually we leave an empty line to preserve line numbers).
21261if test "x$srcdir" = x.; then
b0322a85
CE
21262 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21263h
21264s///
21265s/^/:/
21266s/[ ]*$/:/
21267s/:\$(srcdir):/:/g
21268s/:\${srcdir}:/:/g
21269s/:@srcdir@:/:/g
21270s/^:*//
8d138742 21271s/:*$//
b0322a85
CE
21272x
21273s/\(=[ ]*\).*/\1/
21274G
21275s/\n//
8d138742
CE
21276s/^[^=]*=[ ]*$//
21277}'
d9898ee8 21278fi
21279
8d138742
CE
21280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21281fi # test -n "$CONFIG_FILES"
d9898ee8 21282
8d138742
CE
21283# Set up the scripts for CONFIG_HEADERS section.
21284# No need to generate them if there are no CONFIG_HEADERS.
21285# This happens for instance with `./config.status Makefile'.
21286if test -n "$CONFIG_HEADERS"; then
b0322a85 21287cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742
CE
21288BEGIN {
21289_ACEOF
d9898ee8 21290
8d138742
CE
21291# Transform confdefs.h into an awk script `defines.awk', embedded as
21292# here-document in config.status, that substitutes the proper values into
21293# config.h.in to produce config.h.
d9898ee8 21294
8d138742
CE
21295# Create a delimiter string that does not exist in confdefs.h, to ease
21296# handling of long lines.
21297ac_delim='%!_!# '
21298for ac_last_try in false false :; do
b0322a85
CE
21299 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21300 if test -z "$ac_tt"; then
8d138742
CE
21301 break
21302 elif $ac_last_try; then
b0322a85 21303 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
21304 else
21305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21306 fi
21307done
d9898ee8 21308
8d138742
CE
21309# For the awk script, D is an array of macro values keyed by name,
21310# likewise P contains macro parameters if any. Preserve backslash
21311# newline sequences.
d9898ee8 21312
8d138742
CE
21313ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21314sed -n '
21315s/.\{148\}/&'"$ac_delim"'/g
21316t rset
21317:rset
21318s/^[ ]*#[ ]*define[ ][ ]*/ /
21319t def
21320d
21321:def
21322s/\\$//
21323t bsnl
21324s/["\\]/\\&/g
21325s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21326D["\1"]=" \3"/p
21327s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21328d
21329:bsnl
21330s/["\\]/\\&/g
21331s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21332D["\1"]=" \3\\\\\\n"\\/p
21333t cont
21334s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21335t cont
21336d
21337:cont
21338n
21339s/.\{148\}/&'"$ac_delim"'/g
21340t clear
21341:clear
21342s/\\$//
21343t bsnlc
21344s/["\\]/\\&/g; s/^/"/; s/$/"/p
21345d
21346:bsnlc
21347s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21348b cont
21349' <confdefs.h | sed '
21350s/'"$ac_delim"'/"\\\
21351"/g' >>$CONFIG_STATUS || ac_write_fail=1
21352
21353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21354 for (key in D) D_is_set[key] = 1
21355 FS = "\a"
21356}
21357/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21358 line = \$ 0
21359 split(line, arg, " ")
21360 if (arg[1] == "#") {
21361 defundef = arg[2]
21362 mac1 = arg[3]
21363 } else {
21364 defundef = substr(arg[1], 2)
21365 mac1 = arg[2]
21366 }
21367 split(mac1, mac2, "(") #)
21368 macro = mac2[1]
21369 prefix = substr(line, 1, index(line, defundef) - 1)
21370 if (D_is_set[macro]) {
21371 # Preserve the white space surrounding the "#".
21372 print prefix "define", macro P[macro] D[macro]
21373 next
21374 } else {
21375 # Replace #undef with comments. This is necessary, for example,
21376 # in the case of _POSIX_SOURCE, which is predefined and required
21377 # on some systems where configure will not decide to define it.
21378 if (defundef == "undef") {
21379 print "/*", prefix defundef, macro, "*/"
21380 next
21381 }
21382 }
21383}
21384{ print }
21385_ACAWK
21386_ACEOF
21387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 21388 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 21389fi # test -n "$CONFIG_HEADERS"
d9898ee8 21390
21391
8d138742
CE
21392eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21393shift
21394for ac_tag
21395do
21396 case $ac_tag in
21397 :[FHLC]) ac_mode=$ac_tag; continue;;
21398 esac
21399 case $ac_mode$ac_tag in
21400 :[FHL]*:*);;
b0322a85 21401 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
21402 :[FH]-) ac_tag=-:-;;
21403 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21404 esac
21405 ac_save_IFS=$IFS
21406 IFS=:
21407 set x $ac_tag
21408 IFS=$ac_save_IFS
21409 shift
21410 ac_file=$1
21411 shift
d9898ee8 21412
8d138742
CE
21413 case $ac_mode in
21414 :L) ac_source=$1;;
21415 :[FH])
21416 ac_file_inputs=
21417 for ac_f
21418 do
21419 case $ac_f in
b0322a85 21420 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
21421 *) # Look for the file first in the build tree, then in the source tree
21422 # (if the path is not absolute). The absolute path cannot be DOS-style,
21423 # because $ac_f cannot contain `:'.
21424 test -f "$ac_f" ||
21425 case $ac_f in
21426 [\\/$]*) false;;
21427 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21428 esac ||
b0322a85 21429 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
21430 esac
21431 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 21432 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 21433 done
d9898ee8 21434
8d138742
CE
21435 # Let's still pretend it is `configure' which instantiates (i.e., don't
21436 # use $as_me), people would be surprised to read:
21437 # /* config.h. Generated by config.status. */
21438 configure_input='Generated from '`
21439 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21440 `' by configure.'
21441 if test x"$ac_file" != x-; then
21442 configure_input="$ac_file. $configure_input"
b0322a85 21443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
21444$as_echo "$as_me: creating $ac_file" >&6;}
21445 fi
21446 # Neutralize special characters interpreted by sed in replacement strings.
21447 case $configure_input in #(
21448 *\&* | *\|* | *\\* )
21449 ac_sed_conf_input=`$as_echo "$configure_input" |
21450 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21451 *) ac_sed_conf_input=$configure_input;;
21452 esac
d9898ee8 21453
8d138742 21454 case $ac_tag in
b0322a85
CE
21455 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
dd184caf 21457 esac
8d138742
CE
21458 ;;
21459 esac
dd184caf 21460
8d138742
CE
21461 ac_dir=`$as_dirname -- "$ac_file" ||
21462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$ac_file" : 'X\(//\)[^/]' \| \
21464 X"$ac_file" : 'X\(//\)$' \| \
21465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21466$as_echo X"$ac_file" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21468 s//\1/
21469 q
21470 }
21471 /^X\(\/\/\)[^/].*/{
21472 s//\1/
21473 q
21474 }
21475 /^X\(\/\/\)$/{
21476 s//\1/
21477 q
21478 }
21479 /^X\(\/\).*/{
21480 s//\1/
21481 q
21482 }
21483 s/.*/./; q'`
b0322a85 21484 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742
CE
21485 ac_builddir=.
21486
21487case "$ac_dir" in
21488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21489*)
21490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21491 # A ".." for each directory in $ac_dir_suffix.
21492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21493 case $ac_top_builddir_sub in
21494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21496 esac ;;
21497esac
21498ac_abs_top_builddir=$ac_pwd
21499ac_abs_builddir=$ac_pwd$ac_dir_suffix
21500# for backward compatibility:
21501ac_top_builddir=$ac_top_build_prefix
21502
21503case $srcdir in
21504 .) # We are building in place.
21505 ac_srcdir=.
21506 ac_top_srcdir=$ac_top_builddir_sub
21507 ac_abs_top_srcdir=$ac_pwd ;;
21508 [\\/]* | ?:[\\/]* ) # Absolute name.
21509 ac_srcdir=$srcdir$ac_dir_suffix;
21510 ac_top_srcdir=$srcdir
21511 ac_abs_top_srcdir=$srcdir ;;
21512 *) # Relative name.
21513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21514 ac_top_srcdir=$ac_top_build_prefix$srcdir
21515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21516esac
21517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21518
d9898ee8 21519
8d138742
CE
21520 case $ac_mode in
21521 :F)
21522 #
21523 # CONFIG_FILE
21524 #
d9898ee8 21525
8d138742
CE
21526 case $INSTALL in
21527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21528 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21529 esac
21530 ac_MKDIR_P=$MKDIR_P
21531 case $MKDIR_P in
21532 [\\/$]* | ?:[\\/]* ) ;;
21533 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21534 esac
21535_ACEOF
d9898ee8 21536
8d138742
CE
21537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21538# If the template does not know about datarootdir, expand it.
21539# FIXME: This hack should be removed a few years after 2.60.
21540ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
21541ac_sed_dataroot='
21542/datarootdir/ {
21543 p
21544 q
21545}
21546/@datadir@/p
21547/@docdir@/p
21548/@infodir@/p
21549/@localedir@/p
b0322a85 21550/@mandir@/p'
8d138742
CE
21551case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21552*datarootdir*) ac_datarootdir_seen=yes;;
21553*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 21554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742
CE
21555$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21556_ACEOF
21557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21558 ac_datarootdir_hack='
21559 s&@datadir@&$datadir&g
21560 s&@docdir@&$docdir&g
21561 s&@infodir@&$infodir&g
21562 s&@localedir@&$localedir&g
21563 s&@mandir@&$mandir&g
b0322a85 21564 s&\\\${datarootdir}&$datarootdir&g' ;;
8d138742
CE
21565esac
21566_ACEOF
d9898ee8 21567
8d138742
CE
21568# Neutralize VPATH when `$srcdir' = `.'.
21569# Shell code in configure.ac might set extrasub.
21570# FIXME: do we really want to maintain this feature?
21571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21572ac_sed_extra="$ac_vpsub
21573$extrasub
21574_ACEOF
21575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21576:t
21577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21578s|@configure_input@|$ac_sed_conf_input|;t t
21579s&@top_builddir@&$ac_top_builddir_sub&;t t
21580s&@top_build_prefix@&$ac_top_build_prefix&;t t
21581s&@srcdir@&$ac_srcdir&;t t
21582s&@abs_srcdir@&$ac_abs_srcdir&;t t
21583s&@top_srcdir@&$ac_top_srcdir&;t t
21584s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21585s&@builddir@&$ac_builddir&;t t
21586s&@abs_builddir@&$ac_abs_builddir&;t t
21587s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21588s&@INSTALL@&$ac_INSTALL&;t t
21589s&@MKDIR_P@&$ac_MKDIR_P&;t t
21590$ac_datarootdir_hack
21591"
b0322a85
CE
21592eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21593 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
21594
21595test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
21596 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21598 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21600which seems to be undefined. Please make sure it is defined" >&5
8d138742 21601$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 21602which seems to be undefined. Please make sure it is defined" >&2;}
8d138742 21603
b0322a85 21604 rm -f "$ac_tmp/stdin"
8d138742 21605 case $ac_file in
b0322a85
CE
21606 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21607 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 21608 esac \
b0322a85 21609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
21610 ;;
21611 :H)
21612 #
21613 # CONFIG_HEADER
21614 #
21615 if test x"$ac_file" != x-; then
21616 {
21617 $as_echo "/* $configure_input */" \
b0322a85
CE
21618 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21619 } >"$ac_tmp/config.h" \
21620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21621 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
21623$as_echo "$as_me: $ac_file is unchanged" >&6;}
21624 else
21625 rm -f "$ac_file"
b0322a85
CE
21626 mv "$ac_tmp/config.h" "$ac_file" \
21627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
21628 fi
21629 else
21630 $as_echo "/* $configure_input */" \
b0322a85
CE
21631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21632 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
21633 fi
21634# Compute "$ac_file"'s index in $config_headers.
21635_am_arg="$ac_file"
21636_am_stamp_count=1
21637for _am_header in $config_headers :; do
21638 case $_am_header in
21639 $_am_arg | $_am_arg:* )
21640 break ;;
21641 * )
21642 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21643 esac
21644done
21645echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21646$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21647 X"$_am_arg" : 'X\(//\)[^/]' \| \
21648 X"$_am_arg" : 'X\(//\)$' \| \
21649 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21650$as_echo X"$_am_arg" |
21651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21652 s//\1/
21653 q
21654 }
21655 /^X\(\/\/\)[^/].*/{
21656 s//\1/
21657 q
21658 }
21659 /^X\(\/\/\)$/{
21660 s//\1/
21661 q
21662 }
21663 /^X\(\/\).*/{
21664 s//\1/
21665 q
21666 }
21667 s/.*/./; q'`/stamp-h$_am_stamp_count
21668 ;;
21669
b0322a85 21670 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
21671$as_echo "$as_me: executing $ac_file commands" >&6;}
21672 ;;
21673 esac
21674
21675
21676 case $ac_file$ac_mode in
21677 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 21678 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
21679 # are listed without --file. Let's play safe and only enable the eval
21680 # if we detect the quoting.
21681 case $CONFIG_FILES in
21682 *\'*) eval set x "$CONFIG_FILES" ;;
21683 *) set x $CONFIG_FILES ;;
21684 esac
21685 shift
21686 for mf
21687 do
21688 # Strip MF so we end up with the name of the file.
21689 mf=`echo "$mf" | sed -e 's/:.*$//'`
21690 # Check whether this is an Automake generated Makefile or not.
b0322a85 21691 # We used to match only the files named 'Makefile.in', but
8d138742
CE
21692 # some people rename them; so instead we look at the file content.
21693 # Grep'ing the first line is not enough: some people post-process
21694 # each Makefile.in and add a new line on top of each file to say so.
21695 # Grep'ing the whole file is not good either: AIX grep has a line
21696 # limit of 2048, but all sed's we know have understand at least 4000.
21697 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21698 dirpart=`$as_dirname -- "$mf" ||
21699$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21700 X"$mf" : 'X\(//\)[^/]' \| \
21701 X"$mf" : 'X\(//\)$' \| \
21702 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21703$as_echo X"$mf" |
21704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21705 s//\1/
21706 q
21707 }
21708 /^X\(\/\/\)[^/].*/{
21709 s//\1/
21710 q
21711 }
21712 /^X\(\/\/\)$/{
21713 s//\1/
21714 q
21715 }
21716 /^X\(\/\).*/{
21717 s//\1/
21718 q
21719 }
21720 s/.*/./; q'`
21721 else
21722 continue
21723 fi
21724 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 21725 # from the Makefile without running 'make'.
8d138742
CE
21726 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21727 test -z "$DEPDIR" && continue
21728 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 21729 test -z "$am__include" && continue
8d138742 21730 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
21731 # Find all dependency output files, they are included files with
21732 # $(DEPDIR) in their names. We invoke sed twice because it is the
21733 # simplest approach to changing $(DEPDIR) to its actual value in the
21734 # expansion.
21735 for file in `sed -n "
21736 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 21737 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
21738 # Make sure the directory exists.
21739 test -f "$dirpart/$file" && continue
21740 fdir=`$as_dirname -- "$file" ||
21741$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21742 X"$file" : 'X\(//\)[^/]' \| \
21743 X"$file" : 'X\(//\)$' \| \
21744 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21745$as_echo X"$file" |
21746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21747 s//\1/
21748 q
21749 }
21750 /^X\(\/\/\)[^/].*/{
21751 s//\1/
21752 q
21753 }
21754 /^X\(\/\/\)$/{
21755 s//\1/
21756 q
21757 }
21758 /^X\(\/\).*/{
21759 s//\1/
21760 q
21761 }
21762 s/.*/./; q'`
b0322a85 21763 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
21764 # echo "creating $dirpart/$file"
21765 echo '# dummy' > "$dirpart/$file"
21766 done
21767 done
21768}
21769 ;;
21770 "libtool":C)
d9898ee8 21771
d50284c4 21772 # See if we are running on zsh, and set the options that allow our
8d138742 21773 # commands through without removal of \ escapes.
d50284c4 21774 if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
21775 setopt NO_GLOB_SUBST
21776 fi
21777
d50284c4 21778 cfgfile=${ofile}T
8d138742
CE
21779 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21780 $RM "$cfgfile"
21781
21782 cat <<_LT_EOF >> "$cfgfile"
d9898ee8 21783#! $SHELL
d50284c4 21784# Generated automatically by $as_me ($PACKAGE) $VERSION
8d138742
CE
21785# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21786# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d50284c4
CE
21787
21788# Provide generalized library-building support services.
21789# Written by Gordon Matzigkeit, 1996
21790
21791# Copyright (C) 2014 Free Software Foundation, Inc.
21792# This is free software; see the source for copying conditions. There is NO
21793# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21794
21795# GNU Libtool is free software; you can redistribute it and/or modify
21796# it under the terms of the GNU General Public License as published by
21797# the Free Software Foundation; either version 2 of of the License, or
21798# (at your option) any later version.
8d138742 21799#
d50284c4
CE
21800# As a special exception to the GNU General Public License, if you
21801# distribute this file as part of a program or library that is built
21802# using GNU Libtool, you may include this file under the same
21803# distribution terms that you use for the rest of that program.
8d138742 21804#
d50284c4
CE
21805# GNU Libtool is distributed in the hope that it will be useful, but
21806# WITHOUT ANY WARRANTY; without even the implied warranty of
8d138742
CE
21807# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21808# GNU General Public License for more details.
21809#
21810# You should have received a copy of the GNU General Public License
d50284c4 21811# along with this program. If not, see <http://www.gnu.org/licenses/>.
d9898ee8 21812
d9898ee8 21813
8d138742 21814# The names of the tagged configurations supported by this script.
0e333c05 21815available_tags='CXX '
d50284c4
CE
21816
21817# Configured defaults for sys_lib_dlsearch_path munging.
21818: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
dd184caf 21819
8d138742 21820# ### BEGIN LIBTOOL CONFIG
dd184caf 21821
8d138742
CE
21822# Which release of libtool.m4 was used?
21823macro_version=$macro_version
21824macro_revision=$macro_revision
dd184caf 21825
8d138742
CE
21826# Whether or not to build shared libraries.
21827build_libtool_libs=$enable_shared
dd184caf 21828
8d138742
CE
21829# Whether or not to build static libraries.
21830build_old_libs=$enable_static
dd184caf 21831
8d138742
CE
21832# What type of objects to build.
21833pic_mode=$pic_mode
dd184caf 21834
8d138742
CE
21835# Whether or not to optimize for fast installation.
21836fast_install=$enable_fast_install
d9898ee8 21837
d50284c4
CE
21838# Shared archive member basename,for filename based shared library versioning on AIX.
21839shared_archive_member_spec=$shared_archive_member_spec
21840
b0322a85
CE
21841# Shell to use when invoking shell scripts.
21842SHELL=$lt_SHELL
21843
21844# An echo program that protects backslashes.
21845ECHO=$lt_ECHO
21846
21847# The PATH separator for the build system.
21848PATH_SEPARATOR=$lt_PATH_SEPARATOR
21849
8d138742
CE
21850# The host system.
21851host_alias=$host_alias
21852host=$host
21853host_os=$host_os
d9898ee8 21854
8d138742
CE
21855# The build system.
21856build_alias=$build_alias
21857build=$build
21858build_os=$build_os
d9898ee8 21859
8d138742
CE
21860# A sed program that does not truncate output.
21861SED=$lt_SED
dd184caf 21862
8d138742
CE
21863# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21864Xsed="\$SED -e 1s/^X//"
dd184caf 21865
8d138742
CE
21866# A grep program that handles long lines.
21867GREP=$lt_GREP
dd184caf 21868
8d138742
CE
21869# An ERE matcher.
21870EGREP=$lt_EGREP
d9898ee8 21871
8d138742
CE
21872# A literal string matcher.
21873FGREP=$lt_FGREP
d9898ee8 21874
8d138742
CE
21875# A BSD- or MS-compatible name lister.
21876NM=$lt_NM
d9898ee8 21877
8d138742
CE
21878# Whether we need soft or hard links.
21879LN_S=$lt_LN_S
d9898ee8 21880
8d138742
CE
21881# What is the maximum length of a command?
21882max_cmd_len=$max_cmd_len
d9898ee8 21883
8d138742
CE
21884# Object file suffix (normally "o").
21885objext=$ac_objext
d9898ee8 21886
8d138742
CE
21887# Executable file suffix (normally "").
21888exeext=$exeext
d9898ee8 21889
8d138742
CE
21890# whether the shell understands "unset".
21891lt_unset=$lt_unset
d9898ee8 21892
8d138742
CE
21893# turn spaces into newlines.
21894SP2NL=$lt_lt_SP2NL
d9898ee8 21895
8d138742
CE
21896# turn newlines into spaces.
21897NL2SP=$lt_lt_NL2SP
d9898ee8 21898
b0322a85
CE
21899# convert \$build file names to \$host format.
21900to_host_file_cmd=$lt_cv_to_host_file_cmd
21901
21902# convert \$build files to toolchain format.
21903to_tool_file_cmd=$lt_cv_to_tool_file_cmd
d9898ee8 21904
8d138742
CE
21905# An object symbol dumper.
21906OBJDUMP=$lt_OBJDUMP
d9898ee8 21907
8d138742
CE
21908# Method to check whether dependent libraries are shared objects.
21909deplibs_check_method=$lt_deplibs_check_method
d9898ee8 21910
b0322a85 21911# Command to use when deplibs_check_method = "file_magic".
8d138742 21912file_magic_cmd=$lt_file_magic_cmd
dd184caf 21913
b0322a85
CE
21914# How to find potential files when deplibs_check_method = "file_magic".
21915file_magic_glob=$lt_file_magic_glob
21916
21917# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21918want_nocaseglob=$lt_want_nocaseglob
21919
21920# DLL creation program.
21921DLLTOOL=$lt_DLLTOOL
21922
21923# Command to associate shared and link libraries.
21924sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21925
8d138742
CE
21926# The archiver.
21927AR=$lt_AR
b0322a85
CE
21928
21929# Flags to create an archive.
8d138742 21930AR_FLAGS=$lt_AR_FLAGS
d9898ee8 21931
b0322a85
CE
21932# How to feed a file listing to the archiver.
21933archiver_list_spec=$lt_archiver_list_spec
21934
8d138742
CE
21935# A symbol stripping program.
21936STRIP=$lt_STRIP
21937
21938# Commands used to install an old-style archive.
21939RANLIB=$lt_RANLIB
21940old_postinstall_cmds=$lt_old_postinstall_cmds
21941old_postuninstall_cmds=$lt_old_postuninstall_cmds
21942
b0322a85
CE
21943# Whether to use a lock for old archive extraction.
21944lock_old_archive_extraction=$lock_old_archive_extraction
21945
8d138742
CE
21946# A C compiler.
21947LTCC=$lt_CC
21948
21949# LTCC compiler flags.
21950LTCFLAGS=$lt_CFLAGS
21951
21952# Take the output of nm and produce a listing of raw symbols and C names.
21953global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21954
21955# Transform the output of nm in a proper C declaration.
21956global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21957
d50284c4
CE
21958# Transform the output of nm into a list of symbols to manually relocate.
21959global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21960
8d138742
CE
21961# Transform the output of nm in a C name address pair.
21962global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21963
21964# Transform the output of nm in a C name address pair when lib prefix is needed.
21965global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21966
d50284c4
CE
21967# The name lister interface.
21968nm_interface=$lt_lt_cv_nm_interface
21969
b0322a85
CE
21970# Specify filename containing input files for \$NM.
21971nm_file_list_spec=$lt_nm_file_list_spec
8d138742 21972
d50284c4 21973# The root where to search for dependent libraries,and where our libraries should be installed.
b0322a85 21974lt_sysroot=$lt_sysroot
8d138742 21975
d50284c4
CE
21976# Command to truncate a binary pipe.
21977lt_truncate_bin=$lt_lt_cv_truncate_bin
21978
b0322a85
CE
21979# The name of the directory that contains temporary libtool files.
21980objdir=$objdir
8d138742
CE
21981
21982# Used to examine libraries when file_magic_cmd begins with "file".
21983MAGIC_CMD=$MAGIC_CMD
21984
21985# Must we lock files when doing compilation?
21986need_locks=$lt_need_locks
d9898ee8 21987
b0322a85
CE
21988# Manifest tool.
21989MANIFEST_TOOL=$lt_MANIFEST_TOOL
21990
8d138742
CE
21991# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21992DSYMUTIL=$lt_DSYMUTIL
d9898ee8 21993
8d138742
CE
21994# Tool to change global to local symbols on Mac OS X.
21995NMEDIT=$lt_NMEDIT
d9898ee8 21996
8d138742
CE
21997# Tool to manipulate fat objects and archives on Mac OS X.
21998LIPO=$lt_LIPO
d9898ee8 21999
8d138742
CE
22000# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22001OTOOL=$lt_OTOOL
d9898ee8 22002
8d138742
CE
22003# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22004OTOOL64=$lt_OTOOL64
d9898ee8 22005
8d138742
CE
22006# Old archive suffix (normally "a").
22007libext=$libext
d9898ee8 22008
8d138742
CE
22009# Shared library suffix (normally ".so").
22010shrext_cmds=$lt_shrext_cmds
d9898ee8 22011
8d138742
CE
22012# The commands to extract the exported symbol list from a shared archive.
22013extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 22014
8d138742
CE
22015# Variables whose values should be saved in libtool wrapper scripts and
22016# restored at link time.
22017variables_saved_for_relink=$lt_variables_saved_for_relink
d9898ee8 22018
8d138742
CE
22019# Do we need the "lib" prefix for modules?
22020need_lib_prefix=$need_lib_prefix
dd184caf 22021
8d138742
CE
22022# Do we need a version for libraries?
22023need_version=$need_version
d9898ee8 22024
8d138742
CE
22025# Library versioning type.
22026version_type=$version_type
d9898ee8 22027
8d138742
CE
22028# Shared library runtime path variable.
22029runpath_var=$runpath_var
d9898ee8 22030
8d138742
CE
22031# Shared library path variable.
22032shlibpath_var=$shlibpath_var
d9898ee8 22033
8d138742
CE
22034# Is shlibpath searched before the hard-coded library search path?
22035shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 22036
8d138742
CE
22037# Format of library name prefix.
22038libname_spec=$lt_libname_spec
d9898ee8 22039
8d138742
CE
22040# List of archive names. First name is the real one, the rest are links.
22041# The last name is the one that the linker finds with -lNAME
22042library_names_spec=$lt_library_names_spec
d9898ee8 22043
8d138742
CE
22044# The coded name of the library, if different from the real name.
22045soname_spec=$lt_soname_spec
d9898ee8 22046
b0322a85
CE
22047# Permission mode override for installation of shared libraries.
22048install_override_mode=$lt_install_override_mode
22049
8d138742
CE
22050# Command to use after installation of a shared archive.
22051postinstall_cmds=$lt_postinstall_cmds
d9898ee8 22052
8d138742
CE
22053# Command to use after uninstallation of a shared archive.
22054postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 22055
8d138742
CE
22056# Commands used to finish a libtool library installation in a directory.
22057finish_cmds=$lt_finish_cmds
d9898ee8 22058
8d138742
CE
22059# As "finish_cmds", except a single script fragment to be evaled but
22060# not shown.
22061finish_eval=$lt_finish_eval
dd184caf 22062
8d138742
CE
22063# Whether we should hardcode library paths into libraries.
22064hardcode_into_libs=$hardcode_into_libs
d9898ee8 22065
8d138742
CE
22066# Compile-time system search path for libraries.
22067sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 22068
d50284c4
CE
22069# Detected run-time system search path for libraries.
22070sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22071
22072# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22073configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d9898ee8 22074
8d138742
CE
22075# Whether dlopen is supported.
22076dlopen_support=$enable_dlopen
d9898ee8 22077
8d138742
CE
22078# Whether dlopen of programs is supported.
22079dlopen_self=$enable_dlopen_self
d9898ee8 22080
8d138742
CE
22081# Whether dlopen of statically linked programs is supported.
22082dlopen_self_static=$enable_dlopen_self_static
d9898ee8 22083
8d138742
CE
22084# Commands to strip libraries.
22085old_striplib=$lt_old_striplib
22086striplib=$lt_striplib
d9898ee8 22087
d9898ee8 22088
8d138742
CE
22089# The linker used to build libraries.
22090LD=$lt_LD
d9898ee8 22091
b0322a85
CE
22092# How to create reloadable object files.
22093reload_flag=$lt_reload_flag
22094reload_cmds=$lt_reload_cmds
22095
8d138742
CE
22096# Commands used to build an old-style archive.
22097old_archive_cmds=$lt_old_archive_cmds
d9898ee8 22098
8d138742
CE
22099# A language specific compiler.
22100CC=$lt_compiler
d9898ee8 22101
8d138742
CE
22102# Is the compiler the GNU compiler?
22103with_gcc=$GCC
d9898ee8 22104
8d138742
CE
22105# Compiler flag to turn off builtin functions.
22106no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 22107
8d138742
CE
22108# Additional compiler flags for building library objects.
22109pic_flag=$lt_lt_prog_compiler_pic
d9898ee8 22110
b0322a85
CE
22111# How to pass a linker flag through the compiler.
22112wl=$lt_lt_prog_compiler_wl
22113
8d138742
CE
22114# Compiler flag to prevent dynamic linking.
22115link_static_flag=$lt_lt_prog_compiler_static
dd184caf 22116
8d138742
CE
22117# Does compiler simultaneously support -c and -o options?
22118compiler_c_o=$lt_lt_cv_prog_compiler_c_o
d9898ee8 22119
8d138742
CE
22120# Whether or not to add -lc for building shared libraries.
22121build_libtool_need_lc=$archive_cmds_need_lc
22122
22123# Whether or not to disallow shared libs when runtime libs are static.
22124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22125
22126# Compiler flag to allow reflexive dlopens.
22127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22128
22129# Compiler flag to generate shared objects directly from archives.
22130whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 22131
8d138742
CE
22132# Whether the compiler copes with passing no objects directly.
22133compiler_needs_object=$lt_compiler_needs_object
d9898ee8 22134
8d138742
CE
22135# Create an old-style archive from a shared archive.
22136old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 22137
8d138742
CE
22138# Create a temporary old-style archive to link instead of a shared archive.
22139old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dd184caf 22140
8d138742
CE
22141# Commands used to build a shared archive.
22142archive_cmds=$lt_archive_cmds
22143archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 22144
8d138742
CE
22145# Commands used to build a loadable module if different from building
22146# a shared archive.
22147module_cmds=$lt_module_cmds
22148module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 22149
8d138742
CE
22150# Whether we are building with GNU ld or not.
22151with_gnu_ld=$lt_with_gnu_ld
dd184caf 22152
8d138742
CE
22153# Flag that allows shared libraries with undefined symbols to be built.
22154allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 22155
8d138742
CE
22156# Flag that enforces no undefined symbols.
22157no_undefined_flag=$lt_no_undefined_flag
dd184caf 22158
8d138742
CE
22159# Flag to hardcode \$libdir into a binary during linking.
22160# This must work even if \$libdir does not exist
22161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 22162
8d138742
CE
22163# Whether we need a single "-rpath" flag with a separated argument.
22164hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 22165
d50284c4 22166# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742
CE
22167# DIR into the resulting binary.
22168hardcode_direct=$hardcode_direct
dd184caf 22169
d50284c4 22170# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742 22171# DIR into the resulting binary and the resulting library dependency is
d50284c4 22172# "absolute",i.e impossible to change by setting \$shlibpath_var if the
8d138742
CE
22173# library is relocated.
22174hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 22175
8d138742
CE
22176# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22177# into the resulting binary.
22178hardcode_minus_L=$hardcode_minus_L
dd184caf 22179
8d138742
CE
22180# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22181# into the resulting binary.
22182hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 22183
8d138742
CE
22184# Set to "yes" if building a shared library automatically hardcodes DIR
22185# into the library and all subsequent libraries and executables linked
22186# against it.
22187hardcode_automatic=$hardcode_automatic
dd184caf 22188
8d138742
CE
22189# Set to yes if linker adds runtime paths of dependent libraries
22190# to runtime path list.
22191inherit_rpath=$inherit_rpath
dd184caf 22192
8d138742
CE
22193# Whether libtool must link a program against all its dependency libraries.
22194link_all_deplibs=$link_all_deplibs
dd184caf 22195
8d138742
CE
22196# Set to "yes" if exported symbols are required.
22197always_export_symbols=$always_export_symbols
dd184caf 22198
8d138742
CE
22199# The commands to list exported symbols.
22200export_symbols_cmds=$lt_export_symbols_cmds
d9898ee8 22201
8d138742
CE
22202# Symbols that should not be listed in the preloaded symbols.
22203exclude_expsyms=$lt_exclude_expsyms
d9898ee8 22204
8d138742
CE
22205# Symbols that must always be exported.
22206include_expsyms=$lt_include_expsyms
d9898ee8 22207
8d138742
CE
22208# Commands necessary for linking programs (against libraries) with templates.
22209prelink_cmds=$lt_prelink_cmds
d9898ee8 22210
b0322a85
CE
22211# Commands necessary for finishing linking programs.
22212postlink_cmds=$lt_postlink_cmds
22213
8d138742
CE
22214# Specify filename containing input files.
22215file_list_spec=$lt_file_list_spec
d9898ee8 22216
8d138742
CE
22217# How to hardcode a shared library path into an executable.
22218hardcode_action=$hardcode_action
d9898ee8 22219
0e333c05
CE
22220# The directories searched by this compiler when creating a shared library.
22221compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22222
22223# Dependencies to place before and after the objects being linked to
22224# create a shared library.
22225predep_objects=$lt_predep_objects
22226postdep_objects=$lt_postdep_objects
22227predeps=$lt_predeps
22228postdeps=$lt_postdeps
22229
22230# The library search path used internally by the compiler when linking
22231# a shared library.
22232compiler_lib_search_path=$lt_compiler_lib_search_path
22233
8d138742
CE
22234# ### END LIBTOOL CONFIG
22235
d50284c4
CE
22236_LT_EOF
22237
22238 cat <<'_LT_EOF' >> "$cfgfile"
22239
22240# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22241
22242# func_munge_path_list VARIABLE PATH
22243# -----------------------------------
22244# VARIABLE is name of variable containing _space_ separated list of
22245# directories to be munged by the contents of PATH, which is string
22246# having a format:
22247# "DIR[:DIR]:"
22248# string "DIR[ DIR]" will be prepended to VARIABLE
22249# ":DIR[:DIR]"
22250# string "DIR[ DIR]" will be appended to VARIABLE
22251# "DIRP[:DIRP]::[DIRA:]DIRA"
22252# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22253# "DIRA[ DIRA]" will be appended to VARIABLE
22254# "DIR[:DIR]"
22255# VARIABLE will be replaced by "DIR[ DIR]"
22256func_munge_path_list ()
22257{
22258 case x$2 in
22259 x)
22260 ;;
22261 *:)
22262 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22263 ;;
22264 x:*)
22265 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22266 ;;
22267 *::*)
22268 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22269 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22270 ;;
22271 *)
22272 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22273 ;;
22274 esac
22275}
22276
22277
22278# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22279func_cc_basename ()
22280{
22281 for cc_temp in $*""; do
22282 case $cc_temp in
22283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22285 \-*) ;;
22286 *) break;;
22287 esac
22288 done
22289 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22290}
22291
22292
22293# ### END FUNCTIONS SHARED WITH CONFIGURE
22294
8d138742
CE
22295_LT_EOF
22296
22297 case $host_os in
22298 aix3*)
22299 cat <<\_LT_EOF >> "$cfgfile"
22300# AIX sometimes has problems with the GCC collect2 program. For some
22301# reason, if we set the COLLECT_NAMES environment variable, the problems
22302# vanish in a puff of smoke.
d50284c4 22303if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
22304 COLLECT_NAMES=
22305 export COLLECT_NAMES
22306fi
22307_LT_EOF
22308 ;;
d9898ee8 22309 esac
8d138742
CE
22310
22311
d50284c4 22312ltmain=$ac_aux_dir/ltmain.sh
8d138742
CE
22313
22314
22315 # We use sed instead of cat because bash on DJGPP gets confused if
22316 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22317 # text mode, it properly converts lines to CR/LF. This bash problem
22318 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
22319 sed '$q' "$ltmain" >> "$cfgfile" \
22320 || (rm -f "$cfgfile"; exit 1)
22321
b0322a85 22322 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
22323 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22324 chmod +x "$ofile"
22325
0e333c05
CE
22326
22327 cat <<_LT_EOF >> "$ofile"
22328
22329# ### BEGIN LIBTOOL TAG CONFIG: CXX
22330
22331# The linker used to build libraries.
22332LD=$lt_LD_CXX
22333
22334# How to create reloadable object files.
22335reload_flag=$lt_reload_flag_CXX
22336reload_cmds=$lt_reload_cmds_CXX
22337
22338# Commands used to build an old-style archive.
22339old_archive_cmds=$lt_old_archive_cmds_CXX
22340
22341# A language specific compiler.
22342CC=$lt_compiler_CXX
22343
22344# Is the compiler the GNU compiler?
22345with_gcc=$GCC_CXX
22346
22347# Compiler flag to turn off builtin functions.
22348no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22349
22350# Additional compiler flags for building library objects.
22351pic_flag=$lt_lt_prog_compiler_pic_CXX
22352
22353# How to pass a linker flag through the compiler.
22354wl=$lt_lt_prog_compiler_wl_CXX
22355
22356# Compiler flag to prevent dynamic linking.
22357link_static_flag=$lt_lt_prog_compiler_static_CXX
22358
22359# Does compiler simultaneously support -c and -o options?
22360compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22361
22362# Whether or not to add -lc for building shared libraries.
22363build_libtool_need_lc=$archive_cmds_need_lc_CXX
22364
22365# Whether or not to disallow shared libs when runtime libs are static.
22366allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22367
22368# Compiler flag to allow reflexive dlopens.
22369export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22370
22371# Compiler flag to generate shared objects directly from archives.
22372whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22373
22374# Whether the compiler copes with passing no objects directly.
22375compiler_needs_object=$lt_compiler_needs_object_CXX
22376
22377# Create an old-style archive from a shared archive.
22378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22379
22380# Create a temporary old-style archive to link instead of a shared archive.
22381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22382
22383# Commands used to build a shared archive.
22384archive_cmds=$lt_archive_cmds_CXX
22385archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22386
22387# Commands used to build a loadable module if different from building
22388# a shared archive.
22389module_cmds=$lt_module_cmds_CXX
22390module_expsym_cmds=$lt_module_expsym_cmds_CXX
22391
22392# Whether we are building with GNU ld or not.
22393with_gnu_ld=$lt_with_gnu_ld_CXX
22394
22395# Flag that allows shared libraries with undefined symbols to be built.
22396allow_undefined_flag=$lt_allow_undefined_flag_CXX
22397
22398# Flag that enforces no undefined symbols.
22399no_undefined_flag=$lt_no_undefined_flag_CXX
22400
22401# Flag to hardcode \$libdir into a binary during linking.
22402# This must work even if \$libdir does not exist
22403hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22404
22405# Whether we need a single "-rpath" flag with a separated argument.
22406hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22407
22408# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22409# DIR into the resulting binary.
22410hardcode_direct=$hardcode_direct_CXX
22411
22412# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22413# DIR into the resulting binary and the resulting library dependency is
22414# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22415# library is relocated.
22416hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22417
22418# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22419# into the resulting binary.
22420hardcode_minus_L=$hardcode_minus_L_CXX
22421
22422# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22423# into the resulting binary.
22424hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22425
22426# Set to "yes" if building a shared library automatically hardcodes DIR
22427# into the library and all subsequent libraries and executables linked
22428# against it.
22429hardcode_automatic=$hardcode_automatic_CXX
22430
22431# Set to yes if linker adds runtime paths of dependent libraries
22432# to runtime path list.
22433inherit_rpath=$inherit_rpath_CXX
22434
22435# Whether libtool must link a program against all its dependency libraries.
22436link_all_deplibs=$link_all_deplibs_CXX
22437
22438# Set to "yes" if exported symbols are required.
22439always_export_symbols=$always_export_symbols_CXX
22440
22441# The commands to list exported symbols.
22442export_symbols_cmds=$lt_export_symbols_cmds_CXX
22443
22444# Symbols that should not be listed in the preloaded symbols.
22445exclude_expsyms=$lt_exclude_expsyms_CXX
22446
22447# Symbols that must always be exported.
22448include_expsyms=$lt_include_expsyms_CXX
22449
22450# Commands necessary for linking programs (against libraries) with templates.
22451prelink_cmds=$lt_prelink_cmds_CXX
22452
22453# Commands necessary for finishing linking programs.
22454postlink_cmds=$lt_postlink_cmds_CXX
22455
22456# Specify filename containing input files.
22457file_list_spec=$lt_file_list_spec_CXX
22458
22459# How to hardcode a shared library path into an executable.
22460hardcode_action=$hardcode_action_CXX
22461
22462# The directories searched by this compiler when creating a shared library.
22463compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22464
22465# Dependencies to place before and after the objects being linked to
22466# create a shared library.
22467predep_objects=$lt_predep_objects_CXX
22468postdep_objects=$lt_postdep_objects_CXX
22469predeps=$lt_predeps_CXX
22470postdeps=$lt_postdeps_CXX
22471
22472# The library search path used internally by the compiler when linking
22473# a shared library.
22474compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22475
22476# ### END LIBTOOL TAG CONFIG: CXX
22477_LT_EOF
22478
d9898ee8 22479 ;;
dd184caf 22480
d9898ee8 22481 esac
dd184caf 22482done # for ac_tag
d9898ee8 22483
d9898ee8 22484
b0322a85 22485as_fn_exit 0
d9898ee8 22486_ACEOF
d9898ee8 22487ac_clean_files=$ac_clean_files_save
22488
8d138742 22489test $ac_write_fail = 0 ||
b0322a85 22490 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 22491
d9898ee8 22492
22493# configure is writing to config.log, and then calls config.status.
22494# config.status does its own redirection, appending to config.log.
22495# Unfortunately, on DOS this fails, as config.log is still kept open
22496# by configure, so config.status won't be able to write to it; its
22497# output is simply discarded. So we exec the FD to /dev/null,
22498# effectively closing config.log, so it can be properly (re)opened and
22499# appended to by config.status. When coming back to configure, we
22500# need to make the FD available again.
22501if test "$no_create" != yes; then
22502 ac_cs_success=:
22503 ac_config_status_args=
22504 test "$silent" = yes &&
22505 ac_config_status_args="$ac_config_status_args --quiet"
22506 exec 5>/dev/null
22507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22508 exec 5>>config.log
22509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22510 # would make configure fail if this is the last instruction.
b0322a85 22511 $ac_cs_success || as_fn_exit 1
d9898ee8 22512fi
22513
22514#
22515# CONFIG_SUBDIRS section.
22516#
22517if test "$no_recursion" != yes; then
22518
8d138742
CE
22519 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22520 # so they do not pile up.
d9898ee8 22521 ac_sub_configure_args=
22522 ac_prev=
dd184caf 22523 eval "set x $ac_configure_args"
22524 shift
22525 for ac_arg
22526 do
d9898ee8 22527 if test -n "$ac_prev"; then
22528 ac_prev=
22529 continue
22530 fi
22531 case $ac_arg in
22532 -cache-file | --cache-file | --cache-fil | --cache-fi \
22533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22534 ac_prev=cache_file ;;
22535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22537 | --c=*)
22538 ;;
22539 --config-cache | -C)
22540 ;;
22541 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22542 ac_prev=srcdir ;;
22543 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22544 ;;
22545 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22546 ac_prev=prefix ;;
22547 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22548 ;;
8d138742
CE
22549 --disable-option-checking)
22550 ;;
dd184caf 22551 *)
22552 case $ac_arg in
8d138742 22553 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
dd184caf 22554 esac
b0322a85 22555 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
d9898ee8 22556 esac
22557 done
22558
22559 # Always prepend --prefix to ensure using the same prefix
22560 # in subdir configurations.
dd184caf 22561 ac_arg="--prefix=$prefix"
22562 case $ac_arg in
8d138742 22563 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
dd184caf 22564 esac
22565 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22566
22567 # Pass --silent
22568 if test "$silent" = yes; then
22569 ac_sub_configure_args="--silent $ac_sub_configure_args"
22570 fi
d9898ee8 22571
8d138742
CE
22572 # Always prepend --disable-option-checking to silence warnings, since
22573 # different subdirs can have different --enable and --with options.
22574 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22575
d9898ee8 22576 ac_popdir=`pwd`
22577 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22578
22579 # Do not complain, so a configure script can configure whichever
22580 # parts of a large source tree are present.
dd184caf 22581 test -d "$srcdir/$ac_dir" || continue
22582
22583 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
b0322a85 22584 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8d138742 22585 $as_echo "$ac_msg" >&6
b0322a85 22586 as_dir="$ac_dir"; as_fn_mkdir_p
d9898ee8 22587 ac_builddir=.
22588
dd184caf 22589case "$ac_dir" in
22590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22591*)
8d138742 22592 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 22593 # A ".." for each directory in $ac_dir_suffix.
8d138742 22594 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 22595 case $ac_top_builddir_sub in
22596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22598 esac ;;
22599esac
22600ac_abs_top_builddir=$ac_pwd
22601ac_abs_builddir=$ac_pwd$ac_dir_suffix
22602# for backward compatibility:
22603ac_top_builddir=$ac_top_build_prefix
d9898ee8 22604
22605case $srcdir in
dd184caf 22606 .) # We are building in place.
d9898ee8 22607 ac_srcdir=.
dd184caf 22608 ac_top_srcdir=$ac_top_builddir_sub
22609 ac_abs_top_srcdir=$ac_pwd ;;
22610 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 22611 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 22612 ac_top_srcdir=$srcdir
22613 ac_abs_top_srcdir=$srcdir ;;
22614 *) # Relative name.
22615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22616 ac_top_srcdir=$ac_top_build_prefix$srcdir
22617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 22618esac
dd184caf 22619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 22620
22621
dd184caf 22622 cd "$ac_dir"
d9898ee8 22623
22624 # Check for guested configure; otherwise get Cygnus style configure.
dd184caf 22625 if test -f "$ac_srcdir/configure.gnu"; then
22626 ac_sub_configure=$ac_srcdir/configure.gnu
22627 elif test -f "$ac_srcdir/configure"; then
22628 ac_sub_configure=$ac_srcdir/configure
22629 elif test -f "$ac_srcdir/configure.in"; then
22630 # This should be Cygnus configure.
22631 ac_sub_configure=$ac_aux_dir/configure
d9898ee8 22632 else
b0322a85 22633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8d138742 22634$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
d9898ee8 22635 ac_sub_configure=
22636 fi
22637
22638 # The recursion is here.
22639 if test -n "$ac_sub_configure"; then
22640 # Make the cache file name correct relative to the subdirectory.
22641 case $cache_file in
22642 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
dd184caf 22643 *) # Relative name.
22644 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
d9898ee8 22645 esac
22646
b0322a85 22647 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8d138742 22648$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
d9898ee8 22649 # The eval makes quoting arguments work.
dd184caf 22650 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22651 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
b0322a85 22652 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
d9898ee8 22653 fi
22654
dd184caf 22655 cd "$ac_popdir"
d9898ee8 22656 done
22657fi
8d138742 22658if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 22659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
22660$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22661fi
d9898ee8 22662