Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / userdb / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b0322a85 3# Generated by GNU Autoconf 2.69 for libuserdb 0.10.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
b0322a85
CE
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
d9898ee8 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
b0322a85
CE
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
d9898ee8 16
dd184caf 17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
d9898ee8 20 emulate sh
21 NULLCMD=:
8d138742 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
dd184caf 25 setopt NO_GLOB_SUBST
26else
b0322a85
CE
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
dd184caf 32esac
dd184caf 33fi
34
35
8d138742
CE
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
b0322a85 60 case $arg in #(
8d138742
CE
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
d9898ee8 83
dd184caf 84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
dd184caf 89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
92as_myself=
93case $0 in #((
dd184caf 94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
b0322a85
CE
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
dd184caf 102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
8d138742 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 113 exit 1
dd184caf 114fi
115
b0322a85
CE
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
dd184caf 123done
d9898ee8 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8d138742
CE
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
d9898ee8 133
dd184caf 134# CDPATH.
b0322a85 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 136
b0322a85
CE
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
dd184caf 162if test "x$CONFIG_SHELL" = x; then
b0322a85
CE
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
dd184caf 170else
b0322a85
CE
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
d9898ee8 177fi
b0322a85
CE
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
d9898ee8 184
dd184caf 185exitcode=0
b0322a85
CE
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
dd184caf 212else
b0322a85 213 as_have_required=no
dd184caf 214fi
b0322a85 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
dd184caf 216
dd184caf 217else
b0322a85
CE
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
d9898ee8 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
b0322a85
CE
224 as_found=:
225 case $as_dir in #(
d9898ee8 226 /*)
dd184caf 227 for as_base in sh bash ksh sh5; do
b0322a85
CE
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
dd184caf 237 done;;
238 esac
b0322a85 239 as_found=false
dd184caf 240done
b0322a85
CE
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
dd184caf 245IFS=$as_save_IFS
246
247
b0322a85
CE
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
dd184caf 262esac
b0322a85
CE
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
dd184caf 284fi
dd184caf 285fi
dd184caf 286fi
b0322a85
CE
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
dd184caf 292
b0322a85
CE
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
dd184caf 304
b0322a85
CE
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
dd184caf 312
b0322a85
CE
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
dd184caf 328
b0322a85
CE
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
dd184caf 367
dd184caf 368
b0322a85 369} # as_fn_mkdir_p
dd184caf 370
b0322a85
CE
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
dd184caf 412
413
b0322a85
CE
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
dd184caf 429
b0322a85
CE
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
dd184caf 433else
b0322a85 434 as_expr=false
dd184caf 435fi
436
b0322a85
CE
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
dd184caf 439else
b0322a85 440 as_basename=false
dd184caf 441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
dd184caf 445else
b0322a85 446 as_dirname=false
dd184caf 447fi
448
b0322a85
CE
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
dd184caf 467
b0322a85
CE
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
dd184caf 474
d9898ee8 475
b0322a85
CE
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
dd184caf 481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
d9898ee8 485 sed '
dd184caf 486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
d9898ee8 490 N
dd184caf 491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 493 t loop
dd184caf 494 s/-\n.*//
d9898ee8 495 ' >$as_me.lineno &&
dd184caf 496 chmod +x "$as_me.lineno" ||
b0322a85 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
d9898ee8 498
b0322a85
CE
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
d9898ee8 503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
dd184caf 505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
d9898ee8 507 # Exit status is that of the last command.
508 exit
509}
510
dd184caf 511ECHO_C= ECHO_N= ECHO_T=
b0322a85 512case `echo -n x` in #(((((
dd184caf 513-n*)
b0322a85 514 case `echo 'xy\c'` in
dd184caf 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
dd184caf 519 esac;;
520*)
521 ECHO_N='-n';;
d9898ee8 522esac
d9898ee8 523
524rm -f conf$$ conf$$.exe conf$$.file
dd184caf 525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
8d138742
CE
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
b0322a85 537 # In both cases, we have to default to `cp -pR'.
8d138742 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 539 as_ln_s='cp -pR'
8d138742
CE
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
b0322a85 543 as_ln_s='cp -pR'
8d138742 544 fi
d9898ee8 545else
b0322a85 546 as_ln_s='cp -pR'
d9898ee8 547fi
dd184caf 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
d9898ee8 550
551if mkdir -p . 2>/dev/null; then
b0322a85 552 as_mkdir_p='mkdir -p "$as_dir"'
d9898ee8 553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
d9898ee8 561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
d9898ee8 567SHELL=${CONFIG_SHELL-/bin/sh}
568
d9898ee8 569
b0322a85
CE
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
dd184caf 572
d9898ee8 573# Name of the host.
b0322a85 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d9898ee8 575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
d9898ee8 578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
dd184caf 582ac_clean_files=
d9898ee8 583ac_config_libobj_dir=.
dd184caf 584LIBOBJS=
d9898ee8 585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
d9898ee8 589
d9898ee8 590# Identity of this package.
591PACKAGE_NAME='libuserdb'
592PACKAGE_TARNAME='libuserdb'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='libuserdb 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="userdb.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
dd184caf 602#ifdef HAVE_SYS_TYPES_H
d9898ee8 603# include <sys/types.h>
604#endif
dd184caf 605#ifdef HAVE_SYS_STAT_H
d9898ee8 606# include <sys/stat.h>
607#endif
dd184caf 608#ifdef STDC_HEADERS
d9898ee8 609# include <stdlib.h>
610# include <stddef.h>
611#else
dd184caf 612# ifdef HAVE_STDLIB_H
d9898ee8 613# include <stdlib.h>
614# endif
615#endif
dd184caf 616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 618# include <memory.h>
619# endif
620# include <string.h>
621#endif
dd184caf 622#ifdef HAVE_STRINGS_H
d9898ee8 623# include <strings.h>
624#endif
dd184caf 625#ifdef HAVE_INTTYPES_H
d9898ee8 626# include <inttypes.h>
d9898ee8 627#endif
dd184caf 628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
d9898ee8 632# include <unistd.h>
633#endif"
634
8d138742
CE
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_SGML_FALSE
640HAVE_SGML_TRUE
641CRYPTLIBS
642HMACLIB
643SHA1LIB
644MD5LIB
645makedat
646tmpdir
647userdbtmpdir
648USERDB
649userdb
650PERL
651CPP
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
b0322a85 657MANIFEST_TOOL
8d138742 658RANLIB
b0322a85 659ac_ct_AR
8d138742 660AR
b0322a85 661DLLTOOL
8d138742
CE
662OBJDUMP
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668EGREP
669GREP
670SED
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679LIBTOOL
680LN_S
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
b0322a85 684am__nodep
8d138742
CE
685AMDEPBACKSLASH
686AMDEP_FALSE
687AMDEP_TRUE
688am__quote
689am__include
690DEPDIR
691OBJEXT
692EXEEXT
693ac_ct_CC
694CPPFLAGS
695LDFLAGS
696CFLAGS
697CC
b0322a85
CE
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
8d138742
CE
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
dd184caf 727build_alias
8d138742
CE
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
b0322a85 755PACKAGE_URL
8d138742
CE
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
b0322a85 766enable_silent_rules
8d138742
CE
767enable_dependency_tracking
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_gnu_ld
b0322a85 773with_sysroot
8d138742
CE
774enable_libtool_lock
775with_userdb
776with_userdbmandir
777with_userdbtmpdir
778with_makedatprog
b0322a85 779enable_largefile
8d138742
CE
780with_random
781'
782 ac_precious_vars='build_alias
dd184caf 783host_alias
784target_alias
dd184caf 785CC
786CFLAGS
787LDFLAGS
8d138742 788LIBS
dd184caf 789CPPFLAGS
8d138742 790CPP'
dd184caf 791
d9898ee8 792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
8d138742
CE
796ac_unrecognized_opts=
797ac_unrecognized_sep=
d9898ee8 798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 820# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
dd184caf 824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
d9898ee8 826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
d9898ee8 829includedir='${prefix}/include'
830oldincludedir='/usr/include'
dd184caf 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
d9898ee8 840
841ac_prev=
dd184caf 842ac_dashdash=
d9898ee8 843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
dd184caf 847 eval $ac_prev=\$ac_option
d9898ee8 848 ac_prev=
849 continue
850 fi
851
dd184caf 852 case $ac_option in
b0322a85
CE
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
dd184caf 856 esac
d9898ee8 857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
dd184caf 860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
d9898ee8 863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
dd184caf 884 -datadir | --datadir | --datadi | --datad)
d9898ee8 885 ac_prev=datadir ;;
dd184caf 886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 887 datadir=$ac_optarg ;;
888
dd184caf 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
d9898ee8 896 -disable-* | --disable-*)
8d138742 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 898 # Reject names that are not valid shell variable names.
8d138742 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 900 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905"enable_$ac_useropt"
906"*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
dd184caf 911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
d9898ee8 921
922 -enable-* | --enable-*)
8d138742 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 924 # Reject names that are not valid shell variable names.
8d138742 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 926 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
dd184caf 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
d9898ee8 969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
dd184caf 993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
d9898ee8 998 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 999 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
dd184caf 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
d9898ee8 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
8d138742 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1128 # Reject names that are not valid shell variable names.
8d138742 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1130 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1141
1142 -without-* | --without-*)
8d138742 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1144 # Reject names that are not valid shell variable names.
8d138742 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1146 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
d9898ee8 1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
b0322a85
CE
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
d9898ee8 1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
b0322a85
CE
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
dd184caf 1187 eval $ac_envvar=\$ac_optarg
d9898ee8 1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
8d138742 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1203 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1204fi
1205
8d138742
CE
1206if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
b0322a85 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212fi
1213
1214# Check all directory arguments for consistency.
dd184caf 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
d9898ee8 1219do
dd184caf 1220 eval ac_val=\$$ac_var
8d138742
CE
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
d9898ee8 1228 case $ac_val in
dd184caf 1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1231 esac
b0322a85 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
d9898ee8 1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
dd184caf 1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1260 as_fn_error $? "working directory cannot be determined"
dd184caf 1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1262 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1263
1264
d9898ee8 1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
dd184caf 1268 # Try the directory containing this script, then the parent directory.
8d138742
CE
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
dd184caf 1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
d9898ee8 1292 srcdir=$ac_confdir
dd184caf 1293 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1294 srcdir=..
1295 fi
1296else
1297 ac_srcdir_defaulted=no
1298fi
dd184caf 1299if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1302fi
dd184caf 1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
b0322a85 1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
d9898ee8 1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331\`configure' configures libuserdb 0.10 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
b0322a85 1345 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
d9898ee8 1351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1353 [$ac_default_prefix]
d9898ee8 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1355 [PREFIX]
d9898ee8 1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
8d138742
CE
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of libuserdb 0.10:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405Optional Features:
8d138742 1406 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
dd184caf 1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1420 --disable-largefile omit support for large files
d9898ee8 1421
1422Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1426 both]
8d138742 1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0322a85
CE
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
d9898ee8 1430
1431 --with-random=/dev/urandom - location of the system random file generator
1432--without-random - there is no system random file generator
1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
dd184caf 1439 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1441 you have headers in a nonstandard directory <include dir>
d9898ee8 1442 CPP C preprocessor
d9898ee8 1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
1447Report bugs to <courier-users@lists.sourceforge.net>.
1448_ACEOF
dd184caf 1449ac_status=$?
d9898ee8 1450fi
1451
1452if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
d9898ee8 1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
d9898ee8 1458 ac_builddir=.
1459
b0322a85
CE
1460case "$ac_dir" in
1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462*)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470esac
1471ac_abs_top_builddir=$ac_pwd
1472ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473# for backward compatibility:
1474ac_top_builddir=$ac_top_build_prefix
1475
1476case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489esac
1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505fi
1506
1507test -n "$ac_init_help" && exit $ac_status
1508if $ac_init_version; then
1509 cat <<\_ACEOF
1510libuserdb configure 0.10
1511generated by GNU Autoconf 2.69
1512
1513Copyright (C) 2012 Free Software Foundation, Inc.
1514This configure script is free software; the Free Software Foundation
1515gives unlimited permission to copy, distribute and modify it.
1516_ACEOF
1517 exit
1518fi
1519
1520## ------------------------ ##
1521## Autoconf initialization. ##
1522## ------------------------ ##
1523
1524# ac_fn_c_try_compile LINENO
1525# --------------------------
1526# Try to compile conftest.$ac_ext, and return whether this succeeded.
1527ac_fn_c_try_compile ()
1528{
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551else
1552 $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560} # ac_fn_c_try_compile
1561
1562# ac_fn_c_try_link LINENO
1563# -----------------------
1564# Try to link conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_link ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 test -x conftest$ac_exeext
1590 }; then :
1591 ac_retval=0
1592else
1593 $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597fi
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606} # ac_fn_c_try_link
1607
1608# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609# -------------------------------------------------------
1610# Tests whether HEADER exists and can be compiled using the include files in
1611# INCLUDES, setting the cache variable VAR accordingly.
1612ac_fn_c_check_header_compile ()
1613{
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616$as_echo_n "checking for $2... " >&6; }
1617if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1619else
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621/* end confdefs.h. */
1622$4
1623#include <$2>
1624_ACEOF
1625if ac_fn_c_try_compile "$LINENO"; then :
1626 eval "$3=yes"
1627else
1628 eval "$3=no"
1629fi
1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631fi
1632eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634$as_echo "$ac_res" >&6; }
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637} # ac_fn_c_check_header_compile
1638
1639# ac_fn_c_try_cpp LINENO
1640# ----------------------
1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_cpp ()
1643{
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_cpp
1675
1676# ac_fn_c_try_run LINENO
1677# ----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679# that executables *can* be run.
1680ac_fn_c_try_run ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($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_try") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1704 ac_retval=0
1705else
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=$ac_status
1711fi
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_run
1717
1718# ac_fn_c_check_func LINENO FUNC VAR
1719# ----------------------------------
1720# Tests whether FUNC exists, setting the cache variable VAR accordingly
1721ac_fn_c_check_func ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h. */
1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733#define $2 innocuous_$2
1734
1735/* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $2 (); below.
1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738 <limits.h> exists even on freestanding compilers. */
1739
1740#ifdef __STDC__
1741# include <limits.h>
1742#else
1743# include <assert.h>
1744#endif
1745
1746#undef $2
1747
1748/* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1751#ifdef __cplusplus
1752extern "C"
1753#endif
1754char $2 ();
1755/* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758#if defined __stub_$2 || defined __stub___$2
1759choke me
1760#endif
1761
1762int
1763main ()
1764{
1765return $2 ();
1766 ;
1767 return 0;
1768}
1769_ACEOF
1770if ac_fn_c_try_link "$LINENO"; then :
1771 eval "$3=yes"
1772else
1773 eval "$3=no"
1774fi
1775rm -f core conftest.err conftest.$ac_objext \
1776 conftest$ac_exeext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_func
1784
1785# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786# -------------------------------------------------------
1787# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788# the include files in INCLUDES and setting the cache variable VAR
1789# accordingly.
1790ac_fn_c_check_header_mongrel ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if eval \${$3+:} false; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802else
1803 # Is the header compilable?
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805$as_echo_n "checking $2 usability... " >&6; }
1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808$4
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1813else
1814 ac_header_compiler=no
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818$as_echo "$ac_header_compiler" >&6; }
1819
1820# Is the header present?
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822$as_echo_n "checking $2 presence... " >&6; }
1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1829else
1830 ac_header_preproc=no
1831fi
1832rm -f conftest.err conftest.i conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834$as_echo "$ac_header_preproc" >&6; }
d9898ee8 1835
b0322a85
CE
1836# So? What about this header?
1837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 yes:no: )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 no:yes:* )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855( $as_echo "## -------------------------------------------------- ##
1856## Report this to courier-users@lists.sourceforge.net ##
1857## -------------------------------------------------- ##"
1858 ) | sed "s/^/$as_me: WARNING: /" >&2
1859 ;;
d9898ee8 1860esac
b0322a85
CE
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865else
1866 eval "$3=\$ac_header_compiler"
d9898ee8 1867fi
b0322a85
CE
1868eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
1871fi
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d9898ee8 1873
b0322a85 1874} # ac_fn_c_check_header_mongrel
d9898ee8 1875
b0322a85
CE
1876# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1877# -------------------------------------------
1878# Tests whether TYPE exists after having included INCLUDES, setting cache
1879# variable VAR accordingly.
1880ac_fn_c_check_type ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 eval "$3=no"
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h. */
1891$4
1892int
1893main ()
1894{
1895if (sizeof ($2))
1896 return 0;
1897 ;
1898 return 0;
1899}
d9898ee8 1900_ACEOF
b0322a85
CE
1901if ac_fn_c_try_compile "$LINENO"; then :
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h. */
1904$4
1905int
1906main ()
1907{
1908if (sizeof (($2)))
1909 return 0;
1910 ;
1911 return 0;
1912}
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915
1916else
1917 eval "$3=yes"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 1922fi
b0322a85
CE
1923eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928} # ac_fn_c_check_type
dd184caf 1929cat >config.log <<_ACEOF
d9898ee8 1930This file contains any messages produced by compilers while
1931running configure, to aid debugging if configure makes a mistake.
1932
1933It was created by libuserdb $as_me 0.10, which was
b0322a85 1934generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 1935
1936 $ $0 $@
1937
1938_ACEOF
dd184caf 1939exec 5>>config.log
d9898ee8 1940{
1941cat <<_ASUNAME
1942## --------- ##
1943## Platform. ##
1944## --------- ##
1945
1946hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1947uname -m = `(uname -m) 2>/dev/null || echo unknown`
1948uname -r = `(uname -r) 2>/dev/null || echo unknown`
1949uname -s = `(uname -s) 2>/dev/null || echo unknown`
1950uname -v = `(uname -v) 2>/dev/null || echo unknown`
1951
1952/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1953/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1954
1955/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1956/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1957/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1958/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1959/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1960/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1961/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1962
1963_ASUNAME
1964
1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
b0322a85
CE
1970 $as_echo "PATH: $as_dir"
1971 done
dd184caf 1972IFS=$as_save_IFS
d9898ee8 1973
1974} >&5
1975
1976cat >&5 <<_ACEOF
1977
1978
1979## ----------- ##
1980## Core tests. ##
1981## ----------- ##
1982
1983_ACEOF
1984
1985
1986# Keep a trace of the command line.
1987# Strip out --no-create and --no-recursion so they do not pile up.
1988# Strip out --silent because we don't want to record it for future runs.
1989# Also quote any args containing shell meta-characters.
1990# Make two passes to allow for proper duplicate-argument suppression.
1991ac_configure_args=
1992ac_configure_args0=
1993ac_configure_args1=
d9898ee8 1994ac_must_keep_next=false
1995for ac_pass in 1 2
1996do
1997 for ac_arg
1998 do
1999 case $ac_arg in
2000 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2002 | -silent | --silent | --silen | --sile | --sil)
2003 continue ;;
dd184caf 2004 *\'*)
8d138742 2005 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2006 esac
2007 case $ac_pass in
b0322a85 2008 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 2009 2)
b0322a85 2010 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 2011 if test $ac_must_keep_next = true; then
2012 ac_must_keep_next=false # Got value, back to normal.
2013 else
2014 case $ac_arg in
2015 *=* | --config-cache | -C | -disable-* | --disable-* \
2016 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2017 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2018 | -with-* | --with-* | -without-* | --without-* | --x)
2019 case "$ac_configure_args0 " in
2020 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2021 esac
2022 ;;
2023 -* ) ac_must_keep_next=true ;;
2024 esac
2025 fi
b0322a85 2026 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2027 ;;
2028 esac
2029 done
2030done
b0322a85
CE
2031{ ac_configure_args0=; unset ac_configure_args0;}
2032{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2033
2034# When interrupted or exit'd, cleanup temporary files, and complete
2035# config.log. We remove comments because anyway the quotes in there
2036# would cause problems or look ugly.
dd184caf 2037# WARNING: Use '\'' to represent an apostrophe within the trap.
2038# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2039trap 'exit_status=$?
2040 # Save into config.log some information that might help in debugging.
2041 {
2042 echo
2043
b0322a85 2044 $as_echo "## ---------------- ##
d9898ee8 2045## Cache variables. ##
b0322a85 2046## ---------------- ##"
d9898ee8 2047 echo
2048 # The following way of writing the cache mishandles newlines in values,
dd184caf 2049(
2050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in #(
2053 *${as_nl}*)
2054 case $ac_var in #(
b0322a85 2055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2056$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2057 esac
2058 case $ac_var in #(
2059 _ | IFS | as_nl) ;; #(
8d138742 2060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2061 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2062 esac ;;
2063 esac
2064 done
d9898ee8 2065 (set) 2>&1 |
dd184caf 2066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2067 *${as_nl}ac_space=\ *)
d9898ee8 2068 sed -n \
dd184caf 2069 "s/'\''/'\''\\\\'\'''\''/g;
2070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071 ;; #(
d9898ee8 2072 *)
dd184caf 2073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2074 ;;
dd184caf 2075 esac |
2076 sort
2077)
d9898ee8 2078 echo
2079
b0322a85 2080 $as_echo "## ----------------- ##
d9898ee8 2081## Output variables. ##
b0322a85 2082## ----------------- ##"
d9898ee8 2083 echo
2084 for ac_var in $ac_subst_vars
2085 do
dd184caf 2086 eval ac_val=\$$ac_var
2087 case $ac_val in
8d138742 2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2089 esac
8d138742 2090 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2091 done | sort
2092 echo
2093
2094 if test -n "$ac_subst_files"; then
b0322a85 2095 $as_echo "## ------------------- ##
dd184caf 2096## File substitutions. ##
b0322a85 2097## ------------------- ##"
d9898ee8 2098 echo
2099 for ac_var in $ac_subst_files
2100 do
dd184caf 2101 eval ac_val=\$$ac_var
2102 case $ac_val in
8d138742 2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2104 esac
8d138742 2105 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2106 done | sort
2107 echo
2108 fi
2109
2110 if test -s confdefs.h; then
b0322a85 2111 $as_echo "## ----------- ##
d9898ee8 2112## confdefs.h. ##
b0322a85 2113## ----------- ##"
d9898ee8 2114 echo
dd184caf 2115 cat confdefs.h
d9898ee8 2116 echo
2117 fi
2118 test "$ac_signal" != 0 &&
8d138742
CE
2119 $as_echo "$as_me: caught signal $ac_signal"
2120 $as_echo "$as_me: exit $exit_status"
d9898ee8 2121 } >&5
dd184caf 2122 rm -f core *.core core.conftest.* &&
2123 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2124 exit $exit_status
dd184caf 2125' 0
d9898ee8 2126for ac_signal in 1 2 13 15; do
b0322a85 2127 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2128done
2129ac_signal=0
2130
2131# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2132rm -f -r conftest* confdefs.h
d9898ee8 2133
b0322a85
CE
2134$as_echo "/* confdefs.h */" > confdefs.h
2135
d9898ee8 2136# Predefined preprocessor variables.
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_NAME "$PACKAGE_NAME"
2140_ACEOF
2141
d9898ee8 2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2144_ACEOF
2145
d9898ee8 2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_VERSION "$PACKAGE_VERSION"
2148_ACEOF
2149
d9898ee8 2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_STRING "$PACKAGE_STRING"
2152_ACEOF
2153
d9898ee8 2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2156_ACEOF
2157
b0322a85
CE
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_URL "$PACKAGE_URL"
2160_ACEOF
2161
d9898ee8 2162
2163# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2164# Prefer an explicitly selected file to automatically selected ones.
2165ac_site_file1=NONE
2166ac_site_file2=NONE
dd184caf 2167if test -n "$CONFIG_SITE"; then
b0322a85
CE
2168 # We do not want a PATH search for config.site.
2169 case $CONFIG_SITE in #((
2170 -*) ac_site_file1=./$CONFIG_SITE;;
2171 */*) ac_site_file1=$CONFIG_SITE;;
2172 *) ac_site_file1=./$CONFIG_SITE;;
2173 esac
dd184caf 2174elif test "x$prefix" != xNONE; then
8d138742
CE
2175 ac_site_file1=$prefix/share/config.site
2176 ac_site_file2=$prefix/etc/config.site
dd184caf 2177else
8d138742
CE
2178 ac_site_file1=$ac_default_prefix/share/config.site
2179 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2180fi
8d138742 2181for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2182do
8d138742 2183 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2184 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2186$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2187 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2188 . "$ac_site_file" \
2189 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191as_fn_error $? "failed to load site script $ac_site_file
2192See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2193 fi
2194done
2195
2196if test -r "$cache_file"; then
b0322a85
CE
2197 # Some versions of bash will fail to source /dev/null (special files
2198 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2201$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2202 case $cache_file in
dd184caf 2203 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2204 *) . "./$cache_file";;
d9898ee8 2205 esac
2206 fi
2207else
b0322a85 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2209$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2210 >$cache_file
2211fi
2212
2213# Check that the precious variables saved in the cache have kept the same
2214# value.
2215ac_cache_corrupted=false
dd184caf 2216for ac_var in $ac_precious_vars; do
d9898ee8 2217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2218 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2219 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2220 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2221 case $ac_old_set,$ac_new_set in
2222 set,)
b0322a85 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2224$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2225 ac_cache_corrupted=: ;;
2226 ,set)
b0322a85 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2228$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2229 ac_cache_corrupted=: ;;
2230 ,);;
2231 *)
2232 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2233 # differences in whitespace do not lead to failure.
2234 ac_old_val_w=`echo x $ac_old_val`
2235 ac_new_val_w=`echo x $ac_new_val`
2236 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2238$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2239 ac_cache_corrupted=:
2240 else
b0322a85 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2242$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2243 eval $ac_var=\$ac_old_val
2244 fi
b0322a85 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2246$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2248$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2249 fi;;
2250 esac
2251 # Pass precious variables to config.status.
2252 if test "$ac_new_set" = set; then
2253 case $ac_new_val in
8d138742 2254 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2255 *) ac_arg=$ac_var=$ac_new_val ;;
2256 esac
2257 case " $ac_configure_args " in
2258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2259 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2260 esac
2261 fi
2262done
2263if $ac_cache_corrupted; then
b0322a85 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2267$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2268 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2269fi
b0322a85
CE
2270## -------------------- ##
2271## Main body of script. ##
2272## -------------------- ##
d9898ee8 2273
dd184caf 2274ac_ext=c
2275ac_cpp='$CPP $CPPFLAGS'
2276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2279
2280
2281
2282>confdefs.h # Kill PACKAGE_ macros.
2283
2284LPATH="$PATH:/usr/local/bin"
2285
2286
d9898ee8 2287ac_aux_dir=
b0322a85 2288for ac_dir in .. "$srcdir"/..; do
dd184caf 2289 if test -f "$ac_dir/install-sh"; then
d9898ee8 2290 ac_aux_dir=$ac_dir
2291 ac_install_sh="$ac_aux_dir/install-sh -c"
2292 break
dd184caf 2293 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/install.sh -c"
2296 break
dd184caf 2297 elif test -f "$ac_dir/shtool"; then
d9898ee8 2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/shtool install -c"
2300 break
2301 fi
2302done
2303if test -z "$ac_aux_dir"; then
b0322a85 2304 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
d9898ee8 2305fi
dd184caf 2306
2307# These three variables are undocumented and unsupported,
2308# and are intended to be withdrawn in a future Autoconf release.
2309# They can cause serious problems if a builder's source tree is in a directory
2310# whose full name contains unusual characters.
2311ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
d9898ee8 2315
b0322a85
CE
2316am__api_version='1.13'
2317
d9898ee8 2318# Find a good install program. We prefer a C program (faster),
2319# so one script is as good as another. But avoid the broken or
2320# incompatible versions:
2321# SysV /etc/install, /usr/sbin/install
2322# SunOS /usr/etc/install
2323# IRIX /sbin/install
2324# AIX /bin/install
2325# AmigaOS /C/install, which installs bootblocks on floppy discs
2326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2327# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2329# OS/2's system install, which has a completely different semantic
2330# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2331# Reject install programs that cannot install multiple files.
b0322a85 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2333$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2334if test -z "$INSTALL"; then
b0322a85 2335if ${ac_cv_path_install+:} false; then :
8d138742 2336 $as_echo_n "(cached) " >&6
d9898ee8 2337else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
b0322a85
CE
2343 # Account for people who put trailing slashes in PATH elements.
2344case $as_dir/ in #((
2345 ./ | .// | /[cC]/* | \
d9898ee8 2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2348 /usr/ucb/* ) ;;
2349 *)
2350 # OSF1 and SCO ODT 3.0 have their own names for install.
2351 # Don't use installbsd from OSF since it installs stuff as root
2352 # by default.
2353 for ac_prog in ginstall scoinst install; do
2354 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2355 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2356 if test $ac_prog = install &&
2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358 # AIX install. It has an incompatible calling convention.
2359 :
2360 elif test $ac_prog = install &&
2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2362 # program-specific install script used by HP pwplus--don't use.
2363 :
2364 else
8d138742
CE
2365 rm -rf conftest.one conftest.two conftest.dir
2366 echo one > conftest.one
2367 echo two > conftest.two
2368 mkdir conftest.dir
2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2370 test -s conftest.one && test -s conftest.two &&
2371 test -s conftest.dir/conftest.one &&
2372 test -s conftest.dir/conftest.two
2373 then
2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2375 break 3
2376 fi
d9898ee8 2377 fi
2378 fi
2379 done
2380 done
2381 ;;
2382esac
8d138742 2383
b0322a85 2384 done
dd184caf 2385IFS=$as_save_IFS
d9898ee8 2386
8d138742 2387rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2388
2389fi
2390 if test "${ac_cv_path_install+set}" = set; then
2391 INSTALL=$ac_cv_path_install
2392 else
dd184caf 2393 # As a last resort, use the slow shell script. Don't cache a
2394 # value for INSTALL within a source directory, because that will
d9898ee8 2395 # break other packages using the cache if that directory is
dd184caf 2396 # removed, or if the value is a relative name.
d9898ee8 2397 INSTALL=$ac_install_sh
2398 fi
2399fi
b0322a85 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2401$as_echo "$INSTALL" >&6; }
d9898ee8 2402
2403# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2404# It thinks the first close brace ends the variable substitution.
2405test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2406
2407test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2408
2409test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2410
b0322a85 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2412$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2413# Reject unsafe characters in $srcdir or the absolute working directory
2414# name. Accept space and tab only in the latter.
2415am_lf='
2416'
2417case `pwd` in
2418 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2420esac
2421case $srcdir in
2422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2423 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2424esac
2425
b0322a85 2426# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2427# arguments. Must try -L first in case configure is actually a
2428# symlink; some systems play weird games with the mod time of symlinks
2429# (eg FreeBSD returns the mod time of the symlink's containing
2430# directory).
2431if (
b0322a85
CE
2432 am_has_slept=no
2433 for am_try in 1 2; do
2434 echo "timestamp, slept: $am_has_slept" > conftest.file
2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2436 if test "$*" = "X"; then
2437 # -L didn't work.
2438 set X `ls -t "$srcdir/configure" conftest.file`
2439 fi
2440 if test "$*" != "X $srcdir/configure conftest.file" \
2441 && test "$*" != "X conftest.file $srcdir/configure"; then
2442
2443 # If neither matched, then we have a broken ls. This can happen
2444 # if, for instance, CONFIG_SHELL is bash and it inherits a
2445 # broken ls alias from the environment. This has actually
2446 # happened. Such a system could not be considered "sane".
2447 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2448 alias in your environment" "$LINENO" 5
2449 fi
2450 if test "$2" = conftest.file || test $am_try -eq 2; then
2451 break
2452 fi
2453 # Just in case.
2454 sleep 1
2455 am_has_slept=yes
2456 done
d9898ee8 2457 test "$2" = conftest.file
2458 )
2459then
2460 # Ok.
2461 :
2462else
b0322a85
CE
2463 as_fn_error $? "newly created file is older than distributed files!
2464Check your system clock" "$LINENO" 5
d9898ee8 2465fi
b0322a85 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2467$as_echo "yes" >&6; }
b0322a85
CE
2468# If we didn't sleep, we still need to ensure time stamps of config.status and
2469# generated files are strictly newer.
2470am_sleep_pid=
2471if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2472 ( sleep 1 ) &
2473 am_sleep_pid=$!
2474fi
2475
2476rm -f conftest.file
2477
d9898ee8 2478test "$program_prefix" != NONE &&
dd184caf 2479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2480# Use a double $ so make ignores it.
2481test "$program_suffix" != NONE &&
dd184caf 2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2483# Double any \ or $.
d9898ee8 2484# By default was `s,x,x', remove it if useless.
8d138742
CE
2485ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2486program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2487
2488# expand $ac_aux_dir to an absolute path
2489am_aux_dir=`cd $ac_aux_dir && pwd`
2490
8d138742
CE
2491if test x"${MISSING+set}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2495 *)
2496 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2497 esac
2498fi
d9898ee8 2499# Use eval to expand $SHELL
b0322a85
CE
2500if eval "$MISSING --is-lightweight"; then
2501 am_missing_run="$MISSING "
d9898ee8 2502else
2503 am_missing_run=
b0322a85
CE
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2505$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2506fi
2507
2508if test x"${install_sh}" != xset; then
2509 case $am_aux_dir in
2510 *\ * | *\ *)
2511 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2512 *)
2513 install_sh="\${SHELL} $am_aux_dir/install-sh"
2514 esac
2515fi
2516
b0322a85
CE
2517# Installed binaries are usually stripped using 'strip' when the user
2518# run "make install-strip". However 'strip' might not be the right
8d138742 2519# tool to use in cross-compilation environments, therefore Automake
b0322a85 2520# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2521if test "$cross_compiling" != no; then
2522 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2524set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2526$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2527if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2528 $as_echo_n "(cached) " >&6
2529else
2530 if test -n "$STRIP"; then
2531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
b0322a85
CE
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2542 break 2
2543 fi
2544done
b0322a85 2545 done
8d138742
CE
2546IFS=$as_save_IFS
2547
2548fi
2549fi
2550STRIP=$ac_cv_prog_STRIP
2551if test -n "$STRIP"; then
b0322a85 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2553$as_echo "$STRIP" >&6; }
2554else
b0322a85 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2556$as_echo "no" >&6; }
2557fi
2558
2559
2560fi
2561if test -z "$ac_cv_prog_STRIP"; then
2562 ac_ct_STRIP=$STRIP
2563 # Extract the first word of "strip", so it can be a program name with args.
2564set dummy strip; ac_word=$2
b0322a85 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2566$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2567if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2568 $as_echo_n "(cached) " >&6
2569else
2570 if test -n "$ac_ct_STRIP"; then
2571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
b0322a85
CE
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2580 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2582 break 2
2583 fi
2584done
b0322a85 2585 done
8d138742
CE
2586IFS=$as_save_IFS
2587
2588fi
2589fi
2590ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2591if test -n "$ac_ct_STRIP"; then
b0322a85 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2593$as_echo "$ac_ct_STRIP" >&6; }
2594else
b0322a85 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2596$as_echo "no" >&6; }
2597fi
2598
2599 if test "x$ac_ct_STRIP" = x; then
2600 STRIP=":"
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603yes:)
b0322a85 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2606ac_tool_warned=yes ;;
2607esac
2608 STRIP=$ac_ct_STRIP
2609 fi
2610else
2611 STRIP="$ac_cv_prog_STRIP"
2612fi
2613
d9898ee8 2614fi
8d138742 2615INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2616
b0322a85 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2618$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2619if test -z "$MKDIR_P"; then
b0322a85 2620 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2621 $as_echo_n "(cached) " >&6
dd184caf 2622else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
b0322a85 2628 for ac_prog in mkdir gmkdir; do
dd184caf 2629 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2630 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2632 'mkdir (GNU coreutils) '* | \
2633 'mkdir (coreutils) '* | \
2634 'mkdir (fileutils) '4.1*)
2635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2636 break 3;;
2637 esac
2638 done
2639 done
b0322a85 2640 done
dd184caf 2641IFS=$as_save_IFS
2642
2643fi
2644
b0322a85 2645 test -d ./--version && rmdir ./--version
dd184caf 2646 if test "${ac_cv_path_mkdir+set}" = set; then
2647 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2648 else
dd184caf 2649 # As a last resort, use the slow shell script. Don't cache a
2650 # value for MKDIR_P within a source directory, because that will
2651 # break other packages using the cache if that directory is
2652 # removed, or if the value is a relative name.
dd184caf 2653 MKDIR_P="$ac_install_sh -d"
d9898ee8 2654 fi
2655fi
b0322a85 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2657$as_echo "$MKDIR_P" >&6; }
dd184caf 2658
d9898ee8 2659for ac_prog in gawk mawk nawk awk
2660do
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662set dummy $ac_prog; ac_word=$2
b0322a85 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2664$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2665if ${ac_cv_prog_AWK+:} false; then :
8d138742 2666 $as_echo_n "(cached) " >&6
d9898ee8 2667else
2668 if test -n "$AWK"; then
2669 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
b0322a85
CE
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2678 ac_cv_prog_AWK="$ac_prog"
b0322a85 2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2680 break 2
2681 fi
2682done
b0322a85 2683 done
dd184caf 2684IFS=$as_save_IFS
d9898ee8 2685
2686fi
2687fi
2688AWK=$ac_cv_prog_AWK
2689if test -n "$AWK"; then
b0322a85 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2691$as_echo "$AWK" >&6; }
d9898ee8 2692else
b0322a85 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2694$as_echo "no" >&6; }
d9898ee8 2695fi
2696
dd184caf 2697
d9898ee8 2698 test -n "$AWK" && break
2699done
2700
b0322a85 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2702$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2703set x ${MAKE-make}
2704ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2705if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2706 $as_echo_n "(cached) " >&6
d9898ee8 2707else
2708 cat >conftest.make <<\_ACEOF
dd184caf 2709SHELL = /bin/sh
d9898ee8 2710all:
dd184caf 2711 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2712_ACEOF
b0322a85 2713# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2714case `${MAKE-make} -f conftest.make 2>/dev/null` in
2715 *@@@%%%=?*=@@@%%%*)
2716 eval ac_cv_prog_make_${ac_make}_set=yes;;
2717 *)
2718 eval ac_cv_prog_make_${ac_make}_set=no;;
2719esac
d9898ee8 2720rm -f conftest.make
2721fi
dd184caf 2722if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2724$as_echo "yes" >&6; }
d9898ee8 2725 SET_MAKE=
2726else
b0322a85 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2728$as_echo "no" >&6; }
d9898ee8 2729 SET_MAKE="MAKE=${MAKE-make}"
2730fi
2731
2732rm -rf .tst 2>/dev/null
2733mkdir .tst 2>/dev/null
2734if test -d .tst; then
2735 am__leading_dot=.
2736else
2737 am__leading_dot=_
2738fi
2739rmdir .tst 2>/dev/null
2740
b0322a85
CE
2741# Check whether --enable-silent-rules was given.
2742if test "${enable_silent_rules+set}" = set; then :
2743 enableval=$enable_silent_rules;
2744fi
2745
2746case $enable_silent_rules in # (((
2747 yes) AM_DEFAULT_VERBOSITY=0;;
2748 no) AM_DEFAULT_VERBOSITY=1;;
2749 *) AM_DEFAULT_VERBOSITY=1;;
2750esac
2751am_make=${MAKE-make}
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2753$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2754if ${am_cv_make_support_nested_variables+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756else
2757 if $as_echo 'TRUE=$(BAR$(V))
2758BAR0=false
2759BAR1=true
2760V=1
2761am__doit:
2762 @$(TRUE)
2763.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2764 am_cv_make_support_nested_variables=yes
2765else
2766 am_cv_make_support_nested_variables=no
2767fi
2768fi
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2770$as_echo "$am_cv_make_support_nested_variables" >&6; }
2771if test $am_cv_make_support_nested_variables = yes; then
2772 AM_V='$(V)'
2773 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2774else
2775 AM_V=$AM_DEFAULT_VERBOSITY
2776 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2777fi
2778AM_BACKSLASH='\'
2779
dd184caf 2780if test "`cd $srcdir && pwd`" != "`pwd`"; then
2781 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2782 # is not polluted with repeated "-I."
2783 am__isrc=' -I$(srcdir)'
2784 # test to see if srcdir already configured
2785 if test -f $srcdir/config.status; then
b0322a85 2786 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2787 fi
d9898ee8 2788fi
2789
2790# test whether we have cygpath
2791if test -z "$CYGPATH_W"; then
2792 if (cygpath --version) >/dev/null 2>/dev/null; then
2793 CYGPATH_W='cygpath -w'
2794 else
2795 CYGPATH_W=echo
2796 fi
2797fi
2798
2799
2800# Define the identity of the package.
2801 PACKAGE='libuserdb'
2802 VERSION='0.10'
2803
2804
2805# Some tools Automake needs.
2806
2807ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2808
2809
2810AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2811
2812
2813AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2814
2815
2816AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2817
2818
2819MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2820
b0322a85
CE
2821# For better backward compatibility. To be removed once Automake 1.9.x
2822# dies out for good. For more background, see:
2823# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2824# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2825mkdir_p='$(MKDIR_P)'
2826
d9898ee8 2827# We need awk for the "check" target. The system "awk" is bad on
2828# some platforms.
b0322a85
CE
2829# Always define AMTAR for backward compatibility. Yes, it's still used
2830# in the wild :-( We should find a proper way to deprecate it ...
2831AMTAR='$${TAR-tar}'
2832
2833
2834# We'll loop over all known methods to create a tar archive until one works.
2835_am_tools='gnutar pax cpio none'
d9898ee8 2836
b0322a85 2837am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d9898ee8 2838
d9898ee8 2839
2840
2841
2842
2843
b0322a85
CE
2844ac_config_headers="$ac_config_headers config.h"
2845
d9898ee8 2846
2847for ac_prog in gawk mawk nawk awk
2848do
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850set dummy $ac_prog; 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_AWK+:} false; then :
8d138742 2854 $as_echo_n "(cached) " >&6
d9898ee8 2855else
2856 if test -n "$AWK"; then
2857 ac_cv_prog_AWK="$AWK" # 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
d9898ee8 2866 ac_cv_prog_AWK="$ac_prog"
b0322a85 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2868 break 2
2869 fi
2870done
b0322a85 2871 done
dd184caf 2872IFS=$as_save_IFS
d9898ee8 2873
2874fi
2875fi
2876AWK=$ac_cv_prog_AWK
2877if test -n "$AWK"; then
b0322a85 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2879$as_echo "$AWK" >&6; }
d9898ee8 2880else
b0322a85 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2882$as_echo "no" >&6; }
d9898ee8 2883fi
2884
dd184caf 2885
d9898ee8 2886 test -n "$AWK" && break
2887done
2888
2889ac_ext=c
2890ac_cpp='$CPP $CPPFLAGS'
2891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2896set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2898$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2899if ${ac_cv_prog_CC+:} false; then :
8d138742 2900 $as_echo_n "(cached) " >&6
d9898ee8 2901else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
b0322a85
CE
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2914 break 2
2915 fi
2916done
b0322a85 2917 done
dd184caf 2918IFS=$as_save_IFS
d9898ee8 2919
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
b0322a85 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2925$as_echo "$CC" >&6; }
d9898ee8 2926else
b0322a85 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2928$as_echo "no" >&6; }
d9898ee8 2929fi
2930
dd184caf 2931
d9898ee8 2932fi
2933if test -z "$ac_cv_prog_CC"; then
2934 ac_ct_CC=$CC
2935 # Extract the first word of "gcc", so it can be a program name with args.
2936set dummy gcc; ac_word=$2
b0322a85 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2938$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2939if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 2940 $as_echo_n "(cached) " >&6
d9898ee8 2941else
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
b0322a85
CE
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2952 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2954 break 2
2955 fi
2956done
b0322a85 2957 done
dd184caf 2958IFS=$as_save_IFS
d9898ee8 2959
2960fi
2961fi
2962ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963if test -n "$ac_ct_CC"; then
b0322a85 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 2965$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2966else
b0322a85 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2968$as_echo "no" >&6; }
d9898ee8 2969fi
2970
dd184caf 2971 if test "x$ac_ct_CC" = x; then
2972 CC=""
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975yes:)
b0322a85 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 2977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2978ac_tool_warned=yes ;;
2979esac
2980 CC=$ac_ct_CC
2981 fi
d9898ee8 2982else
2983 CC="$ac_cv_prog_CC"
2984fi
2985
2986if test -z "$CC"; then
dd184caf 2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2989set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2991$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2992if ${ac_cv_prog_CC+:} false; then :
8d138742 2993 $as_echo_n "(cached) " >&6
d9898ee8 2994else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
b0322a85
CE
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3005 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3007 break 2
3008 fi
3009done
b0322a85 3010 done
dd184caf 3011IFS=$as_save_IFS
d9898ee8 3012
3013fi
3014fi
3015CC=$ac_cv_prog_CC
3016if test -n "$CC"; then
b0322a85 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3018$as_echo "$CC" >&6; }
d9898ee8 3019else
b0322a85 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3021$as_echo "no" >&6; }
d9898ee8 3022fi
3023
d9898ee8 3024
dd184caf 3025 fi
d9898ee8 3026fi
3027if test -z "$CC"; then
3028 # Extract the first word of "cc", so it can be a program name with args.
3029set dummy cc; ac_word=$2
b0322a85 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3031$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3032if ${ac_cv_prog_CC+:} false; then :
8d138742 3033 $as_echo_n "(cached) " >&6
d9898ee8 3034else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038 ac_prog_rejected=no
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
b0322a85
CE
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3047 ac_prog_rejected=yes
3048 continue
3049 fi
3050 ac_cv_prog_CC="cc"
b0322a85 3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3052 break 2
3053 fi
3054done
b0322a85 3055 done
dd184caf 3056IFS=$as_save_IFS
d9898ee8 3057
3058if test $ac_prog_rejected = yes; then
3059 # We found a bogon in the path, so make sure we never use it.
3060 set dummy $ac_cv_prog_CC
3061 shift
3062 if test $# != 0; then
3063 # We chose a different compiler from the bogus one.
3064 # However, it has the same basename, so the bogon will be chosen
3065 # first if we set CC to just the basename; use the full file name.
3066 shift
3067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3068 fi
3069fi
3070fi
3071fi
3072CC=$ac_cv_prog_CC
3073if test -n "$CC"; then
b0322a85 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3075$as_echo "$CC" >&6; }
d9898ee8 3076else
b0322a85 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3078$as_echo "no" >&6; }
d9898ee8 3079fi
3080
dd184caf 3081
d9898ee8 3082fi
3083if test -z "$CC"; then
3084 if test -n "$ac_tool_prefix"; then
dd184caf 3085 for ac_prog in cl.exe
d9898ee8 3086 do
3087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3090$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3091if ${ac_cv_prog_CC+:} false; then :
8d138742 3092 $as_echo_n "(cached) " >&6
d9898ee8 3093else
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
b0322a85
CE
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3106 break 2
3107 fi
3108done
b0322a85 3109 done
dd184caf 3110IFS=$as_save_IFS
d9898ee8 3111
3112fi
3113fi
3114CC=$ac_cv_prog_CC
3115if test -n "$CC"; then
b0322a85 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3117$as_echo "$CC" >&6; }
d9898ee8 3118else
b0322a85 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3120$as_echo "no" >&6; }
d9898ee8 3121fi
3122
dd184caf 3123
d9898ee8 3124 test -n "$CC" && break
3125 done
3126fi
3127if test -z "$CC"; then
3128 ac_ct_CC=$CC
dd184caf 3129 for ac_prog in cl.exe
d9898ee8 3130do
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132set dummy $ac_prog; ac_word=$2
b0322a85 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3134$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3135if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3136 $as_echo_n "(cached) " >&6
d9898ee8 3137else
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
b0322a85
CE
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3148 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3150 break 2
3151 fi
3152done
b0322a85 3153 done
dd184caf 3154IFS=$as_save_IFS
d9898ee8 3155
3156fi
3157fi
3158ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159if test -n "$ac_ct_CC"; then
b0322a85 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3161$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3162else
b0322a85 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3164$as_echo "no" >&6; }
d9898ee8 3165fi
3166
dd184caf 3167
d9898ee8 3168 test -n "$ac_ct_CC" && break
3169done
3170
dd184caf 3171 if test "x$ac_ct_CC" = x; then
3172 CC=""
3173 else
3174 case $cross_compiling:$ac_tool_warned in
3175yes:)
b0322a85 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3178ac_tool_warned=yes ;;
3179esac
3180 CC=$ac_ct_CC
3181 fi
d9898ee8 3182fi
3183
3184fi
3185
3186
b0322a85 3187test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3189as_fn_error $? "no acceptable C compiler found in \$PATH
3190See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3191
3192# Provide some information about the compiler.
b0322a85 3193$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3194set X $ac_compile
3195ac_compiler=$2
b0322a85
CE
3196for ac_option in --version -v -V -qversion; do
3197 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3198case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
b0322a85
CE
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3205 ac_status=$?
b0322a85
CE
3206 if test -s conftest.err; then
3207 sed '10a\
3208... rest of stderr output deleted ...
3209 10q' conftest.err >conftest.er1
3210 cat conftest.er1 >&5
3211 fi
3212 rm -f conftest.er1 conftest.err
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }
3215done
d9898ee8 3216
b0322a85 3217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3218/* end confdefs.h. */
3219
3220int
3221main ()
3222{
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
3228ac_clean_files_save=$ac_clean_files
8d138742 3229ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3230# Try to create an executable without -o first, disregard a.out.
3231# It will help us diagnose broken compilers, and finding out an intuition
3232# of exeext.
b0322a85
CE
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3234$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3235ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3236
3237# The possible output files:
3238ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3239
dd184caf 3240ac_rmfiles=
3241for ac_file in $ac_files
3242do
3243 case $ac_file in
8d138742 3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3245 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3246 esac
3247done
3248rm -f $ac_rmfiles
3249
b0322a85 3250if { { ac_try="$ac_link_default"
dd184caf 3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
b0322a85
CE
3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256$as_echo "$ac_try_echo"; } >&5
dd184caf 3257 (eval "$ac_link_default") 2>&5
d9898ee8 3258 ac_status=$?
b0322a85
CE
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; then :
dd184caf 3261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3262# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3263# in a Makefile. We should not override ac_cv_exeext if it was cached,
3264# so that the user can short-circuit this test for compilers unknown to
3265# Autoconf.
3266for ac_file in $ac_files ''
d9898ee8 3267do
3268 test -f "$ac_file" || continue
3269 case $ac_file in
8d138742 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3271 ;;
3272 [ab].out )
3273 # We found the default executable, but exeext='' is most
3274 # certainly right.
3275 break;;
3276 *.* )
b0322a85 3277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3278 then :; else
3279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 fi
3281 # We set ac_cv_exeext here because the later test for it is not
3282 # safe: cross compilers may not add the suffix if given an `-o'
3283 # argument, so we may need to know it at that point already.
3284 # Even if this section looks crufty: it has the advantage of
3285 # actually working.
b0322a85
CE
3286 break;;
3287 * )
3288 break;;
3289 esac
3290done
3291test "$ac_cv_exeext" = no && ac_cv_exeext=
3292
3293else
3294 ac_file=''
d9898ee8 3295fi
b0322a85
CE
3296if test -z "$ac_file"; then :
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299$as_echo "$as_me: failed program was:" >&5
3300sed 's/^/| /' conftest.$ac_ext >&5
3301
3302{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304as_fn_error 77 "C compiler cannot create executables
3305See \`config.log' for more details" "$LINENO" 5; }
3306else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 3308$as_echo "yes" >&6; }
b0322a85
CE
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3311$as_echo_n "checking for C compiler default output file name... " >&6; }
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3313$as_echo "$ac_file" >&6; }
3314ac_exeext=$ac_cv_exeext
d9898ee8 3315
8d138742 3316rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3317ac_clean_files=$ac_clean_files_save
b0322a85 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3319$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3320if { { ac_try="$ac_link"
dd184caf 3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
b0322a85
CE
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
dd184caf 3327 (eval "$ac_link") 2>&5
d9898ee8 3328 ac_status=$?
b0322a85
CE
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
d9898ee8 3331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3332# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3333# work properly (i.e., refer to `conftest.exe'), while it won't with
3334# `rm'.
3335for ac_file in conftest.exe conftest conftest.*; do
3336 test -f "$ac_file" || continue
3337 case $ac_file in
8d138742 3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3340 break;;
3341 * ) break;;
3342 esac
3343done
3344else
b0322a85 3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3347as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3348See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3349fi
b0322a85
CE
3350rm -f conftest conftest$ac_cv_exeext
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3352$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3353
3354rm -f conftest.$ac_ext
3355EXEEXT=$ac_cv_exeext
3356ac_exeext=$EXEEXT
b0322a85
CE
3357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h. */
3359#include <stdio.h>
3360int
3361main ()
3362{
3363FILE *f = fopen ("conftest.out", "w");
3364 return ferror (f) || fclose (f) != 0;
3365
3366 ;
3367 return 0;
3368}
3369_ACEOF
3370ac_clean_files="$ac_clean_files conftest.out"
3371# Check that the compiler produces executables we can run. If not, either
3372# the compiler is broken, or we cross compile.
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3374$as_echo_n "checking whether we are cross compiling... " >&6; }
3375if test "$cross_compiling" != yes; then
3376 { { ac_try="$ac_link"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }
3387 if { ac_try='./conftest$ac_cv_exeext'
3388 { { case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_try") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; }; then
3398 cross_compiling=no
3399 else
3400 if test "$cross_compiling" = maybe; then
3401 cross_compiling=yes
3402 else
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405as_fn_error $? "cannot run C compiled programs.
3406If you meant to cross compile, use \`--host'.
3407See \`config.log' for more details" "$LINENO" 5; }
3408 fi
3409 fi
3410fi
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3412$as_echo "$cross_compiling" >&6; }
3413
3414rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3415ac_clean_files=$ac_clean_files_save
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3417$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3418if ${ac_cv_objext+:} false; then :
8d138742 3419 $as_echo_n "(cached) " >&6
d9898ee8 3420else
b0322a85 3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.o conftest.obj
b0322a85 3433if { { ac_try="$ac_compile"
dd184caf 3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
b0322a85
CE
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
dd184caf 3440 (eval "$ac_compile") 2>&5
d9898ee8 3441 ac_status=$?
b0322a85
CE
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
dd184caf 3444 for ac_file in conftest.o conftest.obj conftest.*; do
3445 test -f "$ac_file" || continue;
d9898ee8 3446 case $ac_file in
8d138742 3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3449 break;;
3450 esac
3451done
3452else
8d138742 3453 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3454sed 's/^/| /' conftest.$ac_ext >&5
3455
b0322a85 3456{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3458as_fn_error $? "cannot compute suffix of object files: cannot compile
3459See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3460fi
d9898ee8 3461rm -f conftest.$ac_cv_objext conftest.$ac_ext
3462fi
b0322a85 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3464$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3465OBJEXT=$ac_cv_objext
3466ac_objext=$OBJEXT
b0322a85 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3468$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3469if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3470 $as_echo_n "(cached) " >&6
d9898ee8 3471else
b0322a85 3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3473/* end confdefs.h. */
3474
3475int
3476main ()
3477{
3478#ifndef __GNUC__
3479 choke me
3480#endif
3481
3482 ;
3483 return 0;
3484}
3485_ACEOF
b0322a85 3486if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3487 ac_compiler_gnu=yes
3488else
b0322a85 3489 ac_compiler_gnu=no
d9898ee8 3490fi
dd184caf 3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3492ac_cv_c_compiler_gnu=$ac_compiler_gnu
3493
3494fi
b0322a85 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3496$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3497if test $ac_compiler_gnu = yes; then
3498 GCC=yes
3499else
3500 GCC=
3501fi
d9898ee8 3502ac_test_CFLAGS=${CFLAGS+set}
3503ac_save_CFLAGS=$CFLAGS
b0322a85 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3505$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3506if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3507 $as_echo_n "(cached) " >&6
d9898ee8 3508else
dd184caf 3509 ac_save_c_werror_flag=$ac_c_werror_flag
3510 ac_c_werror_flag=yes
3511 ac_cv_prog_cc_g=no
3512 CFLAGS="-g"
b0322a85 3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3514/* end confdefs.h. */
3515
3516int
3517main ()
3518{
3519
3520 ;
3521 return 0;
3522}
3523_ACEOF
b0322a85 3524if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3525 ac_cv_prog_cc_g=yes
3526else
b0322a85
CE
3527 CFLAGS=""
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3529/* end confdefs.h. */
3530
3531int
3532main ()
3533{
3534
3535 ;
3536 return 0;
3537}
3538_ACEOF
b0322a85 3539if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3540
b0322a85
CE
3541else
3542 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3543 CFLAGS="-g"
b0322a85 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3545/* end confdefs.h. */
3546
3547int
3548main ()
3549{
3550
3551 ;
3552 return 0;
3553}
3554_ACEOF
b0322a85 3555if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3556 ac_cv_prog_cc_g=yes
dd184caf 3557fi
dd184caf 3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559fi
dd184caf 3560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3561fi
dd184caf 3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3564fi
b0322a85 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3566$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3567if test "$ac_test_CFLAGS" = set; then
3568 CFLAGS=$ac_save_CFLAGS
3569elif test $ac_cv_prog_cc_g = yes; then
3570 if test "$GCC" = yes; then
3571 CFLAGS="-g -O2"
3572 else
3573 CFLAGS="-g"
3574 fi
3575else
3576 if test "$GCC" = yes; then
3577 CFLAGS="-O2"
3578 else
3579 CFLAGS=
3580 fi
3581fi
b0322a85 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3583$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3584if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3585 $as_echo_n "(cached) " >&6
d9898ee8 3586else
dd184caf 3587 ac_cv_prog_cc_c89=no
d9898ee8 3588ac_save_CC=$CC
b0322a85 3589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3590/* end confdefs.h. */
3591#include <stdarg.h>
3592#include <stdio.h>
b0322a85 3593struct stat;
d9898ee8 3594/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595struct buf { int x; };
3596FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597static char *e (p, i)
3598 char **p;
3599 int i;
3600{
3601 return p[i];
3602}
3603static char *f (char * (*g) (char **, int), char **p, ...)
3604{
3605 char *s;
3606 va_list v;
3607 va_start (v,p);
3608 s = g (p, va_arg (v,int));
3609 va_end (v);
3610 return s;
3611}
3612
3613/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3616 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3619 that's true only with -std. */
d9898ee8 3620int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621
dd184caf 3622/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3623 inside strings and character constants. */
3624#define FOO(x) 'x'
3625int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3626
d9898ee8 3627int test (int i, double x);
3628struct s1 {int (*f) (int a);};
3629struct s2 {int (*f) (double a);};
3630int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631int argc;
3632char **argv;
3633int
3634main ()
3635{
3636return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3637 ;
3638 return 0;
3639}
3640_ACEOF
dd184caf 3641for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3643do
3644 CC="$ac_save_CC $ac_arg"
b0322a85 3645 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3646 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3647fi
dd184caf 3648rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3650done
dd184caf 3651rm -f conftest.$ac_ext
d9898ee8 3652CC=$ac_save_CC
3653
3654fi
dd184caf 3655# AC_CACHE_VAL
3656case "x$ac_cv_prog_cc_c89" in
3657 x)
b0322a85 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3659$as_echo "none needed" >&6; } ;;
dd184caf 3660 xno)
b0322a85 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3662$as_echo "unsupported" >&6; } ;;
d9898ee8 3663 *)
dd184caf 3664 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3666$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3667esac
b0322a85 3668if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3669
b0322a85 3670fi
d9898ee8 3671
d9898ee8 3672ac_ext=c
3673ac_cpp='$CPP $CPPFLAGS'
3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677DEPDIR="${am__leading_dot}deps"
3678
dd184caf 3679ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3680
3681
3682am_make=${MAKE-make}
3683cat > confinc << 'END'
3684am__doit:
8d138742 3685 @echo this is the am__doit target
d9898ee8 3686.PHONY: am__doit
3687END
3688# If we don't find an include directive, just comment out the code.
b0322a85 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 3690$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3691am__include="#"
3692am__quote=
3693_am_result=none
3694# First try GNU make style include.
3695echo "include confinc" > confmf
b0322a85 3696# Ignore all kinds of additional output from 'make'.
8d138742
CE
3697case `$am_make -s -f confmf 2> /dev/null` in #(
3698*the\ am__doit\ target*)
3699 am__include=include
3700 am__quote=
3701 _am_result=GNU
3702 ;;
3703esac
d9898ee8 3704# Now try BSD make style include.
3705if test "$am__include" = "#"; then
3706 echo '.include "confinc"' > confmf
8d138742
CE
3707 case `$am_make -s -f confmf 2> /dev/null` in #(
3708 *the\ am__doit\ target*)
3709 am__include=.include
3710 am__quote="\""
3711 _am_result=BSD
3712 ;;
3713 esac
d9898ee8 3714fi
3715
3716
b0322a85 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 3718$as_echo "$_am_result" >&6; }
d9898ee8 3719rm -f confinc confmf
3720
dd184caf 3721# Check whether --enable-dependency-tracking was given.
b0322a85 3722if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 3723 enableval=$enable_dependency_tracking;
3724fi
d9898ee8 3725
d9898ee8 3726if test "x$enable_dependency_tracking" != xno; then
3727 am_depcomp="$ac_aux_dir/depcomp"
3728 AMDEPBACKSLASH='\'
b0322a85 3729 am__nodep='_no'
d9898ee8 3730fi
dd184caf 3731 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3732 AMDEP_TRUE=
3733 AMDEP_FALSE='#'
3734else
3735 AMDEP_TRUE='#'
3736 AMDEP_FALSE=
3737fi
3738
3739
3740
d9898ee8 3741depcc="$CC" am_compiler_list=
3742
b0322a85 3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3744$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3745if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3746 $as_echo_n "(cached) " >&6
d9898ee8 3747else
3748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3749 # We make a subdir and do the tests there. Otherwise we can end up
3750 # making bogus files that we don't know about and never remove. For
3751 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3752 # making a dummy file named 'D' -- because '-MD' means "put the output
3753 # in D".
3754 rm -rf conftest.dir
d9898ee8 3755 mkdir conftest.dir
3756 # Copy depcomp to subdir because otherwise we won't find it if we're
3757 # using a relative directory.
3758 cp "$am_depcomp" conftest.dir
3759 cd conftest.dir
3760 # We will build objects and dependencies in a subdirectory because
3761 # it helps to detect inapplicable dependency modes. For instance
3762 # both Tru64's cc and ICC support -MD to output dependencies as a
3763 # side effect of compilation, but ICC will put the dependencies in
3764 # the current directory while Tru64 will put them in the object
3765 # directory.
3766 mkdir sub
3767
3768 am_cv_CC_dependencies_compiler_type=none
3769 if test "$am_compiler_list" = ""; then
3770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3771 fi
8d138742
CE
3772 am__universal=false
3773 case " $depcc " in #(
3774 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3775 esac
3776
d9898ee8 3777 for depmode in $am_compiler_list; do
3778 # Setup a source with many dependencies, because some compilers
3779 # like to wrap large dependency lists on column 80 (with \), and
3780 # we should not choose a depcomp mode which is confused by this.
3781 #
3782 # We need to recreate these files for each test, as the compiler may
3783 # overwrite some of them when testing with obscure command lines.
3784 # This happens at least with the AIX C compiler.
3785 : > sub/conftest.c
3786 for i in 1 2 3 4 5 6; do
3787 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3788 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3789 # Solaris 10 /bin/sh.
3790 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3791 done
3792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793
b0322a85 3794 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3795 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3796 # handle '-M -o', and we need to detect this. Also, some Intel
3797 # versions had trouble with output in subdirs.
8d138742
CE
3798 am__obj=sub/conftest.${OBJEXT-o}
3799 am__minus_obj="-o $am__obj"
d9898ee8 3800 case $depmode in
8d138742
CE
3801 gcc)
3802 # This depmode causes a compiler race in universal mode.
3803 test "$am__universal" = false || continue
3804 ;;
d9898ee8 3805 nosideeffect)
b0322a85
CE
3806 # After this tag, mechanisms are not by side-effect, so they'll
3807 # only be used when explicitly requested.
d9898ee8 3808 if test "x$enable_dependency_tracking" = xyes; then
3809 continue
3810 else
3811 break
3812 fi
3813 ;;
b0322a85
CE
3814 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3815 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3816 # not run yet. These depmodes are late enough in the game, and
3817 # so weak that their functioning should not be impacted.
3818 am__obj=conftest.${OBJEXT-o}
3819 am__minus_obj=
3820 ;;
d9898ee8 3821 none) break ;;
3822 esac
d9898ee8 3823 if depmode=$depmode \
8d138742 3824 source=sub/conftest.c object=$am__obj \
d9898ee8 3825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3826 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3827 >/dev/null 2>conftest.err &&
dd184caf 3828 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3830 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3832 # icc doesn't choke on unknown options, it will just issue warnings
3833 # or remarks (even with -Werror). So we grep stderr for any message
3834 # that says an option was ignored or not supported.
3835 # When given -MP, icc 7.0 and 7.1 complain thusly:
3836 # icc: Command line warning: ignoring option '-M'; no argument required
3837 # The diagnosis changed in icc 8.0:
3838 # icc: Command line remark: option '-MP' not supported
3839 if (grep 'ignoring option' conftest.err ||
3840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3841 am_cv_CC_dependencies_compiler_type=$depmode
3842 break
3843 fi
3844 fi
3845 done
3846
3847 cd ..
3848 rm -rf conftest.dir
3849else
3850 am_cv_CC_dependencies_compiler_type=none
3851fi
3852
3853fi
b0322a85 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 3855$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3856CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3857
dd184caf 3858 if
d9898ee8 3859 test "x$enable_dependency_tracking" != xno \
3860 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3861 am__fastdepCC_TRUE=
3862 am__fastdepCC_FALSE='#'
3863else
3864 am__fastdepCC_TRUE='#'
3865 am__fastdepCC_FALSE=
3866fi
3867
3868
d9898ee8 3869
b0322a85 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8d138742 3871$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 3872LN_S=$as_ln_s
3873if test "$LN_S" = "ln -s"; then
b0322a85 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 3875$as_echo "yes" >&6; }
d9898ee8 3876else
b0322a85 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8d138742 3878$as_echo "no, using $LN_S" >&6; }
d9898ee8 3879fi
3880
8d138742
CE
3881case `pwd` in
3882 *\ * | *\ *)
b0322a85 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742
CE
3884$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3885esac
3886
3887
3888
b0322a85
CE
3889macro_version='2.4.2'
3890macro_revision='1.3337'
dd184caf 3891
d9898ee8 3892
dd184caf 3893
d9898ee8 3894
dd184caf 3895
d9898ee8 3896
8d138742
CE
3897
3898
3899
3900
3901
3902
3903
3904ltmain="$ac_aux_dir/ltmain.sh"
3905
d9898ee8 3906# Make sure we can run config.sub.
dd184caf 3907$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 3908 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 3909
b0322a85 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 3911$as_echo_n "checking build system type... " >&6; }
b0322a85 3912if ${ac_cv_build+:} false; then :
8d138742 3913 $as_echo_n "(cached) " >&6
d9898ee8 3914else
dd184caf 3915 ac_build_alias=$build_alias
3916test "x$ac_build_alias" = x &&
3917 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3918test "x$ac_build_alias" = x &&
b0322a85 3919 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
dd184caf 3920ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 3921 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 3922
3923fi
b0322a85 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742 3925$as_echo "$ac_cv_build" >&6; }
dd184caf 3926case $ac_cv_build in
3927*-*-*) ;;
b0322a85 3928*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
dd184caf 3929esac
d9898ee8 3930build=$ac_cv_build
dd184caf 3931ac_save_IFS=$IFS; IFS='-'
3932set x $ac_cv_build
3933shift
3934build_cpu=$1
3935build_vendor=$2
3936shift; shift
3937# Remember, the first character of IFS is used to create $*,
3938# except with old shells:
3939build_os=$*
3940IFS=$ac_save_IFS
3941case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3942
3943
b0322a85 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 3945$as_echo_n "checking host system type... " >&6; }
b0322a85 3946if ${ac_cv_host+:} false; then :
8d138742 3947 $as_echo_n "(cached) " >&6
d9898ee8 3948else
dd184caf 3949 if test "x$host_alias" = x; then
3950 ac_cv_host=$ac_cv_build
3951else
3952 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 3953 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
dd184caf 3954fi
d9898ee8 3955
3956fi
b0322a85
CE
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3958$as_echo "$ac_cv_host" >&6; }
3959case $ac_cv_host in
3960*-*-*) ;;
3961*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3962esac
3963host=$ac_cv_host
3964ac_save_IFS=$IFS; IFS='-'
3965set x $ac_cv_host
3966shift
3967host_cpu=$1
3968host_vendor=$2
3969shift; shift
3970# Remember, the first character of IFS is used to create $*,
3971# except with old shells:
3972host_os=$*
3973IFS=$ac_save_IFS
3974case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3975
3976
3977# Backslashify metacharacters that are still active within
3978# double-quoted strings.
3979sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3980
3981# Same as above, but do not quote variable references.
3982double_quote_subst='s/\(["`\\]\)/\\\1/g'
3983
3984# Sed substitution to delay expansion of an escaped shell variable in a
3985# double_quote_subst'ed string.
3986delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3987
3988# Sed substitution to delay expansion of an escaped single quote.
3989delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3990
3991# Sed substitution to avoid accidental globbing in evaled expressions
3992no_glob_subst='s/\*/\\\*/g'
3993
3994ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3995ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3996ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3997
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3999$as_echo_n "checking how to print strings... " >&6; }
4000# Test print first, because it will be a builtin if present.
4001if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4002 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4003 ECHO='print -r --'
4004elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4005 ECHO='printf %s\n'
4006else
4007 # Use this function as a fallback that always works.
4008 func_fallback_echo ()
4009 {
4010 eval 'cat <<_LTECHO_EOF
4011$1
4012_LTECHO_EOF'
4013 }
4014 ECHO='func_fallback_echo'
4015fi
4016
4017# func_echo_all arg...
4018# Invoke $ECHO with all args, space-separated.
4019func_echo_all ()
4020{
4021 $ECHO ""
4022}
4023
4024case "$ECHO" in
4025 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4026$as_echo "printf" >&6; } ;;
4027 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4028$as_echo "print -r" >&6; } ;;
4029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4030$as_echo "cat" >&6; } ;;
dd184caf 4031esac
dd184caf 4032
4033
b0322a85
CE
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 4047$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 4048if ${ac_cv_path_SED+:} false; then :
8d138742
CE
4049 $as_echo_n "(cached) " >&6
4050else
4051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4052 for ac_i in 1 2 3 4 5 6 7; do
4053 ac_script="$ac_script$as_nl$ac_script"
4054 done
4055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 4056 { ac_script=; unset ac_script;}
8d138742
CE
4057 if test -z "$SED"; then
4058 ac_path_SED_found=false
4059 # Loop through the user's path and test for each of PROGNAME-LIST
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4061for as_dir in $PATH
4062do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
b0322a85 4065 for ac_prog in sed gsed; do
d9898ee8 4066 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742 4067 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4068 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
4069# Check for GNU ac_path_SED and select it if it is found.
4070 # Check for GNU $ac_path_SED
4071case `"$ac_path_SED" --version 2>&1` in
4072*GNU*)
4073 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4074*)
4075 ac_count=0
4076 $as_echo_n 0123456789 >"conftest.in"
4077 while :
4078 do
4079 cat "conftest.in" "conftest.in" >"conftest.tmp"
4080 mv "conftest.tmp" "conftest.in"
4081 cp "conftest.in" "conftest.nl"
4082 $as_echo '' >> "conftest.nl"
4083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4085 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4086 if test $ac_count -gt ${ac_path_SED_max-0}; then
4087 # Best one so far, save it but keep looking for a better one
4088 ac_cv_path_SED="$ac_path_SED"
4089 ac_path_SED_max=$ac_count
4090 fi
4091 # 10*(2^10) chars as input seems more than enough
4092 test $ac_count -gt 10 && break
4093 done
4094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095esac
4096
4097 $ac_path_SED_found && break 3
d9898ee8 4098 done
4099 done
b0322a85 4100 done
d9898ee8 4101IFS=$as_save_IFS
8d138742 4102 if test -z "$ac_cv_path_SED"; then
b0322a85 4103 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
d9898ee8 4104 fi
8d138742
CE
4105else
4106 ac_cv_path_SED=$SED
4107fi
d9898ee8 4108
4109fi
b0322a85 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
4111$as_echo "$ac_cv_path_SED" >&6; }
4112 SED="$ac_cv_path_SED"
4113 rm -f conftest.sed
4114
4115test -z "$SED" && SED=sed
4116Xsed="$SED -e 1s/^X//"
d9898ee8 4117
d9898ee8 4118
dd184caf 4119
8d138742
CE
4120
4121
4122
4123
4124
4125
4126
4127
b0322a85 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4129$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4130if ${ac_cv_path_GREP+:} false; then :
8d138742 4131 $as_echo_n "(cached) " >&6
dd184caf 4132else
8d138742 4133 if test -z "$GREP"; then
dd184caf 4134 ac_path_GREP_found=false
8d138742
CE
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4137for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
b0322a85 4141 for ac_prog in grep ggrep; do
8d138742
CE
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4144 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4145# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4146 # Check for GNU $ac_path_GREP
4147case `"$ac_path_GREP" --version 2>&1` in
4148*GNU*)
4149 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4150*)
4151 ac_count=0
8d138742 4152 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
8d138742 4158 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4162 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_GREP="$ac_path_GREP"
4165 ac_path_GREP_max=$ac_count
4166 fi
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171esac
4172
8d138742
CE
4173 $ac_path_GREP_found && break 3
4174 done
dd184caf 4175 done
b0322a85 4176 done
dd184caf 4177IFS=$as_save_IFS
8d138742 4178 if test -z "$ac_cv_path_GREP"; then
b0322a85 4179 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4180 fi
dd184caf 4181else
4182 ac_cv_path_GREP=$GREP
4183fi
4184
dd184caf 4185fi
b0322a85 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4187$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4188 GREP="$ac_cv_path_GREP"
4189
4190
b0322a85 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4192$as_echo_n "checking for egrep... " >&6; }
b0322a85 4193if ${ac_cv_path_EGREP+:} false; then :
8d138742 4194 $as_echo_n "(cached) " >&6
dd184caf 4195else
4196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4197 then ac_cv_path_EGREP="$GREP -E"
4198 else
8d138742 4199 if test -z "$EGREP"; then
dd184caf 4200 ac_path_EGREP_found=false
8d138742
CE
4201 # Loop through the user's path and test for each of PROGNAME-LIST
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4203for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
b0322a85 4207 for ac_prog in egrep; do
8d138742
CE
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4210 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4211# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4212 # Check for GNU $ac_path_EGREP
4213case `"$ac_path_EGREP" --version 2>&1` in
4214*GNU*)
4215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4216*)
4217 ac_count=0
8d138742 4218 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4219 while :
4220 do
4221 cat "conftest.in" "conftest.in" >"conftest.tmp"
4222 mv "conftest.tmp" "conftest.in"
4223 cp "conftest.in" "conftest.nl"
8d138742 4224 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4227 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4229 # Best one so far, save it but keep looking for a better one
4230 ac_cv_path_EGREP="$ac_path_EGREP"
4231 ac_path_EGREP_max=$ac_count
d9898ee8 4232 fi
dd184caf 4233 # 10*(2^10) chars as input seems more than enough
4234 test $ac_count -gt 10 && break
4235 done
4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237esac
4238
8d138742
CE
4239 $ac_path_EGREP_found && break 3
4240 done
dd184caf 4241 done
b0322a85 4242 done
dd184caf 4243IFS=$as_save_IFS
8d138742 4244 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4245 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4246 fi
4247else
4248 ac_cv_path_EGREP=$EGREP
dd184caf 4249fi
4250
8d138742 4251 fi
dd184caf 4252fi
b0322a85 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742
CE
4254$as_echo "$ac_cv_path_EGREP" >&6; }
4255 EGREP="$ac_cv_path_EGREP"
dd184caf 4256
8d138742 4257
b0322a85 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 4259$as_echo_n "checking for fgrep... " >&6; }
b0322a85 4260if ${ac_cv_path_FGREP+:} false; then :
8d138742 4261 $as_echo_n "(cached) " >&6
dd184caf 4262else
8d138742
CE
4263 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4264 then ac_cv_path_FGREP="$GREP -F"
4265 else
4266 if test -z "$FGREP"; then
4267 ac_path_FGREP_found=false
4268 # Loop through the user's path and test for each of PROGNAME-LIST
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
b0322a85 4274 for ac_prog in fgrep; do
8d138742
CE
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4277 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
4278# Check for GNU ac_path_FGREP and select it if it is found.
4279 # Check for GNU $ac_path_FGREP
4280case `"$ac_path_FGREP" --version 2>&1` in
4281*GNU*)
4282 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4283*)
4284 ac_count=0
4285 $as_echo_n 0123456789 >"conftest.in"
4286 while :
4287 do
4288 cat "conftest.in" "conftest.in" >"conftest.tmp"
4289 mv "conftest.tmp" "conftest.in"
4290 cp "conftest.in" "conftest.nl"
4291 $as_echo 'FGREP' >> "conftest.nl"
4292 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4294 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4295 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4296 # Best one so far, save it but keep looking for a better one
4297 ac_cv_path_FGREP="$ac_path_FGREP"
4298 ac_path_FGREP_max=$ac_count
4299 fi
4300 # 10*(2^10) chars as input seems more than enough
4301 test $ac_count -gt 10 && break
4302 done
4303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4304esac
dd184caf 4305
8d138742
CE
4306 $ac_path_FGREP_found && break 3
4307 done
4308 done
b0322a85 4309 done
8d138742
CE
4310IFS=$as_save_IFS
4311 if test -z "$ac_cv_path_FGREP"; then
b0322a85 4312 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4313 fi
4314else
4315 ac_cv_path_FGREP=$FGREP
4316fi
dd184caf 4317
4318 fi
d9898ee8 4319fi
b0322a85 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
4321$as_echo "$ac_cv_path_FGREP" >&6; }
4322 FGREP="$ac_cv_path_FGREP"
4323
4324
4325test -z "$GREP" && GREP=grep
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
d9898ee8 4342
4343
4344
dd184caf 4345# Check whether --with-gnu-ld was given.
b0322a85 4346if test "${with_gnu_ld+set}" = set; then :
dd184caf 4347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4348else
4349 with_gnu_ld=no
dd184caf 4350fi
4351
d9898ee8 4352ac_prog=ld
4353if test "$GCC" = yes; then
4354 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 4356$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4357 case $host in
4358 *-*-mingw*)
4359 # gcc leaves a trailing carriage return which upsets mingw
4360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4361 *)
4362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4363 esac
4364 case $ac_prog in
4365 # Accept absolute paths.
4366 [\\/]* | ?:[\\/]*)
4367 re_direlt='/[^/][^/]*/\.\./'
4368 # Canonicalize the pathname of ld
8d138742
CE
4369 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4370 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4371 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4372 done
4373 test -z "$LD" && LD="$ac_prog"
4374 ;;
4375 "")
4376 # If it fails, then pretend we aren't using GCC.
4377 ac_prog=ld
4378 ;;
4379 *)
4380 # If it is relative, then search for the first ld in PATH.
4381 with_gnu_ld=unknown
4382 ;;
4383 esac
4384elif test "$with_gnu_ld" = yes; then
b0322a85 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 4386$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4387else
b0322a85 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 4389$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4390fi
b0322a85 4391if ${lt_cv_path_LD+:} false; then :
8d138742 4392 $as_echo_n "(cached) " >&6
d9898ee8 4393else
4394 if test -z "$LD"; then
4395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4396 for ac_dir in $PATH; do
4397 IFS="$lt_save_ifs"
4398 test -z "$ac_dir" && ac_dir=.
4399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4400 lt_cv_path_LD="$ac_dir/$ac_prog"
4401 # Check to see if the program is GNU ld. I'd rather use --version,
4402 # but apparently some variants of GNU ld only accept -v.
4403 # Break only if it was the GNU/non-GNU ld that we prefer.
4404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4405 *GNU* | *'with BFD'*)
4406 test "$with_gnu_ld" != no && break
4407 ;;
4408 *)
4409 test "$with_gnu_ld" != yes && break
4410 ;;
4411 esac
4412 fi
4413 done
4414 IFS="$lt_save_ifs"
4415else
4416 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4417fi
4418fi
4419
4420LD="$lt_cv_path_LD"
4421if test -n "$LD"; then
b0322a85 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 4423$as_echo "$LD" >&6; }
d9898ee8 4424else
b0322a85 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4426$as_echo "no" >&6; }
d9898ee8 4427fi
b0322a85
CE
4428test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 4430$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 4431if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 4432 $as_echo_n "(cached) " >&6
d9898ee8 4433else
4434 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4435case `$LD -v 2>&1 </dev/null` in
4436*GNU* | *'with BFD'*)
4437 lt_cv_prog_gnu_ld=yes
4438 ;;
4439*)
4440 lt_cv_prog_gnu_ld=no
4441 ;;
4442esac
4443fi
b0322a85 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 4445$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4446with_gnu_ld=$lt_cv_prog_gnu_ld
4447
4448
d9898ee8 4449
8d138742
CE
4450
4451
4452
4453
4454
4455
b0322a85 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 4457$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 4458if ${lt_cv_path_NM+:} false; then :
8d138742 4459 $as_echo_n "(cached) " >&6
d9898ee8 4460else
4461 if test -n "$NM"; then
4462 # Let the user override the test.
4463 lt_cv_path_NM="$NM"
4464else
4465 lt_nm_to_check="${ac_tool_prefix}nm"
4466 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4467 lt_nm_to_check="$lt_nm_to_check nm"
4468 fi
4469 for lt_tmp_nm in $lt_nm_to_check; do
4470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4471 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4472 IFS="$lt_save_ifs"
4473 test -z "$ac_dir" && ac_dir=.
4474 tmp_nm="$ac_dir/$lt_tmp_nm"
4475 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4476 # Check to see if the nm accepts a BSD-compat flag.
4477 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4478 # nm: unknown option "B" ignored
4479 # Tru64's nm complains that /dev/null is an invalid object file
4480 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4481 */dev/null* | *'Invalid file or object type'*)
4482 lt_cv_path_NM="$tmp_nm -B"
4483 break
4484 ;;
4485 *)
4486 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4487 */dev/null*)
4488 lt_cv_path_NM="$tmp_nm -p"
4489 break
4490 ;;
4491 *)
4492 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4493 continue # so that we can try to find one that supports BSD flags
4494 ;;
4495 esac
4496 ;;
4497 esac
4498 fi
4499 done
4500 IFS="$lt_save_ifs"
4501 done
8d138742 4502 : ${lt_cv_path_NM=no}
d9898ee8 4503fi
4504fi
b0322a85 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742
CE
4506$as_echo "$lt_cv_path_NM" >&6; }
4507if test "$lt_cv_path_NM" != "no"; then
4508 NM="$lt_cv_path_NM"
4509else
4510 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
4511 if test -n "$DUMPBIN"; then :
4512 # Let the user override the test.
4513 else
4514 if test -n "$ac_tool_prefix"; then
4515 for ac_prog in dumpbin "link -dump"
8d138742
CE
4516 do
4517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4518set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4520$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4521if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
4522 $as_echo_n "(cached) " >&6
4523else
4524 if test -n "$DUMPBIN"; then
4525 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
b0322a85
CE
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4534 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4536 break 2
4537 fi
4538done
b0322a85 4539 done
8d138742 4540IFS=$as_save_IFS
d9898ee8 4541
8d138742
CE
4542fi
4543fi
4544DUMPBIN=$ac_cv_prog_DUMPBIN
4545if test -n "$DUMPBIN"; then
b0322a85 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742 4547$as_echo "$DUMPBIN" >&6; }
d9898ee8 4548else
b0322a85 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4550$as_echo "no" >&6; }
4551fi
d9898ee8 4552
d9898ee8 4553
8d138742
CE
4554 test -n "$DUMPBIN" && break
4555 done
4556fi
4557if test -z "$DUMPBIN"; then
4558 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 4559 for ac_prog in dumpbin "link -dump"
8d138742
CE
4560do
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562set dummy $ac_prog; ac_word=$2
b0322a85 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4564$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4565if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
4566 $as_echo_n "(cached) " >&6
4567else
4568 if test -n "$ac_ct_DUMPBIN"; then
4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
b0322a85
CE
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4580 break 2
4581 fi
4582done
b0322a85 4583 done
8d138742 4584IFS=$as_save_IFS
d9898ee8 4585
8d138742
CE
4586fi
4587fi
4588ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4589if test -n "$ac_ct_DUMPBIN"; then
b0322a85 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
4591$as_echo "$ac_ct_DUMPBIN" >&6; }
4592else
b0322a85 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4594$as_echo "no" >&6; }
4595fi
d9898ee8 4596
d9898ee8 4597
8d138742
CE
4598 test -n "$ac_ct_DUMPBIN" && break
4599done
4600
4601 if test "x$ac_ct_DUMPBIN" = x; then
4602 DUMPBIN=":"
ac40fd9e 4603 else
8d138742
CE
4604 case $cross_compiling:$ac_tool_warned in
4605yes:)
b0322a85 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608ac_tool_warned=yes ;;
4609esac
4610 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 4611 fi
8d138742 4612fi
d9898ee8 4613
b0322a85
CE
4614 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4615 *COFF*)
4616 DUMPBIN="$DUMPBIN -symbols"
4617 ;;
4618 *)
4619 DUMPBIN=:
4620 ;;
4621 esac
4622 fi
d9898ee8 4623
8d138742
CE
4624 if test "$DUMPBIN" != ":"; then
4625 NM="$DUMPBIN"
d9898ee8 4626 fi
8d138742
CE
4627fi
4628test -z "$NM" && NM=nm
d9898ee8 4629
d9898ee8 4630
d9898ee8 4631
d9898ee8 4632
d9898ee8 4633
d9898ee8 4634
b0322a85 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 4636$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 4637if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
4638 $as_echo_n "(cached) " >&6
4639else
4640 lt_cv_nm_interface="BSD nm"
4641 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 4642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
4643 (eval "$ac_compile" 2>conftest.err)
4644 cat conftest.err >&5
b0322a85 4645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
4646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4647 cat conftest.err >&5
b0322a85 4648 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
4649 cat conftest.out >&5
4650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4651 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4652 fi
8d138742
CE
4653 rm -f conftest*
4654fi
b0322a85 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 4656$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4657
8d138742 4658# find the maximum length of command line arguments
b0322a85 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 4660$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 4661if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
4662 $as_echo_n "(cached) " >&6
4663else
4664 i=0
4665 teststring="ABCD"
d9898ee8 4666
8d138742
CE
4667 case $build_os in
4668 msdosdjgpp*)
4669 # On DJGPP, this test can blow up pretty badly due to problems in libc
4670 # (any single argument exceeding 2000 bytes causes a buffer overrun
4671 # during glob expansion). Even if it were fixed, the result of this
4672 # check would be larger than it should be.
4673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4674 ;;
d9898ee8 4675
8d138742
CE
4676 gnu*)
4677 # Under GNU Hurd, this test is not required because there is
4678 # no limit to the length of command line arguments.
4679 # Libtool will interpret -1 as no limit whatsoever
4680 lt_cv_sys_max_cmd_len=-1;
4681 ;;
d9898ee8 4682
8d138742
CE
4683 cygwin* | mingw* | cegcc*)
4684 # On Win9x/ME, this test blows up -- it succeeds, but takes
4685 # about 5 minutes as the teststring grows exponentially.
4686 # Worse, since 9x/ME are not pre-emptively multitasking,
4687 # you end up with a "frozen" computer, even though with patience
4688 # the test eventually succeeds (with a max line length of 256k).
4689 # Instead, let's just punt: use the minimum linelength reported by
4690 # all of the supported platforms: 8192 (on NT/2K/XP).
4691 lt_cv_sys_max_cmd_len=8192;
4692 ;;
d9898ee8 4693
b0322a85
CE
4694 mint*)
4695 # On MiNT this can take a long time and run out of memory.
4696 lt_cv_sys_max_cmd_len=8192;
4697 ;;
4698
8d138742
CE
4699 amigaos*)
4700 # On AmigaOS with pdksh, this test takes hours, literally.
4701 # So we just punt and use a minimum line length of 8192.
4702 lt_cv_sys_max_cmd_len=8192;
4703 ;;
ac40fd9e 4704
8d138742
CE
4705 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4706 # This has been around since 386BSD, at least. Likely further.
4707 if test -x /sbin/sysctl; then
4708 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4709 elif test -x /usr/sbin/sysctl; then
4710 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4711 else
4712 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4713 fi
4714 # And add a safety zone
4715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4717 ;;
d9898ee8 4718
8d138742
CE
4719 interix*)
4720 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4721 lt_cv_sys_max_cmd_len=196608
d9898ee8 4722 ;;
8d138742 4723
b0322a85
CE
4724 os2*)
4725 # The test takes a long time on OS/2.
4726 lt_cv_sys_max_cmd_len=8192
4727 ;;
4728
8d138742
CE
4729 osf*)
4730 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4731 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4732 # nice to cause kernel panics so lets avoid the loop below.
4733 # First set a reasonable default.
4734 lt_cv_sys_max_cmd_len=16384
4735 #
4736 if test -x /sbin/sysconfig; then
4737 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4738 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4739 esac
4740 fi
d9898ee8 4741 ;;
8d138742
CE
4742 sco3.2v5*)
4743 lt_cv_sys_max_cmd_len=102400
d9898ee8 4744 ;;
8d138742
CE
4745 sysv5* | sco5v6* | sysv4.2uw2*)
4746 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4747 if test -n "$kargmax"; then
4748 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4749 else
4750 lt_cv_sys_max_cmd_len=32768
4751 fi
d9898ee8 4752 ;;
8d138742
CE
4753 *)
4754 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4755 if test -n "$lt_cv_sys_max_cmd_len"; then
4756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4758 else
4759 # Make teststring a little bigger before we do anything with it.
4760 # a 1K string should be a reasonable start.
4761 for i in 1 2 3 4 5 6 7 8 ; do
4762 teststring=$teststring$teststring
4763 done
4764 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4765 # If test is not a shell built-in, we'll probably end up computing a
4766 # maximum length that is only half of the actual maximum length, but
4767 # we can't tell.
b0322a85
CE
4768 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4769 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8d138742
CE
4770 test $i != 17 # 1/2 MB should be enough
4771 do
4772 i=`expr $i + 1`
4773 teststring=$teststring$teststring
4774 done
4775 # Only check the string length outside the loop.
4776 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4777 teststring=
4778 # Add a significant safety factor because C++ compilers can tack on
4779 # massive amounts of additional arguments before passing them to the
4780 # linker. It appears as though 1/2 is a usable value.
4781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4782 fi
d9898ee8 4783 ;;
4784 esac
d9898ee8 4785
8d138742 4786fi
d9898ee8 4787
8d138742 4788if test -n $lt_cv_sys_max_cmd_len ; then
b0322a85 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
4790$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4791else
b0322a85 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742 4793$as_echo "none" >&6; }
d9898ee8 4794fi
8d138742 4795max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4796
4797
4798
4799
d9898ee8 4800
d9898ee8 4801
8d138742
CE
4802: ${CP="cp -f"}
4803: ${MV="mv -f"}
4804: ${RM="rm -f"}
d9898ee8 4805
b0322a85 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8d138742
CE
4807$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4808# Try some XSI features
4809xsi_shell=no
4810( _lt_dummy="a/b/c"
b0322a85
CE
4811 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4812 = c,a/b,b/c, \
8d138742
CE
4813 && eval 'test $(( 1 + 1 )) -eq 2 \
4814 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4815 && xsi_shell=yes
b0322a85 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8d138742 4817$as_echo "$xsi_shell" >&6; }
d9898ee8 4818
8d138742 4819
b0322a85 4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8d138742
CE
4821$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4822lt_shell_append=no
4823( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4824 >/dev/null 2>&1 \
4825 && lt_shell_append=yes
b0322a85 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8d138742
CE
4827$as_echo "$lt_shell_append" >&6; }
4828
4829
4830if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4831 lt_unset=unset
4832else
4833 lt_unset=false
dd184caf 4834fi
d9898ee8 4835
d9898ee8 4836
8d138742
CE
4837
4838
4839
4840# test EBCDIC or ASCII
4841case `echo X|tr X '\101'` in
4842 A) # ASCII based system
4843 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4844 lt_SP2NL='tr \040 \012'
4845 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4846 ;;
8d138742
CE
4847 *) # EBCDIC based system
4848 lt_SP2NL='tr \100 \n'
4849 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4850 ;;
8d138742 4851esac
d9898ee8 4852
d9898ee8 4853
d9898ee8 4854
d9898ee8 4855
d9898ee8 4856
8d138742
CE
4857
4858
4859
4860
b0322a85
CE
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4862$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4863if ${lt_cv_to_host_file_cmd+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865else
4866 case $host in
4867 *-*-mingw* )
4868 case $build in
4869 *-*-mingw* ) # actually msys
4870 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4871 ;;
4872 *-*-cygwin* )
4873 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4874 ;;
4875 * ) # otherwise, assume *nix
4876 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4877 ;;
4878 esac
4879 ;;
4880 *-*-cygwin* )
4881 case $build in
4882 *-*-mingw* ) # actually msys
4883 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4884 ;;
4885 *-*-cygwin* )
4886 lt_cv_to_host_file_cmd=func_convert_file_noop
4887 ;;
4888 * ) # otherwise, assume *nix
4889 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4890 ;;
4891 esac
4892 ;;
4893 * ) # unhandled hosts (and "normal" native builds)
4894 lt_cv_to_host_file_cmd=func_convert_file_noop
4895 ;;
4896esac
4897
4898fi
4899
4900to_host_file_cmd=$lt_cv_to_host_file_cmd
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4902$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4903
4904
4905
4906
4907
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4909$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4910if ${lt_cv_to_tool_file_cmd+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912else
4913 #assume ordinary cross tools, or native build.
4914lt_cv_to_tool_file_cmd=func_convert_file_noop
4915case $host in
4916 *-*-mingw* )
4917 case $build in
4918 *-*-mingw* ) # actually msys
4919 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4920 ;;
4921 esac
4922 ;;
4923esac
4924
4925fi
4926
4927to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4929$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4930
4931
4932
4933
4934
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 4936$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 4937if ${lt_cv_ld_reload_flag+:} false; then :
8d138742
CE
4938 $as_echo_n "(cached) " >&6
4939else
4940 lt_cv_ld_reload_flag='-r'
4941fi
b0322a85 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
4943$as_echo "$lt_cv_ld_reload_flag" >&6; }
4944reload_flag=$lt_cv_ld_reload_flag
4945case $reload_flag in
4946"" | " "*) ;;
4947*) reload_flag=" $reload_flag" ;;
dd184caf 4948esac
8d138742
CE
4949reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950case $host_os in
b0322a85
CE
4951 cygwin* | mingw* | pw32* | cegcc*)
4952 if test "$GCC" != yes; then
4953 reload_cmds=false
4954 fi
4955 ;;
8d138742
CE
4956 darwin*)
4957 if test "$GCC" = yes; then
4958 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4959 else
4960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4961 fi
4962 ;;
4963esac
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973if test -n "$ac_tool_prefix"; then
4974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4975set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4977$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4978if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 4979 $as_echo_n "(cached) " >&6
d9898ee8 4980else
8d138742
CE
4981 if test -n "$OBJDUMP"; then
4982 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4983else
4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
b0322a85
CE
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4993 break 2
4994 fi
4995done
b0322a85 4996 done
8d138742 4997IFS=$as_save_IFS
d9898ee8 4998
8d138742
CE
4999fi
5000fi
5001OBJDUMP=$ac_cv_prog_OBJDUMP
5002if test -n "$OBJDUMP"; then
b0322a85 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742
CE
5004$as_echo "$OBJDUMP" >&6; }
5005else
b0322a85 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5007$as_echo "no" >&6; }
d9898ee8 5008fi
dd184caf 5009
d9898ee8 5010
5011fi
8d138742
CE
5012if test -z "$ac_cv_prog_OBJDUMP"; then
5013 ac_ct_OBJDUMP=$OBJDUMP
5014 # Extract the first word of "objdump", so it can be a program name with args.
5015set dummy objdump; ac_word=$2
b0322a85 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5017$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5018if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742
CE
5019 $as_echo_n "(cached) " >&6
5020else
5021 if test -n "$ac_ct_OBJDUMP"; then
5022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
b0322a85
CE
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 5033 break 2
d9898ee8 5034 fi
8d138742 5035done
b0322a85 5036 done
8d138742 5037IFS=$as_save_IFS
d9898ee8 5038
8d138742
CE
5039fi
5040fi
5041ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5042if test -n "$ac_ct_OBJDUMP"; then
b0322a85 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742
CE
5044$as_echo "$ac_ct_OBJDUMP" >&6; }
5045else
b0322a85 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5047$as_echo "no" >&6; }
5048fi
d9898ee8 5049
8d138742
CE
5050 if test "x$ac_ct_OBJDUMP" = x; then
5051 OBJDUMP="false"
5052 else
5053 case $cross_compiling:$ac_tool_warned in
5054yes:)
b0322a85 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057ac_tool_warned=yes ;;
d9898ee8 5058esac
8d138742
CE
5059 OBJDUMP=$ac_ct_OBJDUMP
5060 fi
5061else
5062 OBJDUMP="$ac_cv_prog_OBJDUMP"
5063fi
d9898ee8 5064
8d138742 5065test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 5066
5067
8d138742
CE
5068
5069
5070
5071
5072
5073
5074
b0322a85 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 5076$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 5077if ${lt_cv_deplibs_check_method+:} false; then :
8d138742 5078 $as_echo_n "(cached) " >&6
d9898ee8 5079else
8d138742
CE
5080 lt_cv_file_magic_cmd='$MAGIC_CMD'
5081lt_cv_file_magic_test_file=
5082lt_cv_deplibs_check_method='unknown'
5083# Need to set the preceding variable on all platforms that support
5084# interlibrary dependencies.
5085# 'none' -- dependencies not supported.
5086# `unknown' -- same as none, but documents that we really don't know.
5087# 'pass_all' -- all dependencies passed with no checks.
5088# 'test_compile' -- check by making test program.
5089# 'file_magic [[regex]]' -- check by looking for files in library path
5090# which responds to the $file_magic_cmd with a given extended regex.
5091# If you have `file' or equivalent on your system and you're not sure
5092# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 5093
8d138742
CE
5094case $host_os in
5095aix[4-9]*)
5096 lt_cv_deplibs_check_method=pass_all
d9898ee8 5097 ;;
5098
8d138742
CE
5099beos*)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
d9898ee8 5102
8d138742
CE
5103bsdi[45]*)
5104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5105 lt_cv_file_magic_cmd='/usr/bin/file -L'
5106 lt_cv_file_magic_test_file=/shlib/libc.so
5107 ;;
d9898ee8 5108
8d138742
CE
5109cygwin*)
5110 # func_win32_libid is a shell function defined in ltmain.sh
5111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112 lt_cv_file_magic_cmd='func_win32_libid'
d9898ee8 5113 ;;
5114
8d138742
CE
5115mingw* | pw32*)
5116 # Base MSYS/MinGW do not provide the 'file' command needed by
5117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5118 # unless we find 'file', for example because we are cross-compiling.
b0322a85
CE
5119 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5120 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8d138742
CE
5121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5122 lt_cv_file_magic_cmd='func_win32_libid'
d9898ee8 5123 else
b0322a85
CE
5124 # Keep this pattern in sync with the one in func_win32_libid.
5125 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742 5126 lt_cv_file_magic_cmd='$OBJDUMP -f'
d9898ee8 5127 fi
d9898ee8 5128 ;;
5129
b0322a85 5130cegcc*)
8d138742
CE
5131 # use the weaker test based on 'objdump'. See mingw*.
5132 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5133 lt_cv_file_magic_cmd='$OBJDUMP -f'
d9898ee8 5134 ;;
5135
8d138742
CE
5136darwin* | rhapsody*)
5137 lt_cv_deplibs_check_method=pass_all
d9898ee8 5138 ;;
5139
8d138742
CE
5140freebsd* | dragonfly*)
5141 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5142 case $host_cpu in
5143 i*86 )
5144 # Not sure whether the presence of OpenBSD here was a mistake.
5145 # Let's accept both of them until this is cleared up.
5146 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5147 lt_cv_file_magic_cmd=/usr/bin/file
5148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5149 ;;
5150 esac
d9898ee8 5151 else
8d138742 5152 lt_cv_deplibs_check_method=pass_all
d9898ee8 5153 fi
5154 ;;
5155
8d138742
CE
5156gnu*)
5157 lt_cv_deplibs_check_method=pass_all
d9898ee8 5158 ;;
5159
b0322a85
CE
5160haiku*)
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5163
8d138742
CE
5164hpux10.20* | hpux11*)
5165 lt_cv_file_magic_cmd=/usr/bin/file
5166 case $host_cpu in
5167 ia64*)
5168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5169 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5170 ;;
5171 hppa*64*)
b0322a85 5172 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
5173 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5174 ;;
5175 *)
b0322a85 5176 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
5177 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5178 ;;
5179 esac
d9898ee8 5180 ;;
5181
8d138742
CE
5182interix[3-9]*)
5183 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
ac40fd9e 5185 ;;
5186
8d138742
CE
5187irix5* | irix6* | nonstopux*)
5188 case $LD in
5189 *-32|*"-32 ") libmagic=32-bit;;
5190 *-n32|*"-n32 ") libmagic=N32;;
5191 *-64|*"-64 ") libmagic=64-bit;;
5192 *) libmagic=never-match;;
5193 esac
5194 lt_cv_deplibs_check_method=pass_all
d9898ee8 5195 ;;
5196
b0322a85
CE
5197# This must be glibc/ELF.
5198linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202netbsd*)
5203 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5205 else
5206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d9898ee8 5207 fi
d9898ee8 5208 ;;
5209
8d138742
CE
5210newos6*)
5211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5212 lt_cv_file_magic_cmd=/usr/bin/file
5213 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d9898ee8 5214 ;;
5215
8d138742
CE
5216*nto* | *qnx*)
5217 lt_cv_deplibs_check_method=pass_all
d9898ee8 5218 ;;
5219
8d138742
CE
5220openbsd*)
5221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5223 else
5224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d9898ee8 5225 fi
d9898ee8 5226 ;;
5227
8d138742
CE
5228osf3* | osf4* | osf5*)
5229 lt_cv_deplibs_check_method=pass_all
d9898ee8 5230 ;;
5231
8d138742
CE
5232rdos*)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236solaris*)
5237 lt_cv_deplibs_check_method=pass_all
5238 ;;
5239
5240sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243
5244sysv4 | sysv4.3*)
5245 case $host_vendor in
5246 motorola)
5247 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]'
5248 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5249 ;;
5250 ncr)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253 sequent)
5254 lt_cv_file_magic_cmd='/bin/file'
5255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5256 ;;
5257 sni)
5258 lt_cv_file_magic_cmd='/bin/file'
5259 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5260 lt_cv_file_magic_test_file=/lib/libc.so
5261 ;;
5262 siemens)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265 pc)
5266 lt_cv_deplibs_check_method=pass_all
5267 ;;
5268 esac
5269 ;;
5270
5271tpf*)
5272 lt_cv_deplibs_check_method=pass_all
d9898ee8 5273 ;;
5274esac
d9898ee8 5275
d9898ee8 5276fi
b0322a85 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8d138742 5278$as_echo "$lt_cv_deplibs_check_method" >&6; }
b0322a85
CE
5279
5280file_magic_glob=
5281want_nocaseglob=no
5282if test "$build" = "$host"; then
5283 case $host_os in
5284 mingw* | pw32*)
5285 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5286 want_nocaseglob=yes
5287 else
5288 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5289 fi
5290 ;;
5291 esac
5292fi
5293
8d138742
CE
5294file_magic_cmd=$lt_cv_file_magic_cmd
5295deplibs_check_method=$lt_cv_deplibs_check_method
5296test -z "$deplibs_check_method" && deplibs_check_method=unknown
d9898ee8 5297
d9898ee8 5298
8d138742
CE
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
b0322a85
CE
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319if test -n "$ac_tool_prefix"; then
5320 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5321set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323$as_echo_n "checking for $ac_word... " >&6; }
5324if ${ac_cv_prog_DLLTOOL+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326else
5327 if test -n "$DLLTOOL"; then
5328 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5329else
5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341done
5342 done
5343IFS=$as_save_IFS
5344
5345fi
5346fi
5347DLLTOOL=$ac_cv_prog_DLLTOOL
5348if test -n "$DLLTOOL"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5350$as_echo "$DLLTOOL" >&6; }
5351else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353$as_echo "no" >&6; }
5354fi
5355
5356
5357fi
5358if test -z "$ac_cv_prog_DLLTOOL"; then
5359 ac_ct_DLLTOOL=$DLLTOOL
5360 # Extract the first word of "dlltool", so it can be a program name with args.
5361set dummy dlltool; ac_word=$2
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363$as_echo_n "checking for $ac_word... " >&6; }
5364if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366else
5367 if test -n "$ac_ct_DLLTOOL"; then
5368 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5369else
5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381done
5382 done
5383IFS=$as_save_IFS
5384
5385fi
5386fi
5387ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5388if test -n "$ac_ct_DLLTOOL"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5390$as_echo "$ac_ct_DLLTOOL" >&6; }
5391else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393$as_echo "no" >&6; }
5394fi
5395
5396 if test "x$ac_ct_DLLTOOL" = x; then
5397 DLLTOOL="false"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400yes:)
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403ac_tool_warned=yes ;;
5404esac
5405 DLLTOOL=$ac_ct_DLLTOOL
5406 fi
5407else
5408 DLLTOOL="$ac_cv_prog_DLLTOOL"
5409fi
5410
5411test -z "$DLLTOOL" && DLLTOOL=dlltool
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5423$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5424if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426else
5427 lt_cv_sharedlib_from_linklib_cmd='unknown'
5428
5429case $host_os in
5430cygwin* | mingw* | pw32* | cegcc*)
5431 # two different shell functions defined in ltmain.sh
5432 # decide which to use based on capabilities of $DLLTOOL
5433 case `$DLLTOOL --help 2>&1` in
5434 *--identify-strict*)
5435 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5436 ;;
5437 *)
5438 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5439 ;;
5440 esac
5441 ;;
5442*)
5443 # fallback: assume linklib IS sharedlib
5444 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5445 ;;
5446esac
5447
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5450$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5451sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5452test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5453
5454
5455
5456
5457
5458
5459
5460
8d138742 5461if test -n "$ac_tool_prefix"; then
b0322a85
CE
5462 for ac_prog in ar
5463 do
5464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5467$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5468if ${ac_cv_prog_AR+:} false; then :
8d138742
CE
5469 $as_echo_n "(cached) " >&6
5470else
5471 if test -n "$AR"; then
5472 ac_cv_prog_AR="$AR" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
b0322a85
CE
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 5483 break 2
d9898ee8 5484 fi
8d138742 5485done
b0322a85 5486 done
8d138742
CE
5487IFS=$as_save_IFS
5488
5489fi
5490fi
5491AR=$ac_cv_prog_AR
5492if test -n "$AR"; then
b0322a85 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742 5494$as_echo "$AR" >&6; }
d9898ee8 5495else
b0322a85 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5497$as_echo "no" >&6; }
d9898ee8 5498fi
d9898ee8 5499
8d138742 5500
b0322a85
CE
5501 test -n "$AR" && break
5502 done
d9898ee8 5503fi
b0322a85 5504if test -z "$AR"; then
8d138742 5505 ac_ct_AR=$AR
b0322a85
CE
5506 for ac_prog in ar
5507do
5508 # Extract the first word of "$ac_prog", so it can be a program name with args.
5509set dummy $ac_prog; ac_word=$2
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5511$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5512if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742
CE
5513 $as_echo_n "(cached) " >&6
5514else
5515 if test -n "$ac_ct_AR"; then
5516 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5517else
5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
b0322a85
CE
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_ac_ct_AR="$ac_prog"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5527 break 2
5528 fi
5529done
b0322a85 5530 done
8d138742 5531IFS=$as_save_IFS
d9898ee8 5532
8d138742
CE
5533fi
5534fi
5535ac_ct_AR=$ac_cv_prog_ac_ct_AR
5536if test -n "$ac_ct_AR"; then
b0322a85 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742
CE
5538$as_echo "$ac_ct_AR" >&6; }
5539else
b0322a85 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5541$as_echo "no" >&6; }
5542fi
d9898ee8 5543
b0322a85
CE
5544
5545 test -n "$ac_ct_AR" && break
5546done
5547
8d138742
CE
5548 if test "x$ac_ct_AR" = x; then
5549 AR="false"
5550 else
5551 case $cross_compiling:$ac_tool_warned in
5552yes:)
b0322a85 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555ac_tool_warned=yes ;;
5556esac
5557 AR=$ac_ct_AR
d9898ee8 5558 fi
8d138742 5559fi
d9898ee8 5560
b0322a85
CE
5561: ${AR=ar}
5562: ${AR_FLAGS=cru}
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5575$as_echo_n "checking for archiver @FILE support... " >&6; }
5576if ${lt_cv_ar_at_file+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578else
5579 lt_cv_ar_at_file=no
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h. */
5582
5583int
5584main ()
5585{
d9898ee8 5586
b0322a85
CE
5587 ;
5588 return 0;
5589}
5590_ACEOF
5591if ac_fn_c_try_compile "$LINENO"; then :
5592 echo conftest.$ac_objext > conftest.lst
5593 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5595 (eval $lt_ar_try) 2>&5
5596 ac_status=$?
5597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5598 test $ac_status = 0; }
5599 if test "$ac_status" -eq 0; then
5600 # Ensure the archiver fails upon bogus file names.
5601 rm -f conftest.$ac_objext libconftest.a
5602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5603 (eval $lt_ar_try) 2>&5
5604 ac_status=$?
5605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606 test $ac_status = 0; }
5607 if test "$ac_status" -ne 0; then
5608 lt_cv_ar_at_file=@
5609 fi
5610 fi
5611 rm -f conftest.* libconftest.a
d9898ee8 5612
b0322a85
CE
5613fi
5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5615
b0322a85
CE
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5618$as_echo "$lt_cv_ar_at_file" >&6; }
d9898ee8 5619
b0322a85
CE
5620if test "x$lt_cv_ar_at_file" = xno; then
5621 archiver_list_spec=
5622else
5623 archiver_list_spec=$lt_cv_ar_at_file
5624fi
d9898ee8 5625
d9898ee8 5626
d9898ee8 5627
d9898ee8 5628
d9898ee8 5629
d9898ee8 5630
d9898ee8 5631
8d138742
CE
5632if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5634set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5636$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5637if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
5638 $as_echo_n "(cached) " >&6
5639else
5640 if test -n "$STRIP"; then
5641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
b0322a85
CE
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5652 break 2
5653 fi
5654done
b0322a85 5655 done
8d138742 5656IFS=$as_save_IFS
d9898ee8 5657
8d138742
CE
5658fi
5659fi
5660STRIP=$ac_cv_prog_STRIP
5661if test -n "$STRIP"; then
b0322a85 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
5663$as_echo "$STRIP" >&6; }
5664else
b0322a85 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5666$as_echo "no" >&6; }
5667fi
d9898ee8 5668
d9898ee8 5669
8d138742
CE
5670fi
5671if test -z "$ac_cv_prog_STRIP"; then
5672 ac_ct_STRIP=$STRIP
5673 # Extract the first word of "strip", so it can be a program name with args.
5674set dummy strip; ac_word=$2
b0322a85 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5676$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5677if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
5678 $as_echo_n "(cached) " >&6
5679else
5680 if test -n "$ac_ct_STRIP"; then
5681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
b0322a85
CE
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5690 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5692 break 2
5693 fi
5694done
b0322a85 5695 done
8d138742 5696IFS=$as_save_IFS
d9898ee8 5697
8d138742
CE
5698fi
5699fi
5700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5701if test -n "$ac_ct_STRIP"; then
b0322a85 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
5703$as_echo "$ac_ct_STRIP" >&6; }
5704else
b0322a85 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5706$as_echo "no" >&6; }
5707fi
d9898ee8 5708
8d138742
CE
5709 if test "x$ac_ct_STRIP" = x; then
5710 STRIP=":"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713yes:)
b0322a85 5714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716ac_tool_warned=yes ;;
5717esac
5718 STRIP=$ac_ct_STRIP
5719 fi
5720else
5721 STRIP="$ac_cv_prog_STRIP"
5722fi
d9898ee8 5723
8d138742 5724test -z "$STRIP" && STRIP=:
d9898ee8 5725
d9898ee8 5726
d9898ee8 5727
d9898ee8 5728
d9898ee8 5729
d9898ee8 5730
8d138742
CE
5731if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5733set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5735$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5736if ${ac_cv_prog_RANLIB+:} false; then :
8d138742
CE
5737 $as_echo_n "(cached) " >&6
5738else
5739 if test -n "$RANLIB"; then
5740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
b0322a85
CE
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5751 break 2
5752 fi
5753done
b0322a85 5754 done
8d138742 5755IFS=$as_save_IFS
d9898ee8 5756
8d138742
CE
5757fi
5758fi
5759RANLIB=$ac_cv_prog_RANLIB
5760if test -n "$RANLIB"; then
b0322a85 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742
CE
5762$as_echo "$RANLIB" >&6; }
5763else
b0322a85 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5765$as_echo "no" >&6; }
5766fi
d9898ee8 5767
d9898ee8 5768
8d138742
CE
5769fi
5770if test -z "$ac_cv_prog_RANLIB"; then
5771 ac_ct_RANLIB=$RANLIB
5772 # Extract the first word of "ranlib", so it can be a program name with args.
5773set dummy ranlib; ac_word=$2
b0322a85 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5775$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5776if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
5777 $as_echo_n "(cached) " >&6
5778else
5779 if test -n "$ac_ct_RANLIB"; then
5780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
b0322a85
CE
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5789 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5791 break 2
5792 fi
5793done
b0322a85 5794 done
8d138742 5795IFS=$as_save_IFS
d9898ee8 5796
8d138742
CE
5797fi
5798fi
5799ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5800if test -n "$ac_ct_RANLIB"; then
b0322a85 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
5802$as_echo "$ac_ct_RANLIB" >&6; }
5803else
b0322a85 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5805$as_echo "no" >&6; }
5806fi
d9898ee8 5807
8d138742
CE
5808 if test "x$ac_ct_RANLIB" = x; then
5809 RANLIB=":"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812yes:)
b0322a85 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5815ac_tool_warned=yes ;;
5816esac
5817 RANLIB=$ac_ct_RANLIB
5818 fi
5819else
5820 RANLIB="$ac_cv_prog_RANLIB"
5821fi
d9898ee8 5822
8d138742 5823test -z "$RANLIB" && RANLIB=:
d9898ee8 5824
d9898ee8 5825
d9898ee8 5826
d9898ee8 5827
d9898ee8 5828
d9898ee8 5829
8d138742
CE
5830# Determine commands to create old-style static archives.
5831old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5832old_postinstall_cmds='chmod 644 $oldlib'
5833old_postuninstall_cmds=
d9898ee8 5834
8d138742
CE
5835if test -n "$RANLIB"; then
5836 case $host_os in
5837 openbsd*)
b0322a85 5838 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8d138742
CE
5839 ;;
5840 *)
b0322a85 5841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
5842 ;;
5843 esac
b0322a85 5844 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8d138742 5845fi
d9898ee8 5846
b0322a85
CE
5847case $host_os in
5848 darwin*)
5849 lock_old_archive_extraction=yes ;;
5850 *)
5851 lock_old_archive_extraction=no ;;
5852esac
5853
5854
5855
5856
5857
5858
d9898ee8 5859
d9898ee8 5860
d9898ee8 5861
d9898ee8 5862
d9898ee8 5863
d9898ee8 5864
d9898ee8 5865
d9898ee8 5866
d9898ee8 5867
d9898ee8 5868
d9898ee8 5869
d9898ee8 5870
d9898ee8 5871
d9898ee8 5872
d9898ee8 5873
d9898ee8 5874
d9898ee8 5875
d9898ee8 5876
d9898ee8 5877
d9898ee8 5878
d9898ee8 5879
d9898ee8 5880
d9898ee8 5881
d9898ee8 5882
d9898ee8 5883
d9898ee8 5884
d9898ee8 5885
d9898ee8 5886
d9898ee8 5887
d9898ee8 5888
d9898ee8 5889
d9898ee8 5890
d9898ee8 5891
8d138742
CE
5892# If no C compiler was specified, use CC.
5893LTCC=${LTCC-"$CC"}
d9898ee8 5894
8d138742
CE
5895# If no C compiler flags were specified, use CFLAGS.
5896LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5897
8d138742
CE
5898# Allow CC to be a program name with arguments.
5899compiler=$CC
d9898ee8 5900
d9898ee8 5901
8d138742 5902# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 5904$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 5905if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742
CE
5906 $as_echo_n "(cached) " >&6
5907else
d9898ee8 5908
8d138742
CE
5909# These are sane defaults that work on at least a few old systems.
5910# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d9898ee8 5911
8d138742
CE
5912# Character class describing NM global symbol codes.
5913symcode='[BCDEGRST]'
d9898ee8 5914
8d138742
CE
5915# Regexp to match symbols that can be accessed directly from C.
5916sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d9898ee8 5917
8d138742
CE
5918# Define system-specific variables.
5919case $host_os in
5920aix*)
5921 symcode='[BCDT]'
5922 ;;
5923cygwin* | mingw* | pw32* | cegcc*)
5924 symcode='[ABCDGISTW]'
5925 ;;
5926hpux*)
5927 if test "$host_cpu" = ia64; then
5928 symcode='[ABCDEGRST]'
5929 fi
5930 ;;
5931irix* | nonstopux*)
5932 symcode='[BCDEGRST]'
5933 ;;
5934osf*)
5935 symcode='[BCDEGQRST]'
5936 ;;
5937solaris*)
5938 symcode='[BDRT]'
5939 ;;
5940sco3.2v5*)
5941 symcode='[DT]'
5942 ;;
5943sysv4.2uw2*)
5944 symcode='[DT]'
5945 ;;
5946sysv5* | sco5v6* | unixware* | OpenUNIX*)
5947 symcode='[ABDT]'
5948 ;;
5949sysv4)
5950 symcode='[DFNSTU]'
5951 ;;
5952esac
d9898ee8 5953
8d138742
CE
5954# If we're using GNU nm, then use its standard symbol codes.
5955case `$NM -V 2>&1` in
5956*GNU* | *'with BFD'*)
5957 symcode='[ABCDGIRSTW]' ;;
5958esac
d9898ee8 5959
8d138742
CE
5960# Transform an extracted symbol line into a proper C declaration.
5961# Some systems (esp. on ia64) link data and code symbols differently,
5962# so use this general approach.
5963lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 5964
8d138742 5965# Transform an extracted symbol line into symbol name and symbol address
b0322a85
CE
5966lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5967lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d9898ee8 5968
8d138742
CE
5969# Handle CRLF in mingw tool chain
5970opt_cr=
5971case $build_os in
5972mingw*)
5973 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5974 ;;
5975esac
d9898ee8 5976
8d138742
CE
5977# Try without a prefix underscore, then with it.
5978for ac_symprfx in "" "_"; do
d9898ee8 5979
8d138742
CE
5980 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5981 symxfrm="\\1 $ac_symprfx\\2 \\2"
d9898ee8 5982
8d138742
CE
5983 # Write the raw and C identifiers.
5984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5985 # Fake it for dumpbin and say T for any non-static function
5986 # and D for any global variable.
5987 # Also find C++ and __fastcall symbols from MSVC++,
5988 # which start with @ or ?.
5989 lt_cv_sys_global_symbol_pipe="$AWK '"\
5990" {last_section=section; section=\$ 3};"\
b0322a85 5991" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742
CE
5992" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5993" \$ 0!~/External *\|/{next};"\
5994" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5995" {if(hide[section]) next};"\
5996" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5997" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5998" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5999" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6000" ' prfx=^$ac_symprfx"
6001 else
6002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6003 fi
b0322a85 6004 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d9898ee8 6005
8d138742
CE
6006 # Check to see that the pipe works correctly.
6007 pipe_works=no
d9898ee8 6008
8d138742
CE
6009 rm -f conftest*
6010 cat > conftest.$ac_ext <<_LT_EOF
6011#ifdef __cplusplus
6012extern "C" {
6013#endif
6014char nm_test_var;
6015void nm_test_func(void);
6016void nm_test_func(void){}
6017#ifdef __cplusplus
6018}
6019#endif
6020int main(){nm_test_var='a';nm_test_func();return(0);}
6021_LT_EOF
d9898ee8 6022
b0322a85 6023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6024 (eval $ac_compile) 2>&5
6025 ac_status=$?
b0322a85
CE
6026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; }; then
8d138742
CE
6028 # Now try to grab the symbols.
6029 nlist=conftest.nm
b0322a85
CE
6030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6031 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8d138742 6032 ac_status=$?
b0322a85
CE
6033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034 test $ac_status = 0; } && test -s "$nlist"; then
8d138742
CE
6035 # Try sorting and uniquifying the output.
6036 if sort "$nlist" | uniq > "$nlist"T; then
6037 mv -f "$nlist"T "$nlist"
6038 else
6039 rm -f "$nlist"T
6040 fi
d9898ee8 6041
8d138742
CE
6042 # Make sure that we snagged all the symbols we need.
6043 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6044 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6045 cat <<_LT_EOF > conftest.$ac_ext
b0322a85
CE
6046/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6047#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6048/* DATA imports from DLLs on WIN32 con't be const, because runtime
6049 relocations are performed -- see ld's documentation on pseudo-relocs. */
6050# define LT_DLSYM_CONST
6051#elif defined(__osf__)
6052/* This system does not cope well with relocations in const data. */
6053# define LT_DLSYM_CONST
6054#else
6055# define LT_DLSYM_CONST const
6056#endif
6057
8d138742
CE
6058#ifdef __cplusplus
6059extern "C" {
6060#endif
d9898ee8 6061
8d138742
CE
6062_LT_EOF
6063 # Now generate the symbol file.
6064 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 6065
8d138742 6066 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 6067
8d138742 6068/* The mapping between symbol names and symbols. */
b0322a85 6069LT_DLSYM_CONST struct {
8d138742
CE
6070 const char *name;
6071 void *address;
6072}
6073lt__PROGRAM__LTX_preloaded_symbols[] =
6074{
6075 { "@PROGRAM@", (void *) 0 },
6076_LT_EOF
6077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6078 cat <<\_LT_EOF >> conftest.$ac_ext
6079 {0, (void *) 0}
6080};
d9898ee8 6081
8d138742
CE
6082/* This works around a problem in FreeBSD linker */
6083#ifdef FREEBSD_WORKAROUND
6084static const void *lt_preloaded_setup() {
6085 return lt__PROGRAM__LTX_preloaded_symbols;
6086}
6087#endif
d9898ee8 6088
8d138742
CE
6089#ifdef __cplusplus
6090}
6091#endif
6092_LT_EOF
6093 # Now try linking the two files.
6094 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
6095 lt_globsym_save_LIBS=$LIBS
6096 lt_globsym_save_CFLAGS=$CFLAGS
8d138742
CE
6097 LIBS="conftstm.$ac_objext"
6098 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 6099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
6100 (eval $ac_link) 2>&5
6101 ac_status=$?
b0322a85
CE
6102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6103 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8d138742
CE
6104 pipe_works=yes
6105 fi
b0322a85
CE
6106 LIBS=$lt_globsym_save_LIBS
6107 CFLAGS=$lt_globsym_save_CFLAGS
8d138742
CE
6108 else
6109 echo "cannot find nm_test_func in $nlist" >&5
6110 fi
6111 else
6112 echo "cannot find nm_test_var in $nlist" >&5
6113 fi
6114 else
6115 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6116 fi
6117 else
6118 echo "$progname: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 fi
6121 rm -rf conftest* conftst*
d9898ee8 6122
8d138742
CE
6123 # Do not use the global_symbol_pipe unless it works.
6124 if test "$pipe_works" = yes; then
6125 break
6126 else
6127 lt_cv_sys_global_symbol_pipe=
6128 fi
6129done
d9898ee8 6130
8d138742 6131fi
d9898ee8 6132
8d138742
CE
6133if test -z "$lt_cv_sys_global_symbol_pipe"; then
6134 lt_cv_sys_global_symbol_to_cdecl=
6135fi
6136if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 6138$as_echo "failed" >&6; }
d9898ee8 6139else
b0322a85 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 6141$as_echo "ok" >&6; }
d9898ee8 6142fi
6143
b0322a85
CE
6144# Response file support.
6145if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6146 nm_file_list_spec='@'
6147elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6148 nm_file_list_spec='@'
6149fi
6150
6151
6152
6153
6154
6155
6156
6157
6158
d9898ee8 6159
d9898ee8 6160
d9898ee8 6161
d9898ee8 6162
d9898ee8 6163
d9898ee8 6164
d9898ee8 6165
d9898ee8 6166
d9898ee8 6167
d9898ee8 6168
6169
d9898ee8 6170
d9898ee8 6171
6172
d9898ee8 6173
6174
d9898ee8 6175
b0322a85
CE
6176
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6178$as_echo_n "checking for sysroot... " >&6; }
6179
6180# Check whether --with-sysroot was given.
6181if test "${with_sysroot+set}" = set; then :
6182 withval=$with_sysroot;
6183else
6184 with_sysroot=no
6185fi
6186
6187
6188lt_sysroot=
6189case ${with_sysroot} in #(
6190 yes)
6191 if test "$GCC" = yes; then
6192 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6193 fi
6194 ;; #(
6195 /*)
6196 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6197 ;; #(
6198 no|'')
6199 ;; #(
6200 *)
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6202$as_echo "${with_sysroot}" >&6; }
6203 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6204 ;;
6205esac
6206
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6208$as_echo "${lt_sysroot:-no}" >&6; }
d9898ee8 6209
d9898ee8 6210
d9898ee8 6211
d9898ee8 6212
d9898ee8 6213
8d138742 6214# Check whether --enable-libtool-lock was given.
b0322a85 6215if test "${enable_libtool_lock+set}" = set; then :
8d138742
CE
6216 enableval=$enable_libtool_lock;
6217fi
d9898ee8 6218
8d138742 6219test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d9898ee8 6220
8d138742
CE
6221# Some flags need to be propagated to the compiler or linker for good
6222# libtool support.
6223case $host in
6224ia64-*-hpux*)
6225 # Find out which ABI we are using.
6226 echo 'int i;' > conftest.$ac_ext
b0322a85 6227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6228 (eval $ac_compile) 2>&5
6229 ac_status=$?
b0322a85
CE
6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231 test $ac_status = 0; }; then
8d138742
CE
6232 case `/usr/bin/file conftest.$ac_objext` in
6233 *ELF-32*)
6234 HPUX_IA64_MODE="32"
6235 ;;
6236 *ELF-64*)
6237 HPUX_IA64_MODE="64"
6238 ;;
6239 esac
6240 fi
6241 rm -rf conftest*
6242 ;;
6243*-*-irix6*)
6244 # Find out which ABI we are using.
b0322a85
CE
6245 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6247 (eval $ac_compile) 2>&5
6248 ac_status=$?
b0322a85
CE
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }; then
8d138742
CE
6251 if test "$lt_cv_prog_gnu_ld" = yes; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6253 *32-bit*)
6254 LD="${LD-ld} -melf32bsmip"
6255 ;;
6256 *N32*)
6257 LD="${LD-ld} -melf32bmipn32"
6258 ;;
6259 *64-bit*)
6260 LD="${LD-ld} -melf64bmip"
6261 ;;
6262 esac
6263 else
6264 case `/usr/bin/file conftest.$ac_objext` in
6265 *32-bit*)
6266 LD="${LD-ld} -32"
6267 ;;
6268 *N32*)
6269 LD="${LD-ld} -n32"
6270 ;;
6271 *64-bit*)
6272 LD="${LD-ld} -64"
6273 ;;
6274 esac
6275 fi
6276 fi
6277 rm -rf conftest*
6278 ;;
d9898ee8 6279
8d138742
CE
6280x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6281s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6282 # Find out which ABI we are using.
6283 echo 'int i;' > conftest.$ac_ext
b0322a85 6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6285 (eval $ac_compile) 2>&5
6286 ac_status=$?
b0322a85
CE
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
8d138742
CE
6289 case `/usr/bin/file conftest.o` in
6290 *32-bit*)
6291 case $host in
6292 x86_64-*kfreebsd*-gnu)
6293 LD="${LD-ld} -m elf_i386_fbsd"
6294 ;;
6295 x86_64-*linux*)
6296 LD="${LD-ld} -m elf_i386"
6297 ;;
6298 ppc64-*linux*|powerpc64-*linux*)
6299 LD="${LD-ld} -m elf32ppclinux"
6300 ;;
6301 s390x-*linux*)
6302 LD="${LD-ld} -m elf_s390"
6303 ;;
6304 sparc64-*linux*)
6305 LD="${LD-ld} -m elf32_sparc"
6306 ;;
6307 esac
6308 ;;
6309 *64-bit*)
6310 case $host in
6311 x86_64-*kfreebsd*-gnu)
6312 LD="${LD-ld} -m elf_x86_64_fbsd"
6313 ;;
6314 x86_64-*linux*)
6315 LD="${LD-ld} -m elf_x86_64"
6316 ;;
6317 ppc*-*linux*|powerpc*-*linux*)
6318 LD="${LD-ld} -m elf64ppc"
6319 ;;
6320 s390*-*linux*|s390*-*tpf*)
6321 LD="${LD-ld} -m elf64_s390"
6322 ;;
6323 sparc*-*linux*)
6324 LD="${LD-ld} -m elf64_sparc"
6325 ;;
6326 esac
6327 ;;
6328 esac
6329 fi
6330 rm -rf conftest*
6331 ;;
d9898ee8 6332
8d138742
CE
6333*-*-sco3.2v5*)
6334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6335 SAVE_CFLAGS="$CFLAGS"
6336 CFLAGS="$CFLAGS -belf"
b0322a85 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 6338$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 6339if ${lt_cv_cc_needs_belf+:} false; then :
8d138742
CE
6340 $as_echo_n "(cached) " >&6
6341else
6342 ac_ext=c
6343ac_cpp='$CPP $CPPFLAGS'
6344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6347
b0322a85 6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 6349/* end confdefs.h. */
d9898ee8 6350
8d138742
CE
6351int
6352main ()
6353{
d9898ee8 6354
8d138742
CE
6355 ;
6356 return 0;
6357}
6358_ACEOF
b0322a85 6359if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
6360 lt_cv_cc_needs_belf=yes
6361else
b0322a85 6362 lt_cv_cc_needs_belf=no
8d138742 6363fi
b0322a85
CE
6364rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
6366 ac_ext=c
6367ac_cpp='$CPP $CPPFLAGS'
6368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6370ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6371
8d138742 6372fi
b0322a85 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742
CE
6374$as_echo "$lt_cv_cc_needs_belf" >&6; }
6375 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6376 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6377 CFLAGS="$SAVE_CFLAGS"
6378 fi
6379 ;;
b0322a85 6380*-*solaris*)
8d138742
CE
6381 # Find out which ABI we are using.
6382 echo 'int i;' > conftest.$ac_ext
b0322a85 6383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6384 (eval $ac_compile) 2>&5
6385 ac_status=$?
b0322a85
CE
6386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387 test $ac_status = 0; }; then
8d138742
CE
6388 case `/usr/bin/file conftest.o` in
6389 *64-bit*)
6390 case $lt_cv_prog_gnu_ld in
b0322a85
CE
6391 yes*)
6392 case $host in
6393 i?86-*-solaris*)
6394 LD="${LD-ld} -m elf_x86_64"
6395 ;;
6396 sparc*-*-solaris*)
6397 LD="${LD-ld} -m elf64_sparc"
6398 ;;
6399 esac
6400 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6401 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6402 LD="${LD-ld}_sol2"
6403 fi
6404 ;;
d9898ee8 6405 *)
8d138742
CE
6406 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6407 LD="${LD-ld} -64"
6408 fi
d9898ee8 6409 ;;
6410 esac
6411 ;;
d9898ee8 6412 esac
8d138742
CE
6413 fi
6414 rm -rf conftest*
6415 ;;
6416esac
d9898ee8 6417
8d138742 6418need_locks="$enable_libtool_lock"
d9898ee8 6419
b0322a85
CE
6420if test -n "$ac_tool_prefix"; then
6421 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6422set dummy ${ac_tool_prefix}mt; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427else
6428 if test -n "$MANIFEST_TOOL"; then
6429 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442done
6443 done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6449if test -n "$MANIFEST_TOOL"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6451$as_echo "$MANIFEST_TOOL" >&6; }
6452else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458fi
6459if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6460 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6461 # Extract the first word of "mt", so it can be a program name with args.
6462set dummy mt; ac_word=$2
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464$as_echo_n "checking for $ac_word... " >&6; }
6465if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467else
6468 if test -n "$ac_ct_MANIFEST_TOOL"; then
6469 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482done
6483 done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6489if test -n "$ac_ct_MANIFEST_TOOL"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6491$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6492else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494$as_echo "no" >&6; }
6495fi
6496
6497 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6498 MANIFEST_TOOL=":"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501yes:)
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504ac_tool_warned=yes ;;
6505esac
6506 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6507 fi
6508else
6509 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6510fi
6511
6512test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6514$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6515if ${lt_cv_path_mainfest_tool+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517else
6518 lt_cv_path_mainfest_tool=no
6519 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6520 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6521 cat conftest.err >&5
6522 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6523 lt_cv_path_mainfest_tool=yes
6524 fi
6525 rm -f conftest*
6526fi
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6528$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6529if test "x$lt_cv_path_mainfest_tool" != xyes; then
6530 MANIFEST_TOOL=:
6531fi
6532
6533
6534
6535
6536
d9898ee8 6537
8d138742
CE
6538 case $host_os in
6539 rhapsody* | darwin*)
6540 if test -n "$ac_tool_prefix"; then
6541 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6542set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6544$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6545if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
6546 $as_echo_n "(cached) " >&6
6547else
6548 if test -n "$DSYMUTIL"; then
6549 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6550else
6551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH
6553do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
b0322a85
CE
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6558 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6560 break 2
6561 fi
6562done
b0322a85 6563 done
8d138742 6564IFS=$as_save_IFS
d9898ee8 6565
8d138742
CE
6566fi
6567fi
6568DSYMUTIL=$ac_cv_prog_DSYMUTIL
6569if test -n "$DSYMUTIL"; then
b0322a85 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742
CE
6571$as_echo "$DSYMUTIL" >&6; }
6572else
b0322a85 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6574$as_echo "no" >&6; }
6575fi
d9898ee8 6576
d9898ee8 6577
8d138742
CE
6578fi
6579if test -z "$ac_cv_prog_DSYMUTIL"; then
6580 ac_ct_DSYMUTIL=$DSYMUTIL
6581 # Extract the first word of "dsymutil", so it can be a program name with args.
6582set dummy dsymutil; ac_word=$2
b0322a85 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6584$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6585if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
6586 $as_echo_n "(cached) " >&6
6587else
6588 if test -n "$ac_ct_DSYMUTIL"; then
6589 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
b0322a85
CE
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6598 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6600 break 2
6601 fi
6602done
b0322a85 6603 done
8d138742 6604IFS=$as_save_IFS
d9898ee8 6605
8d138742
CE
6606fi
6607fi
6608ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6609if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742
CE
6611$as_echo "$ac_ct_DSYMUTIL" >&6; }
6612else
b0322a85 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6614$as_echo "no" >&6; }
6615fi
ac40fd9e 6616
8d138742
CE
6617 if test "x$ac_ct_DSYMUTIL" = x; then
6618 DSYMUTIL=":"
6619 else
6620 case $cross_compiling:$ac_tool_warned in
6621yes:)
b0322a85 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624ac_tool_warned=yes ;;
6625esac
6626 DSYMUTIL=$ac_ct_DSYMUTIL
6627 fi
6628else
6629 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6630fi
d9898ee8 6631
8d138742
CE
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6634set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6636$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6637if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742
CE
6638 $as_echo_n "(cached) " >&6
6639else
6640 if test -n "$NMEDIT"; then
6641 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
b0322a85
CE
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6650 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6652 break 2
6653 fi
6654done
b0322a85 6655 done
8d138742 6656IFS=$as_save_IFS
d9898ee8 6657
8d138742
CE
6658fi
6659fi
6660NMEDIT=$ac_cv_prog_NMEDIT
6661if test -n "$NMEDIT"; then
b0322a85 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742
CE
6663$as_echo "$NMEDIT" >&6; }
6664else
b0322a85 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6666$as_echo "no" >&6; }
6667fi
d9898ee8 6668
d9898ee8 6669
8d138742
CE
6670fi
6671if test -z "$ac_cv_prog_NMEDIT"; then
6672 ac_ct_NMEDIT=$NMEDIT
6673 # Extract the first word of "nmedit", so it can be a program name with args.
6674set dummy nmedit; ac_word=$2
b0322a85 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6676$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6677if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742
CE
6678 $as_echo_n "(cached) " >&6
6679else
6680 if test -n "$ac_ct_NMEDIT"; then
6681 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
b0322a85
CE
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6690 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6692 break 2
6693 fi
6694done
b0322a85 6695 done
8d138742 6696IFS=$as_save_IFS
d9898ee8 6697
8d138742
CE
6698fi
6699fi
6700ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6701if test -n "$ac_ct_NMEDIT"; then
b0322a85 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742
CE
6703$as_echo "$ac_ct_NMEDIT" >&6; }
6704else
b0322a85 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6706$as_echo "no" >&6; }
6707fi
d9898ee8 6708
8d138742
CE
6709 if test "x$ac_ct_NMEDIT" = x; then
6710 NMEDIT=":"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713yes:)
b0322a85 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716ac_tool_warned=yes ;;
6717esac
6718 NMEDIT=$ac_ct_NMEDIT
6719 fi
6720else
6721 NMEDIT="$ac_cv_prog_NMEDIT"
6722fi
d9898ee8 6723
8d138742
CE
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6726set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6728$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6729if ${ac_cv_prog_LIPO+:} false; then :
8d138742
CE
6730 $as_echo_n "(cached) " >&6
6731else
6732 if test -n "$LIPO"; then
6733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
b0322a85
CE
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6742 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6744 break 2
d9898ee8 6745 fi
8d138742 6746done
b0322a85 6747 done
8d138742 6748IFS=$as_save_IFS
d9898ee8 6749
8d138742
CE
6750fi
6751fi
6752LIPO=$ac_cv_prog_LIPO
6753if test -n "$LIPO"; then
b0322a85 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742
CE
6755$as_echo "$LIPO" >&6; }
6756else
b0322a85 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6758$as_echo "no" >&6; }
6759fi
d9898ee8 6760
d9898ee8 6761
8d138742
CE
6762fi
6763if test -z "$ac_cv_prog_LIPO"; then
6764 ac_ct_LIPO=$LIPO
6765 # Extract the first word of "lipo", so it can be a program name with args.
6766set dummy lipo; ac_word=$2
b0322a85 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6768$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6769if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742 6770 $as_echo_n "(cached) " >&6
d9898ee8 6771else
8d138742
CE
6772 if test -n "$ac_ct_LIPO"; then
6773 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
b0322a85
CE
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6782 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6784 break 2
6785 fi
6786done
b0322a85 6787 done
8d138742 6788IFS=$as_save_IFS
d9898ee8 6789
6790fi
8d138742
CE
6791fi
6792ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6793if test -n "$ac_ct_LIPO"; then
b0322a85 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 6795$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6796else
b0322a85 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6798$as_echo "no" >&6; }
d9898ee8 6799fi
6800
8d138742
CE
6801 if test "x$ac_ct_LIPO" = x; then
6802 LIPO=":"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805yes:)
b0322a85 6806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808ac_tool_warned=yes ;;
d9898ee8 6809esac
8d138742
CE
6810 LIPO=$ac_ct_LIPO
6811 fi
6812else
6813 LIPO="$ac_cv_prog_LIPO"
6814fi
d9898ee8 6815
8d138742
CE
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6818set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6820$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6821if ${ac_cv_prog_OTOOL+:} false; then :
8d138742 6822 $as_echo_n "(cached) " >&6
d9898ee8 6823else
8d138742
CE
6824 if test -n "$OTOOL"; then
6825 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
b0322a85
CE
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6834 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6836 break 2
6837 fi
6838done
b0322a85 6839 done
8d138742 6840IFS=$as_save_IFS
d9898ee8 6841
6842fi
8d138742
CE
6843fi
6844OTOOL=$ac_cv_prog_OTOOL
6845if test -n "$OTOOL"; then
b0322a85 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742 6847$as_echo "$OTOOL" >&6; }
d9898ee8 6848else
b0322a85 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6850$as_echo "no" >&6; }
d9898ee8 6851fi
6852
6853
8d138742
CE
6854fi
6855if test -z "$ac_cv_prog_OTOOL"; then
6856 ac_ct_OTOOL=$OTOOL
6857 # Extract the first word of "otool", so it can be a program name with args.
6858set dummy otool; ac_word=$2
b0322a85 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6860$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6861if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742 6862 $as_echo_n "(cached) " >&6
d9898ee8 6863else
8d138742
CE
6864 if test -n "$ac_ct_OTOOL"; then
6865 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
b0322a85
CE
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6874 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6876 break 2
6877 fi
6878done
b0322a85 6879 done
8d138742 6880IFS=$as_save_IFS
d9898ee8 6881
6882fi
8d138742
CE
6883fi
6884ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6885if test -n "$ac_ct_OTOOL"; then
b0322a85 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742
CE
6887$as_echo "$ac_ct_OTOOL" >&6; }
6888else
b0322a85 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6890$as_echo "no" >&6; }
6891fi
d9898ee8 6892
8d138742
CE
6893 if test "x$ac_ct_OTOOL" = x; then
6894 OTOOL=":"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897yes:)
b0322a85 6898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900ac_tool_warned=yes ;;
6901esac
6902 OTOOL=$ac_ct_OTOOL
d9898ee8 6903 fi
6904else
8d138742 6905 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6906fi
6907
8d138742
CE
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6910set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6912$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6913if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742
CE
6914 $as_echo_n "(cached) " >&6
6915else
6916 if test -n "$OTOOL64"; then
6917 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
b0322a85
CE
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6926 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6928 break 2
6929 fi
d9898ee8 6930done
b0322a85 6931 done
8d138742 6932IFS=$as_save_IFS
d9898ee8 6933
8d138742
CE
6934fi
6935fi
6936OTOOL64=$ac_cv_prog_OTOOL64
6937if test -n "$OTOOL64"; then
b0322a85 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742
CE
6939$as_echo "$OTOOL64" >&6; }
6940else
b0322a85 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6942$as_echo "no" >&6; }
6943fi
d9898ee8 6944
d9898ee8 6945
8d138742
CE
6946fi
6947if test -z "$ac_cv_prog_OTOOL64"; then
6948 ac_ct_OTOOL64=$OTOOL64
6949 # Extract the first word of "otool64", so it can be a program name with args.
6950set dummy otool64; ac_word=$2
b0322a85 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6952$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6953if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742
CE
6954 $as_echo_n "(cached) " >&6
6955else
6956 if test -n "$ac_ct_OTOOL64"; then
6957 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
b0322a85
CE
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6966 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6968 break 2
6969 fi
6970done
b0322a85 6971 done
8d138742 6972IFS=$as_save_IFS
d9898ee8 6973
8d138742
CE
6974fi
6975fi
6976ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6977if test -n "$ac_ct_OTOOL64"; then
b0322a85 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742
CE
6979$as_echo "$ac_ct_OTOOL64" >&6; }
6980else
b0322a85 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6982$as_echo "no" >&6; }
6983fi
d9898ee8 6984
8d138742
CE
6985 if test "x$ac_ct_OTOOL64" = x; then
6986 OTOOL64=":"
6987 else
6988 case $cross_compiling:$ac_tool_warned in
6989yes:)
b0322a85 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992ac_tool_warned=yes ;;
6993esac
6994 OTOOL64=$ac_ct_OTOOL64
6995 fi
6996else
6997 OTOOL64="$ac_cv_prog_OTOOL64"
6998fi
d9898ee8 6999
d9898ee8 7000
d9898ee8 7001
d9898ee8 7002
d9898ee8 7003
d9898ee8 7004
d9898ee8 7005
d9898ee8 7006
d9898ee8 7007
d9898ee8 7008
d9898ee8 7009
d9898ee8 7010
d9898ee8 7011
d9898ee8 7012
d9898ee8 7013
d9898ee8 7014
d9898ee8 7015
d9898ee8 7016
d9898ee8 7017
8d138742
CE
7018
7019
7020
7021
7022
7023
7024
7025
b0322a85 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 7027$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 7028if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742
CE
7029 $as_echo_n "(cached) " >&6
7030else
7031 lt_cv_apple_cc_single_mod=no
7032 if test -z "${LT_MULTI_MODULE}"; then
7033 # By default we will add the -single_module flag. You can override
7034 # by either setting the environment variable LT_MULTI_MODULE
7035 # non-empty at configure time, or by adding -multi_module to the
7036 # link flags.
7037 rm -rf libconftest.dylib*
7038 echo "int foo(void){return 1;}" > conftest.c
7039 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7040-dynamiclib -Wl,-single_module conftest.c" >&5
7041 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7042 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7043 _lt_result=$?
b0322a85
CE
7044 # If there is a non-empty error log, and "single_module"
7045 # appears in it, assume the flag caused a linker warning
7046 if test -s conftest.err && $GREP single_module conftest.err; then
7047 cat conftest.err >&5
7048 # Otherwise, if the output was created with a 0 exit code from
7049 # the compiler, it worked.
7050 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8d138742 7051 lt_cv_apple_cc_single_mod=yes
d9898ee8 7052 else
8d138742 7053 cat conftest.err >&5
d9898ee8 7054 fi
8d138742
CE
7055 rm -rf libconftest.dylib*
7056 rm -f conftest.*
d9898ee8 7057 fi
8d138742 7058fi
b0322a85 7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 7060$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 7063$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 7064if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
7065 $as_echo_n "(cached) " >&6
7066else
7067 lt_cv_ld_exported_symbols_list=no
7068 save_LDFLAGS=$LDFLAGS
7069 echo "_main" > conftest.sym
7070 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7072/* end confdefs.h. */
7073
7074int
7075main ()
7076{
7077
7078 ;
7079 return 0;
7080}
7081_ACEOF
b0322a85 7082if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
7083 lt_cv_ld_exported_symbols_list=yes
7084else
b0322a85 7085 lt_cv_ld_exported_symbols_list=no
8d138742 7086fi
b0322a85
CE
7087rm -f core conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
7089 LDFLAGS="$save_LDFLAGS"
7090
7091fi
b0322a85 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 7093$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7096$as_echo_n "checking for -force_load linker flag... " >&6; }
7097if ${lt_cv_ld_force_load+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099else
7100 lt_cv_ld_force_load=no
7101 cat > conftest.c << _LT_EOF
7102int forced_loaded() { return 2;}
7103_LT_EOF
7104 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7105 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7106 echo "$AR cru libconftest.a conftest.o" >&5
7107 $AR cru libconftest.a conftest.o 2>&5
7108 echo "$RANLIB libconftest.a" >&5
7109 $RANLIB libconftest.a 2>&5
7110 cat > conftest.c << _LT_EOF
7111int main() { return 0;}
7112_LT_EOF
7113 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7114 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7115 _lt_result=$?
7116 if test -s conftest.err && $GREP force_load conftest.err; then
7117 cat conftest.err >&5
7118 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7119 lt_cv_ld_force_load=yes
7120 else
7121 cat conftest.err >&5
7122 fi
7123 rm -f conftest.err libconftest.a conftest conftest.c
7124 rm -rf conftest.dSYM
7125
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7128$as_echo "$lt_cv_ld_force_load" >&6; }
8d138742
CE
7129 case $host_os in
7130 rhapsody* | darwin1.[012])
7131 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7132 darwin1.*)
7133 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7134 darwin*) # darwin 5.x on
7135 # if running on 10.5 or later, the deployment target defaults
7136 # to the OS version, if on x86, and 10.4, the deployment
7137 # target defaults to 10.4. Don't you love it?
7138 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7139 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7140 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7141 10.[012]*)
7142 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7143 10.*)
7144 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7145 esac
7146 ;;
7147 esac
7148 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7149 _lt_dar_single_mod='$single_module'
7150 fi
7151 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7152 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7153 else
7154 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7155 fi
b0322a85 7156 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8d138742
CE
7157 _lt_dsymutil='~$DSYMUTIL $lib || :'
7158 else
7159 _lt_dsymutil=
7160 fi
7161 ;;
7162 esac
7163
7164ac_ext=c
7165ac_cpp='$CPP $CPPFLAGS'
7166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742
CE
7170$as_echo_n "checking how to run the C preprocessor... " >&6; }
7171# On Suns, sometimes $CPP names a directory.
7172if test -n "$CPP" && test -d "$CPP"; then
7173 CPP=
7174fi
7175if test -z "$CPP"; then
b0322a85 7176 if ${ac_cv_prog_CPP+:} false; then :
8d138742
CE
7177 $as_echo_n "(cached) " >&6
7178else
7179 # Double quotes because CPP needs to be expanded
7180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7181 do
7182 ac_preproc_ok=false
7183for ac_c_preproc_warn_flag in '' yes
7184do
7185 # Use a header file that comes with gcc, so configuring glibc
7186 # with a fresh cross-compiler works.
7187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 # <limits.h> exists even on freestanding compilers.
7189 # On the NeXT, cc -E runs the code through the compiler's parser,
7190 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7192/* end confdefs.h. */
7193#ifdef __STDC__
7194# include <limits.h>
7195#else
7196# include <assert.h>
7197#endif
7198 Syntax error
7199_ACEOF
b0322a85 7200if ac_fn_c_try_cpp "$LINENO"; then :
8d138742 7201
b0322a85 7202else
8d138742
CE
7203 # Broken: fails on valid input.
7204continue
7205fi
b0322a85 7206rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7207
8d138742
CE
7208 # OK, works on sane cases. Now check whether nonexistent headers
7209 # can be detected and how.
b0322a85 7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7211/* end confdefs.h. */
7212#include <ac_nonexistent.h>
7213_ACEOF
b0322a85 7214if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7215 # Broken: success on invalid input.
7216continue
d9898ee8 7217else
8d138742
CE
7218 # Passes both tests.
7219ac_preproc_ok=:
7220break
d9898ee8 7221fi
b0322a85 7222rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7223
8d138742
CE
7224done
7225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7226rm -f conftest.i conftest.err conftest.$ac_ext
7227if $ac_preproc_ok; then :
8d138742
CE
7228 break
7229fi
d9898ee8 7230
8d138742
CE
7231 done
7232 ac_cv_prog_CPP=$CPP
7233
7234fi
7235 CPP=$ac_cv_prog_CPP
7236else
7237 ac_cv_prog_CPP=$CPP
7238fi
b0322a85 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742
CE
7240$as_echo "$CPP" >&6; }
7241ac_preproc_ok=false
7242for ac_c_preproc_warn_flag in '' yes
7243do
7244 # Use a header file that comes with gcc, so configuring glibc
7245 # with a fresh cross-compiler works.
7246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247 # <limits.h> exists even on freestanding compilers.
7248 # On the NeXT, cc -E runs the code through the compiler's parser,
7249 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7251/* end confdefs.h. */
7252#ifdef __STDC__
7253# include <limits.h>
7254#else
7255# include <assert.h>
7256#endif
7257 Syntax error
7258_ACEOF
b0322a85 7259if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7260
b0322a85 7261else
8d138742
CE
7262 # Broken: fails on valid input.
7263continue
d9898ee8 7264fi
b0322a85 7265rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7266
8d138742
CE
7267 # OK, works on sane cases. Now check whether nonexistent headers
7268 # can be detected and how.
b0322a85 7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7270/* end confdefs.h. */
7271#include <ac_nonexistent.h>
7272_ACEOF
b0322a85 7273if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7274 # Broken: success on invalid input.
7275continue
b0322a85 7276else
8d138742
CE
7277 # Passes both tests.
7278ac_preproc_ok=:
7279break
7280fi
b0322a85 7281rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7282
8d138742
CE
7283done
7284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7285rm -f conftest.i conftest.err conftest.$ac_ext
7286if $ac_preproc_ok; then :
7287
8d138742 7288else
b0322a85 7289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 7290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
7291as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7292See \`config.log' for more details" "$LINENO" 5; }
8d138742 7293fi
d9898ee8 7294
8d138742
CE
7295ac_ext=c
7296ac_cpp='$CPP $CPPFLAGS'
7297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7300
d9898ee8 7301
b0322a85 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 7303$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 7304if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
7305 $as_echo_n "(cached) " >&6
7306else
b0322a85 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7308/* end confdefs.h. */
7309#include <stdlib.h>
7310#include <stdarg.h>
7311#include <string.h>
7312#include <float.h>
d9898ee8 7313
8d138742
CE
7314int
7315main ()
7316{
d9898ee8 7317
8d138742
CE
7318 ;
7319 return 0;
7320}
7321_ACEOF
b0322a85 7322if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
7323 ac_cv_header_stdc=yes
7324else
b0322a85 7325 ac_cv_header_stdc=no
8d138742 7326fi
8d138742 7327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7328
8d138742
CE
7329if test $ac_cv_header_stdc = yes; then
7330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7332/* end confdefs.h. */
7333#include <string.h>
d9898ee8 7334
8d138742
CE
7335_ACEOF
7336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7337 $EGREP "memchr" >/dev/null 2>&1; then :
7338
8d138742
CE
7339else
7340 ac_cv_header_stdc=no
7341fi
7342rm -f conftest*
d9898ee8 7343
8d138742 7344fi
d9898ee8 7345
8d138742
CE
7346if test $ac_cv_header_stdc = yes; then
7347 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7349/* end confdefs.h. */
7350#include <stdlib.h>
d9898ee8 7351
8d138742
CE
7352_ACEOF
7353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7354 $EGREP "free" >/dev/null 2>&1; then :
7355
8d138742
CE
7356else
7357 ac_cv_header_stdc=no
7358fi
7359rm -f conftest*
d9898ee8 7360
8d138742 7361fi
d9898ee8 7362
8d138742
CE
7363if test $ac_cv_header_stdc = yes; then
7364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 7365 if test "$cross_compiling" = yes; then :
8d138742
CE
7366 :
7367else
b0322a85 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7369/* end confdefs.h. */
7370#include <ctype.h>
7371#include <stdlib.h>
7372#if ((' ' & 0x0FF) == 0x020)
7373# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7374# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7375#else
7376# define ISLOWER(c) \
7377 (('a' <= (c) && (c) <= 'i') \
7378 || ('j' <= (c) && (c) <= 'r') \
7379 || ('s' <= (c) && (c) <= 'z'))
7380# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7381#endif
d9898ee8 7382
8d138742
CE
7383#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7384int
7385main ()
7386{
7387 int i;
7388 for (i = 0; i < 256; i++)
7389 if (XOR (islower (i), ISLOWER (i))
7390 || toupper (i) != TOUPPER (i))
7391 return 2;
7392 return 0;
7393}
7394_ACEOF
b0322a85 7395if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 7396
b0322a85
CE
7397else
7398 ac_cv_header_stdc=no
8d138742 7399fi
b0322a85
CE
7400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7401 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 7402fi
d9898ee8 7403
8d138742
CE
7404fi
7405fi
b0322a85 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742
CE
7407$as_echo "$ac_cv_header_stdc" >&6; }
7408if test $ac_cv_header_stdc = yes; then
7409
b0322a85 7410$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 7411
8d138742 7412fi
d9898ee8 7413
8d138742 7414# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8d138742
CE
7415for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7416 inttypes.h stdint.h unistd.h
b0322a85
CE
7417do :
7418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7419ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7420"
7421if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
7422 cat >>confdefs.h <<_ACEOF
7423#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7424_ACEOF
d9898ee8 7425
8d138742 7426fi
d9898ee8 7427
8d138742 7428done
d9898ee8 7429
d9898ee8 7430
8d138742 7431for ac_header in dlfcn.h
b0322a85
CE
7432do :
7433 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7434"
7435if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8d138742 7436 cat >>confdefs.h <<_ACEOF
b0322a85 7437#define HAVE_DLFCN_H 1
8d138742 7438_ACEOF
d9898ee8 7439
8d138742 7440fi
d9898ee8 7441
8d138742 7442done
d9898ee8 7443
d9898ee8 7444
d9898ee8 7445
b0322a85
CE
7446
7447
8d138742 7448# Set options
d9898ee8 7449
d9898ee8 7450
d9898ee8 7451
8d138742 7452 enable_dlopen=no
d9898ee8 7453
d9898ee8 7454
8d138742 7455 enable_win32_dll=no
d9898ee8 7456
d9898ee8 7457
8d138742 7458 # Check whether --enable-shared was given.
b0322a85 7459if test "${enable_shared+set}" = set; then :
8d138742
CE
7460 enableval=$enable_shared; p=${PACKAGE-default}
7461 case $enableval in
7462 yes) enable_shared=yes ;;
7463 no) enable_shared=no ;;
7464 *)
7465 enable_shared=no
7466 # Look at the argument we got. We use all the common list separators.
7467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7468 for pkg in $enableval; do
7469 IFS="$lt_save_ifs"
7470 if test "X$pkg" = "X$p"; then
7471 enable_shared=yes
7472 fi
7473 done
7474 IFS="$lt_save_ifs"
7475 ;;
7476 esac
7477else
7478 enable_shared=yes
7479fi
d9898ee8 7480
d9898ee8 7481
d9898ee8 7482
ac40fd9e 7483
d9898ee8 7484
d9898ee8 7485
d9898ee8 7486
d9898ee8 7487
8d138742
CE
7488
7489 # Check whether --enable-static was given.
b0322a85 7490if test "${enable_static+set}" = set; then :
8d138742
CE
7491 enableval=$enable_static; p=${PACKAGE-default}
7492 case $enableval in
7493 yes) enable_static=yes ;;
7494 no) enable_static=no ;;
7495 *)
7496 enable_static=no
7497 # Look at the argument we got. We use all the common list separators.
7498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7499 for pkg in $enableval; do
7500 IFS="$lt_save_ifs"
7501 if test "X$pkg" = "X$p"; then
7502 enable_static=yes
7503 fi
7504 done
7505 IFS="$lt_save_ifs"
7506 ;;
d9898ee8 7507 esac
8d138742
CE
7508else
7509 enable_static=yes
7510fi
d9898ee8 7511
d9898ee8 7512
d9898ee8 7513
d9898ee8 7514
d9898ee8 7515
8d138742
CE
7516
7517
7518
7519
7520
7521# Check whether --with-pic was given.
b0322a85
CE
7522if test "${with_pic+set}" = set; then :
7523 withval=$with_pic; lt_p=${PACKAGE-default}
7524 case $withval in
7525 yes|no) pic_mode=$withval ;;
7526 *)
7527 pic_mode=default
7528 # Look at the argument we got. We use all the common list separators.
7529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7530 for lt_pkg in $withval; do
7531 IFS="$lt_save_ifs"
7532 if test "X$lt_pkg" = "X$lt_p"; then
7533 pic_mode=yes
7534 fi
7535 done
7536 IFS="$lt_save_ifs"
7537 ;;
7538 esac
d9898ee8 7539else
8d138742 7540 pic_mode=default
d9898ee8 7541fi
d9898ee8 7542
d9898ee8 7543
8d138742 7544test -z "$pic_mode" && pic_mode=default
d9898ee8 7545
8d138742
CE
7546
7547
7548
7549
7550
7551
7552 # Check whether --enable-fast-install was given.
b0322a85 7553if test "${enable_fast_install+set}" = set; then :
8d138742
CE
7554 enableval=$enable_fast_install; p=${PACKAGE-default}
7555 case $enableval in
7556 yes) enable_fast_install=yes ;;
7557 no) enable_fast_install=no ;;
d9898ee8 7558 *)
8d138742
CE
7559 enable_fast_install=no
7560 # Look at the argument we got. We use all the common list separators.
7561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7562 for pkg in $enableval; do
7563 IFS="$lt_save_ifs"
7564 if test "X$pkg" = "X$p"; then
7565 enable_fast_install=yes
7566 fi
7567 done
7568 IFS="$lt_save_ifs"
d9898ee8 7569 ;;
7570 esac
8d138742
CE
7571else
7572 enable_fast_install=yes
7573fi
d9898ee8 7574
d9898ee8 7575
d9898ee8 7576
d9898ee8 7577
d9898ee8 7578
d9898ee8 7579
d9898ee8 7580
d9898ee8 7581
d9898ee8 7582
d9898ee8 7583
d9898ee8 7584
8d138742
CE
7585# This can be used to rebuild libtool when needed
7586LIBTOOL_DEPS="$ltmain"
d9898ee8 7587
8d138742
CE
7588# Always use our own libtool.
7589LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7590
d9898ee8 7591
d9898ee8 7592
d9898ee8 7593
d9898ee8 7594
d9898ee8 7595
d9898ee8 7596
d9898ee8 7597
d9898ee8 7598
d9898ee8 7599
d9898ee8 7600
d9898ee8 7601
d9898ee8 7602
d9898ee8 7603
d9898ee8 7604
d9898ee8 7605
d9898ee8 7606
d9898ee8 7607
d9898ee8 7608
b0322a85
CE
7609
7610
7611
7612
7613
d9898ee8 7614
d9898ee8 7615
d9898ee8 7616
d9898ee8 7617
d9898ee8 7618
d9898ee8 7619
8d138742 7620test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7621
d9898ee8 7622
d9898ee8 7623
d9898ee8 7624
d9898ee8 7625
d9898ee8 7626
d9898ee8 7627
d9898ee8 7628
d9898ee8 7629
d9898ee8 7630
d9898ee8 7631
d9898ee8 7632
d9898ee8 7633
d9898ee8 7634
8d138742
CE
7635if test -n "${ZSH_VERSION+set}" ; then
7636 setopt NO_GLOB_SUBST
7637fi
d9898ee8 7638
b0322a85 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 7640$as_echo_n "checking for objdir... " >&6; }
b0322a85 7641if ${lt_cv_objdir+:} false; then :
8d138742
CE
7642 $as_echo_n "(cached) " >&6
7643else
7644 rm -f .libs 2>/dev/null
7645mkdir .libs 2>/dev/null
7646if test -d .libs; then
7647 lt_cv_objdir=.libs
7648else
7649 # MS-DOS does not allow filenames that begin with a dot.
7650 lt_cv_objdir=_libs
7651fi
7652rmdir .libs 2>/dev/null
7653fi
b0322a85 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
7655$as_echo "$lt_cv_objdir" >&6; }
7656objdir=$lt_cv_objdir
d9898ee8 7657
d9898ee8 7658
d9898ee8 7659
d9898ee8 7660
d9898ee8 7661
8d138742
CE
7662cat >>confdefs.h <<_ACEOF
7663#define LT_OBJDIR "$lt_cv_objdir/"
7664_ACEOF
d9898ee8 7665
d9898ee8 7666
d9898ee8 7667
d9898ee8 7668
8d138742
CE
7669case $host_os in
7670aix3*)
7671 # AIX sometimes has problems with the GCC collect2 program. For some
7672 # reason, if we set the COLLECT_NAMES environment variable, the problems
7673 # vanish in a puff of smoke.
7674 if test "X${COLLECT_NAMES+set}" != Xset; then
7675 COLLECT_NAMES=
7676 export COLLECT_NAMES
7677 fi
7678 ;;
7679esac
d9898ee8 7680
8d138742
CE
7681# Global variables:
7682ofile=libtool
7683can_build_shared=yes
d9898ee8 7684
8d138742
CE
7685# All known linkers require a `.a' archive for static linking (except MSVC,
7686# which needs '.lib').
7687libext=a
d9898ee8 7688
8d138742 7689with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 7690
8d138742
CE
7691old_CC="$CC"
7692old_CFLAGS="$CFLAGS"
d9898ee8 7693
8d138742
CE
7694# Set sane defaults for various variables
7695test -z "$CC" && CC=cc
7696test -z "$LTCC" && LTCC=$CC
7697test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7698test -z "$LD" && LD=ld
7699test -z "$ac_objext" && ac_objext=o
d9898ee8 7700
8d138742
CE
7701for cc_temp in $compiler""; do
7702 case $cc_temp in
7703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7705 \-*) ;;
7706 *) break;;
7707 esac
7708done
b0322a85 7709cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d9898ee8 7710
d9898ee8 7711
8d138742
CE
7712# Only perform the check for file, if the check method requires it
7713test -z "$MAGIC_CMD" && MAGIC_CMD=file
7714case $deplibs_check_method in
7715file_magic*)
7716 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 7718$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 7719if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
7720 $as_echo_n "(cached) " >&6
7721else
7722 case $MAGIC_CMD in
7723[\\/*] | ?:[\\/]*)
7724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7725 ;;
7726*)
7727 lt_save_MAGIC_CMD="$MAGIC_CMD"
7728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7730 for ac_dir in $ac_dummy; do
7731 IFS="$lt_save_ifs"
7732 test -z "$ac_dir" && ac_dir=.
7733 if test -f $ac_dir/${ac_tool_prefix}file; then
7734 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7735 if test -n "$file_magic_test_file"; then
7736 case $deplibs_check_method in
7737 "file_magic "*)
7738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7741 $EGREP "$file_magic_regex" > /dev/null; then
7742 :
7743 else
7744 cat <<_LT_EOF 1>&2
d9898ee8 7745
8d138742
CE
7746*** Warning: the command libtool uses to detect shared libraries,
7747*** $file_magic_cmd, produces output that libtool cannot recognize.
7748*** The result is that libtool may fail to recognize shared libraries
7749*** as such. This will affect the creation of libtool libraries that
7750*** depend on shared libraries, but programs linked with such libtool
7751*** libraries will work regardless of this problem. Nevertheless, you
7752*** may want to report the problem to your system manager and/or to
7753*** bug-libtool@gnu.org
d9898ee8 7754
8d138742
CE
7755_LT_EOF
7756 fi ;;
7757 esac
7758 fi
7759 break
7760 fi
7761 done
7762 IFS="$lt_save_ifs"
7763 MAGIC_CMD="$lt_save_MAGIC_CMD"
7764 ;;
7765esac
7766fi
d9898ee8 7767
8d138742
CE
7768MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7769if test -n "$MAGIC_CMD"; then
b0322a85 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
7771$as_echo "$MAGIC_CMD" >&6; }
7772else
b0322a85 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7774$as_echo "no" >&6; }
7775fi
d9898ee8 7776
d9898ee8 7777
d9898ee8 7778
d9898ee8 7779
d9898ee8 7780
8d138742
CE
7781if test -z "$lt_cv_path_MAGIC_CMD"; then
7782 if test -n "$ac_tool_prefix"; then
b0322a85 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 7784$as_echo_n "checking for file... " >&6; }
b0322a85 7785if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
7786 $as_echo_n "(cached) " >&6
7787else
7788 case $MAGIC_CMD in
7789[\\/*] | ?:[\\/]*)
7790 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7791 ;;
7792*)
7793 lt_save_MAGIC_CMD="$MAGIC_CMD"
7794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7795 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7796 for ac_dir in $ac_dummy; do
7797 IFS="$lt_save_ifs"
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f $ac_dir/file; then
7800 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7801 if test -n "$file_magic_test_file"; then
7802 case $deplibs_check_method in
7803 "file_magic "*)
7804 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7806 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7807 $EGREP "$file_magic_regex" > /dev/null; then
7808 :
7809 else
7810 cat <<_LT_EOF 1>&2
d9898ee8 7811
8d138742
CE
7812*** Warning: the command libtool uses to detect shared libraries,
7813*** $file_magic_cmd, produces output that libtool cannot recognize.
7814*** The result is that libtool may fail to recognize shared libraries
7815*** as such. This will affect the creation of libtool libraries that
7816*** depend on shared libraries, but programs linked with such libtool
7817*** libraries will work regardless of this problem. Nevertheless, you
7818*** may want to report the problem to your system manager and/or to
7819*** bug-libtool@gnu.org
d9898ee8 7820
8d138742
CE
7821_LT_EOF
7822 fi ;;
7823 esac
7824 fi
7825 break
7826 fi
7827 done
7828 IFS="$lt_save_ifs"
7829 MAGIC_CMD="$lt_save_MAGIC_CMD"
7830 ;;
7831esac
7832fi
d9898ee8 7833
8d138742
CE
7834MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7835if test -n "$MAGIC_CMD"; then
b0322a85 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 7837$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7838else
b0322a85 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7840$as_echo "no" >&6; }
7841fi
7842
7843
7844 else
7845 MAGIC_CMD=:
d9898ee8 7846 fi
7847fi
7848
8d138742
CE
7849 fi
7850 ;;
7851esac
7852
7853# Use C for the default configuration in the libtool script
d9898ee8 7854
8d138742 7855lt_save_CC="$CC"
d9898ee8 7856ac_ext=c
7857ac_cpp='$CPP $CPPFLAGS'
7858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861
d9898ee8 7862
8d138742
CE
7863# Source file extension for C test sources.
7864ac_ext=c
d9898ee8 7865
8d138742 7866# Object file extension for compiled C test sources.
d9898ee8 7867objext=o
8d138742 7868objext=$objext
d9898ee8 7869
7870# Code to be used in simple compile tests
8d138742 7871lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7872
7873# Code to be used in simple link tests
8d138742
CE
7874lt_simple_link_test_code='int main(){return(0);}'
7875
7876
7877
7878
7879
d9898ee8 7880
d9898ee8 7881
7882# If no C compiler was specified, use CC.
7883LTCC=${LTCC-"$CC"}
7884
7885# If no C compiler flags were specified, use CFLAGS.
7886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7887
7888# Allow CC to be a program name with arguments.
7889compiler=$CC
7890
8d138742
CE
7891# Save the default compiler, since it gets overwritten when the other
7892# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7893compiler_DEFAULT=$CC
d9898ee8 7894
7895# save warnings/boilerplate of simple test code
7896ac_outfile=conftest.$ac_objext
ac40fd9e 7897echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7898eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7899_lt_compiler_boilerplate=`cat conftest.err`
8d138742 7900$RM conftest*
d9898ee8 7901
7902ac_outfile=conftest.$ac_objext
ac40fd9e 7903echo "$lt_simple_link_test_code" >conftest.$ac_ext
8d138742
CE
7904eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7905_lt_linker_boilerplate=`cat conftest.err`
7906$RM -r conftest*
d9898ee8 7907
d9898ee8 7908
8d138742 7909if test -n "$compiler"; then
d9898ee8 7910
8d138742 7911lt_prog_compiler_no_builtin_flag=
d9898ee8 7912
7913if test "$GCC" = yes; then
b0322a85
CE
7914 case $cc_basename in
7915 nvcc*)
7916 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7917 *)
7918 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7919 esac
d9898ee8 7920
b0322a85 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 7922$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 7923if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742 7924 $as_echo_n "(cached) " >&6
d9898ee8 7925else
7926 lt_cv_prog_compiler_rtti_exceptions=no
8d138742 7927 ac_outfile=conftest.$ac_objext
ac40fd9e 7928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7929 lt_compiler_flag="-fno-rtti -fno-exceptions"
7930 # Insert the option either (1) after the last *FLAGS variable, or
7931 # (2) before a word containing "conftest.", or (3) at the end.
7932 # Note that $ac_compile itself does not contain backslashes and begins
7933 # with a dollar sign (not a hyphen), so the echo should work correctly.
7934 # The option is referenced via a variable to avoid confusing sed.
7935 lt_compile=`echo "$ac_compile" | $SED \
7936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7938 -e 's:$: $lt_compiler_flag:'`
b0322a85 7939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d9898ee8 7940 (eval "$lt_compile" 2>conftest.err)
7941 ac_status=$?
7942 cat conftest.err >&5
b0322a85 7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 7944 if (exit $ac_status) && test -s "$ac_outfile"; then
7945 # The compiler can only warn and ignore the option if not recognized
7946 # So say no if there are warnings other than the usual output.
b0322a85 7947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d9898ee8 7948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7949 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7950 lt_cv_prog_compiler_rtti_exceptions=yes
7951 fi
7952 fi
8d138742 7953 $RM conftest*
d9898ee8 7954
7955fi
b0322a85 7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 7957$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7958
7959if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8d138742 7960 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 7961else
7962 :
7963fi
7964
7965fi
7966
d9898ee8 7967
8d138742
CE
7968
7969
7970
7971
7972 lt_prog_compiler_wl=
7973lt_prog_compiler_pic=
7974lt_prog_compiler_static=
7975
d9898ee8 7976
7977 if test "$GCC" = yes; then
8d138742
CE
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_static='-static'
d9898ee8 7980
7981 case $host_os in
7982 aix*)
7983 # All AIX code is PIC.
7984 if test "$host_cpu" = ia64; then
7985 # AIX 5 now supports IA64 processor
8d138742 7986 lt_prog_compiler_static='-Bstatic'
d9898ee8 7987 fi
7988 ;;
7989
7990 amigaos*)
8d138742
CE
7991 case $host_cpu in
7992 powerpc)
7993 # see comment about AmigaOS4 .so support
7994 lt_prog_compiler_pic='-fPIC'
7995 ;;
7996 m68k)
7997 # FIXME: we need at least 68020 code to build shared libraries, but
7998 # adding the `-m68020' flag to GCC prevents building anything better,
7999 # like `-m68040'.
8000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8001 ;;
8002 esac
d9898ee8 8003 ;;
8004
ac40fd9e 8005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 8006 # PIC is the default for these OSes.
8007 ;;
8008
8d138742 8009 mingw* | cygwin* | pw32* | os2* | cegcc*)
d9898ee8 8010 # This hack is so that the source file can tell whether it is being
8011 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 8012 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8013 # (--disable-auto-import) libraries
8d138742 8014 lt_prog_compiler_pic='-DDLL_EXPORT'
d9898ee8 8015 ;;
8016
8017 darwin* | rhapsody*)
8018 # PIC is the default on this platform
8019 # Common symbols not allowed in MH_DYLIB files
8d138742
CE
8020 lt_prog_compiler_pic='-fno-common'
8021 ;;
8022
b0322a85
CE
8023 haiku*)
8024 # PIC is the default for Haiku.
8025 # The "-static" flag exists, but is broken.
8026 lt_prog_compiler_static=
8027 ;;
8028
8d138742
CE
8029 hpux*)
8030 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8031 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8032 # sets the default TLS model and affects inlining.
8033 case $host_cpu in
8034 hppa*64*)
8035 # +Z the default
8036 ;;
8037 *)
8038 lt_prog_compiler_pic='-fPIC'
8039 ;;
8040 esac
d9898ee8 8041 ;;
8042
ac40fd9e 8043 interix[3-9]*)
d9898ee8 8044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8045 # Instead, we relocate shared libraries at runtime.
8046 ;;
8047
8048 msdosdjgpp*)
8049 # Just because we use GCC doesn't mean we suddenly get shared libraries
8050 # on systems that don't support them.
8d138742 8051 lt_prog_compiler_can_build_shared=no
d9898ee8 8052 enable_shared=no
8053 ;;
8054
8d138742
CE
8055 *nto* | *qnx*)
8056 # QNX uses GNU C++, but need to define -shared option too, otherwise
8057 # it will coredump.
8058 lt_prog_compiler_pic='-fPIC -shared'
8059 ;;
8060
d9898ee8 8061 sysv4*MP*)
8062 if test -d /usr/nec; then
8d138742 8063 lt_prog_compiler_pic=-Kconform_pic
d9898ee8 8064 fi
8065 ;;
8066
d9898ee8 8067 *)
8d138742 8068 lt_prog_compiler_pic='-fPIC'
d9898ee8 8069 ;;
8070 esac
b0322a85
CE
8071
8072 case $cc_basename in
8073 nvcc*) # Cuda Compiler Driver 2.2
8074 lt_prog_compiler_wl='-Xlinker '
8075 if test -n "$lt_prog_compiler_pic"; then
8076 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8077 fi
8078 ;;
8079 esac
d9898ee8 8080 else
8081 # PORTME Check for flag to pass linker flags through the system compiler.
8082 case $host_os in
8083 aix*)
8d138742 8084 lt_prog_compiler_wl='-Wl,'
d9898ee8 8085 if test "$host_cpu" = ia64; then
8086 # AIX 5 now supports IA64 processor
8d138742 8087 lt_prog_compiler_static='-Bstatic'
d9898ee8 8088 else
8d138742 8089 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d9898ee8 8090 fi
8091 ;;
d9898ee8 8092
8d138742 8093 mingw* | cygwin* | pw32* | os2* | cegcc*)
d9898ee8 8094 # This hack is so that the source file can tell whether it is being
8095 # built for inclusion in a dll (and should export symbols for example).
8d138742 8096 lt_prog_compiler_pic='-DDLL_EXPORT'
d9898ee8 8097 ;;
8098
8099 hpux9* | hpux10* | hpux11*)
8d138742 8100 lt_prog_compiler_wl='-Wl,'
d9898ee8 8101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8102 # not for PA HP-UX.
8103 case $host_cpu in
8104 hppa*64*|ia64*)
8105 # +Z the default
8106 ;;
8107 *)
8d138742 8108 lt_prog_compiler_pic='+Z'
d9898ee8 8109 ;;
8110 esac
8111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8d138742 8112 lt_prog_compiler_static='${wl}-a ${wl}archive'
d9898ee8 8113 ;;
8114
8115 irix5* | irix6* | nonstopux*)
8d138742 8116 lt_prog_compiler_wl='-Wl,'
d9898ee8 8117 # PIC (with -KPIC) is the default.
8d138742 8118 lt_prog_compiler_static='-non_shared'
d9898ee8 8119 ;;
8120
b0322a85 8121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d9898ee8 8122 case $cc_basename in
8d138742
CE
8123 # old Intel for x86_64 which still supported -KPIC.
8124 ecc*)
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-static'
8128 ;;
8129 # icc used to be incompatible with GCC.
8130 # ICC 10 doesn't accept -KPIC any more.
8131 icc* | ifort*)
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-fPIC'
8134 lt_prog_compiler_static='-static'
d9898ee8 8135 ;;
8d138742
CE
8136 # Lahey Fortran 8.1.
8137 lf95*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_pic='--shared'
8140 lt_prog_compiler_static='--static'
8141 ;;
b0322a85
CE
8142 nagfor*)
8143 # NAG Fortran compiler
8144 lt_prog_compiler_wl='-Wl,-Wl,,'
8145 lt_prog_compiler_pic='-PIC'
8146 lt_prog_compiler_static='-Bstatic'
8147 ;;
8148 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d9898ee8 8149 # Portland Group compilers (*not* the Pentium gcc compiler,
8150 # which looks to be a dead project)
8d138742
CE
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-fpic'
8153 lt_prog_compiler_static='-Bstatic'
d9898ee8 8154 ;;
8155 ccc*)
8d138742 8156 lt_prog_compiler_wl='-Wl,'
d9898ee8 8157 # All Alpha code is PIC.
8d138742 8158 lt_prog_compiler_static='-non_shared'
d9898ee8 8159 ;;
b0322a85
CE
8160 xl* | bgxl* | bgf* | mpixl*)
8161 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_pic='-qpic'
8164 lt_prog_compiler_static='-qstaticlink'
8165 ;;
ac40fd9e 8166 *)
8d138742 8167 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
8168 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8170 lt_prog_compiler_pic='-KPIC'
8171 lt_prog_compiler_static='-Bstatic'
8172 lt_prog_compiler_wl=''
8173 ;;
8174 *Sun\ F* | *Sun*Fortran*)
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 lt_prog_compiler_wl='-Qoption ld '
8178 ;;
ac40fd9e 8179 *Sun\ C*)
8180 # Sun C 5.9
8d138742
CE
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_wl='-Wl,'
ac40fd9e 8184 ;;
b0322a85
CE
8185 *Intel*\ [CF]*Compiler*)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='-fPIC'
8188 lt_prog_compiler_static='-static'
8189 ;;
8190 *Portland\ Group*)
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='-fpic'
8d138742 8193 lt_prog_compiler_static='-Bstatic'
ac40fd9e 8194 ;;
8195 esac
8196 ;;
d9898ee8 8197 esac
8198 ;;
8199
8d138742
CE
8200 newsos6)
8201 lt_prog_compiler_pic='-KPIC'
8202 lt_prog_compiler_static='-Bstatic'
8203 ;;
8204
8205 *nto* | *qnx*)
8206 # QNX uses GNU C++, but need to define -shared option too, otherwise
8207 # it will coredump.
8208 lt_prog_compiler_pic='-fPIC -shared'
8209 ;;
8210
d9898ee8 8211 osf3* | osf4* | osf5*)
8d138742 8212 lt_prog_compiler_wl='-Wl,'
d9898ee8 8213 # All OSF/1 code is PIC.
8d138742 8214 lt_prog_compiler_static='-non_shared'
d9898ee8 8215 ;;
8216
ac40fd9e 8217 rdos*)
8d138742 8218 lt_prog_compiler_static='-non_shared'
ac40fd9e 8219 ;;
8220
d9898ee8 8221 solaris*)
8d138742
CE
8222 lt_prog_compiler_pic='-KPIC'
8223 lt_prog_compiler_static='-Bstatic'
d9898ee8 8224 case $cc_basename in
b0322a85 8225 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742 8226 lt_prog_compiler_wl='-Qoption ld ';;
d9898ee8 8227 *)
8d138742 8228 lt_prog_compiler_wl='-Wl,';;
d9898ee8 8229 esac
8230 ;;
8231
8232 sunos4*)
8d138742
CE
8233 lt_prog_compiler_wl='-Qoption ld '
8234 lt_prog_compiler_pic='-PIC'
8235 lt_prog_compiler_static='-Bstatic'
d9898ee8 8236 ;;
8237
8238 sysv4 | sysv4.2uw2* | sysv4.3*)
8d138742
CE
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_pic='-KPIC'
8241 lt_prog_compiler_static='-Bstatic'
d9898ee8 8242 ;;
8243
8244 sysv4*MP*)
8245 if test -d /usr/nec ;then
8d138742
CE
8246 lt_prog_compiler_pic='-Kconform_pic'
8247 lt_prog_compiler_static='-Bstatic'
d9898ee8 8248 fi
8249 ;;
8250
8251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8d138742
CE
8252 lt_prog_compiler_wl='-Wl,'
8253 lt_prog_compiler_pic='-KPIC'
8254 lt_prog_compiler_static='-Bstatic'
d9898ee8 8255 ;;
8256
8257 unicos*)
8d138742
CE
8258 lt_prog_compiler_wl='-Wl,'
8259 lt_prog_compiler_can_build_shared=no
d9898ee8 8260 ;;
8261
8262 uts4*)
8d138742
CE
8263 lt_prog_compiler_pic='-pic'
8264 lt_prog_compiler_static='-Bstatic'
d9898ee8 8265 ;;
8266
8267 *)
8d138742 8268 lt_prog_compiler_can_build_shared=no
d9898ee8 8269 ;;
8270 esac
8271 fi
8272
8d138742
CE
8273case $host_os in
8274 # For platforms which do not support PIC, -DPIC is meaningless:
8275 *djgpp*)
8276 lt_prog_compiler_pic=
8277 ;;
8278 *)
8279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8280 ;;
8281esac
8d138742 8282
b0322a85
CE
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8284$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8285if ${lt_cv_prog_compiler_pic+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287else
8288 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8289fi
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8291$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8292lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 8293
8294#
8295# Check to make sure the PIC flag actually works.
8296#
8d138742 8297if test -n "$lt_prog_compiler_pic"; then
b0322a85 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 8299$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 8300if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742 8301 $as_echo_n "(cached) " >&6
d9898ee8 8302else
8d138742
CE
8303 lt_cv_prog_compiler_pic_works=no
8304 ac_outfile=conftest.$ac_objext
ac40fd9e 8305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8d138742 8306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
d9898ee8 8307 # Insert the option either (1) after the last *FLAGS variable, or
8308 # (2) before a word containing "conftest.", or (3) at the end.
8309 # Note that $ac_compile itself does not contain backslashes and begins
8310 # with a dollar sign (not a hyphen), so the echo should work correctly.
8311 # The option is referenced via a variable to avoid confusing sed.
8312 lt_compile=`echo "$ac_compile" | $SED \
8313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315 -e 's:$: $lt_compiler_flag:'`
b0322a85 8316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d9898ee8 8317 (eval "$lt_compile" 2>conftest.err)
8318 ac_status=$?
8319 cat conftest.err >&5
b0322a85 8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 8321 if (exit $ac_status) && test -s "$ac_outfile"; then
8322 # The compiler can only warn and ignore the option if not recognized
8323 # So say no if there are warnings other than the usual output.
b0322a85 8324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d9898ee8 8325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8d138742 8327 lt_cv_prog_compiler_pic_works=yes
d9898ee8 8328 fi
8329 fi
8d138742 8330 $RM conftest*
d9898ee8 8331
8332fi
b0322a85 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 8334$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8335
8d138742
CE
8336if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8337 case $lt_prog_compiler_pic in
d9898ee8 8338 "" | " "*) ;;
8d138742 8339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
d9898ee8 8340 esac
8341else
8d138742
CE
8342 lt_prog_compiler_pic=
8343 lt_prog_compiler_can_build_shared=no
d9898ee8 8344fi
8345
8346fi
8d138742
CE
8347
8348
8349
8350
8351
d9898ee8 8352
b0322a85
CE
8353
8354
8355
8356
8357
d9898ee8 8358#
8359# Check to make sure the static flag actually works.
8360#
8d138742 8361wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 8363$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 8364if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742 8365 $as_echo_n "(cached) " >&6
d9898ee8 8366else
8d138742 8367 lt_cv_prog_compiler_static_works=no
d9898ee8 8368 save_LDFLAGS="$LDFLAGS"
8369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 8370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 8371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8372 # The linker can only warn and ignore the option if not recognized
8373 # So say no if there are warnings
8374 if test -s conftest.err; then
8375 # Append any errors to the config.log.
8376 cat conftest.err 1>&5
b0322a85 8377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d9898ee8 8378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379 if diff conftest.exp conftest.er2 >/dev/null; then
8d138742 8380 lt_cv_prog_compiler_static_works=yes
d9898ee8 8381 fi
8382 else
8d138742 8383 lt_cv_prog_compiler_static_works=yes
d9898ee8 8384 fi
8385 fi
8d138742 8386 $RM -r conftest*
d9898ee8 8387 LDFLAGS="$save_LDFLAGS"
8388
8389fi
b0322a85 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 8391$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 8392
8d138742 8393if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d9898ee8 8394 :
8395else
8d138742
CE
8396 lt_prog_compiler_static=
8397fi
8398
8399
8400
8401
8402
8403
8404
b0322a85 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8406$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8407if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8408 $as_echo_n "(cached) " >&6
8409else
8410 lt_cv_prog_compiler_c_o=no
8411 $RM -r conftest 2>/dev/null
8412 mkdir conftest
8413 cd conftest
8414 mkdir out
8415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416
8417 lt_compiler_flag="-o out/conftest2.$ac_objext"
8418 # Insert the option either (1) after the last *FLAGS variable, or
8419 # (2) before a word containing "conftest.", or (3) at the end.
8420 # Note that $ac_compile itself does not contain backslashes and begins
8421 # with a dollar sign (not a hyphen), so the echo should work correctly.
8422 lt_compile=`echo "$ac_compile" | $SED \
8423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8425 -e 's:$: $lt_compiler_flag:'`
b0322a85 8426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8427 (eval "$lt_compile" 2>out/conftest.err)
8428 ac_status=$?
8429 cat out/conftest.err >&5
b0322a85 8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8432 then
8433 # The compiler can only warn and ignore the option if not recognized
8434 # So say no if there are warnings
b0322a85 8435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8438 lt_cv_prog_compiler_c_o=yes
8439 fi
8440 fi
8441 chmod u+w . 2>&5
8442 $RM conftest*
8443 # SGI C++ compiler will create directory out/ii_files/ for
8444 # template instantiation
8445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8446 $RM out/* && rmdir out
8447 cd ..
8448 $RM -r conftest
8449 $RM conftest*
8450
d9898ee8 8451fi
b0322a85 8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8453$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8454
8455
8d138742
CE
8456
8457
8458
8459
b0322a85 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8461$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8462if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742 8463 $as_echo_n "(cached) " >&6
d9898ee8 8464else
8d138742
CE
8465 lt_cv_prog_compiler_c_o=no
8466 $RM -r conftest 2>/dev/null
d9898ee8 8467 mkdir conftest
8468 cd conftest
8469 mkdir out
ac40fd9e 8470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8471
8472 lt_compiler_flag="-o out/conftest2.$ac_objext"
8473 # Insert the option either (1) after the last *FLAGS variable, or
8474 # (2) before a word containing "conftest.", or (3) at the end.
8475 # Note that $ac_compile itself does not contain backslashes and begins
8476 # with a dollar sign (not a hyphen), so the echo should work correctly.
8477 lt_compile=`echo "$ac_compile" | $SED \
8478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8480 -e 's:$: $lt_compiler_flag:'`
b0322a85 8481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d9898ee8 8482 (eval "$lt_compile" 2>out/conftest.err)
8483 ac_status=$?
8484 cat out/conftest.err >&5
b0322a85 8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 8486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8487 then
8488 # The compiler can only warn and ignore the option if not recognized
8489 # So say no if there are warnings
b0322a85 8490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d9898ee8 8491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8d138742 8493 lt_cv_prog_compiler_c_o=yes
d9898ee8 8494 fi
8495 fi
8496 chmod u+w . 2>&5
8d138742 8497 $RM conftest*
d9898ee8 8498 # SGI C++ compiler will create directory out/ii_files/ for
8499 # template instantiation
8d138742
CE
8500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8501 $RM out/* && rmdir out
d9898ee8 8502 cd ..
8d138742
CE
8503 $RM -r conftest
8504 $RM conftest*
d9898ee8 8505
8506fi
b0322a85 8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742
CE
8508$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8509
8510
d9898ee8 8511
8512
8513hard_links="nottested"
8d138742 8514if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
d9898ee8 8515 # do not overwrite the value of need_locks provided by the user
b0322a85 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742 8517$as_echo_n "checking if we can lock with hard links... " >&6; }
d9898ee8 8518 hard_links=yes
8d138742 8519 $RM conftest*
d9898ee8 8520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8521 touch conftest.a
8522 ln conftest.a conftest.b 2>&5 || hard_links=no
8523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742 8525$as_echo "$hard_links" >&6; }
d9898ee8 8526 if test "$hard_links" = no; then
b0322a85 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8d138742 8528$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d9898ee8 8529 need_locks=warn
8530 fi
8531else
8532 need_locks=no
8533fi
8534
8d138742
CE
8535
8536
8537
8538
8539
b0322a85 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 8541$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8542
8543 runpath_var=
8d138742
CE
8544 allow_undefined_flag=
8545 always_export_symbols=no
8546 archive_cmds=
8547 archive_expsym_cmds=
8548 compiler_needs_object=no
8549 enable_shared_with_static_runtimes=no
8550 export_dynamic_flag_spec=
8551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8552 hardcode_automatic=no
8553 hardcode_direct=no
8554 hardcode_direct_absolute=no
8555 hardcode_libdir_flag_spec=
8d138742
CE
8556 hardcode_libdir_separator=
8557 hardcode_minus_L=no
8558 hardcode_shlibpath_var=unsupported
8559 inherit_rpath=no
8560 link_all_deplibs=unknown
8561 module_cmds=
8562 module_expsym_cmds=
8563 old_archive_from_new_cmds=
8564 old_archive_from_expsyms_cmds=
8565 thread_safe_flag_spec=
8566 whole_archive_flag_spec=
d9898ee8 8567 # include_expsyms should be a list of space-separated symbols to be *always*
8568 # included in the symbol list
8d138742 8569 include_expsyms=
d9898ee8 8570 # exclude_expsyms can be an extended regexp of symbols to exclude
8571 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8573 # as well as any symbol that contains `d'.
8d138742 8574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d9898ee8 8575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8576 # platforms (ab)use it in PIC code, but their linkers get confused if
8577 # the symbol is explicitly referenced. Since portable code cannot
8578 # rely on this symbol name, it's probably fine to never include it in
8579 # preloaded symbol tables.
8d138742 8580 # Exclude shared library initialization/finalization symbols.
d9898ee8 8581 extract_expsyms_cmds=
d9898ee8 8582
8583 case $host_os in
8d138742 8584 cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 8585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8586 # When not using gcc, we currently assume that we are using
8587 # Microsoft Visual C++.
8588 if test "$GCC" != yes; then
8589 with_gnu_ld=no
8590 fi
8591 ;;
8592 interix*)
8593 # we just hope/assume this is gcc and not c89 (= MSVC++)
8594 with_gnu_ld=yes
8595 ;;
8596 openbsd*)
8597 with_gnu_ld=no
8598 ;;
8599 esac
8600
8d138742 8601 ld_shlibs=yes
b0322a85
CE
8602
8603 # On some targets, GNU ld is compatible enough with the native linker
8604 # that we're better off using the native interface for both.
8605 lt_use_gnu_ld_interface=no
d9898ee8 8606 if test "$with_gnu_ld" = yes; then
b0322a85
CE
8607 case $host_os in
8608 aix*)
8609 # The AIX port of GNU ld has always aspired to compatibility
8610 # with the native linker. However, as the warning in the GNU ld
8611 # block says, versions before 2.19.5* couldn't really create working
8612 # shared libraries, regardless of the interface used.
8613 case `$LD -v 2>&1` in
8614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8615 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8616 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8617 *)
8618 lt_use_gnu_ld_interface=yes
8619 ;;
8620 esac
8621 ;;
8622 *)
8623 lt_use_gnu_ld_interface=yes
8624 ;;
8625 esac
8626 fi
8627
8628 if test "$lt_use_gnu_ld_interface" = yes; then
d9898ee8 8629 # If archive_cmds runs LD, not CC, wlarc should be empty
8630 wlarc='${wl}'
8631
8632 # Set some defaults for GNU ld with shared library support. These
8633 # are reset later if shared libraries are not supported. Putting them
8634 # here allows them to be overridden if necessary.
8635 runpath_var=LD_RUN_PATH
8d138742
CE
8636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8637 export_dynamic_flag_spec='${wl}--export-dynamic'
d9898ee8 8638 # ancient GNU ld didn't support --whole-archive et. al.
8d138742
CE
8639 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8640 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8641 else
8642 whole_archive_flag_spec=
d9898ee8 8643 fi
8644 supports_anon_versioning=no
8d138742 8645 case `$LD -v 2>&1` in
b0322a85 8646 *GNU\ gold*) supports_anon_versioning=yes ;;
d9898ee8 8647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8650 *\ 2.11.*) ;; # other 2.11 versions
8651 *) supports_anon_versioning=yes ;;
8652 esac
8653
8654 # See if GNU ld supports shared libraries.
8655 case $host_os in
8d138742 8656 aix[3-9]*)
d9898ee8 8657 # On AIX/PPC, the GNU linker is very broken
8658 if test "$host_cpu" != ia64; then
8d138742
CE
8659 ld_shlibs=no
8660 cat <<_LT_EOF 1>&2
d9898ee8 8661
b0322a85 8662*** Warning: the GNU linker, at least up to release 2.19, is reported
d9898ee8 8663*** to be unable to reliably create shared libraries on AIX.
8664*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
8665*** really care for shared libraries, you may want to install binutils
8666*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8667*** You will then need to restart the configuration process.
d9898ee8 8668
8d138742 8669_LT_EOF
d9898ee8 8670 fi
8671 ;;
8672
8673 amigaos*)
8d138742
CE
8674 case $host_cpu in
8675 powerpc)
8676 # see comment about AmigaOS4 .so support
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678 archive_expsym_cmds=''
8679 ;;
8680 m68k)
8681 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)'
8682 hardcode_libdir_flag_spec='-L$libdir'
8683 hardcode_minus_L=yes
8684 ;;
8685 esac
d9898ee8 8686 ;;
8687
8688 beos*)
8d138742
CE
8689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8690 allow_undefined_flag=unsupported
d9898ee8 8691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8692 # support --undefined. This deserves some investigation. FIXME
8d138742 8693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8694 else
8d138742 8695 ld_shlibs=no
d9898ee8 8696 fi
8697 ;;
8698
8d138742
CE
8699 cygwin* | mingw* | pw32* | cegcc*)
8700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8701 # as there is no search path for DLLs.
8702 hardcode_libdir_flag_spec='-L$libdir'
b0322a85 8703 export_dynamic_flag_spec='${wl}--export-all-symbols'
8d138742
CE
8704 allow_undefined_flag=unsupported
8705 always_export_symbols=no
8706 enable_shared_with_static_runtimes=yes
b0322a85
CE
8707 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'
8708 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8d138742
CE
8709
8710 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d9898ee8 8712 # If the export-symbols file already is a .def file (1st line
8713 # is EXPORTS), use it as is; otherwise, prepend...
8d138742 8714 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
d9898ee8 8715 cp $export_symbols $output_objdir/$soname.def;
8716 else
8717 echo EXPORTS > $output_objdir/$soname.def;
8718 cat $export_symbols >> $output_objdir/$soname.def;
8719 fi~
8720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8721 else
8d138742 8722 ld_shlibs=no
d9898ee8 8723 fi
8724 ;;
8725
b0322a85
CE
8726 haiku*)
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 link_all_deplibs=yes
8729 ;;
8730
ac40fd9e 8731 interix[3-9]*)
8d138742
CE
8732 hardcode_direct=no
8733 hardcode_shlibpath_var=no
8734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8735 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8737 # Instead, shared libraries are loaded at an image base (0x10000000 by
8738 # default) and relocated if they conflict, which is a slow very memory
8739 # consuming and fragmenting process. To avoid this, we pick a random,
8740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8d138742
CE
8742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8743 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d9898ee8 8744 ;;
8745
b0322a85 8746 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
8747 tmp_diet=no
8748 if test "$host_os" = linux-dietlibc; then
8749 case $cc_basename in
8750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8751 esac
8752 fi
8753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8754 && test "$tmp_diet" = no
8755 then
b0322a85 8756 tmp_addflag=' $pic_flag'
8d138742 8757 tmp_sharedflag='-shared'
d9898ee8 8758 case $cc_basename,$host_cpu in
8d138742 8759 pgcc*) # Portland Group C compiler
b0322a85 8760 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d9898ee8 8761 tmp_addflag=' $pic_flag'
8762 ;;
b0322a85
CE
8763 pgf77* | pgf90* | pgf95* | pgfortran*)
8764 # Portland Group f77 and f90 compilers
8765 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d9898ee8 8766 tmp_addflag=' $pic_flag -Mnomain' ;;
8d138742 8767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
d9898ee8 8768 tmp_addflag=' -i_dynamic' ;;
8769 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8770 tmp_addflag=' -i_dynamic -nofor_main' ;;
8771 ifc* | ifort*) # Intel Fortran compiler
8772 tmp_addflag=' -nofor_main' ;;
8d138742
CE
8773 lf95*) # Lahey Fortran 8.1
8774 whole_archive_flag_spec=
8775 tmp_sharedflag='--shared' ;;
b0322a85 8776 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
8777 tmp_sharedflag='-qmkshrobj'
8778 tmp_addflag= ;;
b0322a85
CE
8779 nvcc*) # Cuda Compiler Driver 2.2
8780 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'
8781 compiler_needs_object=yes
8782 ;;
d9898ee8 8783 esac
ac40fd9e 8784 case `$CC -V 2>&1 | sed 5q` in
8785 *Sun\ C*) # Sun C 5.9
b0322a85 8786 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 8787 compiler_needs_object=yes
ac40fd9e 8788 tmp_sharedflag='-G' ;;
8789 *Sun\ F*) # Sun Fortran 8.3
8790 tmp_sharedflag='-G' ;;
ac40fd9e 8791 esac
8d138742 8792 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8793
8d138742
CE
8794 if test "x$supports_anon_versioning" = xyes; then
8795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8797 echo "local: *; };" >> $output_objdir/$libname.ver~
8798 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8799 fi
8800
8801 case $cc_basename in
b0322a85 8802 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
8803 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8804 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
b0322a85
CE
8805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8806 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8d138742
CE
8807 if test "x$supports_anon_versioning" = xyes; then
8808 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8810 echo "local: *; };" >> $output_objdir/$libname.ver~
b0322a85 8811 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
8812 fi
8813 ;;
8814 esac
d9898ee8 8815 else
8d138742 8816 ld_shlibs=no
d9898ee8 8817 fi
8818 ;;
8819
8820 netbsd*)
8d138742
CE
8821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8822 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
d9898ee8 8823 wlarc=
8824 else
b0322a85
CE
8825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8827 fi
8828 ;;
8829
8830 solaris*)
8d138742
CE
8831 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8832 ld_shlibs=no
8833 cat <<_LT_EOF 1>&2
d9898ee8 8834
8835*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8836*** create shared libraries on Solaris systems. Therefore, libtool
8837*** is disabling shared libraries support. We urge you to upgrade GNU
8838*** binutils to release 2.9.1 or newer. Another option is to modify
8839*** your PATH or compiler configuration so that the native linker is
8840*** used, and then restart.
8841
8d138742
CE
8842_LT_EOF
8843 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8846 else
8d138742 8847 ld_shlibs=no
d9898ee8 8848 fi
8849 ;;
8850
8851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8852 case `$LD -v 2>&1` in
8853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8d138742 8854 ld_shlibs=no
d9898ee8 8855 cat <<_LT_EOF 1>&2
8856
8857*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8858*** reliably create shared libraries on SCO systems. Therefore, libtool
8859*** is disabling shared libraries support. We urge you to upgrade GNU
8860*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8861*** your PATH or compiler configuration so that the native linker is
8862*** used, and then restart.
8863
8864_LT_EOF
8865 ;;
8866 *)
8d138742
CE
8867 # For security reasons, it is highly recommended that you always
8868 # use absolute paths for naming shared libraries, and exclude the
8869 # DT_RUNPATH tag from executables and libraries. But doing so
8870 # requires that you compile everything twice, which is a pain.
8871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8875 else
8d138742 8876 ld_shlibs=no
d9898ee8 8877 fi
8878 ;;
8879 esac
8880 ;;
8881
8882 sunos4*)
8d138742 8883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 8884 wlarc=
8d138742
CE
8885 hardcode_direct=yes
8886 hardcode_shlibpath_var=no
d9898ee8 8887 ;;
8888
8889 *)
8d138742 8890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
8891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8893 else
8d138742 8894 ld_shlibs=no
d9898ee8 8895 fi
8896 ;;
8897 esac
8898
8d138742 8899 if test "$ld_shlibs" = no; then
d9898ee8 8900 runpath_var=
8d138742
CE
8901 hardcode_libdir_flag_spec=
8902 export_dynamic_flag_spec=
8903 whole_archive_flag_spec=
d9898ee8 8904 fi
8905 else
8906 # PORTME fill in a description of your system's linker (not GNU ld)
8907 case $host_os in
8908 aix3*)
8d138742
CE
8909 allow_undefined_flag=unsupported
8910 always_export_symbols=yes
8911 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
d9898ee8 8912 # Note: this linker hardcodes the directories in LIBPATH if there
8913 # are no directories specified by -L.
8d138742 8914 hardcode_minus_L=yes
d9898ee8 8915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8916 # Neither direct hardcoding nor static linking is supported with a
8917 # broken collect2.
8d138742 8918 hardcode_direct=unsupported
d9898ee8 8919 fi
8920 ;;
8921
8d138742 8922 aix[4-9]*)
d9898ee8 8923 if test "$host_cpu" = ia64; then
8924 # On IA64, the linker does run time linking by default, so we don't
8925 # have to do anything special.
8926 aix_use_runtimelinking=no
8927 exp_sym_flag='-Bexport'
8928 no_entry_flag=""
8929 else
8930 # If we're using GNU nm, then we don't want the "-C" option.
8931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b0322a85
CE
8932 # Also, AIX nm treats weak defined symbols like other global
8933 # defined symbols, whereas GNU nm marks them as "W".
8d138742 8934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b0322a85 8935 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d9898ee8 8936 else
8d138742 8937 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d9898ee8 8938 fi
8939 aix_use_runtimelinking=no
8940
8941 # Test if we are trying to use run time linking or normal
8942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8943 # need to do runtime linking.
8d138742 8944 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d9898ee8 8945 for ld_flag in $LDFLAGS; do
8d138742
CE
8946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8947 aix_use_runtimelinking=yes
8948 break
8949 fi
d9898ee8 8950 done
8951 ;;
8952 esac
8953
8954 exp_sym_flag='-bexport'
8955 no_entry_flag='-bnoentry'
8956 fi
8957
8958 # When large executables or shared objects are built, AIX ld can
8959 # have problems creating the table of contents. If linking a library
8960 # or program results in "error TOC overflow" add -mminimal-toc to
8961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8963
8d138742
CE
8964 archive_cmds=''
8965 hardcode_direct=yes
8966 hardcode_direct_absolute=yes
8967 hardcode_libdir_separator=':'
8968 link_all_deplibs=yes
8969 file_list_spec='${wl}-f,'
d9898ee8 8970
8971 if test "$GCC" = yes; then
8972 case $host_os in aix4.[012]|aix4.[012].*)
8973 # We only want to do this on AIX 4.2 and lower, the check
8974 # below for broken collect2 doesn't work under 4.3+
8975 collect2name=`${CC} -print-prog-name=collect2`
8d138742
CE
8976 if test -f "$collect2name" &&
8977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
d9898ee8 8978 then
8d138742
CE
8979 # We have reworked collect2
8980 :
d9898ee8 8981 else
8d138742
CE
8982 # We have old collect2
8983 hardcode_direct=unsupported
8984 # It fails to find uninstalled libraries when the uninstalled
8985 # path is not listed in the libpath. Setting hardcode_minus_L
8986 # to unsupported forces relinking
8987 hardcode_minus_L=yes
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_libdir_separator=
d9898ee8 8990 fi
8991 ;;
8992 esac
8993 shared_flag='-shared'
8994 if test "$aix_use_runtimelinking" = yes; then
8995 shared_flag="$shared_flag "'${wl}-G'
8996 fi
8997 else
8998 # not using gcc
8999 if test "$host_cpu" = ia64; then
8d138742
CE
9000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9001 # chokes on -Wl,-G. The following line is correct:
d9898ee8 9002 shared_flag='-G'
9003 else
9004 if test "$aix_use_runtimelinking" = yes; then
9005 shared_flag='${wl}-G'
9006 else
9007 shared_flag='${wl}-bM:SRE'
9008 fi
9009 fi
9010 fi
9011
8d138742 9012 export_dynamic_flag_spec='${wl}-bexpall'
d9898ee8 9013 # It seems that -bexpall does not export symbols beginning with
9014 # underscore (_), so it is better to generate a list of symbols to export.
8d138742 9015 always_export_symbols=yes
d9898ee8 9016 if test "$aix_use_runtimelinking" = yes; then
9017 # Warning - without using the other runtime loading flags (-brtl),
9018 # -berok will link without error, but may produce a broken library.
8d138742
CE
9019 allow_undefined_flag='-berok'
9020 # Determine the default libpath from the value encoded in an
9021 # empty executable.
b0322a85
CE
9022 if test "${lt_cv_aix_libpath+set}" = set; then
9023 aix_libpath=$lt_cv_aix_libpath
9024else
9025 if ${lt_cv_aix_libpath_+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027else
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 9029/* end confdefs.h. */
9030
9031int
9032main ()
9033{
9034
9035 ;
9036 return 0;
9037}
9038_ACEOF
b0322a85 9039if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9040
b0322a85
CE
9041 lt_aix_libpath_sed='
9042 /Import File Strings/,/^$/ {
9043 /^0/ {
9044 s/^0 *\([^ ]*\) *$/\1/
9045 p
9046 }
9047 }'
9048 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9049 # Check for a 64-bit object if we didn't find anything.
9050 if test -z "$lt_cv_aix_libpath_"; then
9051 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9052 fi
9053fi
9054rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 if test -z "$lt_cv_aix_libpath_"; then
9057 lt_cv_aix_libpath_="/usr/lib:/lib"
9058 fi
dd184caf 9059
d9898ee8 9060fi
dd184caf 9061
b0322a85
CE
9062 aix_libpath=$lt_cv_aix_libpath_
9063fi
d9898ee8 9064
8d138742 9065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b0322a85 9066 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8d138742 9067 else
d9898ee8 9068 if test "$host_cpu" = ia64; then
8d138742
CE
9069 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9070 allow_undefined_flag="-z nodefs"
9071 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d9898ee8 9072 else
8d138742
CE
9073 # Determine the default libpath from the value encoded in an
9074 # empty executable.
b0322a85
CE
9075 if test "${lt_cv_aix_libpath+set}" = set; then
9076 aix_libpath=$lt_cv_aix_libpath
d9898ee8 9077else
b0322a85
CE
9078 if ${lt_cv_aix_libpath_+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082/* end confdefs.h. */
9083
9084int
9085main ()
9086{
9087
9088 ;
9089 return 0;
9090}
9091_ACEOF
9092if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9093
b0322a85
CE
9094 lt_aix_libpath_sed='
9095 /Import File Strings/,/^$/ {
9096 /^0/ {
9097 s/^0 *\([^ ]*\) *$/\1/
9098 p
9099 }
9100 }'
9101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102 # Check for a 64-bit object if we didn't find anything.
9103 if test -z "$lt_cv_aix_libpath_"; then
9104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9105 fi
9106fi
9107rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109 if test -z "$lt_cv_aix_libpath_"; then
9110 lt_cv_aix_libpath_="/usr/lib:/lib"
9111 fi
dd184caf 9112
d9898ee8 9113fi
dd184caf 9114
b0322a85
CE
9115 aix_libpath=$lt_cv_aix_libpath_
9116fi
d9898ee8 9117
8d138742 9118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
d9898ee8 9119 # Warning - without using the other run time loading flags,
9120 # -berok will link without error, but may produce a broken library.
8d138742
CE
9121 no_undefined_flag=' ${wl}-bernotok'
9122 allow_undefined_flag=' ${wl}-berok'
b0322a85
CE
9123 if test "$with_gnu_ld" = yes; then
9124 # We only use this code for GNU lds that support --whole-archive.
9125 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9126 else
9127 # Exported symbols can be pulled into shared objects from archives
9128 whole_archive_flag_spec='$convenience'
9129 fi
8d138742 9130 archive_cmds_need_lc=yes
d9898ee8 9131 # This is similar to how AIX traditionally builds its shared libraries.
8d138742 9132 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d9898ee8 9133 fi
9134 fi
9135 ;;
9136
9137 amigaos*)
8d138742
CE
9138 case $host_cpu in
9139 powerpc)
9140 # see comment about AmigaOS4 .so support
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds=''
9143 ;;
9144 m68k)
9145 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)'
9146 hardcode_libdir_flag_spec='-L$libdir'
9147 hardcode_minus_L=yes
9148 ;;
9149 esac
d9898ee8 9150 ;;
9151
9152 bsdi[45]*)
8d138742 9153 export_dynamic_flag_spec=-rdynamic
d9898ee8 9154 ;;
9155
8d138742 9156 cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9157 # When not using gcc, we currently assume that we are using
9158 # Microsoft Visual C++.
9159 # hardcode_libdir_flag_spec is actually meaningless, as there is
9160 # no search path for DLLs.
b0322a85
CE
9161 case $cc_basename in
9162 cl*)
9163 # Native MSVC
9164 hardcode_libdir_flag_spec=' '
9165 allow_undefined_flag=unsupported
9166 always_export_symbols=yes
9167 file_list_spec='@'
9168 # Tell ltmain to make .lib files, not .a files.
9169 libext=lib
9170 # Tell ltmain to make .dll files, not .so files.
9171 shrext_cmds=".dll"
9172 # FIXME: Setting linknames here is a bad hack.
9173 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9175 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9176 else
9177 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9178 fi~
9179 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9180 linknames='
9181 # The linker will not automatically build a static lib if we build a DLL.
9182 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9183 enable_shared_with_static_runtimes=yes
9184 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9186 # Don't use ranlib
9187 old_postinstall_cmds='chmod 644 $oldlib'
9188 postlink_cmds='lt_outputfile="@OUTPUT@"~
9189 lt_tool_outputfile="@TOOL_OUTPUT@"~
9190 case $lt_outputfile in
9191 *.exe|*.EXE) ;;
9192 *)
9193 lt_outputfile="$lt_outputfile.exe"
9194 lt_tool_outputfile="$lt_tool_outputfile.exe"
9195 ;;
9196 esac~
9197 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9198 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9199 $RM "$lt_outputfile.manifest";
9200 fi'
9201 ;;
9202 *)
9203 # Assume MSVC wrapper
9204 hardcode_libdir_flag_spec=' '
9205 allow_undefined_flag=unsupported
9206 # Tell ltmain to make .lib files, not .a files.
9207 libext=lib
9208 # Tell ltmain to make .dll files, not .so files.
9209 shrext_cmds=".dll"
9210 # FIXME: Setting linknames here is a bad hack.
9211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9212 # The linker will automatically build a .lib file if we build a DLL.
9213 old_archive_from_new_cmds='true'
9214 # FIXME: Should let the user specify the lib program.
9215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9216 enable_shared_with_static_runtimes=yes
9217 ;;
9218 esac
d9898ee8 9219 ;;
9220
9221 darwin* | rhapsody*)
8d138742
CE
9222
9223
9224 archive_cmds_need_lc=no
9225 hardcode_direct=no
9226 hardcode_automatic=yes
9227 hardcode_shlibpath_var=unsupported
b0322a85
CE
9228 if test "$lt_cv_ld_force_load" = "yes"; then
9229 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\"`'
9230
9231 else
9232 whole_archive_flag_spec=''
9233 fi
8d138742
CE
9234 link_all_deplibs=yes
9235 allow_undefined_flag="$_lt_dar_allow_undefined"
9236 case $cc_basename in
9237 ifort*) _lt_dar_can_shared=yes ;;
9238 *) _lt_dar_can_shared=$GCC ;;
9239 esac
9240 if test "$_lt_dar_can_shared" = "yes"; then
b0322a85 9241 output_verbose_link_cmd=func_echo_all
8d138742
CE
9242 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9243 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9244 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}"
9245 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}"
9246
9247 else
9248 ld_shlibs=no
9249 fi
9250
d9898ee8 9251 ;;
9252
9253 dgux*)
8d138742
CE
9254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_shlibpath_var=no
d9898ee8 9257 ;;
9258
d9898ee8 9259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9260 # support. Future versions do this automatically, but an explicit c++rt0.o
9261 # does not break anything, and helps significantly (at the cost of a little
9262 # extra space).
9263 freebsd2.2*)
8d138742
CE
9264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9265 hardcode_libdir_flag_spec='-R$libdir'
9266 hardcode_direct=yes
9267 hardcode_shlibpath_var=no
d9898ee8 9268 ;;
9269
9270 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 9271 freebsd2.*)
8d138742
CE
9272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9273 hardcode_direct=yes
9274 hardcode_minus_L=yes
9275 hardcode_shlibpath_var=no
d9898ee8 9276 ;;
9277
9278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 9279 freebsd* | dragonfly*)
b0322a85 9280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9281 hardcode_libdir_flag_spec='-R$libdir'
9282 hardcode_direct=yes
9283 hardcode_shlibpath_var=no
d9898ee8 9284 ;;
9285
9286 hpux9*)
9287 if test "$GCC" = yes; then
b0322a85 9288 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d9898ee8 9289 else
8d138742 9290 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d9898ee8 9291 fi
8d138742
CE
9292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9293 hardcode_libdir_separator=:
9294 hardcode_direct=yes
d9898ee8 9295
9296 # hardcode_minus_L: Not really in the search PATH,
9297 # but as the default location of the library.
8d138742
CE
9298 hardcode_minus_L=yes
9299 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9300 ;;
9301
9302 hpux10*)
b0322a85
CE
9303 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9304 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9305 else
8d138742 9306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 9307 fi
9308 if test "$with_gnu_ld" = no; then
8d138742 9309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8d138742
CE
9310 hardcode_libdir_separator=:
9311 hardcode_direct=yes
9312 hardcode_direct_absolute=yes
9313 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9314 # hardcode_minus_L: Not really in the search PATH,
9315 # but as the default location of the library.
8d138742 9316 hardcode_minus_L=yes
d9898ee8 9317 fi
9318 ;;
9319
9320 hpux11*)
b0322a85 9321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d9898ee8 9322 case $host_cpu in
9323 hppa*64*)
8d138742 9324 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9325 ;;
9326 ia64*)
b0322a85 9327 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9328 ;;
9329 *)
b0322a85 9330 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9331 ;;
9332 esac
9333 else
9334 case $host_cpu in
9335 hppa*64*)
8d138742 9336 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9337 ;;
9338 ia64*)
8d138742 9339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9340 ;;
9341 *)
b0322a85
CE
9342
9343 # Older versions of the 11.00 compiler do not understand -b yet
9344 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9346$as_echo_n "checking if $CC understands -b... " >&6; }
9347if ${lt_cv_prog_compiler__b+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349else
9350 lt_cv_prog_compiler__b=no
9351 save_LDFLAGS="$LDFLAGS"
9352 LDFLAGS="$LDFLAGS -b"
9353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9355 # The linker can only warn and ignore the option if not recognized
9356 # So say no if there are warnings
9357 if test -s conftest.err; then
9358 # Append any errors to the config.log.
9359 cat conftest.err 1>&5
9360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9362 if diff conftest.exp conftest.er2 >/dev/null; then
9363 lt_cv_prog_compiler__b=yes
9364 fi
9365 else
9366 lt_cv_prog_compiler__b=yes
9367 fi
9368 fi
9369 $RM -r conftest*
9370 LDFLAGS="$save_LDFLAGS"
9371
9372fi
9373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9374$as_echo "$lt_cv_prog_compiler__b" >&6; }
9375
9376if test x"$lt_cv_prog_compiler__b" = xyes; then
9377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9378else
9379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9380fi
9381
d9898ee8 9382 ;;
9383 esac
9384 fi
9385 if test "$with_gnu_ld" = no; then
8d138742
CE
9386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9387 hardcode_libdir_separator=:
d9898ee8 9388
9389 case $host_cpu in
9390 hppa*64*|ia64*)
8d138742
CE
9391 hardcode_direct=no
9392 hardcode_shlibpath_var=no
d9898ee8 9393 ;;
9394 *)
8d138742
CE
9395 hardcode_direct=yes
9396 hardcode_direct_absolute=yes
9397 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9398
9399 # hardcode_minus_L: Not really in the search PATH,
9400 # but as the default location of the library.
8d138742 9401 hardcode_minus_L=yes
d9898ee8 9402 ;;
9403 esac
9404 fi
9405 ;;
9406
9407 irix5* | irix6* | nonstopux*)
9408 if test "$GCC" = yes; then
b0322a85 9409 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
9410 # Try to use the -exported_symbol ld option, if it does not
9411 # work, assume that -exports_file does not work either and
9412 # implicitly export all symbols.
b0322a85
CE
9413 # This should be the same for all languages, so no per-tag cache variable.
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9415$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9416if ${lt_cv_irix_exported_symbol+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418else
9419 save_LDFLAGS="$LDFLAGS"
9420 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h. */
9423int foo (void) { return 0; }
8d138742 9424_ACEOF
b0322a85
CE
9425if ac_fn_c_try_link "$LINENO"; then :
9426 lt_cv_irix_exported_symbol=yes
8d138742 9427else
b0322a85 9428 lt_cv_irix_exported_symbol=no
8d138742 9429fi
b0322a85
CE
9430rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 LDFLAGS="$save_LDFLAGS"
9433fi
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9435$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9436 if test "$lt_cv_irix_exported_symbol" = yes; then
9437 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'
9438 fi
d9898ee8 9439 else
b0322a85
CE
9440 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'
9441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
d9898ee8 9442 fi
8d138742
CE
9443 archive_cmds_need_lc='no'
9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445 hardcode_libdir_separator=:
9446 inherit_rpath=yes
9447 link_all_deplibs=yes
d9898ee8 9448 ;;
9449
9450 netbsd*)
8d138742
CE
9451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
d9898ee8 9453 else
8d138742 9454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
d9898ee8 9455 fi
8d138742
CE
9456 hardcode_libdir_flag_spec='-R$libdir'
9457 hardcode_direct=yes
9458 hardcode_shlibpath_var=no
d9898ee8 9459 ;;
9460
9461 newsos6)
8d138742
CE
9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463 hardcode_direct=yes
9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465 hardcode_libdir_separator=:
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 *nto* | *qnx*)
d9898ee8 9470 ;;
9471
9472 openbsd*)
ac40fd9e 9473 if test -f /usr/libexec/ld.so; then
8d138742
CE
9474 hardcode_direct=yes
9475 hardcode_shlibpath_var=no
9476 hardcode_direct_absolute=yes
9477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481 export_dynamic_flag_spec='${wl}-E'
ac40fd9e 9482 else
9483 case $host_os in
9484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8d138742
CE
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_libdir_flag_spec='-R$libdir'
ac40fd9e 9487 ;;
9488 *)
8d138742
CE
9489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
ac40fd9e 9491 ;;
9492 esac
8d138742 9493 fi
d9898ee8 9494 else
8d138742 9495 ld_shlibs=no
d9898ee8 9496 fi
9497 ;;
9498
9499 os2*)
8d138742
CE
9500 hardcode_libdir_flag_spec='-L$libdir'
9501 hardcode_minus_L=yes
9502 allow_undefined_flag=unsupported
b0322a85 9503 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8d138742 9504 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
d9898ee8 9505 ;;
9506
9507 osf3*)
9508 if test "$GCC" = yes; then
8d138742 9509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 9510 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d9898ee8 9511 else
8d138742 9512 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 9513 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d9898ee8 9514 fi
8d138742
CE
9515 archive_cmds_need_lc='no'
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator=:
d9898ee8 9518 ;;
9519
9520 osf4* | osf5*) # as osf3* with the addition of -msym flag
9521 if test "$GCC" = yes; then
8d138742 9522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 9523 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8d138742 9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d9898ee8 9525 else
8d138742 9526 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 9527 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 9528 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
b0322a85 9529 $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 9530
9531 # Both c and cxx compiler support -rpath directly
8d138742 9532 hardcode_libdir_flag_spec='-rpath $libdir'
d9898ee8 9533 fi
8d138742
CE
9534 archive_cmds_need_lc='no'
9535 hardcode_libdir_separator=:
d9898ee8 9536 ;;
9537
9538 solaris*)
8d138742 9539 no_undefined_flag=' -z defs'
d9898ee8 9540 if test "$GCC" = yes; then
9541 wlarc='${wl}'
b0322a85 9542 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 9543 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b0322a85 9544 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d9898ee8 9545 else
8d138742
CE
9546 case `$CC -V 2>&1` in
9547 *"Compilers 5.0"*)
9548 wlarc=''
9549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9552 ;;
9553 *)
9554 wlarc='${wl}'
9555 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9558 ;;
9559 esac
d9898ee8 9560 fi
8d138742
CE
9561 hardcode_libdir_flag_spec='-R$libdir'
9562 hardcode_shlibpath_var=no
d9898ee8 9563 case $host_os in
9564 solaris2.[0-5] | solaris2.[0-5].*) ;;
9565 *)
ac40fd9e 9566 # The compiler driver will combine and reorder linker options,
9567 # but understands `-z linker_flag'. GCC discards it without `$wl',
9568 # but is careful enough not to reorder.
8d138742 9569 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 9570 if test "$GCC" = yes; then
8d138742 9571 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
ac40fd9e 9572 else
8d138742 9573 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
ac40fd9e 9574 fi
9575 ;;
d9898ee8 9576 esac
8d138742 9577 link_all_deplibs=yes
d9898ee8 9578 ;;
9579
9580 sunos4*)
9581 if test "x$host_vendor" = xsequent; then
9582 # Use $CC to link under sequent, because it throws in some extra .o
9583 # files that make .init and .fini sections work.
8d138742 9584 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9585 else
8d138742 9586 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 9587 fi
8d138742
CE
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_direct=yes
9590 hardcode_minus_L=yes
9591 hardcode_shlibpath_var=no
d9898ee8 9592 ;;
9593
9594 sysv4)
9595 case $host_vendor in
9596 sni)
8d138742
CE
9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_direct=yes # is this really true???
d9898ee8 9599 ;;
9600 siemens)
9601 ## LD is ld it makes a PLAMLIB
9602 ## CC just makes a GrossModule.
8d138742
CE
9603 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9604 reload_cmds='$CC -r -o $output$reload_objs'
9605 hardcode_direct=no
d9898ee8 9606 ;;
9607 motorola)
8d138742
CE
9608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 9610 ;;
9611 esac
9612 runpath_var='LD_RUN_PATH'
8d138742 9613 hardcode_shlibpath_var=no
d9898ee8 9614 ;;
9615
9616 sysv4.3*)
8d138742
CE
9617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618 hardcode_shlibpath_var=no
9619 export_dynamic_flag_spec='-Bexport'
d9898ee8 9620 ;;
9621
9622 sysv4*MP*)
9623 if test -d /usr/nec; then
8d138742
CE
9624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625 hardcode_shlibpath_var=no
d9898ee8 9626 runpath_var=LD_RUN_PATH
9627 hardcode_runpath_var=yes
8d138742 9628 ld_shlibs=yes
d9898ee8 9629 fi
9630 ;;
9631
ac40fd9e 9632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8d138742
CE
9633 no_undefined_flag='${wl}-z,text'
9634 archive_cmds_need_lc=no
9635 hardcode_shlibpath_var=no
d9898ee8 9636 runpath_var='LD_RUN_PATH'
9637
9638 if test "$GCC" = yes; then
8d138742
CE
9639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9641 else
8d138742
CE
9642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9644 fi
9645 ;;
9646
9647 sysv5* | sco3.2v5* | sco5v6*)
9648 # Note: We can NOT use -z defs as we might desire, because we do not
9649 # link with -lc, and that would cause any symbols used from libc to
9650 # always be unresolved, which means just about no library would
9651 # ever link correctly. If we're not using GNU ld we use -z text
9652 # though, which does catch some bad symbols but isn't as heavy-handed
9653 # as -z defs.
8d138742
CE
9654 no_undefined_flag='${wl}-z,text'
9655 allow_undefined_flag='${wl}-z,nodefs'
9656 archive_cmds_need_lc=no
9657 hardcode_shlibpath_var=no
9658 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9659 hardcode_libdir_separator=':'
9660 link_all_deplibs=yes
9661 export_dynamic_flag_spec='${wl}-Bexport'
d9898ee8 9662 runpath_var='LD_RUN_PATH'
9663
9664 if test "$GCC" = yes; then
8d138742
CE
9665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9667 else
8d138742
CE
9668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9670 fi
9671 ;;
9672
9673 uts4*)
8d138742
CE
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_shlibpath_var=no
d9898ee8 9677 ;;
9678
9679 *)
8d138742 9680 ld_shlibs=no
d9898ee8 9681 ;;
9682 esac
8d138742
CE
9683
9684 if test x$host_vendor = xsni; then
9685 case $host in
9686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9687 export_dynamic_flag_spec='${wl}-Blargedynsym'
9688 ;;
9689 esac
9690 fi
d9898ee8 9691 fi
9692
b0322a85 9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742
CE
9694$as_echo "$ld_shlibs" >&6; }
9695test "$ld_shlibs" = no && can_build_shared=no
9696
9697with_gnu_ld=$with_gnu_ld
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
d9898ee8 9712
9713#
9714# Do we need to explicitly link libc?
9715#
8d138742 9716case "x$archive_cmds_need_lc" in
d9898ee8 9717x|xyes)
9718 # Assume -lc should be added
8d138742 9719 archive_cmds_need_lc=yes
d9898ee8 9720
9721 if test "$enable_shared" = yes && test "$GCC" = yes; then
8d138742 9722 case $archive_cmds in
d9898ee8 9723 *'~'*)
9724 # FIXME: we may have to deal with multi-command sequences.
9725 ;;
9726 '$CC '*)
9727 # Test whether the compiler implicitly links with -lc since on some
9728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9729 # to ld, don't add -lc before -lgcc.
b0322a85 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 9731$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
9732if ${lt_cv_archive_cmds_need_lc+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734else
9735 $RM conftest*
9736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9737
b0322a85 9738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 9739 (eval $ac_compile) 2>&5
9740 ac_status=$?
b0322a85
CE
9741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9742 test $ac_status = 0; } 2>conftest.err; then
9743 soname=conftest
9744 lib=conftest
9745 libobjs=conftest.$ac_objext
9746 deplibs=
9747 wl=$lt_prog_compiler_wl
9748 pic_flag=$lt_prog_compiler_pic
9749 compiler_flags=-v
9750 linker_flags=-v
9751 verstring=
9752 output_objdir=.
9753 libname=conftest
9754 lt_save_allow_undefined_flag=$allow_undefined_flag
9755 allow_undefined_flag=
9756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742 9757 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d9898ee8 9758 ac_status=$?
b0322a85
CE
9759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9760 test $ac_status = 0; }
9761 then
9762 lt_cv_archive_cmds_need_lc=no
9763 else
9764 lt_cv_archive_cmds_need_lc=yes
9765 fi
9766 allow_undefined_flag=$lt_save_allow_undefined_flag
9767 else
9768 cat conftest.err 1>&5
9769 fi
9770 $RM conftest*
9771
9772fi
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9774$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9775 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d9898ee8 9776 ;;
9777 esac
9778 fi
9779 ;;
9780esac
9781
8d138742
CE
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
b0322a85 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
9934$as_echo_n "checking dynamic linker characteristics... " >&6; }
9935
9936if test "$GCC" = yes; then
9937 case $host_os in
9938 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9939 *) lt_awk_arg="/^libraries:/" ;;
9940 esac
b0322a85
CE
9941 case $host_os in
9942 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9943 *) lt_sed_strip_eq="s,=/,/,g" ;;
9944 esac
9945 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9946 case $lt_search_path_spec in
9947 *\;*)
8d138742
CE
9948 # if the path contains ";" then we assume it to be the separator
9949 # otherwise default to the standard path separator (i.e. ":") - it is
9950 # assumed that no part of a normal pathname contains ";" but that should
9951 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
9952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9953 ;;
9954 *)
9955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9956 ;;
9957 esac
8d138742
CE
9958 # Ok, now we have the path, separated by spaces, we can step through it
9959 # and add multilib dir if necessary.
9960 lt_tmp_lt_search_path_spec=
9961 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9962 for lt_sys_path in $lt_search_path_spec; do
9963 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9965 else
9966 test -d "$lt_sys_path" && \
9967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9968 fi
9969 done
b0322a85 9970 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8d138742
CE
9971BEGIN {RS=" "; FS="/|\n";} {
9972 lt_foo="";
9973 lt_count=0;
9974 for (lt_i = NF; lt_i > 0; lt_i--) {
9975 if ($lt_i != "" && $lt_i != ".") {
9976 if ($lt_i == "..") {
9977 lt_count++;
9978 } else {
9979 if (lt_count == 0) {
9980 lt_foo="/" $lt_i lt_foo;
9981 } else {
9982 lt_count--;
9983 }
9984 }
9985 }
9986 }
9987 if (lt_foo != "") { lt_freq[lt_foo]++; }
9988 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9989}'`
b0322a85
CE
9990 # AWK program above erroneously prepends '/' to C:/dos/paths
9991 # for these hosts.
9992 case $host_os in
9993 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9994 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9995 esac
9996 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
9997else
9998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9999fi
d9898ee8 10000library_names_spec=
10001libname_spec='lib$name'
10002soname_spec=
10003shrext_cmds=".so"
10004postinstall_cmds=
10005postuninstall_cmds=
10006finish_cmds=
10007finish_eval=
10008shlibpath_var=
10009shlibpath_overrides_runpath=unknown
10010version_type=none
10011dynamic_linker="$host_os ld.so"
10012sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 10013need_lib_prefix=unknown
10014hardcode_into_libs=no
10015
10016# when you set need_version to no, make sure it does not cause -set_version
10017# flags to be left without arguments
10018need_version=unknown
10019
10020case $host_os in
10021aix3*)
b0322a85 10022 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10024 shlibpath_var=LIBPATH
10025
10026 # AIX 3 has no versioning support, so we append a major version to the name.
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 ;;
10029
8d138742 10030aix[4-9]*)
b0322a85 10031 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10032 need_lib_prefix=no
10033 need_version=no
10034 hardcode_into_libs=yes
10035 if test "$host_cpu" = ia64; then
10036 # AIX 5 supports IA64
10037 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 else
10040 # With GCC up to 2.95.x, collect2 would create an import file
10041 # for dependence libraries. The import file would start with
10042 # the line `#! .'. This would cause the generated library to
10043 # depend on `.', always an invalid library. This was fixed in
10044 # development snapshots of GCC prior to 3.0.
10045 case $host_os in
10046 aix4 | aix4.[01] | aix4.[01].*)
10047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10048 echo ' yes '
8d138742 10049 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 10050 :
10051 else
10052 can_build_shared=no
10053 fi
10054 ;;
10055 esac
10056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10057 # soname into executable. Probably we can add versioning support to
10058 # collect2, so additional links can be useful in future.
10059 if test "$aix_use_runtimelinking" = yes; then
10060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10061 # instead of lib<name>.a to let people know that these are not
10062 # typical AIX shared libraries.
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 else
10065 # We preserve .a as extension for shared libraries through AIX4.2
10066 # and later when we are not doing run time linking.
10067 library_names_spec='${libname}${release}.a $libname.a'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 fi
10070 shlibpath_var=LIBPATH
10071 fi
10072 ;;
10073
10074amigaos*)
8d138742
CE
10075 case $host_cpu in
10076 powerpc)
10077 # Since July 2007 AmigaOS4 officially supports .so libraries.
10078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 ;;
10081 m68k)
10082 library_names_spec='$libname.ixlibrary $libname.a'
10083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 10084 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8d138742
CE
10085 ;;
10086 esac
d9898ee8 10087 ;;
10088
10089beos*)
10090 library_names_spec='${libname}${shared_ext}'
10091 dynamic_linker="$host_os ld.so"
10092 shlibpath_var=LIBRARY_PATH
10093 ;;
10094
10095bsdi[45]*)
b0322a85 10096 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10097 need_version=no
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10104 # the default ld.so.conf also contains /usr/contrib/lib and
10105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10106 # libtool to hard-code these into programs
10107 ;;
10108
8d138742 10109cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 10110 version_type=windows
10111 shrext_cmds=".dll"
10112 need_version=no
10113 need_lib_prefix=no
10114
b0322a85
CE
10115 case $GCC,$cc_basename in
10116 yes,*)
10117 # gcc
d9898ee8 10118 library_names_spec='$libname.dll.a'
10119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10120 postinstall_cmds='base_file=`basename \${file}`~
8d138742 10121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 10122 dldir=$destdir/`dirname \$dlpath`~
10123 test -d \$dldir || mkdir -p \$dldir~
10124 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10125 chmod a+x \$dldir/$dlname~
10126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10128 fi'
d9898ee8 10129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10130 dlpath=$dir/\$dldll~
8d138742 10131 $RM \$dlpath'
d9898ee8 10132 shlibpath_overrides_runpath=yes
10133
10134 case $host_os in
10135 cygwin*)
10136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b0322a85
CE
10138
10139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 10140 ;;
8d138742 10141 mingw* | cegcc*)
d9898ee8 10142 # MinGW DLLs use traditional 'lib' prefix
10143 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9898ee8 10144 ;;
10145 pw32*)
10146 # pw32 DLLs use 'pw' prefix rather than 'lib'
10147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10148 ;;
10149 esac
b0322a85
CE
10150 dynamic_linker='Win32 ld.exe'
10151 ;;
10152
10153 *,cl*)
10154 # Native MSVC
10155 libname_spec='$name'
10156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10157 library_names_spec='${libname}.dll.lib'
10158
10159 case $build_os in
10160 mingw*)
10161 sys_lib_search_path_spec=
10162 lt_save_ifs=$IFS
10163 IFS=';'
10164 for lt_path in $LIB
10165 do
10166 IFS=$lt_save_ifs
10167 # Let DOS variable expansion print the short 8.3 style file name.
10168 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10169 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10170 done
10171 IFS=$lt_save_ifs
10172 # Convert to MSYS style.
10173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10174 ;;
10175 cygwin*)
10176 # Convert to unix form, then to dos form, then back to unix form
10177 # but this time dos style (no spaces!) so that the unix form looks
10178 # like /cygdrive/c/PROGRA~1:/cygdr...
10179 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10180 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10181 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10182 ;;
10183 *)
10184 sys_lib_search_path_spec="$LIB"
10185 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10186 # It is most probably a Windows format PATH.
10187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10188 else
10189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10190 fi
10191 # FIXME: find the short name or the path components, as spaces are
10192 # common. (e.g. "Program Files" -> "PROGRA~1")
10193 ;;
10194 esac
10195
10196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10197 postinstall_cmds='base_file=`basename \${file}`~
10198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10199 dldir=$destdir/`dirname \$dlpath`~
10200 test -d \$dldir || mkdir -p \$dldir~
10201 $install_prog $dir/$dlname \$dldir/$dlname'
10202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10203 dlpath=$dir/\$dldll~
10204 $RM \$dlpath'
10205 shlibpath_overrides_runpath=yes
10206 dynamic_linker='Win32 link.exe'
d9898ee8 10207 ;;
10208
10209 *)
b0322a85 10210 # Assume MSVC wrapper
d9898ee8 10211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 10212 dynamic_linker='Win32 ld.exe'
d9898ee8 10213 ;;
10214 esac
d9898ee8 10215 # FIXME: first we should search . and the directory the executable is in
10216 shlibpath_var=PATH
10217 ;;
10218
10219darwin* | rhapsody*)
10220 dynamic_linker="$host_os dyld"
10221 version_type=darwin
10222 need_lib_prefix=no
10223 need_version=no
8d138742 10224 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 10225 soname_spec='${libname}${release}${major}$shared_ext'
10226 shlibpath_overrides_runpath=yes
10227 shlibpath_var=DYLD_LIBRARY_PATH
10228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10229
8d138742 10230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10232 ;;
10233
10234dgux*)
b0322a85 10235 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10236 need_lib_prefix=no
10237 need_version=no
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 ;;
10242
d9898ee8 10243freebsd* | dragonfly*)
10244 # DragonFly does not have aout. When/if they implement a new
10245 # versioning mechanism, adjust this.
10246 if test -x /usr/bin/objformat; then
10247 objformat=`/usr/bin/objformat`
10248 else
10249 case $host_os in
b0322a85 10250 freebsd[23].*) objformat=aout ;;
d9898ee8 10251 *) objformat=elf ;;
10252 esac
10253 fi
10254 version_type=freebsd-$objformat
10255 case $version_type in
10256 freebsd-elf*)
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10258 need_version=no
10259 need_lib_prefix=no
10260 ;;
10261 freebsd-*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10263 need_version=yes
10264 ;;
10265 esac
10266 shlibpath_var=LD_LIBRARY_PATH
10267 case $host_os in
b0322a85 10268 freebsd2.*)
d9898ee8 10269 shlibpath_overrides_runpath=yes
10270 ;;
10271 freebsd3.[01]* | freebsdelf3.[01]*)
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10274 ;;
10275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10277 shlibpath_overrides_runpath=no
10278 hardcode_into_libs=yes
10279 ;;
ac40fd9e 10280 *) # from 4.6 on, and DragonFly
d9898ee8 10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10283 ;;
10284 esac
10285 ;;
10286
10287gnu*)
b0322a85 10288 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10289 need_lib_prefix=no
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
10294 shlibpath_overrides_runpath=no
10295 hardcode_into_libs=yes
10296 ;;
10297
10298haiku*)
10299 version_type=linux # correct to gnu/linux during the next big refactor
10300 need_lib_prefix=no
10301 need_version=no
10302 dynamic_linker="$host_os runtime_loader"
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 10308 hardcode_into_libs=yes
10309 ;;
10310
10311hpux9* | hpux10* | hpux11*)
10312 # Give a soname corresponding to the major version so that dld.sl refuses to
10313 # link against other versions.
10314 version_type=sunos
10315 need_lib_prefix=no
10316 need_version=no
10317 case $host_cpu in
10318 ia64*)
10319 shrext_cmds='.so'
10320 hardcode_into_libs=yes
10321 dynamic_linker="$host_os dld.so"
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 if test "X$HPUX_IA64_MODE" = X32; then
10327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10328 else
10329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10330 fi
10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10332 ;;
8d138742
CE
10333 hppa*64*)
10334 shrext_cmds='.sl'
10335 hardcode_into_libs=yes
10336 dynamic_linker="$host_os dld.sl"
10337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343 ;;
10344 *)
d9898ee8 10345 shrext_cmds='.sl'
10346 dynamic_linker="$host_os dld.sl"
10347 shlibpath_var=SHLIB_PATH
10348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 ;;
10352 esac
b0322a85 10353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 10354 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
10355 # or fails outright, so override atomically:
10356 install_override_mode=555
d9898ee8 10357 ;;
10358
ac40fd9e 10359interix[3-9]*)
b0322a85 10360 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10361 need_lib_prefix=no
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=no
10368 hardcode_into_libs=yes
10369 ;;
10370
10371irix5* | irix6* | nonstopux*)
10372 case $host_os in
10373 nonstopux*) version_type=nonstopux ;;
10374 *)
10375 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 10376 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10377 else
10378 version_type=irix
10379 fi ;;
10380 esac
10381 need_lib_prefix=no
10382 need_version=no
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10385 case $host_os in
10386 irix5* | nonstopux*)
10387 libsuff= shlibsuff=
10388 ;;
10389 *)
10390 case $LD in # libtool.m4 will add one of these switches to LD
10391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10392 libsuff= shlibsuff= libmagic=32-bit;;
10393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10394 libsuff=32 shlibsuff=N32 libmagic=N32;;
10395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10397 *) libsuff= shlibsuff= libmagic=never-match;;
10398 esac
10399 ;;
10400 esac
10401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10402 shlibpath_overrides_runpath=no
10403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10405 hardcode_into_libs=yes
10406 ;;
10407
10408# No shared lib support for Linux oldld, aout, or coff.
10409linux*oldld* | linux*aout* | linux*coff*)
10410 dynamic_linker=no
10411 ;;
10412
b0322a85
CE
10413# This must be glibc/ELF.
10414linux* | k*bsd*-gnu | kopensolaris*-gnu)
10415 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=no
b0322a85 10423
8d138742 10424 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
10425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427else
10428 lt_cv_shlibpath_overrides_runpath=no
10429 save_LDFLAGS=$LDFLAGS
10430 save_libdir=$libdir
10431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10434/* end confdefs.h. */
10435
10436int
10437main ()
10438{
10439
10440 ;
10441 return 0;
10442}
10443_ACEOF
b0322a85
CE
10444if ac_fn_c_try_link "$LINENO"; then :
10445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10446 lt_cv_shlibpath_overrides_runpath=yes
8d138742 10447fi
b0322a85
CE
10448fi
10449rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LDFLAGS=$save_LDFLAGS
10452 libdir=$save_libdir
8d138742
CE
10453
10454fi
10455
b0322a85 10456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 10457
d9898ee8 10458 # This implies no fast_install, which is unacceptable.
10459 # Some rework will be needed to allow for fast_install
10460 # before this can be enabled.
10461 hardcode_into_libs=yes
8d138742
CE
10462
10463 # Add ABI-specific directories to the system library path.
10464 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 10465
10466 # Append ld.so.conf contents to the search path
10467 if test -f /etc/ld.so.conf; then
b0322a85 10468 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 10469 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 10470
d9898ee8 10471 fi
10472
10473 # We used to test for /lib/ld.so.1 and disable shared libraries on
10474 # powerpc, because MkLinux only supported shared libraries with the
10475 # GNU dynamic linker. Since this was broken with cross compilers,
10476 # most powerpc-linux boxes support dynamic linking these days and
10477 # people can always --disable-shared, the test was removed, and we
10478 # assume the GNU/Linux dynamic linker is in use.
10479 dynamic_linker='GNU/Linux ld.so'
10480 ;;
10481
d9898ee8 10482netbsd*)
10483 version_type=sunos
10484 need_lib_prefix=no
10485 need_version=no
8d138742 10486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10489 dynamic_linker='NetBSD (a.out) ld.so'
10490 else
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 dynamic_linker='NetBSD ld.elf_so'
10494 fi
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10498 ;;
10499
10500newsos6)
b0322a85 10501 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=yes
10505 ;;
10506
8d138742
CE
10507*nto* | *qnx*)
10508 version_type=qnx
d9898ee8 10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10516 dynamic_linker='ldqnx.so'
d9898ee8 10517 ;;
10518
10519openbsd*)
10520 version_type=sunos
10521 sys_lib_dlsearch_path_spec="/usr/lib"
10522 need_lib_prefix=no
10523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10524 case $host_os in
8d138742
CE
10525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10526 *) need_version=no ;;
d9898ee8 10527 esac
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
8d138742 10531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 10532 case $host_os in
10533 openbsd2.[89] | openbsd2.[89].*)
10534 shlibpath_overrides_runpath=no
10535 ;;
10536 *)
10537 shlibpath_overrides_runpath=yes
10538 ;;
10539 esac
10540 else
10541 shlibpath_overrides_runpath=yes
10542 fi
10543 ;;
10544
10545os2*)
10546 libname_spec='$name'
10547 shrext_cmds=".dll"
10548 need_lib_prefix=no
10549 library_names_spec='$libname${shared_ext} $libname.a'
10550 dynamic_linker='OS/2 ld.exe'
10551 shlibpath_var=LIBPATH
10552 ;;
10553
10554osf3* | osf4* | osf5*)
10555 version_type=osf
10556 need_lib_prefix=no
10557 need_version=no
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10563 ;;
10564
ac40fd9e 10565rdos*)
10566 dynamic_linker=no
10567 ;;
10568
d9898ee8 10569solaris*)
b0322a85 10570 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10578 # ldd complains unless libraries are executable
10579 postinstall_cmds='chmod +x $lib'
10580 ;;
10581
10582sunos4*)
10583 version_type=sunos
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 if test "$with_gnu_ld" = yes; then
10589 need_lib_prefix=no
10590 fi
10591 need_version=yes
10592 ;;
10593
10594sysv4 | sysv4.3*)
b0322a85 10595 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 case $host_vendor in
10600 sni)
10601 shlibpath_overrides_runpath=no
10602 need_lib_prefix=no
d9898ee8 10603 runpath_var=LD_RUN_PATH
10604 ;;
10605 siemens)
10606 need_lib_prefix=no
10607 ;;
10608 motorola)
10609 need_lib_prefix=no
10610 need_version=no
10611 shlibpath_overrides_runpath=no
10612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10613 ;;
10614 esac
10615 ;;
10616
10617sysv4*MP*)
10618 if test -d /usr/nec ;then
b0322a85 10619 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10621 soname_spec='$libname${shared_ext}.$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 fi
10624 ;;
10625
10626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10627 version_type=freebsd-elf
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 shlibpath_var=LD_LIBRARY_PATH
8d138742 10633 shlibpath_overrides_runpath=yes
d9898ee8 10634 hardcode_into_libs=yes
10635 if test "$with_gnu_ld" = yes; then
10636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10637 else
10638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10639 case $host_os in
10640 sco3.2v5*)
10641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10642 ;;
10643 esac
10644 fi
10645 sys_lib_dlsearch_path_spec='/usr/lib'
10646 ;;
10647
8d138742
CE
10648tpf*)
10649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 10650 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10657 ;;
10658
d9898ee8 10659uts4*)
b0322a85 10660 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 ;;
10665
10666*)
10667 dynamic_linker=no
10668 ;;
10669esac
b0322a85 10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 10671$as_echo "$dynamic_linker" >&6; }
d9898ee8 10672test "$dynamic_linker" = no && can_build_shared=no
10673
10674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10675if test "$GCC" = yes; then
10676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10677fi
10678
8d138742
CE
10679if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10681fi
8d138742
CE
10682if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10684fi
10685
10686
d9898ee8 10687
d9898ee8 10688
d9898ee8 10689
d9898ee8 10690
d9898ee8 10691
d9898ee8 10692
d9898ee8 10693
d9898ee8 10694
d9898ee8 10695
d9898ee8 10696
d9898ee8 10697
d9898ee8 10698
d9898ee8 10699
d9898ee8 10700
d9898ee8 10701
d9898ee8 10702
d9898ee8 10703
d9898ee8 10704
d9898ee8 10705
d9898ee8 10706
d9898ee8 10707
d9898ee8 10708
d9898ee8 10709
d9898ee8 10710
d9898ee8 10711
d9898ee8 10712
d9898ee8 10713
d9898ee8 10714
d9898ee8 10715
d9898ee8 10716
d9898ee8 10717
d9898ee8 10718
d9898ee8 10719
d9898ee8 10720
d9898ee8 10721
d9898ee8 10722
d9898ee8 10723
d9898ee8 10724
d9898ee8 10725
d9898ee8 10726
d9898ee8 10727
d9898ee8 10728
d9898ee8 10729
d9898ee8 10730
d9898ee8 10731
d9898ee8 10732
d9898ee8 10733
d9898ee8 10734
d9898ee8 10735
d9898ee8 10736
d9898ee8 10737
d9898ee8 10738
d9898ee8 10739
d9898ee8 10740
d9898ee8 10741
d9898ee8 10742
d9898ee8 10743
d9898ee8 10744
d9898ee8 10745
d9898ee8 10746
d9898ee8 10747
d9898ee8 10748
d9898ee8 10749
d9898ee8 10750
d9898ee8 10751
d9898ee8 10752
d9898ee8 10753
d9898ee8 10754
d9898ee8 10755
d9898ee8 10756
d9898ee8 10757
d9898ee8 10758
d9898ee8 10759
d9898ee8 10760
d9898ee8 10761
d9898ee8 10762
d9898ee8 10763
d9898ee8 10764
d9898ee8 10765
d9898ee8 10766
d9898ee8 10767
d9898ee8 10768
d9898ee8 10769
d9898ee8 10770
d9898ee8 10771
b0322a85
CE
10772
10773
10774
10775
10776
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
10778$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10779hardcode_action=
10780if test -n "$hardcode_libdir_flag_spec" ||
10781 test -n "$runpath_var" ||
10782 test "X$hardcode_automatic" = "Xyes" ; then
10783
10784 # We can hardcode non-existent directories.
10785 if test "$hardcode_direct" != no &&
10786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10787 # have to relink, otherwise we might link with an installed library
10788 # when we should be linking with a yet-to-be-installed one
10789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10790 test "$hardcode_minus_L" != no; then
10791 # Linking always hardcodes the temporary library directory.
10792 hardcode_action=relink
10793 else
10794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10795 hardcode_action=immediate
10796 fi
10797else
10798 # We cannot hardcode anything, or else we can only hardcode existing
10799 # directories.
10800 hardcode_action=unsupported
10801fi
b0322a85 10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742
CE
10803$as_echo "$hardcode_action" >&6; }
10804
10805if test "$hardcode_action" = relink ||
10806 test "$inherit_rpath" = yes; then
10807 # Fast installation is not supported
10808 enable_fast_install=no
10809elif test "$shlibpath_overrides_runpath" = yes ||
10810 test "$enable_shared" = no; then
10811 # Fast installation is not necessary
10812 enable_fast_install=needless
10813fi
10814
10815
10816
10817
10818
10819
10820 if test "x$enable_dlopen" != xyes; then
10821 enable_dlopen=unknown
10822 enable_dlopen_self=unknown
10823 enable_dlopen_self_static=unknown
10824else
10825 lt_cv_dlopen=no
10826 lt_cv_dlopen_libs=
10827
10828 case $host_os in
10829 beos*)
10830 lt_cv_dlopen="load_add_on"
10831 lt_cv_dlopen_libs=
10832 lt_cv_dlopen_self=yes
10833 ;;
10834
10835 mingw* | pw32* | cegcc*)
10836 lt_cv_dlopen="LoadLibrary"
10837 lt_cv_dlopen_libs=
10838 ;;
10839
10840 cygwin*)
10841 lt_cv_dlopen="dlopen"
10842 lt_cv_dlopen_libs=
10843 ;;
10844
10845 darwin*)
10846 # if libdl is installed we need to link against it
b0322a85 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 10848$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 10849if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
10850 $as_echo_n "(cached) " >&6
10851else
10852 ac_check_lib_save_LIBS=$LIBS
10853LIBS="-ldl $LIBS"
b0322a85 10854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10855/* end confdefs.h. */
10856
10857/* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860#ifdef __cplusplus
10861extern "C"
10862#endif
10863char dlopen ();
10864int
10865main ()
10866{
10867return dlopen ();
10868 ;
10869 return 0;
10870}
10871_ACEOF
b0322a85 10872if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10873 ac_cv_lib_dl_dlopen=yes
10874else
b0322a85 10875 ac_cv_lib_dl_dlopen=no
8d138742 10876fi
b0322a85
CE
10877rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10879LIBS=$ac_check_lib_save_LIBS
10880fi
b0322a85 10881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 10882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 10883if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742 10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
b0322a85 10885else
8d138742 10886
b0322a85
CE
10887 lt_cv_dlopen="dyld"
10888 lt_cv_dlopen_libs=
10889 lt_cv_dlopen_self=yes
8d138742 10890
8d138742 10891fi
b0322a85
CE
10892
10893 ;;
10894
10895 *)
10896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10897if test "x$ac_cv_func_shl_load" = xyes; then :
8d138742
CE
10898 lt_cv_dlopen="shl_load"
10899else
b0322a85 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 10901$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 10902if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
10903 $as_echo_n "(cached) " >&6
10904else
10905 ac_check_lib_save_LIBS=$LIBS
10906LIBS="-ldld $LIBS"
b0322a85 10907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10908/* end confdefs.h. */
10909
10910/* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913#ifdef __cplusplus
10914extern "C"
10915#endif
10916char shl_load ();
10917int
10918main ()
10919{
10920return shl_load ();
10921 ;
10922 return 0;
10923}
10924_ACEOF
b0322a85 10925if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10926 ac_cv_lib_dld_shl_load=yes
10927else
b0322a85 10928 ac_cv_lib_dld_shl_load=no
8d138742 10929fi
b0322a85
CE
10930rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10932LIBS=$ac_check_lib_save_LIBS
10933fi
b0322a85 10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 10935$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 10936if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8d138742
CE
10937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10938else
b0322a85
CE
10939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10940if test "x$ac_cv_func_dlopen" = xyes; then :
8d138742
CE
10941 lt_cv_dlopen="dlopen"
10942else
b0322a85 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 10944$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 10945if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
10946 $as_echo_n "(cached) " >&6
10947else
10948 ac_check_lib_save_LIBS=$LIBS
10949LIBS="-ldl $LIBS"
b0322a85 10950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10951/* end confdefs.h. */
10952
10953/* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956#ifdef __cplusplus
10957extern "C"
10958#endif
10959char dlopen ();
10960int
10961main ()
10962{
10963return dlopen ();
10964 ;
10965 return 0;
10966}
10967_ACEOF
b0322a85 10968if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10969 ac_cv_lib_dl_dlopen=yes
10970else
b0322a85 10971 ac_cv_lib_dl_dlopen=no
8d138742 10972fi
b0322a85
CE
10973rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10975LIBS=$ac_check_lib_save_LIBS
10976fi
b0322a85 10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 10978$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 10979if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981else
b0322a85 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 10983$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 10984if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
10985 $as_echo_n "(cached) " >&6
10986else
10987 ac_check_lib_save_LIBS=$LIBS
10988LIBS="-lsvld $LIBS"
b0322a85 10989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10990/* end confdefs.h. */
10991
10992/* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995#ifdef __cplusplus
10996extern "C"
10997#endif
10998char dlopen ();
10999int
11000main ()
11001{
11002return dlopen ();
11003 ;
11004 return 0;
11005}
11006_ACEOF
b0322a85 11007if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11008 ac_cv_lib_svld_dlopen=yes
11009else
b0322a85 11010 ac_cv_lib_svld_dlopen=no
8d138742 11011fi
b0322a85
CE
11012rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11014LIBS=$ac_check_lib_save_LIBS
11015fi
b0322a85 11016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 11017$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 11018if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8d138742
CE
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11020else
b0322a85 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 11022$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 11023if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
11024 $as_echo_n "(cached) " >&6
11025else
11026 ac_check_lib_save_LIBS=$LIBS
11027LIBS="-ldld $LIBS"
b0322a85 11028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11029/* end confdefs.h. */
11030
11031/* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034#ifdef __cplusplus
11035extern "C"
11036#endif
11037char dld_link ();
11038int
11039main ()
11040{
11041return dld_link ();
11042 ;
11043 return 0;
11044}
11045_ACEOF
b0322a85 11046if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11047 ac_cv_lib_dld_dld_link=yes
11048else
b0322a85 11049 ac_cv_lib_dld_dld_link=no
8d138742 11050fi
b0322a85
CE
11051rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11053LIBS=$ac_check_lib_save_LIBS
11054fi
b0322a85 11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 11056$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 11057if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8d138742
CE
11058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11059fi
11060
11061
11062fi
11063
11064
11065fi
11066
11067
11068fi
11069
11070
11071fi
11072
11073
11074fi
11075
11076 ;;
11077 esac
11078
11079 if test "x$lt_cv_dlopen" != xno; then
11080 enable_dlopen=yes
11081 else
11082 enable_dlopen=no
11083 fi
11084
11085 case $lt_cv_dlopen in
11086 dlopen)
11087 save_CPPFLAGS="$CPPFLAGS"
11088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11089
11090 save_LDFLAGS="$LDFLAGS"
11091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11092
11093 save_LIBS="$LIBS"
11094 LIBS="$lt_cv_dlopen_libs $LIBS"
11095
b0322a85 11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 11097$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 11098if ${lt_cv_dlopen_self+:} false; then :
8d138742
CE
11099 $as_echo_n "(cached) " >&6
11100else
11101 if test "$cross_compiling" = yes; then :
11102 lt_cv_dlopen_self=cross
11103else
11104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11105 lt_status=$lt_dlunknown
11106 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11107#line $LINENO "configure"
8d138742
CE
11108#include "confdefs.h"
11109
11110#if HAVE_DLFCN_H
11111#include <dlfcn.h>
11112#endif
11113
11114#include <stdio.h>
11115
11116#ifdef RTLD_GLOBAL
11117# define LT_DLGLOBAL RTLD_GLOBAL
11118#else
11119# ifdef DL_GLOBAL
11120# define LT_DLGLOBAL DL_GLOBAL
11121# else
11122# define LT_DLGLOBAL 0
11123# endif
11124#endif
11125
11126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11127 find out it does not work in some platform. */
11128#ifndef LT_DLLAZY_OR_NOW
11129# ifdef RTLD_LAZY
11130# define LT_DLLAZY_OR_NOW RTLD_LAZY
11131# else
11132# ifdef DL_LAZY
11133# define LT_DLLAZY_OR_NOW DL_LAZY
11134# else
11135# ifdef RTLD_NOW
11136# define LT_DLLAZY_OR_NOW RTLD_NOW
11137# else
11138# ifdef DL_NOW
11139# define LT_DLLAZY_OR_NOW DL_NOW
11140# else
11141# define LT_DLLAZY_OR_NOW 0
11142# endif
11143# endif
11144# endif
11145# endif
11146#endif
11147
b0322a85
CE
11148/* When -fvisbility=hidden is used, assume the code has been annotated
11149 correspondingly for the symbols needed. */
11150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11151int fnord () __attribute__((visibility("default")));
11152#endif
11153
11154int fnord () { return 42; }
8d138742
CE
11155int main ()
11156{
11157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11158 int status = $lt_dlunknown;
11159
11160 if (self)
11161 {
11162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11163 else
11164 {
11165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11166 else puts (dlerror ());
11167 }
8d138742
CE
11168 /* dlclose (self); */
11169 }
11170 else
11171 puts (dlerror ());
d9898ee8 11172
8d138742
CE
11173 return status;
11174}
11175_LT_EOF
b0322a85 11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11177 (eval $ac_link) 2>&5
11178 ac_status=$?
b0322a85
CE
11179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11181 (./conftest; exit; ) >&5 2>/dev/null
11182 lt_status=$?
11183 case x$lt_status in
11184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11187 esac
11188 else :
11189 # compilation failed
11190 lt_cv_dlopen_self=no
11191 fi
11192fi
11193rm -fr conftest*
d9898ee8 11194
d9898ee8 11195
8d138742 11196fi
b0322a85 11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 11198$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11199
8d138742
CE
11200 if test "x$lt_cv_dlopen_self" = xyes; then
11201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 11203$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 11204if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
11205 $as_echo_n "(cached) " >&6
11206else
11207 if test "$cross_compiling" = yes; then :
11208 lt_cv_dlopen_self_static=cross
11209else
11210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11211 lt_status=$lt_dlunknown
11212 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11213#line $LINENO "configure"
8d138742 11214#include "confdefs.h"
d9898ee8 11215
8d138742
CE
11216#if HAVE_DLFCN_H
11217#include <dlfcn.h>
11218#endif
d9898ee8 11219
8d138742 11220#include <stdio.h>
d9898ee8 11221
8d138742
CE
11222#ifdef RTLD_GLOBAL
11223# define LT_DLGLOBAL RTLD_GLOBAL
11224#else
11225# ifdef DL_GLOBAL
11226# define LT_DLGLOBAL DL_GLOBAL
11227# else
11228# define LT_DLGLOBAL 0
11229# endif
11230#endif
d9898ee8 11231
8d138742
CE
11232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11233 find out it does not work in some platform. */
11234#ifndef LT_DLLAZY_OR_NOW
11235# ifdef RTLD_LAZY
11236# define LT_DLLAZY_OR_NOW RTLD_LAZY
11237# else
11238# ifdef DL_LAZY
11239# define LT_DLLAZY_OR_NOW DL_LAZY
11240# else
11241# ifdef RTLD_NOW
11242# define LT_DLLAZY_OR_NOW RTLD_NOW
11243# else
11244# ifdef DL_NOW
11245# define LT_DLLAZY_OR_NOW DL_NOW
11246# else
11247# define LT_DLLAZY_OR_NOW 0
11248# endif
11249# endif
11250# endif
11251# endif
11252#endif
d9898ee8 11253
b0322a85
CE
11254/* When -fvisbility=hidden is used, assume the code has been annotated
11255 correspondingly for the symbols needed. */
11256#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11257int fnord () __attribute__((visibility("default")));
11258#endif
11259
11260int fnord () { return 42; }
8d138742
CE
11261int main ()
11262{
11263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11264 int status = $lt_dlunknown;
d9898ee8 11265
8d138742
CE
11266 if (self)
11267 {
11268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11269 else
11270 {
11271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11272 else puts (dlerror ());
11273 }
8d138742
CE
11274 /* dlclose (self); */
11275 }
11276 else
11277 puts (dlerror ());
d9898ee8 11278
8d138742
CE
11279 return status;
11280}
11281_LT_EOF
b0322a85 11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11283 (eval $ac_link) 2>&5
11284 ac_status=$?
b0322a85
CE
11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11287 (./conftest; exit; ) >&5 2>/dev/null
11288 lt_status=$?
11289 case x$lt_status in
11290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11293 esac
11294 else :
11295 # compilation failed
11296 lt_cv_dlopen_self_static=no
11297 fi
11298fi
11299rm -fr conftest*
d9898ee8 11300
11301
d9898ee8 11302fi
b0322a85 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
11304$as_echo "$lt_cv_dlopen_self_static" >&6; }
11305 fi
d9898ee8 11306
8d138742
CE
11307 CPPFLAGS="$save_CPPFLAGS"
11308 LDFLAGS="$save_LDFLAGS"
11309 LIBS="$save_LIBS"
11310 ;;
11311 esac
d9898ee8 11312
8d138742
CE
11313 case $lt_cv_dlopen_self in
11314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11315 *) enable_dlopen_self=unknown ;;
11316 esac
d9898ee8 11317
8d138742
CE
11318 case $lt_cv_dlopen_self_static in
11319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11320 *) enable_dlopen_self_static=unknown ;;
11321 esac
11322fi
d9898ee8 11323
d9898ee8 11324
d9898ee8 11325
11326
d9898ee8 11327
d9898ee8 11328
d9898ee8 11329
d9898ee8 11330
d9898ee8 11331
d9898ee8 11332
d9898ee8 11333
d9898ee8 11334
11335
d9898ee8 11336
d9898ee8 11337
11338
d9898ee8 11339
8d138742
CE
11340striplib=
11341old_striplib=
b0322a85 11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
11343$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11344if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11348$as_echo "yes" >&6; }
11349else
11350# FIXME - insert some real tests, host_os isn't really good enough
11351 case $host_os in
11352 darwin*)
11353 if test -n "$STRIP" ; then
11354 striplib="$STRIP -x"
11355 old_striplib="$STRIP -S"
b0322a85 11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11357$as_echo "yes" >&6; }
11358 else
b0322a85 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11360$as_echo "no" >&6; }
11361 fi
11362 ;;
11363 *)
b0322a85 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 11365$as_echo "no" >&6; }
d9898ee8 11366 ;;
11367 esac
8d138742 11368fi
d9898ee8 11369
d9898ee8 11370
d9898ee8 11371
d9898ee8 11372
d9898ee8 11373
d9898ee8 11374
d9898ee8 11375
d9898ee8 11376
d9898ee8 11377
d9898ee8 11378
d9898ee8 11379
d9898ee8 11380
8d138742 11381 # Report which library types will actually be built
b0322a85 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 11383$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 11385$as_echo "$can_build_shared" >&6; }
d9898ee8 11386
b0322a85 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742
CE
11388$as_echo_n "checking whether to build shared libraries... " >&6; }
11389 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 11390
8d138742
CE
11391 # On AIX, shared libraries and static libraries use the same namespace, and
11392 # are all built from PIC.
11393 case $host_os in
11394 aix3*)
11395 test "$enable_shared" = yes && enable_static=no
11396 if test -n "$RANLIB"; then
11397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11398 postinstall_cmds='$RANLIB $lib'
11399 fi
11400 ;;
d9898ee8 11401
8d138742
CE
11402 aix[4-9]*)
11403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11404 test "$enable_shared" = yes && enable_static=no
11405 fi
11406 ;;
11407 esac
b0322a85 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742 11409$as_echo "$enable_shared" >&6; }
d9898ee8 11410
b0322a85 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
11412$as_echo_n "checking whether to build static libraries... " >&6; }
11413 # Make sure either enable_shared or enable_static is yes.
11414 test "$enable_shared" = yes || enable_static=yes
b0322a85 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 11416$as_echo "$enable_static" >&6; }
d9898ee8 11417
d9898ee8 11418
d9898ee8 11419
d9898ee8 11420
8d138742
CE
11421fi
11422ac_ext=c
11423ac_cpp='$CPP $CPPFLAGS'
11424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11427
8d138742 11428CC="$lt_save_CC"
d9898ee8 11429
d9898ee8 11430
d9898ee8 11431
d9898ee8 11432
d9898ee8 11433
d9898ee8 11434
d9898ee8 11435
d9898ee8 11436
d9898ee8 11437
d9898ee8 11438
d9898ee8 11439
d9898ee8 11440
d9898ee8 11441
b0322a85
CE
11442
11443
8d138742 11444 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11445
d9898ee8 11446
d9898ee8 11447
d9898ee8 11448
8d138742
CE
11449# Only expand once:
11450
11451
11452for ac_prog in perl5 perl
11453do
11454 # Extract the first word of "$ac_prog", so it can be a program name with args.
11455set dummy $ac_prog; ac_word=$2
b0322a85 11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 11457$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 11458if ${ac_cv_path_PERL+:} false; then :
8d138742
CE
11459 $as_echo_n "(cached) " >&6
11460else
11461 case $PERL in
11462 [\\/]* | ?:[\\/]*)
11463 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11464 ;;
11465 *)
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $LPATH
11468do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
b0322a85
CE
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 11473 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
b0322a85 11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
11475 break 2
11476 fi
11477done
b0322a85 11478 done
8d138742 11479IFS=$as_save_IFS
d9898ee8 11480
8d138742
CE
11481 ;;
11482esac
11483fi
11484PERL=$ac_cv_path_PERL
11485if test -n "$PERL"; then
b0322a85 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8d138742
CE
11487$as_echo "$PERL" >&6; }
11488else
b0322a85 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11490$as_echo "no" >&6; }
11491fi
d9898ee8 11492
d9898ee8 11493
8d138742
CE
11494 test -n "$PERL" && break
11495done
11496test -n "$PERL" || PERL="perl"
d9898ee8 11497
d9898ee8 11498
8d138742
CE
11499if test "$PERL" = "perl"
11500then
b0322a85 11501 as_fn_error $? "Perl not found." "$LINENO" 5
8d138742 11502fi
d9898ee8 11503
8d138742
CE
11504if test "$GCC" = "yes"
11505then
11506 CFLAGS="$CFLAGS -Wall"
11507fi
d9898ee8 11508
b0322a85 11509CFLAGS="$CFLAGS -I.. -I${srcdir}/.. -I../libs -I${srcdir}/../libs"
d9898ee8 11510
d9898ee8 11511
d9898ee8 11512
8d138742 11513# Check whether --with-userdb was given.
b0322a85 11514if test "${with_userdb+set}" = set; then :
8d138742
CE
11515 withval=$with_userdb; userdb="$withval"
11516else
11517 userdb="/etc/userdb"
11518fi
d9898ee8 11519
d9898ee8 11520
8d138742 11521USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
d9898ee8 11522
d9898ee8 11523
d9898ee8 11524
8d138742 11525# Check whether --with-userdbmandir was given.
b0322a85 11526if test "${with_userdbmandir+set}" = set; then :
8d138742
CE
11527 withval=$with_userdbmandir; mandir="$withval"
11528fi
d9898ee8 11529
d9898ee8 11530
d9898ee8 11531
8d138742 11532# Check whether --with-userdbtmpdir was given.
b0322a85 11533if test "${with_userdbtmpdir+set}" = set; then :
8d138742
CE
11534 withval=$with_userdbtmpdir; tmpdir="$withval"
11535else
11536 tmpdir=""
11537fi
d9898ee8 11538
d9898ee8 11539
d9898ee8 11540
d9898ee8 11541
8d138742
CE
11542if test "$tmpdir" = ""
11543then
11544 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
11545fi
d9898ee8 11546
d9898ee8 11547
d9898ee8 11548
d9898ee8 11549
d9898ee8 11550
d9898ee8 11551
d9898ee8 11552
8d138742 11553# Check whether --with-makedatprog was given.
b0322a85 11554if test "${with_makedatprog+set}" = set; then :
8d138742
CE
11555 withval=$with_makedatprog; makedat="$withval"
11556else
11557 makedat="$bindir/makedat"
11558fi
d9898ee8 11559
d9898ee8 11560
d9898ee8 11561
b0322a85 11562if test -d ${srcdir}/../libs/md5
8d138742 11563then
d9898ee8 11564
8d138742
CE
11565cat >>confdefs.h <<_ACEOF
11566#define HAVE_MD5 1
11567_ACEOF
d9898ee8 11568
b0322a85 11569 MD5LIB=../libs/md5/libmd5.la
8d138742
CE
11570else
11571 MD5LIB=""
11572fi
d9898ee8 11573
d9898ee8 11574
b0322a85 11575if test -d ${srcdir}/../libs/sha1
8d138742 11576then
b0322a85 11577 SHA1LIB=../libs/sha1/libsha1.la
8d138742
CE
11578else
11579 SHA1LIB=""
11580fi
d9898ee8 11581
d9898ee8 11582
b0322a85 11583if test -d ${srcdir}/../libs/libhmac
8d138742 11584then
d9898ee8 11585
8d138742
CE
11586cat >>confdefs.h <<_ACEOF
11587#define HAVE_HMAC 1
11588_ACEOF
d9898ee8 11589
b0322a85 11590 HMACLIB=../libs/libhmac/libhmac.la
8d138742
CE
11591else
11592 HMACLIB=""
11593fi
d9898ee8 11594
d9898ee8 11595
b0322a85 11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 11597$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 11598if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
11599 $as_echo_n "(cached) " >&6
11600else
b0322a85 11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11602/* end confdefs.h. */
11603#include <stdlib.h>
11604#include <stdarg.h>
11605#include <string.h>
11606#include <float.h>
d9898ee8 11607
8d138742
CE
11608int
11609main ()
11610{
d9898ee8 11611
8d138742
CE
11612 ;
11613 return 0;
11614}
11615_ACEOF
b0322a85 11616if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
11617 ac_cv_header_stdc=yes
11618else
b0322a85 11619 ac_cv_header_stdc=no
8d138742 11620fi
8d138742 11621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11622
8d138742
CE
11623if test $ac_cv_header_stdc = yes; then
11624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11626/* end confdefs.h. */
11627#include <string.h>
d9898ee8 11628
8d138742
CE
11629_ACEOF
11630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
11631 $EGREP "memchr" >/dev/null 2>&1; then :
11632
8d138742
CE
11633else
11634 ac_cv_header_stdc=no
11635fi
11636rm -f conftest*
d9898ee8 11637
8d138742 11638fi
d9898ee8 11639
8d138742
CE
11640if test $ac_cv_header_stdc = yes; then
11641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11643/* end confdefs.h. */
11644#include <stdlib.h>
d9898ee8 11645
8d138742
CE
11646_ACEOF
11647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
11648 $EGREP "free" >/dev/null 2>&1; then :
11649
8d138742
CE
11650else
11651 ac_cv_header_stdc=no
11652fi
11653rm -f conftest*
d9898ee8 11654
8d138742 11655fi
d9898ee8 11656
8d138742
CE
11657if test $ac_cv_header_stdc = yes; then
11658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 11659 if test "$cross_compiling" = yes; then :
8d138742
CE
11660 :
11661else
b0322a85 11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11663/* end confdefs.h. */
11664#include <ctype.h>
11665#include <stdlib.h>
11666#if ((' ' & 0x0FF) == 0x020)
11667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11669#else
11670# define ISLOWER(c) \
11671 (('a' <= (c) && (c) <= 'i') \
11672 || ('j' <= (c) && (c) <= 'r') \
11673 || ('s' <= (c) && (c) <= 'z'))
11674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11675#endif
d9898ee8 11676
8d138742
CE
11677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11678int
11679main ()
11680{
11681 int i;
11682 for (i = 0; i < 256; i++)
11683 if (XOR (islower (i), ISLOWER (i))
11684 || toupper (i) != TOUPPER (i))
11685 return 2;
11686 return 0;
b0322a85
CE
11687}
11688_ACEOF
11689if ac_fn_c_try_run "$LINENO"; then :
11690
8d138742 11691else
b0322a85 11692 ac_cv_header_stdc=no
8d138742 11693fi
b0322a85
CE
11694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11695 conftest.$ac_objext conftest.beam conftest.$ac_ext
11696fi
11697
11698fi
11699fi
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11701$as_echo "$ac_cv_header_stdc" >&6; }
11702if test $ac_cv_header_stdc = yes; then
11703
11704$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 11705
8d138742 11706fi
b0322a85
CE
11707
11708for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
11709do :
11710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11711ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
11713 cat >>confdefs.h <<_ACEOF
11714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11715_ACEOF
d9898ee8 11716
8d138742 11717fi
d9898ee8 11718
8d138742 11719done
d9898ee8 11720
b0322a85 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8d138742 11722$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
b0322a85 11723if ${ac_cv_header_time+:} false; then :
8d138742
CE
11724 $as_echo_n "(cached) " >&6
11725else
b0322a85 11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11727/* end confdefs.h. */
11728#include <sys/types.h>
11729#include <sys/time.h>
11730#include <time.h>
d9898ee8 11731
8d138742
CE
11732int
11733main ()
11734{
11735if ((struct tm *) 0)
11736return 0;
11737 ;
11738 return 0;
11739}
11740_ACEOF
b0322a85 11741if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
11742 ac_cv_header_time=yes
11743else
b0322a85 11744 ac_cv_header_time=no
8d138742 11745fi
8d138742
CE
11746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747fi
b0322a85 11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8d138742
CE
11749$as_echo "$ac_cv_header_time" >&6; }
11750if test $ac_cv_header_time = yes; then
d9898ee8 11751
b0322a85 11752$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
d9898ee8 11753
8d138742 11754fi
d9898ee8 11755
11756
b0322a85 11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8d138742 11758$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b0322a85 11759if ${ac_cv_c_const+:} false; then :
8d138742
CE
11760 $as_echo_n "(cached) " >&6
11761else
b0322a85 11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11763/* end confdefs.h. */
d9898ee8 11764
8d138742
CE
11765int
11766main ()
11767{
b0322a85 11768
8d138742 11769#ifndef __cplusplus
b0322a85 11770 /* Ultrix mips cc rejects this sort of thing. */
8d138742 11771 typedef int charset[2];
b0322a85 11772 const charset cs = { 0, 0 };
8d138742
CE
11773 /* SunOS 4.1.1 cc rejects this. */
11774 char const *const *pcpcc;
11775 char **ppc;
11776 /* NEC SVR4.0.2 mips cc rejects this. */
11777 struct point {int x, y;};
11778 static struct point const zero = {0,0};
11779 /* AIX XL C 1.02.0.0 rejects this.
11780 It does not let you subtract one const X* pointer from another in
11781 an arm of an if-expression whose if-part is not a constant
11782 expression */
11783 const char *g = "string";
11784 pcpcc = &g + (g ? g-g : 0);
11785 /* HPUX 7.0 cc rejects these. */
11786 ++pcpcc;
11787 ppc = (char**) pcpcc;
11788 pcpcc = (char const *const *) ppc;
b0322a85
CE
11789 { /* SCO 3.2v4 cc rejects this sort of thing. */
11790 char tx;
11791 char *t = &tx;
8d138742 11792 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 11793
8d138742
CE
11794 *t++ = 0;
11795 if (s) return 0;
11796 }
11797 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11798 int x[] = {25, 17};
11799 const int *foo = &x[0];
11800 ++foo;
11801 }
11802 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11803 typedef const int *iptr;
11804 iptr p = 0;
11805 ++p;
11806 }
b0322a85 11807 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8d138742 11808 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
b0322a85
CE
11809 struct s { int j; const int *ap[3]; } bx;
11810 struct s *b = &bx; b->j = 5;
8d138742
CE
11811 }
11812 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11813 const int foo = 10;
11814 if (!foo) return 0;
11815 }
11816 return !cs[0] && !zero.x;
11817#endif
d9898ee8 11818
8d138742
CE
11819 ;
11820 return 0;
11821}
11822_ACEOF
b0322a85 11823if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
11824 ac_cv_c_const=yes
11825else
b0322a85 11826 ac_cv_c_const=no
8d138742 11827fi
8d138742
CE
11828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829fi
b0322a85 11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8d138742
CE
11831$as_echo "$ac_cv_c_const" >&6; }
11832if test $ac_cv_c_const = no; then
d9898ee8 11833
b0322a85 11834$as_echo "#define const /**/" >>confdefs.h
d9898ee8 11835
8d138742 11836fi
dd184caf 11837
b0322a85
CE
11838ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11839if test "x$ac_cv_type_pid_t" = xyes; then :
d9898ee8 11840
8d138742 11841else
d9898ee8 11842
8d138742
CE
11843cat >>confdefs.h <<_ACEOF
11844#define pid_t int
11845_ACEOF
d9898ee8 11846
8d138742 11847fi
d9898ee8 11848
b0322a85 11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8d138742 11850$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
b0322a85 11851if ${ac_cv_type_uid_t+:} false; then :
8d138742
CE
11852 $as_echo_n "(cached) " >&6
11853else
b0322a85 11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11855/* end confdefs.h. */
11856#include <sys/types.h>
d9898ee8 11857
8d138742
CE
11858_ACEOF
11859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85 11860 $EGREP "uid_t" >/dev/null 2>&1; then :
8d138742 11861 ac_cv_type_uid_t=yes
d9898ee8 11862else
8d138742 11863 ac_cv_type_uid_t=no
dd184caf 11864fi
8d138742 11865rm -f conftest*
dd184caf 11866
8d138742 11867fi
b0322a85 11868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8d138742
CE
11869$as_echo "$ac_cv_type_uid_t" >&6; }
11870if test $ac_cv_type_uid_t = no; then
d9898ee8 11871
b0322a85 11872$as_echo "#define uid_t int" >>confdefs.h
d9898ee8 11873
11874
b0322a85 11875$as_echo "#define gid_t int" >>confdefs.h
d9898ee8 11876
dd184caf 11877fi
d9898ee8 11878
b0322a85 11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8d138742 11880$as_echo_n "checking return type of signal handlers... " >&6; }
b0322a85 11881if ${ac_cv_type_signal+:} false; then :
8d138742
CE
11882 $as_echo_n "(cached) " >&6
11883else
b0322a85 11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11885/* end confdefs.h. */
11886#include <sys/types.h>
11887#include <signal.h>
d9898ee8 11888
8d138742
CE
11889int
11890main ()
11891{
11892return *(signal (0, 0)) (0) == 1;
11893 ;
11894 return 0;
11895}
11896_ACEOF
b0322a85 11897if ac_fn_c_try_compile "$LINENO"; then :
8d138742 11898 ac_cv_type_signal=int
d9898ee8 11899else
b0322a85 11900 ac_cv_type_signal=void
8d138742 11901fi
8d138742
CE
11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903fi
b0322a85 11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8d138742 11905$as_echo "$ac_cv_type_signal" >&6; }
d9898ee8 11906
8d138742
CE
11907cat >>confdefs.h <<_ACEOF
11908#define RETSIGTYPE $ac_cv_type_signal
11909_ACEOF
d9898ee8 11910
d9898ee8 11911
b0322a85
CE
11912# Check whether --enable-largefile was given.
11913if test "${enable_largefile+set}" = set; then :
11914 enableval=$enable_largefile;
11915fi
d9898ee8 11916
b0322a85 11917if test "$enable_largefile" != no; then
d9898ee8 11918
b0322a85
CE
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11920$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11921if ${ac_cv_sys_largefile_CC+:} false; then :
8d138742
CE
11922 $as_echo_n "(cached) " >&6
11923else
b0322a85
CE
11924 ac_cv_sys_largefile_CC=no
11925 if test "$GCC" != yes; then
11926 ac_save_CC=$CC
11927 while :; do
11928 # IRIX 6.2 and later do not support large files by default,
11929 # so use the C compiler's -n32 option if that helps.
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11931/* end confdefs.h. */
b0322a85
CE
11932#include <sys/types.h>
11933 /* Check that off_t can represent 2**63 - 1 correctly.
11934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11935 since some C++ compilers masquerading as C compilers
11936 incorrectly reject 9223372036854775807. */
11937#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11939 && LARGE_OFF_T % 2147483647 == 1)
11940 ? 1 : -1];
8d138742
CE
11941int
11942main ()
11943{
b0322a85 11944
8d138742
CE
11945 ;
11946 return 0;
11947}
11948_ACEOF
b0322a85
CE
11949 if ac_fn_c_try_compile "$LINENO"; then :
11950 break
11951fi
11952rm -f core conftest.err conftest.$ac_objext
11953 CC="$CC -n32"
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955 ac_cv_sys_largefile_CC=' -n32'; break
11956fi
11957rm -f core conftest.err conftest.$ac_objext
11958 break
11959 done
11960 CC=$ac_save_CC
11961 rm -f conftest.$ac_ext
11962 fi
11963fi
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11965$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11966 if test "$ac_cv_sys_largefile_CC" != no; then
11967 CC=$CC$ac_cv_sys_largefile_CC
11968 fi
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11971$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11972if ${ac_cv_sys_file_offset_bits+:} false; then :
11973 $as_echo_n "(cached) " >&6
8d138742 11974else
b0322a85
CE
11975 while :; do
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977/* end confdefs.h. */
11978#include <sys/types.h>
11979 /* Check that off_t can represent 2**63 - 1 correctly.
11980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11981 since some C++ compilers masquerading as C compilers
11982 incorrectly reject 9223372036854775807. */
11983#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11985 && LARGE_OFF_T % 2147483647 == 1)
11986 ? 1 : -1];
11987int
11988main ()
11989{
d9898ee8 11990
b0322a85
CE
11991 ;
11992 return 0;
11993}
11994_ACEOF
11995if ac_fn_c_try_compile "$LINENO"; then :
11996 ac_cv_sys_file_offset_bits=no; break
8d138742 11997fi
b0322a85
CE
11998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000/* end confdefs.h. */
12001#define _FILE_OFFSET_BITS 64
12002#include <sys/types.h>
12003 /* Check that off_t can represent 2**63 - 1 correctly.
12004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12005 since some C++ compilers masquerading as C compilers
12006 incorrectly reject 9223372036854775807. */
12007#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12009 && LARGE_OFF_T % 2147483647 == 1)
12010 ? 1 : -1];
12011int
12012main ()
12013{
d9898ee8 12014
b0322a85
CE
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019if ac_fn_c_try_compile "$LINENO"; then :
12020 ac_cv_sys_file_offset_bits=64; break
8d138742 12021fi
b0322a85
CE
12022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 ac_cv_sys_file_offset_bits=unknown
12024 break
12025done
8d138742 12026fi
b0322a85
CE
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12028$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12029case $ac_cv_sys_file_offset_bits in #(
12030 no | unknown) ;;
12031 *)
12032cat >>confdefs.h <<_ACEOF
12033#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12034_ACEOF
12035;;
12036esac
12037rm -rf conftest*
12038 if test $ac_cv_sys_file_offset_bits = unknown; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12040$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12041if ${ac_cv_sys_large_files+:} false; then :
8d138742 12042 $as_echo_n "(cached) " >&6
d9898ee8 12043else
b0322a85
CE
12044 while :; do
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h. */
12047#include <sys/types.h>
12048 /* Check that off_t can represent 2**63 - 1 correctly.
12049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12050 since some C++ compilers masquerading as C compilers
12051 incorrectly reject 9223372036854775807. */
12052#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12054 && LARGE_OFF_T % 2147483647 == 1)
12055 ? 1 : -1];
12056int
12057main ()
12058{
12059
12060 ;
12061 return 0;
12062}
8d138742 12063_ACEOF
b0322a85
CE
12064if ac_fn_c_try_compile "$LINENO"; then :
12065 ac_cv_sys_large_files=no; break
12066fi
12067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12069/* end confdefs.h. */
b0322a85
CE
12070#define _LARGE_FILES 1
12071#include <sys/types.h>
12072 /* Check that off_t can represent 2**63 - 1 correctly.
12073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12074 since some C++ compilers masquerading as C compilers
12075 incorrectly reject 9223372036854775807. */
12076#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12078 && LARGE_OFF_T % 2147483647 == 1)
12079 ? 1 : -1];
12080int
12081main ()
12082{
8d138742 12083
b0322a85
CE
12084 ;
12085 return 0;
12086}
12087_ACEOF
12088if ac_fn_c_try_compile "$LINENO"; then :
12089 ac_cv_sys_large_files=1; break
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 ac_cv_sys_large_files=unknown
12093 break
12094done
12095fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12097$as_echo "$ac_cv_sys_large_files" >&6; }
12098case $ac_cv_sys_large_files in #(
12099 no | unknown) ;;
12100 *)
12101cat >>confdefs.h <<_ACEOF
12102#define _LARGE_FILES $ac_cv_sys_large_files
12103_ACEOF
12104;;
12105esac
12106rm -rf conftest*
12107 fi
dd184caf 12108
d9898ee8 12109
b0322a85
CE
12110fi
12111
12112
12113
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12115$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12116if ${ac_cv_lib_crypt_crypt+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118else
12119 ac_check_lib_save_LIBS=$LIBS
12120LIBS="-lcrypt $LIBS"
12121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122/* end confdefs.h. */
d9898ee8 12123
8d138742
CE
12124/* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127#ifdef __cplusplus
12128extern "C"
12129#endif
12130char crypt ();
8d138742
CE
12131int
12132main ()
12133{
12134return crypt ();
12135 ;
12136 return 0;
12137}
d9898ee8 12138_ACEOF
b0322a85
CE
12139if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_crypt_crypt=yes
d9898ee8 12141else
b0322a85
CE
12142 ac_cv_lib_crypt_crypt=no
12143fi
12144rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146LIBS=$ac_check_lib_save_LIBS
12147fi
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12149$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12150if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12151 CRYPTLIBS="-lcrypt"
d9898ee8 12152fi
12153
b0322a85
CE
12154saveLIBS="$LIBS"
12155LIBS="$CRYPTLIBS $LIBS"
12156ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
12157if test "x$ac_cv_func_crypt" = xyes; then :
d9898ee8 12158
12159cat >>confdefs.h <<_ACEOF
8d138742 12160#define HAVE_CRYPT 1
d9898ee8 12161_ACEOF
12162
d9898ee8 12163fi
12164
8d138742 12165LIBS="$saveLIBS"
b0322a85 12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5
8d138742 12167$as_echo_n "checking for crypt() prototype... " >&6; }
b0322a85 12168if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then :
8d138742 12169 $as_echo_n "(cached) " >&6
d9898ee8 12170else
b0322a85 12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12172/* end confdefs.h. */
8d138742
CE
12173
12174 #if HAVE_CRYPT_H
12175 #include <crypt.h>
12176 #endif
12177 #if HAVE_UNISTD_H
12178 #include <unistd.h>
12179 #endif
12180 int crypt(int, int);
12181
d9898ee8 12182
12183int
12184main ()
12185{
12186
12187 ;
12188 return 0;
12189}
12190_ACEOF
b0322a85 12191if ac_fn_c_try_compile "$LINENO"; then :
8d138742 12192 userdb_cv_NEED_CRYPT_PROTOTYPE=1
d9898ee8 12193else
b0322a85 12194 userdb_cv_NEED_CRYPT_PROTOTYPE=0
d9898ee8 12195fi
dd184caf 12196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12197
d9898ee8 12198
d9898ee8 12199fi
b0322a85 12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
8d138742 12201$as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
d9898ee8 12202
d9898ee8 12203
8d138742
CE
12204cat >>confdefs.h <<_ACEOF
12205#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
d9898ee8 12206_ACEOF
d9898ee8 12207
d9898ee8 12208
d9898ee8 12209
8d138742 12210for ac_func in isatty gettimeofday
b0322a85
CE
12211do :
12212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12213ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12214if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8d138742
CE
12215 cat >>confdefs.h <<_ACEOF
12216#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12217_ACEOF
12218
12219fi
12220done
12221
12222
12223
12224# Check whether --with-random was given.
b0322a85 12225if test "${with_random+set}" = set; then :
8d138742
CE
12226 withval=$with_random; random="$withval"
12227else
12228 random="y"
12229fi
12230
12231
12232case "$random" in
12233/*)
12234 ;;
12235y*|1*)
b0322a85 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5
8d138742 12237$as_echo_n "checking for random source... " >&6; }
b0322a85 12238if ${userdb_cv_RANDOM+:} false; then :
8d138742 12239 $as_echo_n "(cached) " >&6
d9898ee8 12240else
8d138742
CE
12241 if test -c /dev/urandom
12242 then
12243 userdb_cv_RANDOM=/dev/urandom
12244 else
12245 if test -c /dev/random
12246 then
12247 userdb_cv_RANDOM=/dev/random
12248 else
12249 userdb_cv_RANDOM="none"
12250 fi
12251 fi
d9898ee8 12252
d9898ee8 12253fi
b0322a85 12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_RANDOM" >&5
8d138742
CE
12255$as_echo "$userdb_cv_RANDOM" >&6; }
12256 random="$userdb_cv_RANDOM"
12257 ;;
12258*)
12259 random="none"
12260 ;;
12261esac
12262
12263if test "$random" != "none"
12264then
dd184caf 12265
8d138742
CE
12266cat >>confdefs.h <<_ACEOF
12267#define RANDOM "$random"
12268_ACEOF
dd184caf 12269
d9898ee8 12270fi
8d138742 12271
b0322a85 12272 if test -d ${srcdir}/../libs/docbook; then
8d138742
CE
12273 HAVE_SGML_TRUE=
12274 HAVE_SGML_FALSE='#'
12275else
12276 HAVE_SGML_TRUE='#'
12277 HAVE_SGML_FALSE=
d9898ee8 12278fi
d9898ee8 12279
8d138742
CE
12280
12281ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb"
12282
12283cat >confcache <<\_ACEOF
12284# This file is a shell script that caches the results of configure
12285# tests run on this system so they can be shared between configure
12286# scripts and configure runs, see configure's option --config-cache.
12287# It is not useful on other systems. If it contains results you don't
12288# want to keep, you may remove or edit it.
12289#
12290# config.status only pays attention to the cache file if you give it
12291# the --recheck option to rerun configure.
12292#
12293# `ac_cv_env_foo' variables (set or unset) will be overridden when
12294# loading this file, other *unset* `ac_cv_foo' will be assigned the
12295# following values.
12296
d9898ee8 12297_ACEOF
12298
8d138742
CE
12299# The following way of writing the cache mishandles newlines in values,
12300# but we know of no workaround that is simple, portable, and efficient.
12301# So, we kill variables containing newlines.
12302# Ultrix sh set writes to stderr and can't be redirected directly,
12303# and sets the high bit in the cache file unless we assign to the vars.
12304(
12305 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12306 eval ac_val=\$$ac_var
12307 case $ac_val in #(
12308 *${as_nl}*)
12309 case $ac_var in #(
b0322a85 12310 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
12311$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12312 esac
12313 case $ac_var in #(
12314 _ | IFS | as_nl) ;; #(
12315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 12316 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
12317 esac ;;
12318 esac
12319 done
12320
12321 (set) 2>&1 |
12322 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12323 *${as_nl}ac_space=\ *)
b0322a85
CE
12324 # `set' does not quote correctly, so add quotes: double-quote
12325 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
12326 sed -n \
12327 "s/'/'\\\\''/g;
12328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12329 ;; #(
12330 *)
12331 # `set' quotes correctly as required by POSIX, so do not add quotes.
12332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12333 ;;
12334 esac |
12335 sort
12336) |
12337 sed '
12338 /^ac_cv_env_/b end
12339 t clear
12340 :clear
12341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12342 t end
12343 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12344 :end' >>confcache
12345if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12346 if test -w "$cache_file"; then
b0322a85
CE
12347 if test "x$cache_file" != "x/dev/null"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 12349$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
12350 if test ! -f "$cache_file" || test -h "$cache_file"; then
12351 cat confcache >"$cache_file"
12352 else
12353 case $cache_file in #(
12354 */* | ?:*)
12355 mv -f confcache "$cache_file"$$ &&
12356 mv -f "$cache_file"$$ "$cache_file" ;; #(
12357 *)
12358 mv -f confcache "$cache_file" ;;
12359 esac
12360 fi
12361 fi
8d138742 12362 else
b0322a85 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
12364$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12365 fi
d9898ee8 12366fi
8d138742 12367rm -f confcache
d9898ee8 12368
8d138742
CE
12369test "x$prefix" = xNONE && prefix=$ac_default_prefix
12370# Let make expand exec_prefix.
12371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 12372
b0322a85 12373DEFS=-DHAVE_CONFIG_H
d9898ee8 12374
8d138742
CE
12375ac_libobjs=
12376ac_ltlibobjs=
12377for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12378 # 1. Remove the extension, and $U if already installed.
12379 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12380 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12381 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12382 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
12383 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12384 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
12385done
12386LIBOBJS=$ac_libobjs
d9898ee8 12387
8d138742 12388LTLIBOBJS=$ac_ltlibobjs
d9898ee8 12389
12390
b0322a85
CE
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12392$as_echo_n "checking that generated files are newer than configure... " >&6; }
12393 if test -n "$am_sleep_pid"; then
12394 # Hide warnings about reused PIDs.
12395 wait $am_sleep_pid 2>/dev/null
12396 fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12398$as_echo "done" >&6; }
8d138742
CE
12399 if test -n "$EXEEXT"; then
12400 am__EXEEXT_TRUE=
12401 am__EXEEXT_FALSE='#'
d9898ee8 12402else
8d138742
CE
12403 am__EXEEXT_TRUE='#'
12404 am__EXEEXT_FALSE=
12405fi
d9898ee8 12406
8d138742 12407if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
12408 as_fn_error $? "conditional \"AMDEP\" was never defined.
12409Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12410fi
12411if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
12412 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12413Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12414fi
12415if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
b0322a85
CE
12416 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
12417Usually this means the macro was only invoked conditionally." "$LINENO" 5
d9898ee8 12418fi
dd184caf 12419
b0322a85 12420: "${CONFIG_STATUS=./config.status}"
8d138742
CE
12421ac_write_fail=0
12422ac_clean_files_save=$ac_clean_files
12423ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 12424{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 12425$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
12426as_write_fail=0
12427cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
12428#! $SHELL
12429# Generated by $as_me.
12430# Run this file to recreate the current configuration.
12431# Compiler output produced by configure, useful for debugging
12432# configure, is in config.log if it exists.
d9898ee8 12433
8d138742
CE
12434debug=false
12435ac_cs_recheck=false
12436ac_cs_silent=false
8d138742 12437
b0322a85
CE
12438SHELL=\${CONFIG_SHELL-$SHELL}
12439export SHELL
12440_ASEOF
12441cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12442## -------------------- ##
12443## M4sh Initialization. ##
12444## -------------------- ##
8d138742
CE
12445
12446# Be more Bourne compatible
12447DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 12448if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
12449 emulate sh
12450 NULLCMD=:
12451 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12452 # is contrary to our usage. Disable this feature.
12453 alias -g '${1+"$@"}'='"$@"'
12454 setopt NO_GLOB_SUBST
d9898ee8 12455else
b0322a85
CE
12456 case `(set -o) 2>/dev/null` in #(
12457 *posix*) :
12458 set -o posix ;; #(
12459 *) :
12460 ;;
8d138742 12461esac
d9898ee8 12462fi
dd184caf 12463
d9898ee8 12464
8d138742
CE
12465as_nl='
12466'
12467export as_nl
12468# Printing a long string crashes Solaris 7 /usr/bin/printf.
12469as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12470as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12471as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
12472# Prefer a ksh shell builtin over an external printf program on Solaris,
12473# but without wasting forks for bash or zsh.
12474if test -z "$BASH_VERSION$ZSH_VERSION" \
12475 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12476 as_echo='print -r --'
12477 as_echo_n='print -rn --'
12478elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
12479 as_echo='printf %s\n'
12480 as_echo_n='printf %s'
12481else
12482 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12483 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12484 as_echo_n='/usr/ucb/echo -n'
12485 else
12486 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12487 as_echo_n_body='eval
12488 arg=$1;
b0322a85 12489 case $arg in #(
8d138742
CE
12490 *"$as_nl"*)
12491 expr "X$arg" : "X\\(.*\\)$as_nl";
12492 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12493 esac;
12494 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12495 '
12496 export as_echo_n_body
12497 as_echo_n='sh -c $as_echo_n_body as_echo'
12498 fi
12499 export as_echo_body
12500 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 12501fi
d9898ee8 12502
8d138742
CE
12503# The user is always right.
12504if test "${PATH_SEPARATOR+set}" != set; then
12505 PATH_SEPARATOR=:
12506 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12507 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12508 PATH_SEPARATOR=';'
12509 }
d9898ee8 12510fi
d9898ee8 12511
d9898ee8 12512
8d138742
CE
12513# IFS
12514# We need space, tab and new line, in precisely that order. Quoting is
12515# there to prevent editors from complaining about space-tab.
12516# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12517# splitting by setting IFS to empty value.)
12518IFS=" "" $as_nl"
d9898ee8 12519
8d138742 12520# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
12521as_myself=
12522case $0 in #((
8d138742
CE
12523 *[\\/]* ) as_myself=$0 ;;
12524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525for as_dir in $PATH
12526do
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
b0322a85
CE
12529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12530 done
8d138742
CE
12531IFS=$as_save_IFS
12532
12533 ;;
dd184caf 12534esac
8d138742
CE
12535# We did not find ourselves, most probably we were run as `sh COMMAND'
12536# in which case we are not to be found in the path.
12537if test "x$as_myself" = x; then
12538 as_myself=$0
12539fi
12540if test ! -f "$as_myself"; then
12541 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 12542 exit 1
8d138742 12543fi
d9898ee8 12544
b0322a85
CE
12545# Unset variables that we do not need and which cause bugs (e.g. in
12546# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12547# suppresses any "Segmentation fault" message there. '((' could
12548# trigger a bug in pdksh 5.2.14.
12549for as_var in BASH_ENV ENV MAIL MAILPATH
12550do eval test x\${$as_var+set} = xset \
12551 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
12552done
12553PS1='$ '
12554PS2='> '
12555PS4='+ '
12556
12557# NLS nuisances.
12558LC_ALL=C
12559export LC_ALL
12560LANGUAGE=C
12561export LANGUAGE
12562
b0322a85
CE
12563# CDPATH.
12564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12565
12566
12567# as_fn_error STATUS ERROR [LINENO LOG_FD]
12568# ----------------------------------------
12569# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12570# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12571# script with STATUS, using 1 if that was 0.
12572as_fn_error ()
12573{
12574 as_status=$1; test $as_status -eq 0 && as_status=1
12575 if test "$4"; then
12576 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12577 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12578 fi
12579 $as_echo "$as_me: error: $2" >&2
12580 as_fn_exit $as_status
12581} # as_fn_error
12582
12583
12584# as_fn_set_status STATUS
12585# -----------------------
12586# Set $? to STATUS, without forking.
12587as_fn_set_status ()
12588{
12589 return $1
12590} # as_fn_set_status
12591
12592# as_fn_exit STATUS
12593# -----------------
12594# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12595as_fn_exit ()
12596{
12597 set +e
12598 as_fn_set_status $1
12599 exit $1
12600} # as_fn_exit
12601
12602# as_fn_unset VAR
12603# ---------------
12604# Portably unset VAR.
12605as_fn_unset ()
12606{
12607 { eval $1=; unset $1;}
12608}
12609as_unset=as_fn_unset
12610# as_fn_append VAR VALUE
12611# ----------------------
12612# Append the text in VALUE to the end of the definition contained in VAR. Take
12613# advantage of any shell optimizations that allow amortized linear growth over
12614# repeated appends, instead of the typical quadratic growth present in naive
12615# implementations.
12616if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12617 eval 'as_fn_append ()
12618 {
12619 eval $1+=\$2
12620 }'
12621else
12622 as_fn_append ()
12623 {
12624 eval $1=\$$1\$2
12625 }
12626fi # as_fn_append
12627
12628# as_fn_arith ARG...
12629# ------------------
12630# Perform arithmetic evaluation on the ARGs, and store the result in the
12631# global $as_val. Take advantage of shells that can avoid forks. The arguments
12632# must be portable across $(()) and expr.
12633if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12634 eval 'as_fn_arith ()
12635 {
12636 as_val=$(( $* ))
12637 }'
12638else
12639 as_fn_arith ()
12640 {
12641 as_val=`expr "$@" || test $? -eq 1`
12642 }
12643fi # as_fn_arith
12644
12645
8d138742
CE
12646if expr a : '\(a\)' >/dev/null 2>&1 &&
12647 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12648 as_expr=expr
12649else
12650 as_expr=false
d9898ee8 12651fi
dd184caf 12652
8d138742
CE
12653if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12654 as_basename=basename
12655else
12656 as_basename=false
d9898ee8 12657fi
d9898ee8 12658
b0322a85
CE
12659if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12660 as_dirname=dirname
12661else
12662 as_dirname=false
12663fi
d9898ee8 12664
8d138742
CE
12665as_me=`$as_basename -- "$0" ||
12666$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12667 X"$0" : 'X\(//\)$' \| \
12668 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12669$as_echo X/"$0" |
12670 sed '/^.*\/\([^/][^/]*\)\/*$/{
12671 s//\1/
12672 q
12673 }
12674 /^X\/\(\/\/\)$/{
12675 s//\1/
12676 q
12677 }
12678 /^X\/\(\/\).*/{
12679 s//\1/
12680 q
12681 }
12682 s/.*/./; q'`
d9898ee8 12683
b0322a85
CE
12684# Avoid depending upon Character Ranges.
12685as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12686as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12687as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12688as_cr_digits='0123456789'
12689as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 12690
8d138742 12691ECHO_C= ECHO_N= ECHO_T=
b0322a85 12692case `echo -n x` in #(((((
8d138742 12693-n*)
b0322a85 12694 case `echo 'xy\c'` in
8d138742 12695 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
12696 xy) ECHO_C='\c';;
12697 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12698 ECHO_T=' ';;
8d138742
CE
12699 esac;;
12700*)
12701 ECHO_N='-n';;
12702esac
d9898ee8 12703
8d138742
CE
12704rm -f conf$$ conf$$.exe conf$$.file
12705if test -d conf$$.dir; then
12706 rm -f conf$$.dir/conf$$.file
d9898ee8 12707else
8d138742
CE
12708 rm -f conf$$.dir
12709 mkdir conf$$.dir 2>/dev/null
12710fi
12711if (echo >conf$$.file) 2>/dev/null; then
12712 if ln -s conf$$.file conf$$ 2>/dev/null; then
12713 as_ln_s='ln -s'
12714 # ... but there are two gotchas:
12715 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12716 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
b0322a85 12717 # In both cases, we have to default to `cp -pR'.
8d138742 12718 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 12719 as_ln_s='cp -pR'
8d138742
CE
12720 elif ln conf$$.file conf$$ 2>/dev/null; then
12721 as_ln_s=ln
12722 else
b0322a85 12723 as_ln_s='cp -pR'
8d138742 12724 fi
d9898ee8 12725else
b0322a85 12726 as_ln_s='cp -pR'
d9898ee8 12727fi
8d138742
CE
12728rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12729rmdir conf$$.dir 2>/dev/null
dd184caf 12730
b0322a85
CE
12731
12732# as_fn_mkdir_p
12733# -------------
12734# Create "$as_dir" as a directory, including parents if necessary.
12735as_fn_mkdir_p ()
12736{
12737
12738 case $as_dir in #(
12739 -*) as_dir=./$as_dir;;
12740 esac
12741 test -d "$as_dir" || eval $as_mkdir_p || {
12742 as_dirs=
12743 while :; do
12744 case $as_dir in #(
12745 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12746 *) as_qdir=$as_dir;;
12747 esac
12748 as_dirs="'$as_qdir' $as_dirs"
12749 as_dir=`$as_dirname -- "$as_dir" ||
12750$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12751 X"$as_dir" : 'X\(//\)[^/]' \| \
12752 X"$as_dir" : 'X\(//\)$' \| \
12753 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12754$as_echo X"$as_dir" |
12755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12756 s//\1/
12757 q
12758 }
12759 /^X\(\/\/\)[^/].*/{
12760 s//\1/
12761 q
12762 }
12763 /^X\(\/\/\)$/{
12764 s//\1/
12765 q
12766 }
12767 /^X\(\/\).*/{
12768 s//\1/
12769 q
12770 }
12771 s/.*/./; q'`
12772 test -d "$as_dir" && break
12773 done
12774 test -z "$as_dirs" || eval "mkdir $as_dirs"
12775 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12776
12777
12778} # as_fn_mkdir_p
8d138742 12779if mkdir -p . 2>/dev/null; then
b0322a85 12780 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
12781else
12782 test -d ./-p && rmdir ./-p
12783 as_mkdir_p=false
d9898ee8 12784fi
8d138742 12785
b0322a85
CE
12786
12787# as_fn_executable_p FILE
12788# -----------------------
12789# Test if FILE is an executable regular file.
12790as_fn_executable_p ()
12791{
12792 test -f "$1" && test -x "$1"
12793} # as_fn_executable_p
12794as_test_x='test -x'
12795as_executable_p=as_fn_executable_p
d9898ee8 12796
8d138742
CE
12797# Sed expression to map a string onto a valid CPP name.
12798as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12799
8d138742
CE
12800# Sed expression to map a string onto a valid variable name.
12801as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12802
d9898ee8 12803
8d138742 12804exec 6>&1
b0322a85
CE
12805## ----------------------------------- ##
12806## Main body of $CONFIG_STATUS script. ##
12807## ----------------------------------- ##
12808_ASEOF
12809test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 12810
b0322a85
CE
12811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12812# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
12813# report actual input values of CONFIG_FILES etc. instead of their
12814# values after options handling.
12815ac_log="
12816This file was extended by libuserdb $as_me 0.10, which was
b0322a85 12817generated by GNU Autoconf 2.69. Invocation command line was
8d138742
CE
12818
12819 CONFIG_FILES = $CONFIG_FILES
12820 CONFIG_HEADERS = $CONFIG_HEADERS
12821 CONFIG_LINKS = $CONFIG_LINKS
12822 CONFIG_COMMANDS = $CONFIG_COMMANDS
12823 $ $0 $@
12824
12825on `(hostname || uname -n) 2>/dev/null | sed 1q`
12826"
d9898ee8 12827
d9898ee8 12828_ACEOF
12829
8d138742
CE
12830case $ac_config_files in *"
12831"*) set x $ac_config_files; shift; ac_config_files=$*;;
12832esac
12833
b0322a85
CE
12834case $ac_config_headers in *"
12835"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12836esac
8d138742
CE
12837
12838
12839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12840# Files that config.status was made for.
12841config_files="$ac_config_files"
b0322a85 12842config_headers="$ac_config_headers"
8d138742 12843config_commands="$ac_config_commands"
d9898ee8 12844
d9898ee8 12845_ACEOF
12846
8d138742
CE
12847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12848ac_cs_usage="\
b0322a85
CE
12849\`$as_me' instantiates files and other configuration actions
12850from templates according to the current configuration. Unless the files
12851and actions are specified as TAGs, all are instantiated by default.
8d138742 12852
b0322a85 12853Usage: $0 [OPTION]... [TAG]...
8d138742
CE
12854
12855 -h, --help print this help, then exit
12856 -V, --version print version number and configuration settings, then exit
b0322a85 12857 --config print configuration, then exit
8d138742
CE
12858 -q, --quiet, --silent
12859 do not print progress messages
12860 -d, --debug don't remove temporary files
12861 --recheck update $as_me by reconfiguring in the same conditions
12862 --file=FILE[:TEMPLATE]
12863 instantiate the configuration file FILE
b0322a85
CE
12864 --header=FILE[:TEMPLATE]
12865 instantiate the configuration header FILE
8d138742
CE
12866
12867Configuration files:
12868$config_files
12869
b0322a85
CE
12870Configuration headers:
12871$config_headers
12872
8d138742
CE
12873Configuration commands:
12874$config_commands
12875
b0322a85 12876Report bugs to <courier-users@lists.sourceforge.net>."
d9898ee8 12877
d9898ee8 12878_ACEOF
8d138742 12879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 12880ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742
CE
12881ac_cs_version="\\
12882libuserdb config.status 0.10
b0322a85
CE
12883configured by $0, generated by GNU Autoconf 2.69,
12884 with options \\"\$ac_cs_config\\"
d9898ee8 12885
b0322a85 12886Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
12887This config.status script is free software; the Free Software Foundation
12888gives unlimited permission to copy, distribute and modify it."
12889
12890ac_pwd='$ac_pwd'
12891srcdir='$srcdir'
12892INSTALL='$INSTALL'
12893MKDIR_P='$MKDIR_P'
12894AWK='$AWK'
12895test -n "\$AWK" || AWK=awk
d9898ee8 12896_ACEOF
d9898ee8 12897
8d138742
CE
12898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12899# The default lists apply if the user does not specify any file.
12900ac_need_defaults=:
12901while test $# != 0
12902do
12903 case $1 in
b0322a85 12904 --*=?*)
8d138742
CE
12905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12907 ac_shift=:
12908 ;;
b0322a85
CE
12909 --*=)
12910 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12911 ac_optarg=
12912 ac_shift=:
12913 ;;
8d138742
CE
12914 *)
12915 ac_option=$1
12916 ac_optarg=$2
12917 ac_shift=shift
12918 ;;
12919 esac
12920
12921 case $ac_option in
12922 # Handling of the options.
12923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12924 ac_cs_recheck=: ;;
12925 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12926 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
12927 --config | --confi | --conf | --con | --co | --c )
12928 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
12929 --debug | --debu | --deb | --de | --d | -d )
12930 debug=: ;;
12931 --file | --fil | --fi | --f )
b0322a85
CE
12932 $ac_shift
12933 case $ac_optarg in
12934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12935 '') as_fn_error $? "missing file argument" ;;
12936 esac
12937 as_fn_append CONFIG_FILES " '$ac_optarg'"
12938 ac_need_defaults=false;;
12939 --header | --heade | --head | --hea )
8d138742
CE
12940 $ac_shift
12941 case $ac_optarg in
12942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12943 esac
b0322a85 12944 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742 12945 ac_need_defaults=false;;
b0322a85
CE
12946 --he | --h)
12947 # Conflict between --help and --header
12948 as_fn_error $? "ambiguous option: \`$1'
12949Try \`$0 --help' for more information.";;
12950 --help | --hel | -h )
8d138742
CE
12951 $as_echo "$ac_cs_usage"; exit ;;
12952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12954 ac_cs_silent=: ;;
12955
12956 # This is an error.
b0322a85
CE
12957 -*) as_fn_error $? "unrecognized option: \`$1'
12958Try \`$0 --help' for more information." ;;
8d138742 12959
b0322a85 12960 *) as_fn_append ac_config_targets " $1"
8d138742
CE
12961 ac_need_defaults=false ;;
12962
12963 esac
12964 shift
12965done
12966
12967ac_configure_extra_args=
12968
12969if $ac_cs_silent; then
12970 exec 6>/dev/null
12971 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 12972fi
dd184caf 12973
8d138742
CE
12974_ACEOF
12975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12976if \$ac_cs_recheck; then
b0322a85 12977 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
12978 shift
12979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12980 CONFIG_SHELL='$SHELL'
12981 export CONFIG_SHELL
12982 exec "\$@"
d9898ee8 12983fi
d9898ee8 12984
d9898ee8 12985_ACEOF
8d138742
CE
12986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12987exec 5>>config.log
12988{
12989 echo
12990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12991## Running $as_me. ##
12992_ASBOX
12993 $as_echo "$ac_log"
12994} >&5
d9898ee8 12995
8d138742
CE
12996_ACEOF
12997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12998#
12999# INIT-COMMANDS
13000#
13001AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13002
13003
8d138742
CE
13004# The HP-UX ksh and POSIX shell print the target directory to stdout
13005# if CDPATH is set.
13006(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13007
8d138742
CE
13008sed_quote_subst='$sed_quote_subst'
13009double_quote_subst='$double_quote_subst'
13010delay_variable_subst='$delay_variable_subst'
b0322a85
CE
13011macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13012macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13013enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13014enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13015pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13016enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13017SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13018ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13019PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13020host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13021host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13022host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13023build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13024build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13025build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13026SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13027Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13028GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13029EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13030FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13031LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13032NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13033LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13034max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13035ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13036exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13037lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13038lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13039lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13040lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13041lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13042reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13043reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13044OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13045deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13046file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13047file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13048want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13049DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13050sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13051AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13052AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13053archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13054STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13055RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13056old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13057old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13058old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13059lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13060CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13061CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13062compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13063GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13064lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13065lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13066lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13067lt_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"`'
13068nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13069lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13070objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13071MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13072lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13073lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13074lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13075lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13076lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13077need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13078MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13079DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13080NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13081LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13082OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13083OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13084libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13085shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13086extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13087archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13088enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13089export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13090whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13091compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13092old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13093old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13094archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13095archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13096module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13097module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13098with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13099allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13100no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13101hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13102hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13103hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13104hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13105hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13106hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13107hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13108inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13109link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13110always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13111export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13112exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13113include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13114prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13115postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13116file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13117variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13118need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13119need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13120version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13121runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13122shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13123shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13124libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13125library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13126soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13127install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13128postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13129postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13130finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13131finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13132hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13133sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13134sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13135hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13136enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13137enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13138enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13139old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13140striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8d138742
CE
13141
13142LTCC='$LTCC'
13143LTCFLAGS='$LTCFLAGS'
13144compiler='$compiler_DEFAULT'
13145
b0322a85
CE
13146# A function that is used when there is no print builtin or printf.
13147func_fallback_echo ()
13148{
13149 eval 'cat <<_LTECHO_EOF
13150\$1
13151_LTECHO_EOF'
13152}
13153
8d138742 13154# Quote evaled strings.
b0322a85
CE
13155for var in SHELL \
13156ECHO \
13157PATH_SEPARATOR \
13158SED \
8d138742
CE
13159GREP \
13160EGREP \
13161FGREP \
13162LD \
13163NM \
13164LN_S \
13165lt_SP2NL \
13166lt_NL2SP \
13167reload_flag \
13168OBJDUMP \
13169deplibs_check_method \
13170file_magic_cmd \
b0322a85
CE
13171file_magic_glob \
13172want_nocaseglob \
13173DLLTOOL \
13174sharedlib_from_linklib_cmd \
8d138742
CE
13175AR \
13176AR_FLAGS \
b0322a85 13177archiver_list_spec \
8d138742
CE
13178STRIP \
13179RANLIB \
13180CC \
13181CFLAGS \
13182compiler \
13183lt_cv_sys_global_symbol_pipe \
13184lt_cv_sys_global_symbol_to_cdecl \
13185lt_cv_sys_global_symbol_to_c_name_address \
13186lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b0322a85 13187nm_file_list_spec \
8d138742 13188lt_prog_compiler_no_builtin_flag \
8d138742 13189lt_prog_compiler_pic \
b0322a85 13190lt_prog_compiler_wl \
8d138742
CE
13191lt_prog_compiler_static \
13192lt_cv_prog_compiler_c_o \
13193need_locks \
b0322a85 13194MANIFEST_TOOL \
8d138742
CE
13195DSYMUTIL \
13196NMEDIT \
13197LIPO \
13198OTOOL \
13199OTOOL64 \
13200shrext_cmds \
13201export_dynamic_flag_spec \
13202whole_archive_flag_spec \
13203compiler_needs_object \
13204with_gnu_ld \
13205allow_undefined_flag \
13206no_undefined_flag \
13207hardcode_libdir_flag_spec \
8d138742 13208hardcode_libdir_separator \
8d138742
CE
13209exclude_expsyms \
13210include_expsyms \
13211file_list_spec \
13212variables_saved_for_relink \
13213libname_spec \
13214library_names_spec \
13215soname_spec \
b0322a85 13216install_override_mode \
8d138742
CE
13217finish_eval \
13218old_striplib \
13219striplib; do
b0322a85 13220 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13221 *[\\\\\\\`\\"\\\$]*)
b0322a85 13222 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8d138742
CE
13223 ;;
13224 *)
13225 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13226 ;;
13227 esac
13228done
d9898ee8 13229
8d138742
CE
13230# Double-quote double-evaled strings.
13231for var in reload_cmds \
13232old_postinstall_cmds \
13233old_postuninstall_cmds \
13234old_archive_cmds \
13235extract_expsyms_cmds \
13236old_archive_from_new_cmds \
13237old_archive_from_expsyms_cmds \
13238archive_cmds \
13239archive_expsym_cmds \
13240module_cmds \
13241module_expsym_cmds \
13242export_symbols_cmds \
13243prelink_cmds \
b0322a85 13244postlink_cmds \
8d138742
CE
13245postinstall_cmds \
13246postuninstall_cmds \
13247finish_cmds \
13248sys_lib_search_path_spec \
13249sys_lib_dlsearch_path_spec; do
b0322a85 13250 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13251 *[\\\\\\\`\\"\\\$]*)
b0322a85 13252 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8d138742
CE
13253 ;;
13254 *)
13255 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13256 ;;
13257 esac
13258done
13259
8d138742
CE
13260ac_aux_dir='$ac_aux_dir'
13261xsi_shell='$xsi_shell'
13262lt_shell_append='$lt_shell_append'
dd184caf 13263
8d138742
CE
13264# See if we are running on zsh, and set the options which allow our
13265# commands through without removal of \ escapes INIT.
13266if test -n "\${ZSH_VERSION+set}" ; then
13267 setopt NO_GLOB_SUBST
d9898ee8 13268fi
13269
d9898ee8 13270
8d138742
CE
13271 PACKAGE='$PACKAGE'
13272 VERSION='$VERSION'
13273 TIMESTAMP='$TIMESTAMP'
13274 RM='$RM'
13275 ofile='$ofile'
d9898ee8 13276
d9898ee8 13277
d9898ee8 13278
d9898ee8 13279
d9898ee8 13280_ACEOF
d9898ee8 13281
8d138742 13282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 13283
8d138742
CE
13284# Handling of arguments.
13285for ac_config_target in $ac_config_targets
13286do
13287 case $ac_config_target in
b0322a85 13288 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8d138742
CE
13289 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13290 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13291 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13292 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
13293 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
13294 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
d9898ee8 13295
b0322a85 13296 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
13297 esac
13298done
d9898ee8 13299
d9898ee8 13300
8d138742
CE
13301# If the user did not use the arguments to specify the items to instantiate,
13302# then the envvar interface is used. Set only those that are not.
13303# We use the long form for the default assignment because of an extremely
13304# bizarre bug on SunOS 4.1.3.
13305if $ac_need_defaults; then
13306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b0322a85 13307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8d138742
CE
13308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13309fi
d9898ee8 13310
8d138742
CE
13311# Have a temporary directory for convenience. Make it in the build tree
13312# simply because there is no reason against having it here, and in addition,
13313# creating and moving files from /tmp can sometimes cause problems.
13314# Hook for its removal unless debugging.
13315# Note that there is a small window in which the directory will not be cleaned:
13316# after its creation but before its name has been assigned to `$tmp'.
13317$debug ||
d9898ee8 13318{
b0322a85 13319 tmp= ac_tmp=
8d138742 13320 trap 'exit_status=$?
b0322a85
CE
13321 : "${ac_tmp:=$tmp}"
13322 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 13323' 0
b0322a85 13324 trap 'as_fn_exit 1' 1 2 13 15
d9898ee8 13325}
8d138742 13326# Create a (secure) tmp directory for tmp files.
d9898ee8 13327
8d138742
CE
13328{
13329 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 13330 test -d "$tmp"
8d138742
CE
13331} ||
13332{
13333 tmp=./conf$$-$RANDOM
13334 (umask 077 && mkdir "$tmp")
b0322a85
CE
13335} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13336ac_tmp=$tmp
dd184caf 13337
8d138742
CE
13338# Set up the scripts for CONFIG_FILES section.
13339# No need to generate them if there are no CONFIG_FILES.
13340# This happens for instance with `./config.status config.h'.
13341if test -n "$CONFIG_FILES"; then
d9898ee8 13342
13343
b0322a85
CE
13344ac_cr=`echo X | tr X '\015'`
13345# On cygwin, bash can eat \r inside `` if the user requested igncr.
13346# But we know of no other shell where ac_cr would be empty at this
13347# point, so we can use a bashism as a fallback.
13348if test "x$ac_cr" = x; then
13349 eval ac_cr=\$\'\\r\'
13350fi
8d138742
CE
13351ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13352if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13353 ac_cs_awk_cr='\\r'
13354else
13355 ac_cs_awk_cr=$ac_cr
d9898ee8 13356fi
d9898ee8 13357
b0322a85 13358echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d9898ee8 13359_ACEOF
13360
13361
8d138742
CE
13362{
13363 echo "cat >conf$$subs.awk <<_ACEOF" &&
13364 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13365 echo "_ACEOF"
13366} >conf$$subs.sh ||
b0322a85
CE
13367 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13368ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
13369ac_delim='%!_!# '
13370for ac_last_try in false false false false false :; do
13371 . ./conf$$subs.sh ||
b0322a85 13372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 13373
8d138742
CE
13374 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13375 if test $ac_delim_n = $ac_delim_num; then
13376 break
13377 elif $ac_last_try; then
b0322a85 13378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
13379 else
13380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13381 fi
13382done
13383rm -f conf$$subs.sh
13384
13385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13386cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
13387_ACEOF
13388sed -n '
13389h
13390s/^/S["/; s/!.*/"]=/
13391p
13392g
13393s/^[^!]*!//
13394:repl
13395t repl
13396s/'"$ac_delim"'$//
13397t delim
13398:nl
13399h
b0322a85 13400s/\(.\{148\}\)..*/\1/
8d138742
CE
13401t more1
13402s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13403p
13404n
13405b repl
13406:more1
13407s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13408p
13409g
13410s/.\{148\}//
13411t nl
13412:delim
13413h
b0322a85 13414s/\(.\{148\}\)..*/\1/
8d138742
CE
13415t more2
13416s/["\\]/\\&/g; s/^/"/; s/$/"/
13417p
13418b
13419:more2
13420s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13421p
13422g
13423s/.\{148\}//
13424t delim
13425' <conf$$subs.awk | sed '
13426/^[^""]/{
13427 N
13428 s/\n//
13429}
13430' >>$CONFIG_STATUS || ac_write_fail=1
13431rm -f conf$$subs.awk
13432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13433_ACAWK
b0322a85 13434cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
13435 for (key in S) S_is_set[key] = 1
13436 FS = "\a"
d9898ee8 13437
8d138742
CE
13438}
13439{
13440 line = $ 0
13441 nfields = split(line, field, "@")
13442 substed = 0
13443 len = length(field[1])
13444 for (i = 2; i < nfields; i++) {
13445 key = field[i]
13446 keylen = length(key)
13447 if (S_is_set[key]) {
13448 value = S[key]
13449 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13450 len += length(value) + length(field[++i])
13451 substed = 1
13452 } else
13453 len += 1 + keylen
13454 }
d9898ee8 13455
8d138742
CE
13456 print line
13457}
13458
13459_ACAWK
13460_ACEOF
13461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13462if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13463 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 13464else
8d138742 13465 cat
b0322a85
CE
13466fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13467 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
d9898ee8 13468_ACEOF
d9898ee8 13469
b0322a85
CE
13470# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13471# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
13472# trailing colons and then remove the whole line if VPATH becomes empty
13473# (actually we leave an empty line to preserve line numbers).
13474if test "x$srcdir" = x.; then
b0322a85
CE
13475 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13476h
13477s///
13478s/^/:/
13479s/[ ]*$/:/
13480s/:\$(srcdir):/:/g
13481s/:\${srcdir}:/:/g
13482s/:@srcdir@:/:/g
13483s/^:*//
8d138742 13484s/:*$//
b0322a85
CE
13485x
13486s/\(=[ ]*\).*/\1/
13487G
13488s/\n//
8d138742
CE
13489s/^[^=]*=[ ]*$//
13490}'
13491fi
d9898ee8 13492
8d138742
CE
13493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13494fi # test -n "$CONFIG_FILES"
d9898ee8 13495
b0322a85
CE
13496# Set up the scripts for CONFIG_HEADERS section.
13497# No need to generate them if there are no CONFIG_HEADERS.
13498# This happens for instance with `./config.status Makefile'.
13499if test -n "$CONFIG_HEADERS"; then
13500cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13501BEGIN {
13502_ACEOF
13503
13504# Transform confdefs.h into an awk script `defines.awk', embedded as
13505# here-document in config.status, that substitutes the proper values into
13506# config.h.in to produce config.h.
13507
13508# Create a delimiter string that does not exist in confdefs.h, to ease
13509# handling of long lines.
13510ac_delim='%!_!# '
13511for ac_last_try in false false :; do
13512 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13513 if test -z "$ac_tt"; then
13514 break
13515 elif $ac_last_try; then
13516 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13517 else
13518 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13519 fi
13520done
13521
13522# For the awk script, D is an array of macro values keyed by name,
13523# likewise P contains macro parameters if any. Preserve backslash
13524# newline sequences.
13525
13526ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13527sed -n '
13528s/.\{148\}/&'"$ac_delim"'/g
13529t rset
13530:rset
13531s/^[ ]*#[ ]*define[ ][ ]*/ /
13532t def
13533d
13534:def
13535s/\\$//
13536t bsnl
13537s/["\\]/\\&/g
13538s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13539D["\1"]=" \3"/p
13540s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13541d
13542:bsnl
13543s/["\\]/\\&/g
13544s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13545D["\1"]=" \3\\\\\\n"\\/p
13546t cont
13547s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13548t cont
13549d
13550:cont
13551n
13552s/.\{148\}/&'"$ac_delim"'/g
13553t clear
13554:clear
13555s/\\$//
13556t bsnlc
13557s/["\\]/\\&/g; s/^/"/; s/$/"/p
13558d
13559:bsnlc
13560s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13561b cont
13562' <confdefs.h | sed '
13563s/'"$ac_delim"'/"\\\
13564"/g' >>$CONFIG_STATUS || ac_write_fail=1
13565
13566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13567 for (key in D) D_is_set[key] = 1
13568 FS = "\a"
13569}
13570/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13571 line = \$ 0
13572 split(line, arg, " ")
13573 if (arg[1] == "#") {
13574 defundef = arg[2]
13575 mac1 = arg[3]
13576 } else {
13577 defundef = substr(arg[1], 2)
13578 mac1 = arg[2]
13579 }
13580 split(mac1, mac2, "(") #)
13581 macro = mac2[1]
13582 prefix = substr(line, 1, index(line, defundef) - 1)
13583 if (D_is_set[macro]) {
13584 # Preserve the white space surrounding the "#".
13585 print prefix "define", macro P[macro] D[macro]
13586 next
13587 } else {
13588 # Replace #undef with comments. This is necessary, for example,
13589 # in the case of _POSIX_SOURCE, which is predefined and required
13590 # on some systems where configure will not decide to define it.
13591 if (defundef == "undef") {
13592 print "/*", prefix defundef, macro, "*/"
13593 next
13594 }
13595 }
13596}
13597{ print }
13598_ACAWK
13599_ACEOF
13600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13602fi # test -n "$CONFIG_HEADERS"
13603
d9898ee8 13604
b0322a85 13605eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8d138742
CE
13606shift
13607for ac_tag
13608do
13609 case $ac_tag in
13610 :[FHLC]) ac_mode=$ac_tag; continue;;
13611 esac
13612 case $ac_mode$ac_tag in
13613 :[FHL]*:*);;
b0322a85 13614 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
13615 :[FH]-) ac_tag=-:-;;
13616 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13617 esac
13618 ac_save_IFS=$IFS
13619 IFS=:
13620 set x $ac_tag
13621 IFS=$ac_save_IFS
13622 shift
13623 ac_file=$1
13624 shift
d9898ee8 13625
8d138742
CE
13626 case $ac_mode in
13627 :L) ac_source=$1;;
13628 :[FH])
13629 ac_file_inputs=
13630 for ac_f
13631 do
13632 case $ac_f in
b0322a85 13633 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
13634 *) # Look for the file first in the build tree, then in the source tree
13635 # (if the path is not absolute). The absolute path cannot be DOS-style,
13636 # because $ac_f cannot contain `:'.
13637 test -f "$ac_f" ||
13638 case $ac_f in
13639 [\\/$]*) false;;
13640 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13641 esac ||
b0322a85 13642 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
13643 esac
13644 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 13645 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 13646 done
dd184caf 13647
8d138742
CE
13648 # Let's still pretend it is `configure' which instantiates (i.e., don't
13649 # use $as_me), people would be surprised to read:
13650 # /* config.h. Generated by config.status. */
13651 configure_input='Generated from '`
13652 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13653 `' by configure.'
13654 if test x"$ac_file" != x-; then
13655 configure_input="$ac_file. $configure_input"
b0322a85 13656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
13657$as_echo "$as_me: creating $ac_file" >&6;}
13658 fi
13659 # Neutralize special characters interpreted by sed in replacement strings.
13660 case $configure_input in #(
13661 *\&* | *\|* | *\\* )
13662 ac_sed_conf_input=`$as_echo "$configure_input" |
13663 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13664 *) ac_sed_conf_input=$configure_input;;
13665 esac
d9898ee8 13666
8d138742 13667 case $ac_tag in
b0322a85
CE
13668 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
13670 esac
13671 ;;
13672 esac
d9898ee8 13673
8d138742
CE
13674 ac_dir=`$as_dirname -- "$ac_file" ||
13675$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13676 X"$ac_file" : 'X\(//\)[^/]' \| \
13677 X"$ac_file" : 'X\(//\)$' \| \
13678 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13679$as_echo X"$ac_file" |
13680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13681 s//\1/
13682 q
13683 }
13684 /^X\(\/\/\)[^/].*/{
13685 s//\1/
13686 q
13687 }
13688 /^X\(\/\/\)$/{
13689 s//\1/
13690 q
13691 }
13692 /^X\(\/\).*/{
13693 s//\1/
13694 q
13695 }
13696 s/.*/./; q'`
b0322a85 13697 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 13698 ac_builddir=.
d9898ee8 13699
8d138742
CE
13700case "$ac_dir" in
13701.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13702*)
13703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13704 # A ".." for each directory in $ac_dir_suffix.
13705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13706 case $ac_top_builddir_sub in
13707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13709 esac ;;
13710esac
13711ac_abs_top_builddir=$ac_pwd
13712ac_abs_builddir=$ac_pwd$ac_dir_suffix
13713# for backward compatibility:
13714ac_top_builddir=$ac_top_build_prefix
d9898ee8 13715
8d138742
CE
13716case $srcdir in
13717 .) # We are building in place.
13718 ac_srcdir=.
13719 ac_top_srcdir=$ac_top_builddir_sub
13720 ac_abs_top_srcdir=$ac_pwd ;;
13721 [\\/]* | ?:[\\/]* ) # Absolute name.
13722 ac_srcdir=$srcdir$ac_dir_suffix;
13723 ac_top_srcdir=$srcdir
13724 ac_abs_top_srcdir=$srcdir ;;
13725 *) # Relative name.
13726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13727 ac_top_srcdir=$ac_top_build_prefix$srcdir
13728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13729esac
13730ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
dd184caf 13731
d9898ee8 13732
8d138742
CE
13733 case $ac_mode in
13734 :F)
13735 #
13736 # CONFIG_FILE
13737 #
d9898ee8 13738
8d138742
CE
13739 case $INSTALL in
13740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13741 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13742 esac
13743 ac_MKDIR_P=$MKDIR_P
13744 case $MKDIR_P in
13745 [\\/$]* | ?:[\\/]* ) ;;
13746 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13747 esac
13748_ACEOF
d9898ee8 13749
8d138742
CE
13750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13751# If the template does not know about datarootdir, expand it.
13752# FIXME: This hack should be removed a few years after 2.60.
13753ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
13754ac_sed_dataroot='
13755/datarootdir/ {
13756 p
13757 q
13758}
13759/@datadir@/p
13760/@docdir@/p
13761/@infodir@/p
13762/@localedir@/p
b0322a85 13763/@mandir@/p'
8d138742
CE
13764case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13765*datarootdir*) ac_datarootdir_seen=yes;;
13766*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 13767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742
CE
13768$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13769_ACEOF
13770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13771 ac_datarootdir_hack='
13772 s&@datadir@&$datadir&g
13773 s&@docdir@&$docdir&g
13774 s&@infodir@&$infodir&g
13775 s&@localedir@&$localedir&g
13776 s&@mandir@&$mandir&g
b0322a85 13777 s&\\\${datarootdir}&$datarootdir&g' ;;
8d138742 13778esac
d9898ee8 13779_ACEOF
13780
8d138742
CE
13781# Neutralize VPATH when `$srcdir' = `.'.
13782# Shell code in configure.ac might set extrasub.
13783# FIXME: do we really want to maintain this feature?
13784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13785ac_sed_extra="$ac_vpsub
13786$extrasub
13787_ACEOF
13788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13789:t
13790/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13791s|@configure_input@|$ac_sed_conf_input|;t t
13792s&@top_builddir@&$ac_top_builddir_sub&;t t
13793s&@top_build_prefix@&$ac_top_build_prefix&;t t
13794s&@srcdir@&$ac_srcdir&;t t
13795s&@abs_srcdir@&$ac_abs_srcdir&;t t
13796s&@top_srcdir@&$ac_top_srcdir&;t t
13797s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13798s&@builddir@&$ac_builddir&;t t
13799s&@abs_builddir@&$ac_abs_builddir&;t t
13800s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13801s&@INSTALL@&$ac_INSTALL&;t t
13802s&@MKDIR_P@&$ac_MKDIR_P&;t t
13803$ac_datarootdir_hack
13804"
b0322a85
CE
13805eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13806 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 13807
8d138742 13808test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
13809 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13810 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13811 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13813which seems to be undefined. Please make sure it is defined" >&5
8d138742 13814$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 13815which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 13816
b0322a85 13817 rm -f "$ac_tmp/stdin"
8d138742 13818 case $ac_file in
b0322a85
CE
13819 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13820 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 13821 esac \
b0322a85
CE
13822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13823 ;;
13824 :H)
13825 #
13826 # CONFIG_HEADER
13827 #
13828 if test x"$ac_file" != x-; then
13829 {
13830 $as_echo "/* $configure_input */" \
13831 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13832 } >"$ac_tmp/config.h" \
13833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13834 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13836$as_echo "$as_me: $ac_file is unchanged" >&6;}
13837 else
13838 rm -f "$ac_file"
13839 mv "$ac_tmp/config.h" "$ac_file" \
13840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13841 fi
13842 else
13843 $as_echo "/* $configure_input */" \
13844 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13845 || as_fn_error $? "could not create -" "$LINENO" 5
13846 fi
13847# Compute "$ac_file"'s index in $config_headers.
13848_am_arg="$ac_file"
13849_am_stamp_count=1
13850for _am_header in $config_headers :; do
13851 case $_am_header in
13852 $_am_arg | $_am_arg:* )
13853 break ;;
13854 * )
13855 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13856 esac
13857done
13858echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13859$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13860 X"$_am_arg" : 'X\(//\)[^/]' \| \
13861 X"$_am_arg" : 'X\(//\)$' \| \
13862 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13863$as_echo X"$_am_arg" |
13864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13865 s//\1/
13866 q
13867 }
13868 /^X\(\/\/\)[^/].*/{
13869 s//\1/
13870 q
13871 }
13872 /^X\(\/\/\)$/{
13873 s//\1/
13874 q
13875 }
13876 /^X\(\/\).*/{
13877 s//\1/
13878 q
13879 }
13880 s/.*/./; q'`/stamp-h$_am_stamp_count
8d138742 13881 ;;
d9898ee8 13882
b0322a85 13883 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
13884$as_echo "$as_me: executing $ac_file commands" >&6;}
13885 ;;
13886 esac
d9898ee8 13887
d9898ee8 13888
8d138742
CE
13889 case $ac_file$ac_mode in
13890 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 13891 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
13892 # are listed without --file. Let's play safe and only enable the eval
13893 # if we detect the quoting.
13894 case $CONFIG_FILES in
13895 *\'*) eval set x "$CONFIG_FILES" ;;
13896 *) set x $CONFIG_FILES ;;
13897 esac
13898 shift
13899 for mf
13900 do
13901 # Strip MF so we end up with the name of the file.
13902 mf=`echo "$mf" | sed -e 's/:.*$//'`
13903 # Check whether this is an Automake generated Makefile or not.
b0322a85 13904 # We used to match only the files named 'Makefile.in', but
8d138742
CE
13905 # some people rename them; so instead we look at the file content.
13906 # Grep'ing the first line is not enough: some people post-process
13907 # each Makefile.in and add a new line on top of each file to say so.
13908 # Grep'ing the whole file is not good either: AIX grep has a line
13909 # limit of 2048, but all sed's we know have understand at least 4000.
13910 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13911 dirpart=`$as_dirname -- "$mf" ||
13912$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13913 X"$mf" : 'X\(//\)[^/]' \| \
13914 X"$mf" : 'X\(//\)$' \| \
13915 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13916$as_echo X"$mf" |
13917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13918 s//\1/
13919 q
13920 }
13921 /^X\(\/\/\)[^/].*/{
13922 s//\1/
13923 q
13924 }
13925 /^X\(\/\/\)$/{
13926 s//\1/
13927 q
13928 }
13929 /^X\(\/\).*/{
13930 s//\1/
13931 q
13932 }
13933 s/.*/./; q'`
13934 else
13935 continue
13936 fi
13937 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 13938 # from the Makefile without running 'make'.
8d138742
CE
13939 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13940 test -z "$DEPDIR" && continue
13941 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 13942 test -z "$am__include" && continue
8d138742 13943 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
13944 # Find all dependency output files, they are included files with
13945 # $(DEPDIR) in their names. We invoke sed twice because it is the
13946 # simplest approach to changing $(DEPDIR) to its actual value in the
13947 # expansion.
13948 for file in `sed -n "
13949 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 13950 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
13951 # Make sure the directory exists.
13952 test -f "$dirpart/$file" && continue
13953 fdir=`$as_dirname -- "$file" ||
13954$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13955 X"$file" : 'X\(//\)[^/]' \| \
13956 X"$file" : 'X\(//\)$' \| \
13957 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13958$as_echo X"$file" |
13959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\/\)[^/].*/{
13964 s//\1/
13965 q
13966 }
13967 /^X\(\/\/\)$/{
13968 s//\1/
13969 q
13970 }
13971 /^X\(\/\).*/{
13972 s//\1/
13973 q
13974 }
13975 s/.*/./; q'`
b0322a85 13976 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
13977 # echo "creating $dirpart/$file"
13978 echo '# dummy' > "$dirpart/$file"
13979 done
13980 done
13981}
13982 ;;
13983 "libtool":C)
d9898ee8 13984
8d138742
CE
13985 # See if we are running on zsh, and set the options which allow our
13986 # commands through without removal of \ escapes.
13987 if test -n "${ZSH_VERSION+set}" ; then
13988 setopt NO_GLOB_SUBST
13989 fi
d9898ee8 13990
8d138742
CE
13991 cfgfile="${ofile}T"
13992 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13993 $RM "$cfgfile"
13994
13995 cat <<_LT_EOF >> "$cfgfile"
13996#! $SHELL
13997
13998# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13999# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14000# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14001# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 14002#
8d138742 14003# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
b0322a85
CE
14004# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14005# Foundation, Inc.
8d138742
CE
14006# Written by Gordon Matzigkeit, 1996
14007#
14008# This file is part of GNU Libtool.
14009#
14010# GNU Libtool is free software; you can redistribute it and/or
14011# modify it under the terms of the GNU General Public License as
14012# published by the Free Software Foundation; either version 2 of
14013# the License, or (at your option) any later version.
14014#
14015# As a special exception to the GNU General Public License,
14016# if you distribute this file as part of a program or library that
14017# is built using GNU Libtool, you may include this file under the
14018# same distribution terms that you use for the rest of that program.
14019#
14020# GNU Libtool is distributed in the hope that it will be useful,
14021# but WITHOUT ANY WARRANTY; without even the implied warranty of
14022# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14023# GNU General Public License for more details.
14024#
14025# You should have received a copy of the GNU General Public License
14026# along with GNU Libtool; see the file COPYING. If not, a copy
14027# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14028# obtained by writing to the Free Software Foundation, Inc.,
14029# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14030
14031
8d138742
CE
14032# The names of the tagged configurations supported by this script.
14033available_tags=""
d9898ee8 14034
8d138742 14035# ### BEGIN LIBTOOL CONFIG
d9898ee8 14036
8d138742
CE
14037# Which release of libtool.m4 was used?
14038macro_version=$macro_version
14039macro_revision=$macro_revision
d9898ee8 14040
8d138742
CE
14041# Whether or not to build shared libraries.
14042build_libtool_libs=$enable_shared
d9898ee8 14043
8d138742
CE
14044# Whether or not to build static libraries.
14045build_old_libs=$enable_static
d9898ee8 14046
8d138742
CE
14047# What type of objects to build.
14048pic_mode=$pic_mode
d9898ee8 14049
8d138742
CE
14050# Whether or not to optimize for fast installation.
14051fast_install=$enable_fast_install
d9898ee8 14052
b0322a85
CE
14053# Shell to use when invoking shell scripts.
14054SHELL=$lt_SHELL
14055
14056# An echo program that protects backslashes.
14057ECHO=$lt_ECHO
14058
14059# The PATH separator for the build system.
14060PATH_SEPARATOR=$lt_PATH_SEPARATOR
14061
8d138742
CE
14062# The host system.
14063host_alias=$host_alias
14064host=$host
14065host_os=$host_os
d9898ee8 14066
8d138742
CE
14067# The build system.
14068build_alias=$build_alias
14069build=$build
14070build_os=$build_os
14071
14072# A sed program that does not truncate output.
14073SED=$lt_SED
d9898ee8 14074
8d138742
CE
14075# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14076Xsed="\$SED -e 1s/^X//"
d9898ee8 14077
8d138742
CE
14078# A grep program that handles long lines.
14079GREP=$lt_GREP
d9898ee8 14080
8d138742
CE
14081# An ERE matcher.
14082EGREP=$lt_EGREP
d9898ee8 14083
8d138742
CE
14084# A literal string matcher.
14085FGREP=$lt_FGREP
d9898ee8 14086
8d138742
CE
14087# A BSD- or MS-compatible name lister.
14088NM=$lt_NM
d9898ee8 14089
8d138742
CE
14090# Whether we need soft or hard links.
14091LN_S=$lt_LN_S
dd184caf 14092
8d138742
CE
14093# What is the maximum length of a command?
14094max_cmd_len=$max_cmd_len
dd184caf 14095
8d138742
CE
14096# Object file suffix (normally "o").
14097objext=$ac_objext
dd184caf 14098
8d138742
CE
14099# Executable file suffix (normally "").
14100exeext=$exeext
d9898ee8 14101
8d138742
CE
14102# whether the shell understands "unset".
14103lt_unset=$lt_unset
dd184caf 14104
8d138742
CE
14105# turn spaces into newlines.
14106SP2NL=$lt_lt_SP2NL
dd184caf 14107
8d138742
CE
14108# turn newlines into spaces.
14109NL2SP=$lt_lt_NL2SP
dd184caf 14110
b0322a85
CE
14111# convert \$build file names to \$host format.
14112to_host_file_cmd=$lt_cv_to_host_file_cmd
14113
14114# convert \$build files to toolchain format.
14115to_tool_file_cmd=$lt_cv_to_tool_file_cmd
dd184caf 14116
8d138742
CE
14117# An object symbol dumper.
14118OBJDUMP=$lt_OBJDUMP
dd184caf 14119
8d138742
CE
14120# Method to check whether dependent libraries are shared objects.
14121deplibs_check_method=$lt_deplibs_check_method
dd184caf 14122
b0322a85 14123# Command to use when deplibs_check_method = "file_magic".
8d138742
CE
14124file_magic_cmd=$lt_file_magic_cmd
14125
b0322a85
CE
14126# How to find potential files when deplibs_check_method = "file_magic".
14127file_magic_glob=$lt_file_magic_glob
14128
14129# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14130want_nocaseglob=$lt_want_nocaseglob
14131
14132# DLL creation program.
14133DLLTOOL=$lt_DLLTOOL
14134
14135# Command to associate shared and link libraries.
14136sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14137
8d138742
CE
14138# The archiver.
14139AR=$lt_AR
b0322a85
CE
14140
14141# Flags to create an archive.
8d138742
CE
14142AR_FLAGS=$lt_AR_FLAGS
14143
b0322a85
CE
14144# How to feed a file listing to the archiver.
14145archiver_list_spec=$lt_archiver_list_spec
14146
8d138742
CE
14147# A symbol stripping program.
14148STRIP=$lt_STRIP
14149
14150# Commands used to install an old-style archive.
14151RANLIB=$lt_RANLIB
14152old_postinstall_cmds=$lt_old_postinstall_cmds
14153old_postuninstall_cmds=$lt_old_postuninstall_cmds
14154
b0322a85
CE
14155# Whether to use a lock for old archive extraction.
14156lock_old_archive_extraction=$lock_old_archive_extraction
14157
8d138742
CE
14158# A C compiler.
14159LTCC=$lt_CC
14160
14161# LTCC compiler flags.
14162LTCFLAGS=$lt_CFLAGS
14163
14164# Take the output of nm and produce a listing of raw symbols and C names.
14165global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14166
14167# Transform the output of nm in a proper C declaration.
14168global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14169
14170# Transform the output of nm in a C name address pair.
14171global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14172
14173# Transform the output of nm in a C name address pair when lib prefix is needed.
14174global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14175
b0322a85
CE
14176# Specify filename containing input files for \$NM.
14177nm_file_list_spec=$lt_nm_file_list_spec
dd184caf 14178
b0322a85
CE
14179# The root where to search for dependent libraries,and in which our libraries should be installed.
14180lt_sysroot=$lt_sysroot
dd184caf 14181
b0322a85
CE
14182# The name of the directory that contains temporary libtool files.
14183objdir=$objdir
dd184caf 14184
8d138742
CE
14185# Used to examine libraries when file_magic_cmd begins with "file".
14186MAGIC_CMD=$MAGIC_CMD
dd184caf 14187
8d138742
CE
14188# Must we lock files when doing compilation?
14189need_locks=$lt_need_locks
d9898ee8 14190
b0322a85
CE
14191# Manifest tool.
14192MANIFEST_TOOL=$lt_MANIFEST_TOOL
14193
8d138742
CE
14194# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14195DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14196
8d138742
CE
14197# Tool to change global to local symbols on Mac OS X.
14198NMEDIT=$lt_NMEDIT
d9898ee8 14199
8d138742
CE
14200# Tool to manipulate fat objects and archives on Mac OS X.
14201LIPO=$lt_LIPO
d9898ee8 14202
8d138742
CE
14203# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14204OTOOL=$lt_OTOOL
dd184caf 14205
8d138742
CE
14206# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14207OTOOL64=$lt_OTOOL64
d9898ee8 14208
8d138742
CE
14209# Old archive suffix (normally "a").
14210libext=$libext
d9898ee8 14211
8d138742
CE
14212# Shared library suffix (normally ".so").
14213shrext_cmds=$lt_shrext_cmds
d9898ee8 14214
8d138742
CE
14215# The commands to extract the exported symbol list from a shared archive.
14216extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14217
8d138742
CE
14218# Variables whose values should be saved in libtool wrapper scripts and
14219# restored at link time.
14220variables_saved_for_relink=$lt_variables_saved_for_relink
d9898ee8 14221
8d138742
CE
14222# Do we need the "lib" prefix for modules?
14223need_lib_prefix=$need_lib_prefix
d9898ee8 14224
8d138742
CE
14225# Do we need a version for libraries?
14226need_version=$need_version
d9898ee8 14227
8d138742
CE
14228# Library versioning type.
14229version_type=$version_type
d9898ee8 14230
8d138742
CE
14231# Shared library runtime path variable.
14232runpath_var=$runpath_var
d9898ee8 14233
8d138742
CE
14234# Shared library path variable.
14235shlibpath_var=$shlibpath_var
d9898ee8 14236
8d138742
CE
14237# Is shlibpath searched before the hard-coded library search path?
14238shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14239
8d138742
CE
14240# Format of library name prefix.
14241libname_spec=$lt_libname_spec
dd184caf 14242
8d138742
CE
14243# List of archive names. First name is the real one, the rest are links.
14244# The last name is the one that the linker finds with -lNAME
14245library_names_spec=$lt_library_names_spec
d9898ee8 14246
8d138742
CE
14247# The coded name of the library, if different from the real name.
14248soname_spec=$lt_soname_spec
d9898ee8 14249
b0322a85
CE
14250# Permission mode override for installation of shared libraries.
14251install_override_mode=$lt_install_override_mode
14252
8d138742
CE
14253# Command to use after installation of a shared archive.
14254postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14255
8d138742
CE
14256# Command to use after uninstallation of a shared archive.
14257postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14258
8d138742
CE
14259# Commands used to finish a libtool library installation in a directory.
14260finish_cmds=$lt_finish_cmds
d9898ee8 14261
8d138742
CE
14262# As "finish_cmds", except a single script fragment to be evaled but
14263# not shown.
14264finish_eval=$lt_finish_eval
d9898ee8 14265
8d138742
CE
14266# Whether we should hardcode library paths into libraries.
14267hardcode_into_libs=$hardcode_into_libs
d9898ee8 14268
8d138742
CE
14269# Compile-time system search path for libraries.
14270sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14271
8d138742
CE
14272# Run-time system search path for libraries.
14273sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 14274
8d138742
CE
14275# Whether dlopen is supported.
14276dlopen_support=$enable_dlopen
d9898ee8 14277
8d138742
CE
14278# Whether dlopen of programs is supported.
14279dlopen_self=$enable_dlopen_self
dd184caf 14280
8d138742
CE
14281# Whether dlopen of statically linked programs is supported.
14282dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14283
8d138742
CE
14284# Commands to strip libraries.
14285old_striplib=$lt_old_striplib
14286striplib=$lt_striplib
d9898ee8 14287
d9898ee8 14288
8d138742
CE
14289# The linker used to build libraries.
14290LD=$lt_LD
d9898ee8 14291
b0322a85
CE
14292# How to create reloadable object files.
14293reload_flag=$lt_reload_flag
14294reload_cmds=$lt_reload_cmds
14295
8d138742
CE
14296# Commands used to build an old-style archive.
14297old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14298
8d138742
CE
14299# A language specific compiler.
14300CC=$lt_compiler
d9898ee8 14301
8d138742
CE
14302# Is the compiler the GNU compiler?
14303with_gcc=$GCC
d9898ee8 14304
8d138742
CE
14305# Compiler flag to turn off builtin functions.
14306no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
d9898ee8 14307
8d138742
CE
14308# Additional compiler flags for building library objects.
14309pic_flag=$lt_lt_prog_compiler_pic
14310
b0322a85
CE
14311# How to pass a linker flag through the compiler.
14312wl=$lt_lt_prog_compiler_wl
14313
8d138742
CE
14314# Compiler flag to prevent dynamic linking.
14315link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14316
8d138742
CE
14317# Does compiler simultaneously support -c and -o options?
14318compiler_c_o=$lt_lt_cv_prog_compiler_c_o
d9898ee8 14319
8d138742
CE
14320# Whether or not to add -lc for building shared libraries.
14321build_libtool_need_lc=$archive_cmds_need_lc
d9898ee8 14322
8d138742
CE
14323# Whether or not to disallow shared libs when runtime libs are static.
14324allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
dd184caf 14325
8d138742
CE
14326# Compiler flag to allow reflexive dlopens.
14327export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
dd184caf 14328
8d138742
CE
14329# Compiler flag to generate shared objects directly from archives.
14330whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14331
8d138742
CE
14332# Whether the compiler copes with passing no objects directly.
14333compiler_needs_object=$lt_compiler_needs_object
dd184caf 14334
8d138742
CE
14335# Create an old-style archive from a shared archive.
14336old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14337
8d138742
CE
14338# Create a temporary old-style archive to link instead of a shared archive.
14339old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14340
8d138742
CE
14341# Commands used to build a shared archive.
14342archive_cmds=$lt_archive_cmds
14343archive_expsym_cmds=$lt_archive_expsym_cmds
d9898ee8 14344
8d138742
CE
14345# Commands used to build a loadable module if different from building
14346# a shared archive.
14347module_cmds=$lt_module_cmds
14348module_expsym_cmds=$lt_module_expsym_cmds
d9898ee8 14349
8d138742
CE
14350# Whether we are building with GNU ld or not.
14351with_gnu_ld=$lt_with_gnu_ld
d9898ee8 14352
8d138742
CE
14353# Flag that allows shared libraries with undefined symbols to be built.
14354allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 14355
8d138742
CE
14356# Flag that enforces no undefined symbols.
14357no_undefined_flag=$lt_no_undefined_flag
dd184caf 14358
8d138742
CE
14359# Flag to hardcode \$libdir into a binary during linking.
14360# This must work even if \$libdir does not exist
14361hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14362
8d138742
CE
14363# Whether we need a single "-rpath" flag with a separated argument.
14364hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14365
8d138742
CE
14366# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14367# DIR into the resulting binary.
14368hardcode_direct=$hardcode_direct
dd184caf 14369
8d138742
CE
14370# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14371# DIR into the resulting binary and the resulting library dependency is
14372# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14373# library is relocated.
14374hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 14375
8d138742
CE
14376# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14377# into the resulting binary.
14378hardcode_minus_L=$hardcode_minus_L
d9898ee8 14379
8d138742
CE
14380# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14381# into the resulting binary.
14382hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14383
8d138742
CE
14384# Set to "yes" if building a shared library automatically hardcodes DIR
14385# into the library and all subsequent libraries and executables linked
14386# against it.
14387hardcode_automatic=$hardcode_automatic
dd184caf 14388
8d138742
CE
14389# Set to yes if linker adds runtime paths of dependent libraries
14390# to runtime path list.
14391inherit_rpath=$inherit_rpath
dd184caf 14392
8d138742
CE
14393# Whether libtool must link a program against all its dependency libraries.
14394link_all_deplibs=$link_all_deplibs
dd184caf 14395
8d138742
CE
14396# Set to "yes" if exported symbols are required.
14397always_export_symbols=$always_export_symbols
dd184caf 14398
8d138742
CE
14399# The commands to list exported symbols.
14400export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 14401
8d138742
CE
14402# Symbols that should not be listed in the preloaded symbols.
14403exclude_expsyms=$lt_exclude_expsyms
dd184caf 14404
8d138742
CE
14405# Symbols that must always be exported.
14406include_expsyms=$lt_include_expsyms
dd184caf 14407
8d138742
CE
14408# Commands necessary for linking programs (against libraries) with templates.
14409prelink_cmds=$lt_prelink_cmds
dd184caf 14410
b0322a85
CE
14411# Commands necessary for finishing linking programs.
14412postlink_cmds=$lt_postlink_cmds
14413
8d138742
CE
14414# Specify filename containing input files.
14415file_list_spec=$lt_file_list_spec
dd184caf 14416
8d138742
CE
14417# How to hardcode a shared library path into an executable.
14418hardcode_action=$hardcode_action
d9898ee8 14419
8d138742
CE
14420# ### END LIBTOOL CONFIG
14421
14422_LT_EOF
14423
14424 case $host_os in
14425 aix3*)
14426 cat <<\_LT_EOF >> "$cfgfile"
14427# AIX sometimes has problems with the GCC collect2 program. For some
14428# reason, if we set the COLLECT_NAMES environment variable, the problems
14429# vanish in a puff of smoke.
14430if test "X${COLLECT_NAMES+set}" != Xset; then
14431 COLLECT_NAMES=
14432 export COLLECT_NAMES
14433fi
14434_LT_EOF
14435 ;;
14436 esac
d9898ee8 14437
d9898ee8 14438
8d138742 14439ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 14440
d9898ee8 14441
8d138742
CE
14442 # We use sed instead of cat because bash on DJGPP gets confused if
14443 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14444 # text mode, it properly converts lines to CR/LF. This bash problem
14445 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
14446 sed '$q' "$ltmain" >> "$cfgfile" \
14447 || (rm -f "$cfgfile"; exit 1)
14448
14449 if test x"$xsi_shell" = xyes; then
14450 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14451func_dirname ()\
14452{\
14453\ case ${1} in\
14454\ */*) func_dirname_result="${1%/*}${2}" ;;\
14455\ * ) func_dirname_result="${3}" ;;\
14456\ esac\
14457} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14458 && mv -f "$cfgfile.tmp" "$cfgfile" \
14459 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14460test 0 -eq $? || _lt_function_replace_fail=:
14461
14462
14463 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14464func_basename ()\
14465{\
14466\ func_basename_result="${1##*/}"\
14467} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14468 && mv -f "$cfgfile.tmp" "$cfgfile" \
14469 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14470test 0 -eq $? || _lt_function_replace_fail=:
14471
14472
14473 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14474func_dirname_and_basename ()\
14475{\
14476\ case ${1} in\
14477\ */*) func_dirname_result="${1%/*}${2}" ;;\
14478\ * ) func_dirname_result="${3}" ;;\
14479\ esac\
14480\ func_basename_result="${1##*/}"\
14481} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14482 && mv -f "$cfgfile.tmp" "$cfgfile" \
14483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14484test 0 -eq $? || _lt_function_replace_fail=:
14485
14486
14487 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14488func_stripname ()\
14489{\
14490\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14491\ # positional parameters, so assign one to ordinary parameter first.\
14492\ func_stripname_result=${3}\
14493\ func_stripname_result=${func_stripname_result#"${1}"}\
14494\ func_stripname_result=${func_stripname_result%"${2}"}\
14495} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14496 && mv -f "$cfgfile.tmp" "$cfgfile" \
14497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14498test 0 -eq $? || _lt_function_replace_fail=:
14499
14500
14501 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14502func_split_long_opt ()\
14503{\
14504\ func_split_long_opt_name=${1%%=*}\
14505\ func_split_long_opt_arg=${1#*=}\
14506} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14507 && mv -f "$cfgfile.tmp" "$cfgfile" \
14508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14509test 0 -eq $? || _lt_function_replace_fail=:
14510
14511
14512 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14513func_split_short_opt ()\
14514{\
14515\ func_split_short_opt_arg=${1#??}\
14516\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14517} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14518 && mv -f "$cfgfile.tmp" "$cfgfile" \
14519 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14520test 0 -eq $? || _lt_function_replace_fail=:
14521
14522
14523 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14524func_lo2o ()\
14525{\
14526\ case ${1} in\
14527\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14528\ *) func_lo2o_result=${1} ;;\
14529\ esac\
14530} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14531 && mv -f "$cfgfile.tmp" "$cfgfile" \
14532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14533test 0 -eq $? || _lt_function_replace_fail=:
14534
14535
14536 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14537func_xform ()\
14538{\
14539 func_xform_result=${1%.*}.lo\
14540} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14541 && mv -f "$cfgfile.tmp" "$cfgfile" \
14542 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14543test 0 -eq $? || _lt_function_replace_fail=:
14544
14545
14546 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14547func_arith ()\
14548{\
14549 func_arith_result=$(( $* ))\
14550} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14551 && mv -f "$cfgfile.tmp" "$cfgfile" \
14552 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14553test 0 -eq $? || _lt_function_replace_fail=:
14554
14555
14556 sed -e '/^func_len ()$/,/^} # func_len /c\
14557func_len ()\
14558{\
14559 func_len_result=${#1}\
14560} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14561 && mv -f "$cfgfile.tmp" "$cfgfile" \
14562 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14563test 0 -eq $? || _lt_function_replace_fail=:
14564
14565fi
14566
14567if test x"$lt_shell_append" = xyes; then
14568 sed -e '/^func_append ()$/,/^} # func_append /c\
14569func_append ()\
14570{\
14571 eval "${1}+=\\${2}"\
14572} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14573 && mv -f "$cfgfile.tmp" "$cfgfile" \
14574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14575test 0 -eq $? || _lt_function_replace_fail=:
14576
14577
14578 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14579func_append_quoted ()\
14580{\
14581\ func_quote_for_eval "${2}"\
14582\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14583} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14584 && mv -f "$cfgfile.tmp" "$cfgfile" \
14585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586test 0 -eq $? || _lt_function_replace_fail=:
14587
14588
14589 # Save a `func_append' function call where possible by direct use of '+='
14590 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14591 && mv -f "$cfgfile.tmp" "$cfgfile" \
14592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14593 test 0 -eq $? || _lt_function_replace_fail=:
14594else
14595 # Save a `func_append' function call even when '+=' is not available
14596 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14597 && mv -f "$cfgfile.tmp" "$cfgfile" \
14598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14599 test 0 -eq $? || _lt_function_replace_fail=:
14600fi
14601
14602if test x"$_lt_function_replace_fail" = x":"; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14604$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14605fi
14606
14607
14608 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
14609 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14610 chmod +x "$ofile"
14611
d9898ee8 14612 ;;
dd184caf 14613
d9898ee8 14614 esac
dd184caf 14615done # for ac_tag
d9898ee8 14616
d9898ee8 14617
b0322a85 14618as_fn_exit 0
d9898ee8 14619_ACEOF
d9898ee8 14620ac_clean_files=$ac_clean_files_save
14621
8d138742 14622test $ac_write_fail = 0 ||
b0322a85 14623 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 14624
d9898ee8 14625
14626# configure is writing to config.log, and then calls config.status.
14627# config.status does its own redirection, appending to config.log.
14628# Unfortunately, on DOS this fails, as config.log is still kept open
14629# by configure, so config.status won't be able to write to it; its
14630# output is simply discarded. So we exec the FD to /dev/null,
14631# effectively closing config.log, so it can be properly (re)opened and
14632# appended to by config.status. When coming back to configure, we
14633# need to make the FD available again.
14634if test "$no_create" != yes; then
14635 ac_cs_success=:
14636 ac_config_status_args=
14637 test "$silent" = yes &&
14638 ac_config_status_args="$ac_config_status_args --quiet"
14639 exec 5>/dev/null
14640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14641 exec 5>>config.log
14642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14643 # would make configure fail if this is the last instruction.
b0322a85 14644 $ac_cs_success || as_fn_exit 1
d9898ee8 14645fi
8d138742 14646if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
14648$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14649fi
d9898ee8 14650