Update changelog.
[hcoop/debian/courier-authlib.git] / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
0fde1ce3 3# Generated by GNU Autoconf 2.61 for courier-authlib 0.61.0.
d9898ee8 4#
0fde1ce3 5# Report bugs to <courier-imap@lists.sourceforge.net>.
d9898ee8 6#
64ff59ba 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
64ff59ba 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
64ff59ba 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
64ff59ba 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
64ff59ba 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
64ff59ba 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
64ff59ba 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
64ff59ba 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
64ff59ba 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
64ff59ba 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
64ff59ba 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
64ff59ba 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
64ff59ba 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
64ff59ba 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
64ff59ba 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
64ff59ba 228 case $as_dir in
d9898ee8 229 /*)
64ff59ba 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
64ff59ba 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
64ff59ba 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
64ff59ba 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
64ff59ba 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
64ff59ba 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
64ff59ba 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
64ff59ba 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
64ff59ba 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
64ff59ba 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
64ff59ba 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
64ff59ba 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
64ff59ba 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='courier-authlib'
730PACKAGE_TARNAME='courier-authlib'
0fde1ce3 731PACKAGE_VERSION='0.61.0'
732PACKAGE_STRING='courier-authlib 0.61.0'
733PACKAGE_BUGREPORT='courier-imap@lists.sourceforge.net'
d9898ee8 734
735ac_unique_file="courierauth.h"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
64ff59ba 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
64ff59ba 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
64ff59ba 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
64ff59ba 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
64ff59ba 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
64ff59ba 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
64ff59ba 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
64ff59ba 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
64ff59ba 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848LN_S
849SYSCONFTOOL_PERL
850SYSCONFTOOL
851build
852build_cpu
853build_vendor
854build_os
855host
856host_cpu
857host_vendor
858host_os
859SED
860GREP
861EGREP
862ECHO
863AR
864RANLIB
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876LTDLINCL
877LIBLTDL
878PERL
879COURIERCONFIG
880EXPECT
881PASSWD
64ff59ba 882NETLIBS
64ff59ba 883USE_GDBM
884USE_DB
64ff59ba 885dblibrary
0fde1ce3 886LIBGDBM
887LIBDB
64ff59ba 888LIBAUTHUSERDB
889userdb
890LIBDL
891AUTHPAMCRYPT
892LIBAUTHPAM
893authldaprc
894LDAPLIBS
895LIBAUTHLDAP
896HAVE_LDAP_TRUE
897HAVE_LDAP_FALSE
898SHADOWLIBS
899LIBAUTHSHADOW
900LIBAUTHPWD
64ff59ba 901authpgsqlrc
902PG_CONFIG
903PGSQL_LIBS
904LIBAUTHPGSQL
905HAVE_AUTHPGSQL_TRUE
906HAVE_AUTHPGSQL_FALSE
907authmysqlrc
908MYSQL_CONFIG
909LIBAUTHMYSQL
910MYSQL_LIBS
911HAVE_AUTHMYSQL_TRUE
912HAVE_AUTHMYSQL_FALSE
913HAVE_CUSTOM_TRUE
914HAVE_CUSTOM_FALSE
915LIBAUTHCUSTOM
916authProg
917HAVE_PIPE_TRUE
918HAVE_PIPE_FALSE
919LIBAUTHPIPE
920CRYPTLIBS
921authdaemonrc
922authdaemonvar
923LIBM
924mailuser
925mailgroup
64ff59ba 926REPOSITORY
927HAVE_SGML_TRUE
928HAVE_SGML_FALSE
929subdirs
930LIBOBJS
931LTLIBOBJS'
d9898ee8 932ac_subst_files=''
64ff59ba 933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939LIBS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
945CXXCPP
946F77
947FFLAGS'
948ac_subdirs_all='libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog'
d9898ee8 949
950# Initialize some variables set by options.
951ac_init_help=
952ac_init_version=false
953# The variables have the same names as the options, with
954# dashes changed to underlines.
955cache_file=/dev/null
956exec_prefix=NONE
957no_create=
958no_recursion=
959prefix=NONE
960program_prefix=NONE
961program_suffix=NONE
962program_transform_name=s,x,x,
963silent=
964site=
965srcdir=
966verbose=
967x_includes=NONE
968x_libraries=NONE
969
970# Installation directory options.
971# These are left unexpanded so users can "make install exec_prefix=/foo"
972# and all the variables that are supposed to be based on exec_prefix
973# by default will actually change.
974# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 975# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 976bindir='${exec_prefix}/bin'
977sbindir='${exec_prefix}/sbin'
978libexecdir='${exec_prefix}/libexec'
64ff59ba 979datarootdir='${prefix}/share'
980datadir='${datarootdir}'
d9898ee8 981sysconfdir='${prefix}/etc'
982sharedstatedir='${prefix}/com'
983localstatedir='${prefix}/var'
d9898ee8 984includedir='${prefix}/include'
985oldincludedir='/usr/include'
64ff59ba 986docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987infodir='${datarootdir}/info'
988htmldir='${docdir}'
989dvidir='${docdir}'
990pdfdir='${docdir}'
991psdir='${docdir}'
992libdir='${exec_prefix}/lib'
993localedir='${datarootdir}/locale'
994mandir='${datarootdir}/man'
d9898ee8 995
996ac_prev=
64ff59ba 997ac_dashdash=
d9898ee8 998for ac_option
999do
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
64ff59ba 1002 eval $ac_prev=\$ac_option
d9898ee8 1003 ac_prev=
1004 continue
1005 fi
1006
64ff59ba 1007 case $ac_option in
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 *) ac_optarg=yes ;;
1010 esac
d9898ee8 1011
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1013
64ff59ba 1014 case $ac_dashdash$ac_option in
1015 --)
1016 ac_dashdash=yes ;;
d9898ee8 1017
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1022
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1027
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1034
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1037
64ff59ba 1038 -datadir | --datadir | --datadi | --datad)
d9898ee8 1039 ac_prev=datadir ;;
64ff59ba 1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1041 datadir=$ac_optarg ;;
1042
64ff59ba 1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1049
d9898ee8 1050 -disable-* | --disable-*)
1051 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
64ff59ba 1053 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1054 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055 { (exit 1); exit 1; }; }
64ff59ba 1056 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057 eval enable_$ac_feature=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
d9898ee8 1068
1069 -enable-* | --enable-*)
1070 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
64ff59ba 1072 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1073 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074 { (exit 1); exit 1; }; }
64ff59ba 1075 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1077
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1086
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1089 with_gas=yes ;;
1090
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1097
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1102
64ff59ba 1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104 ac_prev=htmldir ;;
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106 | --ht=*)
1107 htmldir=$ac_optarg ;;
1108
d9898ee8 1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1115
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1117 ac_prev=infodir ;;
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1120
1121 -libdir | --libdir | --libdi | --libd)
1122 ac_prev=libdir ;;
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1125
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1132
64ff59ba 1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1137
d9898ee8 1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1139 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1143 localstatedir=$ac_optarg ;;
1144
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146 ac_prev=mandir ;;
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1149
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1152 with_fp=no ;;
1153
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1156 no_create=yes ;;
1157
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 no_recursion=yes ;;
1161
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1170
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172 ac_prev=prefix ;;
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1175
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1182
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1189
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1206
64ff59ba 1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208 ac_prev=pdfdir ;;
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1211
1212 -psdir | --psdir | --psdi | --psd | --ps)
1213 ac_prev=psdir ;;
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 psdir=$ac_optarg ;;
1216
d9898ee8 1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 silent=yes ;;
1220
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222 ac_prev=sbindir ;;
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224 | --sbi=* | --sb=*)
1225 sbindir=$ac_optarg ;;
1226
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1230 | --sha | --sh)
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235 | --sha=* | --sh=*)
1236 sharedstatedir=$ac_optarg ;;
1237
1238 -site | --site | --sit)
1239 ac_prev=site ;;
1240 -site=* | --site=* | --sit=*)
1241 site=$ac_optarg ;;
1242
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244 ac_prev=srcdir ;;
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1247
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1254
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1259
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 verbose=yes ;;
1262
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1265
1266 -with-* | --with-*)
1267 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
64ff59ba 1269 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
64ff59ba 1272 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1274
1275 -without-* | --without-*)
1276 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
64ff59ba 1278 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
64ff59ba 1281 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282 eval with_$ac_package=no ;;
d9898ee8 1283
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1287
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1294
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1301
1302 -*) { echo "$as_me: error: unrecognized option: $ac_option
1303Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1305 ;;
1306
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
64ff59ba 1313 eval $ac_envvar=\$ac_optarg
d9898ee8 1314 export $ac_envvar ;;
1315
1316 *)
1317 # FIXME: should be removed in autoconf 3.0.
1318 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 ;;
1323
1324 esac
1325done
1326
1327if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1331fi
1332
64ff59ba 1333# Be sure to have absolute directory names.
1334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
d9898ee8 1338do
64ff59ba 1339 eval ac_val=\$$ac_var
d9898ee8 1340 case $ac_val in
64ff59ba 1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1343 esac
64ff59ba 1344 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
d9898ee8 1346done
1347
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364fi
1365
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
1370
1371
64ff59ba 1372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 { echo "$as_me: error: Working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 { echo "$as_me: error: pwd does not report name of working directory" >&2
1379 { (exit 1); exit 1; }; }
1380
1381
d9898ee8 1382# Find the source files, if location was not specified.
1383if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
64ff59ba 1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1387$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$0" : 'X\(//\)[^/]' \| \
1389 X"$0" : 'X\(//\)$' \| \
64ff59ba 1390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1391echo X"$0" |
64ff59ba 1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\).*/{
1405 s//\1/
1406 q
1407 }
1408 s/.*/./; q'`
d9898ee8 1409 srcdir=$ac_confdir
64ff59ba 1410 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1411 srcdir=..
1412 fi
1413else
1414 ac_srcdir_defaulted=no
1415fi
64ff59ba 1416if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1419 { (exit 1); exit 1; }; }
d9898ee8 1420fi
64ff59ba 1421ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1424 { (exit 1); exit 1; }; }
64ff59ba 1425 pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
1436for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441done
d9898ee8 1442
1443#
1444# Report the --help message.
1445#
1446if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1449 cat <<_ACEOF
0fde1ce3 1450\`configure' configures courier-authlib 0.61.0 to adapt to many kinds of systems.
d9898ee8 1451
1452Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457Defaults for the options are specified in brackets.
1458
1459Configuration:
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469
d9898ee8 1470Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 [PREFIX]
1475
1476By default, \`make install' will install all the files in
1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479for instance \`--prefix=\$HOME'.
1480
1481For better control, use the options below.
1482
1483Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1503_ACEOF
1504
1505 cat <<\_ACEOF
1506
1507Program names:
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1511
1512System types:
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515_ACEOF
1516fi
1517
1518if test -n "$ac_init_help"; then
1519 case $ac_init_help in
0fde1ce3 1520 short | recursive ) echo "Configuration of courier-authlib 0.61.0:";;
d9898ee8 1521 esac
1522 cat <<\_ACEOF
1523
1524Optional Features:
1525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --disable-dependency-tracking speeds up one-time build
1528 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1529 --enable-shared[=PKGS] build shared libraries [default=yes]
1530 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1531 --enable-fast-install[=PKGS]
1532 optimize for fast installation [default=yes]
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534
1535Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1539 --with-pic try to use only PIC/non-PIC objects [default=use
1540 both]
64ff59ba 1541 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1542
1543 --with-pkgconfdir=d Install config files in directory
1544 --with-db=gdbm Use the GDBM library.
1545 --with-db=db Use the libdb.a library.
1546 --without-authuserdb Do not include the authuserdb module
1547
1548 --without-authpam Do not include the authpam module
1549 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1550 required for FreeBSD 3.3
1551 --without-authldap Do not include the authldap module
1552 --with-authldaprc=filename Expect to find authldaprc here
1553 --without-authpwd Do not include the authpwd module
1554 --without-authshadow Do not include the authshadow module
d9898ee8 1555 --with-authpgsqlrc=filename Expect to find authpgsql here
1556 --without-authpgsql Do not include the authpgsql module
1557 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1558 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1559 --with-authmysqlrc=filename Expect to find authmysql here
1560 --without-authmysql Do not include the authmysql module
1561 --with-mysql-libs=DIR Look for mysql libs in this dir
1562 --with-mysql-includes=DIR Look for mysql includes in this dir
1563 --without-authcustom Do not include the authcustom module
1564 --with-pipeprog=filename Expect to find the pipe-prog here
1565 --without-authpipe Do not include the authpipe module
1566 --with-authdaemonrc=filename Expect to find authdaemonrc here
1567 --with-authdaemonvar=directory Directory where authdaemon.pid and
1568 the listening socket is created
1569 --with-mailuser=user Specify mail user name (defaults to
1570 courier, daemon, admin, bin, or root)
1571 --with-mailgroup=group Specify mail group name (defaults to courier,
1572 daemon, sys, adm, or root)
1573 --without-stdheaderdir Header files will be installed into a directory
1574 not in the compiler's default search path.
1575
1576Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
64ff59ba 1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
d9898ee8 1584 CPP C preprocessor
1585 CXX C++ compiler command
1586 CXXFLAGS C++ compiler flags
1587 CXXCPP C++ preprocessor
1588 F77 Fortran 77 compiler command
1589 FFLAGS Fortran 77 compiler flags
1590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
0fde1ce3 1594Report bugs to <courier-imap@lists.sourceforge.net>.
d9898ee8 1595_ACEOF
64ff59ba 1596ac_status=$?
d9898ee8 1597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
d9898ee8 1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1602 test -d "$ac_dir" || continue
d9898ee8 1603 ac_builddir=.
1604
64ff59ba 1605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
d9898ee8 1608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
d9898ee8 1620
1621case $srcdir in
64ff59ba 1622 .) # We are building in place.
d9898ee8 1623 ac_srcdir=.
64ff59ba 1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1627 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1634esac
64ff59ba 1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1645 else
1646 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1649 done
1650fi
1651
64ff59ba 1652test -n "$ac_init_help" && exit $ac_status
d9898ee8 1653if $ac_init_version; then
1654 cat <<\_ACEOF
0fde1ce3 1655courier-authlib configure 0.61.0
64ff59ba 1656generated by GNU Autoconf 2.61
d9898ee8 1657
64ff59ba 1658Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1660This configure script is free software; the Free Software Foundation
1661gives unlimited permission to copy, distribute and modify it.
1662_ACEOF
64ff59ba 1663 exit
d9898ee8 1664fi
64ff59ba 1665cat >config.log <<_ACEOF
d9898ee8 1666This file contains any messages produced by compilers while
1667running configure, to aid debugging if configure makes a mistake.
1668
0fde1ce3 1669It was created by courier-authlib $as_me 0.61.0, which was
64ff59ba 1670generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1671
1672 $ $0 $@
1673
1674_ACEOF
64ff59ba 1675exec 5>>config.log
d9898ee8 1676{
1677cat <<_ASUNAME
1678## --------- ##
1679## Platform. ##
1680## --------- ##
1681
1682hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690
1691/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1694/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1695/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1698
1699_ASUNAME
1700
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 echo "PATH: $as_dir"
1707done
64ff59ba 1708IFS=$as_save_IFS
d9898ee8 1709
1710} >&5
1711
1712cat >&5 <<_ACEOF
1713
1714
1715## ----------- ##
1716## Core tests. ##
1717## ----------- ##
1718
1719_ACEOF
1720
1721
1722# Keep a trace of the command line.
1723# Strip out --no-create and --no-recursion so they do not pile up.
1724# Strip out --silent because we don't want to record it for future runs.
1725# Also quote any args containing shell meta-characters.
1726# Make two passes to allow for proper duplicate-argument suppression.
1727ac_configure_args=
1728ac_configure_args0=
1729ac_configure_args1=
d9898ee8 1730ac_must_keep_next=false
1731for ac_pass in 1 2
1732do
1733 for ac_arg
1734 do
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
64ff59ba 1740 *\'*)
d9898ee8 1741 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 esac
1743 case $ac_pass in
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 2)
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1758 ;;
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1761 fi
64ff59ba 1762 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1763 ;;
1764 esac
1765 done
1766done
1767$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769
1770# When interrupted or exit'd, cleanup temporary files, and complete
1771# config.log. We remove comments because anyway the quotes in there
1772# would cause problems or look ugly.
64ff59ba 1773# WARNING: Use '\'' to represent an apostrophe within the trap.
1774# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1775trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1777 {
1778 echo
1779
1780 cat <<\_ASBOX
1781## ---------------- ##
1782## Cache variables. ##
1783## ---------------- ##
1784_ASBOX
1785 echo
1786 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1787(
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
1793 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1794echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
1798 *) $as_unset $ac_var ;;
1799 esac ;;
1800 esac
1801 done
d9898ee8 1802 (set) 2>&1 |
64ff59ba 1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
d9898ee8 1805 sed -n \
64ff59ba 1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808 ;; #(
d9898ee8 1809 *)
64ff59ba 1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1811 ;;
64ff59ba 1812 esac |
1813 sort
1814)
d9898ee8 1815 echo
1816
1817 cat <<\_ASBOX
1818## ----------------- ##
1819## Output variables. ##
1820## ----------------- ##
1821_ASBOX
1822 echo
1823 for ac_var in $ac_subst_vars
1824 do
64ff59ba 1825 eval ac_val=\$$ac_var
1826 case $ac_val in
1827 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 esac
1829 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1830 done | sort
1831 echo
1832
1833 if test -n "$ac_subst_files"; then
1834 cat <<\_ASBOX
64ff59ba 1835## ------------------- ##
1836## File substitutions. ##
1837## ------------------- ##
d9898ee8 1838_ASBOX
1839 echo
1840 for ac_var in $ac_subst_files
1841 do
64ff59ba 1842 eval ac_val=\$$ac_var
1843 case $ac_val in
1844 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 esac
1846 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1847 done | sort
1848 echo
1849 fi
1850
1851 if test -s confdefs.h; then
1852 cat <<\_ASBOX
1853## ----------- ##
1854## confdefs.h. ##
1855## ----------- ##
1856_ASBOX
1857 echo
64ff59ba 1858 cat confdefs.h
d9898ee8 1859 echo
1860 fi
1861 test "$ac_signal" != 0 &&
1862 echo "$as_me: caught signal $ac_signal"
1863 echo "$as_me: exit $exit_status"
1864 } >&5
64ff59ba 1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1867 exit $exit_status
64ff59ba 1868' 0
d9898ee8 1869for ac_signal in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871done
1872ac_signal=0
1873
1874# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1875rm -f -r conftest* confdefs.h
d9898ee8 1876
1877# Predefined preprocessor variables.
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_NAME "$PACKAGE_NAME"
1881_ACEOF
1882
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_VERSION "$PACKAGE_VERSION"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_STRING "$PACKAGE_STRING"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901_ACEOF
1902
1903
1904# Let the site file select an alternate cache file if it wants to.
1905# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1906if test -n "$CONFIG_SITE"; then
1907 set x "$CONFIG_SITE"
1908elif test "x$prefix" != xNONE; then
1909 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1910else
1911 set x "$ac_default_prefix/share/config.site" \
1912 "$ac_default_prefix/etc/config.site"
d9898ee8 1913fi
64ff59ba 1914shift
1915for ac_site_file
1916do
d9898ee8 1917 if test -r "$ac_site_file"; then
1918 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1921 . "$ac_site_file"
1922 fi
1923done
1924
1925if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930echo "$as_me: loading cache $cache_file" >&6;}
1931 case $cache_file in
64ff59ba 1932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933 *) . "./$cache_file";;
d9898ee8 1934 esac
1935 fi
1936else
1937 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938echo "$as_me: creating cache $cache_file" >&6;}
1939 >$cache_file
1940fi
1941
1942# Check that the precious variables saved in the cache have kept the same
1943# value.
1944ac_cache_corrupted=false
64ff59ba 1945for ac_var in $ac_precious_vars; do
d9898ee8 1946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1947 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1949 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1950 case $ac_old_set,$ac_new_set in
1951 set,)
1952 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1953echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1954 ac_cache_corrupted=: ;;
1955 ,set)
1956 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1957echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1958 ac_cache_corrupted=: ;;
1959 ,);;
1960 *)
1961 if test "x$ac_old_val" != "x$ac_new_val"; then
1962 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1963echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1964 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1965echo "$as_me: former value: $ac_old_val" >&2;}
1966 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1967echo "$as_me: current value: $ac_new_val" >&2;}
1968 ac_cache_corrupted=:
1969 fi;;
1970 esac
1971 # Pass precious variables to config.status.
1972 if test "$ac_new_set" = set; then
1973 case $ac_new_val in
64ff59ba 1974 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1975 *) ac_arg=$ac_var=$ac_new_val ;;
1976 esac
1977 case " $ac_configure_args " in
1978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1979 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1980 esac
1981 fi
1982done
1983if $ac_cache_corrupted; then
1984 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988 { (exit 1); exit 1; }; }
1989fi
1990
d9898ee8 1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
64ff59ba 2015ac_ext=c
2016ac_cpp='$CPP $CPPFLAGS'
2017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2020
2021
2022
2023
64ff59ba 2024ac_config_headers="$ac_config_headers courier_auth_config.h"
d9898ee8 2025
d9898ee8 2026
64ff59ba 2027am__api_version='1.10'
d9898ee8 2028
d9898ee8 2029ac_aux_dir=
64ff59ba 2030for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2031 if test -f "$ac_dir/install-sh"; then
d9898ee8 2032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/install-sh -c"
2034 break
64ff59ba 2035 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/install.sh -c"
2038 break
64ff59ba 2039 elif test -f "$ac_dir/shtool"; then
d9898ee8 2040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/shtool install -c"
2042 break
2043 fi
2044done
2045if test -z "$ac_aux_dir"; then
64ff59ba 2046 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2047echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2048 { (exit 1); exit 1; }; }
2049fi
64ff59ba 2050
2051# These three variables are undocumented and unsupported,
2052# and are intended to be withdrawn in a future Autoconf release.
2053# They can cause serious problems if a builder's source tree is in a directory
2054# whose full name contains unusual characters.
2055ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2058
d9898ee8 2059
2060# Find a good install program. We prefer a C program (faster),
2061# so one script is as good as another. But avoid the broken or
2062# incompatible versions:
2063# SysV /etc/install, /usr/sbin/install
2064# SunOS /usr/etc/install
2065# IRIX /sbin/install
2066# AIX /bin/install
2067# AmigaOS /C/install, which installs bootblocks on floppy discs
2068# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2069# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2070# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2071# OS/2's system install, which has a completely different semantic
2072# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 2073{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 2075if test -z "$INSTALL"; then
2076if test "${ac_cv_path_install+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 # Account for people who put trailing slashes in PATH elements.
2085case $as_dir/ in
2086 ./ | .// | /cC/* | \
2087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2089 /usr/ucb/* ) ;;
2090 *)
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2093 # by default.
2094 for ac_prog in ginstall scoinst install; do
2095 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2097 if test $ac_prog = install &&
2098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2100 :
2101 elif test $ac_prog = install &&
2102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2104 :
2105 else
2106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2107 break 3
2108 fi
2109 fi
2110 done
2111 done
2112 ;;
2113esac
2114done
64ff59ba 2115IFS=$as_save_IFS
d9898ee8 2116
2117
2118fi
2119 if test "${ac_cv_path_install+set}" = set; then
2120 INSTALL=$ac_cv_path_install
2121 else
64ff59ba 2122 # As a last resort, use the slow shell script. Don't cache a
2123 # value for INSTALL within a source directory, because that will
d9898ee8 2124 # break other packages using the cache if that directory is
64ff59ba 2125 # removed, or if the value is a relative name.
d9898ee8 2126 INSTALL=$ac_install_sh
2127 fi
2128fi
64ff59ba 2129{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2130echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2131
2132# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2133# It thinks the first close brace ends the variable substitution.
2134test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2135
2136test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2137
2138test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2139
64ff59ba 2140{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2141echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2142# Just in case
2143sleep 1
2144echo timestamp > conftest.file
2145# Do `set' in a subshell so we don't clobber the current shell's
2146# arguments. Must try -L first in case configure is actually a
2147# symlink; some systems play weird games with the mod time of symlinks
2148# (eg FreeBSD returns the mod time of the symlink's containing
2149# directory).
2150if (
2151 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2152 if test "$*" = "X"; then
2153 # -L didn't work.
2154 set X `ls -t $srcdir/configure conftest.file`
2155 fi
2156 rm -f conftest.file
2157 if test "$*" != "X $srcdir/configure conftest.file" \
2158 && test "$*" != "X conftest.file $srcdir/configure"; then
2159
2160 # If neither matched, then we have a broken ls. This can happen
2161 # if, for instance, CONFIG_SHELL is bash and it inherits a
2162 # broken ls alias from the environment. This has actually
2163 # happened. Such a system could not be considered "sane".
2164 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2165alias in your environment" >&5
2166echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2167alias in your environment" >&2;}
2168 { (exit 1); exit 1; }; }
2169 fi
2170
2171 test "$2" = conftest.file
2172 )
2173then
2174 # Ok.
2175 :
2176else
2177 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2178Check your system clock" >&5
2179echo "$as_me: error: newly created file is older than distributed files!
2180Check your system clock" >&2;}
2181 { (exit 1); exit 1; }; }
2182fi
64ff59ba 2183{ echo "$as_me:$LINENO: result: yes" >&5
2184echo "${ECHO_T}yes" >&6; }
d9898ee8 2185test "$program_prefix" != NONE &&
64ff59ba 2186 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2187# Use a double $ so make ignores it.
2188test "$program_suffix" != NONE &&
64ff59ba 2189 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2190# Double any \ or $. echo might interpret backslashes.
2191# By default was `s,x,x', remove it if useless.
2192cat <<\_ACEOF >conftest.sed
2193s/[\\$]/&&/g;s/;s,x,x,$//
2194_ACEOF
2195program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2196rm -f conftest.sed
d9898ee8 2197
2198# expand $ac_aux_dir to an absolute path
2199am_aux_dir=`cd $ac_aux_dir && pwd`
2200
2201test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2202# Use eval to expand $SHELL
2203if eval "$MISSING --run true"; then
2204 am_missing_run="$MISSING --run "
2205else
2206 am_missing_run=
2207 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2208echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2209fi
2210
64ff59ba 2211{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2212echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2213if test -z "$MKDIR_P"; then
2214 if test "${ac_cv_path_mkdir+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2219do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_prog in mkdir gmkdir; do
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2226 'mkdir (GNU coreutils) '* | \
2227 'mkdir (coreutils) '* | \
2228 'mkdir (fileutils) '4.1*)
2229 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2230 break 3;;
2231 esac
2232 done
2233 done
2234done
2235IFS=$as_save_IFS
2236
2237fi
2238
2239 if test "${ac_cv_path_mkdir+set}" = set; then
2240 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2241 else
64ff59ba 2242 # As a last resort, use the slow shell script. Don't cache a
2243 # value for MKDIR_P within a source directory, because that will
2244 # break other packages using the cache if that directory is
2245 # removed, or if the value is a relative name.
2246 test -d ./--version && rmdir ./--version
2247 MKDIR_P="$ac_install_sh -d"
d9898ee8 2248 fi
2249fi
64ff59ba 2250{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2251echo "${ECHO_T}$MKDIR_P" >&6; }
2252
2253mkdir_p="$MKDIR_P"
2254case $mkdir_p in
2255 [\\/$]* | ?:[\\/]*) ;;
2256 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2257esac
d9898ee8 2258
2259for ac_prog in gawk mawk nawk awk
2260do
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262set dummy $ac_prog; ac_word=$2
64ff59ba 2263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2265if test "${ac_cv_prog_AWK+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268 if test -n "$AWK"; then
2269 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2270else
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2278 ac_cv_prog_AWK="$ac_prog"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282done
2283done
64ff59ba 2284IFS=$as_save_IFS
d9898ee8 2285
2286fi
2287fi
2288AWK=$ac_cv_prog_AWK
2289if test -n "$AWK"; then
64ff59ba 2290 { echo "$as_me:$LINENO: result: $AWK" >&5
2291echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2292else
64ff59ba 2293 { echo "$as_me:$LINENO: result: no" >&5
2294echo "${ECHO_T}no" >&6; }
d9898ee8 2295fi
2296
64ff59ba 2297
d9898ee8 2298 test -n "$AWK" && break
2299done
2300
64ff59ba 2301{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2302echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2303set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2304if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306else
2307 cat >conftest.make <<\_ACEOF
64ff59ba 2308SHELL = /bin/sh
d9898ee8 2309all:
64ff59ba 2310 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2311_ACEOF
2312# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2313case `${MAKE-make} -f conftest.make 2>/dev/null` in
2314 *@@@%%%=?*=@@@%%%*)
2315 eval ac_cv_prog_make_${ac_make}_set=yes;;
2316 *)
2317 eval ac_cv_prog_make_${ac_make}_set=no;;
2318esac
d9898ee8 2319rm -f conftest.make
2320fi
64ff59ba 2321if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2322 { echo "$as_me:$LINENO: result: yes" >&5
2323echo "${ECHO_T}yes" >&6; }
d9898ee8 2324 SET_MAKE=
2325else
64ff59ba 2326 { echo "$as_me:$LINENO: result: no" >&5
2327echo "${ECHO_T}no" >&6; }
d9898ee8 2328 SET_MAKE="MAKE=${MAKE-make}"
2329fi
2330
2331rm -rf .tst 2>/dev/null
2332mkdir .tst 2>/dev/null
2333if test -d .tst; then
2334 am__leading_dot=.
2335else
2336 am__leading_dot=_
2337fi
2338rmdir .tst 2>/dev/null
2339
64ff59ba 2340if test "`cd $srcdir && pwd`" != "`pwd`"; then
2341 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2342 # is not polluted with repeated "-I."
2343 am__isrc=' -I$(srcdir)'
2344 # test to see if srcdir already configured
2345 if test -f $srcdir/config.status; then
2346 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2347echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2348 { (exit 1); exit 1; }; }
64ff59ba 2349 fi
d9898ee8 2350fi
2351
2352# test whether we have cygpath
2353if test -z "$CYGPATH_W"; then
2354 if (cygpath --version) >/dev/null 2>/dev/null; then
2355 CYGPATH_W='cygpath -w'
2356 else
2357 CYGPATH_W=echo
2358 fi
2359fi
2360
2361
2362# Define the identity of the package.
2363 PACKAGE='courier-authlib'
0fde1ce3 2364 VERSION='0.61.0'
d9898ee8 2365
2366
2367cat >>confdefs.h <<_ACEOF
2368#define PACKAGE "$PACKAGE"
2369_ACEOF
2370
2371
2372cat >>confdefs.h <<_ACEOF
2373#define VERSION "$VERSION"
2374_ACEOF
2375
2376# Some tools Automake needs.
2377
2378ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2379
2380
2381AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2382
2383
2384AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2385
2386
2387AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2388
2389
2390MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2391
64ff59ba 2392install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2393
2394# Installed binaries are usually stripped using `strip' when the user
2395# run `make install-strip'. However `strip' might not be the right
2396# tool to use in cross-compilation environments, therefore Automake
2397# will honor the `STRIP' environment variable to overrule this program.
2398if test "$cross_compiling" != no; then
2399 if test -n "$ac_tool_prefix"; then
2400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2401set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2404if test "${ac_cv_prog_STRIP+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407 if test -n "$STRIP"; then
2408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2409else
2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 break 2
2420 fi
2421done
2422done
64ff59ba 2423IFS=$as_save_IFS
d9898ee8 2424
2425fi
2426fi
2427STRIP=$ac_cv_prog_STRIP
2428if test -n "$STRIP"; then
64ff59ba 2429 { echo "$as_me:$LINENO: result: $STRIP" >&5
2430echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2431else
64ff59ba 2432 { echo "$as_me:$LINENO: result: no" >&5
2433echo "${ECHO_T}no" >&6; }
d9898ee8 2434fi
2435
64ff59ba 2436
d9898ee8 2437fi
2438if test -z "$ac_cv_prog_STRIP"; then
2439 ac_ct_STRIP=$STRIP
2440 # Extract the first word of "strip", so it can be a program name with args.
2441set dummy strip; ac_word=$2
64ff59ba 2442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2444if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446else
2447 if test -n "$ac_ct_STRIP"; then
2448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2457 ac_cv_prog_ac_ct_STRIP="strip"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461done
2462done
64ff59ba 2463IFS=$as_save_IFS
d9898ee8 2464
d9898ee8 2465fi
2466fi
2467ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2468if test -n "$ac_ct_STRIP"; then
64ff59ba 2469 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2470echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2471else
64ff59ba 2472 { echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6; }
d9898ee8 2474fi
2475
64ff59ba 2476 if test "x$ac_ct_STRIP" = x; then
2477 STRIP=":"
2478 else
2479 case $cross_compiling:$ac_tool_warned in
2480yes:)
2481{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet. If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&5
2484echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2485whose name does not start with the host triplet. If you think this
2486configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2487ac_tool_warned=yes ;;
2488esac
2489 STRIP=$ac_ct_STRIP
2490 fi
d9898ee8 2491else
2492 STRIP="$ac_cv_prog_STRIP"
2493fi
2494
2495fi
64ff59ba 2496INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2497
2498# We need awk for the "check" target. The system "awk" is bad on
2499# some platforms.
2500# Always define AMTAR for backward compatibility.
2501
2502AMTAR=${AMTAR-"${am_missing_run}tar"}
2503
2504am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2505
2506
2507
2508
2509
2510>confdefs.h # Kill PACKAGE_ macros
2511
2512LPATH="$PATH:/usr/local/bin"
2513
2514for ac_prog in gawk mawk nawk awk
2515do
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517set dummy $ac_prog; ac_word=$2
64ff59ba 2518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2520if test "${ac_cv_prog_AWK+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523 if test -n "$AWK"; then
2524 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2533 ac_cv_prog_AWK="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537done
2538done
64ff59ba 2539IFS=$as_save_IFS
d9898ee8 2540
2541fi
2542fi
2543AWK=$ac_cv_prog_AWK
2544if test -n "$AWK"; then
64ff59ba 2545 { echo "$as_me:$LINENO: result: $AWK" >&5
2546echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2547else
64ff59ba 2548 { echo "$as_me:$LINENO: result: no" >&5
2549echo "${ECHO_T}no" >&6; }
d9898ee8 2550fi
2551
64ff59ba 2552
d9898ee8 2553 test -n "$AWK" && break
2554done
2555
2556ac_ext=c
2557ac_cpp='$CPP $CPPFLAGS'
2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2563set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2566if test "${ac_cv_prog_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2579 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583done
2584done
64ff59ba 2585IFS=$as_save_IFS
d9898ee8 2586
2587fi
2588fi
2589CC=$ac_cv_prog_CC
2590if test -n "$CC"; then
64ff59ba 2591 { echo "$as_me:$LINENO: result: $CC" >&5
2592echo "${ECHO_T}$CC" >&6; }
d9898ee8 2593else
64ff59ba 2594 { echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6; }
d9898ee8 2596fi
2597
64ff59ba 2598
d9898ee8 2599fi
2600if test -z "$ac_cv_prog_CC"; then
2601 ac_ct_CC=$CC
2602 # Extract the first word of "gcc", so it can be a program name with args.
2603set dummy gcc; ac_word=$2
64ff59ba 2604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2606if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608else
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2619 ac_cv_prog_ac_ct_CC="gcc"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623done
2624done
64ff59ba 2625IFS=$as_save_IFS
d9898ee8 2626
2627fi
2628fi
2629ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630if test -n "$ac_ct_CC"; then
64ff59ba 2631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2633else
64ff59ba 2634 { echo "$as_me:$LINENO: result: no" >&5
2635echo "${ECHO_T}no" >&6; }
d9898ee8 2636fi
2637
64ff59ba 2638 if test "x$ac_ct_CC" = x; then
2639 CC=""
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642yes:)
2643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2644whose name does not start with the host triplet. If you think this
2645configuration is useful to you, please write to autoconf@gnu.org." >&5
2646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2647whose name does not start with the host triplet. If you think this
2648configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2649ac_tool_warned=yes ;;
2650esac
2651 CC=$ac_ct_CC
2652 fi
d9898ee8 2653else
2654 CC="$ac_cv_prog_CC"
2655fi
2656
2657if test -z "$CC"; then
64ff59ba 2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2660set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2663if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2676 ac_cv_prog_CC="${ac_tool_prefix}cc"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680done
2681done
64ff59ba 2682IFS=$as_save_IFS
d9898ee8 2683
2684fi
2685fi
2686CC=$ac_cv_prog_CC
2687if test -n "$CC"; then
64ff59ba 2688 { echo "$as_me:$LINENO: result: $CC" >&5
2689echo "${ECHO_T}$CC" >&6; }
d9898ee8 2690else
64ff59ba 2691 { echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6; }
d9898ee8 2693fi
2694
d9898ee8 2695
64ff59ba 2696 fi
d9898ee8 2697fi
2698if test -z "$CC"; then
2699 # Extract the first word of "cc", so it can be a program name with args.
2700set dummy cc; ac_word=$2
64ff59ba 2701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2703if test "${ac_cv_prog_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708else
2709 ac_prog_rejected=no
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2717 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2718 ac_prog_rejected=yes
2719 continue
2720 fi
2721 ac_cv_prog_CC="cc"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726done
64ff59ba 2727IFS=$as_save_IFS
d9898ee8 2728
2729if test $ac_prog_rejected = yes; then
2730 # We found a bogon in the path, so make sure we never use it.
2731 set dummy $ac_cv_prog_CC
2732 shift
2733 if test $# != 0; then
2734 # We chose a different compiler from the bogus one.
2735 # However, it has the same basename, so the bogon will be chosen
2736 # first if we set CC to just the basename; use the full file name.
2737 shift
2738 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2739 fi
2740fi
2741fi
2742fi
2743CC=$ac_cv_prog_CC
2744if test -n "$CC"; then
64ff59ba 2745 { echo "$as_me:$LINENO: result: $CC" >&5
2746echo "${ECHO_T}$CC" >&6; }
d9898ee8 2747else
64ff59ba 2748 { echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6; }
d9898ee8 2750fi
2751
64ff59ba 2752
d9898ee8 2753fi
2754if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
64ff59ba 2756 for ac_prog in cl.exe
d9898ee8 2757 do
2758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2762if test "${ac_cv_prog_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2775 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779done
2780done
64ff59ba 2781IFS=$as_save_IFS
d9898ee8 2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
64ff59ba 2787 { echo "$as_me:$LINENO: result: $CC" >&5
2788echo "${ECHO_T}$CC" >&6; }
d9898ee8 2789else
64ff59ba 2790 { echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6; }
d9898ee8 2792fi
2793
64ff59ba 2794
d9898ee8 2795 test -n "$CC" && break
2796 done
2797fi
2798if test -z "$CC"; then
2799 ac_ct_CC=$CC
64ff59ba 2800 for ac_prog in cl.exe
d9898ee8 2801do
2802 # Extract the first word of "$ac_prog", so it can be a program name with args.
2803set dummy $ac_prog; ac_word=$2
64ff59ba 2804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2806if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2819 ac_cv_prog_ac_ct_CC="$ac_prog"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823done
2824done
64ff59ba 2825IFS=$as_save_IFS
d9898ee8 2826
2827fi
2828fi
2829ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830if test -n "$ac_ct_CC"; then
64ff59ba 2831 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2833else
64ff59ba 2834 { echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6; }
d9898ee8 2836fi
2837
64ff59ba 2838
d9898ee8 2839 test -n "$ac_ct_CC" && break
2840done
2841
64ff59ba 2842 if test "x$ac_ct_CC" = x; then
2843 CC=""
2844 else
2845 case $cross_compiling:$ac_tool_warned in
2846yes:)
2847{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2848whose name does not start with the host triplet. If you think this
2849configuration is useful to you, please write to autoconf@gnu.org." >&5
2850echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2851whose name does not start with the host triplet. If you think this
2852configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2853ac_tool_warned=yes ;;
2854esac
2855 CC=$ac_ct_CC
2856 fi
d9898ee8 2857fi
2858
2859fi
2860
2861
2862test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2863See \`config.log' for more details." >&5
2864echo "$as_me: error: no acceptable C compiler found in \$PATH
2865See \`config.log' for more details." >&2;}
2866 { (exit 1); exit 1; }; }
2867
2868# Provide some information about the compiler.
64ff59ba 2869echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2870ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2871{ (ac_try="$ac_compiler --version >&5"
2872case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875esac
2876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
64ff59ba 2881{ (ac_try="$ac_compiler -v >&5"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
64ff59ba 2891{ (ac_try="$ac_compiler -V >&5"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901
2902cat >conftest.$ac_ext <<_ACEOF
2903/* confdefs.h. */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h. */
2908
2909int
2910main ()
2911{
2912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917ac_clean_files_save=$ac_clean_files
2918ac_clean_files="$ac_clean_files a.out a.exe b.out"
2919# Try to create an executable without -o first, disregard a.out.
2920# It will help us diagnose broken compilers, and finding out an intuition
2921# of exeext.
64ff59ba 2922{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2923echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2924ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2925#
2926# List of possible output files, starting from the most likely.
2927# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2928# only as a last resort. b.out is created by i960 compilers.
2929ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2930#
2931# The IRIX 6 linker writes into existing files which may not be
2932# executable, retaining their permissions. Remove them first so a
2933# subsequent execution test works.
2934ac_rmfiles=
2935for ac_file in $ac_files
2936do
2937 case $ac_file in
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2940 esac
2941done
2942rm -f $ac_rmfiles
2943
2944if { (ac_try="$ac_link_default"
2945case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_link_default") 2>&5
d9898ee8 2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; then
64ff59ba 2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2955# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2956# in a Makefile. We should not override ac_cv_exeext if it was cached,
2957# so that the user can short-circuit this test for compilers unknown to
2958# Autoconf.
2959for ac_file in $ac_files ''
d9898ee8 2960do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
64ff59ba 2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2964 ;;
2965 [ab].out )
2966 # We found the default executable, but exeext='' is most
2967 # certainly right.
2968 break;;
2969 *.* )
64ff59ba 2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2971 then :; else
2972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 fi
2974 # We set ac_cv_exeext here because the later test for it is not
2975 # safe: cross compilers may not add the suffix if given an `-o'
2976 # argument, so we may need to know it at that point already.
2977 # Even if this section looks crufty: it has the advantage of
2978 # actually working.
d9898ee8 2979 break;;
2980 * )
2981 break;;
2982 esac
2983done
64ff59ba 2984test "$ac_cv_exeext" = no && ac_cv_exeext=
2985
d9898ee8 2986else
64ff59ba 2987 ac_file=''
2988fi
2989
2990{ echo "$as_me:$LINENO: result: $ac_file" >&5
2991echo "${ECHO_T}$ac_file" >&6; }
2992if test -z "$ac_file"; then
d9898ee8 2993 echo "$as_me: failed program was:" >&5
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2997See \`config.log' for more details." >&5
2998echo "$as_me: error: C compiler cannot create executables
2999See \`config.log' for more details." >&2;}
3000 { (exit 77); exit 77; }; }
3001fi
3002
3003ac_exeext=$ac_cv_exeext
d9898ee8 3004
64ff59ba 3005# Check that the compiler produces executables we can run. If not, either
d9898ee8 3006# the compiler is broken, or we cross compile.
64ff59ba 3007{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3008echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 3009# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3010# If not cross compiling, check that we can run a simple program.
3011if test "$cross_compiling" != yes; then
3012 if { ac_try='./$ac_file'
64ff59ba 3013 { (case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_try") 2>&5
d9898ee8 3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3022 cross_compiling=no
3023 else
3024 if test "$cross_compiling" = maybe; then
3025 cross_compiling=yes
3026 else
3027 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3028If you meant to cross compile, use \`--host'.
3029See \`config.log' for more details." >&5
3030echo "$as_me: error: cannot run C compiled programs.
3031If you meant to cross compile, use \`--host'.
3032See \`config.log' for more details." >&2;}
3033 { (exit 1); exit 1; }; }
3034 fi
3035 fi
3036fi
64ff59ba 3037{ echo "$as_me:$LINENO: result: yes" >&5
3038echo "${ECHO_T}yes" >&6; }
d9898ee8 3039
3040rm -f a.out a.exe conftest$ac_cv_exeext b.out
3041ac_clean_files=$ac_clean_files_save
64ff59ba 3042# Check that the compiler produces executables we can run. If not, either
d9898ee8 3043# the compiler is broken, or we cross compile.
64ff59ba 3044{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3045echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3046{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3047echo "${ECHO_T}$cross_compiling" >&6; }
3048
3049{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3050echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3051if { (ac_try="$ac_link"
3052case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_link") 2>&5
d9898ee8 3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; then
3061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3062# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3063# work properly (i.e., refer to `conftest.exe'), while it won't with
3064# `rm'.
3065for ac_file in conftest.exe conftest conftest.*; do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
64ff59ba 3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3070 break;;
3071 * ) break;;
3072 esac
3073done
3074else
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3076See \`config.log' for more details." >&5
3077echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3078See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3080fi
3081
3082rm -f conftest$ac_cv_exeext
64ff59ba 3083{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3084echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 3085
3086rm -f conftest.$ac_ext
3087EXEEXT=$ac_cv_exeext
3088ac_exeext=$EXEEXT
64ff59ba 3089{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3090echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3091if test "${ac_cv_objext+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094 cat >conftest.$ac_ext <<_ACEOF
3095/* confdefs.h. */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h. */
3100
3101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109rm -f conftest.o conftest.obj
64ff59ba 3110if { (ac_try="$ac_compile"
3111case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>&5
d9898ee8 3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; then
64ff59ba 3120 for ac_file in conftest.o conftest.obj conftest.*; do
3121 test -f "$ac_file" || continue;
d9898ee8 3122 case $ac_file in
64ff59ba 3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125 break;;
3126 esac
3127done
3128else
3129 echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3133See \`config.log' for more details." >&5
3134echo "$as_me: error: cannot compute suffix of object files: cannot compile
3135See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3137fi
3138
3139rm -f conftest.$ac_cv_objext conftest.$ac_ext
3140fi
64ff59ba 3141{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3142echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3143OBJEXT=$ac_cv_objext
3144ac_objext=$OBJEXT
64ff59ba 3145{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3146echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3147if test "${ac_cv_c_compiler_gnu+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149else
3150 cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h. */
3156
3157int
3158main ()
3159{
3160#ifndef __GNUC__
3161 choke me
3162#endif
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext
64ff59ba 3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
d9898ee8 3185 ac_compiler_gnu=yes
3186else
3187 echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
64ff59ba 3190 ac_compiler_gnu=no
d9898ee8 3191fi
64ff59ba 3192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3194ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195
3196fi
64ff59ba 3197{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3198echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3199GCC=`test $ac_compiler_gnu = yes && echo yes`
3200ac_test_CFLAGS=${CFLAGS+set}
3201ac_save_CFLAGS=$CFLAGS
64ff59ba 3202{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3203echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3204if test "${ac_cv_prog_cc_g+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206else
64ff59ba 3207 ac_save_c_werror_flag=$ac_c_werror_flag
3208 ac_c_werror_flag=yes
3209 ac_cv_prog_cc_g=no
3210 CFLAGS="-g"
3211 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext
64ff59ba 3227if { (ac_try="$ac_compile"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 ac_cv_prog_cc_g=yes
3244else
3245 echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 CFLAGS=""
3249 cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
3255
3256int
3257main ()
3258{
3259
3260 ;
3261 return 0;
3262}
3263_ACEOF
3264rm -f conftest.$ac_objext
3265if { (ac_try="$ac_compile"
3266case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
3270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3272 ac_status=$?
64ff59ba 3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
d9898ee8 3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3277 (exit $ac_status); } && {
3278 test -z "$ac_c_werror_flag" ||
3279 test ! -s conftest.err
3280 } && test -s conftest.$ac_objext; then
3281 :
3282else
3283 echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3287 CFLAGS="-g"
3288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303rm -f conftest.$ac_objext
3304if { (ac_try="$ac_compile"
3305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3311 ac_status=$?
64ff59ba 3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
d9898ee8 3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
d9898ee8 3320 ac_cv_prog_cc_g=yes
3321else
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
64ff59ba 3325
d9898ee8 3326fi
64ff59ba 3327
3328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329fi
3330
3331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332fi
3333
3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3336fi
64ff59ba 3337{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3339if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3343 CFLAGS="-g -O2"
3344 else
3345 CFLAGS="-g"
3346 fi
3347else
3348 if test "$GCC" = yes; then
3349 CFLAGS="-O2"
3350 else
3351 CFLAGS=
3352 fi
3353fi
64ff59ba 3354{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3355echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3356if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
64ff59ba 3359 ac_cv_prog_cc_c89=no
d9898ee8 3360ac_save_CC=$CC
3361cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h. */
3367#include <stdarg.h>
3368#include <stdio.h>
3369#include <sys/types.h>
3370#include <sys/stat.h>
3371/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372struct buf { int x; };
3373FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374static char *e (p, i)
3375 char **p;
3376 int i;
3377{
3378 return p[i];
3379}
3380static char *f (char * (*g) (char **, int), char **p, ...)
3381{
3382 char *s;
3383 va_list v;
3384 va_start (v,p);
3385 s = g (p, va_arg (v,int));
3386 va_end (v);
3387 return s;
3388}
3389
3390/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3393 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3396 that's true only with -std. */
d9898ee8 3397int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398
64ff59ba 3399/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3401#define FOO(x) 'x'
3402int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3403
d9898ee8 3404int test (int i, double x);
3405struct s1 {int (*f) (int a);};
3406struct s2 {int (*f) (double a);};
3407int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408int argc;
3409char **argv;
3410int
3411main ()
3412{
3413return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 ;
3415 return 0;
3416}
3417_ACEOF
64ff59ba 3418for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3420do
3421 CC="$ac_save_CC $ac_arg"
3422 rm -f conftest.$ac_objext
64ff59ba 3423if { (ac_try="$ac_compile"
3424case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427esac
3428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3435 (exit $ac_status); } && {
3436 test -z "$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3439 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3440else
3441 echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
64ff59ba 3444
d9898ee8 3445fi
64ff59ba 3446
3447rm -f core conftest.err conftest.$ac_objext
3448 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3449done
64ff59ba 3450rm -f conftest.$ac_ext
d9898ee8 3451CC=$ac_save_CC
3452
3453fi
64ff59ba 3454# AC_CACHE_VAL
3455case "x$ac_cv_prog_cc_c89" in
3456 x)
3457 { echo "$as_me:$LINENO: result: none needed" >&5
3458echo "${ECHO_T}none needed" >&6; } ;;
3459 xno)
3460 { echo "$as_me:$LINENO: result: unsupported" >&5
3461echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3462 *)
64ff59ba 3463 CC="$CC $ac_cv_prog_cc_c89"
3464 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3465echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3466esac
3467
d9898ee8 3468
d9898ee8 3469ac_ext=c
3470ac_cpp='$CPP $CPPFLAGS'
3471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474DEPDIR="${am__leading_dot}deps"
3475
64ff59ba 3476ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3477
3478
3479am_make=${MAKE-make}
3480cat > confinc << 'END'
3481am__doit:
3482 @echo done
3483.PHONY: am__doit
3484END
3485# If we don't find an include directive, just comment out the code.
64ff59ba 3486{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3487echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3488am__include="#"
3489am__quote=
3490_am_result=none
3491# First try GNU make style include.
3492echo "include confinc" > confmf
3493# We grep out `Entering directory' and `Leaving directory'
3494# messages which can occur if `w' ends up in MAKEFLAGS.
3495# In particular we don't look at `^make:' because GNU make might
3496# be invoked under some other name (usually "gmake"), in which
3497# case it prints its new name instead of `make'.
3498if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3499 am__include=include
3500 am__quote=
3501 _am_result=GNU
3502fi
3503# Now try BSD make style include.
3504if test "$am__include" = "#"; then
3505 echo '.include "confinc"' > confmf
3506 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3507 am__include=.include
3508 am__quote="\""
3509 _am_result=BSD
3510 fi
3511fi
3512
3513
64ff59ba 3514{ echo "$as_me:$LINENO: result: $_am_result" >&5
3515echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3516rm -f confinc confmf
3517
64ff59ba 3518# Check whether --enable-dependency-tracking was given.
d9898ee8 3519if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3520 enableval=$enable_dependency_tracking;
3521fi
d9898ee8 3522
d9898ee8 3523if test "x$enable_dependency_tracking" != xno; then
3524 am_depcomp="$ac_aux_dir/depcomp"
3525 AMDEPBACKSLASH='\'
3526fi
64ff59ba 3527 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3528 AMDEP_TRUE=
3529 AMDEP_FALSE='#'
3530else
3531 AMDEP_TRUE='#'
3532 AMDEP_FALSE=
3533fi
3534
3535
3536
d9898ee8 3537depcc="$CC" am_compiler_list=
3538
64ff59ba 3539{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3541if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3549 # in D'.
3550 mkdir conftest.dir
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3554 cd conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3560 # directory.
3561 mkdir sub
3562
3563 am_cv_CC_dependencies_compiler_type=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3566 fi
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3571 #
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3575 : > sub/conftest.c
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub/conftst$i.h
3581 done
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3583
3584 case $depmode in
3585 nosideeffect)
3586 # after this tag, mechanisms are not by side-effect, so they'll
3587 # only be used when explicitly requested
3588 if test "x$enable_dependency_tracking" = xyes; then
3589 continue
3590 else
3591 break
3592 fi
3593 ;;
3594 none) break ;;
3595 esac
3596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle `-M -o', and we need to detect this.
3599 if depmode=$depmode \
3600 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3603 >/dev/null 2>conftest.err &&
64ff59ba 3604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3606 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3608 # icc doesn't choke on unknown options, it will just issue warnings
3609 # or remarks (even with -Werror). So we grep stderr for any message
3610 # that says an option was ignored or not supported.
3611 # When given -MP, icc 7.0 and 7.1 complain thusly:
3612 # icc: Command line warning: ignoring option '-M'; no argument required
3613 # The diagnosis changed in icc 8.0:
3614 # icc: Command line remark: option '-MP' not supported
3615 if (grep 'ignoring option' conftest.err ||
3616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3617 am_cv_CC_dependencies_compiler_type=$depmode
3618 break
3619 fi
3620 fi
3621 done
3622
3623 cd ..
3624 rm -rf conftest.dir
3625else
3626 am_cv_CC_dependencies_compiler_type=none
3627fi
3628
3629fi
64ff59ba 3630{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3631echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3632CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3633
64ff59ba 3634 if
d9898ee8 3635 test "x$enable_dependency_tracking" != xno \
3636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3637 am__fastdepCC_TRUE=
3638 am__fastdepCC_FALSE='#'
3639else
3640 am__fastdepCC_TRUE='#'
3641 am__fastdepCC_FALSE=
3642fi
3643
3644
3645ac_ext=c
3646ac_cpp='$CPP $CPPFLAGS'
3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 3650{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3651echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 3652# On Suns, sometimes $CPP names a directory.
3653if test -n "$CPP" && test -d "$CPP"; then
3654 CPP=
3655fi
3656if test -z "$CPP"; then
3657 if test "${ac_cv_prog_CPP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
3660 # Double quotes because CPP needs to be expanded
3661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3662 do
3663 ac_preproc_ok=false
3664for ac_c_preproc_warn_flag in '' yes
3665do
3666 # Use a header file that comes with gcc, so configuring glibc
3667 # with a fresh cross-compiler works.
3668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 # <limits.h> exists even on freestanding compilers.
3670 # On the NeXT, cc -E runs the code through the compiler's parser,
3671 # not just through cpp. "Syntax error" is here to catch this case.
3672 cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
3678#ifdef __STDC__
3679# include <limits.h>
3680#else
3681# include <assert.h>
3682#endif
3683 Syntax error
3684_ACEOF
64ff59ba 3685if { (ac_try="$ac_cpp conftest.$ac_ext"
3686case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689esac
3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3697 (exit $ac_status); } >/dev/null && {
3698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3700 }; then
d9898ee8 3701 :
3702else
3703 echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 # Broken: fails on valid input.
3707continue
3708fi
64ff59ba 3709
d9898ee8 3710rm -f conftest.err conftest.$ac_ext
3711
64ff59ba 3712 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3713 # can be detected and how.
3714 cat >conftest.$ac_ext <<_ACEOF
3715/* confdefs.h. */
3716_ACEOF
3717cat confdefs.h >>conftest.$ac_ext
3718cat >>conftest.$ac_ext <<_ACEOF
3719/* end confdefs.h. */
3720#include <ac_nonexistent.h>
3721_ACEOF
64ff59ba 3722if { (ac_try="$ac_cpp conftest.$ac_ext"
3723case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726esac
3727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3734 (exit $ac_status); } >/dev/null && {
3735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3737 }; then
d9898ee8 3738 # Broken: success on invalid input.
3739continue
3740else
3741 echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744 # Passes both tests.
3745ac_preproc_ok=:
3746break
3747fi
64ff59ba 3748
d9898ee8 3749rm -f conftest.err conftest.$ac_ext
3750
3751done
3752# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753rm -f conftest.err conftest.$ac_ext
3754if $ac_preproc_ok; then
3755 break
3756fi
3757
3758 done
3759 ac_cv_prog_CPP=$CPP
3760
3761fi
3762 CPP=$ac_cv_prog_CPP
3763else
3764 ac_cv_prog_CPP=$CPP
3765fi
64ff59ba 3766{ echo "$as_me:$LINENO: result: $CPP" >&5
3767echo "${ECHO_T}$CPP" >&6; }
d9898ee8 3768ac_preproc_ok=false
3769for ac_c_preproc_warn_flag in '' yes
3770do
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error" is here to catch this case.
3777 cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783#ifdef __STDC__
3784# include <limits.h>
3785#else
3786# include <assert.h>
3787#endif
3788 Syntax error
3789_ACEOF
64ff59ba 3790if { (ac_try="$ac_cpp conftest.$ac_ext"
3791case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794esac
3795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3802 (exit $ac_status); } >/dev/null && {
3803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 }; then
d9898ee8 3806 :
3807else
3808 echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 # Broken: fails on valid input.
3812continue
3813fi
64ff59ba 3814
d9898ee8 3815rm -f conftest.err conftest.$ac_ext
3816
64ff59ba 3817 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3818 # can be detected and how.
3819 cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h. */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h. */
3825#include <ac_nonexistent.h>
3826_ACEOF
64ff59ba 3827if { (ac_try="$ac_cpp conftest.$ac_ext"
3828case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831esac
3832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3839 (exit $ac_status); } >/dev/null && {
3840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 }; then
d9898ee8 3843 # Broken: success on invalid input.
3844continue
3845else
3846 echo "$as_me: failed program was:" >&5
3847sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 # Passes both tests.
3850ac_preproc_ok=:
3851break
3852fi
64ff59ba 3853
d9898ee8 3854rm -f conftest.err conftest.$ac_ext
3855
3856done
3857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858rm -f conftest.err conftest.$ac_ext
3859if $ac_preproc_ok; then
3860 :
3861else
3862 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3863See \`config.log' for more details." >&5
3864echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3865See \`config.log' for more details." >&2;}
3866 { (exit 1); exit 1; }; }
3867fi
3868
3869ac_ext=c
3870ac_cpp='$CPP $CPPFLAGS'
3871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874
3875# Find a good install program. We prefer a C program (faster),
3876# so one script is as good as another. But avoid the broken or
3877# incompatible versions:
3878# SysV /etc/install, /usr/sbin/install
3879# SunOS /usr/etc/install
3880# IRIX /sbin/install
3881# AIX /bin/install
3882# AmigaOS /C/install, which installs bootblocks on floppy discs
3883# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3884# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3885# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3886# OS/2's system install, which has a completely different semantic
3887# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 3888{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3889echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3890if test -z "$INSTALL"; then
3891if test "${ac_cv_path_install+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 # Account for people who put trailing slashes in PATH elements.
3900case $as_dir/ in
3901 ./ | .// | /cC/* | \
3902 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3903 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3904 /usr/ucb/* ) ;;
3905 *)
3906 # OSF1 and SCO ODT 3.0 have their own names for install.
3907 # Don't use installbsd from OSF since it installs stuff as root
3908 # by default.
3909 for ac_prog in ginstall scoinst install; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3911 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3912 if test $ac_prog = install &&
3913 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3914 # AIX install. It has an incompatible calling convention.
3915 :
3916 elif test $ac_prog = install &&
3917 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3918 # program-specific install script used by HP pwplus--don't use.
3919 :
3920 else
3921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3922 break 3
3923 fi
3924 fi
3925 done
3926 done
3927 ;;
3928esac
3929done
64ff59ba 3930IFS=$as_save_IFS
d9898ee8 3931
3932
3933fi
3934 if test "${ac_cv_path_install+set}" = set; then
3935 INSTALL=$ac_cv_path_install
3936 else
64ff59ba 3937 # As a last resort, use the slow shell script. Don't cache a
3938 # value for INSTALL within a source directory, because that will
d9898ee8 3939 # break other packages using the cache if that directory is
64ff59ba 3940 # removed, or if the value is a relative name.
d9898ee8 3941 INSTALL=$ac_install_sh
3942 fi
3943fi
64ff59ba 3944{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3945echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3946
3947# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3948# It thinks the first close brace ends the variable substitution.
3949test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3950
3951test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3952
3953test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3954
64ff59ba 3955{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3956echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3957LN_S=$as_ln_s
3958if test "$LN_S" = "ln -s"; then
64ff59ba 3959 { echo "$as_me:$LINENO: result: yes" >&5
3960echo "${ECHO_T}yes" >&6; }
d9898ee8 3961else
64ff59ba 3962 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3963echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3964fi
3965
3966
3967
3968 for ac_prog in perl5 perl
3969do
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971set dummy $ac_prog; ac_word=$2
64ff59ba 3972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 3974if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976else
3977 case $SYSCONFTOOL_PERL in
3978 [\\/]* | ?:[\\/]*)
3979 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
3980 ;;
3981 *)
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 3989 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993done
3994done
64ff59ba 3995IFS=$as_save_IFS
d9898ee8 3996
3997 ;;
3998esac
3999fi
4000SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
d9898ee8 4001if test -n "$SYSCONFTOOL_PERL"; then
64ff59ba 4002 { echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5
4003echo "${ECHO_T}$SYSCONFTOOL_PERL" >&6; }
d9898ee8 4004else
64ff59ba 4005 { echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6; }
d9898ee8 4007fi
4008
64ff59ba 4009
d9898ee8 4010 test -n "$SYSCONFTOOL_PERL" && break
4011done
4012test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl"
4013
4014
4015 if test "$SYSCONFTOOL_PERL" = "perl"
4016 then
4017 { { echo "$as_me:$LINENO: error: perl not found - please install perl" >&5
4018echo "$as_me: error: perl not found - please install perl" >&2;}
4019 { (exit 1); exit 1; }; }
4020 fi
4021
64ff59ba 4022 { echo "$as_me:$LINENO: checking for sysconftool..." >&5
4023echo $ECHO_N "checking for sysconftool...... $ECHO_C" >&6; }
d9898ee8 4024 SYSCONFTOOL=""
4025 for sysconf_dir in $ac_aux_dir . .. ../..
4026 do
4027 if test -f $srcdir/$sysconf_dir/sysconftool
4028 then
4029 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
4030 break
4031 fi
4032 done
4033
4034 if test "$SYSCONFTOOL" = ""
4035 then
4036 { { echo "$as_me:$LINENO: error: sysconftool missing - not in the package" >&5
4037echo "$as_me: error: sysconftool missing - not in the package" >&2;}
4038 { (exit 1); exit 1; }; }
4039 fi
4040
64ff59ba 4041 { echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5
4042echo "${ECHO_T}$SYSCONFTOOL" >&6; }
d9898ee8 4043 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4044
4045
4046
4047
64ff59ba 4048 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4049echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
d9898ee8 4050if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052else
4053 ac_check_lib_save_LIBS=$LIBS
4054LIBS="-lltdl $LIBS"
4055cat >conftest.$ac_ext <<_ACEOF
4056/* confdefs.h. */
4057_ACEOF
4058cat confdefs.h >>conftest.$ac_ext
4059cat >>conftest.$ac_ext <<_ACEOF
4060/* end confdefs.h. */
4061
64ff59ba 4062/* Override any GCC internal prototype to avoid an error.
4063 Use char because int might match the return type of a GCC
4064 builtin and then its argument prototype would still apply. */
d9898ee8 4065#ifdef __cplusplus
4066extern "C"
4067#endif
d9898ee8 4068char lt_dlinit ();
4069int
4070main ()
4071{
64ff59ba 4072return lt_dlinit ();
d9898ee8 4073 ;
4074 return 0;
4075}
4076_ACEOF
4077rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4078if { (ac_try="$ac_link"
4079case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082esac
4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_link") 2>conftest.er1
d9898ee8 4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4090 (exit $ac_status); } && {
4091 test -z "$ac_c_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest$ac_exeext &&
4094 $as_test_x conftest$ac_exeext; then
d9898ee8 4095 ac_cv_lib_ltdl_lt_dlinit=yes
4096else
4097 echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
64ff59ba 4100 ac_cv_lib_ltdl_lt_dlinit=no
d9898ee8 4101fi
64ff59ba 4102
4103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4104 conftest$ac_exeext conftest.$ac_ext
4105LIBS=$ac_check_lib_save_LIBS
4106fi
64ff59ba 4107{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4108echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
d9898ee8 4109if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4110 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4111else
4112 if test x"$enable_ltdl_install" = xno; then
4113 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4114echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4115 else
4116 enable_ltdl_install=yes
4117 fi
4118
4119fi
4120
4121 if test x"$enable_ltdl_install" = x"yes"; then
4122 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4123 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4124 LTDLINCL='-I${top_srcdir}/''libltdl'
4125 else
4126 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4127 LIBLTDL="-lltdl"
4128 LTDLINCL=
4129 fi
4130 # For backwards non-gettext consistent compatibility...
4131 INCLTDL="$LTDLINCL"
4132
4133
4134
64ff59ba 4135# Check whether --enable-shared was given.
d9898ee8 4136if test "${enable_shared+set}" = set; then
64ff59ba 4137 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 4138 case $enableval in
4139 yes) enable_shared=yes ;;
4140 no) enable_shared=no ;;
4141 *)
4142 enable_shared=no
4143 # Look at the argument we got. We use all the common list separators.
4144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4145 for pkg in $enableval; do
4146 IFS="$lt_save_ifs"
4147 if test "X$pkg" = "X$p"; then
4148 enable_shared=yes
4149 fi
4150 done
4151 IFS="$lt_save_ifs"
4152 ;;
4153 esac
4154else
4155 enable_shared=yes
64ff59ba 4156fi
d9898ee8 4157
64ff59ba 4158
4159# Check whether --enable-static was given.
d9898ee8 4160if test "${enable_static+set}" = set; then
64ff59ba 4161 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 4162 case $enableval in
4163 yes) enable_static=yes ;;
4164 no) enable_static=no ;;
4165 *)
4166 enable_static=no
4167 # Look at the argument we got. We use all the common list separators.
4168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4169 for pkg in $enableval; do
4170 IFS="$lt_save_ifs"
4171 if test "X$pkg" = "X$p"; then
4172 enable_static=yes
4173 fi
4174 done
4175 IFS="$lt_save_ifs"
4176 ;;
4177 esac
4178else
4179 enable_static=yes
64ff59ba 4180fi
d9898ee8 4181
64ff59ba 4182
4183# Check whether --enable-fast-install was given.
d9898ee8 4184if test "${enable_fast_install+set}" = set; then
64ff59ba 4185 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 4186 case $enableval in
4187 yes) enable_fast_install=yes ;;
4188 no) enable_fast_install=no ;;
4189 *)
4190 enable_fast_install=no
4191 # Look at the argument we got. We use all the common list separators.
4192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4193 for pkg in $enableval; do
4194 IFS="$lt_save_ifs"
4195 if test "X$pkg" = "X$p"; then
4196 enable_fast_install=yes
4197 fi
4198 done
4199 IFS="$lt_save_ifs"
4200 ;;
4201 esac
4202else
4203 enable_fast_install=yes
64ff59ba 4204fi
4205
d9898ee8 4206
4207# Make sure we can run config.sub.
64ff59ba 4208$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4209 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4210echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 4211 { (exit 1); exit 1; }; }
4212
64ff59ba 4213{ echo "$as_me:$LINENO: checking build system type" >&5
4214echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 4215if test "${ac_cv_build+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
64ff59ba 4218 ac_build_alias=$build_alias
4219test "x$ac_build_alias" = x &&
4220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4221test "x$ac_build_alias" = x &&
d9898ee8 4222 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4223echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4224 { (exit 1); exit 1; }; }
64ff59ba 4225ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4226 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4227echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 4228 { (exit 1); exit 1; }; }
4229
4230fi
64ff59ba 4231{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4232echo "${ECHO_T}$ac_cv_build" >&6; }
4233case $ac_cv_build in
4234*-*-*) ;;
4235*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4236echo "$as_me: error: invalid value of canonical build" >&2;}
4237 { (exit 1); exit 1; }; };;
4238esac
d9898ee8 4239build=$ac_cv_build
64ff59ba 4240ac_save_IFS=$IFS; IFS='-'
4241set x $ac_cv_build
4242shift
4243build_cpu=$1
4244build_vendor=$2
4245shift; shift
4246# Remember, the first character of IFS is used to create $*,
4247# except with old shells:
4248build_os=$*
4249IFS=$ac_save_IFS
4250case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4251
4252
4253{ echo "$as_me:$LINENO: checking host system type" >&5
4254echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 4255if test "${ac_cv_host+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
64ff59ba 4258 if test "x$host_alias" = x; then
4259 ac_cv_host=$ac_cv_build
4260else
4261 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4262 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4263echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 4264 { (exit 1); exit 1; }; }
64ff59ba 4265fi
d9898ee8 4266
4267fi
64ff59ba 4268{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4269echo "${ECHO_T}$ac_cv_host" >&6; }
4270case $ac_cv_host in
4271*-*-*) ;;
4272*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4273echo "$as_me: error: invalid value of canonical host" >&2;}
4274 { (exit 1); exit 1; }; };;
4275esac
d9898ee8 4276host=$ac_cv_host
64ff59ba 4277ac_save_IFS=$IFS; IFS='-'
4278set x $ac_cv_host
4279shift
4280host_cpu=$1
4281host_vendor=$2
4282shift; shift
4283# Remember, the first character of IFS is used to create $*,
4284# except with old shells:
4285host_os=$*
4286IFS=$ac_save_IFS
4287case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4288
4289
4290{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4291echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 4292if test "${lt_cv_path_SED+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294else
4295 # Loop through the user's path and test for sed and gsed.
4296# Then use that list of sed's as ones to test for truncation.
4297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH
4299do
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for lt_ac_prog in sed gsed; do
4303 for ac_exec_ext in '' $ac_executable_extensions; do
0fde1ce3 4304 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 4305 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4306 fi
4307 done
4308 done
4309done
4310IFS=$as_save_IFS
4311lt_ac_max=0
4312lt_ac_count=0
4313# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4314# along with /bin/sed that truncates output.
4315for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4316 test ! -f $lt_ac_sed && continue
4317 cat /dev/null > conftest.in
4318 lt_ac_count=0
4319 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4320 # Check for GNU sed and select it if it is found.
4321 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4322 lt_cv_path_SED=$lt_ac_sed
4323 break
4324 fi
4325 while true; do
4326 cat conftest.in conftest.in >conftest.tmp
4327 mv conftest.tmp conftest.in
4328 cp conftest.in conftest.nl
4329 echo >>conftest.nl
4330 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4331 cmp -s conftest.out conftest.nl || break
4332 # 10000 chars as input seems more than enough
4333 test $lt_ac_count -gt 10 && break
4334 lt_ac_count=`expr $lt_ac_count + 1`
4335 if test $lt_ac_count -gt $lt_ac_max; then
4336 lt_ac_max=$lt_ac_count
4337 lt_cv_path_SED=$lt_ac_sed
4338 fi
4339 done
4340done
4341
4342fi
4343
4344SED=$lt_cv_path_SED
4345
64ff59ba 4346{ echo "$as_me:$LINENO: result: $SED" >&5
4347echo "${ECHO_T}$SED" >&6; }
4348
4349{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4350echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4351if test "${ac_cv_path_GREP+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354 # Extract the first word of "grep ggrep" to use in msg output
4355if test -z "$GREP"; then
4356set dummy grep ggrep; ac_prog_name=$2
4357if test "${ac_cv_path_GREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360 ac_path_GREP_found=false
4361# Loop through the user's path and test for each of PROGNAME-LIST
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in grep ggrep; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4371 # Check for GNU ac_path_GREP and select it if it is found.
4372 # Check for GNU $ac_path_GREP
4373case `"$ac_path_GREP" --version 2>&1` in
4374*GNU*)
4375 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4376*)
4377 ac_count=0
4378 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4379 while :
4380 do
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 echo 'GREP' >> "conftest.nl"
4385 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 ac_count=`expr $ac_count + 1`
4388 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_GREP="$ac_path_GREP"
4391 ac_path_GREP_max=$ac_count
4392 fi
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397esac
4398
4399
4400 $ac_path_GREP_found && break 3
4401 done
4402done
4403
4404done
4405IFS=$as_save_IFS
4406
4407
4408fi
4409
4410GREP="$ac_cv_path_GREP"
4411if test -z "$GREP"; then
4412 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4415fi
4416
4417else
4418 ac_cv_path_GREP=$GREP
4419fi
4420
4421
4422fi
4423{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4424echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4425 GREP="$ac_cv_path_GREP"
4426
d9898ee8 4427
64ff59ba 4428{ echo "$as_me:$LINENO: checking for egrep" >&5
4429echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4430if test "${ac_cv_path_EGREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4434 then ac_cv_path_EGREP="$GREP -E"
4435 else
4436 # Extract the first word of "egrep" to use in msg output
4437if test -z "$EGREP"; then
4438set dummy egrep; ac_prog_name=$2
4439if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
64ff59ba 4442 ac_path_EGREP_found=false
4443# Loop through the user's path and test for each of PROGNAME-LIST
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in egrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4453 # Check for GNU ac_path_EGREP and select it if it is found.
4454 # Check for GNU $ac_path_EGREP
4455case `"$ac_path_EGREP" --version 2>&1` in
4456*GNU*)
4457 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4458*)
4459 ac_count=0
4460 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 echo 'EGREP' >> "conftest.nl"
4467 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 ac_count=`expr $ac_count + 1`
4470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_EGREP="$ac_path_EGREP"
4473 ac_path_EGREP_max=$ac_count
d9898ee8 4474 fi
64ff59ba 4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479esac
4480
4481
4482 $ac_path_EGREP_found && break 3
4483 done
4484done
4485
4486done
4487IFS=$as_save_IFS
4488
4489
4490fi
4491
4492EGREP="$ac_cv_path_EGREP"
4493if test -z "$EGREP"; then
4494 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4495echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4496 { (exit 1); exit 1; }; }
4497fi
4498
4499else
4500 ac_cv_path_EGREP=$EGREP
4501fi
4502
4503
4504 fi
d9898ee8 4505fi
64ff59ba 4506{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4507echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4508 EGREP="$ac_cv_path_EGREP"
d9898ee8 4509
4510
4511
64ff59ba 4512# Check whether --with-gnu-ld was given.
d9898ee8 4513if test "${with_gnu_ld+set}" = set; then
64ff59ba 4514 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4515else
4516 with_gnu_ld=no
64ff59ba 4517fi
4518
d9898ee8 4519ac_prog=ld
4520if test "$GCC" = yes; then
4521 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 4522 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4523echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4524 case $host in
4525 *-*-mingw*)
4526 # gcc leaves a trailing carriage return which upsets mingw
4527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4528 *)
4529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4530 esac
4531 case $ac_prog in
4532 # Accept absolute paths.
4533 [\\/]* | ?:[\\/]*)
4534 re_direlt='/[^/][^/]*/\.\./'
4535 # Canonicalize the pathname of ld
4536 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4537 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4538 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4539 done
4540 test -z "$LD" && LD="$ac_prog"
4541 ;;
4542 "")
4543 # If it fails, then pretend we aren't using GCC.
4544 ac_prog=ld
4545 ;;
4546 *)
4547 # If it is relative, then search for the first ld in PATH.
4548 with_gnu_ld=unknown
4549 ;;
4550 esac
4551elif test "$with_gnu_ld" = yes; then
64ff59ba 4552 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4553echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4554else
64ff59ba 4555 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4556echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4557fi
4558if test "${lt_cv_path_LD+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560else
4561 if test -z "$LD"; then
4562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4563 for ac_dir in $PATH; do
4564 IFS="$lt_save_ifs"
4565 test -z "$ac_dir" && ac_dir=.
4566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4567 lt_cv_path_LD="$ac_dir/$ac_prog"
4568 # Check to see if the program is GNU ld. I'd rather use --version,
4569 # but apparently some variants of GNU ld only accept -v.
4570 # Break only if it was the GNU/non-GNU ld that we prefer.
4571 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4572 *GNU* | *'with BFD'*)
4573 test "$with_gnu_ld" != no && break
4574 ;;
4575 *)
4576 test "$with_gnu_ld" != yes && break
4577 ;;
4578 esac
4579 fi
4580 done
4581 IFS="$lt_save_ifs"
4582else
4583 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4584fi
4585fi
4586
4587LD="$lt_cv_path_LD"
4588if test -n "$LD"; then
64ff59ba 4589 { echo "$as_me:$LINENO: result: $LD" >&5
4590echo "${ECHO_T}$LD" >&6; }
d9898ee8 4591else
64ff59ba 4592 { echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6; }
d9898ee8 4594fi
4595test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4596echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4597 { (exit 1); exit 1; }; }
64ff59ba 4598{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4599echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4600if test "${lt_cv_prog_gnu_ld+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4604case `$LD -v 2>&1 </dev/null` in
4605*GNU* | *'with BFD'*)
4606 lt_cv_prog_gnu_ld=yes
4607 ;;
4608*)
4609 lt_cv_prog_gnu_ld=no
4610 ;;
4611esac
4612fi
64ff59ba 4613{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4614echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4615with_gnu_ld=$lt_cv_prog_gnu_ld
4616
4617
64ff59ba 4618{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4619echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4620if test "${lt_cv_ld_reload_flag+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 lt_cv_ld_reload_flag='-r'
4624fi
64ff59ba 4625{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4626echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4627reload_flag=$lt_cv_ld_reload_flag
4628case $reload_flag in
4629"" | " "*) ;;
4630*) reload_flag=" $reload_flag" ;;
4631esac
4632reload_cmds='$LD$reload_flag -o $output$reload_objs'
4633case $host_os in
4634 darwin*)
4635 if test "$GCC" = yes; then
4636 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4637 else
4638 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4639 fi
4640 ;;
4641esac
4642
64ff59ba 4643{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4644echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4645if test "${lt_cv_path_NM+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 if test -n "$NM"; then
4649 # Let the user override the test.
4650 lt_cv_path_NM="$NM"
4651else
4652 lt_nm_to_check="${ac_tool_prefix}nm"
4653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4654 lt_nm_to_check="$lt_nm_to_check nm"
4655 fi
4656 for lt_tmp_nm in $lt_nm_to_check; do
4657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4659 IFS="$lt_save_ifs"
4660 test -z "$ac_dir" && ac_dir=.
4661 tmp_nm="$ac_dir/$lt_tmp_nm"
4662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4663 # Check to see if the nm accepts a BSD-compat flag.
4664 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4665 # nm: unknown option "B" ignored
4666 # Tru64's nm complains that /dev/null is an invalid object file
4667 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4668 */dev/null* | *'Invalid file or object type'*)
4669 lt_cv_path_NM="$tmp_nm -B"
4670 break
4671 ;;
4672 *)
4673 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4674 */dev/null*)
4675 lt_cv_path_NM="$tmp_nm -p"
4676 break
4677 ;;
4678 *)
4679 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4680 continue # so that we can try to find one that supports BSD flags
4681 ;;
4682 esac
4683 ;;
4684 esac
4685 fi
4686 done
4687 IFS="$lt_save_ifs"
4688 done
4689 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4690fi
4691fi
64ff59ba 4692{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4693echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4694NM="$lt_cv_path_NM"
4695
0fde1ce3 4696{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4697echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d9898ee8 4698if test "${lt_cv_deplibs_check_method+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 lt_cv_file_magic_cmd='$MAGIC_CMD'
4702lt_cv_file_magic_test_file=
4703lt_cv_deplibs_check_method='unknown'
4704# Need to set the preceding variable on all platforms that support
4705# interlibrary dependencies.
4706# 'none' -- dependencies not supported.
4707# `unknown' -- same as none, but documents that we really don't know.
4708# 'pass_all' -- all dependencies passed with no checks.
4709# 'test_compile' -- check by making test program.
4710# 'file_magic [[regex]]' -- check by looking for files in library path
4711# which responds to the $file_magic_cmd with a given extended regex.
4712# If you have `file' or equivalent on your system and you're not sure
4713# whether `pass_all' will *always* work, you probably want this one.
4714
4715case $host_os in
4716aix4* | aix5*)
4717 lt_cv_deplibs_check_method=pass_all
4718 ;;
4719
4720beos*)
4721 lt_cv_deplibs_check_method=pass_all
4722 ;;
4723
4724bsdi[45]*)
4725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4726 lt_cv_file_magic_cmd='/usr/bin/file -L'
4727 lt_cv_file_magic_test_file=/shlib/libc.so
4728 ;;
4729
4730cygwin*)
4731 # func_win32_libid is a shell function defined in ltmain.sh
4732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4733 lt_cv_file_magic_cmd='func_win32_libid'
4734 ;;
4735
4736mingw* | pw32*)
4737 # Base MSYS/MinGW do not provide the 'file' command needed by
0fde1ce3 4738 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4739 # unless we find 'file', for example because we are cross-compiling.
4740 if ( file / ) >/dev/null 2>&1; then
4741 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4742 lt_cv_file_magic_cmd='func_win32_libid'
4743 else
4744 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4745 lt_cv_file_magic_cmd='$OBJDUMP -f'
4746 fi
d9898ee8 4747 ;;
4748
4749darwin* | rhapsody*)
4750 lt_cv_deplibs_check_method=pass_all
4751 ;;
4752
0fde1ce3 4753freebsd* | dragonfly*)
d9898ee8 4754 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4755 case $host_cpu in
4756 i*86 )
4757 # Not sure whether the presence of OpenBSD here was a mistake.
4758 # Let's accept both of them until this is cleared up.
4759 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4760 lt_cv_file_magic_cmd=/usr/bin/file
4761 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4762 ;;
4763 esac
4764 else
4765 lt_cv_deplibs_check_method=pass_all
4766 fi
4767 ;;
4768
4769gnu*)
4770 lt_cv_deplibs_check_method=pass_all
4771 ;;
4772
4773hpux10.20* | hpux11*)
4774 lt_cv_file_magic_cmd=/usr/bin/file
4775 case $host_cpu in
4776 ia64*)
4777 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4778 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4779 ;;
4780 hppa*64*)
4781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4782 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4783 ;;
4784 *)
4785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4786 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4787 ;;
4788 esac
4789 ;;
4790
0fde1ce3 4791interix[3-9]*)
d9898ee8 4792 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4794 ;;
4795
4796irix5* | irix6* | nonstopux*)
4797 case $LD in
4798 *-32|*"-32 ") libmagic=32-bit;;
4799 *-n32|*"-n32 ") libmagic=N32;;
4800 *-64|*"-64 ") libmagic=64-bit;;
4801 *) libmagic=never-match;;
4802 esac
4803 lt_cv_deplibs_check_method=pass_all
4804 ;;
4805
4806# This must be Linux ELF.
0fde1ce3 4807linux* | k*bsd*-gnu)
d9898ee8 4808 lt_cv_deplibs_check_method=pass_all
4809 ;;
4810
4811netbsd*)
4812 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4814 else
4815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4816 fi
4817 ;;
4818
4819newos6*)
4820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4821 lt_cv_file_magic_cmd=/usr/bin/file
4822 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4823 ;;
4824
4825nto-qnx*)
4826 lt_cv_deplibs_check_method=unknown
4827 ;;
4828
4829openbsd*)
4830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4832 else
4833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4834 fi
4835 ;;
4836
4837osf3* | osf4* | osf5*)
4838 lt_cv_deplibs_check_method=pass_all
4839 ;;
4840
0fde1ce3 4841rdos*)
4842 lt_cv_deplibs_check_method=pass_all
4843 ;;
4844
d9898ee8 4845solaris*)
4846 lt_cv_deplibs_check_method=pass_all
4847 ;;
4848
4849sysv4 | sysv4.3*)
4850 case $host_vendor in
4851 motorola)
4852 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]'
4853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4854 ;;
4855 ncr)
4856 lt_cv_deplibs_check_method=pass_all
4857 ;;
4858 sequent)
4859 lt_cv_file_magic_cmd='/bin/file'
4860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4861 ;;
4862 sni)
4863 lt_cv_file_magic_cmd='/bin/file'
4864 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4865 lt_cv_file_magic_test_file=/lib/libc.so
4866 ;;
4867 siemens)
4868 lt_cv_deplibs_check_method=pass_all
4869 ;;
4870 pc)
4871 lt_cv_deplibs_check_method=pass_all
4872 ;;
4873 esac
4874 ;;
4875
4876sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4877 lt_cv_deplibs_check_method=pass_all
4878 ;;
4879esac
4880
4881fi
64ff59ba 4882{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4883echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4884file_magic_cmd=$lt_cv_file_magic_cmd
4885deplibs_check_method=$lt_cv_deplibs_check_method
4886test -z "$deplibs_check_method" && deplibs_check_method=unknown
4887
4888
4889
4890
4891# If no C compiler was specified, use CC.
4892LTCC=${LTCC-"$CC"}
4893
4894# If no C compiler flags were specified, use CFLAGS.
4895LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4896
4897# Allow CC to be a program name with arguments.
4898compiler=$CC
4899
64ff59ba 4900# Check whether --enable-libtool-lock was given.
d9898ee8 4901if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4902 enableval=$enable_libtool_lock;
4903fi
d9898ee8 4904
d9898ee8 4905test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4906
4907# Some flags need to be propagated to the compiler or linker for good
4908# libtool support.
4909case $host in
4910ia64-*-hpux*)
4911 # Find out which ABI we are using.
4912 echo 'int i;' > conftest.$ac_ext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; then
4918 case `/usr/bin/file conftest.$ac_objext` in
4919 *ELF-32*)
4920 HPUX_IA64_MODE="32"
4921 ;;
4922 *ELF-64*)
4923 HPUX_IA64_MODE="64"
4924 ;;
4925 esac
4926 fi
4927 rm -rf conftest*
4928 ;;
4929*-*-irix6*)
4930 # Find out which ABI we are using.
0fde1ce3 4931 echo '#line 4931 "configure"' > conftest.$ac_ext
d9898ee8 4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; then
4937 if test "$lt_cv_prog_gnu_ld" = yes; then
4938 case `/usr/bin/file conftest.$ac_objext` in
4939 *32-bit*)
4940 LD="${LD-ld} -melf32bsmip"
4941 ;;
4942 *N32*)
4943 LD="${LD-ld} -melf32bmipn32"
4944 ;;
4945 *64-bit*)
4946 LD="${LD-ld} -melf64bmip"
4947 ;;
4948 esac
4949 else
4950 case `/usr/bin/file conftest.$ac_objext` in
4951 *32-bit*)
4952 LD="${LD-ld} -32"
4953 ;;
4954 *N32*)
4955 LD="${LD-ld} -n32"
4956 ;;
4957 *64-bit*)
4958 LD="${LD-ld} -64"
4959 ;;
4960 esac
4961 fi
4962 fi
4963 rm -rf conftest*
4964 ;;
4965
0fde1ce3 4966x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4967s390*-*linux*|sparc*-*linux*)
d9898ee8 4968 # Find out which ABI we are using.
4969 echo 'int i;' > conftest.$ac_ext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; then
4975 case `/usr/bin/file conftest.o` in
4976 *32-bit*)
4977 case $host in
0fde1ce3 4978 x86_64-*kfreebsd*-gnu)
4979 LD="${LD-ld} -m elf_i386_fbsd"
4980 ;;
d9898ee8 4981 x86_64-*linux*)
4982 LD="${LD-ld} -m elf_i386"
4983 ;;
4984 ppc64-*linux*|powerpc64-*linux*)
4985 LD="${LD-ld} -m elf32ppclinux"
4986 ;;
4987 s390x-*linux*)
4988 LD="${LD-ld} -m elf_s390"
4989 ;;
4990 sparc64-*linux*)
4991 LD="${LD-ld} -m elf32_sparc"
4992 ;;
4993 esac
4994 ;;
4995 *64-bit*)
0fde1ce3 4996 libsuff=64
d9898ee8 4997 case $host in
0fde1ce3 4998 x86_64-*kfreebsd*-gnu)
4999 LD="${LD-ld} -m elf_x86_64_fbsd"
5000 ;;
d9898ee8 5001 x86_64-*linux*)
5002 LD="${LD-ld} -m elf_x86_64"
5003 ;;
5004 ppc*-*linux*|powerpc*-*linux*)
5005 LD="${LD-ld} -m elf64ppc"
5006 ;;
5007 s390*-*linux*)
5008 LD="${LD-ld} -m elf64_s390"
5009 ;;
5010 sparc*-*linux*)
5011 LD="${LD-ld} -m elf64_sparc"
5012 ;;
5013 esac
5014 ;;
5015 esac
5016 fi
5017 rm -rf conftest*
5018 ;;
5019
5020*-*-sco3.2v5*)
5021 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5022 SAVE_CFLAGS="$CFLAGS"
5023 CFLAGS="$CFLAGS -belf"
64ff59ba 5024 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5025echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 5026if test "${lt_cv_cc_needs_belf+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028else
5029 ac_ext=c
5030ac_cpp='$CPP $CPPFLAGS'
5031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041
5042int
5043main ()
5044{
5045
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 5051if { (ac_try="$ac_link"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_link") 2>conftest.er1
d9898ee8 5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest$ac_exeext &&
5067 $as_test_x conftest$ac_exeext; then
d9898ee8 5068 lt_cv_cc_needs_belf=yes
5069else
5070 echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
64ff59ba 5073 lt_cv_cc_needs_belf=no
d9898ee8 5074fi
64ff59ba 5075
5076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 5077 conftest$ac_exeext conftest.$ac_ext
5078 ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084fi
64ff59ba 5085{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5086echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 5087 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5088 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5089 CFLAGS="$SAVE_CFLAGS"
5090 fi
5091 ;;
5092sparc*-*solaris*)
5093 # Find out which ABI we are using.
5094 echo 'int i;' > conftest.$ac_ext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; then
5100 case `/usr/bin/file conftest.o` in
5101 *64-bit*)
5102 case $lt_cv_prog_gnu_ld in
5103 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5104 *) LD="${LD-ld} -64" ;;
5105 esac
5106 ;;
5107 esac
5108 fi
5109 rm -rf conftest*
5110 ;;
5111
5112
5113esac
5114
5115need_locks="$enable_libtool_lock"
5116
5117
5118
64ff59ba 5119{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5120echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 5121if test "${ac_cv_header_stdc+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124 cat >conftest.$ac_ext <<_ACEOF
5125/* confdefs.h. */
5126_ACEOF
5127cat confdefs.h >>conftest.$ac_ext
5128cat >>conftest.$ac_ext <<_ACEOF
5129/* end confdefs.h. */
5130#include <stdlib.h>
5131#include <stdarg.h>
5132#include <string.h>
5133#include <float.h>
5134
5135int
5136main ()
5137{
5138
5139 ;
5140 return 0;
5141}
5142_ACEOF
5143rm -f conftest.$ac_objext
64ff59ba 5144if { (ac_try="$ac_compile"
5145case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5148esac
5149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5156 (exit $ac_status); } && {
5157 test -z "$ac_c_werror_flag" ||
5158 test ! -s conftest.err
5159 } && test -s conftest.$ac_objext; then
d9898ee8 5160 ac_cv_header_stdc=yes
5161else
5162 echo "$as_me: failed program was:" >&5
5163sed 's/^/| /' conftest.$ac_ext >&5
5164
64ff59ba 5165 ac_cv_header_stdc=no
d9898ee8 5166fi
64ff59ba 5167
5168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5169
5170if test $ac_cv_header_stdc = yes; then
5171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5172 cat >conftest.$ac_ext <<_ACEOF
5173/* confdefs.h. */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5177/* end confdefs.h. */
5178#include <string.h>
5179
5180_ACEOF
5181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "memchr" >/dev/null 2>&1; then
5183 :
5184else
5185 ac_cv_header_stdc=no
5186fi
5187rm -f conftest*
5188
5189fi
5190
5191if test $ac_cv_header_stdc = yes; then
5192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5193 cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h. */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>conftest.$ac_ext <<_ACEOF
5198/* end confdefs.h. */
5199#include <stdlib.h>
5200
5201_ACEOF
5202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5203 $EGREP "free" >/dev/null 2>&1; then
5204 :
5205else
5206 ac_cv_header_stdc=no
5207fi
5208rm -f conftest*
5209
5210fi
5211
5212if test $ac_cv_header_stdc = yes; then
5213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5214 if test "$cross_compiling" = yes; then
5215 :
5216else
5217 cat >conftest.$ac_ext <<_ACEOF
5218/* confdefs.h. */
5219_ACEOF
5220cat confdefs.h >>conftest.$ac_ext
5221cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h. */
5223#include <ctype.h>
64ff59ba 5224#include <stdlib.h>
d9898ee8 5225#if ((' ' & 0x0FF) == 0x020)
5226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5228#else
5229# define ISLOWER(c) \
5230 (('a' <= (c) && (c) <= 'i') \
5231 || ('j' <= (c) && (c) <= 'r') \
5232 || ('s' <= (c) && (c) <= 'z'))
5233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5234#endif
5235
5236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5237int
5238main ()
5239{
5240 int i;
5241 for (i = 0; i < 256; i++)
5242 if (XOR (islower (i), ISLOWER (i))
5243 || toupper (i) != TOUPPER (i))
64ff59ba 5244 return 2;
5245 return 0;
d9898ee8 5246}
5247_ACEOF
5248rm -f conftest$ac_exeext
64ff59ba 5249if { (ac_try="$ac_link"
5250case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253esac
5254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_link") 2>&5
d9898ee8 5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 5259 { (case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262esac
5263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_try") 2>&5
d9898ee8 5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 :
5269else
5270 echo "$as_me: program exited with status $ac_status" >&5
5271echo "$as_me: failed program was:" >&5
5272sed 's/^/| /' conftest.$ac_ext >&5
5273
5274( exit $ac_status )
5275ac_cv_header_stdc=no
5276fi
64ff59ba 5277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5278fi
64ff59ba 5279
5280
d9898ee8 5281fi
5282fi
64ff59ba 5283{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5284echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5285if test $ac_cv_header_stdc = yes; then
5286
5287cat >>confdefs.h <<\_ACEOF
5288#define STDC_HEADERS 1
5289_ACEOF
5290
5291fi
5292
5293# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5304 inttypes.h stdint.h unistd.h
5305do
5306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312 cat >conftest.$ac_ext <<_ACEOF
5313/* confdefs.h. */
5314_ACEOF
5315cat confdefs.h >>conftest.$ac_ext
5316cat >>conftest.$ac_ext <<_ACEOF
5317/* end confdefs.h. */
5318$ac_includes_default
5319
5320#include <$ac_header>
5321_ACEOF
5322rm -f conftest.$ac_objext
64ff59ba 5323if { (ac_try="$ac_compile"
5324case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327esac
5328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5335 (exit $ac_status); } && {
5336 test -z "$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5338 } && test -s conftest.$ac_objext; then
d9898ee8 5339 eval "$as_ac_Header=yes"
5340else
5341 echo "$as_me: failed program was:" >&5
5342sed 's/^/| /' conftest.$ac_ext >&5
5343
64ff59ba 5344 eval "$as_ac_Header=no"
d9898ee8 5345fi
64ff59ba 5346
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5348fi
64ff59ba 5349ac_res=`eval echo '${'$as_ac_Header'}'`
5350 { echo "$as_me:$LINENO: result: $ac_res" >&5
5351echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5352if test `eval echo '${'$as_ac_Header'}'` = yes; then
5353 cat >>confdefs.h <<_ACEOF
5354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355_ACEOF
5356
5357fi
5358
5359done
5360
5361
5362
5363for ac_header in dlfcn.h
5364do
5365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371fi
64ff59ba 5372ac_res=`eval echo '${'$as_ac_Header'}'`
5373 { echo "$as_me:$LINENO: result: $ac_res" >&5
5374echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5375else
5376 # Is the header compilable?
64ff59ba 5377{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5379cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
5385$ac_includes_default
5386#include <$ac_header>
5387_ACEOF
5388rm -f conftest.$ac_objext
64ff59ba 5389if { (ac_try="$ac_compile"
5390case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
d9898ee8 5405 ac_header_compiler=yes
5406else
5407 echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
64ff59ba 5410 ac_header_compiler=no
d9898ee8 5411fi
64ff59ba 5412
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5415echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5416
5417# Is the header present?
64ff59ba 5418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5420cat >conftest.$ac_ext <<_ACEOF
5421/* confdefs.h. */
5422_ACEOF
5423cat confdefs.h >>conftest.$ac_ext
5424cat >>conftest.$ac_ext <<_ACEOF
5425/* end confdefs.h. */
5426#include <$ac_header>
5427_ACEOF
64ff59ba 5428if { (ac_try="$ac_cpp conftest.$ac_ext"
5429case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432esac
5433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5440 (exit $ac_status); } >/dev/null && {
5441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5443 }; then
d9898ee8 5444 ac_header_preproc=yes
5445else
5446 echo "$as_me: failed program was:" >&5
5447sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 ac_header_preproc=no
5450fi
64ff59ba 5451
d9898ee8 5452rm -f conftest.err conftest.$ac_ext
64ff59ba 5453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5454echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5455
5456# So? What about this header?
5457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5458 yes:no: )
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5463 ac_header_preproc=yes
5464 ;;
5465 no:yes:* )
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5478 ( cat <<\_ASBOX
0fde1ce3 5479## ------------------------------------------------- ##
5480## Report this to courier-imap@lists.sourceforge.net ##
5481## ------------------------------------------------- ##
d9898ee8 5482_ASBOX
64ff59ba 5483 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5484 ;;
5485esac
64ff59ba 5486{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490else
5491 eval "$as_ac_Header=\$ac_header_preproc"
5492fi
64ff59ba 5493ac_res=`eval echo '${'$as_ac_Header'}'`
5494 { echo "$as_me:$LINENO: result: $ac_res" >&5
5495echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5496
5497fi
5498if test `eval echo '${'$as_ac_Header'}'` = yes; then
5499 cat >>confdefs.h <<_ACEOF
5500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5501_ACEOF
5502
5503fi
5504
5505done
5506
64ff59ba 5507ac_ext=cpp
d9898ee8 5508ac_cpp='$CXXCPP $CPPFLAGS'
5509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5512if test -z "$CXX"; then
5513 if test -n "$CCC"; then
5514 CXX=$CCC
5515 else
5516 if test -n "$ac_tool_prefix"; then
5517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5518 do
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5523if test "${ac_cv_prog_CXX+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526 if test -n "$CXX"; then
5527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5528else
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540done
5541done
64ff59ba 5542IFS=$as_save_IFS
d9898ee8 5543
5544fi
5545fi
5546CXX=$ac_cv_prog_CXX
5547if test -n "$CXX"; then
64ff59ba 5548 { echo "$as_me:$LINENO: result: $CXX" >&5
5549echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5550else
64ff59ba 5551 { echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6; }
d9898ee8 5553fi
5554
64ff59ba 5555
d9898ee8 5556 test -n "$CXX" && break
5557 done
5558fi
5559if test -z "$CXX"; then
5560 ac_ct_CXX=$CXX
64ff59ba 5561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5562do
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564set dummy $ac_prog; ac_word=$2
64ff59ba 5565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5567if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570 if test -n "$ac_ct_CXX"; then
5571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5580 ac_cv_prog_ac_ct_CXX="$ac_prog"
5581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5583 fi
5584done
5585done
64ff59ba 5586IFS=$as_save_IFS
d9898ee8 5587
5588fi
5589fi
5590ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5591if test -n "$ac_ct_CXX"; then
64ff59ba 5592 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5593echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5594else
64ff59ba 5595 { echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6; }
d9898ee8 5597fi
5598
64ff59ba 5599
d9898ee8 5600 test -n "$ac_ct_CXX" && break
5601done
d9898ee8 5602
64ff59ba 5603 if test "x$ac_ct_CXX" = x; then
5604 CXX="g++"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607yes:)
5608{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609whose name does not start with the host triplet. If you think this
5610configuration is useful to you, please write to autoconf@gnu.org." >&5
5611echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612whose name does not start with the host triplet. If you think this
5613configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614ac_tool_warned=yes ;;
5615esac
5616 CXX=$ac_ct_CXX
5617 fi
d9898ee8 5618fi
5619
64ff59ba 5620 fi
5621fi
d9898ee8 5622# Provide some information about the compiler.
64ff59ba 5623echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5624ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5625{ (ac_try="$ac_compiler --version >&5"
5626case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629esac
5630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }
64ff59ba 5635{ (ac_try="$ac_compiler -v >&5"
5636case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639esac
5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }
64ff59ba 5645{ (ac_try="$ac_compiler -V >&5"
5646case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }
5655
64ff59ba 5656{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5657echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5658if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661 cat >conftest.$ac_ext <<_ACEOF
5662/* confdefs.h. */
5663_ACEOF
5664cat confdefs.h >>conftest.$ac_ext
5665cat >>conftest.$ac_ext <<_ACEOF
5666/* end confdefs.h. */
5667
5668int
5669main ()
5670{
5671#ifndef __GNUC__
5672 choke me
5673#endif
5674
5675 ;
5676 return 0;
5677}
5678_ACEOF
5679rm -f conftest.$ac_objext
64ff59ba 5680if { (ac_try="$ac_compile"
5681case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5692 (exit $ac_status); } && {
5693 test -z "$ac_cxx_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
d9898ee8 5696 ac_compiler_gnu=yes
5697else
5698 echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
64ff59ba 5701 ac_compiler_gnu=no
d9898ee8 5702fi
64ff59ba 5703
5704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5705ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5706
5707fi
64ff59ba 5708{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5709echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5710GXX=`test $ac_compiler_gnu = yes && echo yes`
5711ac_test_CXXFLAGS=${CXXFLAGS+set}
5712ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5713{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5714echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5715if test "${ac_cv_prog_cxx_g+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
64ff59ba 5718 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5719 ac_cxx_werror_flag=yes
5720 ac_cv_prog_cxx_g=no
5721 CXXFLAGS="-g"
5722 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5723/* confdefs.h. */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h. */
5728
5729int
5730main ()
5731{
5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737rm -f conftest.$ac_objext
64ff59ba 5738if { (ac_try="$ac_compile"
5739case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5750 (exit $ac_status); } && {
5751 test -z "$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
d9898ee8 5754 ac_cv_prog_cxx_g=yes
5755else
5756 echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
64ff59ba 5759 CXXFLAGS=""
5760 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5761/* confdefs.h. */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h. */
64ff59ba 5766
d9898ee8 5767int
5768main ()
5769{
64ff59ba 5770
d9898ee8 5771 ;
5772 return 0;
5773}
5774_ACEOF
5775rm -f conftest.$ac_objext
64ff59ba 5776if { (ac_try="$ac_compile"
5777case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5788 (exit $ac_status); } && {
5789 test -z "$ac_cxx_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
d9898ee8 5792 :
5793else
5794 echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
64ff59ba 5797 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5798 CXXFLAGS="-g"
5799 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5800/* confdefs.h. */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
5804/* end confdefs.h. */
64ff59ba 5805
d9898ee8 5806int
5807main ()
5808{
64ff59ba 5809
d9898ee8 5810 ;
5811 return 0;
5812}
5813_ACEOF
5814rm -f conftest.$ac_objext
64ff59ba 5815if { (ac_try="$ac_compile"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5827 (exit $ac_status); } && {
5828 test -z "$ac_cxx_werror_flag" ||
5829 test ! -s conftest.err
5830 } && test -s conftest.$ac_objext; then
5831 ac_cv_prog_cxx_g=yes
d9898ee8 5832else
5833 echo "$as_me: failed program was:" >&5
5834sed 's/^/| /' conftest.$ac_ext >&5
5835
64ff59ba 5836
d9898ee8 5837fi
64ff59ba 5838
5839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5840fi
5841
64ff59ba 5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843fi
5844
5845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5847fi
5848{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5849echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5850if test "$ac_test_CXXFLAGS" = set; then
5851 CXXFLAGS=$ac_save_CXXFLAGS
5852elif test $ac_cv_prog_cxx_g = yes; then
5853 if test "$GXX" = yes; then
5854 CXXFLAGS="-g -O2"
5855 else
5856 CXXFLAGS="-g"
5857 fi
5858else
5859 if test "$GXX" = yes; then
5860 CXXFLAGS="-O2"
5861 else
5862 CXXFLAGS=
5863 fi
5864fi
5865ac_ext=cpp
d9898ee8 5866ac_cpp='$CXXCPP $CPPFLAGS'
5867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5870
5871depcc="$CXX" am_compiler_list=
5872
64ff59ba 5873{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5874echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5875if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5879 # We make a subdir and do the tests there. Otherwise we can end up
5880 # making bogus files that we don't know about and never remove. For
5881 # instance it was reported that on HP-UX the gcc test will end up
5882 # making a dummy file named `D' -- because `-MD' means `put the output
5883 # in D'.
5884 mkdir conftest.dir
5885 # Copy depcomp to subdir because otherwise we won't find it if we're
5886 # using a relative directory.
5887 cp "$am_depcomp" conftest.dir
5888 cd conftest.dir
5889 # We will build objects and dependencies in a subdirectory because
5890 # it helps to detect inapplicable dependency modes. For instance
5891 # both Tru64's cc and ICC support -MD to output dependencies as a
5892 # side effect of compilation, but ICC will put the dependencies in
5893 # the current directory while Tru64 will put them in the object
5894 # directory.
5895 mkdir sub
5896
5897 am_cv_CXX_dependencies_compiler_type=none
5898 if test "$am_compiler_list" = ""; then
5899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5900 fi
5901 for depmode in $am_compiler_list; do
5902 # Setup a source with many dependencies, because some compilers
5903 # like to wrap large dependency lists on column 80 (with \), and
5904 # we should not choose a depcomp mode which is confused by this.
5905 #
5906 # We need to recreate these files for each test, as the compiler may
5907 # overwrite some of them when testing with obscure command lines.
5908 # This happens at least with the AIX C compiler.
5909 : > sub/conftest.c
5910 for i in 1 2 3 4 5 6; do
5911 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5912 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5913 # Solaris 8's {/usr,}/bin/sh.
5914 touch sub/conftst$i.h
5915 done
5916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5917
5918 case $depmode in
5919 nosideeffect)
5920 # after this tag, mechanisms are not by side-effect, so they'll
5921 # only be used when explicitly requested
5922 if test "x$enable_dependency_tracking" = xyes; then
5923 continue
5924 else
5925 break
5926 fi
5927 ;;
5928 none) break ;;
5929 esac
5930 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5931 # mode. It turns out that the SunPro C++ compiler does not properly
5932 # handle `-M -o', and we need to detect this.
5933 if depmode=$depmode \
5934 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5936 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5937 >/dev/null 2>conftest.err &&
64ff59ba 5938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5940 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5942 # icc doesn't choke on unknown options, it will just issue warnings
5943 # or remarks (even with -Werror). So we grep stderr for any message
5944 # that says an option was ignored or not supported.
5945 # When given -MP, icc 7.0 and 7.1 complain thusly:
5946 # icc: Command line warning: ignoring option '-M'; no argument required
5947 # The diagnosis changed in icc 8.0:
5948 # icc: Command line remark: option '-MP' not supported
5949 if (grep 'ignoring option' conftest.err ||
5950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5951 am_cv_CXX_dependencies_compiler_type=$depmode
5952 break
5953 fi
5954 fi
5955 done
5956
5957 cd ..
5958 rm -rf conftest.dir
5959else
5960 am_cv_CXX_dependencies_compiler_type=none
5961fi
5962
5963fi
64ff59ba 5964{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5965echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5966CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5967
64ff59ba 5968 if
d9898ee8 5969 test "x$enable_dependency_tracking" != xno \
5970 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5971 am__fastdepCXX_TRUE=
5972 am__fastdepCXX_FALSE='#'
5973else
5974 am__fastdepCXX_TRUE='#'
5975 am__fastdepCXX_FALSE=
5976fi
5977
5978
5979
5980
5981if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5983 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5984 ac_ext=cpp
d9898ee8 5985ac_cpp='$CXXCPP $CPPFLAGS'
5986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5989{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5990echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5991if test -z "$CXXCPP"; then
5992 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995 # Double quotes because CXXCPP needs to be expanded
5996 for CXXCPP in "$CXX -E" "/lib/cpp"
5997 do
5998 ac_preproc_ok=false
5999for ac_cxx_preproc_warn_flag in '' yes
6000do
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h. */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h. */
6013#ifdef __STDC__
6014# include <limits.h>
6015#else
6016# include <assert.h>
6017#endif
6018 Syntax error
6019_ACEOF
64ff59ba 6020if { (ac_try="$ac_cpp conftest.$ac_ext"
6021case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6032 (exit $ac_status); } >/dev/null && {
6033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6034 test ! -s conftest.err
6035 }; then
d9898ee8 6036 :
6037else
6038 echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 # Broken: fails on valid input.
6042continue
6043fi
64ff59ba 6044
d9898ee8 6045rm -f conftest.err conftest.$ac_ext
6046
64ff59ba 6047 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6048 # can be detected and how.
6049 cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055#include <ac_nonexistent.h>
6056_ACEOF
64ff59ba 6057if { (ac_try="$ac_cpp conftest.$ac_ext"
6058case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6069 (exit $ac_status); } >/dev/null && {
6070 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6071 test ! -s conftest.err
6072 }; then
d9898ee8 6073 # Broken: success on invalid input.
6074continue
6075else
6076 echo "$as_me: failed program was:" >&5
6077sed 's/^/| /' conftest.$ac_ext >&5
6078
6079 # Passes both tests.
6080ac_preproc_ok=:
6081break
6082fi
64ff59ba 6083
d9898ee8 6084rm -f conftest.err conftest.$ac_ext
6085
6086done
6087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088rm -f conftest.err conftest.$ac_ext
6089if $ac_preproc_ok; then
6090 break
6091fi
6092
6093 done
6094 ac_cv_prog_CXXCPP=$CXXCPP
6095
6096fi
6097 CXXCPP=$ac_cv_prog_CXXCPP
6098else
6099 ac_cv_prog_CXXCPP=$CXXCPP
6100fi
64ff59ba 6101{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6102echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 6103ac_preproc_ok=false
6104for ac_cxx_preproc_warn_flag in '' yes
6105do
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h. */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h. */
6118#ifdef __STDC__
6119# include <limits.h>
6120#else
6121# include <assert.h>
6122#endif
6123 Syntax error
6124_ACEOF
64ff59ba 6125if { (ac_try="$ac_cpp conftest.$ac_ext"
6126case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129esac
6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6137 (exit $ac_status); } >/dev/null && {
6138 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6139 test ! -s conftest.err
6140 }; then
d9898ee8 6141 :
6142else
6143 echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 # Broken: fails on valid input.
6147continue
6148fi
64ff59ba 6149
d9898ee8 6150rm -f conftest.err conftest.$ac_ext
6151
64ff59ba 6152 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6153 # can be detected and how.
6154 cat >conftest.$ac_ext <<_ACEOF
6155/* confdefs.h. */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h. */
6160#include <ac_nonexistent.h>
6161_ACEOF
64ff59ba 6162if { (ac_try="$ac_cpp conftest.$ac_ext"
6163case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6174 (exit $ac_status); } >/dev/null && {
6175 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6176 test ! -s conftest.err
6177 }; then
d9898ee8 6178 # Broken: success on invalid input.
6179continue
6180else
6181 echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 # Passes both tests.
6185ac_preproc_ok=:
6186break
6187fi
64ff59ba 6188
d9898ee8 6189rm -f conftest.err conftest.$ac_ext
6190
6191done
6192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193rm -f conftest.err conftest.$ac_ext
6194if $ac_preproc_ok; then
6195 :
6196else
6197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6198See \`config.log' for more details." >&5
6199echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6200See \`config.log' for more details." >&2;}
6201 { (exit 1); exit 1; }; }
6202fi
6203
64ff59ba 6204ac_ext=cpp
d9898ee8 6205ac_cpp='$CXXCPP $CPPFLAGS'
6206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6209
6210fi
6211
6212
6213ac_ext=f
6214ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6215ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6217if test -n "$ac_tool_prefix"; then
64ff59ba 6218 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d9898ee8 6219 do
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 6222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6224if test "${ac_cv_prog_F77+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227 if test -n "$F77"; then
6228 ac_cv_prog_F77="$F77" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6237 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241done
6242done
64ff59ba 6243IFS=$as_save_IFS
d9898ee8 6244
6245fi
6246fi
6247F77=$ac_cv_prog_F77
6248if test -n "$F77"; then
64ff59ba 6249 { echo "$as_me:$LINENO: result: $F77" >&5
6250echo "${ECHO_T}$F77" >&6; }
d9898ee8 6251else
64ff59ba 6252 { echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6; }
d9898ee8 6254fi
6255
64ff59ba 6256
d9898ee8 6257 test -n "$F77" && break
6258 done
6259fi
6260if test -z "$F77"; then
6261 ac_ct_F77=$F77
64ff59ba 6262 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d9898ee8 6263do
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265set dummy $ac_prog; ac_word=$2
64ff59ba 6266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6268if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271 if test -n "$ac_ct_F77"; then
6272 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6281 ac_cv_prog_ac_ct_F77="$ac_prog"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285done
6286done
64ff59ba 6287IFS=$as_save_IFS
d9898ee8 6288
6289fi
6290fi
6291ac_ct_F77=$ac_cv_prog_ac_ct_F77
6292if test -n "$ac_ct_F77"; then
64ff59ba 6293 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6294echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6295else
64ff59ba 6296 { echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6; }
d9898ee8 6298fi
6299
64ff59ba 6300
d9898ee8 6301 test -n "$ac_ct_F77" && break
6302done
6303
64ff59ba 6304 if test "x$ac_ct_F77" = x; then
6305 F77=""
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308yes:)
6309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6310whose name does not start with the host triplet. If you think this
6311configuration is useful to you, please write to autoconf@gnu.org." >&5
6312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6313whose name does not start with the host triplet. If you think this
6314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6315ac_tool_warned=yes ;;
6316esac
6317 F77=$ac_ct_F77
6318 fi
d9898ee8 6319fi
6320
6321
6322# Provide some information about the compiler.
64ff59ba 6323echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6324ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6325{ (ac_try="$ac_compiler --version >&5"
6326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
64ff59ba 6335{ (ac_try="$ac_compiler -v >&5"
6336case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339esac
6340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
64ff59ba 6345{ (ac_try="$ac_compiler -V >&5"
6346case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349esac
6350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }
6355rm -f a.out
6356
6357# If we don't use `.F' as extension, the preprocessor is not run on the
6358# input file. (Note that this only needs to work for GNU compilers.)
6359ac_save_ext=$ac_ext
6360ac_ext=F
64ff59ba 6361{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6362echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6363if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
6366 cat >conftest.$ac_ext <<_ACEOF
6367 program main
6368#ifndef __GNUC__
6369 choke me
6370#endif
6371
6372 end
6373_ACEOF
6374rm -f conftest.$ac_objext
64ff59ba 6375if { (ac_try="$ac_compile"
6376case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379esac
6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6387 (exit $ac_status); } && {
6388 test -z "$ac_f77_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
d9898ee8 6391 ac_compiler_gnu=yes
6392else
6393 echo "$as_me: failed program was:" >&5
6394sed 's/^/| /' conftest.$ac_ext >&5
6395
64ff59ba 6396 ac_compiler_gnu=no
d9898ee8 6397fi
64ff59ba 6398
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6400ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6401
6402fi
64ff59ba 6403{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6404echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6405ac_ext=$ac_save_ext
6406ac_test_FFLAGS=${FFLAGS+set}
6407ac_save_FFLAGS=$FFLAGS
6408FFLAGS=
64ff59ba 6409{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6410echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6411if test "${ac_cv_prog_f77_g+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414 FFLAGS=-g
6415cat >conftest.$ac_ext <<_ACEOF
6416 program main
6417
6418 end
6419_ACEOF
6420rm -f conftest.$ac_objext
64ff59ba 6421if { (ac_try="$ac_compile"
6422case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425esac
6426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6433 (exit $ac_status); } && {
6434 test -z "$ac_f77_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest.$ac_objext; then
d9898ee8 6437 ac_cv_prog_f77_g=yes
6438else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
64ff59ba 6442 ac_cv_prog_f77_g=no
d9898ee8 6443fi
64ff59ba 6444
6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6446
6447fi
64ff59ba 6448{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6449echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6450if test "$ac_test_FFLAGS" = set; then
6451 FFLAGS=$ac_save_FFLAGS
6452elif test $ac_cv_prog_f77_g = yes; then
6453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6454 FFLAGS="-g -O2"
6455 else
6456 FFLAGS="-g"
6457 fi
6458else
6459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6460 FFLAGS="-O2"
6461 else
6462 FFLAGS=
6463 fi
6464fi
6465
6466G77=`test $ac_compiler_gnu = yes && echo yes`
6467ac_ext=c
6468ac_cpp='$CPP $CPPFLAGS'
6469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
6473
6474
6475# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6476
6477# find the maximum length of command line arguments
64ff59ba 6478{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6479echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6480if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482else
6483 i=0
6484 teststring="ABCD"
6485
6486 case $build_os in
6487 msdosdjgpp*)
6488 # On DJGPP, this test can blow up pretty badly due to problems in libc
6489 # (any single argument exceeding 2000 bytes causes a buffer overrun
6490 # during glob expansion). Even if it were fixed, the result of this
6491 # check would be larger than it should be.
6492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6493 ;;
6494
6495 gnu*)
6496 # Under GNU Hurd, this test is not required because there is
6497 # no limit to the length of command line arguments.
6498 # Libtool will interpret -1 as no limit whatsoever
6499 lt_cv_sys_max_cmd_len=-1;
6500 ;;
6501
6502 cygwin* | mingw*)
6503 # On Win9x/ME, this test blows up -- it succeeds, but takes
6504 # about 5 minutes as the teststring grows exponentially.
6505 # Worse, since 9x/ME are not pre-emptively multitasking,
6506 # you end up with a "frozen" computer, even though with patience
6507 # the test eventually succeeds (with a max line length of 256k).
6508 # Instead, let's just punt: use the minimum linelength reported by
6509 # all of the supported platforms: 8192 (on NT/2K/XP).
6510 lt_cv_sys_max_cmd_len=8192;
6511 ;;
6512
6513 amigaos*)
6514 # On AmigaOS with pdksh, this test takes hours, literally.
6515 # So we just punt and use a minimum line length of 8192.
6516 lt_cv_sys_max_cmd_len=8192;
6517 ;;
6518
6519 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6520 # This has been around since 386BSD, at least. Likely further.
6521 if test -x /sbin/sysctl; then
6522 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6523 elif test -x /usr/sbin/sysctl; then
6524 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6525 else
6526 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6527 fi
6528 # And add a safety zone
6529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6531 ;;
6532
6533 interix*)
6534 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6535 lt_cv_sys_max_cmd_len=196608
6536 ;;
6537
6538 osf*)
6539 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6540 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6541 # nice to cause kernel panics so lets avoid the loop below.
6542 # First set a reasonable default.
6543 lt_cv_sys_max_cmd_len=16384
6544 #
6545 if test -x /sbin/sysconfig; then
6546 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6547 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6548 esac
6549 fi
6550 ;;
6551 sco3.2v5*)
6552 lt_cv_sys_max_cmd_len=102400
6553 ;;
6554 sysv5* | sco5v6* | sysv4.2uw2*)
6555 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6556 if test -n "$kargmax"; then
6557 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6558 else
6559 lt_cv_sys_max_cmd_len=32768
6560 fi
6561 ;;
6562 *)
0fde1ce3 6563 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6564 if test -n "$lt_cv_sys_max_cmd_len"; then
6565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6567 else
6568 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6569 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6570 = "XX$teststring") >/dev/null 2>&1 &&
0fde1ce3 6571 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6572 lt_cv_sys_max_cmd_len=$new_result &&
6573 test $i != 17 # 1/2 MB should be enough
6574 do
6575 i=`expr $i + 1`
6576 teststring=$teststring$teststring
6577 done
6578 teststring=
6579 # Add a significant safety factor because C++ compilers can tack on massive
6580 # amounts of additional arguments before passing them to the linker.
6581 # It appears as though 1/2 is a usable value.
6582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6583 fi
d9898ee8 6584 ;;
6585 esac
6586
6587fi
6588
6589if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6590 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6591echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6592else
64ff59ba 6593 { echo "$as_me:$LINENO: result: none" >&5
6594echo "${ECHO_T}none" >&6; }
d9898ee8 6595fi
6596
6597
6598
6599
0fde1ce3 6600
d9898ee8 6601# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6602{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6603echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6604if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606else
6607
6608# These are sane defaults that work on at least a few old systems.
6609# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6610
6611# Character class describing NM global symbol codes.
6612symcode='[BCDEGRST]'
6613
6614# Regexp to match symbols that can be accessed directly from C.
6615sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6616
6617# Transform an extracted symbol line into a proper C declaration
6618lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6619
6620# Transform an extracted symbol line into symbol name and symbol address
6621lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6622
6623# Define system-specific variables.
6624case $host_os in
6625aix*)
6626 symcode='[BCDT]'
6627 ;;
6628cygwin* | mingw* | pw32*)
6629 symcode='[ABCDGISTW]'
6630 ;;
6631hpux*) # Its linker distinguishes data from code symbols
6632 if test "$host_cpu" = ia64; then
6633 symcode='[ABCDEGRST]'
6634 fi
6635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6636 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6637 ;;
0fde1ce3 6638linux* | k*bsd*-gnu)
d9898ee8 6639 if test "$host_cpu" = ia64; then
6640 symcode='[ABCDGIRSTW]'
6641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6643 fi
6644 ;;
6645irix* | nonstopux*)
6646 symcode='[BCDEGRST]'
6647 ;;
6648osf*)
6649 symcode='[BCDEGQRST]'
6650 ;;
6651solaris*)
6652 symcode='[BDRT]'
6653 ;;
6654sco3.2v5*)
6655 symcode='[DT]'
6656 ;;
6657sysv4.2uw2*)
6658 symcode='[DT]'
6659 ;;
6660sysv5* | sco5v6* | unixware* | OpenUNIX*)
6661 symcode='[ABDT]'
6662 ;;
6663sysv4)
6664 symcode='[DFNSTU]'
6665 ;;
6666esac
6667
6668# Handle CRLF in mingw tool chain
6669opt_cr=
6670case $build_os in
6671mingw*)
6672 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6673 ;;
6674esac
6675
6676# If we're using GNU nm, then use its standard symbol codes.
6677case `$NM -V 2>&1` in
6678*GNU* | *'with BFD'*)
6679 symcode='[ABCDGIRSTW]' ;;
6680esac
6681
6682# Try without a prefix undercore, then with it.
6683for ac_symprfx in "" "_"; do
6684
6685 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6686 symxfrm="\\1 $ac_symprfx\\2 \\2"
6687
6688 # Write the raw and C identifiers.
6689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6690
6691 # Check to see that the pipe works correctly.
6692 pipe_works=no
6693
6694 rm -f conftest*
6695 cat > conftest.$ac_ext <<EOF
6696#ifdef __cplusplus
6697extern "C" {
6698#endif
6699char nm_test_var;
6700void nm_test_func(){}
6701#ifdef __cplusplus
6702}
6703#endif
6704int main(){nm_test_var='a';nm_test_func();return(0);}
6705EOF
6706
6707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; then
6712 # Now try to grab the symbols.
6713 nlist=conftest.nm
6714 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6715 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && test -s "$nlist"; then
6719 # Try sorting and uniquifying the output.
6720 if sort "$nlist" | uniq > "$nlist"T; then
6721 mv -f "$nlist"T "$nlist"
6722 else
6723 rm -f "$nlist"T
6724 fi
6725
6726 # Make sure that we snagged all the symbols we need.
6727 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6728 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6729 cat <<EOF > conftest.$ac_ext
6730#ifdef __cplusplus
6731extern "C" {
6732#endif
6733
6734EOF
6735 # Now generate the symbol file.
6736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6737
6738 cat <<EOF >> conftest.$ac_ext
6739#if defined (__STDC__) && __STDC__
6740# define lt_ptr_t void *
6741#else
6742# define lt_ptr_t char *
6743# define const
6744#endif
6745
6746/* The mapping between symbol names and symbols. */
6747const struct {
6748 const char *name;
6749 lt_ptr_t address;
6750}
6751lt_preloaded_symbols[] =
6752{
6753EOF
6754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6755 cat <<\EOF >> conftest.$ac_ext
6756 {0, (lt_ptr_t) 0}
6757};
6758
6759#ifdef __cplusplus
6760}
6761#endif
6762EOF
6763 # Now try linking the two files.
6764 mv conftest.$ac_objext conftstm.$ac_objext
6765 lt_save_LIBS="$LIBS"
6766 lt_save_CFLAGS="$CFLAGS"
6767 LIBS="conftstm.$ac_objext"
6768 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6774 pipe_works=yes
6775 fi
6776 LIBS="$lt_save_LIBS"
6777 CFLAGS="$lt_save_CFLAGS"
6778 else
6779 echo "cannot find nm_test_func in $nlist" >&5
6780 fi
6781 else
6782 echo "cannot find nm_test_var in $nlist" >&5
6783 fi
6784 else
6785 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6786 fi
6787 else
6788 echo "$progname: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 fi
6791 rm -f conftest* conftst*
6792
6793 # Do not use the global_symbol_pipe unless it works.
6794 if test "$pipe_works" = yes; then
6795 break
6796 else
6797 lt_cv_sys_global_symbol_pipe=
6798 fi
6799done
6800
6801fi
6802
6803if test -z "$lt_cv_sys_global_symbol_pipe"; then
6804 lt_cv_sys_global_symbol_to_cdecl=
6805fi
6806if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6807 { echo "$as_me:$LINENO: result: failed" >&5
6808echo "${ECHO_T}failed" >&6; }
d9898ee8 6809else
64ff59ba 6810 { echo "$as_me:$LINENO: result: ok" >&5
6811echo "${ECHO_T}ok" >&6; }
d9898ee8 6812fi
6813
64ff59ba 6814{ echo "$as_me:$LINENO: checking for objdir" >&5
6815echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6816if test "${lt_cv_objdir+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 rm -f .libs 2>/dev/null
6820mkdir .libs 2>/dev/null
6821if test -d .libs; then
6822 lt_cv_objdir=.libs
6823else
6824 # MS-DOS does not allow filenames that begin with a dot.
6825 lt_cv_objdir=_libs
6826fi
6827rmdir .libs 2>/dev/null
6828fi
64ff59ba 6829{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6830echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6831objdir=$lt_cv_objdir
6832
6833
6834
6835
6836
6837case $host_os in
6838aix3*)
6839 # AIX sometimes has problems with the GCC collect2 program. For some
6840 # reason, if we set the COLLECT_NAMES environment variable, the problems
6841 # vanish in a puff of smoke.
6842 if test "X${COLLECT_NAMES+set}" != Xset; then
6843 COLLECT_NAMES=
6844 export COLLECT_NAMES
6845 fi
6846 ;;
6847esac
6848
6849# Sed substitution that helps us do robust quoting. It backslashifies
6850# metacharacters that are still active within double-quoted strings.
6851Xsed='sed -e 1s/^X//'
6852sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6853
6854# Same as above, but do not quote variable references.
6855double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6856
6857# Sed substitution to delay expansion of an escaped shell variable in a
6858# double_quote_subst'ed string.
6859delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6860
6861# Sed substitution to avoid accidental globbing in evaled expressions
6862no_glob_subst='s/\*/\\\*/g'
6863
6864# Constants:
6865rm="rm -f"
6866
6867# Global variables:
6868default_ofile=libtool
6869can_build_shared=yes
6870
6871# All known linkers require a `.a' archive for static linking (except MSVC,
6872# which needs '.lib').
6873libext=a
6874ltmain="$ac_aux_dir/ltmain.sh"
6875ofile="$default_ofile"
6876with_gnu_ld="$lt_cv_prog_gnu_ld"
6877
6878if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6880set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6883if test "${ac_cv_prog_AR+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885else
6886 if test -n "$AR"; then
6887 ac_cv_prog_AR="$AR" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6896 ac_cv_prog_AR="${ac_tool_prefix}ar"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901done
64ff59ba 6902IFS=$as_save_IFS
d9898ee8 6903
6904fi
6905fi
6906AR=$ac_cv_prog_AR
6907if test -n "$AR"; then
64ff59ba 6908 { echo "$as_me:$LINENO: result: $AR" >&5
6909echo "${ECHO_T}$AR" >&6; }
d9898ee8 6910else
64ff59ba 6911 { echo "$as_me:$LINENO: result: no" >&5
6912echo "${ECHO_T}no" >&6; }
d9898ee8 6913fi
6914
64ff59ba 6915
d9898ee8 6916fi
6917if test -z "$ac_cv_prog_AR"; then
6918 ac_ct_AR=$AR
6919 # Extract the first word of "ar", so it can be a program name with args.
6920set dummy ar; ac_word=$2
64ff59ba 6921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6923if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926 if test -n "$ac_ct_AR"; then
6927 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6936 ac_cv_prog_ac_ct_AR="ar"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940done
6941done
64ff59ba 6942IFS=$as_save_IFS
d9898ee8 6943
d9898ee8 6944fi
6945fi
6946ac_ct_AR=$ac_cv_prog_ac_ct_AR
6947if test -n "$ac_ct_AR"; then
64ff59ba 6948 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6949echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6950else
64ff59ba 6951 { echo "$as_me:$LINENO: result: no" >&5
6952echo "${ECHO_T}no" >&6; }
d9898ee8 6953fi
6954
64ff59ba 6955 if test "x$ac_ct_AR" = x; then
6956 AR="false"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959yes:)
6960{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6961whose name does not start with the host triplet. If you think this
6962configuration is useful to you, please write to autoconf@gnu.org." >&5
6963echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6964whose name does not start with the host triplet. If you think this
6965configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6966ac_tool_warned=yes ;;
6967esac
6968 AR=$ac_ct_AR
6969 fi
d9898ee8 6970else
6971 AR="$ac_cv_prog_AR"
6972fi
6973
6974if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6976set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6979if test "${ac_cv_prog_RANLIB+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982 if test -n "$RANLIB"; then
6983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6992 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997done
64ff59ba 6998IFS=$as_save_IFS
d9898ee8 6999
7000fi
7001fi
7002RANLIB=$ac_cv_prog_RANLIB
7003if test -n "$RANLIB"; then
64ff59ba 7004 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7005echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 7006else
64ff59ba 7007 { echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6; }
d9898ee8 7009fi
7010
64ff59ba 7011
d9898ee8 7012fi
7013if test -z "$ac_cv_prog_RANLIB"; then
7014 ac_ct_RANLIB=$RANLIB
7015 # Extract the first word of "ranlib", so it can be a program name with args.
7016set dummy ranlib; ac_word=$2
64ff59ba 7017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7019if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 if test -n "$ac_ct_RANLIB"; then
7023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7032 ac_cv_prog_ac_ct_RANLIB="ranlib"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036done
7037done
64ff59ba 7038IFS=$as_save_IFS
d9898ee8 7039
d9898ee8 7040fi
7041fi
7042ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7043if test -n "$ac_ct_RANLIB"; then
64ff59ba 7044 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7045echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 7046else
64ff59ba 7047 { echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6; }
d9898ee8 7049fi
7050
64ff59ba 7051 if test "x$ac_ct_RANLIB" = x; then
7052 RANLIB=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055yes:)
7056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7057whose name does not start with the host triplet. If you think this
7058configuration is useful to you, please write to autoconf@gnu.org." >&5
7059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7060whose name does not start with the host triplet. If you think this
7061configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7062ac_tool_warned=yes ;;
7063esac
7064 RANLIB=$ac_ct_RANLIB
7065 fi
d9898ee8 7066else
7067 RANLIB="$ac_cv_prog_RANLIB"
7068fi
7069
7070if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7072set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 7073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7075if test "${ac_cv_prog_STRIP+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078 if test -n "$STRIP"; then
7079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7080else
7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
64ff59ba 7094IFS=$as_save_IFS
d9898ee8 7095
7096fi
7097fi
7098STRIP=$ac_cv_prog_STRIP
7099if test -n "$STRIP"; then
64ff59ba 7100 { echo "$as_me:$LINENO: result: $STRIP" >&5
7101echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 7102else
64ff59ba 7103 { echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6; }
d9898ee8 7105fi
7106
64ff59ba 7107
d9898ee8 7108fi
7109if test -z "$ac_cv_prog_STRIP"; then
7110 ac_ct_STRIP=$STRIP
7111 # Extract the first word of "strip", so it can be a program name with args.
7112set dummy strip; ac_word=$2
64ff59ba 7113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7115if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118 if test -n "$ac_ct_STRIP"; then
7119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7120else
7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7128 ac_cv_prog_ac_ct_STRIP="strip"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132done
7133done
64ff59ba 7134IFS=$as_save_IFS
d9898ee8 7135
d9898ee8 7136fi
7137fi
7138ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7139if test -n "$ac_ct_STRIP"; then
64ff59ba 7140 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7141echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 7142else
64ff59ba 7143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
d9898ee8 7145fi
7146
64ff59ba 7147 if test "x$ac_ct_STRIP" = x; then
7148 STRIP=":"
7149 else
7150 case $cross_compiling:$ac_tool_warned in
7151yes:)
7152{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7153whose name does not start with the host triplet. If you think this
7154configuration is useful to you, please write to autoconf@gnu.org." >&5
7155echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7156whose name does not start with the host triplet. If you think this
7157configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7158ac_tool_warned=yes ;;
7159esac
7160 STRIP=$ac_ct_STRIP
7161 fi
d9898ee8 7162else
7163 STRIP="$ac_cv_prog_STRIP"
7164fi
7165
7166
7167old_CC="$CC"
7168old_CFLAGS="$CFLAGS"
7169
7170# Set sane defaults for various variables
7171test -z "$AR" && AR=ar
7172test -z "$AR_FLAGS" && AR_FLAGS=cru
7173test -z "$AS" && AS=as
7174test -z "$CC" && CC=cc
7175test -z "$LTCC" && LTCC=$CC
7176test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7177test -z "$DLLTOOL" && DLLTOOL=dlltool
7178test -z "$LD" && LD=ld
7179test -z "$LN_S" && LN_S="ln -s"
7180test -z "$MAGIC_CMD" && MAGIC_CMD=file
7181test -z "$NM" && NM=nm
7182test -z "$SED" && SED=sed
7183test -z "$OBJDUMP" && OBJDUMP=objdump
7184test -z "$RANLIB" && RANLIB=:
7185test -z "$STRIP" && STRIP=:
7186test -z "$ac_objext" && ac_objext=o
7187
7188# Determine commands to create old-style static archives.
0fde1ce3 7189old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 7190old_postinstall_cmds='chmod 644 $oldlib'
7191old_postuninstall_cmds=
7192
7193if test -n "$RANLIB"; then
7194 case $host_os in
7195 openbsd*)
7196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7197 ;;
7198 *)
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7200 ;;
7201 esac
7202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7203fi
7204
7205for cc_temp in $compiler""; do
7206 case $cc_temp in
7207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7209 \-*) ;;
7210 *) break;;
7211 esac
7212done
7213cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7214
7215
7216# Only perform the check for file, if the check method requires it
7217case $deplibs_check_method in
7218file_magic*)
7219 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 7220 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7221echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 7222if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225 case $MAGIC_CMD in
7226[\\/*] | ?:[\\/]*)
7227 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7228 ;;
7229*)
7230 lt_save_MAGIC_CMD="$MAGIC_CMD"
7231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7232 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7233 for ac_dir in $ac_dummy; do
7234 IFS="$lt_save_ifs"
7235 test -z "$ac_dir" && ac_dir=.
7236 if test -f $ac_dir/${ac_tool_prefix}file; then
7237 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7238 if test -n "$file_magic_test_file"; then
7239 case $deplibs_check_method in
7240 "file_magic "*)
7241 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7243 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7244 $EGREP "$file_magic_regex" > /dev/null; then
7245 :
7246 else
7247 cat <<EOF 1>&2
7248
7249*** Warning: the command libtool uses to detect shared libraries,
7250*** $file_magic_cmd, produces output that libtool cannot recognize.
7251*** The result is that libtool may fail to recognize shared libraries
7252*** as such. This will affect the creation of libtool libraries that
7253*** depend on shared libraries, but programs linked with such libtool
7254*** libraries will work regardless of this problem. Nevertheless, you
7255*** may want to report the problem to your system manager and/or to
7256*** bug-libtool@gnu.org
7257
7258EOF
7259 fi ;;
7260 esac
7261 fi
7262 break
7263 fi
7264 done
7265 IFS="$lt_save_ifs"
7266 MAGIC_CMD="$lt_save_MAGIC_CMD"
7267 ;;
7268esac
7269fi
7270
7271MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7272if test -n "$MAGIC_CMD"; then
64ff59ba 7273 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7274echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7275else
64ff59ba 7276 { echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6; }
d9898ee8 7278fi
7279
7280if test -z "$lt_cv_path_MAGIC_CMD"; then
7281 if test -n "$ac_tool_prefix"; then
64ff59ba 7282 { echo "$as_me:$LINENO: checking for file" >&5
7283echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7284if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287 case $MAGIC_CMD in
7288[\\/*] | ?:[\\/]*)
7289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7290 ;;
7291*)
7292 lt_save_MAGIC_CMD="$MAGIC_CMD"
7293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7295 for ac_dir in $ac_dummy; do
7296 IFS="$lt_save_ifs"
7297 test -z "$ac_dir" && ac_dir=.
7298 if test -f $ac_dir/file; then
7299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7300 if test -n "$file_magic_test_file"; then
7301 case $deplibs_check_method in
7302 "file_magic "*)
7303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7306 $EGREP "$file_magic_regex" > /dev/null; then
7307 :
7308 else
7309 cat <<EOF 1>&2
7310
7311*** Warning: the command libtool uses to detect shared libraries,
7312*** $file_magic_cmd, produces output that libtool cannot recognize.
7313*** The result is that libtool may fail to recognize shared libraries
7314*** as such. This will affect the creation of libtool libraries that
7315*** depend on shared libraries, but programs linked with such libtool
7316*** libraries will work regardless of this problem. Nevertheless, you
7317*** may want to report the problem to your system manager and/or to
7318*** bug-libtool@gnu.org
7319
7320EOF
7321 fi ;;
7322 esac
7323 fi
7324 break
7325 fi
7326 done
7327 IFS="$lt_save_ifs"
7328 MAGIC_CMD="$lt_save_MAGIC_CMD"
7329 ;;
7330esac
7331fi
7332
7333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7334if test -n "$MAGIC_CMD"; then
64ff59ba 7335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7336echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7337else
64ff59ba 7338 { echo "$as_me:$LINENO: result: no" >&5
7339echo "${ECHO_T}no" >&6; }
d9898ee8 7340fi
7341
7342 else
7343 MAGIC_CMD=:
7344 fi
7345fi
7346
7347 fi
7348 ;;
7349esac
7350
7351enable_dlopen=yes
7352enable_win32_dll=no
7353
64ff59ba 7354# Check whether --enable-libtool-lock was given.
d9898ee8 7355if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7356 enableval=$enable_libtool_lock;
7357fi
d9898ee8 7358
d9898ee8 7359test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7360
7361
64ff59ba 7362# Check whether --with-pic was given.
d9898ee8 7363if test "${with_pic+set}" = set; then
64ff59ba 7364 withval=$with_pic; pic_mode="$withval"
d9898ee8 7365else
7366 pic_mode=default
64ff59ba 7367fi
7368
d9898ee8 7369test -z "$pic_mode" && pic_mode=default
7370
7371# Use C for the default configuration in the libtool script
7372tagname=
7373lt_save_CC="$CC"
7374ac_ext=c
7375ac_cpp='$CPP $CPPFLAGS'
7376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380
7381# Source file extension for C test sources.
7382ac_ext=c
7383
7384# Object file extension for compiled C test sources.
7385objext=o
7386objext=$objext
7387
7388# Code to be used in simple compile tests
0fde1ce3 7389lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7390
7391# Code to be used in simple link tests
0fde1ce3 7392lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7393
7394
7395# If no C compiler was specified, use CC.
7396LTCC=${LTCC-"$CC"}
7397
7398# If no C compiler flags were specified, use CFLAGS.
7399LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7400
7401# Allow CC to be a program name with arguments.
7402compiler=$CC
7403
7404
7405# save warnings/boilerplate of simple test code
7406ac_outfile=conftest.$ac_objext
0fde1ce3 7407echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7408eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7409_lt_compiler_boilerplate=`cat conftest.err`
7410$rm conftest*
7411
7412ac_outfile=conftest.$ac_objext
0fde1ce3 7413echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7414eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7415_lt_linker_boilerplate=`cat conftest.err`
7416$rm conftest*
7417
7418
7419
7420lt_prog_compiler_no_builtin_flag=
7421
7422if test "$GCC" = yes; then
7423 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7424
7425
64ff59ba 7426{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7427echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7428if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431 lt_cv_prog_compiler_rtti_exceptions=no
7432 ac_outfile=conftest.$ac_objext
0fde1ce3 7433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7434 lt_compiler_flag="-fno-rtti -fno-exceptions"
7435 # Insert the option either (1) after the last *FLAGS variable, or
7436 # (2) before a word containing "conftest.", or (3) at the end.
7437 # Note that $ac_compile itself does not contain backslashes and begins
7438 # with a dollar sign (not a hyphen), so the echo should work correctly.
7439 # The option is referenced via a variable to avoid confusing sed.
7440 lt_compile=`echo "$ac_compile" | $SED \
7441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7443 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7444 (eval echo "\"\$as_me:7444: $lt_compile\"" >&5)
d9898ee8 7445 (eval "$lt_compile" 2>conftest.err)
7446 ac_status=$?
7447 cat conftest.err >&5
0fde1ce3 7448 echo "$as_me:7448: \$? = $ac_status" >&5
d9898ee8 7449 if (exit $ac_status) && test -s "$ac_outfile"; then
7450 # The compiler can only warn and ignore the option if not recognized
7451 # So say no if there are warnings other than the usual output.
7452 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7455 lt_cv_prog_compiler_rtti_exceptions=yes
7456 fi
7457 fi
7458 $rm conftest*
7459
7460fi
64ff59ba 7461{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7462echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7463
7464if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7465 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7466else
7467 :
7468fi
7469
7470fi
7471
7472lt_prog_compiler_wl=
7473lt_prog_compiler_pic=
7474lt_prog_compiler_static=
7475
64ff59ba 7476{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7477echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7478
7479 if test "$GCC" = yes; then
7480 lt_prog_compiler_wl='-Wl,'
7481 lt_prog_compiler_static='-static'
7482
7483 case $host_os in
7484 aix*)
7485 # All AIX code is PIC.
7486 if test "$host_cpu" = ia64; then
7487 # AIX 5 now supports IA64 processor
7488 lt_prog_compiler_static='-Bstatic'
7489 fi
7490 ;;
7491
7492 amigaos*)
7493 # FIXME: we need at least 68020 code to build shared libraries, but
7494 # adding the `-m68020' flag to GCC prevents building anything better,
7495 # like `-m68040'.
7496 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7497 ;;
7498
0fde1ce3 7499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7500 # PIC is the default for these OSes.
7501 ;;
7502
0fde1ce3 7503 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7504 # This hack is so that the source file can tell whether it is being
7505 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 7506 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7507 # (--disable-auto-import) libraries
d9898ee8 7508 lt_prog_compiler_pic='-DDLL_EXPORT'
7509 ;;
7510
7511 darwin* | rhapsody*)
7512 # PIC is the default on this platform
7513 # Common symbols not allowed in MH_DYLIB files
7514 lt_prog_compiler_pic='-fno-common'
7515 ;;
7516
0fde1ce3 7517 interix[3-9]*)
d9898ee8 7518 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7519 # Instead, we relocate shared libraries at runtime.
7520 ;;
7521
7522 msdosdjgpp*)
7523 # Just because we use GCC doesn't mean we suddenly get shared libraries
7524 # on systems that don't support them.
7525 lt_prog_compiler_can_build_shared=no
7526 enable_shared=no
7527 ;;
7528
7529 sysv4*MP*)
7530 if test -d /usr/nec; then
7531 lt_prog_compiler_pic=-Kconform_pic
7532 fi
7533 ;;
7534
7535 hpux*)
7536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7537 # not for PA HP-UX.
7538 case $host_cpu in
7539 hppa*64*|ia64*)
7540 # +Z the default
7541 ;;
7542 *)
7543 lt_prog_compiler_pic='-fPIC'
7544 ;;
7545 esac
7546 ;;
7547
7548 *)
7549 lt_prog_compiler_pic='-fPIC'
7550 ;;
7551 esac
7552 else
7553 # PORTME Check for flag to pass linker flags through the system compiler.
7554 case $host_os in
7555 aix*)
7556 lt_prog_compiler_wl='-Wl,'
7557 if test "$host_cpu" = ia64; then
7558 # AIX 5 now supports IA64 processor
7559 lt_prog_compiler_static='-Bstatic'
7560 else
7561 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7562 fi
7563 ;;
7564 darwin*)
7565 # PIC is the default on this platform
7566 # Common symbols not allowed in MH_DYLIB files
7567 case $cc_basename in
7568 xlc*)
7569 lt_prog_compiler_pic='-qnocommon'
7570 lt_prog_compiler_wl='-Wl,'
7571 ;;
7572 esac
7573 ;;
7574
0fde1ce3 7575 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7576 # This hack is so that the source file can tell whether it is being
7577 # built for inclusion in a dll (and should export symbols for example).
7578 lt_prog_compiler_pic='-DDLL_EXPORT'
7579 ;;
7580
7581 hpux9* | hpux10* | hpux11*)
7582 lt_prog_compiler_wl='-Wl,'
7583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7584 # not for PA HP-UX.
7585 case $host_cpu in
7586 hppa*64*|ia64*)
7587 # +Z the default
7588 ;;
7589 *)
7590 lt_prog_compiler_pic='+Z'
7591 ;;
7592 esac
7593 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7594 lt_prog_compiler_static='${wl}-a ${wl}archive'
7595 ;;
7596
7597 irix5* | irix6* | nonstopux*)
7598 lt_prog_compiler_wl='-Wl,'
7599 # PIC (with -KPIC) is the default.
7600 lt_prog_compiler_static='-non_shared'
7601 ;;
7602
7603 newsos6)
7604 lt_prog_compiler_pic='-KPIC'
7605 lt_prog_compiler_static='-Bstatic'
7606 ;;
7607
0fde1ce3 7608 linux* | k*bsd*-gnu)
d9898ee8 7609 case $cc_basename in
7610 icc* | ecc*)
7611 lt_prog_compiler_wl='-Wl,'
7612 lt_prog_compiler_pic='-KPIC'
7613 lt_prog_compiler_static='-static'
7614 ;;
7615 pgcc* | pgf77* | pgf90* | pgf95*)
7616 # Portland Group compilers (*not* the Pentium gcc compiler,
7617 # which looks to be a dead project)
7618 lt_prog_compiler_wl='-Wl,'
7619 lt_prog_compiler_pic='-fpic'
7620 lt_prog_compiler_static='-Bstatic'
7621 ;;
7622 ccc*)
7623 lt_prog_compiler_wl='-Wl,'
7624 # All Alpha code is PIC.
7625 lt_prog_compiler_static='-non_shared'
7626 ;;
0fde1ce3 7627 *)
7628 case `$CC -V 2>&1 | sed 5q` in
7629 *Sun\ C*)
7630 # Sun C 5.9
7631 lt_prog_compiler_pic='-KPIC'
7632 lt_prog_compiler_static='-Bstatic'
7633 lt_prog_compiler_wl='-Wl,'
7634 ;;
7635 *Sun\ F*)
7636 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7637 lt_prog_compiler_pic='-KPIC'
7638 lt_prog_compiler_static='-Bstatic'
7639 lt_prog_compiler_wl=''
7640 ;;
7641 esac
7642 ;;
d9898ee8 7643 esac
7644 ;;
7645
7646 osf3* | osf4* | osf5*)
7647 lt_prog_compiler_wl='-Wl,'
7648 # All OSF/1 code is PIC.
7649 lt_prog_compiler_static='-non_shared'
7650 ;;
7651
0fde1ce3 7652 rdos*)
7653 lt_prog_compiler_static='-non_shared'
7654 ;;
7655
d9898ee8 7656 solaris*)
7657 lt_prog_compiler_pic='-KPIC'
7658 lt_prog_compiler_static='-Bstatic'
7659 case $cc_basename in
7660 f77* | f90* | f95*)
7661 lt_prog_compiler_wl='-Qoption ld ';;
7662 *)
7663 lt_prog_compiler_wl='-Wl,';;
7664 esac
7665 ;;
7666
7667 sunos4*)
7668 lt_prog_compiler_wl='-Qoption ld '
7669 lt_prog_compiler_pic='-PIC'
7670 lt_prog_compiler_static='-Bstatic'
7671 ;;
7672
7673 sysv4 | sysv4.2uw2* | sysv4.3*)
7674 lt_prog_compiler_wl='-Wl,'
7675 lt_prog_compiler_pic='-KPIC'
7676 lt_prog_compiler_static='-Bstatic'
7677 ;;
7678
7679 sysv4*MP*)
7680 if test -d /usr/nec ;then
7681 lt_prog_compiler_pic='-Kconform_pic'
7682 lt_prog_compiler_static='-Bstatic'
7683 fi
7684 ;;
7685
7686 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7687 lt_prog_compiler_wl='-Wl,'
7688 lt_prog_compiler_pic='-KPIC'
7689 lt_prog_compiler_static='-Bstatic'
7690 ;;
7691
7692 unicos*)
7693 lt_prog_compiler_wl='-Wl,'
7694 lt_prog_compiler_can_build_shared=no
7695 ;;
7696
7697 uts4*)
7698 lt_prog_compiler_pic='-pic'
7699 lt_prog_compiler_static='-Bstatic'
7700 ;;
7701
7702 *)
7703 lt_prog_compiler_can_build_shared=no
7704 ;;
7705 esac
7706 fi
7707
64ff59ba 7708{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7709echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7710
7711#
7712# Check to make sure the PIC flag actually works.
7713#
7714if test -n "$lt_prog_compiler_pic"; then
7715
64ff59ba 7716{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7717echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7718if test "${lt_prog_compiler_pic_works+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721 lt_prog_compiler_pic_works=no
7722 ac_outfile=conftest.$ac_objext
0fde1ce3 7723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7724 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7725 # Insert the option either (1) after the last *FLAGS variable, or
7726 # (2) before a word containing "conftest.", or (3) at the end.
7727 # Note that $ac_compile itself does not contain backslashes and begins
7728 # with a dollar sign (not a hyphen), so the echo should work correctly.
7729 # The option is referenced via a variable to avoid confusing sed.
7730 lt_compile=`echo "$ac_compile" | $SED \
7731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7734 (eval echo "\"\$as_me:7734: $lt_compile\"" >&5)
d9898ee8 7735 (eval "$lt_compile" 2>conftest.err)
7736 ac_status=$?
7737 cat conftest.err >&5
0fde1ce3 7738 echo "$as_me:7738: \$? = $ac_status" >&5
d9898ee8 7739 if (exit $ac_status) && test -s "$ac_outfile"; then
7740 # The compiler can only warn and ignore the option if not recognized
7741 # So say no if there are warnings other than the usual output.
7742 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7745 lt_prog_compiler_pic_works=yes
7746 fi
7747 fi
7748 $rm conftest*
7749
7750fi
64ff59ba 7751{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7752echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7753
7754if test x"$lt_prog_compiler_pic_works" = xyes; then
7755 case $lt_prog_compiler_pic in
7756 "" | " "*) ;;
7757 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7758 esac
7759else
7760 lt_prog_compiler_pic=
7761 lt_prog_compiler_can_build_shared=no
7762fi
7763
7764fi
7765case $host_os in
7766 # For platforms which do not support PIC, -DPIC is meaningless:
7767 *djgpp*)
7768 lt_prog_compiler_pic=
7769 ;;
7770 *)
7771 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7772 ;;
7773esac
7774
7775#
7776# Check to make sure the static flag actually works.
7777#
7778wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7779{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7780echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7781if test "${lt_prog_compiler_static_works+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784 lt_prog_compiler_static_works=no
7785 save_LDFLAGS="$LDFLAGS"
7786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 7787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7789 # The linker can only warn and ignore the option if not recognized
7790 # So say no if there are warnings
7791 if test -s conftest.err; then
7792 # Append any errors to the config.log.
7793 cat conftest.err 1>&5
7794 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7796 if diff conftest.exp conftest.er2 >/dev/null; then
7797 lt_prog_compiler_static_works=yes
7798 fi
7799 else
7800 lt_prog_compiler_static_works=yes
7801 fi
7802 fi
7803 $rm conftest*
7804 LDFLAGS="$save_LDFLAGS"
7805
7806fi
64ff59ba 7807{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7808echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7809
7810if test x"$lt_prog_compiler_static_works" = xyes; then
7811 :
7812else
7813 lt_prog_compiler_static=
7814fi
7815
7816
64ff59ba 7817{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7818echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7819if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822 lt_cv_prog_compiler_c_o=no
7823 $rm -r conftest 2>/dev/null
7824 mkdir conftest
7825 cd conftest
7826 mkdir out
0fde1ce3 7827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7828
7829 lt_compiler_flag="-o out/conftest2.$ac_objext"
7830 # Insert the option either (1) after the last *FLAGS variable, or
7831 # (2) before a word containing "conftest.", or (3) at the end.
7832 # Note that $ac_compile itself does not contain backslashes and begins
7833 # with a dollar sign (not a hyphen), so the echo should work correctly.
7834 lt_compile=`echo "$ac_compile" | $SED \
7835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7837 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7838 (eval echo "\"\$as_me:7838: $lt_compile\"" >&5)
d9898ee8 7839 (eval "$lt_compile" 2>out/conftest.err)
7840 ac_status=$?
7841 cat out/conftest.err >&5
0fde1ce3 7842 echo "$as_me:7842: \$? = $ac_status" >&5
d9898ee8 7843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7844 then
7845 # The compiler can only warn and ignore the option if not recognized
7846 # So say no if there are warnings
7847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7850 lt_cv_prog_compiler_c_o=yes
7851 fi
7852 fi
7853 chmod u+w . 2>&5
7854 $rm conftest*
7855 # SGI C++ compiler will create directory out/ii_files/ for
7856 # template instantiation
7857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7858 $rm out/* && rmdir out
7859 cd ..
7860 rmdir conftest
7861 $rm conftest*
7862
7863fi
64ff59ba 7864{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7865echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7866
7867
7868hard_links="nottested"
7869if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7870 # do not overwrite the value of need_locks provided by the user
64ff59ba 7871 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7872echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7873 hard_links=yes
7874 $rm conftest*
7875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7876 touch conftest.a
7877 ln conftest.a conftest.b 2>&5 || hard_links=no
7878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7879 { echo "$as_me:$LINENO: result: $hard_links" >&5
7880echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7881 if test "$hard_links" = no; then
7882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7883echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7884 need_locks=warn
7885 fi
7886else
7887 need_locks=no
7888fi
7889
64ff59ba 7890{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7891echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7892
7893 runpath_var=
7894 allow_undefined_flag=
7895 enable_shared_with_static_runtimes=no
7896 archive_cmds=
7897 archive_expsym_cmds=
7898 old_archive_From_new_cmds=
7899 old_archive_from_expsyms_cmds=
7900 export_dynamic_flag_spec=
7901 whole_archive_flag_spec=
7902 thread_safe_flag_spec=
7903 hardcode_libdir_flag_spec=
7904 hardcode_libdir_flag_spec_ld=
7905 hardcode_libdir_separator=
7906 hardcode_direct=no
7907 hardcode_minus_L=no
7908 hardcode_shlibpath_var=unsupported
7909 link_all_deplibs=unknown
7910 hardcode_automatic=no
7911 module_cmds=
7912 module_expsym_cmds=
7913 always_export_symbols=no
7914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7915 # include_expsyms should be a list of space-separated symbols to be *always*
7916 # included in the symbol list
7917 include_expsyms=
7918 # exclude_expsyms can be an extended regexp of symbols to exclude
7919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7921 # as well as any symbol that contains `d'.
7922 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7924 # platforms (ab)use it in PIC code, but their linkers get confused if
7925 # the symbol is explicitly referenced. Since portable code cannot
7926 # rely on this symbol name, it's probably fine to never include it in
7927 # preloaded symbol tables.
7928 extract_expsyms_cmds=
7929 # Just being paranoid about ensuring that cc_basename is set.
7930 for cc_temp in $compiler""; do
7931 case $cc_temp in
7932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7934 \-*) ;;
7935 *) break;;
7936 esac
7937done
7938cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7939
7940 case $host_os in
7941 cygwin* | mingw* | pw32*)
7942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7943 # When not using gcc, we currently assume that we are using
7944 # Microsoft Visual C++.
7945 if test "$GCC" != yes; then
7946 with_gnu_ld=no
7947 fi
7948 ;;
7949 interix*)
7950 # we just hope/assume this is gcc and not c89 (= MSVC++)
7951 with_gnu_ld=yes
7952 ;;
7953 openbsd*)
7954 with_gnu_ld=no
7955 ;;
7956 esac
7957
7958 ld_shlibs=yes
7959 if test "$with_gnu_ld" = yes; then
7960 # If archive_cmds runs LD, not CC, wlarc should be empty
7961 wlarc='${wl}'
7962
7963 # Set some defaults for GNU ld with shared library support. These
7964 # are reset later if shared libraries are not supported. Putting them
7965 # here allows them to be overridden if necessary.
7966 runpath_var=LD_RUN_PATH
7967 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7968 export_dynamic_flag_spec='${wl}--export-dynamic'
7969 # ancient GNU ld didn't support --whole-archive et. al.
7970 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7972 else
7973 whole_archive_flag_spec=
7974 fi
7975 supports_anon_versioning=no
7976 case `$LD -v 2>/dev/null` in
7977 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7978 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7979 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7980 *\ 2.11.*) ;; # other 2.11 versions
7981 *) supports_anon_versioning=yes ;;
7982 esac
7983
7984 # See if GNU ld supports shared libraries.
7985 case $host_os in
7986 aix3* | aix4* | aix5*)
7987 # On AIX/PPC, the GNU linker is very broken
7988 if test "$host_cpu" != ia64; then
7989 ld_shlibs=no
7990 cat <<EOF 1>&2
7991
7992*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7993*** to be unable to reliably create shared libraries on AIX.
7994*** Therefore, libtool is disabling shared libraries support. If you
7995*** really care for shared libraries, you may want to modify your PATH
7996*** so that a non-GNU linker is found, and then restart.
7997
7998EOF
7999 fi
8000 ;;
8001
8002 amigaos*)
8003 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)'
8004 hardcode_libdir_flag_spec='-L$libdir'
8005 hardcode_minus_L=yes
8006
8007 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8008 # that the semantics of dynamic libraries on AmigaOS, at least up
8009 # to version 4, is to share data among multiple programs linked
8010 # with the same dynamic library. Since this doesn't match the
8011 # behavior of shared libraries on other platforms, we can't use
8012 # them.
8013 ld_shlibs=no
8014 ;;
8015
8016 beos*)
8017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8018 allow_undefined_flag=unsupported
8019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8020 # support --undefined. This deserves some investigation. FIXME
8021 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022 else
8023 ld_shlibs=no
8024 fi
8025 ;;
8026
8027 cygwin* | mingw* | pw32*)
8028 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8029 # as there is no search path for DLLs.
8030 hardcode_libdir_flag_spec='-L$libdir'
8031 allow_undefined_flag=unsupported
8032 always_export_symbols=no
8033 enable_shared_with_static_runtimes=yes
0fde1ce3 8034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 8035
8036 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8038 # If the export-symbols file already is a .def file (1st line
8039 # is EXPORTS), use it as is; otherwise, prepend...
8040 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8041 cp $export_symbols $output_objdir/$soname.def;
8042 else
8043 echo EXPORTS > $output_objdir/$soname.def;
8044 cat $export_symbols >> $output_objdir/$soname.def;
8045 fi~
8046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8047 else
8048 ld_shlibs=no
8049 fi
8050 ;;
8051
0fde1ce3 8052 interix[3-9]*)
d9898ee8 8053 hardcode_direct=no
8054 hardcode_shlibpath_var=no
8055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8056 export_dynamic_flag_spec='${wl}-E'
8057 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8058 # Instead, shared libraries are loaded at an image base (0x10000000 by
8059 # default) and relocated if they conflict, which is a slow very memory
8060 # consuming and fragmenting process. To avoid this, we pick a random,
8061 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8062 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8063 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8064 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'
8065 ;;
8066
0fde1ce3 8067 gnu* | linux* | k*bsd*-gnu)
d9898ee8 8068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8069 tmp_addflag=
8070 case $cc_basename,$host_cpu in
8071 pgcc*) # Portland Group C compiler
8072 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8073 tmp_addflag=' $pic_flag'
8074 ;;
8075 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8076 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8077 tmp_addflag=' $pic_flag -Mnomain' ;;
8078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8079 tmp_addflag=' -i_dynamic' ;;
8080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8081 tmp_addflag=' -i_dynamic -nofor_main' ;;
8082 ifc* | ifort*) # Intel Fortran compiler
8083 tmp_addflag=' -nofor_main' ;;
8084 esac
0fde1ce3 8085 case `$CC -V 2>&1 | sed 5q` in
8086 *Sun\ C*) # Sun C 5.9
8087 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8088 tmp_sharedflag='-G' ;;
8089 *Sun\ F*) # Sun Fortran 8.3
8090 tmp_sharedflag='-G' ;;
8091 *)
8092 tmp_sharedflag='-shared' ;;
8093 esac
8094 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8095
8096 if test $supports_anon_versioning = yes; then
8097 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8099 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 8100 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 8101 fi
8102 else
8103 ld_shlibs=no
8104 fi
8105 ;;
8106
8107 netbsd*)
8108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8109 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8110 wlarc=
8111 else
8112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8113 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8114 fi
8115 ;;
8116
8117 solaris*)
8118 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8119 ld_shlibs=no
8120 cat <<EOF 1>&2
8121
8122*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8123*** create shared libraries on Solaris systems. Therefore, libtool
8124*** is disabling shared libraries support. We urge you to upgrade GNU
8125*** binutils to release 2.9.1 or newer. Another option is to modify
8126*** your PATH or compiler configuration so that the native linker is
8127*** used, and then restart.
8128
8129EOF
8130 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8133 else
8134 ld_shlibs=no
8135 fi
8136 ;;
8137
8138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8139 case `$LD -v 2>&1` in
8140 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8141 ld_shlibs=no
8142 cat <<_LT_EOF 1>&2
8143
8144*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8145*** reliably create shared libraries on SCO systems. Therefore, libtool
8146*** is disabling shared libraries support. We urge you to upgrade GNU
8147*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8148*** your PATH or compiler configuration so that the native linker is
8149*** used, and then restart.
8150
8151_LT_EOF
8152 ;;
8153 *)
8154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8158 else
8159 ld_shlibs=no
8160 fi
8161 ;;
8162 esac
8163 ;;
8164
8165 sunos4*)
8166 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8167 wlarc=
8168 hardcode_direct=yes
8169 hardcode_shlibpath_var=no
8170 ;;
8171
8172 *)
8173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8176 else
8177 ld_shlibs=no
8178 fi
8179 ;;
8180 esac
8181
8182 if test "$ld_shlibs" = no; then
8183 runpath_var=
8184 hardcode_libdir_flag_spec=
8185 export_dynamic_flag_spec=
8186 whole_archive_flag_spec=
8187 fi
8188 else
8189 # PORTME fill in a description of your system's linker (not GNU ld)
8190 case $host_os in
8191 aix3*)
8192 allow_undefined_flag=unsupported
8193 always_export_symbols=yes
8194 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'
8195 # Note: this linker hardcodes the directories in LIBPATH if there
8196 # are no directories specified by -L.
8197 hardcode_minus_L=yes
8198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8199 # Neither direct hardcoding nor static linking is supported with a
8200 # broken collect2.
8201 hardcode_direct=unsupported
8202 fi
8203 ;;
8204
8205 aix4* | aix5*)
8206 if test "$host_cpu" = ia64; then
8207 # On IA64, the linker does run time linking by default, so we don't
8208 # have to do anything special.
8209 aix_use_runtimelinking=no
8210 exp_sym_flag='-Bexport'
8211 no_entry_flag=""
8212 else
8213 # If we're using GNU nm, then we don't want the "-C" option.
8214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8215 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8216 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8217 else
8218 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'
8219 fi
8220 aix_use_runtimelinking=no
8221
8222 # Test if we are trying to use run time linking or normal
8223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8224 # need to do runtime linking.
8225 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8226 for ld_flag in $LDFLAGS; do
8227 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8228 aix_use_runtimelinking=yes
8229 break
8230 fi
8231 done
8232 ;;
8233 esac
8234
8235 exp_sym_flag='-bexport'
8236 no_entry_flag='-bnoentry'
8237 fi
8238
8239 # When large executables or shared objects are built, AIX ld can
8240 # have problems creating the table of contents. If linking a library
8241 # or program results in "error TOC overflow" add -mminimal-toc to
8242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8244
8245 archive_cmds=''
8246 hardcode_direct=yes
8247 hardcode_libdir_separator=':'
8248 link_all_deplibs=yes
8249
8250 if test "$GCC" = yes; then
8251 case $host_os in aix4.[012]|aix4.[012].*)
8252 # We only want to do this on AIX 4.2 and lower, the check
8253 # below for broken collect2 doesn't work under 4.3+
8254 collect2name=`${CC} -print-prog-name=collect2`
8255 if test -f "$collect2name" && \
8256 strings "$collect2name" | grep resolve_lib_name >/dev/null
8257 then
8258 # We have reworked collect2
0fde1ce3 8259 :
d9898ee8 8260 else
8261 # We have old collect2
8262 hardcode_direct=unsupported
8263 # It fails to find uninstalled libraries when the uninstalled
8264 # path is not listed in the libpath. Setting hardcode_minus_L
8265 # to unsupported forces relinking
8266 hardcode_minus_L=yes
8267 hardcode_libdir_flag_spec='-L$libdir'
8268 hardcode_libdir_separator=
8269 fi
8270 ;;
8271 esac
8272 shared_flag='-shared'
8273 if test "$aix_use_runtimelinking" = yes; then
8274 shared_flag="$shared_flag "'${wl}-G'
8275 fi
8276 else
8277 # not using gcc
8278 if test "$host_cpu" = ia64; then
8279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8280 # chokes on -Wl,-G. The following line is correct:
8281 shared_flag='-G'
8282 else
8283 if test "$aix_use_runtimelinking" = yes; then
8284 shared_flag='${wl}-G'
8285 else
8286 shared_flag='${wl}-bM:SRE'
8287 fi
8288 fi
8289 fi
8290
8291 # It seems that -bexpall does not export symbols beginning with
8292 # underscore (_), so it is better to generate a list of symbols to export.
8293 always_export_symbols=yes
8294 if test "$aix_use_runtimelinking" = yes; then
8295 # Warning - without using the other runtime loading flags (-brtl),
8296 # -berok will link without error, but may produce a broken library.
8297 allow_undefined_flag='-berok'
8298 # Determine the default libpath from the value encoded in an empty executable.
8299 cat >conftest.$ac_ext <<_ACEOF
8300/* confdefs.h. */
8301_ACEOF
8302cat confdefs.h >>conftest.$ac_ext
8303cat >>conftest.$ac_ext <<_ACEOF
8304/* end confdefs.h. */
8305
8306int
8307main ()
8308{
8309
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8315if { (ac_try="$ac_link"
8316case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319esac
8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_link") 2>conftest.er1
d9898ee8 8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest$ac_exeext &&
8331 $as_test_x conftest$ac_exeext; then
d9898ee8 8332
0fde1ce3 8333lt_aix_libpath_sed='
8334 /Import File Strings/,/^$/ {
8335 /^0/ {
8336 s/^0 *\(.*\)$/\1/
8337 p
8338 }
8339 }'
8340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8341# Check for a 64-bit object if we didn't find anything.
0fde1ce3 8342if test -z "$aix_libpath"; then
8343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8344fi
d9898ee8 8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
64ff59ba 8349
d9898ee8 8350fi
64ff59ba 8351
8352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8353 conftest$ac_exeext conftest.$ac_ext
8354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8355
8356 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8357 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8358 else
8359 if test "$host_cpu" = ia64; then
8360 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8361 allow_undefined_flag="-z nodefs"
8362 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"
8363 else
8364 # Determine the default libpath from the value encoded in an empty executable.
8365 cat >conftest.$ac_ext <<_ACEOF
8366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
8371
8372int
8373main ()
8374{
8375
8376 ;
8377 return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8381if { (ac_try="$ac_link"
8382case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
d9898ee8 8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8393 (exit $ac_status); } && {
8394 test -z "$ac_c_werror_flag" ||
8395 test ! -s conftest.err
8396 } && test -s conftest$ac_exeext &&
8397 $as_test_x conftest$ac_exeext; then
d9898ee8 8398
0fde1ce3 8399lt_aix_libpath_sed='
8400 /Import File Strings/,/^$/ {
8401 /^0/ {
8402 s/^0 *\(.*\)$/\1/
8403 p
8404 }
8405 }'
8406aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8407# Check for a 64-bit object if we didn't find anything.
0fde1ce3 8408if test -z "$aix_libpath"; then
8409 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8410fi
d9898ee8 8411else
8412 echo "$as_me: failed program was:" >&5
8413sed 's/^/| /' conftest.$ac_ext >&5
8414
64ff59ba 8415
d9898ee8 8416fi
64ff59ba 8417
8418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8419 conftest$ac_exeext conftest.$ac_ext
8420if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8421
8422 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8423 # Warning - without using the other run time loading flags,
8424 # -berok will link without error, but may produce a broken library.
8425 no_undefined_flag=' ${wl}-bernotok'
8426 allow_undefined_flag=' ${wl}-berok'
8427 # Exported symbols can be pulled into shared objects from archives
8428 whole_archive_flag_spec='$convenience'
8429 archive_cmds_need_lc=yes
8430 # This is similar to how AIX traditionally builds its shared libraries.
8431 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'
8432 fi
8433 fi
8434 ;;
8435
8436 amigaos*)
8437 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)'
8438 hardcode_libdir_flag_spec='-L$libdir'
8439 hardcode_minus_L=yes
8440 # see comment about different semantics on the GNU ld section
8441 ld_shlibs=no
8442 ;;
8443
8444 bsdi[45]*)
8445 export_dynamic_flag_spec=-rdynamic
8446 ;;
8447
8448 cygwin* | mingw* | pw32*)
8449 # When not using gcc, we currently assume that we are using
8450 # Microsoft Visual C++.
8451 # hardcode_libdir_flag_spec is actually meaningless, as there is
8452 # no search path for DLLs.
8453 hardcode_libdir_flag_spec=' '
8454 allow_undefined_flag=unsupported
8455 # Tell ltmain to make .lib files, not .a files.
8456 libext=lib
8457 # Tell ltmain to make .dll files, not .so files.
8458 shrext_cmds=".dll"
8459 # FIXME: Setting linknames here is a bad hack.
8460 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8461 # The linker will automatically build a .lib file if we build a DLL.
8462 old_archive_From_new_cmds='true'
8463 # FIXME: Should let the user specify the lib program.
0fde1ce3 8464 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8465 fix_srcfile_path='`cygpath -w "$srcfile"`'
8466 enable_shared_with_static_runtimes=yes
8467 ;;
8468
8469 darwin* | rhapsody*)
8470 case $host_os in
8471 rhapsody* | darwin1.[012])
8472 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8473 ;;
8474 *) # Darwin 1.3 on
8475 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8476 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8477 else
8478 case ${MACOSX_DEPLOYMENT_TARGET} in
8479 10.[012])
8480 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8481 ;;
8482 10.*)
8483 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8484 ;;
8485 esac
8486 fi
8487 ;;
8488 esac
8489 archive_cmds_need_lc=no
8490 hardcode_direct=no
8491 hardcode_automatic=yes
8492 hardcode_shlibpath_var=unsupported
8493 whole_archive_flag_spec=''
8494 link_all_deplibs=yes
8495 if test "$GCC" = yes ; then
8496 output_verbose_link_cmd='echo'
8497 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8498 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8500 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8501 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8502 else
8503 case $cc_basename in
8504 xlc*)
8505 output_verbose_link_cmd='echo'
0fde1ce3 8506 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8507 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 8509 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 8510 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8511 ;;
8512 *)
8513 ld_shlibs=no
8514 ;;
8515 esac
8516 fi
8517 ;;
8518
8519 dgux*)
8520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8521 hardcode_libdir_flag_spec='-L$libdir'
8522 hardcode_shlibpath_var=no
8523 ;;
8524
8525 freebsd1*)
8526 ld_shlibs=no
8527 ;;
8528
8529 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8530 # support. Future versions do this automatically, but an explicit c++rt0.o
8531 # does not break anything, and helps significantly (at the cost of a little
8532 # extra space).
8533 freebsd2.2*)
8534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8535 hardcode_libdir_flag_spec='-R$libdir'
8536 hardcode_direct=yes
8537 hardcode_shlibpath_var=no
8538 ;;
8539
8540 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8541 freebsd2*)
8542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8543 hardcode_direct=yes
8544 hardcode_minus_L=yes
8545 hardcode_shlibpath_var=no
8546 ;;
8547
8548 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 8549 freebsd* | dragonfly*)
d9898ee8 8550 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8551 hardcode_libdir_flag_spec='-R$libdir'
8552 hardcode_direct=yes
8553 hardcode_shlibpath_var=no
8554 ;;
8555
8556 hpux9*)
8557 if test "$GCC" = yes; then
8558 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8559 else
8560 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'
8561 fi
8562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8563 hardcode_libdir_separator=:
8564 hardcode_direct=yes
8565
8566 # hardcode_minus_L: Not really in the search PATH,
8567 # but as the default location of the library.
8568 hardcode_minus_L=yes
8569 export_dynamic_flag_spec='${wl}-E'
8570 ;;
8571
8572 hpux10*)
8573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8574 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575 else
8576 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8577 fi
8578 if test "$with_gnu_ld" = no; then
8579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580 hardcode_libdir_separator=:
8581
8582 hardcode_direct=yes
8583 export_dynamic_flag_spec='${wl}-E'
8584
8585 # hardcode_minus_L: Not really in the search PATH,
8586 # but as the default location of the library.
8587 hardcode_minus_L=yes
8588 fi
8589 ;;
8590
8591 hpux11*)
8592 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8593 case $host_cpu in
8594 hppa*64*)
8595 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8596 ;;
8597 ia64*)
8598 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8599 ;;
8600 *)
8601 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8602 ;;
8603 esac
8604 else
8605 case $host_cpu in
8606 hppa*64*)
8607 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8608 ;;
8609 ia64*)
8610 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8611 ;;
8612 *)
8613 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8614 ;;
8615 esac
8616 fi
8617 if test "$with_gnu_ld" = no; then
8618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8619 hardcode_libdir_separator=:
8620
8621 case $host_cpu in
8622 hppa*64*|ia64*)
8623 hardcode_libdir_flag_spec_ld='+b $libdir'
8624 hardcode_direct=no
8625 hardcode_shlibpath_var=no
8626 ;;
8627 *)
8628 hardcode_direct=yes
8629 export_dynamic_flag_spec='${wl}-E'
8630
8631 # hardcode_minus_L: Not really in the search PATH,
8632 # but as the default location of the library.
8633 hardcode_minus_L=yes
8634 ;;
8635 esac
8636 fi
8637 ;;
8638
8639 irix5* | irix6* | nonstopux*)
8640 if test "$GCC" = yes; then
8641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8642 else
8643 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8644 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8645 fi
8646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8647 hardcode_libdir_separator=:
8648 link_all_deplibs=yes
8649 ;;
8650
8651 netbsd*)
8652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8654 else
8655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8656 fi
8657 hardcode_libdir_flag_spec='-R$libdir'
8658 hardcode_direct=yes
8659 hardcode_shlibpath_var=no
8660 ;;
8661
8662 newsos6)
8663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_direct=yes
8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666 hardcode_libdir_separator=:
8667 hardcode_shlibpath_var=no
8668 ;;
8669
8670 openbsd*)
0fde1ce3 8671 if test -f /usr/libexec/ld.so; then
8672 hardcode_direct=yes
8673 hardcode_shlibpath_var=no
8674 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8676 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8678 export_dynamic_flag_spec='${wl}-E'
8679 else
8680 case $host_os in
8681 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8683 hardcode_libdir_flag_spec='-R$libdir'
8684 ;;
8685 *)
8686 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8688 ;;
8689 esac
8690 fi
d9898ee8 8691 else
0fde1ce3 8692 ld_shlibs=no
d9898ee8 8693 fi
8694 ;;
8695
8696 os2*)
8697 hardcode_libdir_flag_spec='-L$libdir'
8698 hardcode_minus_L=yes
8699 allow_undefined_flag=unsupported
8700 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'
8701 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8702 ;;
8703
8704 osf3*)
8705 if test "$GCC" = yes; then
8706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8707 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8708 else
8709 allow_undefined_flag=' -expect_unresolved \*'
8710 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8711 fi
8712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8713 hardcode_libdir_separator=:
8714 ;;
8715
8716 osf4* | osf5*) # as osf3* with the addition of -msym flag
8717 if test "$GCC" = yes; then
8718 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8719 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8721 else
8722 allow_undefined_flag=' -expect_unresolved \*'
8723 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8724 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8725 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8726
8727 # Both c and cxx compiler support -rpath directly
8728 hardcode_libdir_flag_spec='-rpath $libdir'
8729 fi
8730 hardcode_libdir_separator=:
8731 ;;
8732
8733 solaris*)
8734 no_undefined_flag=' -z text'
8735 if test "$GCC" = yes; then
8736 wlarc='${wl}'
8737 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8739 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8740 else
8741 wlarc=''
8742 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8745 fi
8746 hardcode_libdir_flag_spec='-R$libdir'
8747 hardcode_shlibpath_var=no
8748 case $host_os in
8749 solaris2.[0-5] | solaris2.[0-5].*) ;;
8750 *)
0fde1ce3 8751 # The compiler driver will combine and reorder linker options,
8752 # but understands `-z linker_flag'. GCC discards it without `$wl',
8753 # but is careful enough not to reorder.
d9898ee8 8754 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 8755 if test "$GCC" = yes; then
8756 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8757 else
8758 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8759 fi
8760 ;;
d9898ee8 8761 esac
8762 link_all_deplibs=yes
8763 ;;
8764
8765 sunos4*)
8766 if test "x$host_vendor" = xsequent; then
8767 # Use $CC to link under sequent, because it throws in some extra .o
8768 # files that make .init and .fini sections work.
8769 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8770 else
8771 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8772 fi
8773 hardcode_libdir_flag_spec='-L$libdir'
8774 hardcode_direct=yes
8775 hardcode_minus_L=yes
8776 hardcode_shlibpath_var=no
8777 ;;
8778
8779 sysv4)
8780 case $host_vendor in
8781 sni)
8782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_direct=yes # is this really true???
8784 ;;
8785 siemens)
8786 ## LD is ld it makes a PLAMLIB
8787 ## CC just makes a GrossModule.
8788 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8789 reload_cmds='$CC -r -o $output$reload_objs'
8790 hardcode_direct=no
8791 ;;
8792 motorola)
8793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8795 ;;
8796 esac
8797 runpath_var='LD_RUN_PATH'
8798 hardcode_shlibpath_var=no
8799 ;;
8800
8801 sysv4.3*)
8802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_shlibpath_var=no
8804 export_dynamic_flag_spec='-Bexport'
8805 ;;
8806
8807 sysv4*MP*)
8808 if test -d /usr/nec; then
8809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810 hardcode_shlibpath_var=no
8811 runpath_var=LD_RUN_PATH
8812 hardcode_runpath_var=yes
8813 ld_shlibs=yes
8814 fi
8815 ;;
8816
0fde1ce3 8817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8818 no_undefined_flag='${wl}-z,text'
8819 archive_cmds_need_lc=no
8820 hardcode_shlibpath_var=no
8821 runpath_var='LD_RUN_PATH'
8822
8823 if test "$GCC" = yes; then
8824 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 else
8827 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 fi
8830 ;;
8831
8832 sysv5* | sco3.2v5* | sco5v6*)
8833 # Note: We can NOT use -z defs as we might desire, because we do not
8834 # link with -lc, and that would cause any symbols used from libc to
8835 # always be unresolved, which means just about no library would
8836 # ever link correctly. If we're not using GNU ld we use -z text
8837 # though, which does catch some bad symbols but isn't as heavy-handed
8838 # as -z defs.
8839 no_undefined_flag='${wl}-z,text'
8840 allow_undefined_flag='${wl}-z,nodefs'
8841 archive_cmds_need_lc=no
8842 hardcode_shlibpath_var=no
8843 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8844 hardcode_libdir_separator=':'
8845 link_all_deplibs=yes
8846 export_dynamic_flag_spec='${wl}-Bexport'
8847 runpath_var='LD_RUN_PATH'
8848
8849 if test "$GCC" = yes; then
8850 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 else
8853 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 fi
8856 ;;
8857
8858 uts4*)
8859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 hardcode_shlibpath_var=no
8862 ;;
8863
8864 *)
8865 ld_shlibs=no
8866 ;;
8867 esac
8868 fi
8869
64ff59ba 8870{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8871echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8872test "$ld_shlibs" = no && can_build_shared=no
8873
8874#
8875# Do we need to explicitly link libc?
8876#
8877case "x$archive_cmds_need_lc" in
8878x|xyes)
8879 # Assume -lc should be added
8880 archive_cmds_need_lc=yes
8881
8882 if test "$enable_shared" = yes && test "$GCC" = yes; then
8883 case $archive_cmds in
8884 *'~'*)
8885 # FIXME: we may have to deal with multi-command sequences.
8886 ;;
8887 '$CC '*)
8888 # Test whether the compiler implicitly links with -lc since on some
8889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8890 # to ld, don't add -lc before -lgcc.
64ff59ba 8891 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8892echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8893 $rm conftest*
0fde1ce3 8894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8895
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897 (eval $ac_compile) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } 2>conftest.err; then
8901 soname=conftest
8902 lib=conftest
8903 libobjs=conftest.$ac_objext
8904 deplibs=
8905 wl=$lt_prog_compiler_wl
8906 pic_flag=$lt_prog_compiler_pic
8907 compiler_flags=-v
8908 linker_flags=-v
8909 verstring=
8910 output_objdir=.
8911 libname=conftest
8912 lt_save_allow_undefined_flag=$allow_undefined_flag
8913 allow_undefined_flag=
8914 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8915 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }
8919 then
8920 archive_cmds_need_lc=no
8921 else
8922 archive_cmds_need_lc=yes
8923 fi
8924 allow_undefined_flag=$lt_save_allow_undefined_flag
8925 else
8926 cat conftest.err 1>&5
8927 fi
8928 $rm conftest*
64ff59ba 8929 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8930echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8931 ;;
8932 esac
8933 fi
8934 ;;
8935esac
8936
64ff59ba 8937{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8938echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8939library_names_spec=
8940libname_spec='lib$name'
8941soname_spec=
8942shrext_cmds=".so"
8943postinstall_cmds=
8944postuninstall_cmds=
8945finish_cmds=
8946finish_eval=
8947shlibpath_var=
8948shlibpath_overrides_runpath=unknown
8949version_type=none
8950dynamic_linker="$host_os ld.so"
8951sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 8952
d9898ee8 8953if test "$GCC" = yes; then
0fde1ce3 8954 case $host_os in
8955 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8956 *) lt_awk_arg="/^libraries:/" ;;
8957 esac
8958 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8959 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 8960 # if the path contains ";" then we assume it to be the separator
8961 # otherwise default to the standard path separator (i.e. ":") - it is
8962 # assumed that no part of a normal pathname contains ";" but that should
8963 # okay in the real world where ";" in dirpaths is itself problematic.
0fde1ce3 8964 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 8965 else
0fde1ce3 8966 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 8967 fi
0fde1ce3 8968 # Ok, now we have the path, separated by spaces, we can step through it
8969 # and add multilib dir if necessary.
8970 lt_tmp_lt_search_path_spec=
8971 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8972 for lt_sys_path in $lt_search_path_spec; do
8973 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8974 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8975 else
8976 test -d "$lt_sys_path" && \
8977 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8978 fi
8979 done
8980 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8981BEGIN {RS=" "; FS="/|\n";} {
8982 lt_foo="";
8983 lt_count=0;
8984 for (lt_i = NF; lt_i > 0; lt_i--) {
8985 if ($lt_i != "" && $lt_i != ".") {
8986 if ($lt_i == "..") {
8987 lt_count++;
8988 } else {
8989 if (lt_count == 0) {
8990 lt_foo="/" $lt_i lt_foo;
8991 } else {
8992 lt_count--;
8993 }
8994 }
8995 }
8996 }
8997 if (lt_foo != "") { lt_freq[lt_foo]++; }
8998 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8999}'`
9000 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 9001else
9002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9003fi
9004need_lib_prefix=unknown
9005hardcode_into_libs=no
9006
9007# when you set need_version to no, make sure it does not cause -set_version
9008# flags to be left without arguments
9009need_version=unknown
9010
9011case $host_os in
9012aix3*)
9013 version_type=linux
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9015 shlibpath_var=LIBPATH
9016
9017 # AIX 3 has no versioning support, so we append a major version to the name.
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 ;;
9020
9021aix4* | aix5*)
9022 version_type=linux
9023 need_lib_prefix=no
9024 need_version=no
9025 hardcode_into_libs=yes
9026 if test "$host_cpu" = ia64; then
9027 # AIX 5 supports IA64
9028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 else
9031 # With GCC up to 2.95.x, collect2 would create an import file
9032 # for dependence libraries. The import file would start with
9033 # the line `#! .'. This would cause the generated library to
9034 # depend on `.', always an invalid library. This was fixed in
9035 # development snapshots of GCC prior to 3.0.
9036 case $host_os in
9037 aix4 | aix4.[01] | aix4.[01].*)
9038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9039 echo ' yes '
9040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9041 :
9042 else
9043 can_build_shared=no
9044 fi
9045 ;;
9046 esac
9047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9048 # soname into executable. Probably we can add versioning support to
9049 # collect2, so additional links can be useful in future.
9050 if test "$aix_use_runtimelinking" = yes; then
9051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9052 # instead of lib<name>.a to let people know that these are not
9053 # typical AIX shared libraries.
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 else
9056 # We preserve .a as extension for shared libraries through AIX4.2
9057 # and later when we are not doing run time linking.
9058 library_names_spec='${libname}${release}.a $libname.a'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 fi
9061 shlibpath_var=LIBPATH
9062 fi
9063 ;;
9064
9065amigaos*)
9066 library_names_spec='$libname.ixlibrary $libname.a'
9067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9068 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
9069 ;;
9070
9071beos*)
9072 library_names_spec='${libname}${shared_ext}'
9073 dynamic_linker="$host_os ld.so"
9074 shlibpath_var=LIBRARY_PATH
9075 ;;
9076
9077bsdi[45]*)
9078 version_type=linux
9079 need_version=no
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9086 # the default ld.so.conf also contains /usr/contrib/lib and
9087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9088 # libtool to hard-code these into programs
9089 ;;
9090
9091cygwin* | mingw* | pw32*)
9092 version_type=windows
9093 shrext_cmds=".dll"
9094 need_version=no
9095 need_lib_prefix=no
9096
9097 case $GCC,$host_os in
9098 yes,cygwin* | yes,mingw* | yes,pw32*)
9099 library_names_spec='$libname.dll.a'
9100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9101 postinstall_cmds='base_file=`basename \${file}`~
9102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9103 dldir=$destdir/`dirname \$dlpath`~
9104 test -d \$dldir || mkdir -p \$dldir~
9105 $install_prog $dir/$dlname \$dldir/$dlname~
9106 chmod a+x \$dldir/$dlname'
9107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9108 dlpath=$dir/\$dldll~
9109 $rm \$dlpath'
9110 shlibpath_overrides_runpath=yes
9111
9112 case $host_os in
9113 cygwin*)
9114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9117 ;;
9118 mingw*)
9119 # MinGW DLLs use traditional 'lib' prefix
9120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9123 # It is most probably a Windows format PATH printed by
9124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9125 # path with ; separators, and with drive letters. We can handle the
9126 # drive letters (cygwin fileutils understands them), so leave them,
9127 # especially as we might pass files found there to a mingw objdump,
9128 # which wouldn't understand a cygwinified path. Ahh.
9129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9130 else
9131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9132 fi
9133 ;;
9134 pw32*)
9135 # pw32 DLLs use 'pw' prefix rather than 'lib'
9136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9137 ;;
9138 esac
9139 ;;
9140
9141 *)
9142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9143 ;;
9144 esac
9145 dynamic_linker='Win32 ld.exe'
9146 # FIXME: first we should search . and the directory the executable is in
9147 shlibpath_var=PATH
9148 ;;
9149
9150darwin* | rhapsody*)
9151 dynamic_linker="$host_os dyld"
9152 version_type=darwin
9153 need_lib_prefix=no
9154 need_version=no
9155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9156 soname_spec='${libname}${release}${major}$shared_ext'
9157 shlibpath_overrides_runpath=yes
9158 shlibpath_var=DYLD_LIBRARY_PATH
9159 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 9160
9161 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9163 ;;
9164
9165dgux*)
9166 version_type=linux
9167 need_lib_prefix=no
9168 need_version=no
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 ;;
9173
9174freebsd1*)
9175 dynamic_linker=no
9176 ;;
9177
d9898ee8 9178freebsd* | dragonfly*)
9179 # DragonFly does not have aout. When/if they implement a new
9180 # versioning mechanism, adjust this.
9181 if test -x /usr/bin/objformat; then
9182 objformat=`/usr/bin/objformat`
9183 else
9184 case $host_os in
9185 freebsd[123]*) objformat=aout ;;
9186 *) objformat=elf ;;
9187 esac
9188 fi
9189 version_type=freebsd-$objformat
9190 case $version_type in
9191 freebsd-elf*)
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9193 need_version=no
9194 need_lib_prefix=no
9195 ;;
9196 freebsd-*)
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9198 need_version=yes
9199 ;;
9200 esac
9201 shlibpath_var=LD_LIBRARY_PATH
9202 case $host_os in
9203 freebsd2*)
9204 shlibpath_overrides_runpath=yes
9205 ;;
9206 freebsd3.[01]* | freebsdelf3.[01]*)
9207 shlibpath_overrides_runpath=yes
9208 hardcode_into_libs=yes
9209 ;;
9210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9212 shlibpath_overrides_runpath=no
9213 hardcode_into_libs=yes
9214 ;;
0fde1ce3 9215 *) # from 4.6 on, and DragonFly
d9898ee8 9216 shlibpath_overrides_runpath=yes
9217 hardcode_into_libs=yes
9218 ;;
9219 esac
9220 ;;
9221
9222gnu*)
9223 version_type=linux
9224 need_lib_prefix=no
9225 need_version=no
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 hardcode_into_libs=yes
9230 ;;
9231
9232hpux9* | hpux10* | hpux11*)
9233 # Give a soname corresponding to the major version so that dld.sl refuses to
9234 # link against other versions.
9235 version_type=sunos
9236 need_lib_prefix=no
9237 need_version=no
9238 case $host_cpu in
9239 ia64*)
9240 shrext_cmds='.so'
9241 hardcode_into_libs=yes
9242 dynamic_linker="$host_os dld.so"
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 if test "X$HPUX_IA64_MODE" = X32; then
9248 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9249 else
9250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9251 fi
9252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9253 ;;
9254 hppa*64*)
9255 shrext_cmds='.sl'
9256 hardcode_into_libs=yes
9257 dynamic_linker="$host_os dld.sl"
9258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261 soname_spec='${libname}${release}${shared_ext}$major'
9262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9264 ;;
9265 *)
9266 shrext_cmds='.sl'
9267 dynamic_linker="$host_os dld.sl"
9268 shlibpath_var=SHLIB_PATH
9269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 ;;
9273 esac
9274 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9275 postinstall_cmds='chmod 555 $lib'
9276 ;;
9277
0fde1ce3 9278interix[3-9]*)
d9898ee8 9279 version_type=linux
9280 need_lib_prefix=no
9281 need_version=no
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=no
9287 hardcode_into_libs=yes
9288 ;;
9289
9290irix5* | irix6* | nonstopux*)
9291 case $host_os in
9292 nonstopux*) version_type=nonstopux ;;
9293 *)
9294 if test "$lt_cv_prog_gnu_ld" = yes; then
9295 version_type=linux
9296 else
9297 version_type=irix
9298 fi ;;
9299 esac
9300 need_lib_prefix=no
9301 need_version=no
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 case $host_os in
9305 irix5* | nonstopux*)
9306 libsuff= shlibsuff=
9307 ;;
9308 *)
9309 case $LD in # libtool.m4 will add one of these switches to LD
9310 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9311 libsuff= shlibsuff= libmagic=32-bit;;
9312 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9313 libsuff=32 shlibsuff=N32 libmagic=N32;;
9314 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9315 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9316 *) libsuff= shlibsuff= libmagic=never-match;;
9317 esac
9318 ;;
9319 esac
9320 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9321 shlibpath_overrides_runpath=no
9322 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9323 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9324 hardcode_into_libs=yes
9325 ;;
9326
9327# No shared lib support for Linux oldld, aout, or coff.
9328linux*oldld* | linux*aout* | linux*coff*)
9329 dynamic_linker=no
9330 ;;
9331
9332# This must be Linux ELF.
0fde1ce3 9333linux* | k*bsd*-gnu)
d9898ee8 9334 version_type=linux
9335 need_lib_prefix=no
9336 need_version=no
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=no
9342 # This implies no fast_install, which is unacceptable.
9343 # Some rework will be needed to allow for fast_install
9344 # before this can be enabled.
9345 hardcode_into_libs=yes
0fde1ce3 9346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9348
9349 # Append ld.so.conf contents to the search path
9350 if test -f /etc/ld.so.conf; then
0fde1ce3 9351 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;/^$/d' | tr '\n' ' '`
9352 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9353 fi
9354
9355 # We used to test for /lib/ld.so.1 and disable shared libraries on
9356 # powerpc, because MkLinux only supported shared libraries with the
9357 # GNU dynamic linker. Since this was broken with cross compilers,
9358 # most powerpc-linux boxes support dynamic linking these days and
9359 # people can always --disable-shared, the test was removed, and we
9360 # assume the GNU/Linux dynamic linker is in use.
9361 dynamic_linker='GNU/Linux ld.so'
9362 ;;
9363
d9898ee8 9364netbsd*)
9365 version_type=sunos
9366 need_lib_prefix=no
9367 need_version=no
9368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9371 dynamic_linker='NetBSD (a.out) ld.so'
9372 else
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 dynamic_linker='NetBSD ld.elf_so'
9376 fi
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 hardcode_into_libs=yes
9380 ;;
9381
9382newsos6)
9383 version_type=linux
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 shlibpath_overrides_runpath=yes
9387 ;;
9388
9389nto-qnx*)
9390 version_type=linux
9391 need_lib_prefix=no
9392 need_version=no
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 shlibpath_var=LD_LIBRARY_PATH
9396 shlibpath_overrides_runpath=yes
9397 ;;
9398
9399openbsd*)
9400 version_type=sunos
9401 sys_lib_dlsearch_path_spec="/usr/lib"
9402 need_lib_prefix=no
9403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9404 case $host_os in
9405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9406 *) need_version=no ;;
9407 esac
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9412 case $host_os in
9413 openbsd2.[89] | openbsd2.[89].*)
9414 shlibpath_overrides_runpath=no
9415 ;;
9416 *)
9417 shlibpath_overrides_runpath=yes
9418 ;;
9419 esac
9420 else
9421 shlibpath_overrides_runpath=yes
9422 fi
9423 ;;
9424
9425os2*)
9426 libname_spec='$name'
9427 shrext_cmds=".dll"
9428 need_lib_prefix=no
9429 library_names_spec='$libname${shared_ext} $libname.a'
9430 dynamic_linker='OS/2 ld.exe'
9431 shlibpath_var=LIBPATH
9432 ;;
9433
9434osf3* | osf4* | osf5*)
9435 version_type=osf
9436 need_lib_prefix=no
9437 need_version=no
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 shlibpath_var=LD_LIBRARY_PATH
9441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9443 ;;
9444
0fde1ce3 9445rdos*)
9446 dynamic_linker=no
9447 ;;
9448
d9898ee8 9449solaris*)
9450 version_type=linux
9451 need_lib_prefix=no
9452 need_version=no
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=yes
9457 hardcode_into_libs=yes
9458 # ldd complains unless libraries are executable
9459 postinstall_cmds='chmod +x $lib'
9460 ;;
9461
9462sunos4*)
9463 version_type=sunos
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 if test "$with_gnu_ld" = yes; then
9469 need_lib_prefix=no
9470 fi
9471 need_version=yes
9472 ;;
9473
9474sysv4 | sysv4.3*)
9475 version_type=linux
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 case $host_vendor in
9480 sni)
9481 shlibpath_overrides_runpath=no
9482 need_lib_prefix=no
9483 export_dynamic_flag_spec='${wl}-Blargedynsym'
9484 runpath_var=LD_RUN_PATH
9485 ;;
9486 siemens)
9487 need_lib_prefix=no
9488 ;;
9489 motorola)
9490 need_lib_prefix=no
9491 need_version=no
9492 shlibpath_overrides_runpath=no
9493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9494 ;;
9495 esac
9496 ;;
9497
9498sysv4*MP*)
9499 if test -d /usr/nec ;then
9500 version_type=linux
9501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9502 soname_spec='$libname${shared_ext}.$major'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 fi
9505 ;;
9506
9507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9508 version_type=freebsd-elf
9509 need_lib_prefix=no
9510 need_version=no
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9512 soname_spec='${libname}${release}${shared_ext}$major'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 hardcode_into_libs=yes
9515 if test "$with_gnu_ld" = yes; then
9516 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9517 shlibpath_overrides_runpath=no
9518 else
9519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9520 shlibpath_overrides_runpath=yes
9521 case $host_os in
9522 sco3.2v5*)
9523 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9524 ;;
9525 esac
9526 fi
9527 sys_lib_dlsearch_path_spec='/usr/lib'
9528 ;;
9529
9530uts4*)
9531 version_type=linux
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 ;;
9536
9537*)
9538 dynamic_linker=no
9539 ;;
9540esac
64ff59ba 9541{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9542echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9543test "$dynamic_linker" = no && can_build_shared=no
9544
9545variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9546if test "$GCC" = yes; then
9547 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9548fi
9549
64ff59ba 9550{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9551echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9552hardcode_action=
9553if test -n "$hardcode_libdir_flag_spec" || \
9554 test -n "$runpath_var" || \
9555 test "X$hardcode_automatic" = "Xyes" ; then
9556
9557 # We can hardcode non-existant directories.
9558 if test "$hardcode_direct" != no &&
9559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9560 # have to relink, otherwise we might link with an installed library
9561 # when we should be linking with a yet-to-be-installed one
9562 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9563 test "$hardcode_minus_L" != no; then
9564 # Linking always hardcodes the temporary library directory.
9565 hardcode_action=relink
9566 else
9567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9568 hardcode_action=immediate
9569 fi
9570else
9571 # We cannot hardcode anything, or else we can only hardcode existing
9572 # directories.
9573 hardcode_action=unsupported
9574fi
64ff59ba 9575{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9576echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9577
9578if test "$hardcode_action" = relink; then
9579 # Fast installation is not supported
9580 enable_fast_install=no
9581elif test "$shlibpath_overrides_runpath" = yes ||
9582 test "$enable_shared" = no; then
9583 # Fast installation is not necessary
9584 enable_fast_install=needless
9585fi
9586
9587striplib=
9588old_striplib=
64ff59ba 9589{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9590echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9591if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9592 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9593 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9594 { echo "$as_me:$LINENO: result: yes" >&5
9595echo "${ECHO_T}yes" >&6; }
d9898ee8 9596else
9597# FIXME - insert some real tests, host_os isn't really good enough
9598 case $host_os in
9599 darwin*)
9600 if test -n "$STRIP" ; then
9601 striplib="$STRIP -x"
0fde1ce3 9602 old_striplib="$STRIP -S"
64ff59ba 9603 { echo "$as_me:$LINENO: result: yes" >&5
9604echo "${ECHO_T}yes" >&6; }
d9898ee8 9605 else
64ff59ba 9606 { echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6; }
d9898ee8 9608fi
9609 ;;
9610 *)
64ff59ba 9611 { echo "$as_me:$LINENO: result: no" >&5
9612echo "${ECHO_T}no" >&6; }
d9898ee8 9613 ;;
9614 esac
9615fi
9616
9617if test "x$enable_dlopen" != xyes; then
9618 enable_dlopen=unknown
9619 enable_dlopen_self=unknown
9620 enable_dlopen_self_static=unknown
9621else
9622 lt_cv_dlopen=no
9623 lt_cv_dlopen_libs=
9624
9625 case $host_os in
9626 beos*)
9627 lt_cv_dlopen="load_add_on"
9628 lt_cv_dlopen_libs=
9629 lt_cv_dlopen_self=yes
9630 ;;
9631
9632 mingw* | pw32*)
9633 lt_cv_dlopen="LoadLibrary"
9634 lt_cv_dlopen_libs=
9635 ;;
9636
9637 cygwin*)
9638 lt_cv_dlopen="dlopen"
9639 lt_cv_dlopen_libs=
9640 ;;
9641
9642 darwin*)
9643 # if libdl is installed we need to link against it
64ff59ba 9644 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9645echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9646if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648else
9649 ac_check_lib_save_LIBS=$LIBS
9650LIBS="-ldl $LIBS"
9651cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657
64ff59ba 9658/* Override any GCC internal prototype to avoid an error.
9659 Use char because int might match the return type of a GCC
9660 builtin and then its argument prototype would still apply. */
d9898ee8 9661#ifdef __cplusplus
9662extern "C"
9663#endif
d9898ee8 9664char dlopen ();
9665int
9666main ()
9667{
64ff59ba 9668return dlopen ();
d9898ee8 9669 ;
9670 return 0;
9671}
9672_ACEOF
9673rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9674if { (ac_try="$ac_link"
9675case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678esac
9679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
d9898ee8 9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
d9898ee8 9691 ac_cv_lib_dl_dlopen=yes
9692else
9693 echo "$as_me: failed program was:" >&5
9694sed 's/^/| /' conftest.$ac_ext >&5
9695
64ff59ba 9696 ac_cv_lib_dl_dlopen=no
d9898ee8 9697fi
64ff59ba 9698
9699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9700 conftest$ac_exeext conftest.$ac_ext
9701LIBS=$ac_check_lib_save_LIBS
9702fi
64ff59ba 9703{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9704echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9705if test $ac_cv_lib_dl_dlopen = yes; then
9706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9707else
9708
9709 lt_cv_dlopen="dyld"
9710 lt_cv_dlopen_libs=
9711 lt_cv_dlopen_self=yes
9712
9713fi
9714
9715 ;;
9716
9717 *)
64ff59ba 9718 { echo "$as_me:$LINENO: checking for shl_load" >&5
9719echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9720if test "${ac_cv_func_shl_load+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723 cat >conftest.$ac_ext <<_ACEOF
9724/* confdefs.h. */
9725_ACEOF
9726cat confdefs.h >>conftest.$ac_ext
9727cat >>conftest.$ac_ext <<_ACEOF
9728/* end confdefs.h. */
9729/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9731#define shl_load innocuous_shl_load
9732
9733/* System header to define __stub macros and hopefully few prototypes,
9734 which can conflict with char shl_load (); below.
9735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9736 <limits.h> exists even on freestanding compilers. */
9737
9738#ifdef __STDC__
9739# include <limits.h>
9740#else
9741# include <assert.h>
9742#endif
9743
9744#undef shl_load
9745
64ff59ba 9746/* Override any GCC internal prototype to avoid an error.
9747 Use char because int might match the return type of a GCC
9748 builtin and then its argument prototype would still apply. */
d9898ee8 9749#ifdef __cplusplus
9750extern "C"
d9898ee8 9751#endif
d9898ee8 9752char shl_load ();
9753/* The GNU C library defines this for functions which it implements
9754 to always fail with ENOSYS. Some functions are actually named
9755 something starting with __ and the normal name is an alias. */
64ff59ba 9756#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9757choke me
d9898ee8 9758#endif
9759
9760int
9761main ()
9762{
64ff59ba 9763return shl_load ();
d9898ee8 9764 ;
9765 return 0;
9766}
9767_ACEOF
9768rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9769if { (ac_try="$ac_link"
9770case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773esac
9774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
d9898ee8 9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest$ac_exeext &&
9785 $as_test_x conftest$ac_exeext; then
d9898ee8 9786 ac_cv_func_shl_load=yes
9787else
9788 echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
64ff59ba 9791 ac_cv_func_shl_load=no
d9898ee8 9792fi
64ff59ba 9793
9794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9795 conftest$ac_exeext conftest.$ac_ext
9796fi
64ff59ba 9797{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9798echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9799if test $ac_cv_func_shl_load = yes; then
9800 lt_cv_dlopen="shl_load"
9801else
64ff59ba 9802 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9803echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9804if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806else
9807 ac_check_lib_save_LIBS=$LIBS
9808LIBS="-ldld $LIBS"
9809cat >conftest.$ac_ext <<_ACEOF
9810/* confdefs.h. */
9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h. */
9815
64ff59ba 9816/* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
d9898ee8 9819#ifdef __cplusplus
9820extern "C"
9821#endif
d9898ee8 9822char shl_load ();
9823int
9824main ()
9825{
64ff59ba 9826return shl_load ();
d9898ee8 9827 ;
9828 return 0;
9829}
9830_ACEOF
9831rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9832if { (ac_try="$ac_link"
9833case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_link") 2>conftest.er1
d9898ee8 9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9844 (exit $ac_status); } && {
9845 test -z "$ac_c_werror_flag" ||
9846 test ! -s conftest.err
9847 } && test -s conftest$ac_exeext &&
9848 $as_test_x conftest$ac_exeext; then
d9898ee8 9849 ac_cv_lib_dld_shl_load=yes
9850else
9851 echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
64ff59ba 9854 ac_cv_lib_dld_shl_load=no
d9898ee8 9855fi
64ff59ba 9856
9857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9858 conftest$ac_exeext conftest.$ac_ext
9859LIBS=$ac_check_lib_save_LIBS
9860fi
64ff59ba 9861{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9863if test $ac_cv_lib_dld_shl_load = yes; then
9864 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9865else
64ff59ba 9866 { echo "$as_me:$LINENO: checking for dlopen" >&5
9867echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9868if test "${ac_cv_func_dlopen+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870else
9871 cat >conftest.$ac_ext <<_ACEOF
9872/* confdefs.h. */
9873_ACEOF
9874cat confdefs.h >>conftest.$ac_ext
9875cat >>conftest.$ac_ext <<_ACEOF
9876/* end confdefs.h. */
9877/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9879#define dlopen innocuous_dlopen
9880
9881/* System header to define __stub macros and hopefully few prototypes,
9882 which can conflict with char dlopen (); below.
9883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9884 <limits.h> exists even on freestanding compilers. */
9885
9886#ifdef __STDC__
9887# include <limits.h>
9888#else
9889# include <assert.h>
9890#endif
9891
9892#undef dlopen
9893
64ff59ba 9894/* Override any GCC internal prototype to avoid an error.
9895 Use char because int might match the return type of a GCC
9896 builtin and then its argument prototype would still apply. */
d9898ee8 9897#ifdef __cplusplus
9898extern "C"
d9898ee8 9899#endif
d9898ee8 9900char dlopen ();
9901/* The GNU C library defines this for functions which it implements
9902 to always fail with ENOSYS. Some functions are actually named
9903 something starting with __ and the normal name is an alias. */
64ff59ba 9904#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9905choke me
d9898ee8 9906#endif
9907
9908int
9909main ()
9910{
64ff59ba 9911return dlopen ();
d9898ee8 9912 ;
9913 return 0;
9914}
9915_ACEOF
9916rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9917if { (ac_try="$ac_link"
9918case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_link") 2>conftest.er1
d9898ee8 9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest$ac_exeext &&
9933 $as_test_x conftest$ac_exeext; then
d9898ee8 9934 ac_cv_func_dlopen=yes
9935else
9936 echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
64ff59ba 9939 ac_cv_func_dlopen=no
d9898ee8 9940fi
64ff59ba 9941
9942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9943 conftest$ac_exeext conftest.$ac_ext
9944fi
64ff59ba 9945{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9946echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9947if test $ac_cv_func_dlopen = yes; then
9948 lt_cv_dlopen="dlopen"
9949else
64ff59ba 9950 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9951echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9952if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954else
9955 ac_check_lib_save_LIBS=$LIBS
9956LIBS="-ldl $LIBS"
9957cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963
64ff59ba 9964/* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
d9898ee8 9967#ifdef __cplusplus
9968extern "C"
9969#endif
d9898ee8 9970char dlopen ();
9971int
9972main ()
9973{
64ff59ba 9974return dlopen ();
d9898ee8 9975 ;
9976 return 0;
9977}
9978_ACEOF
9979rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9980if { (ac_try="$ac_link"
9981case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9984esac
9985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
d9898ee8 9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9992 (exit $ac_status); } && {
9993 test -z "$ac_c_werror_flag" ||
9994 test ! -s conftest.err
9995 } && test -s conftest$ac_exeext &&
9996 $as_test_x conftest$ac_exeext; then
d9898ee8 9997 ac_cv_lib_dl_dlopen=yes
9998else
9999 echo "$as_me: failed program was:" >&5
10000sed 's/^/| /' conftest.$ac_ext >&5
10001
64ff59ba 10002 ac_cv_lib_dl_dlopen=no
d9898ee8 10003fi
64ff59ba 10004
10005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10006 conftest$ac_exeext conftest.$ac_ext
10007LIBS=$ac_check_lib_save_LIBS
10008fi
64ff59ba 10009{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10010echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 10011if test $ac_cv_lib_dl_dlopen = yes; then
10012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10013else
64ff59ba 10014 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10015echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 10016if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018else
10019 ac_check_lib_save_LIBS=$LIBS
10020LIBS="-lsvld $LIBS"
10021cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
10027
64ff59ba 10028/* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
d9898ee8 10031#ifdef __cplusplus
10032extern "C"
10033#endif
d9898ee8 10034char dlopen ();
10035int
10036main ()
10037{
64ff59ba 10038return dlopen ();
d9898ee8 10039 ;
10040 return 0;
10041}
10042_ACEOF
10043rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10044if { (ac_try="$ac_link"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
d9898ee8 10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest$ac_exeext &&
10060 $as_test_x conftest$ac_exeext; then
d9898ee8 10061 ac_cv_lib_svld_dlopen=yes
10062else
10063 echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
10065
64ff59ba 10066 ac_cv_lib_svld_dlopen=no
d9898ee8 10067fi
64ff59ba 10068
10069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10070 conftest$ac_exeext conftest.$ac_ext
10071LIBS=$ac_check_lib_save_LIBS
10072fi
64ff59ba 10073{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10074echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 10075if test $ac_cv_lib_svld_dlopen = yes; then
10076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10077else
64ff59ba 10078 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10079echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 10080if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083 ac_check_lib_save_LIBS=$LIBS
10084LIBS="-ldld $LIBS"
10085cat >conftest.$ac_ext <<_ACEOF
10086/* confdefs.h. */
10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h. */
10091
64ff59ba 10092/* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
d9898ee8 10095#ifdef __cplusplus
10096extern "C"
10097#endif
d9898ee8 10098char dld_link ();
10099int
10100main ()
10101{
64ff59ba 10102return dld_link ();
d9898ee8 10103 ;
10104 return 0;
10105}
10106_ACEOF
10107rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10108if { (ac_try="$ac_link"
10109case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112esac
10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_link") 2>conftest.er1
d9898ee8 10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest$ac_exeext &&
10124 $as_test_x conftest$ac_exeext; then
d9898ee8 10125 ac_cv_lib_dld_dld_link=yes
10126else
10127 echo "$as_me: failed program was:" >&5
10128sed 's/^/| /' conftest.$ac_ext >&5
10129
64ff59ba 10130 ac_cv_lib_dld_dld_link=no
d9898ee8 10131fi
64ff59ba 10132
10133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10134 conftest$ac_exeext conftest.$ac_ext
10135LIBS=$ac_check_lib_save_LIBS
10136fi
64ff59ba 10137{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10138echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 10139if test $ac_cv_lib_dld_dld_link = yes; then
10140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10141fi
10142
10143
10144fi
10145
10146
10147fi
10148
10149
10150fi
10151
10152
10153fi
10154
10155
10156fi
10157
10158 ;;
10159 esac
10160
10161 if test "x$lt_cv_dlopen" != xno; then
10162 enable_dlopen=yes
10163 else
10164 enable_dlopen=no
10165 fi
10166
10167 case $lt_cv_dlopen in
10168 dlopen)
10169 save_CPPFLAGS="$CPPFLAGS"
10170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10171
10172 save_LDFLAGS="$LDFLAGS"
10173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10174
10175 save_LIBS="$LIBS"
10176 LIBS="$lt_cv_dlopen_libs $LIBS"
10177
64ff59ba 10178 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10179echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10180if test "${lt_cv_dlopen_self+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182else
10183 if test "$cross_compiling" = yes; then :
10184 lt_cv_dlopen_self=cross
10185else
10186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10187 lt_status=$lt_dlunknown
10188 cat > conftest.$ac_ext <<EOF
0fde1ce3 10189#line 10189 "configure"
d9898ee8 10190#include "confdefs.h"
10191
10192#if HAVE_DLFCN_H
10193#include <dlfcn.h>
10194#endif
10195
10196#include <stdio.h>
10197
10198#ifdef RTLD_GLOBAL
10199# define LT_DLGLOBAL RTLD_GLOBAL
10200#else
10201# ifdef DL_GLOBAL
10202# define LT_DLGLOBAL DL_GLOBAL
10203# else
10204# define LT_DLGLOBAL 0
10205# endif
10206#endif
10207
10208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10209 find out it does not work in some platform. */
10210#ifndef LT_DLLAZY_OR_NOW
10211# ifdef RTLD_LAZY
10212# define LT_DLLAZY_OR_NOW RTLD_LAZY
10213# else
10214# ifdef DL_LAZY
10215# define LT_DLLAZY_OR_NOW DL_LAZY
10216# else
10217# ifdef RTLD_NOW
10218# define LT_DLLAZY_OR_NOW RTLD_NOW
10219# else
10220# ifdef DL_NOW
10221# define LT_DLLAZY_OR_NOW DL_NOW
10222# else
10223# define LT_DLLAZY_OR_NOW 0
10224# endif
10225# endif
10226# endif
10227# endif
10228#endif
10229
10230#ifdef __cplusplus
10231extern "C" void exit (int);
10232#endif
10233
10234void fnord() { int i=42;}
10235int main ()
10236{
10237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10238 int status = $lt_dlunknown;
10239
10240 if (self)
10241 {
10242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10244 /* dlclose (self); */
10245 }
10246 else
10247 puts (dlerror ());
10248
10249 exit (status);
10250}
10251EOF
10252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10253 (eval $ac_link) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10257 (./conftest; exit; ) >&5 2>/dev/null
10258 lt_status=$?
10259 case x$lt_status in
10260 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10261 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10262 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10263 esac
10264 else :
10265 # compilation failed
10266 lt_cv_dlopen_self=no
10267 fi
10268fi
10269rm -fr conftest*
10270
10271
10272fi
64ff59ba 10273{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10274echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10275
10276 if test "x$lt_cv_dlopen_self" = xyes; then
10277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 10278 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10279echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10280if test "${lt_cv_dlopen_self_static+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282else
10283 if test "$cross_compiling" = yes; then :
10284 lt_cv_dlopen_self_static=cross
10285else
10286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10287 lt_status=$lt_dlunknown
10288 cat > conftest.$ac_ext <<EOF
0fde1ce3 10289#line 10289 "configure"
d9898ee8 10290#include "confdefs.h"
10291
10292#if HAVE_DLFCN_H
10293#include <dlfcn.h>
10294#endif
10295
10296#include <stdio.h>
10297
10298#ifdef RTLD_GLOBAL
10299# define LT_DLGLOBAL RTLD_GLOBAL
10300#else
10301# ifdef DL_GLOBAL
10302# define LT_DLGLOBAL DL_GLOBAL
10303# else
10304# define LT_DLGLOBAL 0
10305# endif
10306#endif
10307
10308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10309 find out it does not work in some platform. */
10310#ifndef LT_DLLAZY_OR_NOW
10311# ifdef RTLD_LAZY
10312# define LT_DLLAZY_OR_NOW RTLD_LAZY
10313# else
10314# ifdef DL_LAZY
10315# define LT_DLLAZY_OR_NOW DL_LAZY
10316# else
10317# ifdef RTLD_NOW
10318# define LT_DLLAZY_OR_NOW RTLD_NOW
10319# else
10320# ifdef DL_NOW
10321# define LT_DLLAZY_OR_NOW DL_NOW
10322# else
10323# define LT_DLLAZY_OR_NOW 0
10324# endif
10325# endif
10326# endif
10327# endif
10328#endif
10329
10330#ifdef __cplusplus
10331extern "C" void exit (int);
10332#endif
10333
10334void fnord() { int i=42;}
10335int main ()
10336{
10337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10338 int status = $lt_dlunknown;
10339
10340 if (self)
10341 {
10342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10344 /* dlclose (self); */
10345 }
10346 else
10347 puts (dlerror ());
10348
10349 exit (status);
10350}
10351EOF
10352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10353 (eval $ac_link) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10357 (./conftest; exit; ) >&5 2>/dev/null
10358 lt_status=$?
10359 case x$lt_status in
10360 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10361 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10362 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10363 esac
10364 else :
10365 # compilation failed
10366 lt_cv_dlopen_self_static=no
10367 fi
10368fi
10369rm -fr conftest*
10370
10371
10372fi
64ff59ba 10373{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10374echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10375 fi
10376
10377 CPPFLAGS="$save_CPPFLAGS"
10378 LDFLAGS="$save_LDFLAGS"
10379 LIBS="$save_LIBS"
10380 ;;
10381 esac
10382
10383 case $lt_cv_dlopen_self in
10384 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10385 *) enable_dlopen_self=unknown ;;
10386 esac
10387
10388 case $lt_cv_dlopen_self_static in
10389 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10390 *) enable_dlopen_self_static=unknown ;;
10391 esac
10392fi
10393
10394
10395# Report which library types will actually be built
64ff59ba 10396{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10397echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10398{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10399echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10400
64ff59ba 10401{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10402echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10403test "$can_build_shared" = "no" && enable_shared=no
10404
10405# On AIX, shared libraries and static libraries use the same namespace, and
10406# are all built from PIC.
10407case $host_os in
10408aix3*)
10409 test "$enable_shared" = yes && enable_static=no
10410 if test -n "$RANLIB"; then
10411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10412 postinstall_cmds='$RANLIB $lib'
10413 fi
10414 ;;
10415
10416aix4* | aix5*)
10417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10418 test "$enable_shared" = yes && enable_static=no
10419 fi
10420 ;;
10421esac
64ff59ba 10422{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10423echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10424
64ff59ba 10425{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10426echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10427# Make sure either enable_shared or enable_static is yes.
10428test "$enable_shared" = yes || enable_static=yes
64ff59ba 10429{ echo "$as_me:$LINENO: result: $enable_static" >&5
10430echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10431
10432# The else clause should only fire when bootstrapping the
10433# libtool distribution, otherwise you forgot to ship ltmain.sh
10434# with your package, and you will get complaints that there are
10435# no rules to generate ltmain.sh.
10436if test -f "$ltmain"; then
10437 # See if we are running on zsh, and set the options which allow our commands through
10438 # without removal of \ escapes.
10439 if test -n "${ZSH_VERSION+set}" ; then
10440 setopt NO_GLOB_SUBST
10441 fi
10442 # Now quote all the things that may contain metacharacters while being
10443 # careful not to overquote the AC_SUBSTed values. We take copies of the
10444 # variables and quote the copies for generation of the libtool script.
10445 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10446 SED SHELL STRIP \
10447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10449 deplibs_check_method reload_flag reload_cmds need_locks \
10450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10451 lt_cv_sys_global_symbol_to_c_name_address \
10452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10453 old_postinstall_cmds old_postuninstall_cmds \
10454 compiler \
10455 CC \
10456 LD \
10457 lt_prog_compiler_wl \
10458 lt_prog_compiler_pic \
10459 lt_prog_compiler_static \
10460 lt_prog_compiler_no_builtin_flag \
10461 export_dynamic_flag_spec \
10462 thread_safe_flag_spec \
10463 whole_archive_flag_spec \
10464 enable_shared_with_static_runtimes \
10465 old_archive_cmds \
10466 old_archive_from_new_cmds \
10467 predep_objects \
10468 postdep_objects \
10469 predeps \
10470 postdeps \
10471 compiler_lib_search_path \
10472 archive_cmds \
10473 archive_expsym_cmds \
10474 postinstall_cmds \
10475 postuninstall_cmds \
10476 old_archive_from_expsyms_cmds \
10477 allow_undefined_flag \
10478 no_undefined_flag \
10479 export_symbols_cmds \
10480 hardcode_libdir_flag_spec \
10481 hardcode_libdir_flag_spec_ld \
10482 hardcode_libdir_separator \
10483 hardcode_automatic \
10484 module_cmds \
10485 module_expsym_cmds \
10486 lt_cv_prog_compiler_c_o \
0fde1ce3 10487 fix_srcfile_path \
d9898ee8 10488 exclude_expsyms \
10489 include_expsyms; do
10490
10491 case $var in
10492 old_archive_cmds | \
10493 old_archive_from_new_cmds | \
10494 archive_cmds | \
10495 archive_expsym_cmds | \
10496 module_cmds | \
10497 module_expsym_cmds | \
10498 old_archive_from_expsyms_cmds | \
10499 export_symbols_cmds | \
10500 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10501 postinstall_cmds | postuninstall_cmds | \
10502 old_postinstall_cmds | old_postuninstall_cmds | \
10503 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10504 # Double-quote double-evaled strings.
10505 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10506 ;;
10507 *)
10508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10509 ;;
10510 esac
10511 done
10512
10513 case $lt_echo in
10514 *'\$0 --fallback-echo"')
10515 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10516 ;;
10517 esac
10518
10519cfgfile="${ofile}T"
10520 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10521 $rm -f "$cfgfile"
10522 { echo "$as_me:$LINENO: creating $ofile" >&5
10523echo "$as_me: creating $ofile" >&6;}
10524
10525 cat <<__EOF__ >> "$cfgfile"
10526#! $SHELL
10527
10528# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10529# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10530# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10531#
0fde1ce3 10532# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10533# Free Software Foundation, Inc.
10534#
10535# This file is part of GNU Libtool:
10536# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10537#
10538# This program is free software; you can redistribute it and/or modify
10539# it under the terms of the GNU General Public License as published by
10540# the Free Software Foundation; either version 2 of the License, or
10541# (at your option) any later version.
10542#
10543# This program is distributed in the hope that it will be useful, but
10544# WITHOUT ANY WARRANTY; without even the implied warranty of
10545# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10546# General Public License for more details.
10547#
10548# You should have received a copy of the GNU General Public License
10549# along with this program; if not, write to the Free Software
10550# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10551#
10552# As a special exception to the GNU General Public License, if you
10553# distribute this file as part of a program that contains a
10554# configuration script generated by Autoconf, you may include it under
10555# the same distribution terms that you use for the rest of that program.
10556
10557# A sed program that does not truncate output.
10558SED=$lt_SED
10559
10560# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10561Xsed="$SED -e 1s/^X//"
10562
10563# The HP-UX ksh and POSIX shell print the target directory to stdout
10564# if CDPATH is set.
10565(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10566
10567# The names of the tagged configurations supported by this script.
10568available_tags=
10569
10570# ### BEGIN LIBTOOL CONFIG
10571
10572# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10573
10574# Shell to use when invoking shell scripts.
10575SHELL=$lt_SHELL
10576
10577# Whether or not to build shared libraries.
10578build_libtool_libs=$enable_shared
10579
10580# Whether or not to build static libraries.
10581build_old_libs=$enable_static
10582
10583# Whether or not to add -lc for building shared libraries.
10584build_libtool_need_lc=$archive_cmds_need_lc
10585
10586# Whether or not to disallow shared libs when runtime libs are static
10587allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10588
10589# Whether or not to optimize for fast installation.
10590fast_install=$enable_fast_install
10591
10592# The host system.
10593host_alias=$host_alias
10594host=$host
10595host_os=$host_os
10596
10597# The build system.
10598build_alias=$build_alias
10599build=$build
10600build_os=$build_os
10601
10602# An echo program that does not interpret backslashes.
10603echo=$lt_echo
10604
10605# The archiver.
10606AR=$lt_AR
10607AR_FLAGS=$lt_AR_FLAGS
10608
10609# A C compiler.
10610LTCC=$lt_LTCC
10611
10612# LTCC compiler flags.
10613LTCFLAGS=$lt_LTCFLAGS
10614
10615# A language-specific compiler.
10616CC=$lt_compiler
10617
10618# Is the compiler the GNU C compiler?
10619with_gcc=$GCC
10620
d9898ee8 10621# An ERE matcher.
10622EGREP=$lt_EGREP
10623
10624# The linker used to build libraries.
10625LD=$lt_LD
10626
10627# Whether we need hard or soft links.
10628LN_S=$lt_LN_S
10629
10630# A BSD-compatible nm program.
10631NM=$lt_NM
10632
10633# A symbol stripping program
10634STRIP=$lt_STRIP
10635
10636# Used to examine libraries when file_magic_cmd begins "file"
10637MAGIC_CMD=$MAGIC_CMD
10638
10639# Used on cygwin: DLL creation program.
10640DLLTOOL="$DLLTOOL"
10641
10642# Used on cygwin: object dumper.
10643OBJDUMP="$OBJDUMP"
10644
10645# Used on cygwin: assembler.
10646AS="$AS"
10647
10648# The name of the directory that contains temporary libtool files.
10649objdir=$objdir
10650
10651# How to create reloadable object files.
10652reload_flag=$lt_reload_flag
10653reload_cmds=$lt_reload_cmds
10654
10655# How to pass a linker flag through the compiler.
10656wl=$lt_lt_prog_compiler_wl
10657
10658# Object file suffix (normally "o").
10659objext="$ac_objext"
10660
10661# Old archive suffix (normally "a").
10662libext="$libext"
10663
10664# Shared library suffix (normally ".so").
10665shrext_cmds='$shrext_cmds'
10666
10667# Executable file suffix (normally "").
10668exeext="$exeext"
10669
10670# Additional compiler flags for building library objects.
10671pic_flag=$lt_lt_prog_compiler_pic
10672pic_mode=$pic_mode
10673
10674# What is the maximum length of a command?
10675max_cmd_len=$lt_cv_sys_max_cmd_len
10676
10677# Does compiler simultaneously support -c and -o options?
10678compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10679
10680# Must we lock files when doing compilation?
10681need_locks=$lt_need_locks
10682
10683# Do we need the lib prefix for modules?
10684need_lib_prefix=$need_lib_prefix
10685
10686# Do we need a version for libraries?
10687need_version=$need_version
10688
10689# Whether dlopen is supported.
10690dlopen_support=$enable_dlopen
10691
10692# Whether dlopen of programs is supported.
10693dlopen_self=$enable_dlopen_self
10694
10695# Whether dlopen of statically linked programs is supported.
10696dlopen_self_static=$enable_dlopen_self_static
10697
10698# Compiler flag to prevent dynamic linking.
10699link_static_flag=$lt_lt_prog_compiler_static
10700
10701# Compiler flag to turn off builtin functions.
10702no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10703
10704# Compiler flag to allow reflexive dlopens.
10705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10706
10707# Compiler flag to generate shared objects directly from archives.
10708whole_archive_flag_spec=$lt_whole_archive_flag_spec
10709
10710# Compiler flag to generate thread-safe objects.
10711thread_safe_flag_spec=$lt_thread_safe_flag_spec
10712
10713# Library versioning type.
10714version_type=$version_type
10715
10716# Format of library name prefix.
10717libname_spec=$lt_libname_spec
10718
10719# List of archive names. First name is the real one, the rest are links.
10720# The last name is the one that the linker finds with -lNAME.
10721library_names_spec=$lt_library_names_spec
10722
10723# The coded name of the library, if different from the real name.
10724soname_spec=$lt_soname_spec
10725
10726# Commands used to build and install an old-style archive.
10727RANLIB=$lt_RANLIB
10728old_archive_cmds=$lt_old_archive_cmds
10729old_postinstall_cmds=$lt_old_postinstall_cmds
10730old_postuninstall_cmds=$lt_old_postuninstall_cmds
10731
10732# Create an old-style archive from a shared archive.
10733old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10734
10735# Create a temporary old-style archive to link instead of a shared archive.
10736old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10737
10738# Commands used to build and install a shared archive.
10739archive_cmds=$lt_archive_cmds
10740archive_expsym_cmds=$lt_archive_expsym_cmds
10741postinstall_cmds=$lt_postinstall_cmds
10742postuninstall_cmds=$lt_postuninstall_cmds
10743
10744# Commands used to build a loadable module (assumed same as above if empty)
10745module_cmds=$lt_module_cmds
10746module_expsym_cmds=$lt_module_expsym_cmds
10747
10748# Commands to strip libraries.
10749old_striplib=$lt_old_striplib
10750striplib=$lt_striplib
10751
10752# Dependencies to place before the objects being linked to create a
10753# shared library.
64ff59ba 10754predep_objects=$lt_predep_objects
d9898ee8 10755
10756# Dependencies to place after the objects being linked to create a
10757# shared library.
64ff59ba 10758postdep_objects=$lt_postdep_objects
d9898ee8 10759
10760# Dependencies to place before the objects being linked to create a
10761# shared library.
10762predeps=$lt_predeps
10763
10764# Dependencies to place after the objects being linked to create a
10765# shared library.
10766postdeps=$lt_postdeps
10767
10768# The library search path used internally by the compiler when linking
10769# a shared library.
64ff59ba 10770compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10771
10772# Method to check whether dependent libraries are shared objects.
10773deplibs_check_method=$lt_deplibs_check_method
10774
10775# Command to use when deplibs_check_method == file_magic.
10776file_magic_cmd=$lt_file_magic_cmd
10777
10778# Flag that allows shared libraries with undefined symbols to be built.
10779allow_undefined_flag=$lt_allow_undefined_flag
10780
10781# Flag that forces no undefined symbols.
10782no_undefined_flag=$lt_no_undefined_flag
10783
10784# Commands used to finish a libtool library installation in a directory.
10785finish_cmds=$lt_finish_cmds
10786
10787# Same as above, but a single script fragment to be evaled but not shown.
10788finish_eval=$lt_finish_eval
10789
10790# Take the output of nm and produce a listing of raw symbols and C names.
10791global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10792
10793# Transform the output of nm in a proper C declaration
10794global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10795
10796# Transform the output of nm in a C name address pair
10797global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10798
10799# This is the shared library runtime path variable.
10800runpath_var=$runpath_var
10801
10802# This is the shared library path variable.
10803shlibpath_var=$shlibpath_var
10804
10805# Is shlibpath searched before the hard-coded library search path?
10806shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10807
10808# How to hardcode a shared library path into an executable.
10809hardcode_action=$hardcode_action
10810
10811# Whether we should hardcode library paths into libraries.
10812hardcode_into_libs=$hardcode_into_libs
10813
10814# Flag to hardcode \$libdir into a binary during linking.
10815# This must work even if \$libdir does not exist.
10816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10817
10818# If ld is used when linking, flag to hardcode \$libdir into
10819# a binary during linking. This must work even if \$libdir does
10820# not exist.
10821hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10822
10823# Whether we need a single -rpath flag with a separated argument.
10824hardcode_libdir_separator=$lt_hardcode_libdir_separator
10825
10826# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10827# resulting binary.
10828hardcode_direct=$hardcode_direct
10829
10830# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10831# resulting binary.
10832hardcode_minus_L=$hardcode_minus_L
10833
10834# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10835# the resulting binary.
10836hardcode_shlibpath_var=$hardcode_shlibpath_var
10837
10838# Set to yes if building a shared library automatically hardcodes DIR into the library
10839# and all subsequent libraries and executables linked against it.
10840hardcode_automatic=$hardcode_automatic
10841
10842# Variables whose values should be saved in libtool wrapper scripts and
10843# restored at relink time.
10844variables_saved_for_relink="$variables_saved_for_relink"
10845
10846# Whether libtool must link a program against all its dependency libraries.
10847link_all_deplibs=$link_all_deplibs
10848
10849# Compile-time system search path for libraries
64ff59ba 10850sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10851
10852# Run-time system search path for libraries
10853sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10854
10855# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 10856fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10857
10858# Set to yes if exported symbols are required.
10859always_export_symbols=$always_export_symbols
10860
10861# The commands to list exported symbols.
10862export_symbols_cmds=$lt_export_symbols_cmds
10863
10864# The commands to extract the exported symbol list from a shared archive.
10865extract_expsyms_cmds=$lt_extract_expsyms_cmds
10866
10867# Symbols that should not be listed in the preloaded symbols.
10868exclude_expsyms=$lt_exclude_expsyms
10869
10870# Symbols that must always be exported.
10871include_expsyms=$lt_include_expsyms
10872
10873# ### END LIBTOOL CONFIG
10874
10875__EOF__
10876
10877
10878 case $host_os in
10879 aix3*)
10880 cat <<\EOF >> "$cfgfile"
10881
10882# AIX sometimes has problems with the GCC collect2 program. For some
10883# reason, if we set the COLLECT_NAMES environment variable, the problems
10884# vanish in a puff of smoke.
10885if test "X${COLLECT_NAMES+set}" != Xset; then
10886 COLLECT_NAMES=
10887 export COLLECT_NAMES
10888fi
10889EOF
10890 ;;
10891 esac
10892
10893 # We use sed instead of cat because bash on DJGPP gets confused if
10894 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10895 # text mode, it properly converts lines to CR/LF. This bash problem
10896 # is reportedly fixed, but why not run on old versions too?
10897 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10898
10899 mv -f "$cfgfile" "$ofile" || \
10900 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10901 chmod +x "$ofile"
10902
10903else
10904 # If there is no Makefile yet, we rely on a make rule to execute
10905 # `config.status --recheck' to rerun these tests and create the
10906 # libtool script then.
10907 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10908 if test -f "$ltmain_in"; then
10909 test -f Makefile && make "$ltmain"
10910 fi
10911fi
10912
10913
10914ac_ext=c
10915ac_cpp='$CPP $CPPFLAGS'
10916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10918ac_compiler_gnu=$ac_cv_c_compiler_gnu
10919
10920CC="$lt_save_CC"
10921
10922
64ff59ba 10923# Check whether --with-tags was given.
d9898ee8 10924if test "${with_tags+set}" = set; then
64ff59ba 10925 withval=$with_tags; tagnames="$withval"
10926fi
10927
d9898ee8 10928
10929if test -f "$ltmain" && test -n "$tagnames"; then
10930 if test ! -f "${ofile}"; then
10931 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10932echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10933 fi
10934
10935 if test -z "$LTCC"; then
10936 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10937 if test -z "$LTCC"; then
10938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10939echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10940 else
10941 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10942echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10943 fi
10944 fi
10945 if test -z "$LTCFLAGS"; then
10946 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10947 fi
10948
10949 # Extract list of available tagged configurations in $ofile.
10950 # Note that this assumes the entire list is on one line.
10951 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10952
10953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10954 for tagname in $tagnames; do
10955 IFS="$lt_save_ifs"
10956 # Check whether tagname contains only valid characters
10957 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10958 "") ;;
10959 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10960echo "$as_me: error: invalid tag name: $tagname" >&2;}
10961 { (exit 1); exit 1; }; }
10962 ;;
10963 esac
10964
10965 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10966 then
10967 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10968echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10969 { (exit 1); exit 1; }; }
10970 fi
10971
10972 # Update the list of available tags.
10973 if test -n "$tagname"; then
10974 echo appending configuration tag \"$tagname\" to $ofile
10975
10976 case $tagname in
10977 CXX)
10978 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10979 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10980 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10981 ac_ext=cpp
d9898ee8 10982ac_cpp='$CXXCPP $CPPFLAGS'
10983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10986
10987
10988
10989
10990archive_cmds_need_lc_CXX=no
10991allow_undefined_flag_CXX=
10992always_export_symbols_CXX=no
10993archive_expsym_cmds_CXX=
10994export_dynamic_flag_spec_CXX=
10995hardcode_direct_CXX=no
10996hardcode_libdir_flag_spec_CXX=
10997hardcode_libdir_flag_spec_ld_CXX=
10998hardcode_libdir_separator_CXX=
10999hardcode_minus_L_CXX=no
11000hardcode_shlibpath_var_CXX=unsupported
11001hardcode_automatic_CXX=no
11002module_cmds_CXX=
11003module_expsym_cmds_CXX=
11004link_all_deplibs_CXX=unknown
11005old_archive_cmds_CXX=$old_archive_cmds
11006no_undefined_flag_CXX=
11007whole_archive_flag_spec_CXX=
11008enable_shared_with_static_runtimes_CXX=no
11009
11010# Dependencies to place before and after the object being linked:
11011predep_objects_CXX=
11012postdep_objects_CXX=
11013predeps_CXX=
11014postdeps_CXX=
11015compiler_lib_search_path_CXX=
11016
11017# Source file extension for C++ test sources.
11018ac_ext=cpp
11019
11020# Object file extension for compiled C++ test sources.
11021objext=o
11022objext_CXX=$objext
11023
11024# Code to be used in simple compile tests
0fde1ce3 11025lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 11026
11027# Code to be used in simple link tests
0fde1ce3 11028lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 11029
11030# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11031
11032# If no C compiler was specified, use CC.
11033LTCC=${LTCC-"$CC"}
11034
11035# If no C compiler flags were specified, use CFLAGS.
11036LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11037
11038# Allow CC to be a program name with arguments.
11039compiler=$CC
11040
11041
11042# save warnings/boilerplate of simple test code
11043ac_outfile=conftest.$ac_objext
0fde1ce3 11044echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 11045eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11046_lt_compiler_boilerplate=`cat conftest.err`
11047$rm conftest*
11048
11049ac_outfile=conftest.$ac_objext
0fde1ce3 11050echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 11051eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11052_lt_linker_boilerplate=`cat conftest.err`
11053$rm conftest*
11054
11055
11056# Allow CC to be a program name with arguments.
11057lt_save_CC=$CC
11058lt_save_LD=$LD
11059lt_save_GCC=$GCC
11060GCC=$GXX
11061lt_save_with_gnu_ld=$with_gnu_ld
11062lt_save_path_LD=$lt_cv_path_LD
11063if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11065else
11066 $as_unset lt_cv_prog_gnu_ld
11067fi
11068if test -n "${lt_cv_path_LDCXX+set}"; then
11069 lt_cv_path_LD=$lt_cv_path_LDCXX
11070else
11071 $as_unset lt_cv_path_LD
11072fi
11073test -z "${LDCXX+set}" || LD=$LDCXX
11074CC=${CXX-"c++"}
11075compiler=$CC
11076compiler_CXX=$CC
11077for cc_temp in $compiler""; do
11078 case $cc_temp in
11079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11081 \-*) ;;
11082 *) break;;
11083 esac
11084done
11085cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11086
11087
11088# We don't want -fno-exception wen compiling C++ code, so set the
11089# no_builtin_flag separately
11090if test "$GXX" = yes; then
11091 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11092else
11093 lt_prog_compiler_no_builtin_flag_CXX=
11094fi
11095
11096if test "$GXX" = yes; then
11097 # Set up default GNU C++ configuration
11098
11099
64ff59ba 11100# Check whether --with-gnu-ld was given.
d9898ee8 11101if test "${with_gnu_ld+set}" = set; then
64ff59ba 11102 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 11103else
11104 with_gnu_ld=no
64ff59ba 11105fi
11106
d9898ee8 11107ac_prog=ld
11108if test "$GCC" = yes; then
11109 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 11110 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11111echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 11112 case $host in
11113 *-*-mingw*)
11114 # gcc leaves a trailing carriage return which upsets mingw
11115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11116 *)
11117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11118 esac
11119 case $ac_prog in
11120 # Accept absolute paths.
11121 [\\/]* | ?:[\\/]*)
11122 re_direlt='/[^/][^/]*/\.\./'
11123 # Canonicalize the pathname of ld
11124 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11125 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11126 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11127 done
11128 test -z "$LD" && LD="$ac_prog"
11129 ;;
11130 "")
11131 # If it fails, then pretend we aren't using GCC.
11132 ac_prog=ld
11133 ;;
11134 *)
11135 # If it is relative, then search for the first ld in PATH.
11136 with_gnu_ld=unknown
11137 ;;
11138 esac
11139elif test "$with_gnu_ld" = yes; then
64ff59ba 11140 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11141echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 11142else
64ff59ba 11143 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11144echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 11145fi
11146if test "${lt_cv_path_LD+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149 if test -z "$LD"; then
11150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11151 for ac_dir in $PATH; do
11152 IFS="$lt_save_ifs"
11153 test -z "$ac_dir" && ac_dir=.
11154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11155 lt_cv_path_LD="$ac_dir/$ac_prog"
11156 # Check to see if the program is GNU ld. I'd rather use --version,
11157 # but apparently some variants of GNU ld only accept -v.
11158 # Break only if it was the GNU/non-GNU ld that we prefer.
11159 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11160 *GNU* | *'with BFD'*)
11161 test "$with_gnu_ld" != no && break
11162 ;;
11163 *)
11164 test "$with_gnu_ld" != yes && break
11165 ;;
11166 esac
11167 fi
11168 done
11169 IFS="$lt_save_ifs"
11170else
11171 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11172fi
11173fi
11174
11175LD="$lt_cv_path_LD"
11176if test -n "$LD"; then
64ff59ba 11177 { echo "$as_me:$LINENO: result: $LD" >&5
11178echo "${ECHO_T}$LD" >&6; }
d9898ee8 11179else
64ff59ba 11180 { echo "$as_me:$LINENO: result: no" >&5
11181echo "${ECHO_T}no" >&6; }
d9898ee8 11182fi
11183test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11184echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11185 { (exit 1); exit 1; }; }
64ff59ba 11186{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11187echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 11188if test "${lt_cv_prog_gnu_ld+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11192case `$LD -v 2>&1 </dev/null` in
11193*GNU* | *'with BFD'*)
11194 lt_cv_prog_gnu_ld=yes
11195 ;;
11196*)
11197 lt_cv_prog_gnu_ld=no
11198 ;;
11199esac
11200fi
64ff59ba 11201{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11202echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 11203with_gnu_ld=$lt_cv_prog_gnu_ld
11204
11205
11206
11207 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11208 # archiving commands below assume that GNU ld is being used.
11209 if test "$with_gnu_ld" = yes; then
11210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11211 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11212
11213 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11215
11216 # If archive_cmds runs LD, not CC, wlarc should be empty
11217 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11218 # investigate it a little bit more. (MM)
11219 wlarc='${wl}'
11220
11221 # ancient GNU ld didn't support --whole-archive et. al.
11222 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11223 grep 'no-whole-archive' > /dev/null; then
11224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11225 else
11226 whole_archive_flag_spec_CXX=
11227 fi
11228 else
11229 with_gnu_ld=no
11230 wlarc=
11231
11232 # A generic and very simple default shared library creation
11233 # command for GNU C++ for the case where it uses the native
11234 # linker, instead of GNU ld. If possible, this setting should
11235 # overridden to take advantage of the native linker features on
11236 # the platform it is being used on.
11237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11238 fi
11239
11240 # Commands to make compiler produce verbose output that lists
11241 # what "hidden" libraries, object files and flags are used when
11242 # linking a shared library.
11243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11244
11245else
11246 GXX=no
11247 with_gnu_ld=no
11248 wlarc=
11249fi
11250
11251# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 11252{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11253echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 11254ld_shlibs_CXX=yes
11255case $host_os in
11256 aix3*)
11257 # FIXME: insert proper C++ library support
11258 ld_shlibs_CXX=no
11259 ;;
11260 aix4* | aix5*)
11261 if test "$host_cpu" = ia64; then
11262 # On IA64, the linker does run time linking by default, so we don't
11263 # have to do anything special.
11264 aix_use_runtimelinking=no
11265 exp_sym_flag='-Bexport'
11266 no_entry_flag=""
11267 else
11268 aix_use_runtimelinking=no
11269
11270 # Test if we are trying to use run time linking or normal
11271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11272 # need to do runtime linking.
11273 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11274 for ld_flag in $LDFLAGS; do
11275 case $ld_flag in
11276 *-brtl*)
11277 aix_use_runtimelinking=yes
11278 break
11279 ;;
11280 esac
11281 done
11282 ;;
11283 esac
11284
11285 exp_sym_flag='-bexport'
11286 no_entry_flag='-bnoentry'
11287 fi
11288
11289 # When large executables or shared objects are built, AIX ld can
11290 # have problems creating the table of contents. If linking a library
11291 # or program results in "error TOC overflow" add -mminimal-toc to
11292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11294
11295 archive_cmds_CXX=''
11296 hardcode_direct_CXX=yes
11297 hardcode_libdir_separator_CXX=':'
11298 link_all_deplibs_CXX=yes
11299
11300 if test "$GXX" = yes; then
11301 case $host_os in aix4.[012]|aix4.[012].*)
11302 # We only want to do this on AIX 4.2 and lower, the check
11303 # below for broken collect2 doesn't work under 4.3+
11304 collect2name=`${CC} -print-prog-name=collect2`
11305 if test -f "$collect2name" && \
11306 strings "$collect2name" | grep resolve_lib_name >/dev/null
11307 then
11308 # We have reworked collect2
0fde1ce3 11309 :
d9898ee8 11310 else
11311 # We have old collect2
11312 hardcode_direct_CXX=unsupported
11313 # It fails to find uninstalled libraries when the uninstalled
11314 # path is not listed in the libpath. Setting hardcode_minus_L
11315 # to unsupported forces relinking
11316 hardcode_minus_L_CXX=yes
11317 hardcode_libdir_flag_spec_CXX='-L$libdir'
11318 hardcode_libdir_separator_CXX=
11319 fi
11320 ;;
11321 esac
11322 shared_flag='-shared'
11323 if test "$aix_use_runtimelinking" = yes; then
11324 shared_flag="$shared_flag "'${wl}-G'
11325 fi
11326 else
11327 # not using gcc
11328 if test "$host_cpu" = ia64; then
11329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11330 # chokes on -Wl,-G. The following line is correct:
11331 shared_flag='-G'
11332 else
11333 if test "$aix_use_runtimelinking" = yes; then
11334 shared_flag='${wl}-G'
11335 else
11336 shared_flag='${wl}-bM:SRE'
11337 fi
11338 fi
11339 fi
11340
11341 # It seems that -bexpall does not export symbols beginning with
11342 # underscore (_), so it is better to generate a list of symbols to export.
11343 always_export_symbols_CXX=yes
11344 if test "$aix_use_runtimelinking" = yes; then
11345 # Warning - without using the other runtime loading flags (-brtl),
11346 # -berok will link without error, but may produce a broken library.
11347 allow_undefined_flag_CXX='-berok'
11348 # Determine the default libpath from the value encoded in an empty executable.
11349 cat >conftest.$ac_ext <<_ACEOF
11350/* confdefs.h. */
11351_ACEOF
11352cat confdefs.h >>conftest.$ac_ext
11353cat >>conftest.$ac_ext <<_ACEOF
11354/* end confdefs.h. */
11355
11356int
11357main ()
11358{
11359
11360 ;
11361 return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11365if { (ac_try="$ac_link"
11366case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369esac
11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_link") 2>conftest.er1
d9898ee8 11372 ac_status=$?
11373 grep -v '^ *+' conftest.er1 >conftest.err
11374 rm -f conftest.er1
11375 cat conftest.err >&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11377 (exit $ac_status); } && {
11378 test -z "$ac_cxx_werror_flag" ||
11379 test ! -s conftest.err
11380 } && test -s conftest$ac_exeext &&
11381 $as_test_x conftest$ac_exeext; then
d9898ee8 11382
0fde1ce3 11383lt_aix_libpath_sed='
11384 /Import File Strings/,/^$/ {
11385 /^0/ {
11386 s/^0 *\(.*\)$/\1/
11387 p
11388 }
11389 }'
11390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11391# Check for a 64-bit object if we didn't find anything.
0fde1ce3 11392if test -z "$aix_libpath"; then
11393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11394fi
d9898ee8 11395else
11396 echo "$as_me: failed program was:" >&5
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
64ff59ba 11399
d9898ee8 11400fi
64ff59ba 11401
11402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11403 conftest$ac_exeext conftest.$ac_ext
11404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11405
11406 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11407
11408 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11409 else
11410 if test "$host_cpu" = ia64; then
11411 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11412 allow_undefined_flag_CXX="-z nodefs"
11413 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11414 else
11415 # Determine the default libpath from the value encoded in an empty executable.
11416 cat >conftest.$ac_ext <<_ACEOF
11417/* confdefs.h. */
11418_ACEOF
11419cat confdefs.h >>conftest.$ac_ext
11420cat >>conftest.$ac_ext <<_ACEOF
11421/* end confdefs.h. */
11422
11423int
11424main ()
11425{
11426
11427 ;
11428 return 0;
11429}
11430_ACEOF
11431rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11432if { (ac_try="$ac_link"
11433case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436esac
11437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_link") 2>conftest.er1
d9898ee8 11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11444 (exit $ac_status); } && {
11445 test -z "$ac_cxx_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext &&
11448 $as_test_x conftest$ac_exeext; then
d9898ee8 11449
0fde1ce3 11450lt_aix_libpath_sed='
11451 /Import File Strings/,/^$/ {
11452 /^0/ {
11453 s/^0 *\(.*\)$/\1/
11454 p
11455 }
11456 }'
11457aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11458# Check for a 64-bit object if we didn't find anything.
0fde1ce3 11459if test -z "$aix_libpath"; then
11460 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11461fi
d9898ee8 11462else
11463 echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
64ff59ba 11466
d9898ee8 11467fi
64ff59ba 11468
11469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11470 conftest$ac_exeext conftest.$ac_ext
11471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11472
11473 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11474 # Warning - without using the other run time loading flags,
11475 # -berok will link without error, but may produce a broken library.
11476 no_undefined_flag_CXX=' ${wl}-bernotok'
11477 allow_undefined_flag_CXX=' ${wl}-berok'
11478 # Exported symbols can be pulled into shared objects from archives
11479 whole_archive_flag_spec_CXX='$convenience'
11480 archive_cmds_need_lc_CXX=yes
11481 # This is similar to how AIX traditionally builds its shared libraries.
11482 archive_expsym_cmds_CXX="\$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'
11483 fi
11484 fi
11485 ;;
11486
11487 beos*)
11488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11489 allow_undefined_flag_CXX=unsupported
11490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11491 # support --undefined. This deserves some investigation. FIXME
11492 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11493 else
11494 ld_shlibs_CXX=no
11495 fi
11496 ;;
11497
11498 chorus*)
11499 case $cc_basename in
11500 *)
11501 # FIXME: insert proper C++ library support
11502 ld_shlibs_CXX=no
11503 ;;
11504 esac
11505 ;;
11506
11507 cygwin* | mingw* | pw32*)
11508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11509 # as there is no search path for DLLs.
11510 hardcode_libdir_flag_spec_CXX='-L$libdir'
11511 allow_undefined_flag_CXX=unsupported
11512 always_export_symbols_CXX=no
11513 enable_shared_with_static_runtimes_CXX=yes
11514
11515 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11516 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11517 # If the export-symbols file already is a .def file (1st line
11518 # is EXPORTS), use it as is; otherwise, prepend...
11519 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11520 cp $export_symbols $output_objdir/$soname.def;
11521 else
11522 echo EXPORTS > $output_objdir/$soname.def;
11523 cat $export_symbols >> $output_objdir/$soname.def;
11524 fi~
11525 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11526 else
11527 ld_shlibs_CXX=no
11528 fi
11529 ;;
11530 darwin* | rhapsody*)
11531 case $host_os in
11532 rhapsody* | darwin1.[012])
11533 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11534 ;;
11535 *) # Darwin 1.3 on
11536 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11537 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11538 else
11539 case ${MACOSX_DEPLOYMENT_TARGET} in
11540 10.[012])
11541 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11542 ;;
11543 10.*)
11544 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11545 ;;
11546 esac
11547 fi
11548 ;;
11549 esac
11550 archive_cmds_need_lc_CXX=no
11551 hardcode_direct_CXX=no
11552 hardcode_automatic_CXX=yes
11553 hardcode_shlibpath_var_CXX=unsupported
11554 whole_archive_flag_spec_CXX=''
11555 link_all_deplibs_CXX=yes
11556
11557 if test "$GXX" = yes ; then
11558 lt_int_apple_cc_single_mod=no
11559 output_verbose_link_cmd='echo'
11560 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11561 lt_int_apple_cc_single_mod=yes
11562 fi
11563 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11564 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11565 else
11566 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11567 fi
11568 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11569 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11570 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11571 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11572 else
11573 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11574 fi
11575 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11576 else
11577 case $cc_basename in
11578 xlc*)
11579 output_verbose_link_cmd='echo'
0fde1ce3 11580 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 11581 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 11583 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 11584 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11585 ;;
11586 *)
11587 ld_shlibs_CXX=no
11588 ;;
11589 esac
11590 fi
11591 ;;
11592
11593 dgux*)
11594 case $cc_basename in
11595 ec++*)
11596 # FIXME: insert proper C++ library support
11597 ld_shlibs_CXX=no
11598 ;;
11599 ghcx*)
11600 # Green Hills C++ Compiler
11601 # FIXME: insert proper C++ library support
11602 ld_shlibs_CXX=no
11603 ;;
11604 *)
11605 # FIXME: insert proper C++ library support
11606 ld_shlibs_CXX=no
11607 ;;
11608 esac
11609 ;;
11610 freebsd[12]*)
11611 # C++ shared libraries reported to be fairly broken before switch to ELF
11612 ld_shlibs_CXX=no
11613 ;;
11614 freebsd-elf*)
11615 archive_cmds_need_lc_CXX=no
11616 ;;
0fde1ce3 11617 freebsd* | dragonfly*)
d9898ee8 11618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11619 # conventions
11620 ld_shlibs_CXX=yes
11621 ;;
11622 gnu*)
11623 ;;
11624 hpux9*)
11625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11626 hardcode_libdir_separator_CXX=:
11627 export_dynamic_flag_spec_CXX='${wl}-E'
11628 hardcode_direct_CXX=yes
11629 hardcode_minus_L_CXX=yes # Not in the search PATH,
11630 # but as the default
11631 # location of the library.
11632
11633 case $cc_basename in
11634 CC*)
11635 # FIXME: insert proper C++ library support
11636 ld_shlibs_CXX=no
11637 ;;
11638 aCC*)
11639 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11640 # Commands to make compiler produce verbose output that lists
11641 # what "hidden" libraries, object files and flags are used when
11642 # linking a shared library.
11643 #
11644 # There doesn't appear to be a way to prevent this compiler from
11645 # explicitly linking system object files so we need to strip them
11646 # from the output so that they don't get included in the library
11647 # dependencies.
11648 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11649 ;;
11650 *)
11651 if test "$GXX" = yes; then
11652 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11653 else
11654 # FIXME: insert proper C++ library support
11655 ld_shlibs_CXX=no
11656 fi
11657 ;;
11658 esac
11659 ;;
11660 hpux10*|hpux11*)
11661 if test $with_gnu_ld = no; then
11662 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11663 hardcode_libdir_separator_CXX=:
11664
11665 case $host_cpu in
0fde1ce3 11666 hppa*64*|ia64*) ;;
d9898ee8 11667 *)
11668 export_dynamic_flag_spec_CXX='${wl}-E'
11669 ;;
11670 esac
11671 fi
11672 case $host_cpu in
11673 hppa*64*|ia64*)
11674 hardcode_direct_CXX=no
11675 hardcode_shlibpath_var_CXX=no
11676 ;;
11677 *)
11678 hardcode_direct_CXX=yes
11679 hardcode_minus_L_CXX=yes # Not in the search PATH,
11680 # but as the default
11681 # location of the library.
11682 ;;
11683 esac
11684
11685 case $cc_basename in
11686 CC*)
11687 # FIXME: insert proper C++ library support
11688 ld_shlibs_CXX=no
11689 ;;
11690 aCC*)
11691 case $host_cpu in
11692 hppa*64*)
11693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11694 ;;
11695 ia64*)
11696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697 ;;
11698 *)
11699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11700 ;;
11701 esac
11702 # Commands to make compiler produce verbose output that lists
11703 # what "hidden" libraries, object files and flags are used when
11704 # linking a shared library.
11705 #
11706 # There doesn't appear to be a way to prevent this compiler from
11707 # explicitly linking system object files so we need to strip them
11708 # from the output so that they don't get included in the library
11709 # dependencies.
11710 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11711 ;;
11712 *)
11713 if test "$GXX" = yes; then
11714 if test $with_gnu_ld = no; then
11715 case $host_cpu in
11716 hppa*64*)
11717 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718 ;;
11719 ia64*)
11720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11721 ;;
11722 *)
11723 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11724 ;;
11725 esac
11726 fi
11727 else
11728 # FIXME: insert proper C++ library support
11729 ld_shlibs_CXX=no
11730 fi
11731 ;;
11732 esac
11733 ;;
0fde1ce3 11734 interix[3-9]*)
d9898ee8 11735 hardcode_direct_CXX=no
11736 hardcode_shlibpath_var_CXX=no
11737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11738 export_dynamic_flag_spec_CXX='${wl}-E'
11739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11740 # Instead, shared libraries are loaded at an image base (0x10000000 by
11741 # default) and relocated if they conflict, which is a slow very memory
11742 # consuming and fragmenting process. To avoid this, we pick a random,
11743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11745 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11746 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11747 ;;
11748 irix5* | irix6*)
11749 case $cc_basename in
11750 CC*)
11751 # SGI C++
11752 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11753
11754 # Archives containing C++ object files must be created using
11755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11756 # necessary to make sure instantiated templates are included
11757 # in the archive.
11758 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11759 ;;
11760 *)
11761 if test "$GXX" = yes; then
11762 if test "$with_gnu_ld" = no; then
11763 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11764 else
11765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11766 fi
11767 fi
11768 link_all_deplibs_CXX=yes
11769 ;;
11770 esac
11771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11772 hardcode_libdir_separator_CXX=:
11773 ;;
0fde1ce3 11774 linux* | k*bsd*-gnu)
d9898ee8 11775 case $cc_basename in
11776 KCC*)
11777 # Kuck and Associates, Inc. (KAI) C++ Compiler
11778
11779 # KCC will only create a shared library if the output file
11780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11781 # to its proper name (with version) after linking.
11782 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11783 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11784 # Commands to make compiler produce verbose output that lists
11785 # what "hidden" libraries, object files and flags are used when
11786 # linking a shared library.
11787 #
11788 # There doesn't appear to be a way to prevent this compiler from
11789 # explicitly linking system object files so we need to strip them
11790 # from the output so that they don't get included in the library
11791 # dependencies.
11792 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11793
11794 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11796
11797 # Archives containing C++ object files must be created using
11798 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11799 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11800 ;;
11801 icpc*)
11802 # Intel C++
11803 with_gnu_ld=yes
11804 # version 8.0 and above of icpc choke on multiply defined symbols
11805 # if we add $predep_objects and $postdep_objects, however 7.1 and
11806 # earlier do not add the objects themselves.
11807 case `$CC -V 2>&1` in
11808 *"Version 7."*)
11809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11811 ;;
11812 *) # Version 8.0 or newer
11813 tmp_idyn=
11814 case $host_cpu in
11815 ia64*) tmp_idyn=' -i_dynamic';;
11816 esac
11817 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11819 ;;
11820 esac
11821 archive_cmds_need_lc_CXX=no
11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11824 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11825 ;;
11826 pgCC*)
11827 # Portland Group C++ compiler
11828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11829 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11830
11831 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11833 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11834 ;;
11835 cxx*)
11836 # Compaq C++
11837 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11839
11840 runpath_var=LD_RUN_PATH
11841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11842 hardcode_libdir_separator_CXX=:
11843
11844 # Commands to make compiler produce verbose output that lists
11845 # what "hidden" libraries, object files and flags are used when
11846 # linking a shared library.
11847 #
11848 # There doesn't appear to be a way to prevent this compiler from
11849 # explicitly linking system object files so we need to strip them
11850 # from the output so that they don't get included in the library
11851 # dependencies.
11852 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11853 ;;
0fde1ce3 11854 *)
11855 case `$CC -V 2>&1 | sed 5q` in
11856 *Sun\ C*)
11857 # Sun C++ 5.9
11858 no_undefined_flag_CXX=' -zdefs'
11859 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11860 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11861 hardcode_libdir_flag_spec_CXX='-R$libdir'
11862 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11863
11864 # Not sure whether something based on
11865 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11866 # would be better.
11867 output_verbose_link_cmd='echo'
11868
11869 # Archives containing C++ object files must be created using
11870 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11871 # necessary to make sure instantiated templates are included
11872 # in the archive.
11873 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11874 ;;
11875 esac
11876 ;;
d9898ee8 11877 esac
11878 ;;
11879 lynxos*)
11880 # FIXME: insert proper C++ library support
11881 ld_shlibs_CXX=no
11882 ;;
11883 m88k*)
11884 # FIXME: insert proper C++ library support
11885 ld_shlibs_CXX=no
11886 ;;
11887 mvs*)
11888 case $cc_basename in
11889 cxx*)
11890 # FIXME: insert proper C++ library support
11891 ld_shlibs_CXX=no
11892 ;;
11893 *)
11894 # FIXME: insert proper C++ library support
11895 ld_shlibs_CXX=no
11896 ;;
11897 esac
11898 ;;
11899 netbsd*)
11900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11901 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11902 wlarc=
11903 hardcode_libdir_flag_spec_CXX='-R$libdir'
11904 hardcode_direct_CXX=yes
11905 hardcode_shlibpath_var_CXX=no
11906 fi
11907 # Workaround some broken pre-1.5 toolchains
11908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11909 ;;
11910 openbsd2*)
11911 # C++ shared libraries are fairly broken
11912 ld_shlibs_CXX=no
11913 ;;
11914 openbsd*)
0fde1ce3 11915 if test -f /usr/libexec/ld.so; then
11916 hardcode_direct_CXX=yes
11917 hardcode_shlibpath_var_CXX=no
11918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11922 export_dynamic_flag_spec_CXX='${wl}-E'
11923 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11924 fi
11925 output_verbose_link_cmd='echo'
11926 else
11927 ld_shlibs_CXX=no
d9898ee8 11928 fi
d9898ee8 11929 ;;
11930 osf3*)
11931 case $cc_basename in
11932 KCC*)
11933 # Kuck and Associates, Inc. (KAI) C++ Compiler
11934
11935 # KCC will only create a shared library if the output file
11936 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11937 # to its proper name (with version) after linking.
11938 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11939
11940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11941 hardcode_libdir_separator_CXX=:
11942
11943 # Archives containing C++ object files must be created using
11944 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11945 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11946
11947 ;;
11948 RCC*)
11949 # Rational C++ 2.4.1
11950 # FIXME: insert proper C++ library support
11951 ld_shlibs_CXX=no
11952 ;;
11953 cxx*)
11954 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11955 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11956
11957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11958 hardcode_libdir_separator_CXX=:
11959
11960 # Commands to make compiler produce verbose output that lists
11961 # what "hidden" libraries, object files and flags are used when
11962 # linking a shared library.
11963 #
11964 # There doesn't appear to be a way to prevent this compiler from
11965 # explicitly linking system object files so we need to strip them
11966 # from the output so that they don't get included in the library
11967 # dependencies.
11968 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11969 ;;
11970 *)
11971 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11973 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11974
11975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11976 hardcode_libdir_separator_CXX=:
11977
11978 # Commands to make compiler produce verbose output that lists
11979 # what "hidden" libraries, object files and flags are used when
11980 # linking a shared library.
11981 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11982
11983 else
11984 # FIXME: insert proper C++ library support
11985 ld_shlibs_CXX=no
11986 fi
11987 ;;
11988 esac
11989 ;;
11990 osf4* | osf5*)
11991 case $cc_basename in
11992 KCC*)
11993 # Kuck and Associates, Inc. (KAI) C++ Compiler
11994
11995 # KCC will only create a shared library if the output file
11996 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11997 # to its proper name (with version) after linking.
11998 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11999
12000 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12001 hardcode_libdir_separator_CXX=:
12002
12003 # Archives containing C++ object files must be created using
12004 # the KAI C++ compiler.
12005 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12006 ;;
12007 RCC*)
12008 # Rational C++ 2.4.1
12009 # FIXME: insert proper C++ library support
12010 ld_shlibs_CXX=no
12011 ;;
12012 cxx*)
12013 allow_undefined_flag_CXX=' -expect_unresolved \*'
12014 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12015 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12016 echo "-hidden">> $lib.exp~
12017 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12018 $rm $lib.exp'
12019
12020 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12021 hardcode_libdir_separator_CXX=:
12022
12023 # Commands to make compiler produce verbose output that lists
12024 # what "hidden" libraries, object files and flags are used when
12025 # linking a shared library.
12026 #
12027 # There doesn't appear to be a way to prevent this compiler from
12028 # explicitly linking system object files so we need to strip them
12029 # from the output so that they don't get included in the library
12030 # dependencies.
12031 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12032 ;;
12033 *)
12034 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12035 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12036 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12037
12038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12039 hardcode_libdir_separator_CXX=:
12040
12041 # Commands to make compiler produce verbose output that lists
12042 # what "hidden" libraries, object files and flags are used when
12043 # linking a shared library.
12044 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12045
12046 else
12047 # FIXME: insert proper C++ library support
12048 ld_shlibs_CXX=no
12049 fi
12050 ;;
12051 esac
12052 ;;
12053 psos*)
12054 # FIXME: insert proper C++ library support
12055 ld_shlibs_CXX=no
12056 ;;
12057 sunos4*)
12058 case $cc_basename in
12059 CC*)
12060 # Sun C++ 4.x
12061 # FIXME: insert proper C++ library support
12062 ld_shlibs_CXX=no
12063 ;;
12064 lcc*)
12065 # Lucid
12066 # FIXME: insert proper C++ library support
12067 ld_shlibs_CXX=no
12068 ;;
12069 *)
12070 # FIXME: insert proper C++ library support
12071 ld_shlibs_CXX=no
12072 ;;
12073 esac
12074 ;;
12075 solaris*)
12076 case $cc_basename in
12077 CC*)
12078 # Sun C++ 4.2, 5.x and Centerline C++
12079 archive_cmds_need_lc_CXX=yes
12080 no_undefined_flag_CXX=' -zdefs'
12081 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12083 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12084
12085 hardcode_libdir_flag_spec_CXX='-R$libdir'
12086 hardcode_shlibpath_var_CXX=no
12087 case $host_os in
12088 solaris2.[0-5] | solaris2.[0-5].*) ;;
12089 *)
0fde1ce3 12090 # The compiler driver will combine and reorder linker options,
12091 # but understands `-z linker_flag'.
d9898ee8 12092 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 12093 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 12094 ;;
12095 esac
12096 link_all_deplibs_CXX=yes
12097
12098 output_verbose_link_cmd='echo'
12099
12100 # Archives containing C++ object files must be created using
12101 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12102 # necessary to make sure instantiated templates are included
12103 # in the archive.
12104 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12105 ;;
12106 gcx*)
12107 # Green Hills C++ Compiler
12108 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12109
12110 # The C++ compiler must be used to create the archive.
12111 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12112 ;;
12113 *)
12114 # GNU C++ compiler with Solaris linker
12115 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12116 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12117 if $CC --version | grep -v '^2\.7' > /dev/null; then
12118 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12119 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12120 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12121
12122 # Commands to make compiler produce verbose output that lists
12123 # what "hidden" libraries, object files and flags are used when
12124 # linking a shared library.
12125 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12126 else
12127 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12128 # platform.
12129 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12131 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12132
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12137 fi
12138
12139 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
0fde1ce3 12140 case $host_os in
12141 solaris2.[0-5] | solaris2.[0-5].*) ;;
12142 *)
12143 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12144 ;;
12145 esac
d9898ee8 12146 fi
12147 ;;
12148 esac
12149 ;;
12150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12151 no_undefined_flag_CXX='${wl}-z,text'
12152 archive_cmds_need_lc_CXX=no
12153 hardcode_shlibpath_var_CXX=no
12154 runpath_var='LD_RUN_PATH'
12155
12156 case $cc_basename in
12157 CC*)
12158 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12160 ;;
12161 *)
12162 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12163 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12164 ;;
12165 esac
12166 ;;
12167 sysv5* | sco3.2v5* | sco5v6*)
12168 # Note: We can NOT use -z defs as we might desire, because we do not
12169 # link with -lc, and that would cause any symbols used from libc to
12170 # always be unresolved, which means just about no library would
12171 # ever link correctly. If we're not using GNU ld we use -z text
12172 # though, which does catch some bad symbols but isn't as heavy-handed
12173 # as -z defs.
12174 # For security reasons, it is highly recommended that you always
12175 # use absolute paths for naming shared libraries, and exclude the
12176 # DT_RUNPATH tag from executables and libraries. But doing so
12177 # requires that you compile everything twice, which is a pain.
12178 # So that behaviour is only enabled if SCOABSPATH is set to a
12179 # non-empty value in the environment. Most likely only useful for
12180 # creating official distributions of packages.
12181 # This is a hack until libtool officially supports absolute path
12182 # names for shared libraries.
12183 no_undefined_flag_CXX='${wl}-z,text'
12184 allow_undefined_flag_CXX='${wl}-z,nodefs'
12185 archive_cmds_need_lc_CXX=no
12186 hardcode_shlibpath_var_CXX=no
12187 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12188 hardcode_libdir_separator_CXX=':'
12189 link_all_deplibs_CXX=yes
12190 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12191 runpath_var='LD_RUN_PATH'
12192
12193 case $cc_basename in
12194 CC*)
12195 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12196 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12197 ;;
12198 *)
12199 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12200 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12201 ;;
12202 esac
12203 ;;
12204 tandem*)
12205 case $cc_basename in
12206 NCC*)
12207 # NonStop-UX NCC 3.20
12208 # FIXME: insert proper C++ library support
12209 ld_shlibs_CXX=no
12210 ;;
12211 *)
12212 # FIXME: insert proper C++ library support
12213 ld_shlibs_CXX=no
12214 ;;
12215 esac
12216 ;;
12217 vxworks*)
12218 # FIXME: insert proper C++ library support
12219 ld_shlibs_CXX=no
12220 ;;
12221 *)
12222 # FIXME: insert proper C++ library support
12223 ld_shlibs_CXX=no
12224 ;;
12225esac
64ff59ba 12226{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12227echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12228test "$ld_shlibs_CXX" = no && can_build_shared=no
12229
12230GCC_CXX="$GXX"
12231LD_CXX="$LD"
12232
12233
12234cat > conftest.$ac_ext <<EOF
12235class Foo
12236{
12237public:
12238 Foo (void) { a = 0; }
12239private:
12240 int a;
12241};
12242EOF
12243
12244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12245 (eval $ac_compile) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; then
12249 # Parse the compiler output and extract the necessary
12250 # objects, libraries and library flags.
12251
12252 # Sentinel used to keep track of whether or not we are before
12253 # the conftest object file.
12254 pre_test_object_deps_done=no
12255
12256 # The `*' in the case matches for architectures that use `case' in
12257 # $output_verbose_cmd can trigger glob expansion during the loop
12258 # eval without this substitution.
12259 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12260
12261 for p in `eval $output_verbose_link_cmd`; do
12262 case $p in
12263
12264 -L* | -R* | -l*)
12265 # Some compilers place space between "-{L,R}" and the path.
12266 # Remove the space.
12267 if test $p = "-L" \
12268 || test $p = "-R"; then
12269 prev=$p
12270 continue
12271 else
12272 prev=
12273 fi
12274
12275 if test "$pre_test_object_deps_done" = no; then
12276 case $p in
12277 -L* | -R*)
12278 # Internal compiler library paths should come after those
12279 # provided the user. The postdeps already come after the
12280 # user supplied libs so there is no need to process them.
12281 if test -z "$compiler_lib_search_path_CXX"; then
12282 compiler_lib_search_path_CXX="${prev}${p}"
12283 else
12284 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12285 fi
12286 ;;
12287 # The "-l" case would never come before the object being
12288 # linked, so don't bother handling this case.
12289 esac
12290 else
12291 if test -z "$postdeps_CXX"; then
12292 postdeps_CXX="${prev}${p}"
12293 else
12294 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12295 fi
12296 fi
12297 ;;
12298
12299 *.$objext)
12300 # This assumes that the test object file only shows up
12301 # once in the compiler output.
12302 if test "$p" = "conftest.$objext"; then
12303 pre_test_object_deps_done=yes
12304 continue
12305 fi
12306
12307 if test "$pre_test_object_deps_done" = no; then
12308 if test -z "$predep_objects_CXX"; then
12309 predep_objects_CXX="$p"
12310 else
12311 predep_objects_CXX="$predep_objects_CXX $p"
12312 fi
12313 else
12314 if test -z "$postdep_objects_CXX"; then
12315 postdep_objects_CXX="$p"
12316 else
12317 postdep_objects_CXX="$postdep_objects_CXX $p"
12318 fi
12319 fi
12320 ;;
12321
12322 *) ;; # Ignore the rest.
12323
12324 esac
12325 done
12326
12327 # Clean up.
12328 rm -f a.out a.exe
12329else
12330 echo "libtool.m4: error: problem compiling CXX test program"
12331fi
12332
12333$rm -f confest.$objext
12334
12335# PORTME: override above test on systems where it is broken
12336case $host_os in
0fde1ce3 12337interix[3-9]*)
d9898ee8 12338 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12339 # hack all around it, let's just trust "g++" to DTRT.
12340 predep_objects_CXX=
12341 postdep_objects_CXX=
12342 postdeps_CXX=
12343 ;;
12344
0fde1ce3 12345linux*)
12346 case `$CC -V 2>&1 | sed 5q` in
12347 *Sun\ C*)
12348 # Sun C++ 5.9
12349 #
12350 # The more standards-conforming stlport4 library is
12351 # incompatible with the Cstd library. Avoid specifying
12352 # it if it's in CXXFLAGS. Ignore libCrun as
12353 # -library=stlport4 depends on it.
12354 case " $CXX $CXXFLAGS " in
12355 *" -library=stlport4 "*)
12356 solaris_use_stlport4=yes
12357 ;;
12358 esac
12359 if test "$solaris_use_stlport4" != yes; then
12360 postdeps_CXX='-library=Cstd -library=Crun'
12361 fi
12362 ;;
12363 esac
12364 ;;
12365
d9898ee8 12366solaris*)
12367 case $cc_basename in
12368 CC*)
0fde1ce3 12369 # The more standards-conforming stlport4 library is
12370 # incompatible with the Cstd library. Avoid specifying
12371 # it if it's in CXXFLAGS. Ignore libCrun as
12372 # -library=stlport4 depends on it.
12373 case " $CXX $CXXFLAGS " in
12374 *" -library=stlport4 "*)
12375 solaris_use_stlport4=yes
12376 ;;
12377 esac
12378
d9898ee8 12379 # Adding this requires a known-good setup of shared libraries for
12380 # Sun compiler versions before 5.6, else PIC objects from an old
12381 # archive will be linked into the output, leading to subtle bugs.
0fde1ce3 12382 if test "$solaris_use_stlport4" != yes; then
12383 postdeps_CXX='-library=Cstd -library=Crun'
12384 fi
d9898ee8 12385 ;;
12386 esac
12387 ;;
12388esac
12389
12390
12391case " $postdeps_CXX " in
12392*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12393esac
12394
12395lt_prog_compiler_wl_CXX=
12396lt_prog_compiler_pic_CXX=
12397lt_prog_compiler_static_CXX=
12398
64ff59ba 12399{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12400echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12401
12402 # C++ specific cases for pic, static, wl, etc.
12403 if test "$GXX" = yes; then
12404 lt_prog_compiler_wl_CXX='-Wl,'
12405 lt_prog_compiler_static_CXX='-static'
12406
12407 case $host_os in
12408 aix*)
12409 # All AIX code is PIC.
12410 if test "$host_cpu" = ia64; then
12411 # AIX 5 now supports IA64 processor
12412 lt_prog_compiler_static_CXX='-Bstatic'
12413 fi
12414 ;;
12415 amigaos*)
12416 # FIXME: we need at least 68020 code to build shared libraries, but
12417 # adding the `-m68020' flag to GCC prevents building anything better,
12418 # like `-m68040'.
12419 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12420 ;;
0fde1ce3 12421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12422 # PIC is the default for these OSes.
12423 ;;
0fde1ce3 12424 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12425 # This hack is so that the source file can tell whether it is being
12426 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 12427 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12428 # (--disable-auto-import) libraries
d9898ee8 12429 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12430 ;;
12431 darwin* | rhapsody*)
12432 # PIC is the default on this platform
12433 # Common symbols not allowed in MH_DYLIB files
12434 lt_prog_compiler_pic_CXX='-fno-common'
12435 ;;
12436 *djgpp*)
12437 # DJGPP does not support shared libraries at all
12438 lt_prog_compiler_pic_CXX=
12439 ;;
0fde1ce3 12440 interix[3-9]*)
d9898ee8 12441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12442 # Instead, we relocate shared libraries at runtime.
12443 ;;
12444 sysv4*MP*)
12445 if test -d /usr/nec; then
12446 lt_prog_compiler_pic_CXX=-Kconform_pic
12447 fi
12448 ;;
12449 hpux*)
12450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12451 # not for PA HP-UX.
12452 case $host_cpu in
12453 hppa*64*|ia64*)
12454 ;;
12455 *)
12456 lt_prog_compiler_pic_CXX='-fPIC'
12457 ;;
12458 esac
12459 ;;
12460 *)
12461 lt_prog_compiler_pic_CXX='-fPIC'
12462 ;;
12463 esac
12464 else
12465 case $host_os in
12466 aix4* | aix5*)
12467 # All AIX code is PIC.
12468 if test "$host_cpu" = ia64; then
12469 # AIX 5 now supports IA64 processor
12470 lt_prog_compiler_static_CXX='-Bstatic'
12471 else
12472 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12473 fi
12474 ;;
12475 chorus*)
12476 case $cc_basename in
12477 cxch68*)
12478 # Green Hills C++ Compiler
12479 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12480 ;;
12481 esac
12482 ;;
12483 darwin*)
12484 # PIC is the default on this platform
12485 # Common symbols not allowed in MH_DYLIB files
12486 case $cc_basename in
12487 xlc*)
12488 lt_prog_compiler_pic_CXX='-qnocommon'
12489 lt_prog_compiler_wl_CXX='-Wl,'
12490 ;;
12491 esac
12492 ;;
12493 dgux*)
12494 case $cc_basename in
12495 ec++*)
12496 lt_prog_compiler_pic_CXX='-KPIC'
12497 ;;
12498 ghcx*)
12499 # Green Hills C++ Compiler
12500 lt_prog_compiler_pic_CXX='-pic'
12501 ;;
12502 *)
12503 ;;
12504 esac
12505 ;;
0fde1ce3 12506 freebsd* | dragonfly*)
d9898ee8 12507 # FreeBSD uses GNU C++
12508 ;;
12509 hpux9* | hpux10* | hpux11*)
12510 case $cc_basename in
12511 CC*)
12512 lt_prog_compiler_wl_CXX='-Wl,'
12513 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12514 if test "$host_cpu" != ia64; then
12515 lt_prog_compiler_pic_CXX='+Z'
12516 fi
12517 ;;
12518 aCC*)
12519 lt_prog_compiler_wl_CXX='-Wl,'
12520 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12521 case $host_cpu in
12522 hppa*64*|ia64*)
12523 # +Z the default
12524 ;;
12525 *)
12526 lt_prog_compiler_pic_CXX='+Z'
12527 ;;
12528 esac
12529 ;;
12530 *)
12531 ;;
12532 esac
12533 ;;
12534 interix*)
12535 # This is c89, which is MS Visual C++ (no shared libs)
12536 # Anyone wants to do a port?
12537 ;;
12538 irix5* | irix6* | nonstopux*)
12539 case $cc_basename in
12540 CC*)
12541 lt_prog_compiler_wl_CXX='-Wl,'
12542 lt_prog_compiler_static_CXX='-non_shared'
12543 # CC pic flag -KPIC is the default.
12544 ;;
12545 *)
12546 ;;
12547 esac
12548 ;;
0fde1ce3 12549 linux* | k*bsd*-gnu)
d9898ee8 12550 case $cc_basename in
12551 KCC*)
12552 # KAI C++ Compiler
12553 lt_prog_compiler_wl_CXX='--backend -Wl,'
12554 lt_prog_compiler_pic_CXX='-fPIC'
12555 ;;
12556 icpc* | ecpc*)
12557 # Intel C++
12558 lt_prog_compiler_wl_CXX='-Wl,'
12559 lt_prog_compiler_pic_CXX='-KPIC'
12560 lt_prog_compiler_static_CXX='-static'
12561 ;;
12562 pgCC*)
12563 # Portland Group C++ compiler.
12564 lt_prog_compiler_wl_CXX='-Wl,'
12565 lt_prog_compiler_pic_CXX='-fpic'
12566 lt_prog_compiler_static_CXX='-Bstatic'
12567 ;;
12568 cxx*)
12569 # Compaq C++
12570 # Make sure the PIC flag is empty. It appears that all Alpha
12571 # Linux and Compaq Tru64 Unix objects are PIC.
12572 lt_prog_compiler_pic_CXX=
12573 lt_prog_compiler_static_CXX='-non_shared'
12574 ;;
12575 *)
0fde1ce3 12576 case `$CC -V 2>&1 | sed 5q` in
12577 *Sun\ C*)
12578 # Sun C++ 5.9
12579 lt_prog_compiler_pic_CXX='-KPIC'
12580 lt_prog_compiler_static_CXX='-Bstatic'
12581 lt_prog_compiler_wl_CXX='-Qoption ld '
12582 ;;
12583 esac
d9898ee8 12584 ;;
12585 esac
12586 ;;
12587 lynxos*)
12588 ;;
12589 m88k*)
12590 ;;
12591 mvs*)
12592 case $cc_basename in
12593 cxx*)
12594 lt_prog_compiler_pic_CXX='-W c,exportall'
12595 ;;
12596 *)
12597 ;;
12598 esac
12599 ;;
12600 netbsd*)
12601 ;;
12602 osf3* | osf4* | osf5*)
12603 case $cc_basename in
12604 KCC*)
12605 lt_prog_compiler_wl_CXX='--backend -Wl,'
12606 ;;
12607 RCC*)
12608 # Rational C++ 2.4.1
12609 lt_prog_compiler_pic_CXX='-pic'
12610 ;;
12611 cxx*)
12612 # Digital/Compaq C++
12613 lt_prog_compiler_wl_CXX='-Wl,'
12614 # Make sure the PIC flag is empty. It appears that all Alpha
12615 # Linux and Compaq Tru64 Unix objects are PIC.
12616 lt_prog_compiler_pic_CXX=
12617 lt_prog_compiler_static_CXX='-non_shared'
12618 ;;
12619 *)
12620 ;;
12621 esac
12622 ;;
12623 psos*)
12624 ;;
12625 solaris*)
12626 case $cc_basename in
12627 CC*)
12628 # Sun C++ 4.2, 5.x and Centerline C++
12629 lt_prog_compiler_pic_CXX='-KPIC'
12630 lt_prog_compiler_static_CXX='-Bstatic'
12631 lt_prog_compiler_wl_CXX='-Qoption ld '
12632 ;;
12633 gcx*)
12634 # Green Hills C++ Compiler
12635 lt_prog_compiler_pic_CXX='-PIC'
12636 ;;
12637 *)
12638 ;;
12639 esac
12640 ;;
12641 sunos4*)
12642 case $cc_basename in
12643 CC*)
12644 # Sun C++ 4.x
12645 lt_prog_compiler_pic_CXX='-pic'
12646 lt_prog_compiler_static_CXX='-Bstatic'
12647 ;;
12648 lcc*)
12649 # Lucid
12650 lt_prog_compiler_pic_CXX='-pic'
12651 ;;
12652 *)
12653 ;;
12654 esac
12655 ;;
12656 tandem*)
12657 case $cc_basename in
12658 NCC*)
12659 # NonStop-UX NCC 3.20
12660 lt_prog_compiler_pic_CXX='-KPIC'
12661 ;;
12662 *)
12663 ;;
12664 esac
12665 ;;
12666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12667 case $cc_basename in
12668 CC*)
12669 lt_prog_compiler_wl_CXX='-Wl,'
12670 lt_prog_compiler_pic_CXX='-KPIC'
12671 lt_prog_compiler_static_CXX='-Bstatic'
12672 ;;
12673 esac
12674 ;;
12675 vxworks*)
12676 ;;
12677 *)
12678 lt_prog_compiler_can_build_shared_CXX=no
12679 ;;
12680 esac
12681 fi
12682
64ff59ba 12683{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12684echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12685
12686#
12687# Check to make sure the PIC flag actually works.
12688#
12689if test -n "$lt_prog_compiler_pic_CXX"; then
12690
64ff59ba 12691{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12692echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12693if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695else
12696 lt_prog_compiler_pic_works_CXX=no
12697 ac_outfile=conftest.$ac_objext
0fde1ce3 12698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12699 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12700 # Insert the option either (1) after the last *FLAGS variable, or
12701 # (2) before a word containing "conftest.", or (3) at the end.
12702 # Note that $ac_compile itself does not contain backslashes and begins
12703 # with a dollar sign (not a hyphen), so the echo should work correctly.
12704 # The option is referenced via a variable to avoid confusing sed.
12705 lt_compile=`echo "$ac_compile" | $SED \
12706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12708 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 12709 (eval echo "\"\$as_me:12709: $lt_compile\"" >&5)
d9898ee8 12710 (eval "$lt_compile" 2>conftest.err)
12711 ac_status=$?
12712 cat conftest.err >&5
0fde1ce3 12713 echo "$as_me:12713: \$? = $ac_status" >&5
d9898ee8 12714 if (exit $ac_status) && test -s "$ac_outfile"; then
12715 # The compiler can only warn and ignore the option if not recognized
12716 # So say no if there are warnings other than the usual output.
12717 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12720 lt_prog_compiler_pic_works_CXX=yes
12721 fi
12722 fi
12723 $rm conftest*
12724
12725fi
64ff59ba 12726{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12727echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12728
12729if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12730 case $lt_prog_compiler_pic_CXX in
12731 "" | " "*) ;;
12732 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12733 esac
12734else
12735 lt_prog_compiler_pic_CXX=
12736 lt_prog_compiler_can_build_shared_CXX=no
12737fi
12738
12739fi
12740case $host_os in
12741 # For platforms which do not support PIC, -DPIC is meaningless:
12742 *djgpp*)
12743 lt_prog_compiler_pic_CXX=
12744 ;;
12745 *)
12746 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12747 ;;
12748esac
12749
12750#
12751# Check to make sure the static flag actually works.
12752#
12753wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12754{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12755echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12756if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12758else
12759 lt_prog_compiler_static_works_CXX=no
12760 save_LDFLAGS="$LDFLAGS"
12761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 12762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12764 # The linker can only warn and ignore the option if not recognized
12765 # So say no if there are warnings
12766 if test -s conftest.err; then
12767 # Append any errors to the config.log.
12768 cat conftest.err 1>&5
12769 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12771 if diff conftest.exp conftest.er2 >/dev/null; then
12772 lt_prog_compiler_static_works_CXX=yes
12773 fi
12774 else
12775 lt_prog_compiler_static_works_CXX=yes
12776 fi
12777 fi
12778 $rm conftest*
12779 LDFLAGS="$save_LDFLAGS"
12780
12781fi
64ff59ba 12782{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12783echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12784
12785if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12786 :
12787else
12788 lt_prog_compiler_static_CXX=
12789fi
12790
12791
64ff59ba 12792{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12793echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12794if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 lt_cv_prog_compiler_c_o_CXX=no
12798 $rm -r conftest 2>/dev/null
12799 mkdir conftest
12800 cd conftest
12801 mkdir out
0fde1ce3 12802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12803
12804 lt_compiler_flag="-o out/conftest2.$ac_objext"
12805 # Insert the option either (1) after the last *FLAGS variable, or
12806 # (2) before a word containing "conftest.", or (3) at the end.
12807 # Note that $ac_compile itself does not contain backslashes and begins
12808 # with a dollar sign (not a hyphen), so the echo should work correctly.
12809 lt_compile=`echo "$ac_compile" | $SED \
12810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12812 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 12813 (eval echo "\"\$as_me:12813: $lt_compile\"" >&5)
d9898ee8 12814 (eval "$lt_compile" 2>out/conftest.err)
12815 ac_status=$?
12816 cat out/conftest.err >&5
0fde1ce3 12817 echo "$as_me:12817: \$? = $ac_status" >&5
d9898ee8 12818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12819 then
12820 # The compiler can only warn and ignore the option if not recognized
12821 # So say no if there are warnings
12822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12825 lt_cv_prog_compiler_c_o_CXX=yes
12826 fi
12827 fi
12828 chmod u+w . 2>&5
12829 $rm conftest*
12830 # SGI C++ compiler will create directory out/ii_files/ for
12831 # template instantiation
12832 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12833 $rm out/* && rmdir out
12834 cd ..
12835 rmdir conftest
12836 $rm conftest*
12837
12838fi
64ff59ba 12839{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12840echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12841
12842
12843hard_links="nottested"
12844if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12845 # do not overwrite the value of need_locks provided by the user
64ff59ba 12846 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12847echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12848 hard_links=yes
12849 $rm conftest*
12850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12851 touch conftest.a
12852 ln conftest.a conftest.b 2>&5 || hard_links=no
12853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12854 { echo "$as_me:$LINENO: result: $hard_links" >&5
12855echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12856 if test "$hard_links" = no; then
12857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12858echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12859 need_locks=warn
12860 fi
12861else
12862 need_locks=no
12863fi
12864
64ff59ba 12865{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12866echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12867
12868 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12869 case $host_os in
12870 aix4* | aix5*)
12871 # If we're using GNU nm, then we don't want the "-C" option.
12872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12874 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12875 else
12876 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12877 fi
12878 ;;
12879 pw32*)
12880 export_symbols_cmds_CXX="$ltdll_cmds"
12881 ;;
12882 cygwin* | mingw*)
0fde1ce3 12883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 12884 ;;
12885 *)
12886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12887 ;;
12888 esac
12889
64ff59ba 12890{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12891echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12892test "$ld_shlibs_CXX" = no && can_build_shared=no
12893
12894#
12895# Do we need to explicitly link libc?
12896#
12897case "x$archive_cmds_need_lc_CXX" in
12898x|xyes)
12899 # Assume -lc should be added
12900 archive_cmds_need_lc_CXX=yes
12901
12902 if test "$enable_shared" = yes && test "$GCC" = yes; then
12903 case $archive_cmds_CXX in
12904 *'~'*)
12905 # FIXME: we may have to deal with multi-command sequences.
12906 ;;
12907 '$CC '*)
12908 # Test whether the compiler implicitly links with -lc since on some
12909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12910 # to ld, don't add -lc before -lgcc.
64ff59ba 12911 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12912echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12913 $rm conftest*
0fde1ce3 12914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12915
12916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917 (eval $ac_compile) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } 2>conftest.err; then
12921 soname=conftest
12922 lib=conftest
12923 libobjs=conftest.$ac_objext
12924 deplibs=
12925 wl=$lt_prog_compiler_wl_CXX
12926 pic_flag=$lt_prog_compiler_pic_CXX
12927 compiler_flags=-v
12928 linker_flags=-v
12929 verstring=
12930 output_objdir=.
12931 libname=conftest
12932 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12933 allow_undefined_flag_CXX=
12934 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12935 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }
12939 then
12940 archive_cmds_need_lc_CXX=no
12941 else
12942 archive_cmds_need_lc_CXX=yes
12943 fi
12944 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12945 else
12946 cat conftest.err 1>&5
12947 fi
12948 $rm conftest*
64ff59ba 12949 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12950echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12951 ;;
12952 esac
12953 fi
12954 ;;
12955esac
12956
64ff59ba 12957{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12958echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12959library_names_spec=
12960libname_spec='lib$name'
12961soname_spec=
12962shrext_cmds=".so"
12963postinstall_cmds=
12964postuninstall_cmds=
12965finish_cmds=
12966finish_eval=
12967shlibpath_var=
12968shlibpath_overrides_runpath=unknown
12969version_type=none
12970dynamic_linker="$host_os ld.so"
12971sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 12972
d9898ee8 12973need_lib_prefix=unknown
12974hardcode_into_libs=no
12975
12976# when you set need_version to no, make sure it does not cause -set_version
12977# flags to be left without arguments
12978need_version=unknown
12979
12980case $host_os in
12981aix3*)
12982 version_type=linux
12983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12984 shlibpath_var=LIBPATH
12985
12986 # AIX 3 has no versioning support, so we append a major version to the name.
12987 soname_spec='${libname}${release}${shared_ext}$major'
12988 ;;
12989
12990aix4* | aix5*)
12991 version_type=linux
12992 need_lib_prefix=no
12993 need_version=no
12994 hardcode_into_libs=yes
12995 if test "$host_cpu" = ia64; then
12996 # AIX 5 supports IA64
12997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12998 shlibpath_var=LD_LIBRARY_PATH
12999 else
13000 # With GCC up to 2.95.x, collect2 would create an import file
13001 # for dependence libraries. The import file would start with
13002 # the line `#! .'. This would cause the generated library to
13003 # depend on `.', always an invalid library. This was fixed in
13004 # development snapshots of GCC prior to 3.0.
13005 case $host_os in
13006 aix4 | aix4.[01] | aix4.[01].*)
13007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13008 echo ' yes '
13009 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13010 :
13011 else
13012 can_build_shared=no
13013 fi
13014 ;;
13015 esac
13016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13017 # soname into executable. Probably we can add versioning support to
13018 # collect2, so additional links can be useful in future.
13019 if test "$aix_use_runtimelinking" = yes; then
13020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13021 # instead of lib<name>.a to let people know that these are not
13022 # typical AIX shared libraries.
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024 else
13025 # We preserve .a as extension for shared libraries through AIX4.2
13026 # and later when we are not doing run time linking.
13027 library_names_spec='${libname}${release}.a $libname.a'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 fi
13030 shlibpath_var=LIBPATH
13031 fi
13032 ;;
13033
13034amigaos*)
13035 library_names_spec='$libname.ixlibrary $libname.a'
13036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13037 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13038 ;;
13039
13040beos*)
13041 library_names_spec='${libname}${shared_ext}'
13042 dynamic_linker="$host_os ld.so"
13043 shlibpath_var=LIBRARY_PATH
13044 ;;
13045
13046bsdi[45]*)
13047 version_type=linux
13048 need_version=no
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050 soname_spec='${libname}${release}${shared_ext}$major'
13051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13052 shlibpath_var=LD_LIBRARY_PATH
13053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13055 # the default ld.so.conf also contains /usr/contrib/lib and
13056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13057 # libtool to hard-code these into programs
13058 ;;
13059
13060cygwin* | mingw* | pw32*)
13061 version_type=windows
13062 shrext_cmds=".dll"
13063 need_version=no
13064 need_lib_prefix=no
13065
13066 case $GCC,$host_os in
13067 yes,cygwin* | yes,mingw* | yes,pw32*)
13068 library_names_spec='$libname.dll.a'
13069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13070 postinstall_cmds='base_file=`basename \${file}`~
13071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13072 dldir=$destdir/`dirname \$dlpath`~
13073 test -d \$dldir || mkdir -p \$dldir~
13074 $install_prog $dir/$dlname \$dldir/$dlname~
13075 chmod a+x \$dldir/$dlname'
13076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13077 dlpath=$dir/\$dldll~
13078 $rm \$dlpath'
13079 shlibpath_overrides_runpath=yes
13080
13081 case $host_os in
13082 cygwin*)
13083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13085 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13086 ;;
13087 mingw*)
13088 # MinGW DLLs use traditional 'lib' prefix
13089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13091 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13092 # It is most probably a Windows format PATH printed by
13093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13094 # path with ; separators, and with drive letters. We can handle the
13095 # drive letters (cygwin fileutils understands them), so leave them,
13096 # especially as we might pass files found there to a mingw objdump,
13097 # which wouldn't understand a cygwinified path. Ahh.
13098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13099 else
13100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13101 fi
13102 ;;
13103 pw32*)
13104 # pw32 DLLs use 'pw' prefix rather than 'lib'
13105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13106 ;;
13107 esac
13108 ;;
13109
13110 *)
13111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13112 ;;
13113 esac
13114 dynamic_linker='Win32 ld.exe'
13115 # FIXME: first we should search . and the directory the executable is in
13116 shlibpath_var=PATH
13117 ;;
13118
13119darwin* | rhapsody*)
13120 dynamic_linker="$host_os dyld"
13121 version_type=darwin
13122 need_lib_prefix=no
13123 need_version=no
13124 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13125 soname_spec='${libname}${release}${major}$shared_ext'
13126 shlibpath_overrides_runpath=yes
13127 shlibpath_var=DYLD_LIBRARY_PATH
13128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 13129
d9898ee8 13130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13131 ;;
13132
13133dgux*)
13134 version_type=linux
13135 need_lib_prefix=no
13136 need_version=no
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13138 soname_spec='${libname}${release}${shared_ext}$major'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 ;;
13141
13142freebsd1*)
13143 dynamic_linker=no
13144 ;;
13145
d9898ee8 13146freebsd* | dragonfly*)
13147 # DragonFly does not have aout. When/if they implement a new
13148 # versioning mechanism, adjust this.
13149 if test -x /usr/bin/objformat; then
13150 objformat=`/usr/bin/objformat`
13151 else
13152 case $host_os in
13153 freebsd[123]*) objformat=aout ;;
13154 *) objformat=elf ;;
13155 esac
13156 fi
13157 version_type=freebsd-$objformat
13158 case $version_type in
13159 freebsd-elf*)
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13161 need_version=no
13162 need_lib_prefix=no
13163 ;;
13164 freebsd-*)
13165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13166 need_version=yes
13167 ;;
13168 esac
13169 shlibpath_var=LD_LIBRARY_PATH
13170 case $host_os in
13171 freebsd2*)
13172 shlibpath_overrides_runpath=yes
13173 ;;
13174 freebsd3.[01]* | freebsdelf3.[01]*)
13175 shlibpath_overrides_runpath=yes
13176 hardcode_into_libs=yes
13177 ;;
13178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13180 shlibpath_overrides_runpath=no
13181 hardcode_into_libs=yes
13182 ;;
0fde1ce3 13183 *) # from 4.6 on, and DragonFly
d9898ee8 13184 shlibpath_overrides_runpath=yes
13185 hardcode_into_libs=yes
13186 ;;
13187 esac
13188 ;;
13189
13190gnu*)
13191 version_type=linux
13192 need_lib_prefix=no
13193 need_version=no
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13195 soname_spec='${libname}${release}${shared_ext}$major'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 hardcode_into_libs=yes
13198 ;;
13199
13200hpux9* | hpux10* | hpux11*)
13201 # Give a soname corresponding to the major version so that dld.sl refuses to
13202 # link against other versions.
13203 version_type=sunos
13204 need_lib_prefix=no
13205 need_version=no
13206 case $host_cpu in
13207 ia64*)
13208 shrext_cmds='.so'
13209 hardcode_into_libs=yes
13210 dynamic_linker="$host_os dld.so"
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214 soname_spec='${libname}${release}${shared_ext}$major'
13215 if test "X$HPUX_IA64_MODE" = X32; then
13216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13217 else
13218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13219 fi
13220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13221 ;;
13222 hppa*64*)
13223 shrext_cmds='.sl'
13224 hardcode_into_libs=yes
13225 dynamic_linker="$host_os dld.sl"
13226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229 soname_spec='${libname}${release}${shared_ext}$major'
13230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13232 ;;
13233 *)
13234 shrext_cmds='.sl'
13235 dynamic_linker="$host_os dld.sl"
13236 shlibpath_var=SHLIB_PATH
13237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239 soname_spec='${libname}${release}${shared_ext}$major'
13240 ;;
13241 esac
13242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13243 postinstall_cmds='chmod 555 $lib'
13244 ;;
13245
0fde1ce3 13246interix[3-9]*)
d9898ee8 13247 version_type=linux
13248 need_lib_prefix=no
13249 need_version=no
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13253 shlibpath_var=LD_LIBRARY_PATH
13254 shlibpath_overrides_runpath=no
13255 hardcode_into_libs=yes
13256 ;;
13257
13258irix5* | irix6* | nonstopux*)
13259 case $host_os in
13260 nonstopux*) version_type=nonstopux ;;
13261 *)
13262 if test "$lt_cv_prog_gnu_ld" = yes; then
13263 version_type=linux
13264 else
13265 version_type=irix
13266 fi ;;
13267 esac
13268 need_lib_prefix=no
13269 need_version=no
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13272 case $host_os in
13273 irix5* | nonstopux*)
13274 libsuff= shlibsuff=
13275 ;;
13276 *)
13277 case $LD in # libtool.m4 will add one of these switches to LD
13278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13279 libsuff= shlibsuff= libmagic=32-bit;;
13280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13281 libsuff=32 shlibsuff=N32 libmagic=N32;;
13282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13284 *) libsuff= shlibsuff= libmagic=never-match;;
13285 esac
13286 ;;
13287 esac
13288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13289 shlibpath_overrides_runpath=no
13290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13292 hardcode_into_libs=yes
13293 ;;
13294
13295# No shared lib support for Linux oldld, aout, or coff.
13296linux*oldld* | linux*aout* | linux*coff*)
13297 dynamic_linker=no
13298 ;;
13299
13300# This must be Linux ELF.
0fde1ce3 13301linux* | k*bsd*-gnu)
d9898ee8 13302 version_type=linux
13303 need_lib_prefix=no
13304 need_version=no
13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306 soname_spec='${libname}${release}${shared_ext}$major'
13307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13308 shlibpath_var=LD_LIBRARY_PATH
13309 shlibpath_overrides_runpath=no
13310 # This implies no fast_install, which is unacceptable.
13311 # Some rework will be needed to allow for fast_install
13312 # before this can be enabled.
13313 hardcode_into_libs=yes
0fde1ce3 13314 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13315 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13316
13317 # Append ld.so.conf contents to the search path
13318 if test -f /etc/ld.so.conf; then
0fde1ce3 13319 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;/^$/d' | tr '\n' ' '`
13320 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13321 fi
13322
13323 # We used to test for /lib/ld.so.1 and disable shared libraries on
13324 # powerpc, because MkLinux only supported shared libraries with the
13325 # GNU dynamic linker. Since this was broken with cross compilers,
13326 # most powerpc-linux boxes support dynamic linking these days and
13327 # people can always --disable-shared, the test was removed, and we
13328 # assume the GNU/Linux dynamic linker is in use.
13329 dynamic_linker='GNU/Linux ld.so'
13330 ;;
13331
d9898ee8 13332netbsd*)
13333 version_type=sunos
13334 need_lib_prefix=no
13335 need_version=no
13336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13339 dynamic_linker='NetBSD (a.out) ld.so'
13340 else
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 dynamic_linker='NetBSD ld.elf_so'
13344 fi
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=yes
13347 hardcode_into_libs=yes
13348 ;;
13349
13350newsos6)
13351 version_type=linux
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=yes
13355 ;;
13356
13357nto-qnx*)
13358 version_type=linux
13359 need_lib_prefix=no
13360 need_version=no
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=yes
13365 ;;
13366
13367openbsd*)
13368 version_type=sunos
13369 sys_lib_dlsearch_path_spec="/usr/lib"
13370 need_lib_prefix=no
13371 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13372 case $host_os in
13373 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13374 *) need_version=no ;;
13375 esac
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13380 case $host_os in
13381 openbsd2.[89] | openbsd2.[89].*)
13382 shlibpath_overrides_runpath=no
13383 ;;
13384 *)
13385 shlibpath_overrides_runpath=yes
13386 ;;
13387 esac
13388 else
13389 shlibpath_overrides_runpath=yes
13390 fi
13391 ;;
13392
13393os2*)
13394 libname_spec='$name'
13395 shrext_cmds=".dll"
13396 need_lib_prefix=no
13397 library_names_spec='$libname${shared_ext} $libname.a'
13398 dynamic_linker='OS/2 ld.exe'
13399 shlibpath_var=LIBPATH
13400 ;;
13401
13402osf3* | osf4* | osf5*)
13403 version_type=osf
13404 need_lib_prefix=no
13405 need_version=no
13406 soname_spec='${libname}${release}${shared_ext}$major'
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13410 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13411 ;;
13412
0fde1ce3 13413rdos*)
13414 dynamic_linker=no
13415 ;;
13416
d9898ee8 13417solaris*)
13418 version_type=linux
13419 need_lib_prefix=no
13420 need_version=no
13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13422 soname_spec='${libname}${release}${shared_ext}$major'
13423 shlibpath_var=LD_LIBRARY_PATH
13424 shlibpath_overrides_runpath=yes
13425 hardcode_into_libs=yes
13426 # ldd complains unless libraries are executable
13427 postinstall_cmds='chmod +x $lib'
13428 ;;
13429
13430sunos4*)
13431 version_type=sunos
13432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13433 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 shlibpath_overrides_runpath=yes
13436 if test "$with_gnu_ld" = yes; then
13437 need_lib_prefix=no
13438 fi
13439 need_version=yes
13440 ;;
13441
13442sysv4 | sysv4.3*)
13443 version_type=linux
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 soname_spec='${libname}${release}${shared_ext}$major'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 case $host_vendor in
13448 sni)
13449 shlibpath_overrides_runpath=no
13450 need_lib_prefix=no
13451 export_dynamic_flag_spec='${wl}-Blargedynsym'
13452 runpath_var=LD_RUN_PATH
13453 ;;
13454 siemens)
13455 need_lib_prefix=no
13456 ;;
13457 motorola)
13458 need_lib_prefix=no
13459 need_version=no
13460 shlibpath_overrides_runpath=no
13461 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13462 ;;
13463 esac
13464 ;;
13465
13466sysv4*MP*)
13467 if test -d /usr/nec ;then
13468 version_type=linux
13469 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13470 soname_spec='$libname${shared_ext}.$major'
13471 shlibpath_var=LD_LIBRARY_PATH
13472 fi
13473 ;;
13474
13475sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13476 version_type=freebsd-elf
13477 need_lib_prefix=no
13478 need_version=no
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 hardcode_into_libs=yes
13483 if test "$with_gnu_ld" = yes; then
13484 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13485 shlibpath_overrides_runpath=no
13486 else
13487 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13488 shlibpath_overrides_runpath=yes
13489 case $host_os in
13490 sco3.2v5*)
13491 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13492 ;;
13493 esac
13494 fi
13495 sys_lib_dlsearch_path_spec='/usr/lib'
13496 ;;
13497
13498uts4*)
13499 version_type=linux
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 ;;
13504
13505*)
13506 dynamic_linker=no
13507 ;;
13508esac
64ff59ba 13509{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13510echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13511test "$dynamic_linker" = no && can_build_shared=no
13512
13513variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13514if test "$GCC" = yes; then
13515 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13516fi
13517
64ff59ba 13518{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13519echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13520hardcode_action_CXX=
13521if test -n "$hardcode_libdir_flag_spec_CXX" || \
13522 test -n "$runpath_var_CXX" || \
13523 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13524
13525 # We can hardcode non-existant directories.
13526 if test "$hardcode_direct_CXX" != no &&
13527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13528 # have to relink, otherwise we might link with an installed library
13529 # when we should be linking with a yet-to-be-installed one
13530 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13531 test "$hardcode_minus_L_CXX" != no; then
13532 # Linking always hardcodes the temporary library directory.
13533 hardcode_action_CXX=relink
13534 else
13535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13536 hardcode_action_CXX=immediate
13537 fi
13538else
13539 # We cannot hardcode anything, or else we can only hardcode existing
13540 # directories.
13541 hardcode_action_CXX=unsupported
13542fi
64ff59ba 13543{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13544echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13545
13546if test "$hardcode_action_CXX" = relink; then
13547 # Fast installation is not supported
13548 enable_fast_install=no
13549elif test "$shlibpath_overrides_runpath" = yes ||
13550 test "$enable_shared" = no; then
13551 # Fast installation is not necessary
13552 enable_fast_install=needless
13553fi
13554
13555
13556# The else clause should only fire when bootstrapping the
13557# libtool distribution, otherwise you forgot to ship ltmain.sh
13558# with your package, and you will get complaints that there are
13559# no rules to generate ltmain.sh.
13560if test -f "$ltmain"; then
13561 # See if we are running on zsh, and set the options which allow our commands through
13562 # without removal of \ escapes.
13563 if test -n "${ZSH_VERSION+set}" ; then
13564 setopt NO_GLOB_SUBST
13565 fi
13566 # Now quote all the things that may contain metacharacters while being
13567 # careful not to overquote the AC_SUBSTed values. We take copies of the
13568 # variables and quote the copies for generation of the libtool script.
13569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13570 SED SHELL STRIP \
13571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13573 deplibs_check_method reload_flag reload_cmds need_locks \
13574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13575 lt_cv_sys_global_symbol_to_c_name_address \
13576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13577 old_postinstall_cmds old_postuninstall_cmds \
13578 compiler_CXX \
13579 CC_CXX \
13580 LD_CXX \
13581 lt_prog_compiler_wl_CXX \
13582 lt_prog_compiler_pic_CXX \
13583 lt_prog_compiler_static_CXX \
13584 lt_prog_compiler_no_builtin_flag_CXX \
13585 export_dynamic_flag_spec_CXX \
13586 thread_safe_flag_spec_CXX \
13587 whole_archive_flag_spec_CXX \
13588 enable_shared_with_static_runtimes_CXX \
13589 old_archive_cmds_CXX \
13590 old_archive_from_new_cmds_CXX \
13591 predep_objects_CXX \
13592 postdep_objects_CXX \
13593 predeps_CXX \
13594 postdeps_CXX \
13595 compiler_lib_search_path_CXX \
13596 archive_cmds_CXX \
13597 archive_expsym_cmds_CXX \
13598 postinstall_cmds_CXX \
13599 postuninstall_cmds_CXX \
13600 old_archive_from_expsyms_cmds_CXX \
13601 allow_undefined_flag_CXX \
13602 no_undefined_flag_CXX \
13603 export_symbols_cmds_CXX \
13604 hardcode_libdir_flag_spec_CXX \
13605 hardcode_libdir_flag_spec_ld_CXX \
13606 hardcode_libdir_separator_CXX \
13607 hardcode_automatic_CXX \
13608 module_cmds_CXX \
13609 module_expsym_cmds_CXX \
13610 lt_cv_prog_compiler_c_o_CXX \
0fde1ce3 13611 fix_srcfile_path_CXX \
d9898ee8 13612 exclude_expsyms_CXX \
13613 include_expsyms_CXX; do
13614
13615 case $var in
13616 old_archive_cmds_CXX | \
13617 old_archive_from_new_cmds_CXX | \
13618 archive_cmds_CXX | \
13619 archive_expsym_cmds_CXX | \
13620 module_cmds_CXX | \
13621 module_expsym_cmds_CXX | \
13622 old_archive_from_expsyms_cmds_CXX | \
13623 export_symbols_cmds_CXX | \
13624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13625 postinstall_cmds | postuninstall_cmds | \
13626 old_postinstall_cmds | old_postuninstall_cmds | \
13627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13628 # Double-quote double-evaled strings.
13629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13630 ;;
13631 *)
13632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13633 ;;
13634 esac
13635 done
13636
13637 case $lt_echo in
13638 *'\$0 --fallback-echo"')
13639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13640 ;;
13641 esac
13642
13643cfgfile="$ofile"
13644
13645 cat <<__EOF__ >> "$cfgfile"
13646# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13647
13648# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13649
13650# Shell to use when invoking shell scripts.
13651SHELL=$lt_SHELL
13652
13653# Whether or not to build shared libraries.
13654build_libtool_libs=$enable_shared
13655
13656# Whether or not to build static libraries.
13657build_old_libs=$enable_static
13658
13659# Whether or not to add -lc for building shared libraries.
13660build_libtool_need_lc=$archive_cmds_need_lc_CXX
13661
13662# Whether or not to disallow shared libs when runtime libs are static
13663allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13664
13665# Whether or not to optimize for fast installation.
13666fast_install=$enable_fast_install
13667
13668# The host system.
13669host_alias=$host_alias
13670host=$host
13671host_os=$host_os
13672
13673# The build system.
13674build_alias=$build_alias
13675build=$build
13676build_os=$build_os
13677
13678# An echo program that does not interpret backslashes.
13679echo=$lt_echo
13680
13681# The archiver.
13682AR=$lt_AR
13683AR_FLAGS=$lt_AR_FLAGS
13684
13685# A C compiler.
13686LTCC=$lt_LTCC
13687
13688# LTCC compiler flags.
13689LTCFLAGS=$lt_LTCFLAGS
13690
13691# A language-specific compiler.
13692CC=$lt_compiler_CXX
13693
13694# Is the compiler the GNU C compiler?
13695with_gcc=$GCC_CXX
13696
d9898ee8 13697# An ERE matcher.
13698EGREP=$lt_EGREP
13699
13700# The linker used to build libraries.
13701LD=$lt_LD_CXX
13702
13703# Whether we need hard or soft links.
13704LN_S=$lt_LN_S
13705
13706# A BSD-compatible nm program.
13707NM=$lt_NM
13708
13709# A symbol stripping program
13710STRIP=$lt_STRIP
13711
13712# Used to examine libraries when file_magic_cmd begins "file"
13713MAGIC_CMD=$MAGIC_CMD
13714
13715# Used on cygwin: DLL creation program.
13716DLLTOOL="$DLLTOOL"
13717
13718# Used on cygwin: object dumper.
13719OBJDUMP="$OBJDUMP"
13720
13721# Used on cygwin: assembler.
13722AS="$AS"
13723
13724# The name of the directory that contains temporary libtool files.
13725objdir=$objdir
13726
13727# How to create reloadable object files.
13728reload_flag=$lt_reload_flag
13729reload_cmds=$lt_reload_cmds
13730
13731# How to pass a linker flag through the compiler.
13732wl=$lt_lt_prog_compiler_wl_CXX
13733
13734# Object file suffix (normally "o").
13735objext="$ac_objext"
13736
13737# Old archive suffix (normally "a").
13738libext="$libext"
13739
13740# Shared library suffix (normally ".so").
13741shrext_cmds='$shrext_cmds'
13742
13743# Executable file suffix (normally "").
13744exeext="$exeext"
13745
13746# Additional compiler flags for building library objects.
13747pic_flag=$lt_lt_prog_compiler_pic_CXX
13748pic_mode=$pic_mode
13749
13750# What is the maximum length of a command?
13751max_cmd_len=$lt_cv_sys_max_cmd_len
13752
13753# Does compiler simultaneously support -c and -o options?
13754compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13755
13756# Must we lock files when doing compilation?
13757need_locks=$lt_need_locks
13758
13759# Do we need the lib prefix for modules?
13760need_lib_prefix=$need_lib_prefix
13761
13762# Do we need a version for libraries?
13763need_version=$need_version
13764
13765# Whether dlopen is supported.
13766dlopen_support=$enable_dlopen
13767
13768# Whether dlopen of programs is supported.
13769dlopen_self=$enable_dlopen_self
13770
13771# Whether dlopen of statically linked programs is supported.
13772dlopen_self_static=$enable_dlopen_self_static
13773
13774# Compiler flag to prevent dynamic linking.
13775link_static_flag=$lt_lt_prog_compiler_static_CXX
13776
13777# Compiler flag to turn off builtin functions.
13778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13779
13780# Compiler flag to allow reflexive dlopens.
13781export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13782
13783# Compiler flag to generate shared objects directly from archives.
13784whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13785
13786# Compiler flag to generate thread-safe objects.
13787thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13788
13789# Library versioning type.
13790version_type=$version_type
13791
13792# Format of library name prefix.
13793libname_spec=$lt_libname_spec
13794
13795# List of archive names. First name is the real one, the rest are links.
13796# The last name is the one that the linker finds with -lNAME.
13797library_names_spec=$lt_library_names_spec
13798
13799# The coded name of the library, if different from the real name.
13800soname_spec=$lt_soname_spec
13801
13802# Commands used to build and install an old-style archive.
13803RANLIB=$lt_RANLIB
13804old_archive_cmds=$lt_old_archive_cmds_CXX
13805old_postinstall_cmds=$lt_old_postinstall_cmds
13806old_postuninstall_cmds=$lt_old_postuninstall_cmds
13807
13808# Create an old-style archive from a shared archive.
13809old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13810
13811# Create a temporary old-style archive to link instead of a shared archive.
13812old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13813
13814# Commands used to build and install a shared archive.
13815archive_cmds=$lt_archive_cmds_CXX
13816archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13817postinstall_cmds=$lt_postinstall_cmds
13818postuninstall_cmds=$lt_postuninstall_cmds
13819
13820# Commands used to build a loadable module (assumed same as above if empty)
13821module_cmds=$lt_module_cmds_CXX
13822module_expsym_cmds=$lt_module_expsym_cmds_CXX
13823
13824# Commands to strip libraries.
13825old_striplib=$lt_old_striplib
13826striplib=$lt_striplib
13827
13828# Dependencies to place before the objects being linked to create a
13829# shared library.
64ff59ba 13830predep_objects=$lt_predep_objects_CXX
d9898ee8 13831
13832# Dependencies to place after the objects being linked to create a
13833# shared library.
64ff59ba 13834postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13835
13836# Dependencies to place before the objects being linked to create a
13837# shared library.
13838predeps=$lt_predeps_CXX
13839
13840# Dependencies to place after the objects being linked to create a
13841# shared library.
13842postdeps=$lt_postdeps_CXX
13843
13844# The library search path used internally by the compiler when linking
13845# a shared library.
64ff59ba 13846compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13847
13848# Method to check whether dependent libraries are shared objects.
13849deplibs_check_method=$lt_deplibs_check_method
13850
13851# Command to use when deplibs_check_method == file_magic.
13852file_magic_cmd=$lt_file_magic_cmd
13853
13854# Flag that allows shared libraries with undefined symbols to be built.
13855allow_undefined_flag=$lt_allow_undefined_flag_CXX
13856
13857# Flag that forces no undefined symbols.
13858no_undefined_flag=$lt_no_undefined_flag_CXX
13859
13860# Commands used to finish a libtool library installation in a directory.
13861finish_cmds=$lt_finish_cmds
13862
13863# Same as above, but a single script fragment to be evaled but not shown.
13864finish_eval=$lt_finish_eval
13865
13866# Take the output of nm and produce a listing of raw symbols and C names.
13867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13868
13869# Transform the output of nm in a proper C declaration
13870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13871
13872# Transform the output of nm in a C name address pair
13873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13874
13875# This is the shared library runtime path variable.
13876runpath_var=$runpath_var
13877
13878# This is the shared library path variable.
13879shlibpath_var=$shlibpath_var
13880
13881# Is shlibpath searched before the hard-coded library search path?
13882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13883
13884# How to hardcode a shared library path into an executable.
13885hardcode_action=$hardcode_action_CXX
13886
13887# Whether we should hardcode library paths into libraries.
13888hardcode_into_libs=$hardcode_into_libs
13889
13890# Flag to hardcode \$libdir into a binary during linking.
13891# This must work even if \$libdir does not exist.
13892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13893
13894# If ld is used when linking, flag to hardcode \$libdir into
13895# a binary during linking. This must work even if \$libdir does
13896# not exist.
13897hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13898
13899# Whether we need a single -rpath flag with a separated argument.
13900hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13901
13902# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13903# resulting binary.
13904hardcode_direct=$hardcode_direct_CXX
13905
13906# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13907# resulting binary.
13908hardcode_minus_L=$hardcode_minus_L_CXX
13909
13910# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13911# the resulting binary.
13912hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13913
13914# Set to yes if building a shared library automatically hardcodes DIR into the library
13915# and all subsequent libraries and executables linked against it.
13916hardcode_automatic=$hardcode_automatic_CXX
13917
13918# Variables whose values should be saved in libtool wrapper scripts and
13919# restored at relink time.
13920variables_saved_for_relink="$variables_saved_for_relink"
13921
13922# Whether libtool must link a program against all its dependency libraries.
13923link_all_deplibs=$link_all_deplibs_CXX
13924
13925# Compile-time system search path for libraries
64ff59ba 13926sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13927
13928# Run-time system search path for libraries
13929sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13930
13931# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 13932fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 13933
13934# Set to yes if exported symbols are required.
13935always_export_symbols=$always_export_symbols_CXX
13936
13937# The commands to list exported symbols.
13938export_symbols_cmds=$lt_export_symbols_cmds_CXX
13939
13940# The commands to extract the exported symbol list from a shared archive.
13941extract_expsyms_cmds=$lt_extract_expsyms_cmds
13942
13943# Symbols that should not be listed in the preloaded symbols.
13944exclude_expsyms=$lt_exclude_expsyms_CXX
13945
13946# Symbols that must always be exported.
13947include_expsyms=$lt_include_expsyms_CXX
13948
13949# ### END LIBTOOL TAG CONFIG: $tagname
13950
13951__EOF__
13952
13953
13954else
13955 # If there is no Makefile yet, we rely on a make rule to execute
13956 # `config.status --recheck' to rerun these tests and create the
13957 # libtool script then.
13958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13959 if test -f "$ltmain_in"; then
13960 test -f Makefile && make "$ltmain"
13961 fi
13962fi
13963
13964
13965ac_ext=c
13966ac_cpp='$CPP $CPPFLAGS'
13967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970
13971CC=$lt_save_CC
13972LDCXX=$LD
13973LD=$lt_save_LD
13974GCC=$lt_save_GCC
13975with_gnu_ldcxx=$with_gnu_ld
13976with_gnu_ld=$lt_save_with_gnu_ld
13977lt_cv_path_LDCXX=$lt_cv_path_LD
13978lt_cv_path_LD=$lt_save_path_LD
13979lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13980lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13981
13982 else
13983 tagname=""
13984 fi
13985 ;;
13986
13987 F77)
13988 if test -n "$F77" && test "X$F77" != "Xno"; then
13989
13990ac_ext=f
13991ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13992ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13993ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13994
13995
13996archive_cmds_need_lc_F77=no
13997allow_undefined_flag_F77=
13998always_export_symbols_F77=no
13999archive_expsym_cmds_F77=
14000export_dynamic_flag_spec_F77=
14001hardcode_direct_F77=no
14002hardcode_libdir_flag_spec_F77=
14003hardcode_libdir_flag_spec_ld_F77=
14004hardcode_libdir_separator_F77=
14005hardcode_minus_L_F77=no
14006hardcode_automatic_F77=no
14007module_cmds_F77=
14008module_expsym_cmds_F77=
14009link_all_deplibs_F77=unknown
14010old_archive_cmds_F77=$old_archive_cmds
14011no_undefined_flag_F77=
14012whole_archive_flag_spec_F77=
14013enable_shared_with_static_runtimes_F77=no
14014
14015# Source file extension for f77 test sources.
14016ac_ext=f
14017
14018# Object file extension for compiled f77 test sources.
14019objext=o
14020objext_F77=$objext
14021
14022# Code to be used in simple compile tests
0fde1ce3 14023lt_simple_compile_test_code="\
14024 subroutine t
14025 return
14026 end
14027"
d9898ee8 14028
14029# Code to be used in simple link tests
0fde1ce3 14030lt_simple_link_test_code="\
14031 program t
14032 end
14033"
d9898ee8 14034
14035# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14036
14037# If no C compiler was specified, use CC.
14038LTCC=${LTCC-"$CC"}
14039
14040# If no C compiler flags were specified, use CFLAGS.
14041LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14042
14043# Allow CC to be a program name with arguments.
14044compiler=$CC
14045
14046
14047# save warnings/boilerplate of simple test code
14048ac_outfile=conftest.$ac_objext
0fde1ce3 14049echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 14050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14051_lt_compiler_boilerplate=`cat conftest.err`
14052$rm conftest*
14053
14054ac_outfile=conftest.$ac_objext
0fde1ce3 14055echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 14056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14057_lt_linker_boilerplate=`cat conftest.err`
14058$rm conftest*
14059
14060
14061# Allow CC to be a program name with arguments.
14062lt_save_CC="$CC"
14063CC=${F77-"f77"}
14064compiler=$CC
14065compiler_F77=$CC
14066for cc_temp in $compiler""; do
14067 case $cc_temp in
14068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14070 \-*) ;;
14071 *) break;;
14072 esac
14073done
14074cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14075
14076
64ff59ba 14077{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14078echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14079{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14080echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 14081
64ff59ba 14082{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14083echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 14084test "$can_build_shared" = "no" && enable_shared=no
14085
14086# On AIX, shared libraries and static libraries use the same namespace, and
14087# are all built from PIC.
14088case $host_os in
14089aix3*)
14090 test "$enable_shared" = yes && enable_static=no
14091 if test -n "$RANLIB"; then
14092 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14093 postinstall_cmds='$RANLIB $lib'
14094 fi
14095 ;;
14096aix4* | aix5*)
14097 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14098 test "$enable_shared" = yes && enable_static=no
14099 fi
14100 ;;
14101esac
64ff59ba 14102{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14103echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 14104
64ff59ba 14105{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14106echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 14107# Make sure either enable_shared or enable_static is yes.
14108test "$enable_shared" = yes || enable_static=yes
64ff59ba 14109{ echo "$as_me:$LINENO: result: $enable_static" >&5
14110echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 14111
14112GCC_F77="$G77"
14113LD_F77="$LD"
14114
14115lt_prog_compiler_wl_F77=
14116lt_prog_compiler_pic_F77=
14117lt_prog_compiler_static_F77=
14118
64ff59ba 14119{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14120echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 14121
14122 if test "$GCC" = yes; then
14123 lt_prog_compiler_wl_F77='-Wl,'
14124 lt_prog_compiler_static_F77='-static'
14125
14126 case $host_os in
14127 aix*)
14128 # All AIX code is PIC.
14129 if test "$host_cpu" = ia64; then
14130 # AIX 5 now supports IA64 processor
14131 lt_prog_compiler_static_F77='-Bstatic'
14132 fi
14133 ;;
14134
14135 amigaos*)
14136 # FIXME: we need at least 68020 code to build shared libraries, but
14137 # adding the `-m68020' flag to GCC prevents building anything better,
14138 # like `-m68040'.
14139 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14140 ;;
14141
0fde1ce3 14142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 14143 # PIC is the default for these OSes.
14144 ;;
14145
0fde1ce3 14146 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14147 # This hack is so that the source file can tell whether it is being
14148 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 14149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14150 # (--disable-auto-import) libraries
d9898ee8 14151 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14152 ;;
14153
14154 darwin* | rhapsody*)
14155 # PIC is the default on this platform
14156 # Common symbols not allowed in MH_DYLIB files
14157 lt_prog_compiler_pic_F77='-fno-common'
14158 ;;
14159
0fde1ce3 14160 interix[3-9]*)
d9898ee8 14161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14162 # Instead, we relocate shared libraries at runtime.
14163 ;;
14164
14165 msdosdjgpp*)
14166 # Just because we use GCC doesn't mean we suddenly get shared libraries
14167 # on systems that don't support them.
14168 lt_prog_compiler_can_build_shared_F77=no
14169 enable_shared=no
14170 ;;
14171
14172 sysv4*MP*)
14173 if test -d /usr/nec; then
14174 lt_prog_compiler_pic_F77=-Kconform_pic
14175 fi
14176 ;;
14177
14178 hpux*)
14179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14180 # not for PA HP-UX.
14181 case $host_cpu in
14182 hppa*64*|ia64*)
14183 # +Z the default
14184 ;;
14185 *)
14186 lt_prog_compiler_pic_F77='-fPIC'
14187 ;;
14188 esac
14189 ;;
14190
14191 *)
14192 lt_prog_compiler_pic_F77='-fPIC'
14193 ;;
14194 esac
14195 else
14196 # PORTME Check for flag to pass linker flags through the system compiler.
14197 case $host_os in
14198 aix*)
14199 lt_prog_compiler_wl_F77='-Wl,'
14200 if test "$host_cpu" = ia64; then
14201 # AIX 5 now supports IA64 processor
14202 lt_prog_compiler_static_F77='-Bstatic'
14203 else
14204 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14205 fi
14206 ;;
14207 darwin*)
14208 # PIC is the default on this platform
14209 # Common symbols not allowed in MH_DYLIB files
14210 case $cc_basename in
14211 xlc*)
14212 lt_prog_compiler_pic_F77='-qnocommon'
14213 lt_prog_compiler_wl_F77='-Wl,'
14214 ;;
14215 esac
14216 ;;
14217
0fde1ce3 14218 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14219 # This hack is so that the source file can tell whether it is being
14220 # built for inclusion in a dll (and should export symbols for example).
14221 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14222 ;;
14223
14224 hpux9* | hpux10* | hpux11*)
14225 lt_prog_compiler_wl_F77='-Wl,'
14226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14227 # not for PA HP-UX.
14228 case $host_cpu in
14229 hppa*64*|ia64*)
14230 # +Z the default
14231 ;;
14232 *)
14233 lt_prog_compiler_pic_F77='+Z'
14234 ;;
14235 esac
14236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14237 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14238 ;;
14239
14240 irix5* | irix6* | nonstopux*)
14241 lt_prog_compiler_wl_F77='-Wl,'
14242 # PIC (with -KPIC) is the default.
14243 lt_prog_compiler_static_F77='-non_shared'
14244 ;;
14245
14246 newsos6)
14247 lt_prog_compiler_pic_F77='-KPIC'
14248 lt_prog_compiler_static_F77='-Bstatic'
14249 ;;
14250
0fde1ce3 14251 linux* | k*bsd*-gnu)
d9898ee8 14252 case $cc_basename in
14253 icc* | ecc*)
14254 lt_prog_compiler_wl_F77='-Wl,'
14255 lt_prog_compiler_pic_F77='-KPIC'
14256 lt_prog_compiler_static_F77='-static'
14257 ;;
14258 pgcc* | pgf77* | pgf90* | pgf95*)
14259 # Portland Group compilers (*not* the Pentium gcc compiler,
14260 # which looks to be a dead project)
14261 lt_prog_compiler_wl_F77='-Wl,'
14262 lt_prog_compiler_pic_F77='-fpic'
14263 lt_prog_compiler_static_F77='-Bstatic'
14264 ;;
14265 ccc*)
14266 lt_prog_compiler_wl_F77='-Wl,'
14267 # All Alpha code is PIC.
14268 lt_prog_compiler_static_F77='-non_shared'
14269 ;;
0fde1ce3 14270 *)
14271 case `$CC -V 2>&1 | sed 5q` in
14272 *Sun\ C*)
14273 # Sun C 5.9
14274 lt_prog_compiler_pic_F77='-KPIC'
14275 lt_prog_compiler_static_F77='-Bstatic'
14276 lt_prog_compiler_wl_F77='-Wl,'
14277 ;;
14278 *Sun\ F*)
14279 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14280 lt_prog_compiler_pic_F77='-KPIC'
14281 lt_prog_compiler_static_F77='-Bstatic'
14282 lt_prog_compiler_wl_F77=''
14283 ;;
14284 esac
14285 ;;
d9898ee8 14286 esac
14287 ;;
14288
14289 osf3* | osf4* | osf5*)
14290 lt_prog_compiler_wl_F77='-Wl,'
14291 # All OSF/1 code is PIC.
14292 lt_prog_compiler_static_F77='-non_shared'
14293 ;;
14294
0fde1ce3 14295 rdos*)
14296 lt_prog_compiler_static_F77='-non_shared'
14297 ;;
14298
d9898ee8 14299 solaris*)
14300 lt_prog_compiler_pic_F77='-KPIC'
14301 lt_prog_compiler_static_F77='-Bstatic'
14302 case $cc_basename in
14303 f77* | f90* | f95*)
14304 lt_prog_compiler_wl_F77='-Qoption ld ';;
14305 *)
14306 lt_prog_compiler_wl_F77='-Wl,';;
14307 esac
14308 ;;
14309
14310 sunos4*)
14311 lt_prog_compiler_wl_F77='-Qoption ld '
14312 lt_prog_compiler_pic_F77='-PIC'
14313 lt_prog_compiler_static_F77='-Bstatic'
14314 ;;
14315
14316 sysv4 | sysv4.2uw2* | sysv4.3*)
14317 lt_prog_compiler_wl_F77='-Wl,'
14318 lt_prog_compiler_pic_F77='-KPIC'
14319 lt_prog_compiler_static_F77='-Bstatic'
14320 ;;
14321
14322 sysv4*MP*)
14323 if test -d /usr/nec ;then
14324 lt_prog_compiler_pic_F77='-Kconform_pic'
14325 lt_prog_compiler_static_F77='-Bstatic'
14326 fi
14327 ;;
14328
14329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14330 lt_prog_compiler_wl_F77='-Wl,'
14331 lt_prog_compiler_pic_F77='-KPIC'
14332 lt_prog_compiler_static_F77='-Bstatic'
14333 ;;
14334
14335 unicos*)
14336 lt_prog_compiler_wl_F77='-Wl,'
14337 lt_prog_compiler_can_build_shared_F77=no
14338 ;;
14339
14340 uts4*)
14341 lt_prog_compiler_pic_F77='-pic'
14342 lt_prog_compiler_static_F77='-Bstatic'
14343 ;;
14344
14345 *)
14346 lt_prog_compiler_can_build_shared_F77=no
14347 ;;
14348 esac
14349 fi
14350
64ff59ba 14351{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14352echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14353
14354#
14355# Check to make sure the PIC flag actually works.
14356#
14357if test -n "$lt_prog_compiler_pic_F77"; then
14358
64ff59ba 14359{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14360echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14361if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 lt_prog_compiler_pic_works_F77=no
14365 ac_outfile=conftest.$ac_objext
0fde1ce3 14366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14367 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14368 # Insert the option either (1) after the last *FLAGS variable, or
14369 # (2) before a word containing "conftest.", or (3) at the end.
14370 # Note that $ac_compile itself does not contain backslashes and begins
14371 # with a dollar sign (not a hyphen), so the echo should work correctly.
14372 # The option is referenced via a variable to avoid confusing sed.
14373 lt_compile=`echo "$ac_compile" | $SED \
14374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14376 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 14377 (eval echo "\"\$as_me:14377: $lt_compile\"" >&5)
d9898ee8 14378 (eval "$lt_compile" 2>conftest.err)
14379 ac_status=$?
14380 cat conftest.err >&5
0fde1ce3 14381 echo "$as_me:14381: \$? = $ac_status" >&5
d9898ee8 14382 if (exit $ac_status) && test -s "$ac_outfile"; then
14383 # The compiler can only warn and ignore the option if not recognized
14384 # So say no if there are warnings other than the usual output.
14385 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14387 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14388 lt_prog_compiler_pic_works_F77=yes
14389 fi
14390 fi
14391 $rm conftest*
14392
14393fi
64ff59ba 14394{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14395echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14396
14397if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14398 case $lt_prog_compiler_pic_F77 in
14399 "" | " "*) ;;
14400 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14401 esac
14402else
14403 lt_prog_compiler_pic_F77=
14404 lt_prog_compiler_can_build_shared_F77=no
14405fi
14406
14407fi
14408case $host_os in
14409 # For platforms which do not support PIC, -DPIC is meaningless:
14410 *djgpp*)
14411 lt_prog_compiler_pic_F77=
14412 ;;
14413 *)
14414 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14415 ;;
14416esac
14417
14418#
14419# Check to make sure the static flag actually works.
14420#
14421wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14422{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14423echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14424if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427 lt_prog_compiler_static_works_F77=no
14428 save_LDFLAGS="$LDFLAGS"
14429 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 14430 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14432 # The linker can only warn and ignore the option if not recognized
14433 # So say no if there are warnings
14434 if test -s conftest.err; then
14435 # Append any errors to the config.log.
14436 cat conftest.err 1>&5
14437 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14439 if diff conftest.exp conftest.er2 >/dev/null; then
14440 lt_prog_compiler_static_works_F77=yes
14441 fi
14442 else
14443 lt_prog_compiler_static_works_F77=yes
14444 fi
14445 fi
14446 $rm conftest*
14447 LDFLAGS="$save_LDFLAGS"
14448
14449fi
64ff59ba 14450{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14451echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14452
14453if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14454 :
14455else
14456 lt_prog_compiler_static_F77=
14457fi
14458
14459
64ff59ba 14460{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14461echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14462if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464else
14465 lt_cv_prog_compiler_c_o_F77=no
14466 $rm -r conftest 2>/dev/null
14467 mkdir conftest
14468 cd conftest
14469 mkdir out
0fde1ce3 14470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14471
14472 lt_compiler_flag="-o out/conftest2.$ac_objext"
14473 # Insert the option either (1) after the last *FLAGS variable, or
14474 # (2) before a word containing "conftest.", or (3) at the end.
14475 # Note that $ac_compile itself does not contain backslashes and begins
14476 # with a dollar sign (not a hyphen), so the echo should work correctly.
14477 lt_compile=`echo "$ac_compile" | $SED \
14478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 14481 (eval echo "\"\$as_me:14481: $lt_compile\"" >&5)
d9898ee8 14482 (eval "$lt_compile" 2>out/conftest.err)
14483 ac_status=$?
14484 cat out/conftest.err >&5
0fde1ce3 14485 echo "$as_me:14485: \$? = $ac_status" >&5
d9898ee8 14486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14487 then
14488 # The compiler can only warn and ignore the option if not recognized
14489 # So say no if there are warnings
14490 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14493 lt_cv_prog_compiler_c_o_F77=yes
14494 fi
14495 fi
14496 chmod u+w . 2>&5
14497 $rm conftest*
14498 # SGI C++ compiler will create directory out/ii_files/ for
14499 # template instantiation
14500 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14501 $rm out/* && rmdir out
14502 cd ..
14503 rmdir conftest
14504 $rm conftest*
14505
14506fi
64ff59ba 14507{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14508echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14509
14510
14511hard_links="nottested"
14512if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14513 # do not overwrite the value of need_locks provided by the user
64ff59ba 14514 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14515echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14516 hard_links=yes
14517 $rm conftest*
14518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14519 touch conftest.a
14520 ln conftest.a conftest.b 2>&5 || hard_links=no
14521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14522 { echo "$as_me:$LINENO: result: $hard_links" >&5
14523echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14524 if test "$hard_links" = no; then
14525 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14526echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14527 need_locks=warn
14528 fi
14529else
14530 need_locks=no
14531fi
14532
64ff59ba 14533{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14534echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14535
14536 runpath_var=
14537 allow_undefined_flag_F77=
14538 enable_shared_with_static_runtimes_F77=no
14539 archive_cmds_F77=
14540 archive_expsym_cmds_F77=
14541 old_archive_From_new_cmds_F77=
14542 old_archive_from_expsyms_cmds_F77=
14543 export_dynamic_flag_spec_F77=
14544 whole_archive_flag_spec_F77=
14545 thread_safe_flag_spec_F77=
14546 hardcode_libdir_flag_spec_F77=
14547 hardcode_libdir_flag_spec_ld_F77=
14548 hardcode_libdir_separator_F77=
14549 hardcode_direct_F77=no
14550 hardcode_minus_L_F77=no
14551 hardcode_shlibpath_var_F77=unsupported
14552 link_all_deplibs_F77=unknown
14553 hardcode_automatic_F77=no
14554 module_cmds_F77=
14555 module_expsym_cmds_F77=
14556 always_export_symbols_F77=no
14557 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14558 # include_expsyms should be a list of space-separated symbols to be *always*
14559 # included in the symbol list
14560 include_expsyms_F77=
14561 # exclude_expsyms can be an extended regexp of symbols to exclude
14562 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14563 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14564 # as well as any symbol that contains `d'.
14565 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14566 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14567 # platforms (ab)use it in PIC code, but their linkers get confused if
14568 # the symbol is explicitly referenced. Since portable code cannot
14569 # rely on this symbol name, it's probably fine to never include it in
14570 # preloaded symbol tables.
14571 extract_expsyms_cmds=
14572 # Just being paranoid about ensuring that cc_basename is set.
14573 for cc_temp in $compiler""; do
14574 case $cc_temp in
14575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14577 \-*) ;;
14578 *) break;;
14579 esac
14580done
14581cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14582
14583 case $host_os in
14584 cygwin* | mingw* | pw32*)
14585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14586 # When not using gcc, we currently assume that we are using
14587 # Microsoft Visual C++.
14588 if test "$GCC" != yes; then
14589 with_gnu_ld=no
14590 fi
14591 ;;
14592 interix*)
14593 # we just hope/assume this is gcc and not c89 (= MSVC++)
14594 with_gnu_ld=yes
14595 ;;
14596 openbsd*)
14597 with_gnu_ld=no
14598 ;;
14599 esac
14600
14601 ld_shlibs_F77=yes
14602 if test "$with_gnu_ld" = yes; then
14603 # If archive_cmds runs LD, not CC, wlarc should be empty
14604 wlarc='${wl}'
14605
14606 # Set some defaults for GNU ld with shared library support. These
14607 # are reset later if shared libraries are not supported. Putting them
14608 # here allows them to be overridden if necessary.
14609 runpath_var=LD_RUN_PATH
14610 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14611 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14612 # ancient GNU ld didn't support --whole-archive et. al.
14613 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14614 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14615 else
14616 whole_archive_flag_spec_F77=
14617 fi
14618 supports_anon_versioning=no
14619 case `$LD -v 2>/dev/null` in
14620 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14621 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14622 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14623 *\ 2.11.*) ;; # other 2.11 versions
14624 *) supports_anon_versioning=yes ;;
14625 esac
14626
14627 # See if GNU ld supports shared libraries.
14628 case $host_os in
14629 aix3* | aix4* | aix5*)
14630 # On AIX/PPC, the GNU linker is very broken
14631 if test "$host_cpu" != ia64; then
14632 ld_shlibs_F77=no
14633 cat <<EOF 1>&2
14634
14635*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14636*** to be unable to reliably create shared libraries on AIX.
14637*** Therefore, libtool is disabling shared libraries support. If you
14638*** really care for shared libraries, you may want to modify your PATH
14639*** so that a non-GNU linker is found, and then restart.
14640
14641EOF
14642 fi
14643 ;;
14644
14645 amigaos*)
14646 archive_cmds_F77='$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)'
14647 hardcode_libdir_flag_spec_F77='-L$libdir'
14648 hardcode_minus_L_F77=yes
14649
14650 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14651 # that the semantics of dynamic libraries on AmigaOS, at least up
14652 # to version 4, is to share data among multiple programs linked
14653 # with the same dynamic library. Since this doesn't match the
14654 # behavior of shared libraries on other platforms, we can't use
14655 # them.
14656 ld_shlibs_F77=no
14657 ;;
14658
14659 beos*)
14660 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14661 allow_undefined_flag_F77=unsupported
14662 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14663 # support --undefined. This deserves some investigation. FIXME
14664 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14665 else
14666 ld_shlibs_F77=no
14667 fi
14668 ;;
14669
14670 cygwin* | mingw* | pw32*)
14671 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14672 # as there is no search path for DLLs.
14673 hardcode_libdir_flag_spec_F77='-L$libdir'
14674 allow_undefined_flag_F77=unsupported
14675 always_export_symbols_F77=no
14676 enable_shared_with_static_runtimes_F77=yes
0fde1ce3 14677 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14678
14679 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14680 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14681 # If the export-symbols file already is a .def file (1st line
14682 # is EXPORTS), use it as is; otherwise, prepend...
14683 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14684 cp $export_symbols $output_objdir/$soname.def;
14685 else
14686 echo EXPORTS > $output_objdir/$soname.def;
14687 cat $export_symbols >> $output_objdir/$soname.def;
14688 fi~
14689 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14690 else
14691 ld_shlibs_F77=no
14692 fi
14693 ;;
14694
0fde1ce3 14695 interix[3-9]*)
d9898ee8 14696 hardcode_direct_F77=no
14697 hardcode_shlibpath_var_F77=no
14698 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14699 export_dynamic_flag_spec_F77='${wl}-E'
14700 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14701 # Instead, shared libraries are loaded at an image base (0x10000000 by
14702 # default) and relocated if they conflict, which is a slow very memory
14703 # consuming and fragmenting process. To avoid this, we pick a random,
14704 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14705 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14706 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14707 archive_expsym_cmds_F77='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'
14708 ;;
14709
0fde1ce3 14710 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14712 tmp_addflag=
14713 case $cc_basename,$host_cpu in
14714 pgcc*) # Portland Group C compiler
14715 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14716 tmp_addflag=' $pic_flag'
14717 ;;
14718 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14719 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14720 tmp_addflag=' $pic_flag -Mnomain' ;;
14721 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14722 tmp_addflag=' -i_dynamic' ;;
14723 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14724 tmp_addflag=' -i_dynamic -nofor_main' ;;
14725 ifc* | ifort*) # Intel Fortran compiler
14726 tmp_addflag=' -nofor_main' ;;
14727 esac
0fde1ce3 14728 case `$CC -V 2>&1 | sed 5q` in
14729 *Sun\ C*) # Sun C 5.9
14730 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14731 tmp_sharedflag='-G' ;;
14732 *Sun\ F*) # Sun Fortran 8.3
14733 tmp_sharedflag='-G' ;;
14734 *)
14735 tmp_sharedflag='-shared' ;;
14736 esac
14737 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14738
14739 if test $supports_anon_versioning = yes; then
14740 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14742 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 14743 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14744 fi
14745 else
14746 ld_shlibs_F77=no
14747 fi
14748 ;;
14749
14750 netbsd*)
14751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14752 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14753 wlarc=
14754 else
14755 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14756 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14757 fi
14758 ;;
14759
14760 solaris*)
14761 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14762 ld_shlibs_F77=no
14763 cat <<EOF 1>&2
14764
14765*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14766*** create shared libraries on Solaris systems. Therefore, libtool
14767*** is disabling shared libraries support. We urge you to upgrade GNU
14768*** binutils to release 2.9.1 or newer. Another option is to modify
14769*** your PATH or compiler configuration so that the native linker is
14770*** used, and then restart.
14771
14772EOF
14773 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14774 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14776 else
14777 ld_shlibs_F77=no
14778 fi
14779 ;;
14780
14781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14782 case `$LD -v 2>&1` in
14783 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14784 ld_shlibs_F77=no
14785 cat <<_LT_EOF 1>&2
14786
14787*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14788*** reliably create shared libraries on SCO systems. Therefore, libtool
14789*** is disabling shared libraries support. We urge you to upgrade GNU
14790*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14791*** your PATH or compiler configuration so that the native linker is
14792*** used, and then restart.
14793
14794_LT_EOF
14795 ;;
14796 *)
14797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14798 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14799 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14800 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14801 else
14802 ld_shlibs_F77=no
14803 fi
14804 ;;
14805 esac
14806 ;;
14807
14808 sunos4*)
14809 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14810 wlarc=
14811 hardcode_direct_F77=yes
14812 hardcode_shlibpath_var_F77=no
14813 ;;
14814
14815 *)
14816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14817 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14818 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14819 else
14820 ld_shlibs_F77=no
14821 fi
14822 ;;
14823 esac
14824
14825 if test "$ld_shlibs_F77" = no; then
14826 runpath_var=
14827 hardcode_libdir_flag_spec_F77=
14828 export_dynamic_flag_spec_F77=
14829 whole_archive_flag_spec_F77=
14830 fi
14831 else
14832 # PORTME fill in a description of your system's linker (not GNU ld)
14833 case $host_os in
14834 aix3*)
14835 allow_undefined_flag_F77=unsupported
14836 always_export_symbols_F77=yes
14837 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14838 # Note: this linker hardcodes the directories in LIBPATH if there
14839 # are no directories specified by -L.
14840 hardcode_minus_L_F77=yes
14841 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14842 # Neither direct hardcoding nor static linking is supported with a
14843 # broken collect2.
14844 hardcode_direct_F77=unsupported
14845 fi
14846 ;;
14847
14848 aix4* | aix5*)
14849 if test "$host_cpu" = ia64; then
14850 # On IA64, the linker does run time linking by default, so we don't
14851 # have to do anything special.
14852 aix_use_runtimelinking=no
14853 exp_sym_flag='-Bexport'
14854 no_entry_flag=""
14855 else
14856 # If we're using GNU nm, then we don't want the "-C" option.
14857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14858 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14859 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14860 else
14861 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14862 fi
14863 aix_use_runtimelinking=no
14864
14865 # Test if we are trying to use run time linking or normal
14866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14867 # need to do runtime linking.
14868 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14869 for ld_flag in $LDFLAGS; do
14870 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14871 aix_use_runtimelinking=yes
14872 break
14873 fi
14874 done
14875 ;;
14876 esac
14877
14878 exp_sym_flag='-bexport'
14879 no_entry_flag='-bnoentry'
14880 fi
14881
14882 # When large executables or shared objects are built, AIX ld can
14883 # have problems creating the table of contents. If linking a library
14884 # or program results in "error TOC overflow" add -mminimal-toc to
14885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14887
14888 archive_cmds_F77=''
14889 hardcode_direct_F77=yes
14890 hardcode_libdir_separator_F77=':'
14891 link_all_deplibs_F77=yes
14892
14893 if test "$GCC" = yes; then
14894 case $host_os in aix4.[012]|aix4.[012].*)
14895 # We only want to do this on AIX 4.2 and lower, the check
14896 # below for broken collect2 doesn't work under 4.3+
14897 collect2name=`${CC} -print-prog-name=collect2`
14898 if test -f "$collect2name" && \
14899 strings "$collect2name" | grep resolve_lib_name >/dev/null
14900 then
14901 # We have reworked collect2
0fde1ce3 14902 :
d9898ee8 14903 else
14904 # We have old collect2
14905 hardcode_direct_F77=unsupported
14906 # It fails to find uninstalled libraries when the uninstalled
14907 # path is not listed in the libpath. Setting hardcode_minus_L
14908 # to unsupported forces relinking
14909 hardcode_minus_L_F77=yes
14910 hardcode_libdir_flag_spec_F77='-L$libdir'
14911 hardcode_libdir_separator_F77=
14912 fi
14913 ;;
14914 esac
14915 shared_flag='-shared'
14916 if test "$aix_use_runtimelinking" = yes; then
14917 shared_flag="$shared_flag "'${wl}-G'
14918 fi
14919 else
14920 # not using gcc
14921 if test "$host_cpu" = ia64; then
14922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14923 # chokes on -Wl,-G. The following line is correct:
14924 shared_flag='-G'
14925 else
14926 if test "$aix_use_runtimelinking" = yes; then
14927 shared_flag='${wl}-G'
14928 else
14929 shared_flag='${wl}-bM:SRE'
14930 fi
14931 fi
14932 fi
14933
14934 # It seems that -bexpall does not export symbols beginning with
14935 # underscore (_), so it is better to generate a list of symbols to export.
14936 always_export_symbols_F77=yes
14937 if test "$aix_use_runtimelinking" = yes; then
14938 # Warning - without using the other runtime loading flags (-brtl),
14939 # -berok will link without error, but may produce a broken library.
14940 allow_undefined_flag_F77='-berok'
14941 # Determine the default libpath from the value encoded in an empty executable.
14942 cat >conftest.$ac_ext <<_ACEOF
14943 program main
14944
14945 end
14946_ACEOF
14947rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14948if { (ac_try="$ac_link"
14949case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952esac
14953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_link") 2>conftest.er1
d9898ee8 14955 ac_status=$?
14956 grep -v '^ *+' conftest.er1 >conftest.err
14957 rm -f conftest.er1
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14960 (exit $ac_status); } && {
14961 test -z "$ac_f77_werror_flag" ||
14962 test ! -s conftest.err
14963 } && test -s conftest$ac_exeext &&
14964 $as_test_x conftest$ac_exeext; then
d9898ee8 14965
0fde1ce3 14966lt_aix_libpath_sed='
14967 /Import File Strings/,/^$/ {
14968 /^0/ {
14969 s/^0 *\(.*\)$/\1/
14970 p
14971 }
14972 }'
14973aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14974# Check for a 64-bit object if we didn't find anything.
0fde1ce3 14975if test -z "$aix_libpath"; then
14976 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14977fi
d9898ee8 14978else
14979 echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
64ff59ba 14982
d9898ee8 14983fi
64ff59ba 14984
14985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14986 conftest$ac_exeext conftest.$ac_ext
14987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14988
14989 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14990 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14991 else
14992 if test "$host_cpu" = ia64; then
14993 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14994 allow_undefined_flag_F77="-z nodefs"
14995 archive_expsym_cmds_F77="\$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"
14996 else
14997 # Determine the default libpath from the value encoded in an empty executable.
14998 cat >conftest.$ac_ext <<_ACEOF
14999 program main
15000
15001 end
15002_ACEOF
15003rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 15004if { (ac_try="$ac_link"
15005case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
d9898ee8 15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 15016 (exit $ac_status); } && {
15017 test -z "$ac_f77_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest$ac_exeext &&
15020 $as_test_x conftest$ac_exeext; then
d9898ee8 15021
0fde1ce3 15022lt_aix_libpath_sed='
15023 /Import File Strings/,/^$/ {
15024 /^0/ {
15025 s/^0 *\(.*\)$/\1/
15026 p
15027 }
15028 }'
15029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 15030# Check for a 64-bit object if we didn't find anything.
0fde1ce3 15031if test -z "$aix_libpath"; then
15032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15033fi
d9898ee8 15034else
15035 echo "$as_me: failed program was:" >&5
15036sed 's/^/| /' conftest.$ac_ext >&5
15037
64ff59ba 15038
d9898ee8 15039fi
64ff59ba 15040
15041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15042 conftest$ac_exeext conftest.$ac_ext
15043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15044
15045 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15046 # Warning - without using the other run time loading flags,
15047 # -berok will link without error, but may produce a broken library.
15048 no_undefined_flag_F77=' ${wl}-bernotok'
15049 allow_undefined_flag_F77=' ${wl}-berok'
15050 # Exported symbols can be pulled into shared objects from archives
15051 whole_archive_flag_spec_F77='$convenience'
15052 archive_cmds_need_lc_F77=yes
15053 # This is similar to how AIX traditionally builds its shared libraries.
15054 archive_expsym_cmds_F77="\$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'
15055 fi
15056 fi
15057 ;;
15058
15059 amigaos*)
15060 archive_cmds_F77='$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)'
15061 hardcode_libdir_flag_spec_F77='-L$libdir'
15062 hardcode_minus_L_F77=yes
15063 # see comment about different semantics on the GNU ld section
15064 ld_shlibs_F77=no
15065 ;;
15066
15067 bsdi[45]*)
15068 export_dynamic_flag_spec_F77=-rdynamic
15069 ;;
15070
15071 cygwin* | mingw* | pw32*)
15072 # When not using gcc, we currently assume that we are using
15073 # Microsoft Visual C++.
15074 # hardcode_libdir_flag_spec is actually meaningless, as there is
15075 # no search path for DLLs.
15076 hardcode_libdir_flag_spec_F77=' '
15077 allow_undefined_flag_F77=unsupported
15078 # Tell ltmain to make .lib files, not .a files.
15079 libext=lib
15080 # Tell ltmain to make .dll files, not .so files.
15081 shrext_cmds=".dll"
15082 # FIXME: Setting linknames here is a bad hack.
15083 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15084 # The linker will automatically build a .lib file if we build a DLL.
15085 old_archive_From_new_cmds_F77='true'
15086 # FIXME: Should let the user specify the lib program.
0fde1ce3 15087 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 15088 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15089 enable_shared_with_static_runtimes_F77=yes
15090 ;;
15091
15092 darwin* | rhapsody*)
15093 case $host_os in
15094 rhapsody* | darwin1.[012])
15095 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15096 ;;
15097 *) # Darwin 1.3 on
15098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15099 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15100 else
15101 case ${MACOSX_DEPLOYMENT_TARGET} in
15102 10.[012])
15103 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15104 ;;
15105 10.*)
15106 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15107 ;;
15108 esac
15109 fi
15110 ;;
15111 esac
15112 archive_cmds_need_lc_F77=no
15113 hardcode_direct_F77=no
15114 hardcode_automatic_F77=yes
15115 hardcode_shlibpath_var_F77=unsupported
15116 whole_archive_flag_spec_F77=''
15117 link_all_deplibs_F77=yes
15118 if test "$GCC" = yes ; then
15119 output_verbose_link_cmd='echo'
15120 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15121 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15123 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15124 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15125 else
15126 case $cc_basename in
15127 xlc*)
15128 output_verbose_link_cmd='echo'
0fde1ce3 15129 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 15130 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 15132 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 15133 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15134 ;;
15135 *)
15136 ld_shlibs_F77=no
15137 ;;
15138 esac
15139 fi
15140 ;;
15141
15142 dgux*)
15143 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15144 hardcode_libdir_flag_spec_F77='-L$libdir'
15145 hardcode_shlibpath_var_F77=no
15146 ;;
15147
15148 freebsd1*)
15149 ld_shlibs_F77=no
15150 ;;
15151
15152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15153 # support. Future versions do this automatically, but an explicit c++rt0.o
15154 # does not break anything, and helps significantly (at the cost of a little
15155 # extra space).
15156 freebsd2.2*)
15157 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15158 hardcode_libdir_flag_spec_F77='-R$libdir'
15159 hardcode_direct_F77=yes
15160 hardcode_shlibpath_var_F77=no
15161 ;;
15162
15163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15164 freebsd2*)
15165 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15166 hardcode_direct_F77=yes
15167 hardcode_minus_L_F77=yes
15168 hardcode_shlibpath_var_F77=no
15169 ;;
15170
15171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 15172 freebsd* | dragonfly*)
d9898ee8 15173 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15174 hardcode_libdir_flag_spec_F77='-R$libdir'
15175 hardcode_direct_F77=yes
15176 hardcode_shlibpath_var_F77=no
15177 ;;
15178
15179 hpux9*)
15180 if test "$GCC" = yes; then
15181 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15182 else
15183 archive_cmds_F77='$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'
15184 fi
15185 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15186 hardcode_libdir_separator_F77=:
15187 hardcode_direct_F77=yes
15188
15189 # hardcode_minus_L: Not really in the search PATH,
15190 # but as the default location of the library.
15191 hardcode_minus_L_F77=yes
15192 export_dynamic_flag_spec_F77='${wl}-E'
15193 ;;
15194
15195 hpux10*)
15196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15197 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15198 else
15199 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15200 fi
15201 if test "$with_gnu_ld" = no; then
15202 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15203 hardcode_libdir_separator_F77=:
15204
15205 hardcode_direct_F77=yes
15206 export_dynamic_flag_spec_F77='${wl}-E'
15207
15208 # hardcode_minus_L: Not really in the search PATH,
15209 # but as the default location of the library.
15210 hardcode_minus_L_F77=yes
15211 fi
15212 ;;
15213
15214 hpux11*)
15215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15216 case $host_cpu in
15217 hppa*64*)
15218 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15219 ;;
15220 ia64*)
15221 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15222 ;;
15223 *)
15224 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15225 ;;
15226 esac
15227 else
15228 case $host_cpu in
15229 hppa*64*)
15230 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15231 ;;
15232 ia64*)
15233 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15234 ;;
15235 *)
15236 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15237 ;;
15238 esac
15239 fi
15240 if test "$with_gnu_ld" = no; then
15241 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15242 hardcode_libdir_separator_F77=:
15243
15244 case $host_cpu in
15245 hppa*64*|ia64*)
15246 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15247 hardcode_direct_F77=no
15248 hardcode_shlibpath_var_F77=no
15249 ;;
15250 *)
15251 hardcode_direct_F77=yes
15252 export_dynamic_flag_spec_F77='${wl}-E'
15253
15254 # hardcode_minus_L: Not really in the search PATH,
15255 # but as the default location of the library.
15256 hardcode_minus_L_F77=yes
15257 ;;
15258 esac
15259 fi
15260 ;;
15261
15262 irix5* | irix6* | nonstopux*)
15263 if test "$GCC" = yes; then
15264 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15265 else
15266 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15267 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15268 fi
15269 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15270 hardcode_libdir_separator_F77=:
15271 link_all_deplibs_F77=yes
15272 ;;
15273
15274 netbsd*)
15275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15276 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15277 else
15278 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15279 fi
15280 hardcode_libdir_flag_spec_F77='-R$libdir'
15281 hardcode_direct_F77=yes
15282 hardcode_shlibpath_var_F77=no
15283 ;;
15284
15285 newsos6)
15286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15287 hardcode_direct_F77=yes
15288 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15289 hardcode_libdir_separator_F77=:
15290 hardcode_shlibpath_var_F77=no
15291 ;;
15292
15293 openbsd*)
0fde1ce3 15294 if test -f /usr/libexec/ld.so; then
15295 hardcode_direct_F77=yes
15296 hardcode_shlibpath_var_F77=no
15297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15298 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15299 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15300 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15301 export_dynamic_flag_spec_F77='${wl}-E'
15302 else
15303 case $host_os in
15304 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15305 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_libdir_flag_spec_F77='-R$libdir'
15307 ;;
15308 *)
15309 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15310 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15311 ;;
15312 esac
15313 fi
d9898ee8 15314 else
0fde1ce3 15315 ld_shlibs_F77=no
d9898ee8 15316 fi
15317 ;;
15318
15319 os2*)
15320 hardcode_libdir_flag_spec_F77='-L$libdir'
15321 hardcode_minus_L_F77=yes
15322 allow_undefined_flag_F77=unsupported
15323 archive_cmds_F77='$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'
15324 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15325 ;;
15326
15327 osf3*)
15328 if test "$GCC" = yes; then
15329 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15330 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15331 else
15332 allow_undefined_flag_F77=' -expect_unresolved \*'
15333 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15334 fi
15335 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15336 hardcode_libdir_separator_F77=:
15337 ;;
15338
15339 osf4* | osf5*) # as osf3* with the addition of -msym flag
15340 if test "$GCC" = yes; then
15341 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15342 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15343 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15344 else
15345 allow_undefined_flag_F77=' -expect_unresolved \*'
15346 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15347 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15348 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15349
15350 # Both c and cxx compiler support -rpath directly
15351 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15352 fi
15353 hardcode_libdir_separator_F77=:
15354 ;;
15355
15356 solaris*)
15357 no_undefined_flag_F77=' -z text'
15358 if test "$GCC" = yes; then
15359 wlarc='${wl}'
15360 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15362 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15363 else
15364 wlarc=''
15365 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15366 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15368 fi
15369 hardcode_libdir_flag_spec_F77='-R$libdir'
15370 hardcode_shlibpath_var_F77=no
15371 case $host_os in
15372 solaris2.[0-5] | solaris2.[0-5].*) ;;
15373 *)
0fde1ce3 15374 # The compiler driver will combine and reorder linker options,
15375 # but understands `-z linker_flag'. GCC discards it without `$wl',
15376 # but is careful enough not to reorder.
d9898ee8 15377 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 15378 if test "$GCC" = yes; then
15379 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15380 else
15381 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15382 fi
15383 ;;
d9898ee8 15384 esac
15385 link_all_deplibs_F77=yes
15386 ;;
15387
15388 sunos4*)
15389 if test "x$host_vendor" = xsequent; then
15390 # Use $CC to link under sequent, because it throws in some extra .o
15391 # files that make .init and .fini sections work.
15392 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15393 else
15394 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15395 fi
15396 hardcode_libdir_flag_spec_F77='-L$libdir'
15397 hardcode_direct_F77=yes
15398 hardcode_minus_L_F77=yes
15399 hardcode_shlibpath_var_F77=no
15400 ;;
15401
15402 sysv4)
15403 case $host_vendor in
15404 sni)
15405 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15406 hardcode_direct_F77=yes # is this really true???
15407 ;;
15408 siemens)
15409 ## LD is ld it makes a PLAMLIB
15410 ## CC just makes a GrossModule.
15411 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15412 reload_cmds_F77='$CC -r -o $output$reload_objs'
15413 hardcode_direct_F77=no
15414 ;;
15415 motorola)
15416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15418 ;;
15419 esac
15420 runpath_var='LD_RUN_PATH'
15421 hardcode_shlibpath_var_F77=no
15422 ;;
15423
15424 sysv4.3*)
15425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15426 hardcode_shlibpath_var_F77=no
15427 export_dynamic_flag_spec_F77='-Bexport'
15428 ;;
15429
15430 sysv4*MP*)
15431 if test -d /usr/nec; then
15432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_shlibpath_var_F77=no
15434 runpath_var=LD_RUN_PATH
15435 hardcode_runpath_var=yes
15436 ld_shlibs_F77=yes
15437 fi
15438 ;;
15439
0fde1ce3 15440 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15441 no_undefined_flag_F77='${wl}-z,text'
15442 archive_cmds_need_lc_F77=no
15443 hardcode_shlibpath_var_F77=no
15444 runpath_var='LD_RUN_PATH'
15445
15446 if test "$GCC" = yes; then
15447 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15448 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15449 else
15450 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15451 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15452 fi
15453 ;;
15454
15455 sysv5* | sco3.2v5* | sco5v6*)
15456 # Note: We can NOT use -z defs as we might desire, because we do not
15457 # link with -lc, and that would cause any symbols used from libc to
15458 # always be unresolved, which means just about no library would
15459 # ever link correctly. If we're not using GNU ld we use -z text
15460 # though, which does catch some bad symbols but isn't as heavy-handed
15461 # as -z defs.
15462 no_undefined_flag_F77='${wl}-z,text'
15463 allow_undefined_flag_F77='${wl}-z,nodefs'
15464 archive_cmds_need_lc_F77=no
15465 hardcode_shlibpath_var_F77=no
15466 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15467 hardcode_libdir_separator_F77=':'
15468 link_all_deplibs_F77=yes
15469 export_dynamic_flag_spec_F77='${wl}-Bexport'
15470 runpath_var='LD_RUN_PATH'
15471
15472 if test "$GCC" = yes; then
15473 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15474 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15475 else
15476 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15477 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15478 fi
15479 ;;
15480
15481 uts4*)
15482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15483 hardcode_libdir_flag_spec_F77='-L$libdir'
15484 hardcode_shlibpath_var_F77=no
15485 ;;
15486
15487 *)
15488 ld_shlibs_F77=no
15489 ;;
15490 esac
15491 fi
15492
64ff59ba 15493{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15494echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15495test "$ld_shlibs_F77" = no && can_build_shared=no
15496
15497#
15498# Do we need to explicitly link libc?
15499#
15500case "x$archive_cmds_need_lc_F77" in
15501x|xyes)
15502 # Assume -lc should be added
15503 archive_cmds_need_lc_F77=yes
15504
15505 if test "$enable_shared" = yes && test "$GCC" = yes; then
15506 case $archive_cmds_F77 in
15507 *'~'*)
15508 # FIXME: we may have to deal with multi-command sequences.
15509 ;;
15510 '$CC '*)
15511 # Test whether the compiler implicitly links with -lc since on some
15512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15513 # to ld, don't add -lc before -lgcc.
64ff59ba 15514 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15515echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15516 $rm conftest*
0fde1ce3 15517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15518
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } 2>conftest.err; then
15524 soname=conftest
15525 lib=conftest
15526 libobjs=conftest.$ac_objext
15527 deplibs=
15528 wl=$lt_prog_compiler_wl_F77
15529 pic_flag=$lt_prog_compiler_pic_F77
15530 compiler_flags=-v
15531 linker_flags=-v
15532 verstring=
15533 output_objdir=.
15534 libname=conftest
15535 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15536 allow_undefined_flag_F77=
15537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15538 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }
15542 then
15543 archive_cmds_need_lc_F77=no
15544 else
15545 archive_cmds_need_lc_F77=yes
15546 fi
15547 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15548 else
15549 cat conftest.err 1>&5
15550 fi
15551 $rm conftest*
64ff59ba 15552 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15553echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15554 ;;
15555 esac
15556 fi
15557 ;;
15558esac
15559
64ff59ba 15560{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15561echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15562library_names_spec=
15563libname_spec='lib$name'
15564soname_spec=
15565shrext_cmds=".so"
15566postinstall_cmds=
15567postuninstall_cmds=
15568finish_cmds=
15569finish_eval=
15570shlibpath_var=
15571shlibpath_overrides_runpath=unknown
15572version_type=none
15573dynamic_linker="$host_os ld.so"
15574sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 15575
d9898ee8 15576need_lib_prefix=unknown
15577hardcode_into_libs=no
15578
15579# when you set need_version to no, make sure it does not cause -set_version
15580# flags to be left without arguments
15581need_version=unknown
15582
15583case $host_os in
15584aix3*)
15585 version_type=linux
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15587 shlibpath_var=LIBPATH
15588
15589 # AIX 3 has no versioning support, so we append a major version to the name.
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 ;;
15592
15593aix4* | aix5*)
15594 version_type=linux
15595 need_lib_prefix=no
15596 need_version=no
15597 hardcode_into_libs=yes
15598 if test "$host_cpu" = ia64; then
15599 # AIX 5 supports IA64
15600 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 else
15603 # With GCC up to 2.95.x, collect2 would create an import file
15604 # for dependence libraries. The import file would start with
15605 # the line `#! .'. This would cause the generated library to
15606 # depend on `.', always an invalid library. This was fixed in
15607 # development snapshots of GCC prior to 3.0.
15608 case $host_os in
15609 aix4 | aix4.[01] | aix4.[01].*)
15610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15611 echo ' yes '
15612 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15613 :
15614 else
15615 can_build_shared=no
15616 fi
15617 ;;
15618 esac
15619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15620 # soname into executable. Probably we can add versioning support to
15621 # collect2, so additional links can be useful in future.
15622 if test "$aix_use_runtimelinking" = yes; then
15623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15624 # instead of lib<name>.a to let people know that these are not
15625 # typical AIX shared libraries.
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 else
15628 # We preserve .a as extension for shared libraries through AIX4.2
15629 # and later when we are not doing run time linking.
15630 library_names_spec='${libname}${release}.a $libname.a'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 fi
15633 shlibpath_var=LIBPATH
15634 fi
15635 ;;
15636
15637amigaos*)
15638 library_names_spec='$libname.ixlibrary $libname.a'
15639 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15640 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15641 ;;
15642
15643beos*)
15644 library_names_spec='${libname}${shared_ext}'
15645 dynamic_linker="$host_os ld.so"
15646 shlibpath_var=LIBRARY_PATH
15647 ;;
15648
15649bsdi[45]*)
15650 version_type=linux
15651 need_version=no
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15657 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15658 # the default ld.so.conf also contains /usr/contrib/lib and
15659 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15660 # libtool to hard-code these into programs
15661 ;;
15662
15663cygwin* | mingw* | pw32*)
15664 version_type=windows
15665 shrext_cmds=".dll"
15666 need_version=no
15667 need_lib_prefix=no
15668
15669 case $GCC,$host_os in
15670 yes,cygwin* | yes,mingw* | yes,pw32*)
15671 library_names_spec='$libname.dll.a'
15672 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15673 postinstall_cmds='base_file=`basename \${file}`~
15674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15675 dldir=$destdir/`dirname \$dlpath`~
15676 test -d \$dldir || mkdir -p \$dldir~
15677 $install_prog $dir/$dlname \$dldir/$dlname~
15678 chmod a+x \$dldir/$dlname'
15679 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15680 dlpath=$dir/\$dldll~
15681 $rm \$dlpath'
15682 shlibpath_overrides_runpath=yes
15683
15684 case $host_os in
15685 cygwin*)
15686 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15687 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15688 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15689 ;;
15690 mingw*)
15691 # MinGW DLLs use traditional 'lib' prefix
15692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15694 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15695 # It is most probably a Windows format PATH printed by
15696 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15697 # path with ; separators, and with drive letters. We can handle the
15698 # drive letters (cygwin fileutils understands them), so leave them,
15699 # especially as we might pass files found there to a mingw objdump,
15700 # which wouldn't understand a cygwinified path. Ahh.
15701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15702 else
15703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15704 fi
15705 ;;
15706 pw32*)
15707 # pw32 DLLs use 'pw' prefix rather than 'lib'
15708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15709 ;;
15710 esac
15711 ;;
15712
15713 *)
15714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15715 ;;
15716 esac
15717 dynamic_linker='Win32 ld.exe'
15718 # FIXME: first we should search . and the directory the executable is in
15719 shlibpath_var=PATH
15720 ;;
15721
15722darwin* | rhapsody*)
15723 dynamic_linker="$host_os dyld"
15724 version_type=darwin
15725 need_lib_prefix=no
15726 need_version=no
15727 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15728 soname_spec='${libname}${release}${major}$shared_ext'
15729 shlibpath_overrides_runpath=yes
15730 shlibpath_var=DYLD_LIBRARY_PATH
15731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 15732
d9898ee8 15733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15734 ;;
15735
15736dgux*)
15737 version_type=linux
15738 need_lib_prefix=no
15739 need_version=no
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 ;;
15744
15745freebsd1*)
15746 dynamic_linker=no
15747 ;;
15748
d9898ee8 15749freebsd* | dragonfly*)
15750 # DragonFly does not have aout. When/if they implement a new
15751 # versioning mechanism, adjust this.
15752 if test -x /usr/bin/objformat; then
15753 objformat=`/usr/bin/objformat`
15754 else
15755 case $host_os in
15756 freebsd[123]*) objformat=aout ;;
15757 *) objformat=elf ;;
15758 esac
15759 fi
15760 version_type=freebsd-$objformat
15761 case $version_type in
15762 freebsd-elf*)
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15764 need_version=no
15765 need_lib_prefix=no
15766 ;;
15767 freebsd-*)
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15769 need_version=yes
15770 ;;
15771 esac
15772 shlibpath_var=LD_LIBRARY_PATH
15773 case $host_os in
15774 freebsd2*)
15775 shlibpath_overrides_runpath=yes
15776 ;;
15777 freebsd3.[01]* | freebsdelf3.[01]*)
15778 shlibpath_overrides_runpath=yes
15779 hardcode_into_libs=yes
15780 ;;
15781 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15782 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15783 shlibpath_overrides_runpath=no
15784 hardcode_into_libs=yes
15785 ;;
0fde1ce3 15786 *) # from 4.6 on, and DragonFly
d9898ee8 15787 shlibpath_overrides_runpath=yes
15788 hardcode_into_libs=yes
15789 ;;
15790 esac
15791 ;;
15792
15793gnu*)
15794 version_type=linux
15795 need_lib_prefix=no
15796 need_version=no
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15798 soname_spec='${libname}${release}${shared_ext}$major'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 hardcode_into_libs=yes
15801 ;;
15802
15803hpux9* | hpux10* | hpux11*)
15804 # Give a soname corresponding to the major version so that dld.sl refuses to
15805 # link against other versions.
15806 version_type=sunos
15807 need_lib_prefix=no
15808 need_version=no
15809 case $host_cpu in
15810 ia64*)
15811 shrext_cmds='.so'
15812 hardcode_into_libs=yes
15813 dynamic_linker="$host_os dld.so"
15814 shlibpath_var=LD_LIBRARY_PATH
15815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 if test "X$HPUX_IA64_MODE" = X32; then
15819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15820 else
15821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15822 fi
15823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15824 ;;
15825 hppa*64*)
15826 shrext_cmds='.sl'
15827 hardcode_into_libs=yes
15828 dynamic_linker="$host_os dld.sl"
15829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832 soname_spec='${libname}${release}${shared_ext}$major'
15833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15835 ;;
15836 *)
15837 shrext_cmds='.sl'
15838 dynamic_linker="$host_os dld.sl"
15839 shlibpath_var=SHLIB_PATH
15840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 ;;
15844 esac
15845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15846 postinstall_cmds='chmod 555 $lib'
15847 ;;
15848
0fde1ce3 15849interix[3-9]*)
d9898ee8 15850 version_type=linux
15851 need_lib_prefix=no
15852 need_version=no
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15856 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=no
15858 hardcode_into_libs=yes
15859 ;;
15860
15861irix5* | irix6* | nonstopux*)
15862 case $host_os in
15863 nonstopux*) version_type=nonstopux ;;
15864 *)
15865 if test "$lt_cv_prog_gnu_ld" = yes; then
15866 version_type=linux
15867 else
15868 version_type=irix
15869 fi ;;
15870 esac
15871 need_lib_prefix=no
15872 need_version=no
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15875 case $host_os in
15876 irix5* | nonstopux*)
15877 libsuff= shlibsuff=
15878 ;;
15879 *)
15880 case $LD in # libtool.m4 will add one of these switches to LD
15881 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15882 libsuff= shlibsuff= libmagic=32-bit;;
15883 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15884 libsuff=32 shlibsuff=N32 libmagic=N32;;
15885 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15886 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15887 *) libsuff= shlibsuff= libmagic=never-match;;
15888 esac
15889 ;;
15890 esac
15891 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15892 shlibpath_overrides_runpath=no
15893 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15894 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15895 hardcode_into_libs=yes
15896 ;;
15897
15898# No shared lib support for Linux oldld, aout, or coff.
15899linux*oldld* | linux*aout* | linux*coff*)
15900 dynamic_linker=no
15901 ;;
15902
15903# This must be Linux ELF.
0fde1ce3 15904linux* | k*bsd*-gnu)
d9898ee8 15905 version_type=linux
15906 need_lib_prefix=no
15907 need_version=no
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15911 shlibpath_var=LD_LIBRARY_PATH
15912 shlibpath_overrides_runpath=no
15913 # This implies no fast_install, which is unacceptable.
15914 # Some rework will be needed to allow for fast_install
15915 # before this can be enabled.
15916 hardcode_into_libs=yes
0fde1ce3 15917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 15919
15920 # Append ld.so.conf contents to the search path
15921 if test -f /etc/ld.so.conf; then
0fde1ce3 15922 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;/^$/d' | tr '\n' ' '`
15923 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 15924 fi
15925
15926 # We used to test for /lib/ld.so.1 and disable shared libraries on
15927 # powerpc, because MkLinux only supported shared libraries with the
15928 # GNU dynamic linker. Since this was broken with cross compilers,
15929 # most powerpc-linux boxes support dynamic linking these days and
15930 # people can always --disable-shared, the test was removed, and we
15931 # assume the GNU/Linux dynamic linker is in use.
15932 dynamic_linker='GNU/Linux ld.so'
15933 ;;
15934
d9898ee8 15935netbsd*)
15936 version_type=sunos
15937 need_lib_prefix=no
15938 need_version=no
15939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15942 dynamic_linker='NetBSD (a.out) ld.so'
15943 else
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15945 soname_spec='${libname}${release}${shared_ext}$major'
15946 dynamic_linker='NetBSD ld.elf_so'
15947 fi
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=yes
15950 hardcode_into_libs=yes
15951 ;;
15952
15953newsos6)
15954 version_type=linux
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=yes
15958 ;;
15959
15960nto-qnx*)
15961 version_type=linux
15962 need_lib_prefix=no
15963 need_version=no
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=yes
15968 ;;
15969
15970openbsd*)
15971 version_type=sunos
15972 sys_lib_dlsearch_path_spec="/usr/lib"
15973 need_lib_prefix=no
15974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15975 case $host_os in
15976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15977 *) need_version=no ;;
15978 esac
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15981 shlibpath_var=LD_LIBRARY_PATH
15982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15983 case $host_os in
15984 openbsd2.[89] | openbsd2.[89].*)
15985 shlibpath_overrides_runpath=no
15986 ;;
15987 *)
15988 shlibpath_overrides_runpath=yes
15989 ;;
15990 esac
15991 else
15992 shlibpath_overrides_runpath=yes
15993 fi
15994 ;;
15995
15996os2*)
15997 libname_spec='$name'
15998 shrext_cmds=".dll"
15999 need_lib_prefix=no
16000 library_names_spec='$libname${shared_ext} $libname.a'
16001 dynamic_linker='OS/2 ld.exe'
16002 shlibpath_var=LIBPATH
16003 ;;
16004
16005osf3* | osf4* | osf5*)
16006 version_type=osf
16007 need_lib_prefix=no
16008 need_version=no
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16014 ;;
16015
0fde1ce3 16016rdos*)
16017 dynamic_linker=no
16018 ;;
16019
d9898ee8 16020solaris*)
16021 version_type=linux
16022 need_lib_prefix=no
16023 need_version=no
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 soname_spec='${libname}${release}${shared_ext}$major'
16026 shlibpath_var=LD_LIBRARY_PATH
16027 shlibpath_overrides_runpath=yes
16028 hardcode_into_libs=yes
16029 # ldd complains unless libraries are executable
16030 postinstall_cmds='chmod +x $lib'
16031 ;;
16032
16033sunos4*)
16034 version_type=sunos
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 shlibpath_overrides_runpath=yes
16039 if test "$with_gnu_ld" = yes; then
16040 need_lib_prefix=no
16041 fi
16042 need_version=yes
16043 ;;
16044
16045sysv4 | sysv4.3*)
16046 version_type=linux
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 case $host_vendor in
16051 sni)
16052 shlibpath_overrides_runpath=no
16053 need_lib_prefix=no
16054 export_dynamic_flag_spec='${wl}-Blargedynsym'
16055 runpath_var=LD_RUN_PATH
16056 ;;
16057 siemens)
16058 need_lib_prefix=no
16059 ;;
16060 motorola)
16061 need_lib_prefix=no
16062 need_version=no
16063 shlibpath_overrides_runpath=no
16064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16065 ;;
16066 esac
16067 ;;
16068
16069sysv4*MP*)
16070 if test -d /usr/nec ;then
16071 version_type=linux
16072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16073 soname_spec='$libname${shared_ext}.$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 fi
16076 ;;
16077
16078sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16079 version_type=freebsd-elf
16080 need_lib_prefix=no
16081 need_version=no
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16083 soname_spec='${libname}${release}${shared_ext}$major'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 hardcode_into_libs=yes
16086 if test "$with_gnu_ld" = yes; then
16087 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16088 shlibpath_overrides_runpath=no
16089 else
16090 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16091 shlibpath_overrides_runpath=yes
16092 case $host_os in
16093 sco3.2v5*)
16094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16095 ;;
16096 esac
16097 fi
16098 sys_lib_dlsearch_path_spec='/usr/lib'
16099 ;;
16100
16101uts4*)
16102 version_type=linux
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 ;;
16107
16108*)
16109 dynamic_linker=no
16110 ;;
16111esac
64ff59ba 16112{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16113echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 16114test "$dynamic_linker" = no && can_build_shared=no
16115
16116variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16117if test "$GCC" = yes; then
16118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16119fi
16120
64ff59ba 16121{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16122echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 16123hardcode_action_F77=
16124if test -n "$hardcode_libdir_flag_spec_F77" || \
16125 test -n "$runpath_var_F77" || \
16126 test "X$hardcode_automatic_F77" = "Xyes" ; then
16127
16128 # We can hardcode non-existant directories.
16129 if test "$hardcode_direct_F77" != no &&
16130 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16131 # have to relink, otherwise we might link with an installed library
16132 # when we should be linking with a yet-to-be-installed one
16133 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16134 test "$hardcode_minus_L_F77" != no; then
16135 # Linking always hardcodes the temporary library directory.
16136 hardcode_action_F77=relink
16137 else
16138 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16139 hardcode_action_F77=immediate
16140 fi
16141else
16142 # We cannot hardcode anything, or else we can only hardcode existing
16143 # directories.
16144 hardcode_action_F77=unsupported
16145fi
64ff59ba 16146{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16147echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 16148
16149if test "$hardcode_action_F77" = relink; then
16150 # Fast installation is not supported
16151 enable_fast_install=no
16152elif test "$shlibpath_overrides_runpath" = yes ||
16153 test "$enable_shared" = no; then
16154 # Fast installation is not necessary
16155 enable_fast_install=needless
16156fi
16157
16158
16159# The else clause should only fire when bootstrapping the
16160# libtool distribution, otherwise you forgot to ship ltmain.sh
16161# with your package, and you will get complaints that there are
16162# no rules to generate ltmain.sh.
16163if test -f "$ltmain"; then
16164 # See if we are running on zsh, and set the options which allow our commands through
16165 # without removal of \ escapes.
16166 if test -n "${ZSH_VERSION+set}" ; then
16167 setopt NO_GLOB_SUBST
16168 fi
16169 # Now quote all the things that may contain metacharacters while being
16170 # careful not to overquote the AC_SUBSTed values. We take copies of the
16171 # variables and quote the copies for generation of the libtool script.
16172 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16173 SED SHELL STRIP \
16174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16176 deplibs_check_method reload_flag reload_cmds need_locks \
16177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16178 lt_cv_sys_global_symbol_to_c_name_address \
16179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16180 old_postinstall_cmds old_postuninstall_cmds \
16181 compiler_F77 \
16182 CC_F77 \
16183 LD_F77 \
16184 lt_prog_compiler_wl_F77 \
16185 lt_prog_compiler_pic_F77 \
16186 lt_prog_compiler_static_F77 \
16187 lt_prog_compiler_no_builtin_flag_F77 \
16188 export_dynamic_flag_spec_F77 \
16189 thread_safe_flag_spec_F77 \
16190 whole_archive_flag_spec_F77 \
16191 enable_shared_with_static_runtimes_F77 \
16192 old_archive_cmds_F77 \
16193 old_archive_from_new_cmds_F77 \
16194 predep_objects_F77 \
16195 postdep_objects_F77 \
16196 predeps_F77 \
16197 postdeps_F77 \
16198 compiler_lib_search_path_F77 \
16199 archive_cmds_F77 \
16200 archive_expsym_cmds_F77 \
16201 postinstall_cmds_F77 \
16202 postuninstall_cmds_F77 \
16203 old_archive_from_expsyms_cmds_F77 \
16204 allow_undefined_flag_F77 \
16205 no_undefined_flag_F77 \
16206 export_symbols_cmds_F77 \
16207 hardcode_libdir_flag_spec_F77 \
16208 hardcode_libdir_flag_spec_ld_F77 \
16209 hardcode_libdir_separator_F77 \
16210 hardcode_automatic_F77 \
16211 module_cmds_F77 \
16212 module_expsym_cmds_F77 \
16213 lt_cv_prog_compiler_c_o_F77 \
0fde1ce3 16214 fix_srcfile_path_F77 \
d9898ee8 16215 exclude_expsyms_F77 \
16216 include_expsyms_F77; do
16217
16218 case $var in
16219 old_archive_cmds_F77 | \
16220 old_archive_from_new_cmds_F77 | \
16221 archive_cmds_F77 | \
16222 archive_expsym_cmds_F77 | \
16223 module_cmds_F77 | \
16224 module_expsym_cmds_F77 | \
16225 old_archive_from_expsyms_cmds_F77 | \
16226 export_symbols_cmds_F77 | \
16227 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16228 postinstall_cmds | postuninstall_cmds | \
16229 old_postinstall_cmds | old_postuninstall_cmds | \
16230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16231 # Double-quote double-evaled strings.
16232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16233 ;;
16234 *)
16235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16236 ;;
16237 esac
16238 done
16239
16240 case $lt_echo in
16241 *'\$0 --fallback-echo"')
16242 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16243 ;;
16244 esac
16245
16246cfgfile="$ofile"
16247
16248 cat <<__EOF__ >> "$cfgfile"
16249# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16250
16251# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16252
16253# Shell to use when invoking shell scripts.
16254SHELL=$lt_SHELL
16255
16256# Whether or not to build shared libraries.
16257build_libtool_libs=$enable_shared
16258
16259# Whether or not to build static libraries.
16260build_old_libs=$enable_static
16261
16262# Whether or not to add -lc for building shared libraries.
16263build_libtool_need_lc=$archive_cmds_need_lc_F77
16264
16265# Whether or not to disallow shared libs when runtime libs are static
16266allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16267
16268# Whether or not to optimize for fast installation.
16269fast_install=$enable_fast_install
16270
16271# The host system.
16272host_alias=$host_alias
16273host=$host
16274host_os=$host_os
16275
16276# The build system.
16277build_alias=$build_alias
16278build=$build
16279build_os=$build_os
16280
16281# An echo program that does not interpret backslashes.
16282echo=$lt_echo
16283
16284# The archiver.
16285AR=$lt_AR
16286AR_FLAGS=$lt_AR_FLAGS
16287
16288# A C compiler.
16289LTCC=$lt_LTCC
16290
16291# LTCC compiler flags.
16292LTCFLAGS=$lt_LTCFLAGS
16293
16294# A language-specific compiler.
16295CC=$lt_compiler_F77
16296
16297# Is the compiler the GNU C compiler?
16298with_gcc=$GCC_F77
16299
d9898ee8 16300# An ERE matcher.
16301EGREP=$lt_EGREP
16302
16303# The linker used to build libraries.
16304LD=$lt_LD_F77
16305
16306# Whether we need hard or soft links.
16307LN_S=$lt_LN_S
16308
16309# A BSD-compatible nm program.
16310NM=$lt_NM
16311
16312# A symbol stripping program
16313STRIP=$lt_STRIP
16314
16315# Used to examine libraries when file_magic_cmd begins "file"
16316MAGIC_CMD=$MAGIC_CMD
16317
16318# Used on cygwin: DLL creation program.
16319DLLTOOL="$DLLTOOL"
16320
16321# Used on cygwin: object dumper.
16322OBJDUMP="$OBJDUMP"
16323
16324# Used on cygwin: assembler.
16325AS="$AS"
16326
16327# The name of the directory that contains temporary libtool files.
16328objdir=$objdir
16329
16330# How to create reloadable object files.
16331reload_flag=$lt_reload_flag
16332reload_cmds=$lt_reload_cmds
16333
16334# How to pass a linker flag through the compiler.
16335wl=$lt_lt_prog_compiler_wl_F77
16336
16337# Object file suffix (normally "o").
16338objext="$ac_objext"
16339
16340# Old archive suffix (normally "a").
16341libext="$libext"
16342
16343# Shared library suffix (normally ".so").
16344shrext_cmds='$shrext_cmds'
16345
16346# Executable file suffix (normally "").
16347exeext="$exeext"
16348
16349# Additional compiler flags for building library objects.
16350pic_flag=$lt_lt_prog_compiler_pic_F77
16351pic_mode=$pic_mode
16352
16353# What is the maximum length of a command?
16354max_cmd_len=$lt_cv_sys_max_cmd_len
16355
16356# Does compiler simultaneously support -c and -o options?
16357compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16358
16359# Must we lock files when doing compilation?
16360need_locks=$lt_need_locks
16361
16362# Do we need the lib prefix for modules?
16363need_lib_prefix=$need_lib_prefix
16364
16365# Do we need a version for libraries?
16366need_version=$need_version
16367
16368# Whether dlopen is supported.
16369dlopen_support=$enable_dlopen
16370
16371# Whether dlopen of programs is supported.
16372dlopen_self=$enable_dlopen_self
16373
16374# Whether dlopen of statically linked programs is supported.
16375dlopen_self_static=$enable_dlopen_self_static
16376
16377# Compiler flag to prevent dynamic linking.
16378link_static_flag=$lt_lt_prog_compiler_static_F77
16379
16380# Compiler flag to turn off builtin functions.
16381no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16382
16383# Compiler flag to allow reflexive dlopens.
16384export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16385
16386# Compiler flag to generate shared objects directly from archives.
16387whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16388
16389# Compiler flag to generate thread-safe objects.
16390thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16391
16392# Library versioning type.
16393version_type=$version_type
16394
16395# Format of library name prefix.
16396libname_spec=$lt_libname_spec
16397
16398# List of archive names. First name is the real one, the rest are links.
16399# The last name is the one that the linker finds with -lNAME.
16400library_names_spec=$lt_library_names_spec
16401
16402# The coded name of the library, if different from the real name.
16403soname_spec=$lt_soname_spec
16404
16405# Commands used to build and install an old-style archive.
16406RANLIB=$lt_RANLIB
16407old_archive_cmds=$lt_old_archive_cmds_F77
16408old_postinstall_cmds=$lt_old_postinstall_cmds
16409old_postuninstall_cmds=$lt_old_postuninstall_cmds
16410
16411# Create an old-style archive from a shared archive.
16412old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16413
16414# Create a temporary old-style archive to link instead of a shared archive.
16415old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16416
16417# Commands used to build and install a shared archive.
16418archive_cmds=$lt_archive_cmds_F77
16419archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16420postinstall_cmds=$lt_postinstall_cmds
16421postuninstall_cmds=$lt_postuninstall_cmds
16422
16423# Commands used to build a loadable module (assumed same as above if empty)
16424module_cmds=$lt_module_cmds_F77
16425module_expsym_cmds=$lt_module_expsym_cmds_F77
16426
16427# Commands to strip libraries.
16428old_striplib=$lt_old_striplib
16429striplib=$lt_striplib
16430
16431# Dependencies to place before the objects being linked to create a
16432# shared library.
64ff59ba 16433predep_objects=$lt_predep_objects_F77
d9898ee8 16434
16435# Dependencies to place after the objects being linked to create a
16436# shared library.
64ff59ba 16437postdep_objects=$lt_postdep_objects_F77
d9898ee8 16438
16439# Dependencies to place before the objects being linked to create a
16440# shared library.
16441predeps=$lt_predeps_F77
16442
16443# Dependencies to place after the objects being linked to create a
16444# shared library.
16445postdeps=$lt_postdeps_F77
16446
16447# The library search path used internally by the compiler when linking
16448# a shared library.
64ff59ba 16449compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16450
16451# Method to check whether dependent libraries are shared objects.
16452deplibs_check_method=$lt_deplibs_check_method
16453
16454# Command to use when deplibs_check_method == file_magic.
16455file_magic_cmd=$lt_file_magic_cmd
16456
16457# Flag that allows shared libraries with undefined symbols to be built.
16458allow_undefined_flag=$lt_allow_undefined_flag_F77
16459
16460# Flag that forces no undefined symbols.
16461no_undefined_flag=$lt_no_undefined_flag_F77
16462
16463# Commands used to finish a libtool library installation in a directory.
16464finish_cmds=$lt_finish_cmds
16465
16466# Same as above, but a single script fragment to be evaled but not shown.
16467finish_eval=$lt_finish_eval
16468
16469# Take the output of nm and produce a listing of raw symbols and C names.
16470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16471
16472# Transform the output of nm in a proper C declaration
16473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16474
16475# Transform the output of nm in a C name address pair
16476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16477
16478# This is the shared library runtime path variable.
16479runpath_var=$runpath_var
16480
16481# This is the shared library path variable.
16482shlibpath_var=$shlibpath_var
16483
16484# Is shlibpath searched before the hard-coded library search path?
16485shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16486
16487# How to hardcode a shared library path into an executable.
16488hardcode_action=$hardcode_action_F77
16489
16490# Whether we should hardcode library paths into libraries.
16491hardcode_into_libs=$hardcode_into_libs
16492
16493# Flag to hardcode \$libdir into a binary during linking.
16494# This must work even if \$libdir does not exist.
16495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16496
16497# If ld is used when linking, flag to hardcode \$libdir into
16498# a binary during linking. This must work even if \$libdir does
16499# not exist.
16500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16501
16502# Whether we need a single -rpath flag with a separated argument.
16503hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16504
16505# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16506# resulting binary.
16507hardcode_direct=$hardcode_direct_F77
16508
16509# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16510# resulting binary.
16511hardcode_minus_L=$hardcode_minus_L_F77
16512
16513# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16514# the resulting binary.
16515hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16516
16517# Set to yes if building a shared library automatically hardcodes DIR into the library
16518# and all subsequent libraries and executables linked against it.
16519hardcode_automatic=$hardcode_automatic_F77
16520
16521# Variables whose values should be saved in libtool wrapper scripts and
16522# restored at relink time.
16523variables_saved_for_relink="$variables_saved_for_relink"
16524
16525# Whether libtool must link a program against all its dependency libraries.
16526link_all_deplibs=$link_all_deplibs_F77
16527
16528# Compile-time system search path for libraries
64ff59ba 16529sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16530
16531# Run-time system search path for libraries
16532sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16533
16534# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 16535fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16536
16537# Set to yes if exported symbols are required.
16538always_export_symbols=$always_export_symbols_F77
16539
16540# The commands to list exported symbols.
16541export_symbols_cmds=$lt_export_symbols_cmds_F77
16542
16543# The commands to extract the exported symbol list from a shared archive.
16544extract_expsyms_cmds=$lt_extract_expsyms_cmds
16545
16546# Symbols that should not be listed in the preloaded symbols.
16547exclude_expsyms=$lt_exclude_expsyms_F77
16548
16549# Symbols that must always be exported.
16550include_expsyms=$lt_include_expsyms_F77
16551
16552# ### END LIBTOOL TAG CONFIG: $tagname
16553
16554__EOF__
16555
16556
16557else
16558 # If there is no Makefile yet, we rely on a make rule to execute
16559 # `config.status --recheck' to rerun these tests and create the
16560 # libtool script then.
16561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16562 if test -f "$ltmain_in"; then
16563 test -f Makefile && make "$ltmain"
16564 fi
16565fi
16566
16567
16568ac_ext=c
16569ac_cpp='$CPP $CPPFLAGS'
16570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572ac_compiler_gnu=$ac_cv_c_compiler_gnu
16573
16574CC="$lt_save_CC"
16575
16576 else
16577 tagname=""
16578 fi
16579 ;;
16580
16581 GCJ)
16582 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16583
16584
d9898ee8 16585# Source file extension for Java test sources.
16586ac_ext=java
16587
16588# Object file extension for compiled Java test sources.
16589objext=o
16590objext_GCJ=$objext
16591
16592# Code to be used in simple compile tests
0fde1ce3 16593lt_simple_compile_test_code="class foo {}"
d9898ee8 16594
16595# Code to be used in simple link tests
0fde1ce3 16596lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16597
16598# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16599
16600# If no C compiler was specified, use CC.
16601LTCC=${LTCC-"$CC"}
16602
16603# If no C compiler flags were specified, use CFLAGS.
16604LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16605
16606# Allow CC to be a program name with arguments.
16607compiler=$CC
16608
16609
16610# save warnings/boilerplate of simple test code
16611ac_outfile=conftest.$ac_objext
0fde1ce3 16612echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16613eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16614_lt_compiler_boilerplate=`cat conftest.err`
16615$rm conftest*
16616
16617ac_outfile=conftest.$ac_objext
0fde1ce3 16618echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16619eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16620_lt_linker_boilerplate=`cat conftest.err`
16621$rm conftest*
16622
16623
16624# Allow CC to be a program name with arguments.
16625lt_save_CC="$CC"
16626CC=${GCJ-"gcj"}
16627compiler=$CC
16628compiler_GCJ=$CC
16629for cc_temp in $compiler""; do
16630 case $cc_temp in
16631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16633 \-*) ;;
16634 *) break;;
16635 esac
16636done
16637cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16638
16639
16640# GCJ did not exist at the time GCC didn't implicitly link libc in.
16641archive_cmds_need_lc_GCJ=no
16642
16643old_archive_cmds_GCJ=$old_archive_cmds
16644
16645
16646lt_prog_compiler_no_builtin_flag_GCJ=
16647
16648if test "$GCC" = yes; then
16649 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16650
16651
64ff59ba 16652{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16653echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16654if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656else
16657 lt_cv_prog_compiler_rtti_exceptions=no
16658 ac_outfile=conftest.$ac_objext
0fde1ce3 16659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16660 lt_compiler_flag="-fno-rtti -fno-exceptions"
16661 # Insert the option either (1) after the last *FLAGS variable, or
16662 # (2) before a word containing "conftest.", or (3) at the end.
16663 # Note that $ac_compile itself does not contain backslashes and begins
16664 # with a dollar sign (not a hyphen), so the echo should work correctly.
16665 # The option is referenced via a variable to avoid confusing sed.
16666 lt_compile=`echo "$ac_compile" | $SED \
16667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16669 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16670 (eval echo "\"\$as_me:16670: $lt_compile\"" >&5)
d9898ee8 16671 (eval "$lt_compile" 2>conftest.err)
16672 ac_status=$?
16673 cat conftest.err >&5
0fde1ce3 16674 echo "$as_me:16674: \$? = $ac_status" >&5
d9898ee8 16675 if (exit $ac_status) && test -s "$ac_outfile"; then
16676 # The compiler can only warn and ignore the option if not recognized
16677 # So say no if there are warnings other than the usual output.
16678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16681 lt_cv_prog_compiler_rtti_exceptions=yes
16682 fi
16683 fi
16684 $rm conftest*
16685
16686fi
64ff59ba 16687{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16688echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16689
16690if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16691 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16692else
16693 :
16694fi
16695
16696fi
16697
16698lt_prog_compiler_wl_GCJ=
16699lt_prog_compiler_pic_GCJ=
16700lt_prog_compiler_static_GCJ=
16701
64ff59ba 16702{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16703echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16704
16705 if test "$GCC" = yes; then
16706 lt_prog_compiler_wl_GCJ='-Wl,'
16707 lt_prog_compiler_static_GCJ='-static'
16708
16709 case $host_os in
16710 aix*)
16711 # All AIX code is PIC.
16712 if test "$host_cpu" = ia64; then
16713 # AIX 5 now supports IA64 processor
16714 lt_prog_compiler_static_GCJ='-Bstatic'
16715 fi
16716 ;;
16717
16718 amigaos*)
16719 # FIXME: we need at least 68020 code to build shared libraries, but
16720 # adding the `-m68020' flag to GCC prevents building anything better,
16721 # like `-m68040'.
16722 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16723 ;;
16724
0fde1ce3 16725 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16726 # PIC is the default for these OSes.
16727 ;;
16728
0fde1ce3 16729 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16730 # This hack is so that the source file can tell whether it is being
16731 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 16732 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16733 # (--disable-auto-import) libraries
d9898ee8 16734 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16735 ;;
16736
16737 darwin* | rhapsody*)
16738 # PIC is the default on this platform
16739 # Common symbols not allowed in MH_DYLIB files
16740 lt_prog_compiler_pic_GCJ='-fno-common'
16741 ;;
16742
0fde1ce3 16743 interix[3-9]*)
d9898ee8 16744 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16745 # Instead, we relocate shared libraries at runtime.
16746 ;;
16747
16748 msdosdjgpp*)
16749 # Just because we use GCC doesn't mean we suddenly get shared libraries
16750 # on systems that don't support them.
16751 lt_prog_compiler_can_build_shared_GCJ=no
16752 enable_shared=no
16753 ;;
16754
16755 sysv4*MP*)
16756 if test -d /usr/nec; then
16757 lt_prog_compiler_pic_GCJ=-Kconform_pic
16758 fi
16759 ;;
16760
16761 hpux*)
16762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16763 # not for PA HP-UX.
16764 case $host_cpu in
16765 hppa*64*|ia64*)
16766 # +Z the default
16767 ;;
16768 *)
16769 lt_prog_compiler_pic_GCJ='-fPIC'
16770 ;;
16771 esac
16772 ;;
16773
16774 *)
16775 lt_prog_compiler_pic_GCJ='-fPIC'
16776 ;;
16777 esac
16778 else
16779 # PORTME Check for flag to pass linker flags through the system compiler.
16780 case $host_os in
16781 aix*)
16782 lt_prog_compiler_wl_GCJ='-Wl,'
16783 if test "$host_cpu" = ia64; then
16784 # AIX 5 now supports IA64 processor
16785 lt_prog_compiler_static_GCJ='-Bstatic'
16786 else
16787 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16788 fi
16789 ;;
16790 darwin*)
16791 # PIC is the default on this platform
16792 # Common symbols not allowed in MH_DYLIB files
16793 case $cc_basename in
16794 xlc*)
16795 lt_prog_compiler_pic_GCJ='-qnocommon'
16796 lt_prog_compiler_wl_GCJ='-Wl,'
16797 ;;
16798 esac
16799 ;;
16800
0fde1ce3 16801 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16802 # This hack is so that the source file can tell whether it is being
16803 # built for inclusion in a dll (and should export symbols for example).
16804 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16805 ;;
16806
16807 hpux9* | hpux10* | hpux11*)
16808 lt_prog_compiler_wl_GCJ='-Wl,'
16809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16810 # not for PA HP-UX.
16811 case $host_cpu in
16812 hppa*64*|ia64*)
16813 # +Z the default
16814 ;;
16815 *)
16816 lt_prog_compiler_pic_GCJ='+Z'
16817 ;;
16818 esac
16819 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16820 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16821 ;;
16822
16823 irix5* | irix6* | nonstopux*)
16824 lt_prog_compiler_wl_GCJ='-Wl,'
16825 # PIC (with -KPIC) is the default.
16826 lt_prog_compiler_static_GCJ='-non_shared'
16827 ;;
16828
16829 newsos6)
16830 lt_prog_compiler_pic_GCJ='-KPIC'
16831 lt_prog_compiler_static_GCJ='-Bstatic'
16832 ;;
16833
0fde1ce3 16834 linux* | k*bsd*-gnu)
d9898ee8 16835 case $cc_basename in
16836 icc* | ecc*)
16837 lt_prog_compiler_wl_GCJ='-Wl,'
16838 lt_prog_compiler_pic_GCJ='-KPIC'
16839 lt_prog_compiler_static_GCJ='-static'
16840 ;;
16841 pgcc* | pgf77* | pgf90* | pgf95*)
16842 # Portland Group compilers (*not* the Pentium gcc compiler,
16843 # which looks to be a dead project)
16844 lt_prog_compiler_wl_GCJ='-Wl,'
16845 lt_prog_compiler_pic_GCJ='-fpic'
16846 lt_prog_compiler_static_GCJ='-Bstatic'
16847 ;;
16848 ccc*)
16849 lt_prog_compiler_wl_GCJ='-Wl,'
16850 # All Alpha code is PIC.
16851 lt_prog_compiler_static_GCJ='-non_shared'
16852 ;;
0fde1ce3 16853 *)
16854 case `$CC -V 2>&1 | sed 5q` in
16855 *Sun\ C*)
16856 # Sun C 5.9
16857 lt_prog_compiler_pic_GCJ='-KPIC'
16858 lt_prog_compiler_static_GCJ='-Bstatic'
16859 lt_prog_compiler_wl_GCJ='-Wl,'
16860 ;;
16861 *Sun\ F*)
16862 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16863 lt_prog_compiler_pic_GCJ='-KPIC'
16864 lt_prog_compiler_static_GCJ='-Bstatic'
16865 lt_prog_compiler_wl_GCJ=''
16866 ;;
16867 esac
16868 ;;
d9898ee8 16869 esac
16870 ;;
16871
16872 osf3* | osf4* | osf5*)
16873 lt_prog_compiler_wl_GCJ='-Wl,'
16874 # All OSF/1 code is PIC.
16875 lt_prog_compiler_static_GCJ='-non_shared'
16876 ;;
16877
0fde1ce3 16878 rdos*)
16879 lt_prog_compiler_static_GCJ='-non_shared'
16880 ;;
16881
d9898ee8 16882 solaris*)
16883 lt_prog_compiler_pic_GCJ='-KPIC'
16884 lt_prog_compiler_static_GCJ='-Bstatic'
16885 case $cc_basename in
16886 f77* | f90* | f95*)
16887 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16888 *)
16889 lt_prog_compiler_wl_GCJ='-Wl,';;
16890 esac
16891 ;;
16892
16893 sunos4*)
16894 lt_prog_compiler_wl_GCJ='-Qoption ld '
16895 lt_prog_compiler_pic_GCJ='-PIC'
16896 lt_prog_compiler_static_GCJ='-Bstatic'
16897 ;;
16898
16899 sysv4 | sysv4.2uw2* | sysv4.3*)
16900 lt_prog_compiler_wl_GCJ='-Wl,'
16901 lt_prog_compiler_pic_GCJ='-KPIC'
16902 lt_prog_compiler_static_GCJ='-Bstatic'
16903 ;;
16904
16905 sysv4*MP*)
16906 if test -d /usr/nec ;then
16907 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16908 lt_prog_compiler_static_GCJ='-Bstatic'
16909 fi
16910 ;;
16911
16912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16913 lt_prog_compiler_wl_GCJ='-Wl,'
16914 lt_prog_compiler_pic_GCJ='-KPIC'
16915 lt_prog_compiler_static_GCJ='-Bstatic'
16916 ;;
16917
16918 unicos*)
16919 lt_prog_compiler_wl_GCJ='-Wl,'
16920 lt_prog_compiler_can_build_shared_GCJ=no
16921 ;;
16922
16923 uts4*)
16924 lt_prog_compiler_pic_GCJ='-pic'
16925 lt_prog_compiler_static_GCJ='-Bstatic'
16926 ;;
16927
16928 *)
16929 lt_prog_compiler_can_build_shared_GCJ=no
16930 ;;
16931 esac
16932 fi
16933
64ff59ba 16934{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16935echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16936
16937#
16938# Check to make sure the PIC flag actually works.
16939#
16940if test -n "$lt_prog_compiler_pic_GCJ"; then
16941
64ff59ba 16942{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16943echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16944if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946else
16947 lt_prog_compiler_pic_works_GCJ=no
16948 ac_outfile=conftest.$ac_objext
0fde1ce3 16949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16950 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16951 # Insert the option either (1) after the last *FLAGS variable, or
16952 # (2) before a word containing "conftest.", or (3) at the end.
16953 # Note that $ac_compile itself does not contain backslashes and begins
16954 # with a dollar sign (not a hyphen), so the echo should work correctly.
16955 # The option is referenced via a variable to avoid confusing sed.
16956 lt_compile=`echo "$ac_compile" | $SED \
16957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16959 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16960 (eval echo "\"\$as_me:16960: $lt_compile\"" >&5)
d9898ee8 16961 (eval "$lt_compile" 2>conftest.err)
16962 ac_status=$?
16963 cat conftest.err >&5
0fde1ce3 16964 echo "$as_me:16964: \$? = $ac_status" >&5
d9898ee8 16965 if (exit $ac_status) && test -s "$ac_outfile"; then
16966 # The compiler can only warn and ignore the option if not recognized
16967 # So say no if there are warnings other than the usual output.
16968 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16971 lt_prog_compiler_pic_works_GCJ=yes
16972 fi
16973 fi
16974 $rm conftest*
16975
16976fi
64ff59ba 16977{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16978echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16979
16980if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16981 case $lt_prog_compiler_pic_GCJ in
16982 "" | " "*) ;;
16983 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16984 esac
16985else
16986 lt_prog_compiler_pic_GCJ=
16987 lt_prog_compiler_can_build_shared_GCJ=no
16988fi
16989
16990fi
16991case $host_os in
16992 # For platforms which do not support PIC, -DPIC is meaningless:
16993 *djgpp*)
16994 lt_prog_compiler_pic_GCJ=
16995 ;;
16996 *)
16997 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16998 ;;
16999esac
17000
17001#
17002# Check to make sure the static flag actually works.
17003#
17004wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 17005{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17006echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 17007if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009else
17010 lt_prog_compiler_static_works_GCJ=no
17011 save_LDFLAGS="$LDFLAGS"
17012 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 17013 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 17014 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17015 # The linker can only warn and ignore the option if not recognized
17016 # So say no if there are warnings
17017 if test -s conftest.err; then
17018 # Append any errors to the config.log.
17019 cat conftest.err 1>&5
17020 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17022 if diff conftest.exp conftest.er2 >/dev/null; then
17023 lt_prog_compiler_static_works_GCJ=yes
17024 fi
17025 else
17026 lt_prog_compiler_static_works_GCJ=yes
17027 fi
17028 fi
17029 $rm conftest*
17030 LDFLAGS="$save_LDFLAGS"
17031
17032fi
64ff59ba 17033{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17034echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 17035
17036if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17037 :
17038else
17039 lt_prog_compiler_static_GCJ=
17040fi
17041
17042
64ff59ba 17043{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17044echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 17045if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048 lt_cv_prog_compiler_c_o_GCJ=no
17049 $rm -r conftest 2>/dev/null
17050 mkdir conftest
17051 cd conftest
17052 mkdir out
0fde1ce3 17053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 17054
17055 lt_compiler_flag="-o out/conftest2.$ac_objext"
17056 # Insert the option either (1) after the last *FLAGS variable, or
17057 # (2) before a word containing "conftest.", or (3) at the end.
17058 # Note that $ac_compile itself does not contain backslashes and begins
17059 # with a dollar sign (not a hyphen), so the echo should work correctly.
17060 lt_compile=`echo "$ac_compile" | $SED \
17061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17063 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 17064 (eval echo "\"\$as_me:17064: $lt_compile\"" >&5)
d9898ee8 17065 (eval "$lt_compile" 2>out/conftest.err)
17066 ac_status=$?
17067 cat out/conftest.err >&5
0fde1ce3 17068 echo "$as_me:17068: \$? = $ac_status" >&5
d9898ee8 17069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17070 then
17071 # The compiler can only warn and ignore the option if not recognized
17072 # So say no if there are warnings
17073 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17076 lt_cv_prog_compiler_c_o_GCJ=yes
17077 fi
17078 fi
17079 chmod u+w . 2>&5
17080 $rm conftest*
17081 # SGI C++ compiler will create directory out/ii_files/ for
17082 # template instantiation
17083 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17084 $rm out/* && rmdir out
17085 cd ..
17086 rmdir conftest
17087 $rm conftest*
17088
17089fi
64ff59ba 17090{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17091echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 17092
17093
17094hard_links="nottested"
17095if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17096 # do not overwrite the value of need_locks provided by the user
64ff59ba 17097 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17098echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 17099 hard_links=yes
17100 $rm conftest*
17101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17102 touch conftest.a
17103 ln conftest.a conftest.b 2>&5 || hard_links=no
17104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 17105 { echo "$as_me:$LINENO: result: $hard_links" >&5
17106echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 17107 if test "$hard_links" = no; then
17108 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17109echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17110 need_locks=warn
17111 fi
17112else
17113 need_locks=no
17114fi
17115
64ff59ba 17116{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17117echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 17118
17119 runpath_var=
17120 allow_undefined_flag_GCJ=
17121 enable_shared_with_static_runtimes_GCJ=no
17122 archive_cmds_GCJ=
17123 archive_expsym_cmds_GCJ=
17124 old_archive_From_new_cmds_GCJ=
17125 old_archive_from_expsyms_cmds_GCJ=
17126 export_dynamic_flag_spec_GCJ=
17127 whole_archive_flag_spec_GCJ=
17128 thread_safe_flag_spec_GCJ=
17129 hardcode_libdir_flag_spec_GCJ=
17130 hardcode_libdir_flag_spec_ld_GCJ=
17131 hardcode_libdir_separator_GCJ=
17132 hardcode_direct_GCJ=no
17133 hardcode_minus_L_GCJ=no
17134 hardcode_shlibpath_var_GCJ=unsupported
17135 link_all_deplibs_GCJ=unknown
17136 hardcode_automatic_GCJ=no
17137 module_cmds_GCJ=
17138 module_expsym_cmds_GCJ=
17139 always_export_symbols_GCJ=no
17140 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17141 # include_expsyms should be a list of space-separated symbols to be *always*
17142 # included in the symbol list
17143 include_expsyms_GCJ=
17144 # exclude_expsyms can be an extended regexp of symbols to exclude
17145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17147 # as well as any symbol that contains `d'.
17148 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17150 # platforms (ab)use it in PIC code, but their linkers get confused if
17151 # the symbol is explicitly referenced. Since portable code cannot
17152 # rely on this symbol name, it's probably fine to never include it in
17153 # preloaded symbol tables.
17154 extract_expsyms_cmds=
17155 # Just being paranoid about ensuring that cc_basename is set.
17156 for cc_temp in $compiler""; do
17157 case $cc_temp in
17158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17160 \-*) ;;
17161 *) break;;
17162 esac
17163done
17164cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17165
17166 case $host_os in
17167 cygwin* | mingw* | pw32*)
17168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17169 # When not using gcc, we currently assume that we are using
17170 # Microsoft Visual C++.
17171 if test "$GCC" != yes; then
17172 with_gnu_ld=no
17173 fi
17174 ;;
17175 interix*)
17176 # we just hope/assume this is gcc and not c89 (= MSVC++)
17177 with_gnu_ld=yes
17178 ;;
17179 openbsd*)
17180 with_gnu_ld=no
17181 ;;
17182 esac
17183
17184 ld_shlibs_GCJ=yes
17185 if test "$with_gnu_ld" = yes; then
17186 # If archive_cmds runs LD, not CC, wlarc should be empty
17187 wlarc='${wl}'
17188
17189 # Set some defaults for GNU ld with shared library support. These
17190 # are reset later if shared libraries are not supported. Putting them
17191 # here allows them to be overridden if necessary.
17192 runpath_var=LD_RUN_PATH
17193 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17194 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17195 # ancient GNU ld didn't support --whole-archive et. al.
17196 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17197 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17198 else
17199 whole_archive_flag_spec_GCJ=
17200 fi
17201 supports_anon_versioning=no
17202 case `$LD -v 2>/dev/null` in
17203 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17204 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17205 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17206 *\ 2.11.*) ;; # other 2.11 versions
17207 *) supports_anon_versioning=yes ;;
17208 esac
17209
17210 # See if GNU ld supports shared libraries.
17211 case $host_os in
17212 aix3* | aix4* | aix5*)
17213 # On AIX/PPC, the GNU linker is very broken
17214 if test "$host_cpu" != ia64; then
17215 ld_shlibs_GCJ=no
17216 cat <<EOF 1>&2
17217
17218*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17219*** to be unable to reliably create shared libraries on AIX.
17220*** Therefore, libtool is disabling shared libraries support. If you
17221*** really care for shared libraries, you may want to modify your PATH
17222*** so that a non-GNU linker is found, and then restart.
17223
17224EOF
17225 fi
17226 ;;
17227
17228 amigaos*)
17229 archive_cmds_GCJ='$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)'
17230 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17231 hardcode_minus_L_GCJ=yes
17232
17233 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17234 # that the semantics of dynamic libraries on AmigaOS, at least up
17235 # to version 4, is to share data among multiple programs linked
17236 # with the same dynamic library. Since this doesn't match the
17237 # behavior of shared libraries on other platforms, we can't use
17238 # them.
17239 ld_shlibs_GCJ=no
17240 ;;
17241
17242 beos*)
17243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17244 allow_undefined_flag_GCJ=unsupported
17245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17246 # support --undefined. This deserves some investigation. FIXME
17247 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17248 else
17249 ld_shlibs_GCJ=no
17250 fi
17251 ;;
17252
17253 cygwin* | mingw* | pw32*)
17254 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17255 # as there is no search path for DLLs.
17256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17257 allow_undefined_flag_GCJ=unsupported
17258 always_export_symbols_GCJ=no
17259 enable_shared_with_static_runtimes_GCJ=yes
0fde1ce3 17260 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 17261
17262 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17263 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17264 # If the export-symbols file already is a .def file (1st line
17265 # is EXPORTS), use it as is; otherwise, prepend...
17266 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17267 cp $export_symbols $output_objdir/$soname.def;
17268 else
17269 echo EXPORTS > $output_objdir/$soname.def;
17270 cat $export_symbols >> $output_objdir/$soname.def;
17271 fi~
17272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17273 else
17274 ld_shlibs_GCJ=no
17275 fi
17276 ;;
17277
0fde1ce3 17278 interix[3-9]*)
d9898ee8 17279 hardcode_direct_GCJ=no
17280 hardcode_shlibpath_var_GCJ=no
17281 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17282 export_dynamic_flag_spec_GCJ='${wl}-E'
17283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17284 # Instead, shared libraries are loaded at an image base (0x10000000 by
17285 # default) and relocated if they conflict, which is a slow very memory
17286 # consuming and fragmenting process. To avoid this, we pick a random,
17287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17289 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17290 archive_expsym_cmds_GCJ='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'
17291 ;;
17292
0fde1ce3 17293 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17295 tmp_addflag=
17296 case $cc_basename,$host_cpu in
17297 pgcc*) # Portland Group C compiler
17298 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17299 tmp_addflag=' $pic_flag'
17300 ;;
17301 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17302 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17303 tmp_addflag=' $pic_flag -Mnomain' ;;
17304 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17305 tmp_addflag=' -i_dynamic' ;;
17306 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17307 tmp_addflag=' -i_dynamic -nofor_main' ;;
17308 ifc* | ifort*) # Intel Fortran compiler
17309 tmp_addflag=' -nofor_main' ;;
17310 esac
0fde1ce3 17311 case `$CC -V 2>&1 | sed 5q` in
17312 *Sun\ C*) # Sun C 5.9
17313 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17314 tmp_sharedflag='-G' ;;
17315 *Sun\ F*) # Sun Fortran 8.3
17316 tmp_sharedflag='-G' ;;
17317 *)
17318 tmp_sharedflag='-shared' ;;
17319 esac
17320 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17321
17322 if test $supports_anon_versioning = yes; then
17323 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17324 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17325 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 17326 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17327 fi
17328 else
17329 ld_shlibs_GCJ=no
17330 fi
17331 ;;
17332
17333 netbsd*)
17334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17335 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17336 wlarc=
17337 else
17338 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17339 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17340 fi
17341 ;;
17342
17343 solaris*)
17344 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17345 ld_shlibs_GCJ=no
17346 cat <<EOF 1>&2
17347
17348*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17349*** create shared libraries on Solaris systems. Therefore, libtool
17350*** is disabling shared libraries support. We urge you to upgrade GNU
17351*** binutils to release 2.9.1 or newer. Another option is to modify
17352*** your PATH or compiler configuration so that the native linker is
17353*** used, and then restart.
17354
17355EOF
17356 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17357 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17358 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17359 else
17360 ld_shlibs_GCJ=no
17361 fi
17362 ;;
17363
17364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17365 case `$LD -v 2>&1` in
17366 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17367 ld_shlibs_GCJ=no
17368 cat <<_LT_EOF 1>&2
17369
17370*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17371*** reliably create shared libraries on SCO systems. Therefore, libtool
17372*** is disabling shared libraries support. We urge you to upgrade GNU
17373*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17374*** your PATH or compiler configuration so that the native linker is
17375*** used, and then restart.
17376
17377_LT_EOF
17378 ;;
17379 *)
17380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17381 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17383 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17384 else
17385 ld_shlibs_GCJ=no
17386 fi
17387 ;;
17388 esac
17389 ;;
17390
17391 sunos4*)
17392 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17393 wlarc=
17394 hardcode_direct_GCJ=yes
17395 hardcode_shlibpath_var_GCJ=no
17396 ;;
17397
17398 *)
17399 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17402 else
17403 ld_shlibs_GCJ=no
17404 fi
17405 ;;
17406 esac
17407
17408 if test "$ld_shlibs_GCJ" = no; then
17409 runpath_var=
17410 hardcode_libdir_flag_spec_GCJ=
17411 export_dynamic_flag_spec_GCJ=
17412 whole_archive_flag_spec_GCJ=
17413 fi
17414 else
17415 # PORTME fill in a description of your system's linker (not GNU ld)
17416 case $host_os in
17417 aix3*)
17418 allow_undefined_flag_GCJ=unsupported
17419 always_export_symbols_GCJ=yes
17420 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17421 # Note: this linker hardcodes the directories in LIBPATH if there
17422 # are no directories specified by -L.
17423 hardcode_minus_L_GCJ=yes
17424 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17425 # Neither direct hardcoding nor static linking is supported with a
17426 # broken collect2.
17427 hardcode_direct_GCJ=unsupported
17428 fi
17429 ;;
17430
17431 aix4* | aix5*)
17432 if test "$host_cpu" = ia64; then
17433 # On IA64, the linker does run time linking by default, so we don't
17434 # have to do anything special.
17435 aix_use_runtimelinking=no
17436 exp_sym_flag='-Bexport'
17437 no_entry_flag=""
17438 else
17439 # If we're using GNU nm, then we don't want the "-C" option.
17440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17441 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17442 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17443 else
17444 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17445 fi
17446 aix_use_runtimelinking=no
17447
17448 # Test if we are trying to use run time linking or normal
17449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17450 # need to do runtime linking.
17451 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17452 for ld_flag in $LDFLAGS; do
17453 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17454 aix_use_runtimelinking=yes
17455 break
17456 fi
17457 done
17458 ;;
17459 esac
17460
17461 exp_sym_flag='-bexport'
17462 no_entry_flag='-bnoentry'
17463 fi
17464
17465 # When large executables or shared objects are built, AIX ld can
17466 # have problems creating the table of contents. If linking a library
17467 # or program results in "error TOC overflow" add -mminimal-toc to
17468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17470
17471 archive_cmds_GCJ=''
17472 hardcode_direct_GCJ=yes
17473 hardcode_libdir_separator_GCJ=':'
17474 link_all_deplibs_GCJ=yes
17475
17476 if test "$GCC" = yes; then
17477 case $host_os in aix4.[012]|aix4.[012].*)
17478 # We only want to do this on AIX 4.2 and lower, the check
17479 # below for broken collect2 doesn't work under 4.3+
17480 collect2name=`${CC} -print-prog-name=collect2`
17481 if test -f "$collect2name" && \
17482 strings "$collect2name" | grep resolve_lib_name >/dev/null
17483 then
17484 # We have reworked collect2
0fde1ce3 17485 :
d9898ee8 17486 else
17487 # We have old collect2
17488 hardcode_direct_GCJ=unsupported
17489 # It fails to find uninstalled libraries when the uninstalled
17490 # path is not listed in the libpath. Setting hardcode_minus_L
17491 # to unsupported forces relinking
17492 hardcode_minus_L_GCJ=yes
17493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17494 hardcode_libdir_separator_GCJ=
17495 fi
17496 ;;
17497 esac
17498 shared_flag='-shared'
17499 if test "$aix_use_runtimelinking" = yes; then
17500 shared_flag="$shared_flag "'${wl}-G'
17501 fi
17502 else
17503 # not using gcc
17504 if test "$host_cpu" = ia64; then
17505 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17506 # chokes on -Wl,-G. The following line is correct:
17507 shared_flag='-G'
17508 else
17509 if test "$aix_use_runtimelinking" = yes; then
17510 shared_flag='${wl}-G'
17511 else
17512 shared_flag='${wl}-bM:SRE'
17513 fi
17514 fi
17515 fi
17516
17517 # It seems that -bexpall does not export symbols beginning with
17518 # underscore (_), so it is better to generate a list of symbols to export.
17519 always_export_symbols_GCJ=yes
17520 if test "$aix_use_runtimelinking" = yes; then
17521 # Warning - without using the other runtime loading flags (-brtl),
17522 # -berok will link without error, but may produce a broken library.
17523 allow_undefined_flag_GCJ='-berok'
17524 # Determine the default libpath from the value encoded in an empty executable.
17525 cat >conftest.$ac_ext <<_ACEOF
17526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
17531
17532int
17533main ()
17534{
17535
17536 ;
17537 return 0;
17538}
17539_ACEOF
17540rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17541if { (ac_try="$ac_link"
17542case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17545esac
17546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_link") 2>conftest.er1
d9898ee8 17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17553 (exit $ac_status); } && {
17554 test -z "$ac_c_werror_flag" ||
17555 test ! -s conftest.err
17556 } && test -s conftest$ac_exeext &&
17557 $as_test_x conftest$ac_exeext; then
d9898ee8 17558
0fde1ce3 17559lt_aix_libpath_sed='
17560 /Import File Strings/,/^$/ {
17561 /^0/ {
17562 s/^0 *\(.*\)$/\1/
17563 p
17564 }
17565 }'
17566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17567# Check for a 64-bit object if we didn't find anything.
0fde1ce3 17568if test -z "$aix_libpath"; then
17569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17570fi
d9898ee8 17571else
17572 echo "$as_me: failed program was:" >&5
17573sed 's/^/| /' conftest.$ac_ext >&5
17574
64ff59ba 17575
d9898ee8 17576fi
64ff59ba 17577
17578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17579 conftest$ac_exeext conftest.$ac_ext
17580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17581
17582 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17583 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17584 else
17585 if test "$host_cpu" = ia64; then
17586 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17587 allow_undefined_flag_GCJ="-z nodefs"
17588 archive_expsym_cmds_GCJ="\$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"
17589 else
17590 # Determine the default libpath from the value encoded in an empty executable.
17591 cat >conftest.$ac_ext <<_ACEOF
17592/* confdefs.h. */
17593_ACEOF
17594cat confdefs.h >>conftest.$ac_ext
17595cat >>conftest.$ac_ext <<_ACEOF
17596/* end confdefs.h. */
17597
17598int
17599main ()
17600{
17601
17602 ;
17603 return 0;
17604}
17605_ACEOF
17606rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17607if { (ac_try="$ac_link"
17608case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611esac
17612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
d9898ee8 17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
d9898ee8 17624
0fde1ce3 17625lt_aix_libpath_sed='
17626 /Import File Strings/,/^$/ {
17627 /^0/ {
17628 s/^0 *\(.*\)$/\1/
17629 p
17630 }
17631 }'
17632aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17633# Check for a 64-bit object if we didn't find anything.
0fde1ce3 17634if test -z "$aix_libpath"; then
17635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17636fi
d9898ee8 17637else
17638 echo "$as_me: failed program was:" >&5
17639sed 's/^/| /' conftest.$ac_ext >&5
17640
64ff59ba 17641
d9898ee8 17642fi
64ff59ba 17643
17644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17645 conftest$ac_exeext conftest.$ac_ext
17646if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17647
17648 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17649 # Warning - without using the other run time loading flags,
17650 # -berok will link without error, but may produce a broken library.
17651 no_undefined_flag_GCJ=' ${wl}-bernotok'
17652 allow_undefined_flag_GCJ=' ${wl}-berok'
17653 # Exported symbols can be pulled into shared objects from archives
17654 whole_archive_flag_spec_GCJ='$convenience'
17655 archive_cmds_need_lc_GCJ=yes
17656 # This is similar to how AIX traditionally builds its shared libraries.
17657 archive_expsym_cmds_GCJ="\$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'
17658 fi
17659 fi
17660 ;;
17661
17662 amigaos*)
17663 archive_cmds_GCJ='$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)'
17664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17665 hardcode_minus_L_GCJ=yes
17666 # see comment about different semantics on the GNU ld section
17667 ld_shlibs_GCJ=no
17668 ;;
17669
17670 bsdi[45]*)
17671 export_dynamic_flag_spec_GCJ=-rdynamic
17672 ;;
17673
17674 cygwin* | mingw* | pw32*)
17675 # When not using gcc, we currently assume that we are using
17676 # Microsoft Visual C++.
17677 # hardcode_libdir_flag_spec is actually meaningless, as there is
17678 # no search path for DLLs.
17679 hardcode_libdir_flag_spec_GCJ=' '
17680 allow_undefined_flag_GCJ=unsupported
17681 # Tell ltmain to make .lib files, not .a files.
17682 libext=lib
17683 # Tell ltmain to make .dll files, not .so files.
17684 shrext_cmds=".dll"
17685 # FIXME: Setting linknames here is a bad hack.
17686 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17687 # The linker will automatically build a .lib file if we build a DLL.
17688 old_archive_From_new_cmds_GCJ='true'
17689 # FIXME: Should let the user specify the lib program.
0fde1ce3 17690 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17691 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17692 enable_shared_with_static_runtimes_GCJ=yes
17693 ;;
17694
17695 darwin* | rhapsody*)
17696 case $host_os in
17697 rhapsody* | darwin1.[012])
17698 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17699 ;;
17700 *) # Darwin 1.3 on
17701 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17702 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17703 else
17704 case ${MACOSX_DEPLOYMENT_TARGET} in
17705 10.[012])
17706 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17707 ;;
17708 10.*)
17709 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17710 ;;
17711 esac
17712 fi
17713 ;;
17714 esac
17715 archive_cmds_need_lc_GCJ=no
17716 hardcode_direct_GCJ=no
17717 hardcode_automatic_GCJ=yes
17718 hardcode_shlibpath_var_GCJ=unsupported
17719 whole_archive_flag_spec_GCJ=''
17720 link_all_deplibs_GCJ=yes
17721 if test "$GCC" = yes ; then
17722 output_verbose_link_cmd='echo'
17723 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17724 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17726 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17727 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17728 else
17729 case $cc_basename in
17730 xlc*)
17731 output_verbose_link_cmd='echo'
0fde1ce3 17732 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17733 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17734 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 17735 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 17736 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17737 ;;
17738 *)
17739 ld_shlibs_GCJ=no
17740 ;;
17741 esac
17742 fi
17743 ;;
17744
17745 dgux*)
17746 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17747 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17748 hardcode_shlibpath_var_GCJ=no
17749 ;;
17750
17751 freebsd1*)
17752 ld_shlibs_GCJ=no
17753 ;;
17754
17755 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17756 # support. Future versions do this automatically, but an explicit c++rt0.o
17757 # does not break anything, and helps significantly (at the cost of a little
17758 # extra space).
17759 freebsd2.2*)
17760 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17761 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17762 hardcode_direct_GCJ=yes
17763 hardcode_shlibpath_var_GCJ=no
17764 ;;
17765
17766 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17767 freebsd2*)
17768 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17769 hardcode_direct_GCJ=yes
17770 hardcode_minus_L_GCJ=yes
17771 hardcode_shlibpath_var_GCJ=no
17772 ;;
17773
17774 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 17775 freebsd* | dragonfly*)
d9898ee8 17776 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17778 hardcode_direct_GCJ=yes
17779 hardcode_shlibpath_var_GCJ=no
17780 ;;
17781
17782 hpux9*)
17783 if test "$GCC" = yes; then
17784 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17785 else
17786 archive_cmds_GCJ='$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'
17787 fi
17788 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17789 hardcode_libdir_separator_GCJ=:
17790 hardcode_direct_GCJ=yes
17791
17792 # hardcode_minus_L: Not really in the search PATH,
17793 # but as the default location of the library.
17794 hardcode_minus_L_GCJ=yes
17795 export_dynamic_flag_spec_GCJ='${wl}-E'
17796 ;;
17797
17798 hpux10*)
17799 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17800 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17801 else
17802 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17803 fi
17804 if test "$with_gnu_ld" = no; then
17805 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17806 hardcode_libdir_separator_GCJ=:
17807
17808 hardcode_direct_GCJ=yes
17809 export_dynamic_flag_spec_GCJ='${wl}-E'
17810
17811 # hardcode_minus_L: Not really in the search PATH,
17812 # but as the default location of the library.
17813 hardcode_minus_L_GCJ=yes
17814 fi
17815 ;;
17816
17817 hpux11*)
17818 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17819 case $host_cpu in
17820 hppa*64*)
17821 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17822 ;;
17823 ia64*)
17824 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17825 ;;
17826 *)
17827 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17828 ;;
17829 esac
17830 else
17831 case $host_cpu in
17832 hppa*64*)
17833 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17834 ;;
17835 ia64*)
17836 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17837 ;;
17838 *)
17839 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17840 ;;
17841 esac
17842 fi
17843 if test "$with_gnu_ld" = no; then
17844 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17845 hardcode_libdir_separator_GCJ=:
17846
17847 case $host_cpu in
17848 hppa*64*|ia64*)
17849 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17850 hardcode_direct_GCJ=no
17851 hardcode_shlibpath_var_GCJ=no
17852 ;;
17853 *)
17854 hardcode_direct_GCJ=yes
17855 export_dynamic_flag_spec_GCJ='${wl}-E'
17856
17857 # hardcode_minus_L: Not really in the search PATH,
17858 # but as the default location of the library.
17859 hardcode_minus_L_GCJ=yes
17860 ;;
17861 esac
17862 fi
17863 ;;
17864
17865 irix5* | irix6* | nonstopux*)
17866 if test "$GCC" = yes; then
17867 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17868 else
17869 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17870 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17871 fi
17872 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17873 hardcode_libdir_separator_GCJ=:
17874 link_all_deplibs_GCJ=yes
17875 ;;
17876
17877 netbsd*)
17878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17879 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17880 else
17881 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17882 fi
17883 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17884 hardcode_direct_GCJ=yes
17885 hardcode_shlibpath_var_GCJ=no
17886 ;;
17887
17888 newsos6)
17889 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17890 hardcode_direct_GCJ=yes
17891 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17892 hardcode_libdir_separator_GCJ=:
17893 hardcode_shlibpath_var_GCJ=no
17894 ;;
17895
17896 openbsd*)
0fde1ce3 17897 if test -f /usr/libexec/ld.so; then
17898 hardcode_direct_GCJ=yes
17899 hardcode_shlibpath_var_GCJ=no
17900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17901 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17902 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17903 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17904 export_dynamic_flag_spec_GCJ='${wl}-E'
17905 else
17906 case $host_os in
17907 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17908 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17909 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17910 ;;
17911 *)
17912 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17913 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17914 ;;
17915 esac
17916 fi
d9898ee8 17917 else
0fde1ce3 17918 ld_shlibs_GCJ=no
d9898ee8 17919 fi
17920 ;;
17921
17922 os2*)
17923 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17924 hardcode_minus_L_GCJ=yes
17925 allow_undefined_flag_GCJ=unsupported
17926 archive_cmds_GCJ='$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'
17927 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17928 ;;
17929
17930 osf3*)
17931 if test "$GCC" = yes; then
17932 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17933 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17934 else
17935 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17936 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17937 fi
17938 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17939 hardcode_libdir_separator_GCJ=:
17940 ;;
17941
17942 osf4* | osf5*) # as osf3* with the addition of -msym flag
17943 if test "$GCC" = yes; then
17944 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17945 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17946 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17947 else
17948 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17949 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17950 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17951 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17952
17953 # Both c and cxx compiler support -rpath directly
17954 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17955 fi
17956 hardcode_libdir_separator_GCJ=:
17957 ;;
17958
17959 solaris*)
17960 no_undefined_flag_GCJ=' -z text'
17961 if test "$GCC" = yes; then
17962 wlarc='${wl}'
17963 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17964 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17965 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17966 else
17967 wlarc=''
17968 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17969 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17971 fi
17972 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17973 hardcode_shlibpath_var_GCJ=no
17974 case $host_os in
17975 solaris2.[0-5] | solaris2.[0-5].*) ;;
17976 *)
0fde1ce3 17977 # The compiler driver will combine and reorder linker options,
17978 # but understands `-z linker_flag'. GCC discards it without `$wl',
17979 # but is careful enough not to reorder.
d9898ee8 17980 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 17981 if test "$GCC" = yes; then
17982 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17983 else
17984 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17985 fi
17986 ;;
d9898ee8 17987 esac
17988 link_all_deplibs_GCJ=yes
17989 ;;
17990
17991 sunos4*)
17992 if test "x$host_vendor" = xsequent; then
17993 # Use $CC to link under sequent, because it throws in some extra .o
17994 # files that make .init and .fini sections work.
17995 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17996 else
17997 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17998 fi
17999 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18000 hardcode_direct_GCJ=yes
18001 hardcode_minus_L_GCJ=yes
18002 hardcode_shlibpath_var_GCJ=no
18003 ;;
18004
18005 sysv4)
18006 case $host_vendor in
18007 sni)
18008 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18009 hardcode_direct_GCJ=yes # is this really true???
18010 ;;
18011 siemens)
18012 ## LD is ld it makes a PLAMLIB
18013 ## CC just makes a GrossModule.
18014 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18015 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18016 hardcode_direct_GCJ=no
18017 ;;
18018 motorola)
18019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18021 ;;
18022 esac
18023 runpath_var='LD_RUN_PATH'
18024 hardcode_shlibpath_var_GCJ=no
18025 ;;
18026
18027 sysv4.3*)
18028 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18029 hardcode_shlibpath_var_GCJ=no
18030 export_dynamic_flag_spec_GCJ='-Bexport'
18031 ;;
18032
18033 sysv4*MP*)
18034 if test -d /usr/nec; then
18035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18036 hardcode_shlibpath_var_GCJ=no
18037 runpath_var=LD_RUN_PATH
18038 hardcode_runpath_var=yes
18039 ld_shlibs_GCJ=yes
18040 fi
18041 ;;
18042
0fde1ce3 18043 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 18044 no_undefined_flag_GCJ='${wl}-z,text'
18045 archive_cmds_need_lc_GCJ=no
18046 hardcode_shlibpath_var_GCJ=no
18047 runpath_var='LD_RUN_PATH'
18048
18049 if test "$GCC" = yes; then
18050 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18051 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18052 else
18053 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18054 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 fi
18056 ;;
18057
18058 sysv5* | sco3.2v5* | sco5v6*)
18059 # Note: We can NOT use -z defs as we might desire, because we do not
18060 # link with -lc, and that would cause any symbols used from libc to
18061 # always be unresolved, which means just about no library would
18062 # ever link correctly. If we're not using GNU ld we use -z text
18063 # though, which does catch some bad symbols but isn't as heavy-handed
18064 # as -z defs.
18065 no_undefined_flag_GCJ='${wl}-z,text'
18066 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18067 archive_cmds_need_lc_GCJ=no
18068 hardcode_shlibpath_var_GCJ=no
18069 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18070 hardcode_libdir_separator_GCJ=':'
18071 link_all_deplibs_GCJ=yes
18072 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18073 runpath_var='LD_RUN_PATH'
18074
18075 if test "$GCC" = yes; then
18076 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18077 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18078 else
18079 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18080 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18081 fi
18082 ;;
18083
18084 uts4*)
18085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18086 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18087 hardcode_shlibpath_var_GCJ=no
18088 ;;
18089
18090 *)
18091 ld_shlibs_GCJ=no
18092 ;;
18093 esac
18094 fi
18095
64ff59ba 18096{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18097echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 18098test "$ld_shlibs_GCJ" = no && can_build_shared=no
18099
18100#
18101# Do we need to explicitly link libc?
18102#
18103case "x$archive_cmds_need_lc_GCJ" in
18104x|xyes)
18105 # Assume -lc should be added
18106 archive_cmds_need_lc_GCJ=yes
18107
18108 if test "$enable_shared" = yes && test "$GCC" = yes; then
18109 case $archive_cmds_GCJ in
18110 *'~'*)
18111 # FIXME: we may have to deal with multi-command sequences.
18112 ;;
18113 '$CC '*)
18114 # Test whether the compiler implicitly links with -lc since on some
18115 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18116 # to ld, don't add -lc before -lgcc.
64ff59ba 18117 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18118echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 18119 $rm conftest*
0fde1ce3 18120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 18121
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } 2>conftest.err; then
18127 soname=conftest
18128 lib=conftest
18129 libobjs=conftest.$ac_objext
18130 deplibs=
18131 wl=$lt_prog_compiler_wl_GCJ
18132 pic_flag=$lt_prog_compiler_pic_GCJ
18133 compiler_flags=-v
18134 linker_flags=-v
18135 verstring=
18136 output_objdir=.
18137 libname=conftest
18138 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18139 allow_undefined_flag_GCJ=
18140 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18141 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }
18145 then
18146 archive_cmds_need_lc_GCJ=no
18147 else
18148 archive_cmds_need_lc_GCJ=yes
18149 fi
18150 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18151 else
18152 cat conftest.err 1>&5
18153 fi
18154 $rm conftest*
64ff59ba 18155 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18156echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 18157 ;;
18158 esac
18159 fi
18160 ;;
18161esac
18162
64ff59ba 18163{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18164echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 18165library_names_spec=
18166libname_spec='lib$name'
18167soname_spec=
18168shrext_cmds=".so"
18169postinstall_cmds=
18170postuninstall_cmds=
18171finish_cmds=
18172finish_eval=
18173shlibpath_var=
18174shlibpath_overrides_runpath=unknown
18175version_type=none
18176dynamic_linker="$host_os ld.so"
18177sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 18178
d9898ee8 18179need_lib_prefix=unknown
18180hardcode_into_libs=no
18181
18182# when you set need_version to no, make sure it does not cause -set_version
18183# flags to be left without arguments
18184need_version=unknown
18185
18186case $host_os in
18187aix3*)
18188 version_type=linux
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18190 shlibpath_var=LIBPATH
18191
18192 # AIX 3 has no versioning support, so we append a major version to the name.
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 ;;
18195
18196aix4* | aix5*)
18197 version_type=linux
18198 need_lib_prefix=no
18199 need_version=no
18200 hardcode_into_libs=yes
18201 if test "$host_cpu" = ia64; then
18202 # AIX 5 supports IA64
18203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18204 shlibpath_var=LD_LIBRARY_PATH
18205 else
18206 # With GCC up to 2.95.x, collect2 would create an import file
18207 # for dependence libraries. The import file would start with
18208 # the line `#! .'. This would cause the generated library to
18209 # depend on `.', always an invalid library. This was fixed in
18210 # development snapshots of GCC prior to 3.0.
18211 case $host_os in
18212 aix4 | aix4.[01] | aix4.[01].*)
18213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18214 echo ' yes '
18215 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18216 :
18217 else
18218 can_build_shared=no
18219 fi
18220 ;;
18221 esac
18222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18223 # soname into executable. Probably we can add versioning support to
18224 # collect2, so additional links can be useful in future.
18225 if test "$aix_use_runtimelinking" = yes; then
18226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18227 # instead of lib<name>.a to let people know that these are not
18228 # typical AIX shared libraries.
18229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18230 else
18231 # We preserve .a as extension for shared libraries through AIX4.2
18232 # and later when we are not doing run time linking.
18233 library_names_spec='${libname}${release}.a $libname.a'
18234 soname_spec='${libname}${release}${shared_ext}$major'
18235 fi
18236 shlibpath_var=LIBPATH
18237 fi
18238 ;;
18239
18240amigaos*)
18241 library_names_spec='$libname.ixlibrary $libname.a'
18242 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18243 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18244 ;;
18245
18246beos*)
18247 library_names_spec='${libname}${shared_ext}'
18248 dynamic_linker="$host_os ld.so"
18249 shlibpath_var=LIBRARY_PATH
18250 ;;
18251
18252bsdi[45]*)
18253 version_type=linux
18254 need_version=no
18255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256 soname_spec='${libname}${release}${shared_ext}$major'
18257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18261 # the default ld.so.conf also contains /usr/contrib/lib and
18262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18263 # libtool to hard-code these into programs
18264 ;;
18265
18266cygwin* | mingw* | pw32*)
18267 version_type=windows
18268 shrext_cmds=".dll"
18269 need_version=no
18270 need_lib_prefix=no
18271
18272 case $GCC,$host_os in
18273 yes,cygwin* | yes,mingw* | yes,pw32*)
18274 library_names_spec='$libname.dll.a'
18275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18276 postinstall_cmds='base_file=`basename \${file}`~
18277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18278 dldir=$destdir/`dirname \$dlpath`~
18279 test -d \$dldir || mkdir -p \$dldir~
18280 $install_prog $dir/$dlname \$dldir/$dlname~
18281 chmod a+x \$dldir/$dlname'
18282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18283 dlpath=$dir/\$dldll~
18284 $rm \$dlpath'
18285 shlibpath_overrides_runpath=yes
18286
18287 case $host_os in
18288 cygwin*)
18289 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18290 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18291 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18292 ;;
18293 mingw*)
18294 # MinGW DLLs use traditional 'lib' prefix
18295 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18297 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18298 # It is most probably a Windows format PATH printed by
18299 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18300 # path with ; separators, and with drive letters. We can handle the
18301 # drive letters (cygwin fileutils understands them), so leave them,
18302 # especially as we might pass files found there to a mingw objdump,
18303 # which wouldn't understand a cygwinified path. Ahh.
18304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18305 else
18306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18307 fi
18308 ;;
18309 pw32*)
18310 # pw32 DLLs use 'pw' prefix rather than 'lib'
18311 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18312 ;;
18313 esac
18314 ;;
18315
18316 *)
18317 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18318 ;;
18319 esac
18320 dynamic_linker='Win32 ld.exe'
18321 # FIXME: first we should search . and the directory the executable is in
18322 shlibpath_var=PATH
18323 ;;
18324
18325darwin* | rhapsody*)
18326 dynamic_linker="$host_os dyld"
18327 version_type=darwin
18328 need_lib_prefix=no
18329 need_version=no
18330 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18331 soname_spec='${libname}${release}${major}$shared_ext'
18332 shlibpath_overrides_runpath=yes
18333 shlibpath_var=DYLD_LIBRARY_PATH
18334 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 18335
d9898ee8 18336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18337 ;;
18338
18339dgux*)
18340 version_type=linux
18341 need_lib_prefix=no
18342 need_version=no
18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18344 soname_spec='${libname}${release}${shared_ext}$major'
18345 shlibpath_var=LD_LIBRARY_PATH
18346 ;;
18347
18348freebsd1*)
18349 dynamic_linker=no
18350 ;;
18351
d9898ee8 18352freebsd* | dragonfly*)
18353 # DragonFly does not have aout. When/if they implement a new
18354 # versioning mechanism, adjust this.
18355 if test -x /usr/bin/objformat; then
18356 objformat=`/usr/bin/objformat`
18357 else
18358 case $host_os in
18359 freebsd[123]*) objformat=aout ;;
18360 *) objformat=elf ;;
18361 esac
18362 fi
18363 version_type=freebsd-$objformat
18364 case $version_type in
18365 freebsd-elf*)
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18367 need_version=no
18368 need_lib_prefix=no
18369 ;;
18370 freebsd-*)
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18372 need_version=yes
18373 ;;
18374 esac
18375 shlibpath_var=LD_LIBRARY_PATH
18376 case $host_os in
18377 freebsd2*)
18378 shlibpath_overrides_runpath=yes
18379 ;;
18380 freebsd3.[01]* | freebsdelf3.[01]*)
18381 shlibpath_overrides_runpath=yes
18382 hardcode_into_libs=yes
18383 ;;
18384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18386 shlibpath_overrides_runpath=no
18387 hardcode_into_libs=yes
18388 ;;
0fde1ce3 18389 *) # from 4.6 on, and DragonFly
d9898ee8 18390 shlibpath_overrides_runpath=yes
18391 hardcode_into_libs=yes
18392 ;;
18393 esac
18394 ;;
18395
18396gnu*)
18397 version_type=linux
18398 need_lib_prefix=no
18399 need_version=no
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 shlibpath_var=LD_LIBRARY_PATH
18403 hardcode_into_libs=yes
18404 ;;
18405
18406hpux9* | hpux10* | hpux11*)
18407 # Give a soname corresponding to the major version so that dld.sl refuses to
18408 # link against other versions.
18409 version_type=sunos
18410 need_lib_prefix=no
18411 need_version=no
18412 case $host_cpu in
18413 ia64*)
18414 shrext_cmds='.so'
18415 hardcode_into_libs=yes
18416 dynamic_linker="$host_os dld.so"
18417 shlibpath_var=LD_LIBRARY_PATH
18418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 if test "X$HPUX_IA64_MODE" = X32; then
18422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18423 else
18424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18425 fi
18426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18427 ;;
18428 hppa*64*)
18429 shrext_cmds='.sl'
18430 hardcode_into_libs=yes
18431 dynamic_linker="$host_os dld.sl"
18432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435 soname_spec='${libname}${release}${shared_ext}$major'
18436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18438 ;;
18439 *)
18440 shrext_cmds='.sl'
18441 dynamic_linker="$host_os dld.sl"
18442 shlibpath_var=SHLIB_PATH
18443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18445 soname_spec='${libname}${release}${shared_ext}$major'
18446 ;;
18447 esac
18448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18449 postinstall_cmds='chmod 555 $lib'
18450 ;;
18451
0fde1ce3 18452interix[3-9]*)
d9898ee8 18453 version_type=linux
18454 need_lib_prefix=no
18455 need_version=no
18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18457 soname_spec='${libname}${release}${shared_ext}$major'
18458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18459 shlibpath_var=LD_LIBRARY_PATH
18460 shlibpath_overrides_runpath=no
18461 hardcode_into_libs=yes
18462 ;;
18463
18464irix5* | irix6* | nonstopux*)
18465 case $host_os in
18466 nonstopux*) version_type=nonstopux ;;
18467 *)
18468 if test "$lt_cv_prog_gnu_ld" = yes; then
18469 version_type=linux
18470 else
18471 version_type=irix
18472 fi ;;
18473 esac
18474 need_lib_prefix=no
18475 need_version=no
18476 soname_spec='${libname}${release}${shared_ext}$major'
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18478 case $host_os in
18479 irix5* | nonstopux*)
18480 libsuff= shlibsuff=
18481 ;;
18482 *)
18483 case $LD in # libtool.m4 will add one of these switches to LD
18484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18485 libsuff= shlibsuff= libmagic=32-bit;;
18486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18487 libsuff=32 shlibsuff=N32 libmagic=N32;;
18488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18490 *) libsuff= shlibsuff= libmagic=never-match;;
18491 esac
18492 ;;
18493 esac
18494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18495 shlibpath_overrides_runpath=no
18496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18498 hardcode_into_libs=yes
18499 ;;
18500
18501# No shared lib support for Linux oldld, aout, or coff.
18502linux*oldld* | linux*aout* | linux*coff*)
18503 dynamic_linker=no
18504 ;;
18505
18506# This must be Linux ELF.
0fde1ce3 18507linux* | k*bsd*-gnu)
d9898ee8 18508 version_type=linux
18509 need_lib_prefix=no
18510 need_version=no
18511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18512 soname_spec='${libname}${release}${shared_ext}$major'
18513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18514 shlibpath_var=LD_LIBRARY_PATH
18515 shlibpath_overrides_runpath=no
18516 # This implies no fast_install, which is unacceptable.
18517 # Some rework will be needed to allow for fast_install
18518 # before this can be enabled.
18519 hardcode_into_libs=yes
0fde1ce3 18520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18522
18523 # Append ld.so.conf contents to the search path
18524 if test -f /etc/ld.so.conf; then
0fde1ce3 18525 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;/^$/d' | tr '\n' ' '`
18526 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18527 fi
18528
18529 # We used to test for /lib/ld.so.1 and disable shared libraries on
18530 # powerpc, because MkLinux only supported shared libraries with the
18531 # GNU dynamic linker. Since this was broken with cross compilers,
18532 # most powerpc-linux boxes support dynamic linking these days and
18533 # people can always --disable-shared, the test was removed, and we
18534 # assume the GNU/Linux dynamic linker is in use.
18535 dynamic_linker='GNU/Linux ld.so'
18536 ;;
18537
d9898ee8 18538netbsd*)
18539 version_type=sunos
18540 need_lib_prefix=no
18541 need_version=no
18542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18545 dynamic_linker='NetBSD (a.out) ld.so'
18546 else
18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18548 soname_spec='${libname}${release}${shared_ext}$major'
18549 dynamic_linker='NetBSD ld.elf_so'
18550 fi
18551 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=yes
18553 hardcode_into_libs=yes
18554 ;;
18555
18556newsos6)
18557 version_type=linux
18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559 shlibpath_var=LD_LIBRARY_PATH
18560 shlibpath_overrides_runpath=yes
18561 ;;
18562
18563nto-qnx*)
18564 version_type=linux
18565 need_lib_prefix=no
18566 need_version=no
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 shlibpath_var=LD_LIBRARY_PATH
18570 shlibpath_overrides_runpath=yes
18571 ;;
18572
18573openbsd*)
18574 version_type=sunos
18575 sys_lib_dlsearch_path_spec="/usr/lib"
18576 need_lib_prefix=no
18577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18578 case $host_os in
18579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18580 *) need_version=no ;;
18581 esac
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18584 shlibpath_var=LD_LIBRARY_PATH
18585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18586 case $host_os in
18587 openbsd2.[89] | openbsd2.[89].*)
18588 shlibpath_overrides_runpath=no
18589 ;;
18590 *)
18591 shlibpath_overrides_runpath=yes
18592 ;;
18593 esac
18594 else
18595 shlibpath_overrides_runpath=yes
18596 fi
18597 ;;
18598
18599os2*)
18600 libname_spec='$name'
18601 shrext_cmds=".dll"
18602 need_lib_prefix=no
18603 library_names_spec='$libname${shared_ext} $libname.a'
18604 dynamic_linker='OS/2 ld.exe'
18605 shlibpath_var=LIBPATH
18606 ;;
18607
18608osf3* | osf4* | osf5*)
18609 version_type=osf
18610 need_lib_prefix=no
18611 need_version=no
18612 soname_spec='${libname}${release}${shared_ext}$major'
18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18617 ;;
18618
0fde1ce3 18619rdos*)
18620 dynamic_linker=no
18621 ;;
18622
d9898ee8 18623solaris*)
18624 version_type=linux
18625 need_lib_prefix=no
18626 need_version=no
18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628 soname_spec='${libname}${release}${shared_ext}$major'
18629 shlibpath_var=LD_LIBRARY_PATH
18630 shlibpath_overrides_runpath=yes
18631 hardcode_into_libs=yes
18632 # ldd complains unless libraries are executable
18633 postinstall_cmds='chmod +x $lib'
18634 ;;
18635
18636sunos4*)
18637 version_type=sunos
18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath=yes
18642 if test "$with_gnu_ld" = yes; then
18643 need_lib_prefix=no
18644 fi
18645 need_version=yes
18646 ;;
18647
18648sysv4 | sysv4.3*)
18649 version_type=linux
18650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18651 soname_spec='${libname}${release}${shared_ext}$major'
18652 shlibpath_var=LD_LIBRARY_PATH
18653 case $host_vendor in
18654 sni)
18655 shlibpath_overrides_runpath=no
18656 need_lib_prefix=no
18657 export_dynamic_flag_spec='${wl}-Blargedynsym'
18658 runpath_var=LD_RUN_PATH
18659 ;;
18660 siemens)
18661 need_lib_prefix=no
18662 ;;
18663 motorola)
18664 need_lib_prefix=no
18665 need_version=no
18666 shlibpath_overrides_runpath=no
18667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18668 ;;
18669 esac
18670 ;;
18671
18672sysv4*MP*)
18673 if test -d /usr/nec ;then
18674 version_type=linux
18675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18676 soname_spec='$libname${shared_ext}.$major'
18677 shlibpath_var=LD_LIBRARY_PATH
18678 fi
18679 ;;
18680
18681sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18682 version_type=freebsd-elf
18683 need_lib_prefix=no
18684 need_version=no
18685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18686 soname_spec='${libname}${release}${shared_ext}$major'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 hardcode_into_libs=yes
18689 if test "$with_gnu_ld" = yes; then
18690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18691 shlibpath_overrides_runpath=no
18692 else
18693 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18694 shlibpath_overrides_runpath=yes
18695 case $host_os in
18696 sco3.2v5*)
18697 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18698 ;;
18699 esac
18700 fi
18701 sys_lib_dlsearch_path_spec='/usr/lib'
18702 ;;
18703
18704uts4*)
18705 version_type=linux
18706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707 soname_spec='${libname}${release}${shared_ext}$major'
18708 shlibpath_var=LD_LIBRARY_PATH
18709 ;;
18710
18711*)
18712 dynamic_linker=no
18713 ;;
18714esac
64ff59ba 18715{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18716echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18717test "$dynamic_linker" = no && can_build_shared=no
18718
18719variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18720if test "$GCC" = yes; then
18721 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18722fi
18723
64ff59ba 18724{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18725echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18726hardcode_action_GCJ=
18727if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18728 test -n "$runpath_var_GCJ" || \
18729 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18730
18731 # We can hardcode non-existant directories.
18732 if test "$hardcode_direct_GCJ" != no &&
18733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18734 # have to relink, otherwise we might link with an installed library
18735 # when we should be linking with a yet-to-be-installed one
18736 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18737 test "$hardcode_minus_L_GCJ" != no; then
18738 # Linking always hardcodes the temporary library directory.
18739 hardcode_action_GCJ=relink
18740 else
18741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18742 hardcode_action_GCJ=immediate
18743 fi
18744else
18745 # We cannot hardcode anything, or else we can only hardcode existing
18746 # directories.
18747 hardcode_action_GCJ=unsupported
18748fi
64ff59ba 18749{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18750echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18751
18752if test "$hardcode_action_GCJ" = relink; then
18753 # Fast installation is not supported
18754 enable_fast_install=no
18755elif test "$shlibpath_overrides_runpath" = yes ||
18756 test "$enable_shared" = no; then
18757 # Fast installation is not necessary
18758 enable_fast_install=needless
18759fi
18760
18761
18762# The else clause should only fire when bootstrapping the
18763# libtool distribution, otherwise you forgot to ship ltmain.sh
18764# with your package, and you will get complaints that there are
18765# no rules to generate ltmain.sh.
18766if test -f "$ltmain"; then
18767 # See if we are running on zsh, and set the options which allow our commands through
18768 # without removal of \ escapes.
18769 if test -n "${ZSH_VERSION+set}" ; then
18770 setopt NO_GLOB_SUBST
18771 fi
18772 # Now quote all the things that may contain metacharacters while being
18773 # careful not to overquote the AC_SUBSTed values. We take copies of the
18774 # variables and quote the copies for generation of the libtool script.
18775 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18776 SED SHELL STRIP \
18777 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18778 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18779 deplibs_check_method reload_flag reload_cmds need_locks \
18780 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18781 lt_cv_sys_global_symbol_to_c_name_address \
18782 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18783 old_postinstall_cmds old_postuninstall_cmds \
18784 compiler_GCJ \
18785 CC_GCJ \
18786 LD_GCJ \
18787 lt_prog_compiler_wl_GCJ \
18788 lt_prog_compiler_pic_GCJ \
18789 lt_prog_compiler_static_GCJ \
18790 lt_prog_compiler_no_builtin_flag_GCJ \
18791 export_dynamic_flag_spec_GCJ \
18792 thread_safe_flag_spec_GCJ \
18793 whole_archive_flag_spec_GCJ \
18794 enable_shared_with_static_runtimes_GCJ \
18795 old_archive_cmds_GCJ \
18796 old_archive_from_new_cmds_GCJ \
18797 predep_objects_GCJ \
18798 postdep_objects_GCJ \
18799 predeps_GCJ \
18800 postdeps_GCJ \
18801 compiler_lib_search_path_GCJ \
18802 archive_cmds_GCJ \
18803 archive_expsym_cmds_GCJ \
18804 postinstall_cmds_GCJ \
18805 postuninstall_cmds_GCJ \
18806 old_archive_from_expsyms_cmds_GCJ \
18807 allow_undefined_flag_GCJ \
18808 no_undefined_flag_GCJ \
18809 export_symbols_cmds_GCJ \
18810 hardcode_libdir_flag_spec_GCJ \
18811 hardcode_libdir_flag_spec_ld_GCJ \
18812 hardcode_libdir_separator_GCJ \
18813 hardcode_automatic_GCJ \
18814 module_cmds_GCJ \
18815 module_expsym_cmds_GCJ \
18816 lt_cv_prog_compiler_c_o_GCJ \
0fde1ce3 18817 fix_srcfile_path_GCJ \
d9898ee8 18818 exclude_expsyms_GCJ \
18819 include_expsyms_GCJ; do
18820
18821 case $var in
18822 old_archive_cmds_GCJ | \
18823 old_archive_from_new_cmds_GCJ | \
18824 archive_cmds_GCJ | \
18825 archive_expsym_cmds_GCJ | \
18826 module_cmds_GCJ | \
18827 module_expsym_cmds_GCJ | \
18828 old_archive_from_expsyms_cmds_GCJ | \
18829 export_symbols_cmds_GCJ | \
18830 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18831 postinstall_cmds | postuninstall_cmds | \
18832 old_postinstall_cmds | old_postuninstall_cmds | \
18833 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18834 # Double-quote double-evaled strings.
18835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18836 ;;
18837 *)
18838 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18839 ;;
18840 esac
18841 done
18842
18843 case $lt_echo in
18844 *'\$0 --fallback-echo"')
18845 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18846 ;;
18847 esac
18848
18849cfgfile="$ofile"
18850
18851 cat <<__EOF__ >> "$cfgfile"
18852# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18853
18854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18855
18856# Shell to use when invoking shell scripts.
18857SHELL=$lt_SHELL
18858
18859# Whether or not to build shared libraries.
18860build_libtool_libs=$enable_shared
18861
18862# Whether or not to build static libraries.
18863build_old_libs=$enable_static
18864
18865# Whether or not to add -lc for building shared libraries.
18866build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18867
18868# Whether or not to disallow shared libs when runtime libs are static
18869allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18870
18871# Whether or not to optimize for fast installation.
18872fast_install=$enable_fast_install
18873
18874# The host system.
18875host_alias=$host_alias
18876host=$host
18877host_os=$host_os
18878
18879# The build system.
18880build_alias=$build_alias
18881build=$build
18882build_os=$build_os
18883
18884# An echo program that does not interpret backslashes.
18885echo=$lt_echo
18886
18887# The archiver.
18888AR=$lt_AR
18889AR_FLAGS=$lt_AR_FLAGS
18890
18891# A C compiler.
18892LTCC=$lt_LTCC
18893
18894# LTCC compiler flags.
18895LTCFLAGS=$lt_LTCFLAGS
18896
18897# A language-specific compiler.
18898CC=$lt_compiler_GCJ
18899
18900# Is the compiler the GNU C compiler?
18901with_gcc=$GCC_GCJ
18902
d9898ee8 18903# An ERE matcher.
18904EGREP=$lt_EGREP
18905
18906# The linker used to build libraries.
18907LD=$lt_LD_GCJ
18908
18909# Whether we need hard or soft links.
18910LN_S=$lt_LN_S
18911
18912# A BSD-compatible nm program.
18913NM=$lt_NM
18914
18915# A symbol stripping program
18916STRIP=$lt_STRIP
18917
18918# Used to examine libraries when file_magic_cmd begins "file"
18919MAGIC_CMD=$MAGIC_CMD
18920
18921# Used on cygwin: DLL creation program.
18922DLLTOOL="$DLLTOOL"
18923
18924# Used on cygwin: object dumper.
18925OBJDUMP="$OBJDUMP"
18926
18927# Used on cygwin: assembler.
18928AS="$AS"
18929
18930# The name of the directory that contains temporary libtool files.
18931objdir=$objdir
18932
18933# How to create reloadable object files.
18934reload_flag=$lt_reload_flag
18935reload_cmds=$lt_reload_cmds
18936
18937# How to pass a linker flag through the compiler.
18938wl=$lt_lt_prog_compiler_wl_GCJ
18939
18940# Object file suffix (normally "o").
18941objext="$ac_objext"
18942
18943# Old archive suffix (normally "a").
18944libext="$libext"
18945
18946# Shared library suffix (normally ".so").
18947shrext_cmds='$shrext_cmds'
18948
18949# Executable file suffix (normally "").
18950exeext="$exeext"
18951
18952# Additional compiler flags for building library objects.
18953pic_flag=$lt_lt_prog_compiler_pic_GCJ
18954pic_mode=$pic_mode
18955
18956# What is the maximum length of a command?
18957max_cmd_len=$lt_cv_sys_max_cmd_len
18958
18959# Does compiler simultaneously support -c and -o options?
18960compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18961
18962# Must we lock files when doing compilation?
18963need_locks=$lt_need_locks
18964
18965# Do we need the lib prefix for modules?
18966need_lib_prefix=$need_lib_prefix
18967
18968# Do we need a version for libraries?
18969need_version=$need_version
18970
18971# Whether dlopen is supported.
18972dlopen_support=$enable_dlopen
18973
18974# Whether dlopen of programs is supported.
18975dlopen_self=$enable_dlopen_self
18976
18977# Whether dlopen of statically linked programs is supported.
18978dlopen_self_static=$enable_dlopen_self_static
18979
18980# Compiler flag to prevent dynamic linking.
18981link_static_flag=$lt_lt_prog_compiler_static_GCJ
18982
18983# Compiler flag to turn off builtin functions.
18984no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18985
18986# Compiler flag to allow reflexive dlopens.
18987export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18988
18989# Compiler flag to generate shared objects directly from archives.
18990whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18991
18992# Compiler flag to generate thread-safe objects.
18993thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18994
18995# Library versioning type.
18996version_type=$version_type
18997
18998# Format of library name prefix.
18999libname_spec=$lt_libname_spec
19000
19001# List of archive names. First name is the real one, the rest are links.
19002# The last name is the one that the linker finds with -lNAME.
19003library_names_spec=$lt_library_names_spec
19004
19005# The coded name of the library, if different from the real name.
19006soname_spec=$lt_soname_spec
19007
19008# Commands used to build and install an old-style archive.
19009RANLIB=$lt_RANLIB
19010old_archive_cmds=$lt_old_archive_cmds_GCJ
19011old_postinstall_cmds=$lt_old_postinstall_cmds
19012old_postuninstall_cmds=$lt_old_postuninstall_cmds
19013
19014# Create an old-style archive from a shared archive.
19015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19016
19017# Create a temporary old-style archive to link instead of a shared archive.
19018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19019
19020# Commands used to build and install a shared archive.
19021archive_cmds=$lt_archive_cmds_GCJ
19022archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19023postinstall_cmds=$lt_postinstall_cmds
19024postuninstall_cmds=$lt_postuninstall_cmds
19025
19026# Commands used to build a loadable module (assumed same as above if empty)
19027module_cmds=$lt_module_cmds_GCJ
19028module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19029
19030# Commands to strip libraries.
19031old_striplib=$lt_old_striplib
19032striplib=$lt_striplib
19033
19034# Dependencies to place before the objects being linked to create a
19035# shared library.
64ff59ba 19036predep_objects=$lt_predep_objects_GCJ
d9898ee8 19037
19038# Dependencies to place after the objects being linked to create a
19039# shared library.
64ff59ba 19040postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 19041
19042# Dependencies to place before the objects being linked to create a
19043# shared library.
19044predeps=$lt_predeps_GCJ
19045
19046# Dependencies to place after the objects being linked to create a
19047# shared library.
19048postdeps=$lt_postdeps_GCJ
19049
19050# The library search path used internally by the compiler when linking
19051# a shared library.
64ff59ba 19052compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 19053
19054# Method to check whether dependent libraries are shared objects.
19055deplibs_check_method=$lt_deplibs_check_method
19056
19057# Command to use when deplibs_check_method == file_magic.
19058file_magic_cmd=$lt_file_magic_cmd
19059
19060# Flag that allows shared libraries with undefined symbols to be built.
19061allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19062
19063# Flag that forces no undefined symbols.
19064no_undefined_flag=$lt_no_undefined_flag_GCJ
19065
19066# Commands used to finish a libtool library installation in a directory.
19067finish_cmds=$lt_finish_cmds
19068
19069# Same as above, but a single script fragment to be evaled but not shown.
19070finish_eval=$lt_finish_eval
19071
19072# Take the output of nm and produce a listing of raw symbols and C names.
19073global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19074
19075# Transform the output of nm in a proper C declaration
19076global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19077
19078# Transform the output of nm in a C name address pair
19079global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19080
19081# This is the shared library runtime path variable.
19082runpath_var=$runpath_var
19083
19084# This is the shared library path variable.
19085shlibpath_var=$shlibpath_var
19086
19087# Is shlibpath searched before the hard-coded library search path?
19088shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19089
19090# How to hardcode a shared library path into an executable.
19091hardcode_action=$hardcode_action_GCJ
19092
19093# Whether we should hardcode library paths into libraries.
19094hardcode_into_libs=$hardcode_into_libs
19095
19096# Flag to hardcode \$libdir into a binary during linking.
19097# This must work even if \$libdir does not exist.
19098hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19099
19100# If ld is used when linking, flag to hardcode \$libdir into
19101# a binary during linking. This must work even if \$libdir does
19102# not exist.
19103hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19104
19105# Whether we need a single -rpath flag with a separated argument.
19106hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19107
19108# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19109# resulting binary.
19110hardcode_direct=$hardcode_direct_GCJ
19111
19112# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19113# resulting binary.
19114hardcode_minus_L=$hardcode_minus_L_GCJ
19115
19116# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19117# the resulting binary.
19118hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19119
19120# Set to yes if building a shared library automatically hardcodes DIR into the library
19121# and all subsequent libraries and executables linked against it.
19122hardcode_automatic=$hardcode_automatic_GCJ
19123
19124# Variables whose values should be saved in libtool wrapper scripts and
19125# restored at relink time.
19126variables_saved_for_relink="$variables_saved_for_relink"
19127
19128# Whether libtool must link a program against all its dependency libraries.
19129link_all_deplibs=$link_all_deplibs_GCJ
19130
19131# Compile-time system search path for libraries
64ff59ba 19132sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19133
19134# Run-time system search path for libraries
19135sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19136
19137# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 19138fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19139
19140# Set to yes if exported symbols are required.
19141always_export_symbols=$always_export_symbols_GCJ
19142
19143# The commands to list exported symbols.
19144export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19145
19146# The commands to extract the exported symbol list from a shared archive.
19147extract_expsyms_cmds=$lt_extract_expsyms_cmds
19148
19149# Symbols that should not be listed in the preloaded symbols.
19150exclude_expsyms=$lt_exclude_expsyms_GCJ
19151
19152# Symbols that must always be exported.
19153include_expsyms=$lt_include_expsyms_GCJ
19154
19155# ### END LIBTOOL TAG CONFIG: $tagname
19156
19157__EOF__
19158
19159
19160else
19161 # If there is no Makefile yet, we rely on a make rule to execute
19162 # `config.status --recheck' to rerun these tests and create the
19163 # libtool script then.
19164 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19165 if test -f "$ltmain_in"; then
19166 test -f Makefile && make "$ltmain"
19167 fi
19168fi
19169
19170
19171ac_ext=c
19172ac_cpp='$CPP $CPPFLAGS'
19173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175ac_compiler_gnu=$ac_cv_c_compiler_gnu
19176
19177CC="$lt_save_CC"
19178
19179 else
19180 tagname=""
19181 fi
19182 ;;
19183
19184 RC)
19185
19186
d9898ee8 19187# Source file extension for RC test sources.
19188ac_ext=rc
19189
19190# Object file extension for compiled RC test sources.
19191objext=o
19192objext_RC=$objext
19193
19194# Code to be used in simple compile tests
0fde1ce3 19195lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 19196
19197# Code to be used in simple link tests
19198lt_simple_link_test_code="$lt_simple_compile_test_code"
19199
19200# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19201
19202# If no C compiler was specified, use CC.
19203LTCC=${LTCC-"$CC"}
19204
19205# If no C compiler flags were specified, use CFLAGS.
19206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19207
19208# Allow CC to be a program name with arguments.
19209compiler=$CC
19210
19211
19212# save warnings/boilerplate of simple test code
19213ac_outfile=conftest.$ac_objext
0fde1ce3 19214echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 19215eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19216_lt_compiler_boilerplate=`cat conftest.err`
19217$rm conftest*
19218
19219ac_outfile=conftest.$ac_objext
0fde1ce3 19220echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 19221eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19222_lt_linker_boilerplate=`cat conftest.err`
19223$rm conftest*
19224
19225
19226# Allow CC to be a program name with arguments.
19227lt_save_CC="$CC"
19228CC=${RC-"windres"}
19229compiler=$CC
19230compiler_RC=$CC
19231for cc_temp in $compiler""; do
19232 case $cc_temp in
19233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19235 \-*) ;;
19236 *) break;;
19237 esac
19238done
19239cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19240
19241lt_cv_prog_compiler_c_o_RC=yes
19242
19243# The else clause should only fire when bootstrapping the
19244# libtool distribution, otherwise you forgot to ship ltmain.sh
19245# with your package, and you will get complaints that there are
19246# no rules to generate ltmain.sh.
19247if test -f "$ltmain"; then
19248 # See if we are running on zsh, and set the options which allow our commands through
19249 # without removal of \ escapes.
19250 if test -n "${ZSH_VERSION+set}" ; then
19251 setopt NO_GLOB_SUBST
19252 fi
19253 # Now quote all the things that may contain metacharacters while being
19254 # careful not to overquote the AC_SUBSTed values. We take copies of the
19255 # variables and quote the copies for generation of the libtool script.
19256 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19257 SED SHELL STRIP \
19258 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19259 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19260 deplibs_check_method reload_flag reload_cmds need_locks \
19261 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19262 lt_cv_sys_global_symbol_to_c_name_address \
19263 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19264 old_postinstall_cmds old_postuninstall_cmds \
19265 compiler_RC \
19266 CC_RC \
19267 LD_RC \
19268 lt_prog_compiler_wl_RC \
19269 lt_prog_compiler_pic_RC \
19270 lt_prog_compiler_static_RC \
19271 lt_prog_compiler_no_builtin_flag_RC \
19272 export_dynamic_flag_spec_RC \
19273 thread_safe_flag_spec_RC \
19274 whole_archive_flag_spec_RC \
19275 enable_shared_with_static_runtimes_RC \
19276 old_archive_cmds_RC \
19277 old_archive_from_new_cmds_RC \
19278 predep_objects_RC \
19279 postdep_objects_RC \
19280 predeps_RC \
19281 postdeps_RC \
19282 compiler_lib_search_path_RC \
19283 archive_cmds_RC \
19284 archive_expsym_cmds_RC \
19285 postinstall_cmds_RC \
19286 postuninstall_cmds_RC \
19287 old_archive_from_expsyms_cmds_RC \
19288 allow_undefined_flag_RC \
19289 no_undefined_flag_RC \
19290 export_symbols_cmds_RC \
19291 hardcode_libdir_flag_spec_RC \
19292 hardcode_libdir_flag_spec_ld_RC \
19293 hardcode_libdir_separator_RC \
19294 hardcode_automatic_RC \
19295 module_cmds_RC \
19296 module_expsym_cmds_RC \
19297 lt_cv_prog_compiler_c_o_RC \
0fde1ce3 19298 fix_srcfile_path_RC \
d9898ee8 19299 exclude_expsyms_RC \
19300 include_expsyms_RC; do
19301
19302 case $var in
19303 old_archive_cmds_RC | \
19304 old_archive_from_new_cmds_RC | \
19305 archive_cmds_RC | \
19306 archive_expsym_cmds_RC | \
19307 module_cmds_RC | \
19308 module_expsym_cmds_RC | \
19309 old_archive_from_expsyms_cmds_RC | \
19310 export_symbols_cmds_RC | \
19311 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19312 postinstall_cmds | postuninstall_cmds | \
19313 old_postinstall_cmds | old_postuninstall_cmds | \
19314 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19315 # Double-quote double-evaled strings.
19316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19317 ;;
19318 *)
19319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19320 ;;
19321 esac
19322 done
19323
19324 case $lt_echo in
19325 *'\$0 --fallback-echo"')
19326 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19327 ;;
19328 esac
19329
19330cfgfile="$ofile"
19331
19332 cat <<__EOF__ >> "$cfgfile"
19333# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19334
19335# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19336
19337# Shell to use when invoking shell scripts.
19338SHELL=$lt_SHELL
19339
19340# Whether or not to build shared libraries.
19341build_libtool_libs=$enable_shared
19342
19343# Whether or not to build static libraries.
19344build_old_libs=$enable_static
19345
19346# Whether or not to add -lc for building shared libraries.
19347build_libtool_need_lc=$archive_cmds_need_lc_RC
19348
19349# Whether or not to disallow shared libs when runtime libs are static
19350allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19351
19352# Whether or not to optimize for fast installation.
19353fast_install=$enable_fast_install
19354
19355# The host system.
19356host_alias=$host_alias
19357host=$host
19358host_os=$host_os
19359
19360# The build system.
19361build_alias=$build_alias
19362build=$build
19363build_os=$build_os
19364
19365# An echo program that does not interpret backslashes.
19366echo=$lt_echo
19367
19368# The archiver.
19369AR=$lt_AR
19370AR_FLAGS=$lt_AR_FLAGS
19371
19372# A C compiler.
19373LTCC=$lt_LTCC
19374
19375# LTCC compiler flags.
19376LTCFLAGS=$lt_LTCFLAGS
19377
19378# A language-specific compiler.
19379CC=$lt_compiler_RC
19380
19381# Is the compiler the GNU C compiler?
19382with_gcc=$GCC_RC
19383
d9898ee8 19384# An ERE matcher.
19385EGREP=$lt_EGREP
19386
19387# The linker used to build libraries.
19388LD=$lt_LD_RC
19389
19390# Whether we need hard or soft links.
19391LN_S=$lt_LN_S
19392
19393# A BSD-compatible nm program.
19394NM=$lt_NM
19395
19396# A symbol stripping program
19397STRIP=$lt_STRIP
19398
19399# Used to examine libraries when file_magic_cmd begins "file"
19400MAGIC_CMD=$MAGIC_CMD
19401
19402# Used on cygwin: DLL creation program.
19403DLLTOOL="$DLLTOOL"
19404
19405# Used on cygwin: object dumper.
19406OBJDUMP="$OBJDUMP"
19407
19408# Used on cygwin: assembler.
19409AS="$AS"
19410
19411# The name of the directory that contains temporary libtool files.
19412objdir=$objdir
19413
19414# How to create reloadable object files.
19415reload_flag=$lt_reload_flag
19416reload_cmds=$lt_reload_cmds
19417
19418# How to pass a linker flag through the compiler.
19419wl=$lt_lt_prog_compiler_wl_RC
19420
19421# Object file suffix (normally "o").
19422objext="$ac_objext"
19423
19424# Old archive suffix (normally "a").
19425libext="$libext"
19426
19427# Shared library suffix (normally ".so").
19428shrext_cmds='$shrext_cmds'
19429
19430# Executable file suffix (normally "").
19431exeext="$exeext"
19432
19433# Additional compiler flags for building library objects.
19434pic_flag=$lt_lt_prog_compiler_pic_RC
19435pic_mode=$pic_mode
19436
19437# What is the maximum length of a command?
19438max_cmd_len=$lt_cv_sys_max_cmd_len
19439
19440# Does compiler simultaneously support -c and -o options?
19441compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19442
19443# Must we lock files when doing compilation?
19444need_locks=$lt_need_locks
19445
19446# Do we need the lib prefix for modules?
19447need_lib_prefix=$need_lib_prefix
19448
19449# Do we need a version for libraries?
19450need_version=$need_version
19451
19452# Whether dlopen is supported.
19453dlopen_support=$enable_dlopen
19454
19455# Whether dlopen of programs is supported.
19456dlopen_self=$enable_dlopen_self
19457
19458# Whether dlopen of statically linked programs is supported.
19459dlopen_self_static=$enable_dlopen_self_static
19460
19461# Compiler flag to prevent dynamic linking.
19462link_static_flag=$lt_lt_prog_compiler_static_RC
19463
19464# Compiler flag to turn off builtin functions.
19465no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19466
19467# Compiler flag to allow reflexive dlopens.
19468export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19469
19470# Compiler flag to generate shared objects directly from archives.
19471whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19472
19473# Compiler flag to generate thread-safe objects.
19474thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19475
19476# Library versioning type.
19477version_type=$version_type
19478
19479# Format of library name prefix.
19480libname_spec=$lt_libname_spec
19481
19482# List of archive names. First name is the real one, the rest are links.
19483# The last name is the one that the linker finds with -lNAME.
19484library_names_spec=$lt_library_names_spec
19485
19486# The coded name of the library, if different from the real name.
19487soname_spec=$lt_soname_spec
19488
19489# Commands used to build and install an old-style archive.
19490RANLIB=$lt_RANLIB
19491old_archive_cmds=$lt_old_archive_cmds_RC
19492old_postinstall_cmds=$lt_old_postinstall_cmds
19493old_postuninstall_cmds=$lt_old_postuninstall_cmds
19494
19495# Create an old-style archive from a shared archive.
19496old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19497
19498# Create a temporary old-style archive to link instead of a shared archive.
19499old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19500
19501# Commands used to build and install a shared archive.
19502archive_cmds=$lt_archive_cmds_RC
19503archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19504postinstall_cmds=$lt_postinstall_cmds
19505postuninstall_cmds=$lt_postuninstall_cmds
19506
19507# Commands used to build a loadable module (assumed same as above if empty)
19508module_cmds=$lt_module_cmds_RC
19509module_expsym_cmds=$lt_module_expsym_cmds_RC
19510
19511# Commands to strip libraries.
19512old_striplib=$lt_old_striplib
19513striplib=$lt_striplib
19514
19515# Dependencies to place before the objects being linked to create a
19516# shared library.
64ff59ba 19517predep_objects=$lt_predep_objects_RC
d9898ee8 19518
19519# Dependencies to place after the objects being linked to create a
19520# shared library.
64ff59ba 19521postdep_objects=$lt_postdep_objects_RC
d9898ee8 19522
19523# Dependencies to place before the objects being linked to create a
19524# shared library.
19525predeps=$lt_predeps_RC
19526
19527# Dependencies to place after the objects being linked to create a
19528# shared library.
19529postdeps=$lt_postdeps_RC
19530
19531# The library search path used internally by the compiler when linking
19532# a shared library.
64ff59ba 19533compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19534
19535# Method to check whether dependent libraries are shared objects.
19536deplibs_check_method=$lt_deplibs_check_method
19537
19538# Command to use when deplibs_check_method == file_magic.
19539file_magic_cmd=$lt_file_magic_cmd
19540
19541# Flag that allows shared libraries with undefined symbols to be built.
19542allow_undefined_flag=$lt_allow_undefined_flag_RC
19543
19544# Flag that forces no undefined symbols.
19545no_undefined_flag=$lt_no_undefined_flag_RC
19546
19547# Commands used to finish a libtool library installation in a directory.
19548finish_cmds=$lt_finish_cmds
19549
19550# Same as above, but a single script fragment to be evaled but not shown.
19551finish_eval=$lt_finish_eval
19552
19553# Take the output of nm and produce a listing of raw symbols and C names.
19554global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19555
19556# Transform the output of nm in a proper C declaration
19557global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19558
19559# Transform the output of nm in a C name address pair
19560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19561
19562# This is the shared library runtime path variable.
19563runpath_var=$runpath_var
19564
19565# This is the shared library path variable.
19566shlibpath_var=$shlibpath_var
19567
19568# Is shlibpath searched before the hard-coded library search path?
19569shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19570
19571# How to hardcode a shared library path into an executable.
19572hardcode_action=$hardcode_action_RC
19573
19574# Whether we should hardcode library paths into libraries.
19575hardcode_into_libs=$hardcode_into_libs
19576
19577# Flag to hardcode \$libdir into a binary during linking.
19578# This must work even if \$libdir does not exist.
19579hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19580
19581# If ld is used when linking, flag to hardcode \$libdir into
19582# a binary during linking. This must work even if \$libdir does
19583# not exist.
19584hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19585
19586# Whether we need a single -rpath flag with a separated argument.
19587hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19588
19589# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19590# resulting binary.
19591hardcode_direct=$hardcode_direct_RC
19592
19593# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19594# resulting binary.
19595hardcode_minus_L=$hardcode_minus_L_RC
19596
19597# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19598# the resulting binary.
19599hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19600
19601# Set to yes if building a shared library automatically hardcodes DIR into the library
19602# and all subsequent libraries and executables linked against it.
19603hardcode_automatic=$hardcode_automatic_RC
19604
19605# Variables whose values should be saved in libtool wrapper scripts and
19606# restored at relink time.
19607variables_saved_for_relink="$variables_saved_for_relink"
19608
19609# Whether libtool must link a program against all its dependency libraries.
19610link_all_deplibs=$link_all_deplibs_RC
19611
19612# Compile-time system search path for libraries
64ff59ba 19613sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19614
19615# Run-time system search path for libraries
19616sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19617
19618# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 19619fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19620
19621# Set to yes if exported symbols are required.
19622always_export_symbols=$always_export_symbols_RC
19623
19624# The commands to list exported symbols.
19625export_symbols_cmds=$lt_export_symbols_cmds_RC
19626
19627# The commands to extract the exported symbol list from a shared archive.
19628extract_expsyms_cmds=$lt_extract_expsyms_cmds
19629
19630# Symbols that should not be listed in the preloaded symbols.
19631exclude_expsyms=$lt_exclude_expsyms_RC
19632
19633# Symbols that must always be exported.
19634include_expsyms=$lt_include_expsyms_RC
19635
19636# ### END LIBTOOL TAG CONFIG: $tagname
19637
19638__EOF__
19639
19640
19641else
19642 # If there is no Makefile yet, we rely on a make rule to execute
19643 # `config.status --recheck' to rerun these tests and create the
19644 # libtool script then.
19645 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19646 if test -f "$ltmain_in"; then
19647 test -f Makefile && make "$ltmain"
19648 fi
19649fi
19650
19651
19652ac_ext=c
19653ac_cpp='$CPP $CPPFLAGS'
19654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656ac_compiler_gnu=$ac_cv_c_compiler_gnu
19657
19658CC="$lt_save_CC"
19659
19660 ;;
19661
19662 *)
19663 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19664echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19665 { (exit 1); exit 1; }; }
19666 ;;
19667 esac
19668
19669 # Append the new tag name to the list of available tags.
19670 if test -n "$tagname" ; then
19671 available_tags="$available_tags $tagname"
19672 fi
19673 fi
19674 done
19675 IFS="$lt_save_ifs"
19676
19677 # Now substitute the updated list of available tags.
19678 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19679 mv "${ofile}T" "$ofile"
19680 chmod +x "$ofile"
19681 else
19682 rm -f "${ofile}T"
19683 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19684echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19685 { (exit 1); exit 1; }; }
19686 fi
19687fi
19688
19689
19690
19691# This can be used to rebuild libtool when needed
19692LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19693
19694# Always use our own libtool.
19695LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19696
19697# Prevent multiple expansion
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720for ac_prog in perl5 perl
19721do
19722 # Extract the first word of "$ac_prog", so it can be a program name with args.
19723set dummy $ac_prog; ac_word=$2
64ff59ba 19724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19726if test "${ac_cv_path_PERL+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19728else
19729 case $PERL in
19730 [\\/]* | ?:[\\/]*)
19731 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19732 ;;
19733 *)
19734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19735for as_dir in $LPATH
19736do
19737 IFS=$as_save_IFS
19738 test -z "$as_dir" && as_dir=.
19739 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19741 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19743 break 2
19744 fi
19745done
19746done
64ff59ba 19747IFS=$as_save_IFS
d9898ee8 19748
19749 ;;
19750esac
19751fi
19752PERL=$ac_cv_path_PERL
d9898ee8 19753if test -n "$PERL"; then
64ff59ba 19754 { echo "$as_me:$LINENO: result: $PERL" >&5
19755echo "${ECHO_T}$PERL" >&6; }
d9898ee8 19756else
64ff59ba 19757 { echo "$as_me:$LINENO: result: no" >&5
19758echo "${ECHO_T}no" >&6; }
d9898ee8 19759fi
19760
64ff59ba 19761
d9898ee8 19762 test -n "$PERL" && break
19763done
19764test -n "$PERL" || PERL="perl"
19765
19766for ac_prog in courier-config
19767do
19768 # Extract the first word of "$ac_prog", so it can be a program name with args.
19769set dummy $ac_prog; ac_word=$2
64ff59ba 19770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19772if test "${ac_cv_path_COURIERCONFIG+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774else
19775 case $COURIERCONFIG in
19776 [\\/]* | ?:[\\/]*)
19777 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
19778 ;;
19779 *)
19780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19781for as_dir in $LPATH
19782do
19783 IFS=$as_save_IFS
19784 test -z "$as_dir" && as_dir=.
19785 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19787 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
19788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19789 break 2
19790 fi
19791done
19792done
64ff59ba 19793IFS=$as_save_IFS
d9898ee8 19794
19795 ;;
19796esac
19797fi
19798COURIERCONFIG=$ac_cv_path_COURIERCONFIG
d9898ee8 19799if test -n "$COURIERCONFIG"; then
64ff59ba 19800 { echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5
19801echo "${ECHO_T}$COURIERCONFIG" >&6; }
d9898ee8 19802else
64ff59ba 19803 { echo "$as_me:$LINENO: result: no" >&5
19804echo "${ECHO_T}no" >&6; }
d9898ee8 19805fi
19806
64ff59ba 19807
d9898ee8 19808 test -n "$COURIERCONFIG" && break
19809done
19810test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
19811
19812
19813if test "$PERL" = "perl"
19814then
19815 { { echo "$as_me:$LINENO: error: Perl is required" >&5
19816echo "$as_me: error: Perl is required" >&2;}
19817 { (exit 1); exit 1; }; }
19818fi
19819
19820test "x$prefix" = xNONE && prefix=$ac_default_prefix
19821test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19822eval "prefix=$prefix"
19823eval "exec_prefix=$exec_prefix"
19824eval "sysconfdir=$sysconfdir"
19825eval "bindir=$bindir"
19826eval "sbindir=$sbindir"
19827eval "localstatedir=$localstatedir"
19828eval "libexecdir=$libexecdir"
19829
19830
64ff59ba 19831# Check whether --with-redhat was given.
d9898ee8 19832if test "${with_redhat+set}" = set; then
64ff59ba 19833 withval=$with_redhat; redhat=$withval
d9898ee8 19834else
19835 redhat=no
64ff59ba 19836fi
19837
d9898ee8 19838
19839if test "$srcdir" = "."
19840then
19841 case `./config.guess` in
19842 *-redhat-*)
19843 if test "$redhat" = "no"
19844 then
19845 hash='#'
19846 { echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5
19847echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5
19849echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5
19851echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5
19853echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5
19855echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5
19857echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5
19859echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5
19861echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5
19863echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5
19865echo "$as_me: WARNING: === cryptic error message." >&2;}
19866 { echo "$as_me:$LINENO: WARNING: " >&5
19867echo "$as_me: WARNING: " >&2;}
19868 { echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5
19869echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5
19871echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5
19873echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5
19875echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: === installed." >&5
19877echo "$as_me: WARNING: === installed." >&2;}
19878 { echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5
19879echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;}
19880 { echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5
19881echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5
19883echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5
19885echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;}
19886 { { echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5
19887echo "$as_me: error: ... in either case you better know what you're doing!" >&2;}
19888 { (exit 1); exit 1; }; }
19889 fi
19890 ;;
19891 *)
19892 ;;
19893 esac
19894fi
19895for ac_prog in expect
19896do
19897 # Extract the first word of "$ac_prog", so it can be a program name with args.
19898set dummy $ac_prog; ac_word=$2
64ff59ba 19899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19901if test "${ac_cv_path_EXPECT+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903else
19904 case $EXPECT in
19905 [\\/]* | ?:[\\/]*)
19906 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
19907 ;;
19908 *)
19909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19910for as_dir in $LPATH
19911do
19912 IFS=$as_save_IFS
19913 test -z "$as_dir" && as_dir=.
19914 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19916 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
19917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19918 break 2
19919 fi
19920done
19921done
64ff59ba 19922IFS=$as_save_IFS
d9898ee8 19923
19924 ;;
19925esac
19926fi
19927EXPECT=$ac_cv_path_EXPECT
d9898ee8 19928if test -n "$EXPECT"; then
64ff59ba 19929 { echo "$as_me:$LINENO: result: $EXPECT" >&5
19930echo "${ECHO_T}$EXPECT" >&6; }
d9898ee8 19931else
64ff59ba 19932 { echo "$as_me:$LINENO: result: no" >&5
19933echo "${ECHO_T}no" >&6; }
d9898ee8 19934fi
19935
64ff59ba 19936
d9898ee8 19937 test -n "$EXPECT" && break
19938done
19939test -n "$EXPECT" || EXPECT="expect"
19940
19941
19942if test "$EXPECT" = "expect"
19943then
19944 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19945echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5
19947echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: in webmail" >&5
19949echo "$as_me: WARNING: in webmail" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19951echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19952 sleep 5
19953else
19954
19955cat >>confdefs.h <<_ACEOF
19956#define HAVE_EXPECT 1
19957_ACEOF
19958
19959fi
19960
19961for ac_prog in passwd
19962do
19963 # Extract the first word of "$ac_prog", so it can be a program name with args.
19964set dummy $ac_prog; ac_word=$2
64ff59ba 19965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19967if test "${ac_cv_path_PASSWD+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969else
19970 case $PASSWD in
19971 [\\/]* | ?:[\\/]*)
19972 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
19973 ;;
19974 *)
19975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19976for as_dir in $LPATH
19977do
19978 IFS=$as_save_IFS
19979 test -z "$as_dir" && as_dir=.
19980 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19982 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
19983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19984 break 2
19985 fi
19986done
19987done
64ff59ba 19988IFS=$as_save_IFS
d9898ee8 19989
19990 ;;
19991esac
19992fi
19993PASSWD=$ac_cv_path_PASSWD
d9898ee8 19994if test -n "$PASSWD"; then
64ff59ba 19995 { echo "$as_me:$LINENO: result: $PASSWD" >&5
19996echo "${ECHO_T}$PASSWD" >&6; }
d9898ee8 19997else
64ff59ba 19998 { echo "$as_me:$LINENO: result: no" >&5
19999echo "${ECHO_T}no" >&6; }
d9898ee8 20000fi
20001
64ff59ba 20002
d9898ee8 20003 test -n "$PASSWD" && break
20004done
20005test -n "$PASSWD" || PASSWD="passwd"
20006
20007
20008
20009if test "$GCC" = "yes"
20010then
20011 CFLAGS="$CFLAGS -Wall"
20012fi
20013
20014CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
20015
64ff59ba 20016{ echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5
20017echo $ECHO_N "checking whether -lm is needed for floor... $ECHO_C" >&6; }
d9898ee8 20018cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
20024
64ff59ba 20025/* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
d9898ee8 20028#ifdef __cplusplus
20029extern "C"
20030#endif
d9898ee8 20031char floor ();
20032int
20033main ()
20034{
64ff59ba 20035return floor ();
d9898ee8 20036 ;
20037 return 0;
20038}
20039_ACEOF
20040rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20041if { (ac_try="$ac_link"
20042case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045esac
20046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
d9898ee8 20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest$ac_exeext &&
20057 $as_test_x conftest$ac_exeext; then
20058 { echo "$as_me:$LINENO: result: no" >&5
20059echo "${ECHO_T}no" >&6; }
d9898ee8 20060else
20061 echo "$as_me: failed program was:" >&5
20062sed 's/^/| /' conftest.$ac_ext >&5
20063
64ff59ba 20064 LIBM="-lm"
20065 { echo "$as_me:$LINENO: result: yes" >&5
20066echo "${ECHO_T}yes" >&6; }
d9898ee8 20067fi
64ff59ba 20068
20069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20070 conftest$ac_exeext conftest.$ac_ext
20071
20072
64ff59ba 20073# Check whether --with-pkgconfdir was given.
d9898ee8 20074if test "${with_pkgconfdir+set}" = set; then
64ff59ba 20075 withval=$with_pkgconfdir; pkgconfdir="$withval"
d9898ee8 20076else
20077 pkgconfdir="$sysconfdir/authlib"
64ff59ba 20078fi
20079
d9898ee8 20080
d9898ee8 20081saveLIBS="$LIBS"
20082NETLIBS=""
20083USENSL=no
20084
64ff59ba 20085{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20086echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
d9898ee8 20087if test "${ac_cv_lib_socket_socket+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20089else
20090 ac_check_lib_save_LIBS=$LIBS
20091LIBS="-lsocket $LIBS"
20092cat >conftest.$ac_ext <<_ACEOF
20093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098
64ff59ba 20099/* Override any GCC internal prototype to avoid an error.
20100 Use char because int might match the return type of a GCC
20101 builtin and then its argument prototype would still apply. */
d9898ee8 20102#ifdef __cplusplus
20103extern "C"
20104#endif
d9898ee8 20105char socket ();
20106int
20107main ()
20108{
64ff59ba 20109return socket ();
d9898ee8 20110 ;
20111 return 0;
20112}
20113_ACEOF
20114rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20115if { (ac_try="$ac_link"
20116case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119esac
20120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_link") 2>conftest.er1
d9898ee8 20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest$ac_exeext &&
20131 $as_test_x conftest$ac_exeext; then
d9898ee8 20132 ac_cv_lib_socket_socket=yes
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
64ff59ba 20137 ac_cv_lib_socket_socket=no
d9898ee8 20138fi
64ff59ba 20139
20140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20141 conftest$ac_exeext conftest.$ac_ext
20142LIBS=$ac_check_lib_save_LIBS
20143fi
64ff59ba 20144{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20145echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
d9898ee8 20146if test $ac_cv_lib_socket_socket = yes; then
20147 result=yes
20148else
20149 result=no
20150fi
20151
20152if test $result = yes; then
20153 NETLIBS="-lsocket"
20154else
64ff59ba 20155 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20156echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
d9898ee8 20157if test "${ac_cv_lib_socket_socket+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159else
20160 ac_check_lib_save_LIBS=$LIBS
20161LIBS="-lsocket -lnsl $LIBS"
20162cat >conftest.$ac_ext <<_ACEOF
20163/* confdefs.h. */
20164_ACEOF
20165cat confdefs.h >>conftest.$ac_ext
20166cat >>conftest.$ac_ext <<_ACEOF
20167/* end confdefs.h. */
20168
64ff59ba 20169/* Override any GCC internal prototype to avoid an error.
20170 Use char because int might match the return type of a GCC
20171 builtin and then its argument prototype would still apply. */
d9898ee8 20172#ifdef __cplusplus
20173extern "C"
20174#endif
d9898ee8 20175char socket ();
20176int
20177main ()
20178{
64ff59ba 20179return socket ();
d9898ee8 20180 ;
20181 return 0;
20182}
20183_ACEOF
20184rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20185if { (ac_try="$ac_link"
20186case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189esac
20190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_link") 2>conftest.er1
d9898ee8 20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest$ac_exeext &&
20201 $as_test_x conftest$ac_exeext; then
d9898ee8 20202 ac_cv_lib_socket_socket=yes
20203else
20204 echo "$as_me: failed program was:" >&5
20205sed 's/^/| /' conftest.$ac_ext >&5
20206
64ff59ba 20207 ac_cv_lib_socket_socket=no
d9898ee8 20208fi
64ff59ba 20209
20210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20211 conftest$ac_exeext conftest.$ac_ext
20212LIBS=$ac_check_lib_save_LIBS
20213fi
64ff59ba 20214{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20215echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
d9898ee8 20216if test $ac_cv_lib_socket_socket = yes; then
20217 result=yes
20218else
20219 result=no
20220fi
20221
20222 if test $result = yes; then
20223 NETLIBS = "-lsocket -lnsl"
20224 USENSL=yes
20225 else
64ff59ba 20226 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20227echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
d9898ee8 20228if test "${ac_cv_lib_socket_connect+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20230else
20231 ac_check_lib_save_LIBS=$LIBS
20232LIBS="-lsocket $LIBS"
20233cat >conftest.$ac_ext <<_ACEOF
20234/* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h. */
20239
64ff59ba 20240/* Override any GCC internal prototype to avoid an error.
20241 Use char because int might match the return type of a GCC
20242 builtin and then its argument prototype would still apply. */
d9898ee8 20243#ifdef __cplusplus
20244extern "C"
20245#endif
d9898ee8 20246char connect ();
20247int
20248main ()
20249{
64ff59ba 20250return connect ();
d9898ee8 20251 ;
20252 return 0;
20253}
20254_ACEOF
20255rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20256if { (ac_try="$ac_link"
20257case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20260esac
20261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_link") 2>conftest.er1
d9898ee8 20263 ac_status=$?
20264 grep -v '^ *+' conftest.er1 >conftest.err
20265 rm -f conftest.er1
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest$ac_exeext &&
20272 $as_test_x conftest$ac_exeext; then
d9898ee8 20273 ac_cv_lib_socket_connect=yes
20274else
20275 echo "$as_me: failed program was:" >&5
20276sed 's/^/| /' conftest.$ac_ext >&5
20277
64ff59ba 20278 ac_cv_lib_socket_connect=no
d9898ee8 20279fi
64ff59ba 20280
20281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20282 conftest$ac_exeext conftest.$ac_ext
20283LIBS=$ac_check_lib_save_LIBS
20284fi
64ff59ba 20285{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20286echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
d9898ee8 20287if test $ac_cv_lib_socket_connect = yes; then
20288 result=yes
20289else
20290 result=no
20291fi
20292
20293 if test $result = yes; then
20294 NETLIBS="-lsocket"
20295 else
64ff59ba 20296 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20297echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
d9898ee8 20298if test "${ac_cv_lib_socket_connect+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20300else
20301 ac_check_lib_save_LIBS=$LIBS
20302LIBS="-lsocket -lnsl $LIBS"
20303cat >conftest.$ac_ext <<_ACEOF
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
20309
64ff59ba 20310/* Override any GCC internal prototype to avoid an error.
20311 Use char because int might match the return type of a GCC
20312 builtin and then its argument prototype would still apply. */
d9898ee8 20313#ifdef __cplusplus
20314extern "C"
20315#endif
d9898ee8 20316char connect ();
20317int
20318main ()
20319{
64ff59ba 20320return connect ();
d9898ee8 20321 ;
20322 return 0;
20323}
20324_ACEOF
20325rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20326if { (ac_try="$ac_link"
20327case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330esac
20331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
d9898ee8 20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext &&
20342 $as_test_x conftest$ac_exeext; then
d9898ee8 20343 ac_cv_lib_socket_connect=yes
20344else
20345 echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
20347
64ff59ba 20348 ac_cv_lib_socket_connect=no
d9898ee8 20349fi
64ff59ba 20350
20351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20352 conftest$ac_exeext conftest.$ac_ext
20353LIBS=$ac_check_lib_save_LIBS
20354fi
64ff59ba 20355{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20356echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
d9898ee8 20357if test $ac_cv_lib_socket_connect = yes; then
20358 result=yes
20359else
20360 result=no
20361fi
20362
20363 if test $result = yes; then
20364 NETLIBS="-lsocket -lnsl"
20365 USENSL=yes
20366 fi
20367 fi
20368 fi
20369fi
20370
20371if test $USENSL != yes; then
20372 LIBS="$LIBS $NETLIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20374/* confdefs.h. */
20375_ACEOF
20376cat confdefs.h >>conftest.$ac_ext
20377cat >>conftest.$ac_ext <<_ACEOF
20378/* end confdefs.h. */
20379
64ff59ba 20380/* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
d9898ee8 20383#ifdef __cplusplus
20384extern "C"
20385#endif
d9898ee8 20386char inet_addr ();
20387int
20388main ()
20389{
64ff59ba 20390return inet_addr ();
d9898ee8 20391 ;
20392 return 0;
20393}
20394_ACEOF
20395rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20396if { (ac_try="$ac_link"
20397case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20400esac
20401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_link") 2>conftest.er1
d9898ee8 20403 ac_status=$?
20404 grep -v '^ *+' conftest.er1 >conftest.err
20405 rm -f conftest.er1
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20408 (exit $ac_status); } && {
20409 test -z "$ac_c_werror_flag" ||
20410 test ! -s conftest.err
20411 } && test -s conftest$ac_exeext &&
20412 $as_test_x conftest$ac_exeext; then
d9898ee8 20413 :
20414else
20415 echo "$as_me: failed program was:" >&5
20416sed 's/^/| /' conftest.$ac_ext >&5
20417
20418
64ff59ba 20419 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
20420echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
d9898ee8 20421if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20423else
20424 ac_check_lib_save_LIBS=$LIBS
20425LIBS="-lnsl $LIBS"
20426cat >conftest.$ac_ext <<_ACEOF
20427/* confdefs.h. */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h. */
20432
64ff59ba 20433/* Override any GCC internal prototype to avoid an error.
20434 Use char because int might match the return type of a GCC
20435 builtin and then its argument prototype would still apply. */
d9898ee8 20436#ifdef __cplusplus
20437extern "C"
20438#endif
d9898ee8 20439char inet_addr ();
20440int
20441main ()
20442{
64ff59ba 20443return inet_addr ();
d9898ee8 20444 ;
20445 return 0;
20446}
20447_ACEOF
20448rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20449if { (ac_try="$ac_link"
20450case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453esac
20454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_link") 2>conftest.er1
d9898ee8 20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest$ac_exeext &&
20465 $as_test_x conftest$ac_exeext; then
d9898ee8 20466 ac_cv_lib_nsl_inet_addr=yes
20467else
20468 echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
64ff59ba 20471 ac_cv_lib_nsl_inet_addr=no
d9898ee8 20472fi
64ff59ba 20473
20474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20475 conftest$ac_exeext conftest.$ac_ext
20476LIBS=$ac_check_lib_save_LIBS
20477fi
64ff59ba 20478{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
20479echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
d9898ee8 20480if test $ac_cv_lib_nsl_inet_addr = yes; then
20481 result=yes
20482else
20483 result=no
20484fi
20485
20486 if test $result = yes; then
20487 NETLIBS="$NETLIBS -lnsl"
20488 fi
20489
20490fi
64ff59ba 20491
20492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20493 conftest$ac_exeext conftest.$ac_ext
20494fi
20495
20496LIBS="$saveLIBS"
20497
20498
20499
20500
20501
20502
20503
64ff59ba 20504# Check whether --with-db was given.
d9898ee8 20505if test "${with_db+set}" = set; then
64ff59ba 20506 withval=$with_db; db="$withval"
d9898ee8 20507else
20508 needs_withdb=1
64ff59ba 20509fi
20510
d9898ee8 20511
20512case "$db" in
20513gdbm)
20514 ;;
20515db)
20516 ;;
20517"")
20518 ;;
20519*)
20520 { { echo "$as_me:$LINENO: error: Invalid --with-db option." >&5
20521echo "$as_me: error: Invalid --with-db option." >&2;}
20522 { (exit 1); exit 1; }; }
20523 ;;
20524esac
20525
20526saveLIBS="$LIBS"
20527
20528if test "$db" != "db"
20529then
64ff59ba 20530 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
20531echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
d9898ee8 20532if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534else
20535 ac_check_lib_save_LIBS=$LIBS
20536LIBS="-lgdbm $LIBS"
20537cat >conftest.$ac_ext <<_ACEOF
20538/* confdefs.h. */
20539_ACEOF
20540cat confdefs.h >>conftest.$ac_ext
20541cat >>conftest.$ac_ext <<_ACEOF
20542/* end confdefs.h. */
20543
64ff59ba 20544/* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
d9898ee8 20547#ifdef __cplusplus
20548extern "C"
20549#endif
d9898ee8 20550char gdbm_open ();
20551int
20552main ()
20553{
64ff59ba 20554return gdbm_open ();
d9898ee8 20555 ;
20556 return 0;
20557}
20558_ACEOF
20559rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20560if { (ac_try="$ac_link"
20561case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564esac
20565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
d9898ee8 20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest$ac_exeext &&
20576 $as_test_x conftest$ac_exeext; then
d9898ee8 20577 ac_cv_lib_gdbm_gdbm_open=yes
20578else
20579 echo "$as_me: failed program was:" >&5
20580sed 's/^/| /' conftest.$ac_ext >&5
20581
64ff59ba 20582 ac_cv_lib_gdbm_gdbm_open=no
d9898ee8 20583fi
64ff59ba 20584
20585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20586 conftest$ac_exeext conftest.$ac_ext
20587LIBS=$ac_check_lib_save_LIBS
20588fi
64ff59ba 20589{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
20590echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
d9898ee8 20591if test $ac_cv_lib_gdbm_gdbm_open = yes; then
20592 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
20593fi
20594
64ff59ba 20595 { echo "$as_me:$LINENO: checking for gdbm_open" >&5
20596echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; }
d9898ee8 20597if test "${ac_cv_func_gdbm_open+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599else
20600 cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h. */
20606/* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
20607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20608#define gdbm_open innocuous_gdbm_open
20609
20610/* System header to define __stub macros and hopefully few prototypes,
20611 which can conflict with char gdbm_open (); below.
20612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20613 <limits.h> exists even on freestanding compilers. */
20614
20615#ifdef __STDC__
20616# include <limits.h>
20617#else
20618# include <assert.h>
20619#endif
20620
20621#undef gdbm_open
20622
64ff59ba 20623/* Override any GCC internal prototype to avoid an error.
20624 Use char because int might match the return type of a GCC
20625 builtin and then its argument prototype would still apply. */
d9898ee8 20626#ifdef __cplusplus
20627extern "C"
d9898ee8 20628#endif
d9898ee8 20629char gdbm_open ();
20630/* The GNU C library defines this for functions which it implements
20631 to always fail with ENOSYS. Some functions are actually named
20632 something starting with __ and the normal name is an alias. */
64ff59ba 20633#if defined __stub_gdbm_open || defined __stub___gdbm_open
d9898ee8 20634choke me
d9898ee8 20635#endif
20636
20637int
20638main ()
20639{
64ff59ba 20640return gdbm_open ();
d9898ee8 20641 ;
20642 return 0;
20643}
20644_ACEOF
20645rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20646if { (ac_try="$ac_link"
20647case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650esac
20651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_link") 2>conftest.er1
d9898ee8 20653 ac_status=$?
20654 grep -v '^ *+' conftest.er1 >conftest.err
20655 rm -f conftest.er1
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20658 (exit $ac_status); } && {
20659 test -z "$ac_c_werror_flag" ||
20660 test ! -s conftest.err
20661 } && test -s conftest$ac_exeext &&
20662 $as_test_x conftest$ac_exeext; then
d9898ee8 20663 ac_cv_func_gdbm_open=yes
20664else
20665 echo "$as_me: failed program was:" >&5
20666sed 's/^/| /' conftest.$ac_ext >&5
20667
64ff59ba 20668 ac_cv_func_gdbm_open=no
d9898ee8 20669fi
64ff59ba 20670
20671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20672 conftest$ac_exeext conftest.$ac_ext
20673fi
64ff59ba 20674{ echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
20675echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; }
d9898ee8 20676if test $ac_cv_func_gdbm_open = yes; then
20677 HAVE_GDBM=y
20678fi
20679
20680fi
20681
20682LIBS="$saveLIBS"
20683
20684if test "$db" != "gdbm"
20685then
64ff59ba 20686 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20687echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
d9898ee8 20688if test "${ac_cv_lib_db_dbopen+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691 ac_check_lib_save_LIBS=$LIBS
20692LIBS="-ldb $LIBS"
20693cat >conftest.$ac_ext <<_ACEOF
20694/* confdefs.h. */
20695_ACEOF
20696cat confdefs.h >>conftest.$ac_ext
20697cat >>conftest.$ac_ext <<_ACEOF
20698/* end confdefs.h. */
20699
64ff59ba 20700/* Override any GCC internal prototype to avoid an error.
20701 Use char because int might match the return type of a GCC
20702 builtin and then its argument prototype would still apply. */
d9898ee8 20703#ifdef __cplusplus
20704extern "C"
20705#endif
d9898ee8 20706char dbopen ();
20707int
20708main ()
20709{
64ff59ba 20710return dbopen ();
d9898ee8 20711 ;
20712 return 0;
20713}
20714_ACEOF
20715rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20716if { (ac_try="$ac_link"
20717case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720esac
20721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_link") 2>conftest.er1
d9898ee8 20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest$ac_exeext &&
20732 $as_test_x conftest$ac_exeext; then
d9898ee8 20733 ac_cv_lib_db_dbopen=yes
20734else
20735 echo "$as_me: failed program was:" >&5
20736sed 's/^/| /' conftest.$ac_ext >&5
20737
64ff59ba 20738 ac_cv_lib_db_dbopen=no
d9898ee8 20739fi
64ff59ba 20740
20741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20742 conftest$ac_exeext conftest.$ac_ext
20743LIBS=$ac_check_lib_save_LIBS
20744fi
64ff59ba 20745{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20746echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
d9898ee8 20747if test $ac_cv_lib_db_dbopen = yes; then
20748 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20749else
64ff59ba 20750 { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
20751echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; }
d9898ee8 20752if test "${ac_cv_lib_db_db_open+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754else
20755 ac_check_lib_save_LIBS=$LIBS
20756LIBS="-ldb $LIBS"
20757cat >conftest.$ac_ext <<_ACEOF
20758/* confdefs.h. */
20759_ACEOF
20760cat confdefs.h >>conftest.$ac_ext
20761cat >>conftest.$ac_ext <<_ACEOF
20762/* end confdefs.h. */
20763
64ff59ba 20764/* Override any GCC internal prototype to avoid an error.
20765 Use char because int might match the return type of a GCC
20766 builtin and then its argument prototype would still apply. */
d9898ee8 20767#ifdef __cplusplus
20768extern "C"
20769#endif
d9898ee8 20770char db_open ();
20771int
20772main ()
20773{
64ff59ba 20774return db_open ();
d9898ee8 20775 ;
20776 return 0;
20777}
20778_ACEOF
20779rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20780if { (ac_try="$ac_link"
20781case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784esac
20785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_link") 2>conftest.er1
d9898ee8 20787 ac_status=$?
20788 grep -v '^ *+' conftest.er1 >conftest.err
20789 rm -f conftest.er1
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest$ac_exeext &&
20796 $as_test_x conftest$ac_exeext; then
d9898ee8 20797 ac_cv_lib_db_db_open=yes
20798else
20799 echo "$as_me: failed program was:" >&5
20800sed 's/^/| /' conftest.$ac_ext >&5
20801
64ff59ba 20802 ac_cv_lib_db_db_open=no
d9898ee8 20803fi
64ff59ba 20804
20805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20806 conftest$ac_exeext conftest.$ac_ext
20807LIBS=$ac_check_lib_save_LIBS
20808fi
64ff59ba 20809{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
20810echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; }
d9898ee8 20811if test $ac_cv_lib_db_db_open = yes; then
20812 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20813else
64ff59ba 20814 { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
20815echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; }
d9898ee8 20816if test "${ac_cv_lib_db_db_env_create+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818else
20819 ac_check_lib_save_LIBS=$LIBS
20820LIBS="-ldb $LIBS"
20821cat >conftest.$ac_ext <<_ACEOF
20822/* confdefs.h. */
20823_ACEOF
20824cat confdefs.h >>conftest.$ac_ext
20825cat >>conftest.$ac_ext <<_ACEOF
20826/* end confdefs.h. */
20827
64ff59ba 20828/* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
d9898ee8 20831#ifdef __cplusplus
20832extern "C"
20833#endif
d9898ee8 20834char db_env_create ();
20835int
20836main ()
20837{
64ff59ba 20838return db_env_create ();
d9898ee8 20839 ;
20840 return 0;
20841}
20842_ACEOF
20843rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20844if { (ac_try="$ac_link"
20845case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848esac
20849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
d9898ee8 20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest$ac_exeext &&
20860 $as_test_x conftest$ac_exeext; then
d9898ee8 20861 ac_cv_lib_db_db_env_create=yes
20862else
20863 echo "$as_me: failed program was:" >&5
20864sed 's/^/| /' conftest.$ac_ext >&5
20865
64ff59ba 20866 ac_cv_lib_db_db_env_create=no
d9898ee8 20867fi
64ff59ba 20868
20869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20870 conftest$ac_exeext conftest.$ac_ext
20871LIBS=$ac_check_lib_save_LIBS
20872fi
64ff59ba 20873{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
20874echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; }
d9898ee8 20875if test $ac_cv_lib_db_db_env_create = yes; then
20876 LIBDB=-ldb; LIBS="-ldb $LIBS"
20877fi
20878
20879
20880fi
20881
20882fi
20883
20884
64ff59ba 20885 { echo "$as_me:$LINENO: checking for dbopen" >&5
20886echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
d9898ee8 20887if test "${ac_cv_func_dbopen+set}" = set; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20889else
20890 cat >conftest.$ac_ext <<_ACEOF
20891/* confdefs.h. */
20892_ACEOF
20893cat confdefs.h >>conftest.$ac_ext
20894cat >>conftest.$ac_ext <<_ACEOF
20895/* end confdefs.h. */
20896/* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
20897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20898#define dbopen innocuous_dbopen
20899
20900/* System header to define __stub macros and hopefully few prototypes,
20901 which can conflict with char dbopen (); below.
20902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20903 <limits.h> exists even on freestanding compilers. */
20904
20905#ifdef __STDC__
20906# include <limits.h>
20907#else
20908# include <assert.h>
20909#endif
20910
20911#undef dbopen
20912
64ff59ba 20913/* Override any GCC internal prototype to avoid an error.
20914 Use char because int might match the return type of a GCC
20915 builtin and then its argument prototype would still apply. */
d9898ee8 20916#ifdef __cplusplus
20917extern "C"
d9898ee8 20918#endif
d9898ee8 20919char dbopen ();
20920/* The GNU C library defines this for functions which it implements
20921 to always fail with ENOSYS. Some functions are actually named
20922 something starting with __ and the normal name is an alias. */
64ff59ba 20923#if defined __stub_dbopen || defined __stub___dbopen
d9898ee8 20924choke me
d9898ee8 20925#endif
20926
20927int
20928main ()
20929{
64ff59ba 20930return dbopen ();
d9898ee8 20931 ;
20932 return 0;
20933}
20934_ACEOF
20935rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20936if { (ac_try="$ac_link"
20937case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20940esac
20941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_link") 2>conftest.er1
d9898ee8 20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20948 (exit $ac_status); } && {
20949 test -z "$ac_c_werror_flag" ||
20950 test ! -s conftest.err
20951 } && test -s conftest$ac_exeext &&
20952 $as_test_x conftest$ac_exeext; then
d9898ee8 20953 ac_cv_func_dbopen=yes
20954else
20955 echo "$as_me: failed program was:" >&5
20956sed 's/^/| /' conftest.$ac_ext >&5
20957
64ff59ba 20958 ac_cv_func_dbopen=no
d9898ee8 20959fi
64ff59ba 20960
20961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20962 conftest$ac_exeext conftest.$ac_ext
20963fi
64ff59ba 20964{ echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
20965echo "${ECHO_T}$ac_cv_func_dbopen" >&6; }
d9898ee8 20966if test $ac_cv_func_dbopen = yes; then
20967 HAVE_BDB=1
20968fi
20969
64ff59ba 20970 { echo "$as_me:$LINENO: checking for db_open" >&5
20971echo $ECHO_N "checking for db_open... $ECHO_C" >&6; }
d9898ee8 20972if test "${ac_cv_func_db_open+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20974else
20975 cat >conftest.$ac_ext <<_ACEOF
20976/* confdefs.h. */
20977_ACEOF
20978cat confdefs.h >>conftest.$ac_ext
20979cat >>conftest.$ac_ext <<_ACEOF
20980/* end confdefs.h. */
20981/* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
20982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20983#define db_open innocuous_db_open
20984
20985/* System header to define __stub macros and hopefully few prototypes,
20986 which can conflict with char db_open (); below.
20987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20988 <limits.h> exists even on freestanding compilers. */
20989
20990#ifdef __STDC__
20991# include <limits.h>
20992#else
20993# include <assert.h>
20994#endif
20995
20996#undef db_open
20997
64ff59ba 20998/* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
d9898ee8 21001#ifdef __cplusplus
21002extern "C"
d9898ee8 21003#endif
d9898ee8 21004char db_open ();
21005/* The GNU C library defines this for functions which it implements
21006 to always fail with ENOSYS. Some functions are actually named
21007 something starting with __ and the normal name is an alias. */
64ff59ba 21008#if defined __stub_db_open || defined __stub___db_open
d9898ee8 21009choke me
d9898ee8 21010#endif
21011
21012int
21013main ()
21014{
64ff59ba 21015return db_open ();
d9898ee8 21016 ;
21017 return 0;
21018}
21019_ACEOF
21020rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21021if { (ac_try="$ac_link"
21022case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025esac
21026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_link") 2>conftest.er1
d9898ee8 21028 ac_status=$?
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest$ac_exeext &&
21037 $as_test_x conftest$ac_exeext; then
d9898ee8 21038 ac_cv_func_db_open=yes
21039else
21040 echo "$as_me: failed program was:" >&5
21041sed 's/^/| /' conftest.$ac_ext >&5
21042
64ff59ba 21043 ac_cv_func_db_open=no
d9898ee8 21044fi
64ff59ba 21045
21046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21047 conftest$ac_exeext conftest.$ac_ext
21048fi
64ff59ba 21049{ echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
21050echo "${ECHO_T}$ac_cv_func_db_open" >&6; }
d9898ee8 21051if test $ac_cv_func_db_open = yes; then
21052 HAVE_BDB=1
21053fi
21054
64ff59ba 21055 { echo "$as_me:$LINENO: checking for db_env_create" >&5
21056echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; }
d9898ee8 21057if test "${ac_cv_func_db_env_create+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21059else
21060 cat >conftest.$ac_ext <<_ACEOF
21061/* confdefs.h. */
21062_ACEOF
21063cat confdefs.h >>conftest.$ac_ext
21064cat >>conftest.$ac_ext <<_ACEOF
21065/* end confdefs.h. */
21066/* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
21067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21068#define db_env_create innocuous_db_env_create
21069
21070/* System header to define __stub macros and hopefully few prototypes,
21071 which can conflict with char db_env_create (); below.
21072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21073 <limits.h> exists even on freestanding compilers. */
21074
21075#ifdef __STDC__
21076# include <limits.h>
21077#else
21078# include <assert.h>
21079#endif
21080
21081#undef db_env_create
21082
64ff59ba 21083/* Override any GCC internal prototype to avoid an error.
21084 Use char because int might match the return type of a GCC
21085 builtin and then its argument prototype would still apply. */
d9898ee8 21086#ifdef __cplusplus
21087extern "C"
d9898ee8 21088#endif
d9898ee8 21089char db_env_create ();
21090/* The GNU C library defines this for functions which it implements
21091 to always fail with ENOSYS. Some functions are actually named
21092 something starting with __ and the normal name is an alias. */
64ff59ba 21093#if defined __stub_db_env_create || defined __stub___db_env_create
d9898ee8 21094choke me
d9898ee8 21095#endif
21096
21097int
21098main ()
21099{
64ff59ba 21100return db_env_create ();
d9898ee8 21101 ;
21102 return 0;
21103}
21104_ACEOF
21105rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21106if { (ac_try="$ac_link"
21107case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21110esac
21111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_link") 2>conftest.er1
d9898ee8 21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest$ac_exeext &&
21122 $as_test_x conftest$ac_exeext; then
d9898ee8 21123 ac_cv_func_db_env_create=yes
21124else
21125 echo "$as_me: failed program was:" >&5
21126sed 's/^/| /' conftest.$ac_ext >&5
21127
64ff59ba 21128 ac_cv_func_db_env_create=no
d9898ee8 21129fi
64ff59ba 21130
21131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21132 conftest$ac_exeext conftest.$ac_ext
21133fi
64ff59ba 21134{ echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
21135echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; }
d9898ee8 21136if test $ac_cv_func_db_env_create = yes; then
21137 HAVE_BDB=1
21138fi
21139
21140fi
21141
21142LIBS="$saveLIBS"
21143
21144if test "$HAVE_GDBM$HAVE_BDB" = ""
21145then
21146 { { echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5
21147echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;}
21148 { (exit 1); exit 1; }; }
21149fi
21150
21151USE_GDBM=0
21152USE_DB=0
21153
21154if test "$HAVE_GDBM" = "y"
21155then
21156 LIBDB=""
21157 USE_GDBM=1
d9898ee8 21158 if test "$needs_withdb" = 1
21159 then
21160 ac_configure_args="$ac_configure_args --with-db=gdbm"
21161 fi
21162 dblibrary=gdbmobj/libgdbmobj.la
21163else
21164 LIBGDBM=""
21165 USE_DB=1
d9898ee8 21166 if test "$needs_withdb" = 1
21167 then
21168 ac_configure_args="$ac_configure_args --with-db=db"
21169 fi
21170 dblibrary=bdbobj/libbdbobj.la
21171fi
21172
21173
21174
21175
21176
64ff59ba 21177# Check whether --with-authuserdb was given.
d9898ee8 21178if test "${with_authuserdb+set}" = set; then
64ff59ba 21179 withval=$with_authuserdb; doauthuserdb="$withval"
d9898ee8 21180else
21181 doauthuserdb="no"
21182 if test -d ${srcdir}/userdb
21183 then
21184 doauthuserdb="yes"
21185 fi
64ff59ba 21186fi
21187
d9898ee8 21188
21189if test "$doauthuserdb" = "no"
21190then
21191 AUTHUSERDB=""
21192else
21193 AUTHUSERDB="authuserdb"
21194 LIBAUTHUSERDB="libauthuserdb.la"
21195
21196fi
21197
21198
64ff59ba 21199# Check whether --with-makedatprog was given.
d9898ee8 21200if test "${with_makedatprog+set}" = set; then
64ff59ba 21201 withval=$with_makedatprog; :
d9898ee8 21202else
21203
21204 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
21205
64ff59ba 21206fi
21207
d9898ee8 21208
21209cat >dbobj.config <<EOF
21210LIBDB=$LIBDB
21211LIBGDBM=$LIBGDBM
21212dblibrary=$dblibrary
21213EOF
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223userdb="$pkgconfdir/userdb"
21224
64ff59ba 21225# Check whether --with-userdb was given.
d9898ee8 21226if test "${with_userdb+set}" = set; then
64ff59ba 21227 withval=$with_userdb; userdb="$withval"
d9898ee8 21228else
21229 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
64ff59ba 21230fi
21231
d9898ee8 21232
21233
21234cat >>confdefs.h <<_ACEOF
21235#define USERDB "$userdb"
21236_ACEOF
21237
21238
21239
21240
21241for ac_header in stdio.h
21242do
21243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21249fi
64ff59ba 21250ac_res=`eval echo '${'$as_ac_Header'}'`
21251 { echo "$as_me:$LINENO: result: $ac_res" >&5
21252echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21253else
21254 # Is the header compilable?
64ff59ba 21255{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21257cat >conftest.$ac_ext <<_ACEOF
21258/* confdefs.h. */
21259_ACEOF
21260cat confdefs.h >>conftest.$ac_ext
21261cat >>conftest.$ac_ext <<_ACEOF
21262/* end confdefs.h. */
21263$ac_includes_default
21264#include <$ac_header>
21265_ACEOF
21266rm -f conftest.$ac_objext
64ff59ba 21267if { (ac_try="$ac_compile"
21268case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21271esac
21272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21274 ac_status=$?
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest.$ac_objext; then
d9898ee8 21283 ac_header_compiler=yes
21284else
21285 echo "$as_me: failed program was:" >&5
21286sed 's/^/| /' conftest.$ac_ext >&5
21287
64ff59ba 21288 ac_header_compiler=no
d9898ee8 21289fi
64ff59ba 21290
21291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21293echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21294
21295# Is the header present?
64ff59ba 21296{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21297echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21298cat >conftest.$ac_ext <<_ACEOF
21299/* confdefs.h. */
21300_ACEOF
21301cat confdefs.h >>conftest.$ac_ext
21302cat >>conftest.$ac_ext <<_ACEOF
21303/* end confdefs.h. */
21304#include <$ac_header>
21305_ACEOF
64ff59ba 21306if { (ac_try="$ac_cpp conftest.$ac_ext"
21307case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21310esac
21311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21318 (exit $ac_status); } >/dev/null && {
21319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 }; then
d9898ee8 21322 ac_header_preproc=yes
21323else
21324 echo "$as_me: failed program was:" >&5
21325sed 's/^/| /' conftest.$ac_ext >&5
21326
21327 ac_header_preproc=no
21328fi
64ff59ba 21329
d9898ee8 21330rm -f conftest.err conftest.$ac_ext
64ff59ba 21331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21332echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21333
21334# So? What about this header?
21335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21336 yes:no: )
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21341 ac_header_preproc=yes
21342 ;;
21343 no:yes:* )
21344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21356 ( cat <<\_ASBOX
0fde1ce3 21357## ------------------------------------------------- ##
21358## Report this to courier-imap@lists.sourceforge.net ##
21359## ------------------------------------------------- ##
d9898ee8 21360_ASBOX
64ff59ba 21361 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21362 ;;
21363esac
64ff59ba 21364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368else
21369 eval "$as_ac_Header=\$ac_header_preproc"
21370fi
64ff59ba 21371ac_res=`eval echo '${'$as_ac_Header'}'`
21372 { echo "$as_me:$LINENO: result: $ac_res" >&5
21373echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21374
21375fi
21376if test `eval echo '${'$as_ac_Header'}'` = yes; then
21377 cat >>confdefs.h <<_ACEOF
21378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21379_ACEOF
21380
21381fi
21382
21383done
21384
21385
21386
21387
21388
21389
64ff59ba 21390# Check whether --with-authpam was given.
d9898ee8 21391if test "${with_authpam+set}" = set; then
64ff59ba 21392 withval=$with_authpam; doauthpam="$withval"
21393fi
21394
d9898ee8 21395
21396
21397
21398for ac_header in security/pam_appl.h Pam/pam_appl.h
21399do
21400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406fi
64ff59ba 21407ac_res=`eval echo '${'$as_ac_Header'}'`
21408 { echo "$as_me:$LINENO: result: $ac_res" >&5
21409echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21410else
21411 # Is the header compilable?
64ff59ba 21412{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21414cat >conftest.$ac_ext <<_ACEOF
21415/* confdefs.h. */
21416_ACEOF
21417cat confdefs.h >>conftest.$ac_ext
21418cat >>conftest.$ac_ext <<_ACEOF
21419/* end confdefs.h. */
21420$ac_includes_default
21421#include <$ac_header>
21422_ACEOF
21423rm -f conftest.$ac_objext
64ff59ba 21424if { (ac_try="$ac_compile"
21425case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21428esac
21429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21431 ac_status=$?
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21436 (exit $ac_status); } && {
21437 test -z "$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 } && test -s conftest.$ac_objext; then
d9898ee8 21440 ac_header_compiler=yes
21441else
21442 echo "$as_me: failed program was:" >&5
21443sed 's/^/| /' conftest.$ac_ext >&5
21444
64ff59ba 21445 ac_header_compiler=no
d9898ee8 21446fi
64ff59ba 21447
21448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21450echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21451
21452# Is the header present?
64ff59ba 21453{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21455cat >conftest.$ac_ext <<_ACEOF
21456/* confdefs.h. */
21457_ACEOF
21458cat confdefs.h >>conftest.$ac_ext
21459cat >>conftest.$ac_ext <<_ACEOF
21460/* end confdefs.h. */
21461#include <$ac_header>
21462_ACEOF
64ff59ba 21463if { (ac_try="$ac_cpp conftest.$ac_ext"
21464case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21467esac
21468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21470 ac_status=$?
21471 grep -v '^ *+' conftest.er1 >conftest.err
21472 rm -f conftest.er1
21473 cat conftest.err >&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21475 (exit $ac_status); } >/dev/null && {
21476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21477 test ! -s conftest.err
21478 }; then
d9898ee8 21479 ac_header_preproc=yes
21480else
21481 echo "$as_me: failed program was:" >&5
21482sed 's/^/| /' conftest.$ac_ext >&5
21483
21484 ac_header_preproc=no
21485fi
64ff59ba 21486
d9898ee8 21487rm -f conftest.err conftest.$ac_ext
64ff59ba 21488{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21489echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21490
21491# So? What about this header?
21492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21493 yes:no: )
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21498 ac_header_preproc=yes
21499 ;;
21500 no:yes:* )
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21513 ( cat <<\_ASBOX
0fde1ce3 21514## ------------------------------------------------- ##
21515## Report this to courier-imap@lists.sourceforge.net ##
21516## ------------------------------------------------- ##
d9898ee8 21517_ASBOX
64ff59ba 21518 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21519 ;;
21520esac
64ff59ba 21521{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525else
21526 eval "$as_ac_Header=\$ac_header_preproc"
21527fi
64ff59ba 21528ac_res=`eval echo '${'$as_ac_Header'}'`
21529 { echo "$as_me:$LINENO: result: $ac_res" >&5
21530echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21531
21532fi
21533if test `eval echo '${'$as_ac_Header'}'` = yes; then
21534 cat >>confdefs.h <<_ACEOF
21535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21536_ACEOF
21537
21538fi
21539
21540done
21541
21542if test "$doauthpam" = "no"
21543then
21544 LIBDL=""
21545else
21546 saveLIBS="$LIBS"
21547 LIBDL=""
64ff59ba 21548 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21549echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 21550if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552else
21553 ac_check_lib_save_LIBS=$LIBS
21554LIBS="-ldl $LIBS"
21555cat >conftest.$ac_ext <<_ACEOF
21556/* confdefs.h. */
21557_ACEOF
21558cat confdefs.h >>conftest.$ac_ext
21559cat >>conftest.$ac_ext <<_ACEOF
21560/* end confdefs.h. */
21561
64ff59ba 21562/* Override any GCC internal prototype to avoid an error.
21563 Use char because int might match the return type of a GCC
21564 builtin and then its argument prototype would still apply. */
d9898ee8 21565#ifdef __cplusplus
21566extern "C"
21567#endif
d9898ee8 21568char dlopen ();
21569int
21570main ()
21571{
64ff59ba 21572return dlopen ();
d9898ee8 21573 ;
21574 return 0;
21575}
21576_ACEOF
21577rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21578if { (ac_try="$ac_link"
21579case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21582esac
21583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_link") 2>conftest.er1
d9898ee8 21585 ac_status=$?
21586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest$ac_exeext &&
21594 $as_test_x conftest$ac_exeext; then
d9898ee8 21595 ac_cv_lib_dl_dlopen=yes
21596else
21597 echo "$as_me: failed program was:" >&5
21598sed 's/^/| /' conftest.$ac_ext >&5
21599
64ff59ba 21600 ac_cv_lib_dl_dlopen=no
d9898ee8 21601fi
64ff59ba 21602
21603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21604 conftest$ac_exeext conftest.$ac_ext
21605LIBS=$ac_check_lib_save_LIBS
21606fi
64ff59ba 21607{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21608echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 21609if test $ac_cv_lib_dl_dlopen = yes; then
21610 LIBDL="-ldl"
21611fi
21612
21613 LIBS="$saveLIBS"
21614
64ff59ba 21615 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
21616echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
d9898ee8 21617if test "${ac_cv_lib_pam_pam_start+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21619else
21620 ac_check_lib_save_LIBS=$LIBS
21621LIBS="-lpam $LIBDL $LIBS"
21622cat >conftest.$ac_ext <<_ACEOF
21623/* confdefs.h. */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h. */
21628
64ff59ba 21629/* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
d9898ee8 21632#ifdef __cplusplus
21633extern "C"
21634#endif
d9898ee8 21635char pam_start ();
21636int
21637main ()
21638{
64ff59ba 21639return pam_start ();
d9898ee8 21640 ;
21641 return 0;
21642}
21643_ACEOF
21644rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21645if { (ac_try="$ac_link"
21646case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649esac
21650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>conftest.er1
d9898ee8 21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest$ac_exeext &&
21661 $as_test_x conftest$ac_exeext; then
d9898ee8 21662 ac_cv_lib_pam_pam_start=yes
21663else
21664 echo "$as_me: failed program was:" >&5
21665sed 's/^/| /' conftest.$ac_ext >&5
21666
64ff59ba 21667 ac_cv_lib_pam_pam_start=no
d9898ee8 21668fi
64ff59ba 21669
21670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21671 conftest$ac_exeext conftest.$ac_ext
21672LIBS=$ac_check_lib_save_LIBS
21673fi
64ff59ba 21674{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
21675echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
d9898ee8 21676if test $ac_cv_lib_pam_pam_start = yes; then
21677 HAVE_PAM=1
21678 LIBS="-lpam $LIBDL $LIBS"
21679
21680for ac_func in pam_setcred
21681do
21682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 21683{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21685if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21687else
21688 cat >conftest.$ac_ext <<_ACEOF
21689/* confdefs.h. */
21690_ACEOF
21691cat confdefs.h >>conftest.$ac_ext
21692cat >>conftest.$ac_ext <<_ACEOF
21693/* end confdefs.h. */
21694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21696#define $ac_func innocuous_$ac_func
21697
21698/* System header to define __stub macros and hopefully few prototypes,
21699 which can conflict with char $ac_func (); below.
21700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21701 <limits.h> exists even on freestanding compilers. */
21702
21703#ifdef __STDC__
21704# include <limits.h>
21705#else
21706# include <assert.h>
21707#endif
21708
21709#undef $ac_func
21710
64ff59ba 21711/* Override any GCC internal prototype to avoid an error.
21712 Use char because int might match the return type of a GCC
21713 builtin and then its argument prototype would still apply. */
d9898ee8 21714#ifdef __cplusplus
21715extern "C"
d9898ee8 21716#endif
d9898ee8 21717char $ac_func ();
21718/* The GNU C library defines this for functions which it implements
21719 to always fail with ENOSYS. Some functions are actually named
21720 something starting with __ and the normal name is an alias. */
64ff59ba 21721#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 21722choke me
d9898ee8 21723#endif
21724
21725int
21726main ()
21727{
64ff59ba 21728return $ac_func ();
d9898ee8 21729 ;
21730 return 0;
21731}
21732_ACEOF
21733rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21734if { (ac_try="$ac_link"
21735case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21738esac
21739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_link") 2>conftest.er1
d9898ee8 21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest$ac_exeext &&
21750 $as_test_x conftest$ac_exeext; then
d9898ee8 21751 eval "$as_ac_var=yes"
21752else
21753 echo "$as_me: failed program was:" >&5
21754sed 's/^/| /' conftest.$ac_ext >&5
21755
64ff59ba 21756 eval "$as_ac_var=no"
d9898ee8 21757fi
64ff59ba 21758
21759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21760 conftest$ac_exeext conftest.$ac_ext
21761fi
64ff59ba 21762ac_res=`eval echo '${'$as_ac_var'}'`
21763 { echo "$as_me:$LINENO: result: $ac_res" >&5
21764echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21765if test `eval echo '${'$as_ac_var'}'` = yes; then
21766 cat >>confdefs.h <<_ACEOF
21767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21768_ACEOF
21769
21770fi
21771done
21772
21773else
21774 HAVE_PAM=0
21775fi
21776
21777 LIBS="$saveLIBS"
21778fi
21779
21780
21781LIBAUTHPAM=""
21782if test "$HAVE_PAM" = 1
21783then
21784 LIBAUTHPAM=libauthpam.la
21785fi
21786
21787
64ff59ba 21788# Check whether --with-authpam-libraries was given.
d9898ee8 21789if test "${with_authpam_libraries+set}" = set; then
64ff59ba 21790 withval=$with_authpam_libraries; authpamcrypt="$withval"
21791fi
21792
d9898ee8 21793
21794AUTHPAMCRYPT="$authpamcrypt"
21795
21796
21797
21798
21799
21800
21801
64ff59ba 21802# Check whether --with-authldap was given.
d9898ee8 21803if test "${with_authldap+set}" = set; then
64ff59ba 21804 withval=$with_authldap; doauthldap="$withval"
d9898ee8 21805else
21806 doauthldap="yes"
64ff59ba 21807fi
21808
d9898ee8 21809
21810
21811for ac_header in lber.h
21812do
21813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21819fi
64ff59ba 21820ac_res=`eval echo '${'$as_ac_Header'}'`
21821 { echo "$as_me:$LINENO: result: $ac_res" >&5
21822echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21823else
21824 # Is the header compilable?
64ff59ba 21825{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21827cat >conftest.$ac_ext <<_ACEOF
21828/* confdefs.h. */
21829_ACEOF
21830cat confdefs.h >>conftest.$ac_ext
21831cat >>conftest.$ac_ext <<_ACEOF
21832/* end confdefs.h. */
21833$ac_includes_default
21834#include <$ac_header>
21835_ACEOF
21836rm -f conftest.$ac_objext
64ff59ba 21837if { (ac_try="$ac_compile"
21838case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841esac
21842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21844 ac_status=$?
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21849 (exit $ac_status); } && {
21850 test -z "$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 } && test -s conftest.$ac_objext; then
d9898ee8 21853 ac_header_compiler=yes
21854else
21855 echo "$as_me: failed program was:" >&5
21856sed 's/^/| /' conftest.$ac_ext >&5
21857
64ff59ba 21858 ac_header_compiler=no
d9898ee8 21859fi
64ff59ba 21860
21861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21863echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21864
21865# Is the header present?
64ff59ba 21866{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21868cat >conftest.$ac_ext <<_ACEOF
21869/* confdefs.h. */
21870_ACEOF
21871cat confdefs.h >>conftest.$ac_ext
21872cat >>conftest.$ac_ext <<_ACEOF
21873/* end confdefs.h. */
21874#include <$ac_header>
21875_ACEOF
64ff59ba 21876if { (ac_try="$ac_cpp conftest.$ac_ext"
21877case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21880esac
21881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21883 ac_status=$?
21884 grep -v '^ *+' conftest.er1 >conftest.err
21885 rm -f conftest.er1
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21888 (exit $ac_status); } >/dev/null && {
21889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21890 test ! -s conftest.err
21891 }; then
d9898ee8 21892 ac_header_preproc=yes
21893else
21894 echo "$as_me: failed program was:" >&5
21895sed 's/^/| /' conftest.$ac_ext >&5
21896
21897 ac_header_preproc=no
21898fi
64ff59ba 21899
d9898ee8 21900rm -f conftest.err conftest.$ac_ext
64ff59ba 21901{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21902echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21903
21904# So? What about this header?
21905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21906 yes:no: )
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21911 ac_header_preproc=yes
21912 ;;
21913 no:yes:* )
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21926 ( cat <<\_ASBOX
0fde1ce3 21927## ------------------------------------------------- ##
21928## Report this to courier-imap@lists.sourceforge.net ##
21929## ------------------------------------------------- ##
d9898ee8 21930_ASBOX
64ff59ba 21931 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21932 ;;
21933esac
64ff59ba 21934{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21938else
21939 eval "$as_ac_Header=\$ac_header_preproc"
21940fi
64ff59ba 21941ac_res=`eval echo '${'$as_ac_Header'}'`
21942 { echo "$as_me:$LINENO: result: $ac_res" >&5
21943echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21944
21945fi
21946if test `eval echo '${'$as_ac_Header'}'` = yes; then
21947 cat >>confdefs.h <<_ACEOF
21948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21949_ACEOF
21950
21951fi
21952
21953done
21954
21955
21956for ac_header in ldap.h
21957do
21958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964fi
64ff59ba 21965ac_res=`eval echo '${'$as_ac_Header'}'`
21966 { echo "$as_me:$LINENO: result: $ac_res" >&5
21967echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21968else
21969 # Is the header compilable?
64ff59ba 21970{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21972cat >conftest.$ac_ext <<_ACEOF
21973/* confdefs.h. */
21974_ACEOF
21975cat confdefs.h >>conftest.$ac_ext
21976cat >>conftest.$ac_ext <<_ACEOF
21977/* end confdefs.h. */
21978$ac_includes_default
21979#include <$ac_header>
21980_ACEOF
21981rm -f conftest.$ac_objext
64ff59ba 21982if { (ac_try="$ac_compile"
21983case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21986esac
21987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest.$ac_objext; then
d9898ee8 21998 ac_header_compiler=yes
21999else
22000 echo "$as_me: failed program was:" >&5
22001sed 's/^/| /' conftest.$ac_ext >&5
22002
64ff59ba 22003 ac_header_compiler=no
d9898ee8 22004fi
64ff59ba 22005
22006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22008echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 22009
22010# Is the header present?
64ff59ba 22011{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 22013cat >conftest.$ac_ext <<_ACEOF
22014/* confdefs.h. */
22015_ACEOF
22016cat confdefs.h >>conftest.$ac_ext
22017cat >>conftest.$ac_ext <<_ACEOF
22018/* end confdefs.h. */
22019#include <$ac_header>
22020_ACEOF
64ff59ba 22021if { (ac_try="$ac_cpp conftest.$ac_ext"
22022case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22025esac
22026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 22028 ac_status=$?
22029 grep -v '^ *+' conftest.er1 >conftest.err
22030 rm -f conftest.er1
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22033 (exit $ac_status); } >/dev/null && {
22034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 }; then
d9898ee8 22037 ac_header_preproc=yes
22038else
22039 echo "$as_me: failed program was:" >&5
22040sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 ac_header_preproc=no
22043fi
64ff59ba 22044
d9898ee8 22045rm -f conftest.err conftest.$ac_ext
64ff59ba 22046{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22047echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 22048
22049# So? What about this header?
22050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22051 yes:no: )
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22056 ac_header_preproc=yes
22057 ;;
22058 no:yes:* )
22059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22066echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 22071 ( cat <<\_ASBOX
0fde1ce3 22072## ------------------------------------------------- ##
22073## Report this to courier-imap@lists.sourceforge.net ##
22074## ------------------------------------------------- ##
d9898ee8 22075_ASBOX
64ff59ba 22076 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 22077 ;;
22078esac
64ff59ba 22079{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22083else
22084 eval "$as_ac_Header=\$ac_header_preproc"
22085fi
64ff59ba 22086ac_res=`eval echo '${'$as_ac_Header'}'`
22087 { echo "$as_me:$LINENO: result: $ac_res" >&5
22088echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22089
22090fi
22091if test `eval echo '${'$as_ac_Header'}'` = yes; then
22092 cat >>confdefs.h <<_ACEOF
22093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22094_ACEOF
22095
22096fi
22097
22098done
22099
22100
22101for ac_header in netinet/in.h
22102do
22103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 22104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22109fi
64ff59ba 22110ac_res=`eval echo '${'$as_ac_Header'}'`
22111 { echo "$as_me:$LINENO: result: $ac_res" >&5
22112echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22113else
22114 # Is the header compilable?
64ff59ba 22115{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 22117cat >conftest.$ac_ext <<_ACEOF
22118/* confdefs.h. */
22119_ACEOF
22120cat confdefs.h >>conftest.$ac_ext
22121cat >>conftest.$ac_ext <<_ACEOF
22122/* end confdefs.h. */
22123$ac_includes_default
22124#include <$ac_header>
22125_ACEOF
22126rm -f conftest.$ac_objext
64ff59ba 22127if { (ac_try="$ac_compile"
22128case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22131esac
22132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
d9898ee8 22134 ac_status=$?
22135 grep -v '^ *+' conftest.er1 >conftest.err
22136 rm -f conftest.er1
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
d9898ee8 22143 ac_header_compiler=yes
22144else
22145 echo "$as_me: failed program was:" >&5
22146sed 's/^/| /' conftest.$ac_ext >&5
22147
64ff59ba 22148 ac_header_compiler=no
d9898ee8 22149fi
64ff59ba 22150
22151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22153echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 22154
22155# Is the header present?
64ff59ba 22156{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 22158cat >conftest.$ac_ext <<_ACEOF
22159/* confdefs.h. */
22160_ACEOF
22161cat confdefs.h >>conftest.$ac_ext
22162cat >>conftest.$ac_ext <<_ACEOF
22163/* end confdefs.h. */
22164#include <$ac_header>
22165_ACEOF
64ff59ba 22166if { (ac_try="$ac_cpp conftest.$ac_ext"
22167case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22170esac
22171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 22173 ac_status=$?
22174 grep -v '^ *+' conftest.er1 >conftest.err
22175 rm -f conftest.er1
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22178 (exit $ac_status); } >/dev/null && {
22179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22181 }; then
d9898ee8 22182 ac_header_preproc=yes
22183else
22184 echo "$as_me: failed program was:" >&5
22185sed 's/^/| /' conftest.$ac_ext >&5
22186
22187 ac_header_preproc=no
22188fi
64ff59ba 22189
d9898ee8 22190rm -f conftest.err conftest.$ac_ext
64ff59ba 22191{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22192echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 22193
22194# So? What about this header?
22195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22196 yes:no: )
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22201 ac_header_preproc=yes
22202 ;;
22203 no:yes:* )
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 22216 ( cat <<\_ASBOX
0fde1ce3 22217## ------------------------------------------------- ##
22218## Report this to courier-imap@lists.sourceforge.net ##
22219## ------------------------------------------------- ##
d9898ee8 22220_ASBOX
64ff59ba 22221 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 22222 ;;
22223esac
64ff59ba 22224{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22228else
22229 eval "$as_ac_Header=\$ac_header_preproc"
22230fi
64ff59ba 22231ac_res=`eval echo '${'$as_ac_Header'}'`
22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22234
22235fi
22236if test `eval echo '${'$as_ac_Header'}'` = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22239_ACEOF
22240
22241fi
22242
22243done
22244
22245
22246if test "$doauthldap" = "no"
22247then
22248 HAVE_LDAP=0
22249else
22250 saveLIBS="$LIBS"
22251 LIBS="$NETLIBS $LIBS"
22252 LDAPLIBS=""
22253
64ff59ba 22254 { echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5
22255echo $ECHO_N "checking whether -lresolv is needed for res_query... $ECHO_C" >&6; }
d9898ee8 22256 cat >conftest.$ac_ext <<_ACEOF
22257/* confdefs.h. */
22258_ACEOF
22259cat confdefs.h >>conftest.$ac_ext
22260cat >>conftest.$ac_ext <<_ACEOF
22261/* end confdefs.h. */
22262
22263#include <sys/types.h>
22264#if HAVE_NETINET_IN_H
22265#include <netinet/in.h>
22266#endif
22267#include <resolv.h>
22268
22269void (*func)()= (void (*)())res_query;
22270
22271int
22272main ()
22273{
22274 (*func)();
22275 ;
22276 return 0;
22277}
22278_ACEOF
22279rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22280if { (ac_try="$ac_link"
22281case "(($ac_try" in
22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22284esac
22285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_link") 2>conftest.er1
d9898ee8 22287 ac_status=$?
22288 grep -v '^ *+' conftest.er1 >conftest.err
22289 rm -f conftest.er1
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest$ac_exeext &&
22296 $as_test_x conftest$ac_exeext; then
22297 { echo "$as_me:$LINENO: result: no" >&5
22298echo "${ECHO_T}no" >&6; }
d9898ee8 22299else
22300 echo "$as_me: failed program was:" >&5
22301sed 's/^/| /' conftest.$ac_ext >&5
22302
22303
22304 LIBS="-lresolv $LIBS"
22305
22306 cat >conftest.$ac_ext <<_ACEOF
22307/* confdefs.h. */
22308_ACEOF
22309cat confdefs.h >>conftest.$ac_ext
22310cat >>conftest.$ac_ext <<_ACEOF
22311/* end confdefs.h. */
22312
22313#include <sys/types.h>
22314#if HAVE_NETINET_IN_H
22315#include <netinet/in.h>
22316#endif
22317#include <resolv.h>
22318
22319void (*func)()= (void (*)())res_query;
22320
22321int
22322main ()
22323{
22324 (*func)();
22325 ;
22326 return 0;
22327}
22328_ACEOF
22329rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22330if { (ac_try="$ac_link"
22331case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22334esac
22335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_link") 2>conftest.er1
d9898ee8 22337 ac_status=$?
22338 grep -v '^ *+' conftest.er1 >conftest.err
22339 rm -f conftest.er1
22340 cat conftest.err >&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22342 (exit $ac_status); } && {
22343 test -z "$ac_c_werror_flag" ||
22344 test ! -s conftest.err
22345 } && test -s conftest$ac_exeext &&
22346 $as_test_x conftest$ac_exeext; then
d9898ee8 22347
22348 LDAPLIBS="-lresolv $LDAPLIBS"
22349 HAVE_LDAP=1
64ff59ba 22350 { echo "$as_me:$LINENO: result: yes" >&5
22351echo "${ECHO_T}yes" >&6; }
d9898ee8 22352
22353else
22354 echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
64ff59ba 22357 { { echo "$as_me:$LINENO: error: Cannot find function res_query" >&5
d9898ee8 22358echo "$as_me: error: Cannot find function res_query" >&2;}
22359 { (exit 1); exit 1; }; }
22360fi
64ff59ba 22361
22362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22363 conftest$ac_exeext conftest.$ac_ext
22364
22365fi
64ff59ba 22366
22367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22368 conftest$ac_exeext conftest.$ac_ext
22369
64ff59ba 22370 { echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
22371echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6; }
d9898ee8 22372if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22374else
22375 ac_check_lib_save_LIBS=$LIBS
22376LIBS="-llber $LIBS"
22377cat >conftest.$ac_ext <<_ACEOF
22378/* confdefs.h. */
22379_ACEOF
22380cat confdefs.h >>conftest.$ac_ext
22381cat >>conftest.$ac_ext <<_ACEOF
22382/* end confdefs.h. */
22383
64ff59ba 22384/* Override any GCC internal prototype to avoid an error.
22385 Use char because int might match the return type of a GCC
22386 builtin and then its argument prototype would still apply. */
d9898ee8 22387#ifdef __cplusplus
22388extern "C"
22389#endif
d9898ee8 22390char ber_scanf ();
22391int
22392main ()
22393{
64ff59ba 22394return ber_scanf ();
d9898ee8 22395 ;
22396 return 0;
22397}
22398_ACEOF
22399rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22400if { (ac_try="$ac_link"
22401case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_link") 2>conftest.er1
d9898ee8 22407 ac_status=$?
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest$ac_exeext &&
22416 $as_test_x conftest$ac_exeext; then
d9898ee8 22417 ac_cv_lib_lber_ber_scanf=yes
22418else
22419 echo "$as_me: failed program was:" >&5
22420sed 's/^/| /' conftest.$ac_ext >&5
22421
64ff59ba 22422 ac_cv_lib_lber_ber_scanf=no
d9898ee8 22423fi
64ff59ba 22424
22425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22426 conftest$ac_exeext conftest.$ac_ext
22427LIBS=$ac_check_lib_save_LIBS
22428fi
64ff59ba 22429{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
22430echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6; }
d9898ee8 22431if test $ac_cv_lib_lber_ber_scanf = yes; then
22432 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
22433fi
22434
64ff59ba 22435 { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
22436echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; }
d9898ee8 22437if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22439else
22440 ac_check_lib_save_LIBS=$LIBS
22441LIBS="-lldap $LIBS"
22442cat >conftest.$ac_ext <<_ACEOF
22443/* confdefs.h. */
22444_ACEOF
22445cat confdefs.h >>conftest.$ac_ext
22446cat >>conftest.$ac_ext <<_ACEOF
22447/* end confdefs.h. */
22448
64ff59ba 22449/* Override any GCC internal prototype to avoid an error.
22450 Use char because int might match the return type of a GCC
22451 builtin and then its argument prototype would still apply. */
d9898ee8 22452#ifdef __cplusplus
22453extern "C"
22454#endif
d9898ee8 22455char ldap_open ();
22456int
22457main ()
22458{
64ff59ba 22459return ldap_open ();
d9898ee8 22460 ;
22461 return 0;
22462}
22463_ACEOF
22464rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22465if { (ac_try="$ac_link"
22466case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469esac
22470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_link") 2>conftest.er1
d9898ee8 22472 ac_status=$?
22473 grep -v '^ *+' conftest.er1 >conftest.err
22474 rm -f conftest.er1
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest$ac_exeext &&
22481 $as_test_x conftest$ac_exeext; then
d9898ee8 22482 ac_cv_lib_ldap_ldap_open=yes
22483else
22484 echo "$as_me: failed program was:" >&5
22485sed 's/^/| /' conftest.$ac_ext >&5
22486
64ff59ba 22487 ac_cv_lib_ldap_ldap_open=no
d9898ee8 22488fi
64ff59ba 22489
22490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22491 conftest$ac_exeext conftest.$ac_ext
22492LIBS=$ac_check_lib_save_LIBS
22493fi
64ff59ba 22494{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
22495echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; }
d9898ee8 22496if test $ac_cv_lib_ldap_ldap_open = yes; then
22497 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
22498fi
22499
64ff59ba 22500 { echo "$as_me:$LINENO: checking for ldap_search_st" >&5
22501echo $ECHO_N "checking for ldap_search_st... $ECHO_C" >&6; }
d9898ee8 22502if test "${ac_cv_func_ldap_search_st+set}" = set; then
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
22504else
22505 cat >conftest.$ac_ext <<_ACEOF
22506/* confdefs.h. */
22507_ACEOF
22508cat confdefs.h >>conftest.$ac_ext
22509cat >>conftest.$ac_ext <<_ACEOF
22510/* end confdefs.h. */
22511/* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st.
22512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22513#define ldap_search_st innocuous_ldap_search_st
22514
22515/* System header to define __stub macros and hopefully few prototypes,
22516 which can conflict with char ldap_search_st (); below.
22517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22518 <limits.h> exists even on freestanding compilers. */
22519
22520#ifdef __STDC__
22521# include <limits.h>
22522#else
22523# include <assert.h>
22524#endif
22525
22526#undef ldap_search_st
22527
64ff59ba 22528/* Override any GCC internal prototype to avoid an error.
22529 Use char because int might match the return type of a GCC
22530 builtin and then its argument prototype would still apply. */
d9898ee8 22531#ifdef __cplusplus
22532extern "C"
d9898ee8 22533#endif
d9898ee8 22534char ldap_search_st ();
22535/* The GNU C library defines this for functions which it implements
22536 to always fail with ENOSYS. Some functions are actually named
22537 something starting with __ and the normal name is an alias. */
64ff59ba 22538#if defined __stub_ldap_search_st || defined __stub___ldap_search_st
d9898ee8 22539choke me
d9898ee8 22540#endif
22541
22542int
22543main ()
22544{
64ff59ba 22545return ldap_search_st ();
d9898ee8 22546 ;
22547 return 0;
22548}
22549_ACEOF
22550rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22551if { (ac_try="$ac_link"
22552case "(($ac_try" in
22553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554 *) ac_try_echo=$ac_try;;
22555esac
22556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557 (eval "$ac_link") 2>conftest.er1
d9898ee8 22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest$ac_exeext &&
22567 $as_test_x conftest$ac_exeext; then
d9898ee8 22568 ac_cv_func_ldap_search_st=yes
22569else
22570 echo "$as_me: failed program was:" >&5
22571sed 's/^/| /' conftest.$ac_ext >&5
22572
64ff59ba 22573 ac_cv_func_ldap_search_st=no
d9898ee8 22574fi
64ff59ba 22575
22576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22577 conftest$ac_exeext conftest.$ac_ext
22578fi
64ff59ba 22579{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5
22580echo "${ECHO_T}$ac_cv_func_ldap_search_st" >&6; }
d9898ee8 22581if test $ac_cv_func_ldap_search_st = yes; then
22582 HAVE_LDAP=1
22583else
22584 HAVE_LDAP=0
22585fi
22586
64ff59ba 22587 { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
22588echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
d9898ee8 22589if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22591else
22592 cat >conftest.$ac_ext <<_ACEOF
22593/* confdefs.h. */
22594_ACEOF
22595cat confdefs.h >>conftest.$ac_ext
22596cat >>conftest.$ac_ext <<_ACEOF
22597/* end confdefs.h. */
22598/* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
22599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22600#define ldap_start_tls_s innocuous_ldap_start_tls_s
22601
22602/* System header to define __stub macros and hopefully few prototypes,
22603 which can conflict with char ldap_start_tls_s (); below.
22604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22605 <limits.h> exists even on freestanding compilers. */
22606
22607#ifdef __STDC__
22608# include <limits.h>
22609#else
22610# include <assert.h>
22611#endif
22612
22613#undef ldap_start_tls_s
22614
64ff59ba 22615/* Override any GCC internal prototype to avoid an error.
22616 Use char because int might match the return type of a GCC
22617 builtin and then its argument prototype would still apply. */
d9898ee8 22618#ifdef __cplusplus
22619extern "C"
d9898ee8 22620#endif
d9898ee8 22621char ldap_start_tls_s ();
22622/* The GNU C library defines this for functions which it implements
22623 to always fail with ENOSYS. Some functions are actually named
22624 something starting with __ and the normal name is an alias. */
64ff59ba 22625#if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
d9898ee8 22626choke me
d9898ee8 22627#endif
22628
22629int
22630main ()
22631{
64ff59ba 22632return ldap_start_tls_s ();
d9898ee8 22633 ;
22634 return 0;
22635}
22636_ACEOF
22637rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22638if { (ac_try="$ac_link"
22639case "(($ac_try" in
22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641 *) ac_try_echo=$ac_try;;
22642esac
22643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_link") 2>conftest.er1
d9898ee8 22645 ac_status=$?
22646 grep -v '^ *+' conftest.er1 >conftest.err
22647 rm -f conftest.er1
22648 cat conftest.err >&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest$ac_exeext &&
22654 $as_test_x conftest$ac_exeext; then
d9898ee8 22655 ac_cv_func_ldap_start_tls_s=yes
22656else
22657 echo "$as_me: failed program was:" >&5
22658sed 's/^/| /' conftest.$ac_ext >&5
22659
64ff59ba 22660 ac_cv_func_ldap_start_tls_s=no
d9898ee8 22661fi
64ff59ba 22662
22663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22664 conftest$ac_exeext conftest.$ac_ext
22665fi
64ff59ba 22666{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
22667echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
d9898ee8 22668if test $ac_cv_func_ldap_start_tls_s = yes; then
22669 HAVE_LDAP_TLS=1
22670else
22671 HAVE_LDAP_TLS=0
22672fi
22673
64ff59ba 22674 { echo "$as_me:$LINENO: checking for ldap_result2error" >&5
22675echo $ECHO_N "checking for ldap_result2error... $ECHO_C" >&6; }
d9898ee8 22676if test "${ac_cv_func_ldap_result2error+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22678else
22679 cat >conftest.$ac_ext <<_ACEOF
22680/* confdefs.h. */
22681_ACEOF
22682cat confdefs.h >>conftest.$ac_ext
22683cat >>conftest.$ac_ext <<_ACEOF
22684/* end confdefs.h. */
22685/* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error.
22686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22687#define ldap_result2error innocuous_ldap_result2error
22688
22689/* System header to define __stub macros and hopefully few prototypes,
22690 which can conflict with char ldap_result2error (); below.
22691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22692 <limits.h> exists even on freestanding compilers. */
22693
22694#ifdef __STDC__
22695# include <limits.h>
22696#else
22697# include <assert.h>
22698#endif
22699
22700#undef ldap_result2error
22701
64ff59ba 22702/* Override any GCC internal prototype to avoid an error.
22703 Use char because int might match the return type of a GCC
22704 builtin and then its argument prototype would still apply. */
d9898ee8 22705#ifdef __cplusplus
22706extern "C"
d9898ee8 22707#endif
d9898ee8 22708char ldap_result2error ();
22709/* The GNU C library defines this for functions which it implements
22710 to always fail with ENOSYS. Some functions are actually named
22711 something starting with __ and the normal name is an alias. */
64ff59ba 22712#if defined __stub_ldap_result2error || defined __stub___ldap_result2error
d9898ee8 22713choke me
d9898ee8 22714#endif
22715
22716int
22717main ()
22718{
64ff59ba 22719return ldap_result2error ();
d9898ee8 22720 ;
22721 return 0;
22722}
22723_ACEOF
22724rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22725if { (ac_try="$ac_link"
22726case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729esac
22730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_link") 2>conftest.er1
d9898ee8 22732 ac_status=$?
22733 grep -v '^ *+' conftest.er1 >conftest.err
22734 rm -f conftest.er1
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest$ac_exeext &&
22741 $as_test_x conftest$ac_exeext; then
d9898ee8 22742 ac_cv_func_ldap_result2error=yes
22743else
22744 echo "$as_me: failed program was:" >&5
22745sed 's/^/| /' conftest.$ac_ext >&5
22746
64ff59ba 22747 ac_cv_func_ldap_result2error=no
d9898ee8 22748fi
64ff59ba 22749
22750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22751 conftest$ac_exeext conftest.$ac_ext
22752fi
64ff59ba 22753{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5
22754echo "${ECHO_T}$ac_cv_func_ldap_result2error" >&6; }
d9898ee8 22755if test $ac_cv_func_ldap_result2error = yes; then
22756 HAVE_LDAP_RESULT2ERROR=1
22757else
22758 HAVE_LDAP_RESULT2ERROR=0
22759fi
22760
64ff59ba 22761 { echo "$as_me:$LINENO: checking for ldap_parse_result" >&5
22762echo $ECHO_N "checking for ldap_parse_result... $ECHO_C" >&6; }
d9898ee8 22763if test "${ac_cv_func_ldap_parse_result+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22765else
22766 cat >conftest.$ac_ext <<_ACEOF
22767/* confdefs.h. */
22768_ACEOF
22769cat confdefs.h >>conftest.$ac_ext
22770cat >>conftest.$ac_ext <<_ACEOF
22771/* end confdefs.h. */
22772/* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result.
22773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22774#define ldap_parse_result innocuous_ldap_parse_result
22775
22776/* System header to define __stub macros and hopefully few prototypes,
22777 which can conflict with char ldap_parse_result (); below.
22778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22779 <limits.h> exists even on freestanding compilers. */
22780
22781#ifdef __STDC__
22782# include <limits.h>
22783#else
22784# include <assert.h>
22785#endif
22786
22787#undef ldap_parse_result
22788
64ff59ba 22789/* Override any GCC internal prototype to avoid an error.
22790 Use char because int might match the return type of a GCC
22791 builtin and then its argument prototype would still apply. */
d9898ee8 22792#ifdef __cplusplus
22793extern "C"
d9898ee8 22794#endif
d9898ee8 22795char ldap_parse_result ();
22796/* The GNU C library defines this for functions which it implements
22797 to always fail with ENOSYS. Some functions are actually named
22798 something starting with __ and the normal name is an alias. */
64ff59ba 22799#if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result
d9898ee8 22800choke me
d9898ee8 22801#endif
22802
22803int
22804main ()
22805{
64ff59ba 22806return ldap_parse_result ();
d9898ee8 22807 ;
22808 return 0;
22809}
22810_ACEOF
22811rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22812if { (ac_try="$ac_link"
22813case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22816esac
22817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_link") 2>conftest.er1
d9898ee8 22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest$ac_exeext &&
22828 $as_test_x conftest$ac_exeext; then
d9898ee8 22829 ac_cv_func_ldap_parse_result=yes
22830else
22831 echo "$as_me: failed program was:" >&5
22832sed 's/^/| /' conftest.$ac_ext >&5
22833
64ff59ba 22834 ac_cv_func_ldap_parse_result=no
d9898ee8 22835fi
64ff59ba 22836
22837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22838 conftest$ac_exeext conftest.$ac_ext
22839fi
64ff59ba 22840{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5
22841echo "${ECHO_T}$ac_cv_func_ldap_parse_result" >&6; }
d9898ee8 22842if test $ac_cv_func_ldap_parse_result = yes; then
22843 HAVE_LDAP_PARSE_RESULT=1
22844else
22845 HAVE_LDAP_PARSE_RESULT=0
22846fi
22847
22848 LIBS="$saveLIBS"
22849fi
22850
22851
64ff59ba 22852# Check whether --with-authldaprc was given.
d9898ee8 22853if test "${with_authldaprc+set}" = set; then
64ff59ba 22854 withval=$with_authldaprc; authldaprc="$withval"
d9898ee8 22855else
22856 authldaprc="$pkgconfdir/authldaprc"
64ff59ba 22857fi
22858
d9898ee8 22859
22860
22861LIBAUTHLDAP=""
22862if test "$HAVE_LDAP" = 1
22863then
22864 LIBAUTHLDAP="libauthldap.la"
22865else
22866 authldaprc=""
22867fi
22868
22869
22870
64ff59ba 22871 if test "$HAVE_LDAP" = 1; then
d9898ee8 22872 HAVE_LDAP_TRUE=
22873 HAVE_LDAP_FALSE='#'
22874else
22875 HAVE_LDAP_TRUE='#'
22876 HAVE_LDAP_FALSE=
22877fi
22878
22879
22880cat >>confdefs.h <<_ACEOF
22881#define HAVE_LDAP_TLS $HAVE_LDAP_TLS
22882_ACEOF
22883
22884
22885cat >>confdefs.h <<_ACEOF
22886#define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
22887_ACEOF
22888
22889
22890cat >>confdefs.h <<_ACEOF
22891#define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
22892_ACEOF
22893
22894
22895
22896
22897
64ff59ba 22898# Check whether --with-authpwd was given.
d9898ee8 22899if test "${with_authpwd+set}" = set; then
64ff59ba 22900 withval=$with_authpwd; doauthpwd="$withval"
d9898ee8 22901else
22902 doauthpwd="yes"
22903 test "$HAVE_PAM" = 1 && doauthpwd="no"
22904 test "$HAVE_LDAP" = 1 && doauthpwd="no"
22905
64ff59ba 22906fi
22907
d9898ee8 22908
22909HAVE_PWD=1
22910if test "$doauthpwd" = "no"
22911then
22912 HAVE_PWD=0
22913fi
22914
22915for ac_func in endpwent
22916do
22917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 22918{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22922else
22923 cat >conftest.$ac_ext <<_ACEOF
22924/* confdefs.h. */
22925_ACEOF
22926cat confdefs.h >>conftest.$ac_ext
22927cat >>conftest.$ac_ext <<_ACEOF
22928/* end confdefs.h. */
22929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22931#define $ac_func innocuous_$ac_func
22932
22933/* System header to define __stub macros and hopefully few prototypes,
22934 which can conflict with char $ac_func (); below.
22935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22936 <limits.h> exists even on freestanding compilers. */
22937
22938#ifdef __STDC__
22939# include <limits.h>
22940#else
22941# include <assert.h>
22942#endif
22943
22944#undef $ac_func
22945
64ff59ba 22946/* Override any GCC internal prototype to avoid an error.
22947 Use char because int might match the return type of a GCC
22948 builtin and then its argument prototype would still apply. */
d9898ee8 22949#ifdef __cplusplus
22950extern "C"
d9898ee8 22951#endif
d9898ee8 22952char $ac_func ();
22953/* The GNU C library defines this for functions which it implements
22954 to always fail with ENOSYS. Some functions are actually named
22955 something starting with __ and the normal name is an alias. */
64ff59ba 22956#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 22957choke me
d9898ee8 22958#endif
22959
22960int
22961main ()
22962{
64ff59ba 22963return $ac_func ();
d9898ee8 22964 ;
22965 return 0;
22966}
22967_ACEOF
22968rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22969if { (ac_try="$ac_link"
22970case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22973esac
22974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_link") 2>conftest.er1
d9898ee8 22976 ac_status=$?
22977 grep -v '^ *+' conftest.er1 >conftest.err
22978 rm -f conftest.er1
22979 cat conftest.err >&5
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22981 (exit $ac_status); } && {
22982 test -z "$ac_c_werror_flag" ||
22983 test ! -s conftest.err
22984 } && test -s conftest$ac_exeext &&
22985 $as_test_x conftest$ac_exeext; then
d9898ee8 22986 eval "$as_ac_var=yes"
22987else
22988 echo "$as_me: failed program was:" >&5
22989sed 's/^/| /' conftest.$ac_ext >&5
22990
64ff59ba 22991 eval "$as_ac_var=no"
d9898ee8 22992fi
64ff59ba 22993
22994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22995 conftest$ac_exeext conftest.$ac_ext
22996fi
64ff59ba 22997ac_res=`eval echo '${'$as_ac_var'}'`
22998 { echo "$as_me:$LINENO: result: $ac_res" >&5
22999echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 23000if test `eval echo '${'$as_ac_var'}'` = yes; then
23001 cat >>confdefs.h <<_ACEOF
23002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23003_ACEOF
23004
23005fi
23006done
23007
23008
23009
23010
23011
23012
64ff59ba 23013# Check whether --with-authshadow was given.
d9898ee8 23014if test "${with_authshadow+set}" = set; then
64ff59ba 23015 withval=$with_authshadow; doauthshadow="$withval"
d9898ee8 23016else
23017 doauthshadow="yes"
23018 test "$HAVE_PAM" = 1 && doauthshadow="no"
23019 test "$HAVE_LDAP" = 1 && doauthshadow="no"
64ff59ba 23020fi
23021
d9898ee8 23022
23023
23024for ac_header in shadow.h
23025do
23026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 23027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23032fi
64ff59ba 23033ac_res=`eval echo '${'$as_ac_Header'}'`
23034 { echo "$as_me:$LINENO: result: $ac_res" >&5
23035echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 23036else
23037 # Is the header compilable?
64ff59ba 23038{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23039echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 23040cat >conftest.$ac_ext <<_ACEOF
23041/* confdefs.h. */
23042_ACEOF
23043cat confdefs.h >>conftest.$ac_ext
23044cat >>conftest.$ac_ext <<_ACEOF
23045/* end confdefs.h. */
23046$ac_includes_default
23047#include <$ac_header>
23048_ACEOF
23049rm -f conftest.$ac_objext
64ff59ba 23050if { (ac_try="$ac_compile"
23051case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23054esac
23055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_compile") 2>conftest.er1
d9898ee8 23057 ac_status=$?
23058 grep -v '^ *+' conftest.er1 >conftest.err
23059 rm -f conftest.er1
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest.$ac_objext; then
d9898ee8 23066 ac_header_compiler=yes
23067else
23068 echo "$as_me: failed program was:" >&5
23069sed 's/^/| /' conftest.$ac_ext >&5
23070
64ff59ba 23071 ac_header_compiler=no
d9898ee8 23072fi
64ff59ba 23073
23074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23076echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 23077
23078# Is the header present?
64ff59ba 23079{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 23081cat >conftest.$ac_ext <<_ACEOF
23082/* confdefs.h. */
23083_ACEOF
23084cat confdefs.h >>conftest.$ac_ext
23085cat >>conftest.$ac_ext <<_ACEOF
23086/* end confdefs.h. */
23087#include <$ac_header>
23088_ACEOF
64ff59ba 23089if { (ac_try="$ac_cpp conftest.$ac_ext"
23090case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23093esac
23094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 23096 ac_status=$?
23097 grep -v '^ *+' conftest.er1 >conftest.err
23098 rm -f conftest.er1
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23101 (exit $ac_status); } >/dev/null && {
23102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23103 test ! -s conftest.err
23104 }; then
d9898ee8 23105 ac_header_preproc=yes
23106else
23107 echo "$as_me: failed program was:" >&5
23108sed 's/^/| /' conftest.$ac_ext >&5
23109
23110 ac_header_preproc=no
23111fi
64ff59ba 23112
d9898ee8 23113rm -f conftest.err conftest.$ac_ext
64ff59ba 23114{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23115echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 23116
23117# So? What about this header?
23118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23119 yes:no: )
23120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23124 ac_header_preproc=yes
23125 ;;
23126 no:yes:* )
23127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23130echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23134echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 23139 ( cat <<\_ASBOX
0fde1ce3 23140## ------------------------------------------------- ##
23141## Report this to courier-imap@lists.sourceforge.net ##
23142## ------------------------------------------------- ##
d9898ee8 23143_ASBOX
64ff59ba 23144 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 23145 ;;
23146esac
64ff59ba 23147{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23151else
23152 eval "$as_ac_Header=\$ac_header_preproc"
23153fi
64ff59ba 23154ac_res=`eval echo '${'$as_ac_Header'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 23157
23158fi
23159if test `eval echo '${'$as_ac_Header'}'` = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23162_ACEOF
23163
23164fi
23165
23166done
23167
23168saveLIBS="$LIBS"
23169SHADOWLIBS=""
64ff59ba 23170{ echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23171echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
d9898ee8 23172if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23174else
23175 ac_check_lib_save_LIBS=$LIBS
23176LIBS="-lshadow $LIBS"
23177cat >conftest.$ac_ext <<_ACEOF
23178/* confdefs.h. */
23179_ACEOF
23180cat confdefs.h >>conftest.$ac_ext
23181cat >>conftest.$ac_ext <<_ACEOF
23182/* end confdefs.h. */
23183
64ff59ba 23184/* Override any GCC internal prototype to avoid an error.
23185 Use char because int might match the return type of a GCC
23186 builtin and then its argument prototype would still apply. */
d9898ee8 23187#ifdef __cplusplus
23188extern "C"
23189#endif
d9898ee8 23190char getspent ();
23191int
23192main ()
23193{
64ff59ba 23194return getspent ();
d9898ee8 23195 ;
23196 return 0;
23197}
23198_ACEOF
23199rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23200if { (ac_try="$ac_link"
23201case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23204esac
23205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_link") 2>conftest.er1
d9898ee8 23207 ac_status=$?
23208 grep -v '^ *+' conftest.er1 >conftest.err
23209 rm -f conftest.er1
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest$ac_exeext &&
23216 $as_test_x conftest$ac_exeext; then
d9898ee8 23217 ac_cv_lib_shadow_getspent=yes
23218else
23219 echo "$as_me: failed program was:" >&5
23220sed 's/^/| /' conftest.$ac_ext >&5
23221
64ff59ba 23222 ac_cv_lib_shadow_getspent=no
d9898ee8 23223fi
64ff59ba 23224
23225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23226 conftest$ac_exeext conftest.$ac_ext
23227LIBS=$ac_check_lib_save_LIBS
23228fi
64ff59ba 23229{ echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23230echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
d9898ee8 23231if test $ac_cv_lib_shadow_getspent = yes; then
23232 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
23233fi
23234
23235
23236
23237for ac_func in endspent getspent
23238do
23239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 23240{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23242if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 23243 echo $ECHO_N "(cached) $ECHO_C" >&6
23244else
23245 cat >conftest.$ac_ext <<_ACEOF
23246/* confdefs.h. */
23247_ACEOF
23248cat confdefs.h >>conftest.$ac_ext
23249cat >>conftest.$ac_ext <<_ACEOF
23250/* end confdefs.h. */
23251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23253#define $ac_func innocuous_$ac_func
23254
23255/* System header to define __stub macros and hopefully few prototypes,
23256 which can conflict with char $ac_func (); below.
23257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23258 <limits.h> exists even on freestanding compilers. */
23259
23260#ifdef __STDC__
23261# include <limits.h>
23262#else
23263# include <assert.h>
23264#endif
23265
23266#undef $ac_func
23267
64ff59ba 23268/* Override any GCC internal prototype to avoid an error.
23269 Use char because int might match the return type of a GCC
23270 builtin and then its argument prototype would still apply. */
d9898ee8 23271#ifdef __cplusplus
23272extern "C"
d9898ee8 23273#endif
d9898ee8 23274char $ac_func ();
23275/* The GNU C library defines this for functions which it implements
23276 to always fail with ENOSYS. Some functions are actually named
23277 something starting with __ and the normal name is an alias. */
64ff59ba 23278#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 23279choke me
d9898ee8 23280#endif
23281
23282int
23283main ()
23284{
64ff59ba 23285return $ac_func ();
d9898ee8 23286 ;
23287 return 0;
23288}
23289_ACEOF
23290rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23291if { (ac_try="$ac_link"
23292case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23295esac
23296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_link") 2>conftest.er1
d9898ee8 23298 ac_status=$?
23299 grep -v '^ *+' conftest.er1 >conftest.err
23300 rm -f conftest.er1
23301 cat conftest.err >&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23303 (exit $ac_status); } && {
23304 test -z "$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23306 } && test -s conftest$ac_exeext &&
23307 $as_test_x conftest$ac_exeext; then
d9898ee8 23308 eval "$as_ac_var=yes"
23309else
23310 echo "$as_me: failed program was:" >&5
23311sed 's/^/| /' conftest.$ac_ext >&5
23312
64ff59ba 23313 eval "$as_ac_var=no"
d9898ee8 23314fi
64ff59ba 23315
23316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23317 conftest$ac_exeext conftest.$ac_ext
23318fi
64ff59ba 23319ac_res=`eval echo '${'$as_ac_var'}'`
23320 { echo "$as_me:$LINENO: result: $ac_res" >&5
23321echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 23322if test `eval echo '${'$as_ac_var'}'` = yes; then
23323 cat >>confdefs.h <<_ACEOF
23324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23325_ACEOF
23326
23327fi
23328done
23329
23330LIBS="$saveLIBS"
23331
23332if test "$doauthshadow" = "no"
23333then
23334 HAVE_SHADOW=0
23335else
23336
23337 saveLIBS="$LIBS"
23338
64ff59ba 23339{ echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23340echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
d9898ee8 23341if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23342 echo $ECHO_N "(cached) $ECHO_C" >&6
23343else
23344 ac_check_lib_save_LIBS=$LIBS
23345LIBS="-lshadow $LIBS"
23346cat >conftest.$ac_ext <<_ACEOF
23347/* confdefs.h. */
23348_ACEOF
23349cat confdefs.h >>conftest.$ac_ext
23350cat >>conftest.$ac_ext <<_ACEOF
23351/* end confdefs.h. */
23352
64ff59ba 23353/* Override any GCC internal prototype to avoid an error.
23354 Use char because int might match the return type of a GCC
23355 builtin and then its argument prototype would still apply. */
d9898ee8 23356#ifdef __cplusplus
23357extern "C"
23358#endif
d9898ee8 23359char getspent ();
23360int
23361main ()
23362{
64ff59ba 23363return getspent ();
d9898ee8 23364 ;
23365 return 0;
23366}
23367_ACEOF
23368rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23369if { (ac_try="$ac_link"
23370case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23373esac
23374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_link") 2>conftest.er1
d9898ee8 23376 ac_status=$?
23377 grep -v '^ *+' conftest.er1 >conftest.err
23378 rm -f conftest.er1
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23381 (exit $ac_status); } && {
23382 test -z "$ac_c_werror_flag" ||
23383 test ! -s conftest.err
23384 } && test -s conftest$ac_exeext &&
23385 $as_test_x conftest$ac_exeext; then
d9898ee8 23386 ac_cv_lib_shadow_getspent=yes
23387else
23388 echo "$as_me: failed program was:" >&5
23389sed 's/^/| /' conftest.$ac_ext >&5
23390
64ff59ba 23391 ac_cv_lib_shadow_getspent=no
d9898ee8 23392fi
64ff59ba 23393
23394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23395 conftest$ac_exeext conftest.$ac_ext
23396LIBS=$ac_check_lib_save_LIBS
23397fi
64ff59ba 23398{ echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23399echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
d9898ee8 23400if test $ac_cv_lib_shadow_getspent = yes; then
23401 cat >>confdefs.h <<_ACEOF
23402#define HAVE_LIBSHADOW 1
23403_ACEOF
23404
23405 LIBS="-lshadow $LIBS"
23406
23407fi
23408
64ff59ba 23409 { echo "$as_me:$LINENO: checking for getspent" >&5
23410echo $ECHO_N "checking for getspent... $ECHO_C" >&6; }
d9898ee8 23411if test "${ac_cv_func_getspent+set}" = set; then
23412 echo $ECHO_N "(cached) $ECHO_C" >&6
23413else
23414 cat >conftest.$ac_ext <<_ACEOF
23415/* confdefs.h. */
23416_ACEOF
23417cat confdefs.h >>conftest.$ac_ext
23418cat >>conftest.$ac_ext <<_ACEOF
23419/* end confdefs.h. */
23420/* Define getspent to an innocuous variant, in case <limits.h> declares getspent.
23421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23422#define getspent innocuous_getspent
23423
23424/* System header to define __stub macros and hopefully few prototypes,
23425 which can conflict with char getspent (); below.
23426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23427 <limits.h> exists even on freestanding compilers. */
23428
23429#ifdef __STDC__
23430# include <limits.h>
23431#else
23432# include <assert.h>
23433#endif
23434
23435#undef getspent
23436
64ff59ba 23437/* Override any GCC internal prototype to avoid an error.
23438 Use char because int might match the return type of a GCC
23439 builtin and then its argument prototype would still apply. */
d9898ee8 23440#ifdef __cplusplus
23441extern "C"
d9898ee8 23442#endif
d9898ee8 23443char getspent ();
23444/* The GNU C library defines this for functions which it implements
23445 to always fail with ENOSYS. Some functions are actually named
23446 something starting with __ and the normal name is an alias. */
64ff59ba 23447#if defined __stub_getspent || defined __stub___getspent
d9898ee8 23448choke me
d9898ee8 23449#endif
23450
23451int
23452main ()
23453{
64ff59ba 23454return getspent ();
d9898ee8 23455 ;
23456 return 0;
23457}
23458_ACEOF
23459rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23460if { (ac_try="$ac_link"
23461case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23464esac
23465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23466 (eval "$ac_link") 2>conftest.er1
d9898ee8 23467 ac_status=$?
23468 grep -v '^ *+' conftest.er1 >conftest.err
23469 rm -f conftest.er1
23470 cat conftest.err >&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23472 (exit $ac_status); } && {
23473 test -z "$ac_c_werror_flag" ||
23474 test ! -s conftest.err
23475 } && test -s conftest$ac_exeext &&
23476 $as_test_x conftest$ac_exeext; then
d9898ee8 23477 ac_cv_func_getspent=yes
23478else
23479 echo "$as_me: failed program was:" >&5
23480sed 's/^/| /' conftest.$ac_ext >&5
23481
64ff59ba 23482 ac_cv_func_getspent=no
d9898ee8 23483fi
64ff59ba 23484
23485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23486 conftest$ac_exeext conftest.$ac_ext
23487fi
64ff59ba 23488{ echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5
23489echo "${ECHO_T}$ac_cv_func_getspent" >&6; }
d9898ee8 23490if test $ac_cv_func_getspent = yes; then
23491 HAVE_SHADOW=1
23492else
23493 HAVE_SHADOW=0
23494fi
23495
23496 LIBS="$saveLIBS"
23497fi
23498
23499LIBAUTHSHADOW=""
23500if test "$HAVE_SHADOW" = 1
23501then
23502 LIBAUTHSHADOW="libauthshadow.la"
23503fi
23504
23505
23506
23507LIBAUTHPWD=""
23508if test "$HAVE_PWD" = 1
23509then
23510 LIBAUTHPWD="libauthpwd.la"
23511fi
23512
23513
23514
23515
23516
23517
64ff59ba 23518# Check whether --with-authpgsqlrc was given.
d9898ee8 23519if test "${with_authpgsqlrc+set}" = set; then
64ff59ba 23520 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
d9898ee8 23521else
23522 authpgsqlrc="$pkgconfdir/authpgsqlrc"
64ff59ba 23523fi
d9898ee8 23524
23525
23526
64ff59ba 23527
23528# Check whether --with-authpgsql was given.
d9898ee8 23529if test "${with_authpgsql+set}" = set; then
64ff59ba 23530 withval=$with_authpgsql; doauthpgsql="$withval"
23531fi
23532
d9898ee8 23533
23534for ac_prog in pg_config
23535do
23536 # Extract the first word of "$ac_prog", so it can be a program name with args.
23537set dummy $ac_prog; ac_word=$2
64ff59ba 23538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 23540if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23541 echo $ECHO_N "(cached) $ECHO_C" >&6
23542else
23543 case $PG_CONFIG in
23544 [\\/]* | ?:[\\/]*)
23545 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23546 ;;
23547 *)
23548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23549for as_dir in $LPATH
23550do
23551 IFS=$as_save_IFS
23552 test -z "$as_dir" && as_dir=.
23553 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 23554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 23555 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23557 break 2
23558 fi
23559done
23560done
64ff59ba 23561IFS=$as_save_IFS
d9898ee8 23562
23563 ;;
23564esac
23565fi
23566PG_CONFIG=$ac_cv_path_PG_CONFIG
d9898ee8 23567if test -n "$PG_CONFIG"; then
64ff59ba 23568 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23569echo "${ECHO_T}$PG_CONFIG" >&6; }
d9898ee8 23570else
64ff59ba 23571 { echo "$as_me:$LINENO: result: no" >&5
23572echo "${ECHO_T}no" >&6; }
d9898ee8 23573fi
23574
64ff59ba 23575
d9898ee8 23576 test -n "$PG_CONFIG" && break
23577done
23578test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
23579
23580
23581PGSQL_LIBS="-lpq"
23582
64ff59ba 23583# Check whether --with-pgsql-libs was given.
d9898ee8 23584if test "${with_pgsql_libs+set}" = set; then
64ff59ba 23585 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
d9898ee8 23586else
23587 if test -x $PG_CONFIG
23588 then
23589 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
23590 fi
23591
64ff59ba 23592fi
23593
d9898ee8 23594
64ff59ba 23595# Check whether --with-pgsql-includes was given.
d9898ee8 23596if test "${with_pgsql_includes+set}" = set; then
64ff59ba 23597 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
d9898ee8 23598else
23599 if test -x $PG_CONFIG
23600 then
23601 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
23602 fi
23603
64ff59ba 23604fi
23605
d9898ee8 23606
23607if test "$doauthpgsql" = ""
23608then
23609 LIBS="$PGSQL_LIBS $LIBS"
64ff59ba 23610 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23611echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
d9898ee8 23612if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23614else
23615 cat >conftest.$ac_ext <<_ACEOF
23616/* confdefs.h. */
23617_ACEOF
23618cat confdefs.h >>conftest.$ac_ext
23619cat >>conftest.$ac_ext <<_ACEOF
23620/* end confdefs.h. */
23621/* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23623#define PQsetdbLogin innocuous_PQsetdbLogin
23624
23625/* System header to define __stub macros and hopefully few prototypes,
23626 which can conflict with char PQsetdbLogin (); below.
23627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23628 <limits.h> exists even on freestanding compilers. */
23629
23630#ifdef __STDC__
23631# include <limits.h>
23632#else
23633# include <assert.h>
23634#endif
23635
23636#undef PQsetdbLogin
23637
64ff59ba 23638/* Override any GCC internal prototype to avoid an error.
23639 Use char because int might match the return type of a GCC
23640 builtin and then its argument prototype would still apply. */
d9898ee8 23641#ifdef __cplusplus
23642extern "C"
d9898ee8 23643#endif
d9898ee8 23644char PQsetdbLogin ();
23645/* The GNU C library defines this for functions which it implements
23646 to always fail with ENOSYS. Some functions are actually named
23647 something starting with __ and the normal name is an alias. */
64ff59ba 23648#if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
d9898ee8 23649choke me
d9898ee8 23650#endif
23651
23652int
23653main ()
23654{
64ff59ba 23655return PQsetdbLogin ();
d9898ee8 23656 ;
23657 return 0;
23658}
23659_ACEOF
23660rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23661if { (ac_try="$ac_link"
23662case "(($ac_try" in
23663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664 *) ac_try_echo=$ac_try;;
23665esac
23666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667 (eval "$ac_link") 2>conftest.er1
d9898ee8 23668 ac_status=$?
23669 grep -v '^ *+' conftest.er1 >conftest.err
23670 rm -f conftest.er1
23671 cat conftest.err >&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23673 (exit $ac_status); } && {
23674 test -z "$ac_c_werror_flag" ||
23675 test ! -s conftest.err
23676 } && test -s conftest$ac_exeext &&
23677 $as_test_x conftest$ac_exeext; then
d9898ee8 23678 ac_cv_func_PQsetdbLogin=yes
23679else
23680 echo "$as_me: failed program was:" >&5
23681sed 's/^/| /' conftest.$ac_ext >&5
23682
64ff59ba 23683 ac_cv_func_PQsetdbLogin=no
d9898ee8 23684fi
64ff59ba 23685
23686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23687 conftest$ac_exeext conftest.$ac_ext
23688fi
64ff59ba 23689{ echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23690echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
d9898ee8 23691if test $ac_cv_func_PQsetdbLogin = yes; then
23692 doauthpgsql="yes"
23693
23694fi
23695
23696 LIBS="$saveLIBS"
23697fi
23698
23699if test "$doauthpgsql" != "yes"
23700then
23701 LIBAUTHPGSQL=""
23702 HAVE_AUTHPGSQL=0
23703else
23704 saveLIBS="$LIBS"
23705 LIBS="$PGSQL_LIBS $LIBS"
64ff59ba 23706 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23707echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
d9898ee8 23708if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23710else
23711 cat >conftest.$ac_ext <<_ACEOF
23712/* confdefs.h. */
23713_ACEOF
23714cat confdefs.h >>conftest.$ac_ext
23715cat >>conftest.$ac_ext <<_ACEOF
23716/* end confdefs.h. */
23717/* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23719#define PQsetdbLogin innocuous_PQsetdbLogin
23720
23721/* System header to define __stub macros and hopefully few prototypes,
23722 which can conflict with char PQsetdbLogin (); below.
23723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23724 <limits.h> exists even on freestanding compilers. */
23725
23726#ifdef __STDC__
23727# include <limits.h>
23728#else
23729# include <assert.h>
23730#endif
23731
23732#undef PQsetdbLogin
23733
64ff59ba 23734/* Override any GCC internal prototype to avoid an error.
23735 Use char because int might match the return type of a GCC
23736 builtin and then its argument prototype would still apply. */
d9898ee8 23737#ifdef __cplusplus
23738extern "C"
d9898ee8 23739#endif
d9898ee8 23740char PQsetdbLogin ();
23741/* The GNU C library defines this for functions which it implements
23742 to always fail with ENOSYS. Some functions are actually named
23743 something starting with __ and the normal name is an alias. */
64ff59ba 23744#if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
d9898ee8 23745choke me
d9898ee8 23746#endif
23747
23748int
23749main ()
23750{
64ff59ba 23751return PQsetdbLogin ();
d9898ee8 23752 ;
23753 return 0;
23754}
23755_ACEOF
23756rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23757if { (ac_try="$ac_link"
23758case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761esac
23762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_link") 2>conftest.er1
d9898ee8 23764 ac_status=$?
23765 grep -v '^ *+' conftest.er1 >conftest.err
23766 rm -f conftest.er1
23767 cat conftest.err >&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23769 (exit $ac_status); } && {
23770 test -z "$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 } && test -s conftest$ac_exeext &&
23773 $as_test_x conftest$ac_exeext; then
d9898ee8 23774 ac_cv_func_PQsetdbLogin=yes
23775else
23776 echo "$as_me: failed program was:" >&5
23777sed 's/^/| /' conftest.$ac_ext >&5
23778
64ff59ba 23779 ac_cv_func_PQsetdbLogin=no
d9898ee8 23780fi
64ff59ba 23781
23782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23783 conftest$ac_exeext conftest.$ac_ext
23784fi
64ff59ba 23785{ echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23786echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
d9898ee8 23787if test $ac_cv_func_PQsetdbLogin = yes; then
23788 AUTHPGSQL="authpgsql"
23789 HAVE_AUTHPGSQL=1
23790else
23791 { { echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5
23792echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;}
23793 { (exit 1); exit 1; }; }
23794fi
23795
23796 LIBS="$saveLIBS"
23797 HAVE_AUTHPGSQL=1
23798 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
23799 LIBAUTHPGSQL="libauthpgsql.la"
23800fi
23801
23802
23803
64ff59ba 23804 if test "$HAVE_AUTHPGSQL" = 1; then
d9898ee8 23805 HAVE_AUTHPGSQL_TRUE=
23806 HAVE_AUTHPGSQL_FALSE='#'
23807else
23808 HAVE_AUTHPGSQL_TRUE='#'
23809 HAVE_AUTHPGSQL_FALSE=
23810fi
23811
23812
23813
23814
23815
23816
64ff59ba 23817# Check whether --with-authmysqlrc was given.
d9898ee8 23818if test "${with_authmysqlrc+set}" = set; then
64ff59ba 23819 withval=$with_authmysqlrc; authmysqlrc="$withval"
d9898ee8 23820else
23821 authmysqlrc="$pkgconfdir/authmysqlrc"
64ff59ba 23822fi
23823
d9898ee8 23824
23825
23826
64ff59ba 23827# Check whether --with-authmysql was given.
d9898ee8 23828if test "${with_authmysql+set}" = set; then
64ff59ba 23829 withval=$with_authmysql; doauthmysql="$withval"
23830fi
23831
d9898ee8 23832
64ff59ba 23833# Check whether --with-mysql-libs was given.
d9898ee8 23834if test "${with_mysql_libs+set}" = set; then
64ff59ba 23835 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
23836
23837fi
d9898ee8 23838
d9898ee8 23839
64ff59ba 23840# Check whether --with-mysql-includes was given.
d9898ee8 23841if test "${with_mysql_includes+set}" = set; then
64ff59ba 23842 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
23843
23844fi
d9898ee8 23845
d9898ee8 23846
23847for ac_prog in mysql_config
23848do
23849 # Extract the first word of "$ac_prog", so it can be a program name with args.
23850set dummy $ac_prog; ac_word=$2
64ff59ba 23851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 23853if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23855else
23856 case $MYSQL_CONFIG in
23857 [\\/]* | ?:[\\/]*)
23858 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
23859 ;;
23860 *)
23861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23862for as_dir in $LPATH
23863do
23864 IFS=$as_save_IFS
23865 test -z "$as_dir" && as_dir=.
23866 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 23867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 23868 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23870 break 2
23871 fi
23872done
23873done
64ff59ba 23874IFS=$as_save_IFS
d9898ee8 23875
23876 ;;
23877esac
23878fi
23879MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
d9898ee8 23880if test -n "$MYSQL_CONFIG"; then
64ff59ba 23881 { echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
23882echo "${ECHO_T}$MYSQL_CONFIG" >&6; }
d9898ee8 23883else
64ff59ba 23884 { echo "$as_me:$LINENO: result: no" >&5
23885echo "${ECHO_T}no" >&6; }
d9898ee8 23886fi
23887
64ff59ba 23888
d9898ee8 23889 test -n "$MYSQL_CONFIG" && break
23890done
23891test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
23892
23893
23894if test -x "$MYSQL_CONFIG"
23895then
23896 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
23897 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
23898
23899 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
23900 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
23901fi
23902
23903if test "$doauthmysql" = ""
23904then
23905 LIBS="$MYSQL_LIBS $LIBS"
64ff59ba 23906 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
23907echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
d9898ee8 23908if test "${ac_cv_func_mysql_connect+set}" = set; then
23909 echo $ECHO_N "(cached) $ECHO_C" >&6
23910else
23911 cat >conftest.$ac_ext <<_ACEOF
23912/* confdefs.h. */
23913_ACEOF
23914cat confdefs.h >>conftest.$ac_ext
23915cat >>conftest.$ac_ext <<_ACEOF
23916/* end confdefs.h. */
23917/* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
23918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23919#define mysql_connect innocuous_mysql_connect
23920
23921/* System header to define __stub macros and hopefully few prototypes,
23922 which can conflict with char mysql_connect (); below.
23923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23924 <limits.h> exists even on freestanding compilers. */
23925
23926#ifdef __STDC__
23927# include <limits.h>
23928#else
23929# include <assert.h>
23930#endif
23931
23932#undef mysql_connect
23933
64ff59ba 23934/* Override any GCC internal prototype to avoid an error.
23935 Use char because int might match the return type of a GCC
23936 builtin and then its argument prototype would still apply. */
d9898ee8 23937#ifdef __cplusplus
23938extern "C"
d9898ee8 23939#endif
d9898ee8 23940char mysql_connect ();
23941/* The GNU C library defines this for functions which it implements
23942 to always fail with ENOSYS. Some functions are actually named
23943 something starting with __ and the normal name is an alias. */
64ff59ba 23944#if defined __stub_mysql_connect || defined __stub___mysql_connect
d9898ee8 23945choke me
d9898ee8 23946#endif
23947
23948int
23949main ()
23950{
64ff59ba 23951return mysql_connect ();
d9898ee8 23952 ;
23953 return 0;
23954}
23955_ACEOF
23956rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23957if { (ac_try="$ac_link"
23958case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23961esac
23962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_link") 2>conftest.er1
d9898ee8 23964 ac_status=$?
23965 grep -v '^ *+' conftest.er1 >conftest.err
23966 rm -f conftest.er1
23967 cat conftest.err >&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23969 (exit $ac_status); } && {
23970 test -z "$ac_c_werror_flag" ||
23971 test ! -s conftest.err
23972 } && test -s conftest$ac_exeext &&
23973 $as_test_x conftest$ac_exeext; then
d9898ee8 23974 ac_cv_func_mysql_connect=yes
23975else
23976 echo "$as_me: failed program was:" >&5
23977sed 's/^/| /' conftest.$ac_ext >&5
23978
64ff59ba 23979 ac_cv_func_mysql_connect=no
d9898ee8 23980fi
64ff59ba 23981
23982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23983 conftest$ac_exeext conftest.$ac_ext
23984fi
64ff59ba 23985{ echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
23986echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
d9898ee8 23987if test $ac_cv_func_mysql_connect = yes; then
23988 doauthmysql="yes"
23989
23990fi
23991
64ff59ba 23992 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
23993echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
d9898ee8 23994if test "${ac_cv_func_mysql_real_connect+set}" = set; then
23995 echo $ECHO_N "(cached) $ECHO_C" >&6
23996else
23997 cat >conftest.$ac_ext <<_ACEOF
23998/* confdefs.h. */
23999_ACEOF
24000cat confdefs.h >>conftest.$ac_ext
24001cat >>conftest.$ac_ext <<_ACEOF
24002/* end confdefs.h. */
24003/* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24005#define mysql_real_connect innocuous_mysql_real_connect
24006
24007/* System header to define __stub macros and hopefully few prototypes,
24008 which can conflict with char mysql_real_connect (); below.
24009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24010 <limits.h> exists even on freestanding compilers. */
24011
24012#ifdef __STDC__
24013# include <limits.h>
24014#else
24015# include <assert.h>
24016#endif
24017
24018#undef mysql_real_connect
24019
64ff59ba 24020/* Override any GCC internal prototype to avoid an error.
24021 Use char because int might match the return type of a GCC
24022 builtin and then its argument prototype would still apply. */
d9898ee8 24023#ifdef __cplusplus
24024extern "C"
d9898ee8 24025#endif
d9898ee8 24026char mysql_real_connect ();
24027/* The GNU C library defines this for functions which it implements
24028 to always fail with ENOSYS. Some functions are actually named
24029 something starting with __ and the normal name is an alias. */
64ff59ba 24030#if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
d9898ee8 24031choke me
d9898ee8 24032#endif
24033
24034int
24035main ()
24036{
64ff59ba 24037return mysql_real_connect ();
d9898ee8 24038 ;
24039 return 0;
24040}
24041_ACEOF
24042rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 24043if { (ac_try="$ac_link"
24044case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24047esac
24048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_link") 2>conftest.er1
d9898ee8 24050 ac_status=$?
24051 grep -v '^ *+' conftest.er1 >conftest.err
24052 rm -f conftest.er1
24053 cat conftest.err >&5
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24055 (exit $ac_status); } && {
24056 test -z "$ac_c_werror_flag" ||
24057 test ! -s conftest.err
24058 } && test -s conftest$ac_exeext &&
24059 $as_test_x conftest$ac_exeext; then
d9898ee8 24060 ac_cv_func_mysql_real_connect=yes
24061else
24062 echo "$as_me: failed program was:" >&5
24063sed 's/^/| /' conftest.$ac_ext >&5
24064
64ff59ba 24065 ac_cv_func_mysql_real_connect=no
d9898ee8 24066fi
64ff59ba 24067
24068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 24069 conftest$ac_exeext conftest.$ac_ext
24070fi
64ff59ba 24071{ echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24072echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
d9898ee8 24073if test $ac_cv_func_mysql_real_connect = yes; then
24074 doauthmysql="yes"
24075
24076fi
24077
24078 LIBS="$saveLIBS"
24079fi
24080
24081if test "$doauthmysql" != "yes"
24082then
24083 LIBAUTHMYSQL=""
24084 HAVE_AUTHMYSQL=0
24085else
24086 saveLIBS="$LIBS"
24087 LIBS="$MYSQL_LIBS $LIBS"
64ff59ba 24088 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
24089echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
d9898ee8 24090if test "${ac_cv_func_mysql_connect+set}" = set; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24092else
24093 cat >conftest.$ac_ext <<_ACEOF
24094/* confdefs.h. */
24095_ACEOF
24096cat confdefs.h >>conftest.$ac_ext
24097cat >>conftest.$ac_ext <<_ACEOF
24098/* end confdefs.h. */
24099/* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
24100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24101#define mysql_connect innocuous_mysql_connect
24102
24103/* System header to define __stub macros and hopefully few prototypes,
24104 which can conflict with char mysql_connect (); below.
24105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24106 <limits.h> exists even on freestanding compilers. */
24107
24108#ifdef __STDC__
24109# include <limits.h>
24110#else
24111# include <assert.h>
24112#endif
24113
24114#undef mysql_connect
24115
64ff59ba 24116/* Override any GCC internal prototype to avoid an error.
24117 Use char because int might match the return type of a GCC
24118 builtin and then its argument prototype would still apply. */
d9898ee8 24119#ifdef __cplusplus
24120extern "C"
d9898ee8 24121#endif
d9898ee8 24122char mysql_connect ();
24123/* The GNU C library defines this for functions which it implements
24124 to always fail with ENOSYS. Some functions are actually named
24125 something starting with __ and the normal name is an alias. */
64ff59ba 24126#if defined __stub_mysql_connect || defined __stub___mysql_connect
d9898ee8 24127choke me
d9898ee8 24128#endif
24129
24130int
24131main ()
24132{
64ff59ba 24133return mysql_connect ();
d9898ee8 24134 ;
24135 return 0;
24136}
24137_ACEOF
24138rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 24139if { (ac_try="$ac_link"
24140case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24143esac
24144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_link") 2>conftest.er1
d9898ee8 24146 ac_status=$?
24147 grep -v '^ *+' conftest.er1 >conftest.err
24148 rm -f conftest.er1
24149 cat conftest.err >&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24151 (exit $ac_status); } && {
24152 test -z "$ac_c_werror_flag" ||
24153 test ! -s conftest.err
24154 } && test -s conftest$ac_exeext &&
24155 $as_test_x conftest$ac_exeext; then
d9898ee8 24156 ac_cv_func_mysql_connect=yes
24157else
24158 echo "$as_me: failed program was:" >&5
24159sed 's/^/| /' conftest.$ac_ext >&5
24160
64ff59ba 24161 ac_cv_func_mysql_connect=no
d9898ee8 24162fi
64ff59ba 24163
24164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 24165 conftest$ac_exeext conftest.$ac_ext
24166fi
64ff59ba 24167{ echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24168echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
d9898ee8 24169if test $ac_cv_func_mysql_connect = yes; then
24170 LIBAUTHMYSQL="libauthmysql.la"
24171 HAVE_AUTHMYSQL=1
24172else
24173
64ff59ba 24174 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24175echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
d9898ee8 24176if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24177 echo $ECHO_N "(cached) $ECHO_C" >&6
24178else
24179 cat >conftest.$ac_ext <<_ACEOF
24180/* confdefs.h. */
24181_ACEOF
24182cat confdefs.h >>conftest.$ac_ext
24183cat >>conftest.$ac_ext <<_ACEOF
24184/* end confdefs.h. */
24185/* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24187#define mysql_real_connect innocuous_mysql_real_connect
24188
24189/* System header to define __stub macros and hopefully few prototypes,
24190 which can conflict with char mysql_real_connect (); below.
24191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24192 <limits.h> exists even on freestanding compilers. */
24193
24194#ifdef __STDC__
24195# include <limits.h>
24196#else
24197# include <assert.h>
24198#endif
24199
24200#undef mysql_real_connect
24201
64ff59ba 24202/* Override any GCC internal prototype to avoid an error.
24203 Use char because int might match the return type of a GCC
24204 builtin and then its argument prototype would still apply. */
d9898ee8 24205#ifdef __cplusplus
24206extern "C"
d9898ee8 24207#endif
d9898ee8 24208char mysql_real_connect ();
24209/* The GNU C library defines this for functions which it implements
24210 to always fail with ENOSYS. Some functions are actually named
24211 something starting with __ and the normal name is an alias. */
64ff59ba 24212#if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
d9898ee8 24213choke me
d9898ee8 24214#endif
24215
24216int
24217main ()
24218{
64ff59ba 24219return mysql_real_connect ();
d9898ee8 24220 ;
24221 return 0;
24222}
24223_ACEOF
24224rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 24225if { (ac_try="$ac_link"
24226case "(($ac_try" in
24227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 *) ac_try_echo=$ac_try;;
24229esac
24230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 (eval "$ac_link") 2>conftest.er1
d9898ee8 24232 ac_status=$?
24233 grep -v '^ *+' conftest.er1 >conftest.err
24234 rm -f conftest.er1
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24237 (exit $ac_status); } && {
24238 test -z "$ac_c_werror_flag" ||
24239 test ! -s conftest.err
24240 } && test -s conftest$ac_exeext &&
24241 $as_test_x conftest$ac_exeext; then
d9898ee8 24242 ac_cv_func_mysql_real_connect=yes
24243else
24244 echo "$as_me: failed program was:" >&5
24245sed 's/^/| /' conftest.$ac_ext >&5
24246
64ff59ba 24247 ac_cv_func_mysql_real_connect=no
d9898ee8 24248fi
64ff59ba 24249
24250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 24251 conftest$ac_exeext conftest.$ac_ext
24252fi
64ff59ba 24253{ echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24254echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
d9898ee8 24255if test $ac_cv_func_mysql_real_connect = yes; then
24256 LIBAUTHMYSQL="libauthmysql.la"
24257 HAVE_AUTHMYSQL=1
24258else
24259 { { echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5
24260echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;}
24261 { (exit 1); exit 1; }; }
24262
24263fi
24264
24265
24266
24267fi
24268
24269 LIBS="$saveLIBS"
24270 HAVE_AUTHMYSQL=1
24271 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
24272fi
24273
24274
64ff59ba 24275 if test "$HAVE_AUTHMYSQL" = 1; then
d9898ee8 24276 HAVE_AUTHMYSQL_TRUE=
24277 HAVE_AUTHMYSQL_FALSE='#'
24278else
24279 HAVE_AUTHMYSQL_TRUE='#'
24280 HAVE_AUTHMYSQL_FALSE=
24281fi
24282
24283
24284
24285
24286
24287
24288
24289
64ff59ba 24290# Check whether --with-authcustom was given.
d9898ee8 24291if test "${with_authcustom+set}" = set; then
64ff59ba 24292 withval=$with_authcustom; doauthcustom="$withval"
d9898ee8 24293else
24294 doauthcustom=yes
64ff59ba 24295fi
24296
d9898ee8 24297
24298LIBAUTHCUSTOM=""
24299
24300if test "$doauthcustom" = "yes"
24301then
24302 LIBAUTHCUSTOM="libauthcustom.la"
24303fi
24304
64ff59ba 24305 if test "$AUTHCUSTOM" != ""; then
d9898ee8 24306 HAVE_CUSTOM_TRUE=
24307 HAVE_CUSTOM_FALSE='#'
24308else
24309 HAVE_CUSTOM_TRUE='#'
24310 HAVE_CUSTOM_FALSE=
24311fi
24312
24313
24314
24315
24316
24317
24318
24319
24320
64ff59ba 24321# Check whether --with-pipeprog was given.
d9898ee8 24322if test "${with_pipeprog+set}" = set; then
64ff59ba 24323 withval=$with_pipeprog; authProg="$withval"
d9898ee8 24324else
24325 authProg="$pkgconfdir/authProg"
64ff59ba 24326fi
d9898ee8 24327
24328
24329
64ff59ba 24330
24331# Check whether --with-authpipe was given.
d9898ee8 24332if test "${with_authpipe+set}" = set; then
64ff59ba 24333 withval=$with_authpipe; doauthpipe="$withval"
d9898ee8 24334else
24335 doauthpipe=yes
64ff59ba 24336fi
24337
d9898ee8 24338
24339LIBAUTHPIPE=""
24340
24341if test "$doauthpipe" = "yes"
24342then
24343 LIBAUTHPIPE="libauthpipe.la"
24344fi
24345
64ff59ba 24346 if test "$AUTHPIPE" != ""; then
d9898ee8 24347 HAVE_PIPE_TRUE=
24348 HAVE_PIPE_FALSE='#'
24349else
24350 HAVE_PIPE_TRUE='#'
24351 HAVE_PIPE_FALSE=
24352fi
24353
24354
24355
24356
24357
64ff59ba 24358{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24359echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 24360if test "${ac_cv_header_stdc+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24362else
24363 cat >conftest.$ac_ext <<_ACEOF
24364/* confdefs.h. */
24365_ACEOF
24366cat confdefs.h >>conftest.$ac_ext
24367cat >>conftest.$ac_ext <<_ACEOF
24368/* end confdefs.h. */
24369#include <stdlib.h>
24370#include <stdarg.h>
24371#include <string.h>
24372#include <float.h>
24373
24374int
24375main ()
24376{
24377
24378 ;
24379 return 0;
24380}
24381_ACEOF
24382rm -f conftest.$ac_objext
64ff59ba 24383if { (ac_try="$ac_compile"
24384case "(($ac_try" in
24385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386 *) ac_try_echo=$ac_try;;
24387esac
24388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24390 ac_status=$?
24391 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1
24393 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24395 (exit $ac_status); } && {
24396 test -z "$ac_c_werror_flag" ||
24397 test ! -s conftest.err
24398 } && test -s conftest.$ac_objext; then
d9898ee8 24399 ac_cv_header_stdc=yes
24400else
24401 echo "$as_me: failed program was:" >&5
24402sed 's/^/| /' conftest.$ac_ext >&5
24403
64ff59ba 24404 ac_cv_header_stdc=no
d9898ee8 24405fi
64ff59ba 24406
24407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 24408
24409if test $ac_cv_header_stdc = yes; then
24410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24411 cat >conftest.$ac_ext <<_ACEOF
24412/* confdefs.h. */
24413_ACEOF
24414cat confdefs.h >>conftest.$ac_ext
24415cat >>conftest.$ac_ext <<_ACEOF
24416/* end confdefs.h. */
24417#include <string.h>
24418
24419_ACEOF
24420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24421 $EGREP "memchr" >/dev/null 2>&1; then
24422 :
24423else
24424 ac_cv_header_stdc=no
24425fi
24426rm -f conftest*
24427
24428fi
24429
24430if test $ac_cv_header_stdc = yes; then
24431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24432 cat >conftest.$ac_ext <<_ACEOF
24433/* confdefs.h. */
24434_ACEOF
24435cat confdefs.h >>conftest.$ac_ext
24436cat >>conftest.$ac_ext <<_ACEOF
24437/* end confdefs.h. */
24438#include <stdlib.h>
24439
24440_ACEOF
24441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24442 $EGREP "free" >/dev/null 2>&1; then
24443 :
24444else
24445 ac_cv_header_stdc=no
24446fi
24447rm -f conftest*
24448
24449fi
24450
24451if test $ac_cv_header_stdc = yes; then
24452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24453 if test "$cross_compiling" = yes; then
24454 :
24455else
24456 cat >conftest.$ac_ext <<_ACEOF
24457/* confdefs.h. */
24458_ACEOF
24459cat confdefs.h >>conftest.$ac_ext
24460cat >>conftest.$ac_ext <<_ACEOF
24461/* end confdefs.h. */
24462#include <ctype.h>
64ff59ba 24463#include <stdlib.h>
d9898ee8 24464#if ((' ' & 0x0FF) == 0x020)
24465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24467#else
24468# define ISLOWER(c) \
24469 (('a' <= (c) && (c) <= 'i') \
24470 || ('j' <= (c) && (c) <= 'r') \
24471 || ('s' <= (c) && (c) <= 'z'))
24472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24473#endif
24474
24475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24476int
24477main ()
24478{
24479 int i;
24480 for (i = 0; i < 256; i++)
24481 if (XOR (islower (i), ISLOWER (i))
24482 || toupper (i) != TOUPPER (i))
64ff59ba 24483 return 2;
24484 return 0;
d9898ee8 24485}
24486_ACEOF
24487rm -f conftest$ac_exeext
64ff59ba 24488if { (ac_try="$ac_link"
24489case "(($ac_try" in
24490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24491 *) ac_try_echo=$ac_try;;
24492esac
24493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494 (eval "$ac_link") 2>&5
d9898ee8 24495 ac_status=$?
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 24498 { (case "(($ac_try" in
24499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500 *) ac_try_echo=$ac_try;;
24501esac
24502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503 (eval "$ac_try") 2>&5
d9898ee8 24504 ac_status=$?
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24507 :
24508else
24509 echo "$as_me: program exited with status $ac_status" >&5
24510echo "$as_me: failed program was:" >&5
24511sed 's/^/| /' conftest.$ac_ext >&5
24512
24513( exit $ac_status )
24514ac_cv_header_stdc=no
24515fi
64ff59ba 24516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 24517fi
64ff59ba 24518
24519
d9898ee8 24520fi
24521fi
64ff59ba 24522{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24523echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 24524if test $ac_cv_header_stdc = yes; then
24525
24526cat >>confdefs.h <<\_ACEOF
24527#define STDC_HEADERS 1
24528_ACEOF
24529
24530fi
24531
64ff59ba 24532{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24533echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
d9898ee8 24534if test "${ac_cv_header_sys_wait_h+set}" = set; then
24535 echo $ECHO_N "(cached) $ECHO_C" >&6
24536else
24537 cat >conftest.$ac_ext <<_ACEOF
24538/* confdefs.h. */
24539_ACEOF
24540cat confdefs.h >>conftest.$ac_ext
24541cat >>conftest.$ac_ext <<_ACEOF
24542/* end confdefs.h. */
24543#include <sys/types.h>
24544#include <sys/wait.h>
24545#ifndef WEXITSTATUS
64ff59ba 24546# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
d9898ee8 24547#endif
24548#ifndef WIFEXITED
24549# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24550#endif
24551
24552int
24553main ()
24554{
24555 int s;
24556 wait (&s);
24557 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24558 ;
24559 return 0;
24560}
24561_ACEOF
24562rm -f conftest.$ac_objext
64ff59ba 24563if { (ac_try="$ac_compile"
24564case "(($ac_try" in
24565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24567esac
24568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24570 ac_status=$?
24571 grep -v '^ *+' conftest.er1 >conftest.err
24572 rm -f conftest.er1
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest.$ac_objext; then
d9898ee8 24579 ac_cv_header_sys_wait_h=yes
24580else
24581 echo "$as_me: failed program was:" >&5
24582sed 's/^/| /' conftest.$ac_ext >&5
24583
64ff59ba 24584 ac_cv_header_sys_wait_h=no
d9898ee8 24585fi
64ff59ba 24586
24587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 24588fi
64ff59ba 24589{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24590echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
d9898ee8 24591if test $ac_cv_header_sys_wait_h = yes; then
24592
24593cat >>confdefs.h <<\_ACEOF
24594#define HAVE_SYS_WAIT_H 1
24595_ACEOF
24596
24597fi
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
24608do
24609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 24610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615fi
64ff59ba 24616ac_res=`eval echo '${'$as_ac_Header'}'`
24617 { echo "$as_me:$LINENO: result: $ac_res" >&5
24618echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 24619else
24620 # Is the header compilable?
64ff59ba 24621{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 24623cat >conftest.$ac_ext <<_ACEOF
24624/* confdefs.h. */
24625_ACEOF
24626cat confdefs.h >>conftest.$ac_ext
24627cat >>conftest.$ac_ext <<_ACEOF
24628/* end confdefs.h. */
24629$ac_includes_default
24630#include <$ac_header>
24631_ACEOF
24632rm -f conftest.$ac_objext
64ff59ba 24633if { (ac_try="$ac_compile"
24634case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24637esac
24638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24640 ac_status=$?
24641 grep -v '^ *+' conftest.er1 >conftest.err
24642 rm -f conftest.er1
24643 cat conftest.err >&5
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24645 (exit $ac_status); } && {
24646 test -z "$ac_c_werror_flag" ||
24647 test ! -s conftest.err
24648 } && test -s conftest.$ac_objext; then
d9898ee8 24649 ac_header_compiler=yes
24650else
24651 echo "$as_me: failed program was:" >&5
24652sed 's/^/| /' conftest.$ac_ext >&5
24653
64ff59ba 24654 ac_header_compiler=no
d9898ee8 24655fi
64ff59ba 24656
24657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24658{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24659echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 24660
24661# Is the header present?
64ff59ba 24662{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 24664cat >conftest.$ac_ext <<_ACEOF
24665/* confdefs.h. */
24666_ACEOF
24667cat confdefs.h >>conftest.$ac_ext
24668cat >>conftest.$ac_ext <<_ACEOF
24669/* end confdefs.h. */
24670#include <$ac_header>
24671_ACEOF
64ff59ba 24672if { (ac_try="$ac_cpp conftest.$ac_ext"
24673case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24676esac
24677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 24679 ac_status=$?
24680 grep -v '^ *+' conftest.er1 >conftest.err
24681 rm -f conftest.er1
24682 cat conftest.err >&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24684 (exit $ac_status); } >/dev/null && {
24685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24686 test ! -s conftest.err
24687 }; then
d9898ee8 24688 ac_header_preproc=yes
24689else
24690 echo "$as_me: failed program was:" >&5
24691sed 's/^/| /' conftest.$ac_ext >&5
24692
24693 ac_header_preproc=no
24694fi
64ff59ba 24695
d9898ee8 24696rm -f conftest.err conftest.$ac_ext
64ff59ba 24697{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24698echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 24699
24700# So? What about this header?
24701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24702 yes:no: )
24703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24707 ac_header_preproc=yes
24708 ;;
24709 no:yes:* )
24710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 24722 ( cat <<\_ASBOX
0fde1ce3 24723## ------------------------------------------------- ##
24724## Report this to courier-imap@lists.sourceforge.net ##
24725## ------------------------------------------------- ##
d9898ee8 24726_ASBOX
64ff59ba 24727 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 24728 ;;
24729esac
64ff59ba 24730{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24734else
24735 eval "$as_ac_Header=\$ac_header_preproc"
24736fi
64ff59ba 24737ac_res=`eval echo '${'$as_ac_Header'}'`
24738 { echo "$as_me:$LINENO: result: $ac_res" >&5
24739echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 24740
24741fi
24742if test `eval echo '${'$as_ac_Header'}'` = yes; then
24743 cat >>confdefs.h <<_ACEOF
24744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24745_ACEOF
24746
24747fi
24748
24749done
24750
24751
64ff59ba 24752{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24753echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 24754if test "${ac_cv_c_const+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24756else
24757 cat >conftest.$ac_ext <<_ACEOF
24758/* confdefs.h. */
24759_ACEOF
24760cat confdefs.h >>conftest.$ac_ext
24761cat >>conftest.$ac_ext <<_ACEOF
24762/* end confdefs.h. */
24763
24764int
24765main ()
24766{
24767/* FIXME: Include the comments suggested by Paul. */
24768#ifndef __cplusplus
24769 /* Ultrix mips cc rejects this. */
24770 typedef int charset[2];
64ff59ba 24771 const charset cs;
d9898ee8 24772 /* SunOS 4.1.1 cc rejects this. */
64ff59ba 24773 char const *const *pcpcc;
24774 char **ppc;
d9898ee8 24775 /* NEC SVR4.0.2 mips cc rejects this. */
24776 struct point {int x, y;};
24777 static struct point const zero = {0,0};
24778 /* AIX XL C 1.02.0.0 rejects this.
24779 It does not let you subtract one const X* pointer from another in
24780 an arm of an if-expression whose if-part is not a constant
24781 expression */
24782 const char *g = "string";
64ff59ba 24783 pcpcc = &g + (g ? g-g : 0);
d9898ee8 24784 /* HPUX 7.0 cc rejects these. */
64ff59ba 24785 ++pcpcc;
24786 ppc = (char**) pcpcc;
24787 pcpcc = (char const *const *) ppc;
d9898ee8 24788 { /* SCO 3.2v4 cc rejects this. */
24789 char *t;
24790 char const *s = 0 ? (char *) 0 : (char const *) 0;
24791
24792 *t++ = 0;
64ff59ba 24793 if (s) return 0;
d9898ee8 24794 }
24795 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24796 int x[] = {25, 17};
24797 const int *foo = &x[0];
24798 ++foo;
24799 }
24800 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24801 typedef const int *iptr;
24802 iptr p = 0;
24803 ++p;
24804 }
24805 { /* AIX XL C 1.02.0.0 rejects this saying
24806 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24807 struct s { int j; const int *ap[3]; };
24808 struct s *b; b->j = 5;
24809 }
24810 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24811 const int foo = 10;
64ff59ba 24812 if (!foo) return 0;
d9898ee8 24813 }
64ff59ba 24814 return !cs[0] && !zero.x;
d9898ee8 24815#endif
24816
24817 ;
24818 return 0;
24819}
24820_ACEOF
24821rm -f conftest.$ac_objext
64ff59ba 24822if { (ac_try="$ac_compile"
24823case "(($ac_try" in
24824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24826esac
24827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24829 ac_status=$?
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24834 (exit $ac_status); } && {
24835 test -z "$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 } && test -s conftest.$ac_objext; then
d9898ee8 24838 ac_cv_c_const=yes
24839else
24840 echo "$as_me: failed program was:" >&5
24841sed 's/^/| /' conftest.$ac_ext >&5
24842
64ff59ba 24843 ac_cv_c_const=no
d9898ee8 24844fi
64ff59ba 24845
24846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 24847fi
64ff59ba 24848{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24849echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 24850if test $ac_cv_c_const = no; then
24851
24852cat >>confdefs.h <<\_ACEOF
24853#define const
24854_ACEOF
24855
24856fi
24857
64ff59ba 24858{ echo "$as_me:$LINENO: checking for pid_t" >&5
24859echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 24860if test "${ac_cv_type_pid_t+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24862else
24863 cat >conftest.$ac_ext <<_ACEOF
24864/* confdefs.h. */
24865_ACEOF
24866cat confdefs.h >>conftest.$ac_ext
24867cat >>conftest.$ac_ext <<_ACEOF
24868/* end confdefs.h. */
24869$ac_includes_default
64ff59ba 24870typedef pid_t ac__type_new_;
d9898ee8 24871int
24872main ()
24873{
64ff59ba 24874if ((ac__type_new_ *) 0)
d9898ee8 24875 return 0;
64ff59ba 24876if (sizeof (ac__type_new_))
d9898ee8 24877 return 0;
24878 ;
24879 return 0;
24880}
24881_ACEOF
24882rm -f conftest.$ac_objext
64ff59ba 24883if { (ac_try="$ac_compile"
24884case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24887esac
24888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24890 ac_status=$?
24891 grep -v '^ *+' conftest.er1 >conftest.err
24892 rm -f conftest.er1
24893 cat conftest.err >&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24895 (exit $ac_status); } && {
24896 test -z "$ac_c_werror_flag" ||
24897 test ! -s conftest.err
24898 } && test -s conftest.$ac_objext; then
d9898ee8 24899 ac_cv_type_pid_t=yes
24900else
24901 echo "$as_me: failed program was:" >&5
24902sed 's/^/| /' conftest.$ac_ext >&5
24903
64ff59ba 24904 ac_cv_type_pid_t=no
d9898ee8 24905fi
64ff59ba 24906
24907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 24908fi
64ff59ba 24909{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24910echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 24911if test $ac_cv_type_pid_t = yes; then
24912 :
24913else
24914
24915cat >>confdefs.h <<_ACEOF
24916#define pid_t int
24917_ACEOF
24918
24919fi
24920
64ff59ba 24921{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24922echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
d9898ee8 24923if test "${ac_cv_type_uid_t+set}" = set; then
24924 echo $ECHO_N "(cached) $ECHO_C" >&6
24925else
24926 cat >conftest.$ac_ext <<_ACEOF
24927/* confdefs.h. */
24928_ACEOF
24929cat confdefs.h >>conftest.$ac_ext
24930cat >>conftest.$ac_ext <<_ACEOF
24931/* end confdefs.h. */
24932#include <sys/types.h>
24933
24934_ACEOF
24935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24936 $EGREP "uid_t" >/dev/null 2>&1; then
24937 ac_cv_type_uid_t=yes
24938else
24939 ac_cv_type_uid_t=no
24940fi
24941rm -f conftest*
24942
24943fi
64ff59ba 24944{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24945echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
d9898ee8 24946if test $ac_cv_type_uid_t = no; then
24947
24948cat >>confdefs.h <<\_ACEOF
24949#define uid_t int
24950_ACEOF
24951
24952
24953cat >>confdefs.h <<\_ACEOF
24954#define gid_t int
24955_ACEOF
24956
24957fi
24958
64ff59ba 24959{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24960echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d9898ee8 24961if test "${ac_cv_type_signal+set}" = set; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24963else
24964 cat >conftest.$ac_ext <<_ACEOF
24965/* confdefs.h. */
24966_ACEOF
24967cat confdefs.h >>conftest.$ac_ext
24968cat >>conftest.$ac_ext <<_ACEOF
24969/* end confdefs.h. */
24970#include <sys/types.h>
24971#include <signal.h>
d9898ee8 24972
24973int
24974main ()
24975{
64ff59ba 24976return *(signal (0, 0)) (0) == 1;
d9898ee8 24977 ;
24978 return 0;
24979}
24980_ACEOF
24981rm -f conftest.$ac_objext
64ff59ba 24982if { (ac_try="$ac_compile"
24983case "(($ac_try" in
24984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985 *) ac_try_echo=$ac_try;;
24986esac
24987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24989 ac_status=$?
24990 grep -v '^ *+' conftest.er1 >conftest.err
24991 rm -f conftest.er1
24992 cat conftest.err >&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24994 (exit $ac_status); } && {
24995 test -z "$ac_c_werror_flag" ||
24996 test ! -s conftest.err
24997 } && test -s conftest.$ac_objext; then
24998 ac_cv_type_signal=int
d9898ee8 24999else
25000 echo "$as_me: failed program was:" >&5
25001sed 's/^/| /' conftest.$ac_ext >&5
25002
64ff59ba 25003 ac_cv_type_signal=void
d9898ee8 25004fi
64ff59ba 25005
25006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 25007fi
64ff59ba 25008{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25009echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d9898ee8 25010
25011cat >>confdefs.h <<_ACEOF
25012#define RETSIGTYPE $ac_cv_type_signal
25013_ACEOF
25014
25015
25016
25017
25018
25019for ac_func in setsid setlogin
25020do
25021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 25022{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25024if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25026else
25027 cat >conftest.$ac_ext <<_ACEOF
25028/* confdefs.h. */
25029_ACEOF
25030cat confdefs.h >>conftest.$ac_ext
25031cat >>conftest.$ac_ext <<_ACEOF
25032/* end confdefs.h. */
25033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25035#define $ac_func innocuous_$ac_func
25036
25037/* System header to define __stub macros and hopefully few prototypes,
25038 which can conflict with char $ac_func (); below.
25039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25040 <limits.h> exists even on freestanding compilers. */
25041
25042#ifdef __STDC__
25043# include <limits.h>
25044#else
25045# include <assert.h>
25046#endif
25047
25048#undef $ac_func
25049
64ff59ba 25050/* Override any GCC internal prototype to avoid an error.
25051 Use char because int might match the return type of a GCC
25052 builtin and then its argument prototype would still apply. */
d9898ee8 25053#ifdef __cplusplus
25054extern "C"
d9898ee8 25055#endif
d9898ee8 25056char $ac_func ();
25057/* The GNU C library defines this for functions which it implements
25058 to always fail with ENOSYS. Some functions are actually named
25059 something starting with __ and the normal name is an alias. */
64ff59ba 25060#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 25061choke me
d9898ee8 25062#endif
25063
25064int
25065main ()
25066{
64ff59ba 25067return $ac_func ();
d9898ee8 25068 ;
25069 return 0;
25070}
25071_ACEOF
25072rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 25073if { (ac_try="$ac_link"
25074case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077esac
25078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_link") 2>conftest.er1
d9898ee8 25080 ac_status=$?
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25085 (exit $ac_status); } && {
25086 test -z "$ac_c_werror_flag" ||
25087 test ! -s conftest.err
25088 } && test -s conftest$ac_exeext &&
25089 $as_test_x conftest$ac_exeext; then
d9898ee8 25090 eval "$as_ac_var=yes"
25091else
25092 echo "$as_me: failed program was:" >&5
25093sed 's/^/| /' conftest.$ac_ext >&5
25094
64ff59ba 25095 eval "$as_ac_var=no"
d9898ee8 25096fi
64ff59ba 25097
25098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 25099 conftest$ac_exeext conftest.$ac_ext
25100fi
64ff59ba 25101ac_res=`eval echo '${'$as_ac_var'}'`
25102 { echo "$as_me:$LINENO: result: $ac_res" >&5
25103echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 25104if test `eval echo '${'$as_ac_var'}'` = yes; then
25105 cat >>confdefs.h <<_ACEOF
25106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25107_ACEOF
25108
25109fi
25110done
25111
64ff59ba 25112{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25113echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
d9898ee8 25114if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25116else
25117 ac_check_lib_save_LIBS=$LIBS
25118LIBS="-lcrypt $LIBS"
25119cat >conftest.$ac_ext <<_ACEOF
25120/* confdefs.h. */
25121_ACEOF
25122cat confdefs.h >>conftest.$ac_ext
25123cat >>conftest.$ac_ext <<_ACEOF
25124/* end confdefs.h. */
25125
64ff59ba 25126/* Override any GCC internal prototype to avoid an error.
25127 Use char because int might match the return type of a GCC
25128 builtin and then its argument prototype would still apply. */
d9898ee8 25129#ifdef __cplusplus
25130extern "C"
25131#endif
d9898ee8 25132char crypt ();
25133int
25134main ()
25135{
64ff59ba 25136return crypt ();
d9898ee8 25137 ;
25138 return 0;
25139}
25140_ACEOF
25141rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 25142if { (ac_try="$ac_link"
25143case "(($ac_try" in
25144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145 *) ac_try_echo=$ac_try;;
25146esac
25147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148 (eval "$ac_link") 2>conftest.er1
d9898ee8 25149 ac_status=$?
25150 grep -v '^ *+' conftest.er1 >conftest.err
25151 rm -f conftest.er1
25152 cat conftest.err >&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25154 (exit $ac_status); } && {
25155 test -z "$ac_c_werror_flag" ||
25156 test ! -s conftest.err
25157 } && test -s conftest$ac_exeext &&
25158 $as_test_x conftest$ac_exeext; then
d9898ee8 25159 ac_cv_lib_crypt_crypt=yes
25160else
25161 echo "$as_me: failed program was:" >&5
25162sed 's/^/| /' conftest.$ac_ext >&5
25163
64ff59ba 25164 ac_cv_lib_crypt_crypt=no
d9898ee8 25165fi
64ff59ba 25166
25167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 25168 conftest$ac_exeext conftest.$ac_ext
25169LIBS=$ac_check_lib_save_LIBS
25170fi
64ff59ba 25171{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25172echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
d9898ee8 25173if test $ac_cv_lib_crypt_crypt = yes; then
25174 CRYPTLIBS="-lcrypt"
25175fi
25176
25177saveLIBS="$LIBS"
25178LIBS="$CRYPTLIBS $LIBS"
64ff59ba 25179{ echo "$as_me:$LINENO: checking for crypt" >&5
25180echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
d9898ee8 25181if test "${ac_cv_func_crypt+set}" = set; then
25182 echo $ECHO_N "(cached) $ECHO_C" >&6
25183else
25184 cat >conftest.$ac_ext <<_ACEOF
25185/* confdefs.h. */
25186_ACEOF
25187cat confdefs.h >>conftest.$ac_ext
25188cat >>conftest.$ac_ext <<_ACEOF
25189/* end confdefs.h. */
25190/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25192#define crypt innocuous_crypt
25193
25194/* System header to define __stub macros and hopefully few prototypes,
25195 which can conflict with char crypt (); below.
25196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25197 <limits.h> exists even on freestanding compilers. */
25198
25199#ifdef __STDC__
25200# include <limits.h>
25201#else
25202# include <assert.h>
25203#endif
25204
25205#undef crypt
25206
64ff59ba 25207/* Override any GCC internal prototype to avoid an error.
25208 Use char because int might match the return type of a GCC
25209 builtin and then its argument prototype would still apply. */
d9898ee8 25210#ifdef __cplusplus
25211extern "C"
d9898ee8 25212#endif
d9898ee8 25213char crypt ();
25214/* The GNU C library defines this for functions which it implements
25215 to always fail with ENOSYS. Some functions are actually named
25216 something starting with __ and the normal name is an alias. */
64ff59ba 25217#if defined __stub_crypt || defined __stub___crypt
d9898ee8 25218choke me
d9898ee8 25219#endif
25220
25221int
25222main ()
25223{
64ff59ba 25224return crypt ();
d9898ee8 25225 ;
25226 return 0;
25227}
25228_ACEOF
25229rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 25230if { (ac_try="$ac_link"
25231case "(($ac_try" in
25232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233 *) ac_try_echo=$ac_try;;
25234esac
25235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236 (eval "$ac_link") 2>conftest.er1
d9898ee8 25237 ac_status=$?
25238 grep -v '^ *+' conftest.er1 >conftest.err
25239 rm -f conftest.er1
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25242 (exit $ac_status); } && {
25243 test -z "$ac_c_werror_flag" ||
25244 test ! -s conftest.err
25245 } && test -s conftest$ac_exeext &&
25246 $as_test_x conftest$ac_exeext; then
d9898ee8 25247 ac_cv_func_crypt=yes
25248else
25249 echo "$as_me: failed program was:" >&5
25250sed 's/^/| /' conftest.$ac_ext >&5
25251
64ff59ba 25252 ac_cv_func_crypt=no
d9898ee8 25253fi
64ff59ba 25254
25255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 25256 conftest$ac_exeext conftest.$ac_ext
25257fi
64ff59ba 25258{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25259echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
d9898ee8 25260if test $ac_cv_func_crypt = yes; then
25261
25262cat >>confdefs.h <<_ACEOF
25263#define HAVE_CRYPT 1
25264_ACEOF
25265
25266fi
25267
25268LIBS="$saveLIBS"
64ff59ba 25269{ echo "$as_me:$LINENO: checking for crypt() prototype" >&5
25270echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
d9898ee8 25271if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25273else
25274 cat >conftest.$ac_ext <<_ACEOF
25275/* confdefs.h. */
25276_ACEOF
25277cat confdefs.h >>conftest.$ac_ext
25278cat >>conftest.$ac_ext <<_ACEOF
25279/* end confdefs.h. */
25280
25281 #if HAVE_CRYPT_H
25282 #include <crypt.h>
25283 #endif
25284 #if HAVE_UNISTD_H
25285 #include <unistd.h>
25286 #endif
25287 int crypt(int, int);
25288
25289
25290int
25291main ()
25292{
25293
25294 ;
25295 return 0;
25296}
25297_ACEOF
25298rm -f conftest.$ac_objext
64ff59ba 25299if { (ac_try="$ac_compile"
25300case "(($ac_try" in
25301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25302 *) ac_try_echo=$ac_try;;
25303esac
25304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25305 (eval "$ac_compile") 2>conftest.er1
d9898ee8 25306 ac_status=$?
25307 grep -v '^ *+' conftest.er1 >conftest.err
25308 rm -f conftest.er1
25309 cat conftest.err >&5
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25311 (exit $ac_status); } && {
25312 test -z "$ac_c_werror_flag" ||
25313 test ! -s conftest.err
25314 } && test -s conftest.$ac_objext; then
d9898ee8 25315 userdb_cv_NEED_CRYPT_PROTOTYPE=1
25316else
25317 echo "$as_me: failed program was:" >&5
25318sed 's/^/| /' conftest.$ac_ext >&5
25319
64ff59ba 25320 userdb_cv_NEED_CRYPT_PROTOTYPE=0
d9898ee8 25321fi
64ff59ba 25322
25323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 25324
25325
25326fi
64ff59ba 25327{ echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
25328echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
d9898ee8 25329
25330
25331cat >>confdefs.h <<_ACEOF
25332#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
25333_ACEOF
25334
25335
25336
25337
25338
25339
25340
64ff59ba 25341# Check whether --with-authdaemonrc was given.
d9898ee8 25342if test "${with_authdaemonrc+set}" = set; then
64ff59ba 25343 withval=$with_authdaemonrc; authdaemonrc="$withval"
d9898ee8 25344else
25345 authdaemonrc="$pkgconfdir/authdaemonrc"
64ff59ba 25346fi
d9898ee8 25347
25348
25349
64ff59ba 25350
25351# Check whether --with-authdaemonvar was given.
d9898ee8 25352if test "${with_authdaemonvar+set}" = set; then
64ff59ba 25353 withval=$with_authdaemonvar; authdaemonvar="$withval"
d9898ee8 25354else
25355 authdaemonvar="$localstatedir/spool/authdaemon"
64ff59ba 25356fi
25357
d9898ee8 25358
25359
25360
25361
25362
d9898ee8 25363rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
25364
25365
d9898ee8 25366result=""
25367
25368if test -x "$COURIERCONFIG"
25369then
25370 $COURIERCONFIG >conftest.out || exit 1
25371 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
0fde1ce3 25372 . ./conftest2.out
d9898ee8 25373 rm -f conftest.out conftest2.out
25374
25375 cmailuser="$mailuser"
25376 cmailgroup="$mailgroup"
25377 result=" (from courier-config)"
25378fi
25379
25380if test -x "$bindir/courierauthconfig"
25381then
25382 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
25383 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
0fde1ce3 25384 . ./conftest2.out
d9898ee8 25385 rm -f conftest.out conftest2.out
25386
25387 cmailuser="$mailuser"
25388 cmailgroup="$mailgroup"
25389 result=" (from previous courierauthconfig)"
25390fi
25391
25392
25393
25394LB='['
25395RB=']'
25396
25397
25398
64ff59ba 25399{ echo "$as_me:$LINENO: checking for mail userid" >&5
25400echo $ECHO_N "checking for mail userid... $ECHO_C" >&6; }
d9898ee8 25401
25402
64ff59ba 25403# Check whether --with-mailuser was given.
d9898ee8 25404if test "${with_mailuser+set}" = set; then
64ff59ba 25405 withval=$with_mailuser; mailuser="$withval"
d9898ee8 25406else
25407 if test "$cmailuser" = ""
25408 then
25409 if test "$cross_compiling" = yes; then
25410 { { echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5
25411echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;}
25412 { (exit 1); exit 1; }; }
25413else
25414 cat >conftest.$ac_ext <<_ACEOF
25415/* confdefs.h. */
25416_ACEOF
25417cat confdefs.h >>conftest.$ac_ext
25418cat >>conftest.$ac_ext <<_ACEOF
25419/* end confdefs.h. */
25420
25421#include <stdio.h>
25422#include <pwd.h>
25423#include <stdlib.h>
25424
25425static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
25426
25427int main()
25428{
25429int i;
25430FILE *f;
25431char *p;
25432
25433 for (i=0; ids $LB i $RB; i++)
25434 if (getpwnam(ids $LB i $RB)) break;
25435
25436 f=fopen("conftest.out", "w");
25437 if (f && ids $LB i $RB)
25438 {
25439 fprintf(f, "%s\n", ids $LB i $RB);
25440 fclose(f);
25441 exit(0);
25442 }
25443 fclose(f);
25444 exit (1);
25445 return (1);
25446}
25447
25448_ACEOF
25449rm -f conftest$ac_exeext
64ff59ba 25450if { (ac_try="$ac_link"
25451case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25454esac
25455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_link") 2>&5
d9898ee8 25457 ac_status=$?
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 25460 { (case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25463esac
25464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_try") 2>&5
d9898ee8 25466 ac_status=$?
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
25469 mailuser=`cat conftest.out`
25470else
25471 echo "$as_me: program exited with status $ac_status" >&5
25472echo "$as_me: failed program was:" >&5
25473sed 's/^/| /' conftest.$ac_ext >&5
25474
25475( exit $ac_status )
25476{ { echo "$as_me:$LINENO: error: Cannot determine mail user" >&5
25477echo "$as_me: error: Cannot determine mail user" >&2;}
25478 { (exit use --with-mailuser.); exit use --with-mailuser.; }; }
25479fi
64ff59ba 25480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 25481fi
64ff59ba 25482
25483
d9898ee8 25484 else
25485 mailuser="$cmailuser"
25486 fi
25487 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
64ff59ba 25488fi
d9898ee8 25489
d9898ee8 25490
64ff59ba 25491{ echo "$as_me:$LINENO: result: $mailuser $result" >&5
25492echo "${ECHO_T}$mailuser $result" >&6; }
d9898ee8 25493
64ff59ba 25494{ echo "$as_me:$LINENO: checking for mail group id" >&5
25495echo $ECHO_N "checking for mail group id... $ECHO_C" >&6; }
d9898ee8 25496
64ff59ba 25497
25498# Check whether --with-mailgroup was given.
d9898ee8 25499if test "${with_mailgroup+set}" = set; then
64ff59ba 25500 withval=$with_mailgroup; mailgroup="$withval"
d9898ee8 25501else
25502 if test "$cmailgroup" = ""
25503 then
25504 if test "$cross_compiling" = yes; then
25505 { { echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5
25506echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;}
25507 { (exit 1); exit 1; }; }
25508else
25509 cat >conftest.$ac_ext <<_ACEOF
25510/* confdefs.h. */
25511_ACEOF
25512cat confdefs.h >>conftest.$ac_ext
25513cat >>conftest.$ac_ext <<_ACEOF
25514/* end confdefs.h. */
25515
25516#include <stdio.h>
25517#include <grp.h>
25518#include <stdlib.h>
25519
25520static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
25521
25522int main()
25523{
25524int i;
25525FILE *f;
25526
25527 for (i=0; ids $LB i $RB; i++)
25528 if (getgrnam(ids $LB i $RB)) break;
25529
25530 f=fopen("conftest.out", "w");
25531 if (f && ids $LB i $RB)
25532 {
25533 fprintf(f, "%s\n", ids $LB i $RB);
25534 fclose(f);
25535 exit(0);
25536 }
25537 fclose(f);
25538 exit (1);
25539 return (1);
25540}
25541
25542_ACEOF
25543rm -f conftest$ac_exeext
64ff59ba 25544if { (ac_try="$ac_link"
25545case "(($ac_try" in
25546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25548esac
25549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550 (eval "$ac_link") 2>&5
d9898ee8 25551 ac_status=$?
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 25554 { (case "(($ac_try" in
25555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556 *) ac_try_echo=$ac_try;;
25557esac
25558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559 (eval "$ac_try") 2>&5
d9898ee8 25560 ac_status=$?
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); }; }; then
25563 mailgroup=`cat conftest.out`
25564else
25565 echo "$as_me: program exited with status $ac_status" >&5
25566echo "$as_me: failed program was:" >&5
25567sed 's/^/| /' conftest.$ac_ext >&5
25568
25569( exit $ac_status )
25570{ { echo "$as_me:$LINENO: error: Cannot determine mail group" >&5
25571echo "$as_me: error: Cannot determine mail group" >&2;}
25572 { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; }
25573fi
64ff59ba 25574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 25575fi
64ff59ba 25576
25577
d9898ee8 25578 else
25579 mailgroup="$cmailgroup"
25580 fi
25581 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
25582
64ff59ba 25583fi
25584
25585{ echo "$as_me:$LINENO: result: $mailgroup $result" >&5
25586echo "${ECHO_T}$mailgroup $result" >&6; }
d9898ee8 25587
25588
25589rm -f conftest.out
25590
25591
64ff59ba 25592# Check whether --with-stdheaderdir was given.
d9898ee8 25593if test "${with_stdheaderdir+set}" = set; then
64ff59ba 25594 withval=$with_stdheaderdir;
d9898ee8 25595 if test "$withval" = "no"
25596 then
25597
25598cat >>confdefs.h <<_ACEOF
25599#define HAVE_NOSTDHEADERDIR 1
25600_ACEOF
25601
25602 fi
25603
64ff59ba 25604fi
25605
d9898ee8 25606
64ff59ba 25607{ echo "$as_me:$LINENO: checking for socklen_t" >&5
25608echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
d9898ee8 25609if test "${authlib_cv_hassocklen_t+set}" = set; then
25610 echo $ECHO_N "(cached) $ECHO_C" >&6
25611else
25612 cat >conftest.$ac_ext <<_ACEOF
25613/* confdefs.h. */
25614_ACEOF
25615cat confdefs.h >>conftest.$ac_ext
25616cat >>conftest.$ac_ext <<_ACEOF
25617/* end confdefs.h. */
25618
25619#include <sys/types.h>
25620#include <sys/socket.h>
25621
25622socklen_t sl_t;
25623
25624_ACEOF
25625rm -f conftest.$ac_objext
64ff59ba 25626if { (ac_try="$ac_compile"
25627case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25630esac
25631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_compile") 2>conftest.er1
d9898ee8 25633 ac_status=$?
25634 grep -v '^ *+' conftest.er1 >conftest.err
25635 rm -f conftest.er1
25636 cat conftest.err >&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25638 (exit $ac_status); } && {
25639 test -z "$ac_c_werror_flag" ||
25640 test ! -s conftest.err
25641 } && test -s conftest.$ac_objext; then
d9898ee8 25642 authlib_cv_hassocklen_t=yes
25643else
25644 echo "$as_me: failed program was:" >&5
25645sed 's/^/| /' conftest.$ac_ext >&5
25646
64ff59ba 25647 authlib_cv_hassocklen_t=no
d9898ee8 25648fi
64ff59ba 25649
25650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 25651
25652fi
64ff59ba 25653{ echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5
25654echo "${ECHO_T}$authlib_cv_hassocklen_t" >&6; }
d9898ee8 25655
25656socklen_t="int"
25657
25658if test $authlib_cv_hassocklen_t = yes
25659then
25660 :
25661else
25662
25663cat >>confdefs.h <<_ACEOF
25664#define socklen_t int
25665_ACEOF
25666
25667fi
25668
d9898ee8 25669
64ff59ba 25670# Check whether --with-repository was given.
d9898ee8 25671if test "${with_repository+set}" = set; then
64ff59ba 25672 withval=$with_repository; REPOSITORY="$withval"
25673fi
d9898ee8 25674
25675
25676
64ff59ba 25677 if test -d ${srcdir}/docbook; then
d9898ee8 25678 HAVE_SGML_TRUE=
25679 HAVE_SGML_FALSE='#'
25680else
25681 HAVE_SGML_TRUE='#'
25682 HAVE_SGML_FALSE=
25683fi
25684
d9898ee8 25685subdirs="$subdirs libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog"
25686
25687
0fde1ce3 25688ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl"
d9898ee8 25689
25690cat >confcache <<\_ACEOF
25691# This file is a shell script that caches the results of configure
25692# tests run on this system so they can be shared between configure
25693# scripts and configure runs, see configure's option --config-cache.
25694# It is not useful on other systems. If it contains results you don't
25695# want to keep, you may remove or edit it.
25696#
25697# config.status only pays attention to the cache file if you give it
25698# the --recheck option to rerun configure.
25699#
25700# `ac_cv_env_foo' variables (set or unset) will be overridden when
25701# loading this file, other *unset* `ac_cv_foo' will be assigned the
25702# following values.
25703
25704_ACEOF
25705
25706# The following way of writing the cache mishandles newlines in values,
25707# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 25708# So, we kill variables containing newlines.
d9898ee8 25709# Ultrix sh set writes to stderr and can't be redirected directly,
25710# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 25711(
25712 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25713 eval ac_val=\$$ac_var
25714 case $ac_val in #(
25715 *${as_nl}*)
25716 case $ac_var in #(
25717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25719 esac
25720 case $ac_var in #(
25721 _ | IFS | as_nl) ;; #(
25722 *) $as_unset $ac_var ;;
25723 esac ;;
25724 esac
25725 done
25726
d9898ee8 25727 (set) 2>&1 |
64ff59ba 25728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25729 *${as_nl}ac_space=\ *)
d9898ee8 25730 # `set' does not quote correctly, so add quotes (double-quote
25731 # substitution turns \\\\ into \\, and sed turns \\ into \).
25732 sed -n \
25733 "s/'/'\\\\''/g;
25734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 25735 ;; #(
d9898ee8 25736 *)
25737 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 25738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 25739 ;;
64ff59ba 25740 esac |
25741 sort
25742) |
d9898ee8 25743 sed '
64ff59ba 25744 /^ac_cv_env_/b end
d9898ee8 25745 t clear
64ff59ba 25746 :clear
d9898ee8 25747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25748 t end
64ff59ba 25749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25750 :end' >>confcache
25751if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25752 if test -w "$cache_file"; then
25753 test "x$cache_file" != "x/dev/null" &&
25754 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25755echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 25756 cat confcache >$cache_file
25757 else
64ff59ba 25758 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25759echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 25760 fi
25761fi
25762rm -f confcache
25763
25764test "x$prefix" = xNONE && prefix=$ac_default_prefix
25765# Let make expand exec_prefix.
25766test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25767
d9898ee8 25768DEFS=-DHAVE_CONFIG_H
25769
25770ac_libobjs=
25771ac_ltlibobjs=
25772for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25773 # 1. Remove the extension, and $U if already installed.
64ff59ba 25774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25775 ac_i=`echo "$ac_i" | sed "$ac_script"`
25776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25777 # will be set to the directory where LIBOBJS objects are built.
25778 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25779 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 25780done
25781LIBOBJS=$ac_libobjs
25782
25783LTLIBOBJS=$ac_ltlibobjs
25784
25785
25786if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25787 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25788Usually this means the macro was only invoked conditionally." >&5
25789echo "$as_me: error: conditional \"AMDEP\" was never defined.
25790Usually this means the macro was only invoked conditionally." >&2;}
25791 { (exit 1); exit 1; }; }
25792fi
25793if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25795Usually this means the macro was only invoked conditionally." >&5
25796echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25797Usually this means the macro was only invoked conditionally." >&2;}
25798 { (exit 1); exit 1; }; }
25799fi
25800if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25801 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25802Usually this means the macro was only invoked conditionally." >&5
25803echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25804Usually this means the macro was only invoked conditionally." >&2;}
25805 { (exit 1); exit 1; }; }
25806fi
d9898ee8 25807if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
25808 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
25809Usually this means the macro was only invoked conditionally." >&5
25810echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
25811Usually this means the macro was only invoked conditionally." >&2;}
25812 { (exit 1); exit 1; }; }
25813fi
25814if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
25815 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25816Usually this means the macro was only invoked conditionally." >&5
25817echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25818Usually this means the macro was only invoked conditionally." >&2;}
25819 { (exit 1); exit 1; }; }
25820fi
25821if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
25822 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25823Usually this means the macro was only invoked conditionally." >&5
25824echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25825Usually this means the macro was only invoked conditionally." >&2;}
25826 { (exit 1); exit 1; }; }
25827fi
25828if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
25829 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined.
25830Usually this means the macro was only invoked conditionally." >&5
25831echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined.
25832Usually this means the macro was only invoked conditionally." >&2;}
25833 { (exit 1); exit 1; }; }
25834fi
25835if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
25836 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined.
25837Usually this means the macro was only invoked conditionally." >&5
25838echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined.
25839Usually this means the macro was only invoked conditionally." >&2;}
25840 { (exit 1); exit 1; }; }
25841fi
25842if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
25843 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
25844Usually this means the macro was only invoked conditionally." >&5
25845echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
25846Usually this means the macro was only invoked conditionally." >&2;}
25847 { (exit 1); exit 1; }; }
25848fi
25849
25850: ${CONFIG_STATUS=./config.status}
25851ac_clean_files_save=$ac_clean_files
25852ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25853{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25854echo "$as_me: creating $CONFIG_STATUS" >&6;}
25855cat >$CONFIG_STATUS <<_ACEOF
25856#! $SHELL
25857# Generated by $as_me.
25858# Run this file to recreate the current configuration.
25859# Compiler output produced by configure, useful for debugging
25860# configure, is in config.log if it exists.
25861
25862debug=false
25863ac_cs_recheck=false
25864ac_cs_silent=false
25865SHELL=\${CONFIG_SHELL-$SHELL}
25866_ACEOF
25867
25868cat >>$CONFIG_STATUS <<\_ACEOF
25869## --------------------- ##
25870## M4sh Initialization. ##
25871## --------------------- ##
25872
64ff59ba 25873# Be more Bourne compatible
25874DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 25875if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25876 emulate sh
25877 NULLCMD=:
25878 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25879 # is contrary to our usage. Disable this feature.
25880 alias -g '${1+"$@"}'='"$@"'
64ff59ba 25881 setopt NO_GLOB_SUBST
25882else
25883 case `(set -o) 2>/dev/null` in
25884 *posix*) set -o posix ;;
25885esac
25886
25887fi
25888
25889
25890
25891
25892# PATH needs CR
25893# Avoid depending upon Character Ranges.
25894as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25895as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25896as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25897as_cr_digits='0123456789'
25898as_cr_alnum=$as_cr_Letters$as_cr_digits
25899
25900# The user is always right.
25901if test "${PATH_SEPARATOR+set}" != set; then
25902 echo "#! /bin/sh" >conf$$.sh
25903 echo "exit 0" >>conf$$.sh
25904 chmod +x conf$$.sh
25905 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25906 PATH_SEPARATOR=';'
25907 else
25908 PATH_SEPARATOR=:
25909 fi
25910 rm -f conf$$.sh
d9898ee8 25911fi
d9898ee8 25912
25913# Support unset when possible.
25914if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25915 as_unset=unset
25916else
25917 as_unset=false
25918fi
25919
25920
64ff59ba 25921# IFS
25922# We need space, tab and new line, in precisely that order. Quoting is
25923# there to prevent editors from complaining about space-tab.
25924# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25925# splitting by setting IFS to empty value.)
25926as_nl='
25927'
25928IFS=" "" $as_nl"
25929
25930# Find who we are. Look in the path if we contain no directory separator.
25931case $0 in
25932 *[\\/]* ) as_myself=$0 ;;
25933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25934for as_dir in $PATH
25935do
25936 IFS=$as_save_IFS
25937 test -z "$as_dir" && as_dir=.
25938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25939done
25940IFS=$as_save_IFS
25941
25942 ;;
25943esac
25944# We did not find ourselves, most probably we were run as `sh COMMAND'
25945# in which case we are not to be found in the path.
25946if test "x$as_myself" = x; then
25947 as_myself=$0
25948fi
25949if test ! -f "$as_myself"; then
25950 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25951 { (exit 1); exit 1; }
25952fi
25953
d9898ee8 25954# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 25955for as_var in ENV MAIL MAILPATH
25956do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25957done
d9898ee8 25958PS1='$ '
25959PS2='> '
25960PS4='+ '
25961
25962# NLS nuisances.
25963for as_var in \
25964 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25965 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25966 LC_TELEPHONE LC_TIME
25967do
25968 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25969 eval $as_var=C; export $as_var
25970 else
64ff59ba 25971 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 25972 fi
25973done
25974
25975# Required to use basename.
64ff59ba 25976if expr a : '\(a\)' >/dev/null 2>&1 &&
25977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 25978 as_expr=expr
25979else
25980 as_expr=false
25981fi
25982
64ff59ba 25983if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 25984 as_basename=basename
25985else
25986 as_basename=false
25987fi
25988
25989
25990# Name of the executable.
64ff59ba 25991as_me=`$as_basename -- "$0" ||
d9898ee8 25992$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25993 X"$0" : 'X\(//\)$' \| \
64ff59ba 25994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 25995echo X/"$0" |
64ff59ba 25996 sed '/^.*\/\([^/][^/]*\)\/*$/{
25997 s//\1/
25998 q
25999 }
26000 /^X\/\(\/\/\)$/{
26001 s//\1/
26002 q
26003 }
26004 /^X\/\(\/\).*/{
26005 s//\1/
26006 q
26007 }
26008 s/.*/./; q'`
d9898ee8 26009
64ff59ba 26010# CDPATH.
26011$as_unset CDPATH
d9898ee8 26012
d9898ee8 26013
26014
26015 as_lineno_1=$LINENO
26016 as_lineno_2=$LINENO
d9898ee8 26017 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 26018 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 26019
26020 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26021 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 26022 # line-number line after each line using $LINENO; the second 'sed'
26023 # does the real work. The second script uses 'N' to pair each
26024 # line-number line with the line containing $LINENO, and appends
26025 # trailing '-' during substitution so that $LINENO is not a special
26026 # case at line end.
d9898ee8 26027 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 26028 # scripts with optimization help from Paolo Bonzini. Blame Lee
26029 # E. McMahon (1931-1989) for sed's syntax. :-)
26030 sed -n '
26031 p
26032 /[$]LINENO/=
26033 ' <$as_myself |
d9898ee8 26034 sed '
64ff59ba 26035 s/[$]LINENO.*/&-/
26036 t lineno
26037 b
26038 :lineno
d9898ee8 26039 N
64ff59ba 26040 :loop
26041 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 26042 t loop
64ff59ba 26043 s/-\n.*//
d9898ee8 26044 ' >$as_me.lineno &&
64ff59ba 26045 chmod +x "$as_me.lineno" ||
26046 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 26047 { (exit 1); exit 1; }; }
26048
26049 # Don't try to exec as it changes $[0], causing all sort of problems
26050 # (the dirname of $[0] is not the place where we might find the
64ff59ba 26051 # original and so on. Autoconf is especially sensitive to this).
26052 . "./$as_me.lineno"
d9898ee8 26053 # Exit status is that of the last command.
26054 exit
26055}
26056
26057
64ff59ba 26058if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26059 as_dirname=dirname
26060else
26061 as_dirname=false
26062fi
26063
26064ECHO_C= ECHO_N= ECHO_T=
26065case `echo -n x` in
26066-n*)
26067 case `echo 'x\c'` in
26068 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26069 *) ECHO_C='\c';;
26070 esac;;
26071*)
26072 ECHO_N='-n';;
d9898ee8 26073esac
26074
64ff59ba 26075if expr a : '\(a\)' >/dev/null 2>&1 &&
26076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 26077 as_expr=expr
26078else
26079 as_expr=false
26080fi
26081
26082rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 26083if test -d conf$$.dir; then
26084 rm -f conf$$.dir/conf$$.file
26085else
26086 rm -f conf$$.dir
26087 mkdir conf$$.dir
26088fi
d9898ee8 26089echo >conf$$.file
26090if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 26091 as_ln_s='ln -s'
26092 # ... but there are two gotchas:
26093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26095 # In both cases, we have to default to `cp -p'.
26096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 26097 as_ln_s='cp -p'
d9898ee8 26098elif ln conf$$.file conf$$ 2>/dev/null; then
26099 as_ln_s=ln
26100else
26101 as_ln_s='cp -p'
26102fi
64ff59ba 26103rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26104rmdir conf$$.dir 2>/dev/null
d9898ee8 26105
26106if mkdir -p . 2>/dev/null; then
26107 as_mkdir_p=:
26108else
26109 test -d ./-p && rmdir ./-p
26110 as_mkdir_p=false
26111fi
26112
64ff59ba 26113if test -x / >/dev/null 2>&1; then
26114 as_test_x='test -x'
26115else
26116 if ls -dL / >/dev/null 2>&1; then
26117 as_ls_L_option=L
26118 else
26119 as_ls_L_option=
26120 fi
26121 as_test_x='
26122 eval sh -c '\''
26123 if test -d "$1"; then
26124 test -d "$1/.";
26125 else
26126 case $1 in
26127 -*)set "./$1";;
26128 esac;
26129 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26130 ???[sx]*):;;*)false;;esac;fi
26131 '\'' sh
26132 '
26133fi
26134as_executable_p=$as_test_x
d9898ee8 26135
26136# Sed expression to map a string onto a valid CPP name.
26137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26138
26139# Sed expression to map a string onto a valid variable name.
26140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26141
26142
d9898ee8 26143exec 6>&1
26144
64ff59ba 26145# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 26146# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 26147# values after options handling.
26148ac_log="
0fde1ce3 26149This file was extended by courier-authlib $as_me 0.61.0, which was
64ff59ba 26150generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 26151
26152 CONFIG_FILES = $CONFIG_FILES
26153 CONFIG_HEADERS = $CONFIG_HEADERS
26154 CONFIG_LINKS = $CONFIG_LINKS
26155 CONFIG_COMMANDS = $CONFIG_COMMANDS
26156 $ $0 $@
26157
64ff59ba 26158on `(hostname || uname -n) 2>/dev/null | sed 1q`
26159"
26160
d9898ee8 26161_ACEOF
26162
64ff59ba 26163cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 26164# Files that config.status was made for.
64ff59ba 26165config_files="$ac_config_files"
26166config_headers="$ac_config_headers"
26167config_commands="$ac_config_commands"
d9898ee8 26168
64ff59ba 26169_ACEOF
d9898ee8 26170
26171cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 26172ac_cs_usage="\
26173\`$as_me' instantiates files from templates according to the
26174current configuration.
26175
26176Usage: $0 [OPTIONS] [FILE]...
26177
26178 -h, --help print this help, then exit
64ff59ba 26179 -V, --version print version number and configuration settings, then exit
d9898ee8 26180 -q, --quiet do not print progress messages
26181 -d, --debug don't remove temporary files
26182 --recheck update $as_me by reconfiguring in the same conditions
26183 --file=FILE[:TEMPLATE]
26184 instantiate the configuration file FILE
26185 --header=FILE[:TEMPLATE]
26186 instantiate the configuration header FILE
26187
26188Configuration files:
26189$config_files
26190
26191Configuration headers:
26192$config_headers
26193
26194Configuration commands:
26195$config_commands
26196
26197Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 26198
64ff59ba 26199_ACEOF
d9898ee8 26200cat >>$CONFIG_STATUS <<_ACEOF
26201ac_cs_version="\\
0fde1ce3 26202courier-authlib config.status 0.61.0
64ff59ba 26203configured by $0, generated by GNU Autoconf 2.61,
26204 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 26205
64ff59ba 26206Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 26207This config.status script is free software; the Free Software Foundation
26208gives unlimited permission to copy, distribute and modify it."
64ff59ba 26209
26210ac_pwd='$ac_pwd'
26211srcdir='$srcdir'
26212INSTALL='$INSTALL'
26213MKDIR_P='$MKDIR_P'
d9898ee8 26214_ACEOF
26215
26216cat >>$CONFIG_STATUS <<\_ACEOF
26217# If no file are specified by the user, then we need to provide default
26218# value. By we need to know if files were specified by the user.
26219ac_need_defaults=:
26220while test $# != 0
26221do
26222 case $1 in
26223 --*=*)
64ff59ba 26224 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26225 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 26226 ac_shift=:
26227 ;;
64ff59ba 26228 *)
d9898ee8 26229 ac_option=$1
26230 ac_optarg=$2
26231 ac_shift=shift
26232 ;;
d9898ee8 26233 esac
26234
26235 case $ac_option in
26236 # Handling of the options.
d9898ee8 26237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26238 ac_cs_recheck=: ;;
64ff59ba 26239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26240 echo "$ac_cs_version"; exit ;;
26241 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 26242 debug=: ;;
26243 --file | --fil | --fi | --f )
26244 $ac_shift
26245 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26246 ac_need_defaults=false;;
26247 --header | --heade | --head | --hea )
26248 $ac_shift
26249 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26250 ac_need_defaults=false;;
64ff59ba 26251 --he | --h)
26252 # Conflict between --help and --header
26253 { echo "$as_me: error: ambiguous option: $1
26254Try \`$0 --help' for more information." >&2
26255 { (exit 1); exit 1; }; };;
26256 --help | --hel | -h )
26257 echo "$ac_cs_usage"; exit ;;
d9898ee8 26258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26260 ac_cs_silent=: ;;
26261
26262 # This is an error.
64ff59ba 26263 -*) { echo "$as_me: error: unrecognized option: $1
26264Try \`$0 --help' for more information." >&2
d9898ee8 26265 { (exit 1); exit 1; }; } ;;
26266
64ff59ba 26267 *) ac_config_targets="$ac_config_targets $1"
26268 ac_need_defaults=false ;;
d9898ee8 26269
26270 esac
26271 shift
26272done
26273
26274ac_configure_extra_args=
26275
26276if $ac_cs_silent; then
26277 exec 6>/dev/null
26278 ac_configure_extra_args="$ac_configure_extra_args --silent"
26279fi
26280
26281_ACEOF
26282cat >>$CONFIG_STATUS <<_ACEOF
26283if \$ac_cs_recheck; then
64ff59ba 26284 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26285 CONFIG_SHELL=$SHELL
26286 export CONFIG_SHELL
26287 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 26288fi
26289
26290_ACEOF
64ff59ba 26291cat >>$CONFIG_STATUS <<\_ACEOF
26292exec 5>>config.log
26293{
26294 echo
26295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26296## Running $as_me. ##
26297_ASBOX
26298 echo "$ac_log"
26299} >&5
d9898ee8 26300
64ff59ba 26301_ACEOF
d9898ee8 26302cat >>$CONFIG_STATUS <<_ACEOF
26303#
64ff59ba 26304# INIT-COMMANDS
d9898ee8 26305#
d9898ee8 26306AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26307
26308_ACEOF
26309
d9898ee8 26310cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 26311
26312# Handling of arguments.
d9898ee8 26313for ac_config_target in $ac_config_targets
26314do
64ff59ba 26315 case $ac_config_target in
26316 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
26317 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26318 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26319 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
26320 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
26321 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
26322 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
0fde1ce3 26323 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;;
64ff59ba 26324 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
26325 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
26326 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
26327 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
26328 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
26329 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
26330
d9898ee8 26331 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26332echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26333 { (exit 1); exit 1; }; };;
26334 esac
26335done
26336
64ff59ba 26337
d9898ee8 26338# If the user did not use the arguments to specify the items to instantiate,
26339# then the envvar interface is used. Set only those that are not.
26340# We use the long form for the default assignment because of an extremely
26341# bizarre bug on SunOS 4.1.3.
26342if $ac_need_defaults; then
26343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26344 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26345 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26346fi
26347
26348# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 26349# simply because there is no reason against having it here, and in addition,
d9898ee8 26350# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 26351# Hook for its removal unless debugging.
26352# Note that there is a small window in which the directory will not be cleaned:
26353# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 26354$debug ||
26355{
64ff59ba 26356 tmp=
26357 trap 'exit_status=$?
26358 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26359' 0
d9898ee8 26360 trap '{ (exit 1); exit 1; }' 1 2 13 15
26361}
d9898ee8 26362# Create a (secure) tmp directory for tmp files.
26363
26364{
64ff59ba 26365 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 26366 test -n "$tmp" && test -d "$tmp"
26367} ||
26368{
64ff59ba 26369 tmp=./conf$$-$RANDOM
26370 (umask 077 && mkdir "$tmp")
d9898ee8 26371} ||
26372{
26373 echo "$me: cannot create a temporary directory in ." >&2
26374 { (exit 1); exit 1; }
26375}
26376
d9898ee8 26377#
64ff59ba 26378# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 26379#
26380
26381# No need to generate the scripts if there are no CONFIG_FILES.
26382# This happens for instance when ./config.status config.h
64ff59ba 26383if test -n "$CONFIG_FILES"; then
26384
26385_ACEOF
26386
26387
26388
26389ac_delim='%!_!# '
26390for ac_last_try in false false false false false :; do
26391 cat >conf$$subs.sed <<_ACEOF
26392SHELL!$SHELL$ac_delim
26393PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26394PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26395PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26396PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26397PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26398PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26399exec_prefix!$exec_prefix$ac_delim
26400prefix!$prefix$ac_delim
26401program_transform_name!$program_transform_name$ac_delim
26402bindir!$bindir$ac_delim
26403sbindir!$sbindir$ac_delim
26404libexecdir!$libexecdir$ac_delim
26405datarootdir!$datarootdir$ac_delim
26406datadir!$datadir$ac_delim
26407sysconfdir!$sysconfdir$ac_delim
26408sharedstatedir!$sharedstatedir$ac_delim
26409localstatedir!$localstatedir$ac_delim
26410includedir!$includedir$ac_delim
26411oldincludedir!$oldincludedir$ac_delim
26412docdir!$docdir$ac_delim
26413infodir!$infodir$ac_delim
26414htmldir!$htmldir$ac_delim
26415dvidir!$dvidir$ac_delim
26416pdfdir!$pdfdir$ac_delim
26417psdir!$psdir$ac_delim
26418libdir!$libdir$ac_delim
26419localedir!$localedir$ac_delim
26420mandir!$mandir$ac_delim
26421DEFS!$DEFS$ac_delim
26422ECHO_C!$ECHO_C$ac_delim
26423ECHO_N!$ECHO_N$ac_delim
26424ECHO_T!$ECHO_T$ac_delim
26425LIBS!$LIBS$ac_delim
26426build_alias!$build_alias$ac_delim
26427host_alias!$host_alias$ac_delim
26428target_alias!$target_alias$ac_delim
26429INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26430INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26431INSTALL_DATA!$INSTALL_DATA$ac_delim
26432am__isrc!$am__isrc$ac_delim
26433CYGPATH_W!$CYGPATH_W$ac_delim
26434PACKAGE!$PACKAGE$ac_delim
26435VERSION!$VERSION$ac_delim
26436ACLOCAL!$ACLOCAL$ac_delim
26437AUTOCONF!$AUTOCONF$ac_delim
26438AUTOMAKE!$AUTOMAKE$ac_delim
26439AUTOHEADER!$AUTOHEADER$ac_delim
26440MAKEINFO!$MAKEINFO$ac_delim
26441install_sh!$install_sh$ac_delim
26442STRIP!$STRIP$ac_delim
26443INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26444mkdir_p!$mkdir_p$ac_delim
26445AWK!$AWK$ac_delim
26446SET_MAKE!$SET_MAKE$ac_delim
26447am__leading_dot!$am__leading_dot$ac_delim
26448AMTAR!$AMTAR$ac_delim
26449am__tar!$am__tar$ac_delim
26450am__untar!$am__untar$ac_delim
26451CC!$CC$ac_delim
26452CFLAGS!$CFLAGS$ac_delim
26453LDFLAGS!$LDFLAGS$ac_delim
26454CPPFLAGS!$CPPFLAGS$ac_delim
26455ac_ct_CC!$ac_ct_CC$ac_delim
26456EXEEXT!$EXEEXT$ac_delim
26457OBJEXT!$OBJEXT$ac_delim
26458DEPDIR!$DEPDIR$ac_delim
26459am__include!$am__include$ac_delim
26460am__quote!$am__quote$ac_delim
26461AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26462AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26463AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26464CCDEPMODE!$CCDEPMODE$ac_delim
26465am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26466am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26467CPP!$CPP$ac_delim
26468LN_S!$LN_S$ac_delim
26469SYSCONFTOOL_PERL!$SYSCONFTOOL_PERL$ac_delim
26470SYSCONFTOOL!$SYSCONFTOOL$ac_delim
26471build!$build$ac_delim
26472build_cpu!$build_cpu$ac_delim
26473build_vendor!$build_vendor$ac_delim
26474build_os!$build_os$ac_delim
26475host!$host$ac_delim
26476host_cpu!$host_cpu$ac_delim
26477host_vendor!$host_vendor$ac_delim
26478host_os!$host_os$ac_delim
26479SED!$SED$ac_delim
26480GREP!$GREP$ac_delim
26481EGREP!$EGREP$ac_delim
26482ECHO!$ECHO$ac_delim
26483AR!$AR$ac_delim
26484RANLIB!$RANLIB$ac_delim
26485CXX!$CXX$ac_delim
26486CXXFLAGS!$CXXFLAGS$ac_delim
26487ac_ct_CXX!$ac_ct_CXX$ac_delim
26488CXXDEPMODE!$CXXDEPMODE$ac_delim
26489_ACEOF
26490
26491 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26492 break
26493 elif $ac_last_try; then
26494 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26495echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26496 { (exit 1); exit 1; }; }
26497 else
26498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 26499 fi
64ff59ba 26500done
d9898ee8 26501
64ff59ba 26502ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26503if test -n "$ac_eof"; then
26504 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26505 ac_eof=`expr $ac_eof + 1`
26506fi
26507
26508cat >>$CONFIG_STATUS <<_ACEOF
26509cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26511_ACEOF
26512sed '
26513s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26514s/^/s,@/; s/!/@,|#_!!_#|/
26515:n
26516t n
26517s/'"$ac_delim"'$/,g/; t
26518s/$/\\/; p
26519N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26520' >>$CONFIG_STATUS <conf$$subs.sed
26521rm -f conf$$subs.sed
26522cat >>$CONFIG_STATUS <<_ACEOF
26523CEOF$ac_eof
26524_ACEOF
26525
26526
26527ac_delim='%!_!# '
26528for ac_last_try in false false false false false :; do
26529 cat >conf$$subs.sed <<_ACEOF
26530am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26531am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26532CXXCPP!$CXXCPP$ac_delim
26533F77!$F77$ac_delim
26534FFLAGS!$FFLAGS$ac_delim
26535ac_ct_F77!$ac_ct_F77$ac_delim
26536LIBTOOL!$LIBTOOL$ac_delim
26537LTDLINCL!$LTDLINCL$ac_delim
26538LIBLTDL!$LIBLTDL$ac_delim
26539PERL!$PERL$ac_delim
26540COURIERCONFIG!$COURIERCONFIG$ac_delim
26541EXPECT!$EXPECT$ac_delim
26542PASSWD!$PASSWD$ac_delim
64ff59ba 26543NETLIBS!$NETLIBS$ac_delim
64ff59ba 26544USE_GDBM!$USE_GDBM$ac_delim
26545USE_DB!$USE_DB$ac_delim
64ff59ba 26546dblibrary!$dblibrary$ac_delim
0fde1ce3 26547LIBGDBM!$LIBGDBM$ac_delim
26548LIBDB!$LIBDB$ac_delim
64ff59ba 26549LIBAUTHUSERDB!$LIBAUTHUSERDB$ac_delim
26550userdb!$userdb$ac_delim
26551LIBDL!$LIBDL$ac_delim
26552AUTHPAMCRYPT!$AUTHPAMCRYPT$ac_delim
26553LIBAUTHPAM!$LIBAUTHPAM$ac_delim
26554authldaprc!$authldaprc$ac_delim
26555LDAPLIBS!$LDAPLIBS$ac_delim
26556LIBAUTHLDAP!$LIBAUTHLDAP$ac_delim
26557HAVE_LDAP_TRUE!$HAVE_LDAP_TRUE$ac_delim
26558HAVE_LDAP_FALSE!$HAVE_LDAP_FALSE$ac_delim
26559SHADOWLIBS!$SHADOWLIBS$ac_delim
26560LIBAUTHSHADOW!$LIBAUTHSHADOW$ac_delim
26561LIBAUTHPWD!$LIBAUTHPWD$ac_delim
64ff59ba 26562authpgsqlrc!$authpgsqlrc$ac_delim
26563PG_CONFIG!$PG_CONFIG$ac_delim
26564PGSQL_LIBS!$PGSQL_LIBS$ac_delim
26565LIBAUTHPGSQL!$LIBAUTHPGSQL$ac_delim
26566HAVE_AUTHPGSQL_TRUE!$HAVE_AUTHPGSQL_TRUE$ac_delim
26567HAVE_AUTHPGSQL_FALSE!$HAVE_AUTHPGSQL_FALSE$ac_delim
26568authmysqlrc!$authmysqlrc$ac_delim
26569MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim
26570LIBAUTHMYSQL!$LIBAUTHMYSQL$ac_delim
26571MYSQL_LIBS!$MYSQL_LIBS$ac_delim
26572HAVE_AUTHMYSQL_TRUE!$HAVE_AUTHMYSQL_TRUE$ac_delim
26573HAVE_AUTHMYSQL_FALSE!$HAVE_AUTHMYSQL_FALSE$ac_delim
26574HAVE_CUSTOM_TRUE!$HAVE_CUSTOM_TRUE$ac_delim
26575HAVE_CUSTOM_FALSE!$HAVE_CUSTOM_FALSE$ac_delim
26576LIBAUTHCUSTOM!$LIBAUTHCUSTOM$ac_delim
26577authProg!$authProg$ac_delim
26578HAVE_PIPE_TRUE!$HAVE_PIPE_TRUE$ac_delim
26579HAVE_PIPE_FALSE!$HAVE_PIPE_FALSE$ac_delim
26580LIBAUTHPIPE!$LIBAUTHPIPE$ac_delim
26581CRYPTLIBS!$CRYPTLIBS$ac_delim
26582authdaemonrc!$authdaemonrc$ac_delim
26583authdaemonvar!$authdaemonvar$ac_delim
26584LIBM!$LIBM$ac_delim
26585mailuser!$mailuser$ac_delim
26586mailgroup!$mailgroup$ac_delim
64ff59ba 26587REPOSITORY!$REPOSITORY$ac_delim
26588HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
26589HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
26590subdirs!$subdirs$ac_delim
26591LIBOBJS!$LIBOBJS$ac_delim
26592LTLIBOBJS!$LTLIBOBJS$ac_delim
26593_ACEOF
26594
0fde1ce3 26595 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
64ff59ba 26596 break
26597 elif $ac_last_try; then
26598 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26599echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26600 { (exit 1); exit 1; }; }
26601 else
26602 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26603 fi
26604done
26605
26606ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26607if test -n "$ac_eof"; then
26608 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26609 ac_eof=`expr $ac_eof + 1`
26610fi
26611
26612cat >>$CONFIG_STATUS <<_ACEOF
26613cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26614/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26615_ACEOF
26616sed '
26617s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26618s/^/s,@/; s/!/@,|#_!!_#|/
26619:n
26620t n
26621s/'"$ac_delim"'$/,g/; t
26622s/$/\\/; p
26623N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26624' >>$CONFIG_STATUS <conf$$subs.sed
26625rm -f conf$$subs.sed
26626cat >>$CONFIG_STATUS <<_ACEOF
26627:end
26628s/|#_!!_#|//g
26629CEOF$ac_eof
d9898ee8 26630_ACEOF
64ff59ba 26631
26632
26633# VPATH may cause trouble with some makes, so we remove $(srcdir),
26634# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26635# trailing colons and then remove the whole line if VPATH becomes empty
26636# (actually we leave an empty line to preserve line numbers).
26637if test "x$srcdir" = x.; then
26638 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26639s/:*\$(srcdir):*/:/
26640s/:*\${srcdir}:*/:/
26641s/:*@srcdir@:*/:/
26642s/^\([^=]*=[ ]*\):*/\1/
26643s/:*$//
26644s/^[^=]*=[ ]*$//
26645}'
26646fi
26647
d9898ee8 26648cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 26649fi # test -n "$CONFIG_FILES"
26650
26651
26652for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26653do
26654 case $ac_tag in
26655 :[FHLC]) ac_mode=$ac_tag; continue;;
26656 esac
26657 case $ac_mode$ac_tag in
26658 :[FHL]*:*);;
26659 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26660echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26661 { (exit 1); exit 1; }; };;
26662 :[FH]-) ac_tag=-:-;;
26663 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26664 esac
26665 ac_save_IFS=$IFS
26666 IFS=:
26667 set x $ac_tag
26668 IFS=$ac_save_IFS
26669 shift
26670 ac_file=$1
26671 shift
26672
26673 case $ac_mode in
26674 :L) ac_source=$1;;
26675 :[FH])
26676 ac_file_inputs=
26677 for ac_f
26678 do
26679 case $ac_f in
26680 -) ac_f="$tmp/stdin";;
26681 *) # Look for the file first in the build tree, then in the source tree
26682 # (if the path is not absolute). The absolute path cannot be DOS-style,
26683 # because $ac_f cannot contain `:'.
26684 test -f "$ac_f" ||
26685 case $ac_f in
26686 [\\/$]*) false;;
26687 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26688 esac ||
26689 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26690echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26691 { (exit 1); exit 1; }; };;
26692 esac
26693 ac_file_inputs="$ac_file_inputs $ac_f"
26694 done
26695
26696 # Let's still pretend it is `configure' which instantiates (i.e., don't
26697 # use $as_me), people would be surprised to read:
26698 # /* config.h. Generated by config.status. */
26699 configure_input="Generated from "`IFS=:
26700 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26701 if test x"$ac_file" != x-; then
26702 configure_input="$ac_file. $configure_input"
26703 { echo "$as_me:$LINENO: creating $ac_file" >&5
26704echo "$as_me: creating $ac_file" >&6;}
26705 fi
26706
26707 case $ac_tag in
26708 *:-:* | *:-) cat >"$tmp/stdin";;
26709 esac
26710 ;;
d9898ee8 26711 esac
26712
64ff59ba 26713 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 26714$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26715 X"$ac_file" : 'X\(//\)[^/]' \| \
26716 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 26717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 26718echo X"$ac_file" |
64ff59ba 26719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26720 s//\1/
26721 q
26722 }
26723 /^X\(\/\/\)[^/].*/{
26724 s//\1/
26725 q
26726 }
26727 /^X\(\/\/\)$/{
26728 s//\1/
26729 q
26730 }
26731 /^X\(\/\).*/{
26732 s//\1/
26733 q
26734 }
26735 s/.*/./; q'`
26736 { as_dir="$ac_dir"
26737 case $as_dir in #(
26738 -*) as_dir=./$as_dir;;
26739 esac
26740 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 26741 as_dirs=
64ff59ba 26742 while :; do
26743 case $as_dir in #(
26744 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26745 *) as_qdir=$as_dir;;
26746 esac
26747 as_dirs="'$as_qdir' $as_dirs"
26748 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 26749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26750 X"$as_dir" : 'X\(//\)[^/]' \| \
26751 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 26752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 26753echo X"$as_dir" |
64ff59ba 26754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26755 s//\1/
26756 q
26757 }
26758 /^X\(\/\/\)[^/].*/{
26759 s//\1/
26760 q
26761 }
26762 /^X\(\/\/\)$/{
26763 s//\1/
26764 q
26765 }
26766 /^X\(\/\).*/{
26767 s//\1/
26768 q
26769 }
26770 s/.*/./; q'`
26771 test -d "$as_dir" && break
d9898ee8 26772 done
64ff59ba 26773 test -z "$as_dirs" || eval "mkdir $as_dirs"
26774 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26775echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 26776 { (exit 1); exit 1; }; }; }
d9898ee8 26777 ac_builddir=.
26778
64ff59ba 26779case "$ac_dir" in
26780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26781*)
d9898ee8 26782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 26783 # A ".." for each directory in $ac_dir_suffix.
26784 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26785 case $ac_top_builddir_sub in
26786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26788 esac ;;
26789esac
26790ac_abs_top_builddir=$ac_pwd
26791ac_abs_builddir=$ac_pwd$ac_dir_suffix
26792# for backward compatibility:
26793ac_top_builddir=$ac_top_build_prefix
d9898ee8 26794
26795case $srcdir in
64ff59ba 26796 .) # We are building in place.
d9898ee8 26797 ac_srcdir=.
64ff59ba 26798 ac_top_srcdir=$ac_top_builddir_sub
26799 ac_abs_top_srcdir=$ac_pwd ;;
26800 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 26801 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 26802 ac_top_srcdir=$srcdir
26803 ac_abs_top_srcdir=$srcdir ;;
26804 *) # Relative name.
26805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26806 ac_top_srcdir=$ac_top_build_prefix$srcdir
26807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 26808esac
64ff59ba 26809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 26810
d9898ee8 26811
64ff59ba 26812 case $ac_mode in
26813 :F)
26814 #
26815 # CONFIG_FILE
26816 #
d9898ee8 26817
26818 case $INSTALL in
26819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 26820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 26821 esac
64ff59ba 26822 ac_MKDIR_P=$MKDIR_P
26823 case $MKDIR_P in
26824 [\\/$]* | ?:[\\/]* ) ;;
26825 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26826 esac
26827_ACEOF
d9898ee8 26828
64ff59ba 26829cat >>$CONFIG_STATUS <<\_ACEOF
26830# If the template does not know about datarootdir, expand it.
26831# FIXME: This hack should be removed a few years after 2.60.
26832ac_datarootdir_hack=; ac_datarootdir_seen=
26833
26834case `sed -n '/datarootdir/ {
26835 p
26836 q
26837}
26838/@datadir@/p
26839/@docdir@/p
26840/@infodir@/p
26841/@localedir@/p
26842/@mandir@/p
26843' $ac_file_inputs` in
26844*datarootdir*) ac_datarootdir_seen=yes;;
26845*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26846 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26847echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 26848_ACEOF
64ff59ba 26849cat >>$CONFIG_STATUS <<_ACEOF
26850 ac_datarootdir_hack='
26851 s&@datadir@&$datadir&g
26852 s&@docdir@&$docdir&g
26853 s&@infodir@&$infodir&g
26854 s&@localedir@&$localedir&g
26855 s&@mandir@&$mandir&g
26856 s&\\\${datarootdir}&$datarootdir&g' ;;
26857esac
26858_ACEOF
26859
26860# Neutralize VPATH when `$srcdir' = `.'.
26861# Shell code in configure.ac might set extrasub.
26862# FIXME: do we really want to maintain this feature?
d9898ee8 26863cat >>$CONFIG_STATUS <<_ACEOF
26864 sed "$ac_vpsub
26865$extrasub
26866_ACEOF
26867cat >>$CONFIG_STATUS <<\_ACEOF
26868:t
26869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 26870s&@configure_input@&$configure_input&;t t
26871s&@top_builddir@&$ac_top_builddir_sub&;t t
26872s&@srcdir@&$ac_srcdir&;t t
26873s&@abs_srcdir@&$ac_abs_srcdir&;t t
26874s&@top_srcdir@&$ac_top_srcdir&;t t
26875s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26876s&@builddir@&$ac_builddir&;t t
26877s&@abs_builddir@&$ac_abs_builddir&;t t
26878s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26879s&@INSTALL@&$ac_INSTALL&;t t
26880s&@MKDIR_P@&$ac_MKDIR_P&;t t
26881$ac_datarootdir_hack
26882" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26883
26884test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26885 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26886 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26887 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26888which seems to be undefined. Please make sure it is defined." >&5
26889echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26890which seems to be undefined. Please make sure it is defined." >&2;}
26891
26892 rm -f "$tmp/stdin"
d9898ee8 26893 case $ac_file in
64ff59ba 26894 -) cat "$tmp/out"; rm -f "$tmp/out";;
26895 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 26896 esac
64ff59ba 26897 ;;
26898 :H)
26899 #
26900 # CONFIG_HEADER
26901 #
26902_ACEOF
d9898ee8 26903
64ff59ba 26904# Transform confdefs.h into a sed script `conftest.defines', that
26905# substitutes the proper values into config.h.in to produce config.h.
26906rm -f conftest.defines conftest.tail
26907# First, append a space to every undef/define line, to ease matching.
26908echo 's/$/ /' >conftest.defines
26909# Then, protect against being on the right side of a sed subst, or in
26910# an unquoted here document, in config.status. If some macros were
26911# called several times there might be several #defines for the same
26912# symbol, which is useless. But do not sort them, since the last
26913# AC_DEFINE must be honored.
26914ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26915# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26916# NAME is the cpp macro being defined, VALUE is the value it is being given.
26917# PARAMS is the parameter list in the macro definition--in most cases, it's
26918# just an empty string.
26919ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26920ac_dB='\\)[ (].*,\\1define\\2'
26921ac_dC=' '
26922ac_dD=' ,'
26923
26924uniq confdefs.h |
26925 sed -n '
26926 t rset
26927 :rset
26928 s/^[ ]*#[ ]*define[ ][ ]*//
26929 t ok
26930 d
26931 :ok
26932 s/[\\&,]/\\&/g
26933 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26934 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26935 ' >>conftest.defines
26936
26937# Remove the space that was appended to ease matching.
26938# Then replace #undef with comments. This is necessary, for
d9898ee8 26939# example, in the case of _POSIX_SOURCE, which is predefined and required
26940# on some systems where configure will not decide to define it.
64ff59ba 26941# (The regexp can be short, since the line contains either #define or #undef.)
26942echo 's/ $//
26943s,^[ #]*u.*,/* & */,' >>conftest.defines
26944
26945# Break up conftest.defines:
26946ac_max_sed_lines=50
26947
26948# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26949# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26950# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26951# et cetera.
26952ac_in='$ac_file_inputs'
26953ac_out='"$tmp/out1"'
26954ac_nxt='"$tmp/out2"'
26955
26956while :
d9898ee8 26957do
64ff59ba 26958 # Write a here document:
26959 cat >>$CONFIG_STATUS <<_ACEOF
26960 # First, check the format of the line:
26961 cat >"\$tmp/defines.sed" <<\\CEOF
26962/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26963/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26964b
26965:def
26966_ACEOF
26967 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 26968 echo 'CEOF
64ff59ba 26969 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26970 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26971 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26972 grep . conftest.tail >/dev/null || break
d9898ee8 26973 rm -f conftest.defines
26974 mv conftest.tail conftest.defines
26975done
64ff59ba 26976rm -f conftest.defines conftest.tail
d9898ee8 26977
64ff59ba 26978echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 26979cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 26980 if test x"$ac_file" != x-; then
64ff59ba 26981 echo "/* $configure_input */" >"$tmp/config.h"
26982 cat "$ac_result" >>"$tmp/config.h"
26983 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 26984 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26985echo "$as_me: $ac_file is unchanged" >&6;}
26986 else
d9898ee8 26987 rm -f $ac_file
64ff59ba 26988 mv "$tmp/config.h" $ac_file
d9898ee8 26989 fi
26990 else
64ff59ba 26991 echo "/* $configure_input */"
26992 cat "$ac_result"
d9898ee8 26993 fi
64ff59ba 26994 rm -f "$tmp/out12"
d9898ee8 26995# Compute $ac_file's index in $config_headers.
0fde1ce3 26996_am_arg=$ac_file
d9898ee8 26997_am_stamp_count=1
26998for _am_header in $config_headers :; do
26999 case $_am_header in
0fde1ce3 27000 $_am_arg | $_am_arg:* )
d9898ee8 27001 break ;;
27002 * )
27003 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27004 esac
27005done
0fde1ce3 27006echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27007$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27008 X"$_am_arg" : 'X\(//\)[^/]' \| \
27009 X"$_am_arg" : 'X\(//\)$' \| \
27010 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27011echo X"$_am_arg" |
64ff59ba 27012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27013 s//\1/
27014 q
27015 }
27016 /^X\(\/\/\)[^/].*/{
27017 s//\1/
27018 q
27019 }
27020 /^X\(\/\/\)$/{
27021 s//\1/
27022 q
27023 }
27024 /^X\(\/\).*/{
27025 s//\1/
27026 q
27027 }
27028 s/.*/./; q'`/stamp-h$_am_stamp_count
27029 ;;
d9898ee8 27030
64ff59ba 27031 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27032echo "$as_me: executing $ac_file commands" >&6;}
27033 ;;
27034 esac
d9898ee8 27035
27036
64ff59ba 27037 case $ac_file$ac_mode in
27038 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 27039 # Strip MF so we end up with the name of the file.
27040 mf=`echo "$mf" | sed -e 's/:.*$//'`
27041 # Check whether this is an Automake generated Makefile or not.
27042 # We used to match only the files named `Makefile.in', but
27043 # some people rename them; so instead we look at the file content.
27044 # Grep'ing the first line is not enough: some people post-process
27045 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 27046 # Grep'ing the whole file is not good either: AIX grep has a line
27047 # limit of 2048, but all sed's we know have understand at least 4000.
0fde1ce3 27048 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
64ff59ba 27049 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 27050$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27051 X"$mf" : 'X\(//\)[^/]' \| \
27052 X"$mf" : 'X\(//\)$' \| \
64ff59ba 27053 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27054echo X"$mf" |
64ff59ba 27055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27056 s//\1/
27057 q
27058 }
27059 /^X\(\/\/\)[^/].*/{
27060 s//\1/
27061 q
27062 }
27063 /^X\(\/\/\)$/{
27064 s//\1/
27065 q
27066 }
27067 /^X\(\/\).*/{
27068 s//\1/
27069 q
27070 }
27071 s/.*/./; q'`
d9898ee8 27072 else
27073 continue
27074 fi
27075 # Extract the definition of DEPDIR, am__include, and am__quote
27076 # from the Makefile without running `make'.
27077 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27078 test -z "$DEPDIR" && continue
27079 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27080 test -z "am__include" && continue
27081 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27082 # When using ansi2knr, U may be empty or an underscore; expand it
27083 U=`sed -n 's/^U = //p' < "$mf"`
27084 # Find all dependency output files, they are included files with
27085 # $(DEPDIR) in their names. We invoke sed twice because it is the
27086 # simplest approach to changing $(DEPDIR) to its actual value in the
27087 # expansion.
27088 for file in `sed -n "
27089 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27090 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27091 # Make sure the directory exists.
27092 test -f "$dirpart/$file" && continue
64ff59ba 27093 fdir=`$as_dirname -- "$file" ||
d9898ee8 27094$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27095 X"$file" : 'X\(//\)[^/]' \| \
27096 X"$file" : 'X\(//\)$' \| \
64ff59ba 27097 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27098echo X"$file" |
64ff59ba 27099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27100 s//\1/
27101 q
27102 }
27103 /^X\(\/\/\)[^/].*/{
27104 s//\1/
27105 q
27106 }
27107 /^X\(\/\/\)$/{
27108 s//\1/
27109 q
27110 }
27111 /^X\(\/\).*/{
27112 s//\1/
27113 q
27114 }
27115 s/.*/./; q'`
27116 { as_dir=$dirpart/$fdir
27117 case $as_dir in #(
27118 -*) as_dir=./$as_dir;;
27119 esac
27120 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 27121 as_dirs=
64ff59ba 27122 while :; do
27123 case $as_dir in #(
27124 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27125 *) as_qdir=$as_dir;;
27126 esac
27127 as_dirs="'$as_qdir' $as_dirs"
27128 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 27129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27130 X"$as_dir" : 'X\(//\)[^/]' \| \
27131 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 27132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27133echo X"$as_dir" |
64ff59ba 27134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27135 s//\1/
27136 q
27137 }
27138 /^X\(\/\/\)[^/].*/{
27139 s//\1/
27140 q
27141 }
27142 /^X\(\/\/\)$/{
27143 s//\1/
27144 q
27145 }
27146 /^X\(\/\).*/{
27147 s//\1/
27148 q
27149 }
27150 s/.*/./; q'`
27151 test -d "$as_dir" && break
d9898ee8 27152 done
64ff59ba 27153 test -z "$as_dirs" || eval "mkdir $as_dirs"
27154 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27155echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 27156 { (exit 1); exit 1; }; }; }
d9898ee8 27157 # echo "creating $dirpart/$file"
27158 echo '# dummy' > "$dirpart/$file"
27159 done
27160done
27161 ;;
64ff59ba 27162
d9898ee8 27163 esac
64ff59ba 27164done # for ac_tag
d9898ee8 27165
d9898ee8 27166
27167{ (exit 0); exit 0; }
27168_ACEOF
27169chmod +x $CONFIG_STATUS
27170ac_clean_files=$ac_clean_files_save
27171
27172
27173# configure is writing to config.log, and then calls config.status.
27174# config.status does its own redirection, appending to config.log.
27175# Unfortunately, on DOS this fails, as config.log is still kept open
27176# by configure, so config.status won't be able to write to it; its
27177# output is simply discarded. So we exec the FD to /dev/null,
27178# effectively closing config.log, so it can be properly (re)opened and
27179# appended to by config.status. When coming back to configure, we
27180# need to make the FD available again.
27181if test "$no_create" != yes; then
27182 ac_cs_success=:
27183 ac_config_status_args=
27184 test "$silent" = yes &&
27185 ac_config_status_args="$ac_config_status_args --quiet"
27186 exec 5>/dev/null
27187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27188 exec 5>>config.log
27189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27190 # would make configure fail if this is the last instruction.
27191 $ac_cs_success || { (exit 1); exit 1; }
27192fi
27193
27194#
27195# CONFIG_SUBDIRS section.
27196#
27197if test "$no_recursion" != yes; then
27198
27199 # Remove --cache-file and --srcdir arguments so they do not pile up.
27200 ac_sub_configure_args=
27201 ac_prev=
64ff59ba 27202 eval "set x $ac_configure_args"
27203 shift
27204 for ac_arg
27205 do
d9898ee8 27206 if test -n "$ac_prev"; then
27207 ac_prev=
27208 continue
27209 fi
27210 case $ac_arg in
27211 -cache-file | --cache-file | --cache-fil | --cache-fi \
27212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27213 ac_prev=cache_file ;;
27214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27216 | --c=*)
27217 ;;
27218 --config-cache | -C)
27219 ;;
27220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27221 ac_prev=srcdir ;;
27222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27223 ;;
27224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27225 ac_prev=prefix ;;
27226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27227 ;;
64ff59ba 27228 *)
27229 case $ac_arg in
27230 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27231 esac
27232 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
d9898ee8 27233 esac
27234 done
27235
27236 # Always prepend --prefix to ensure using the same prefix
27237 # in subdir configurations.
64ff59ba 27238 ac_arg="--prefix=$prefix"
27239 case $ac_arg in
27240 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27241 esac
27242 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27243
27244 # Pass --silent
27245 if test "$silent" = yes; then
27246 ac_sub_configure_args="--silent $ac_sub_configure_args"
27247 fi
d9898ee8 27248
27249 ac_popdir=`pwd`
27250 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27251
27252 # Do not complain, so a configure script can configure whichever
27253 # parts of a large source tree are present.
64ff59ba 27254 test -d "$srcdir/$ac_dir" || continue
27255
27256 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27257 echo "$as_me:$LINENO: $ac_msg" >&5
27258 echo "$ac_msg" >&6
27259 { as_dir="$ac_dir"
27260 case $as_dir in #(
27261 -*) as_dir=./$as_dir;;
27262 esac
27263 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 27264 as_dirs=
64ff59ba 27265 while :; do
27266 case $as_dir in #(
27267 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27268 *) as_qdir=$as_dir;;
27269 esac
27270 as_dirs="'$as_qdir' $as_dirs"
27271 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 27272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27273 X"$as_dir" : 'X\(//\)[^/]' \| \
27274 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 27275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27276echo X"$as_dir" |
64ff59ba 27277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27278 s//\1/
27279 q
27280 }
27281 /^X\(\/\/\)[^/].*/{
27282 s//\1/
27283 q
27284 }
27285 /^X\(\/\/\)$/{
27286 s//\1/
27287 q
27288 }
27289 /^X\(\/\).*/{
27290 s//\1/
27291 q
27292 }
27293 s/.*/./; q'`
27294 test -d "$as_dir" && break
d9898ee8 27295 done
64ff59ba 27296 test -z "$as_dirs" || eval "mkdir $as_dirs"
27297 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27298echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 27299 { (exit 1); exit 1; }; }; }
d9898ee8 27300 ac_builddir=.
27301
64ff59ba 27302case "$ac_dir" in
27303.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27304*)
d9898ee8 27305 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 27306 # A ".." for each directory in $ac_dir_suffix.
27307 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27308 case $ac_top_builddir_sub in
27309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27311 esac ;;
27312esac
27313ac_abs_top_builddir=$ac_pwd
27314ac_abs_builddir=$ac_pwd$ac_dir_suffix
27315# for backward compatibility:
27316ac_top_builddir=$ac_top_build_prefix
d9898ee8 27317
27318case $srcdir in
64ff59ba 27319 .) # We are building in place.
d9898ee8 27320 ac_srcdir=.
64ff59ba 27321 ac_top_srcdir=$ac_top_builddir_sub
27322 ac_abs_top_srcdir=$ac_pwd ;;
27323 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 27324 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 27325 ac_top_srcdir=$srcdir
27326 ac_abs_top_srcdir=$srcdir ;;
27327 *) # Relative name.
27328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27329 ac_top_srcdir=$ac_top_build_prefix$srcdir
27330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 27331esac
64ff59ba 27332ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 27333
27334
64ff59ba 27335 cd "$ac_dir"
d9898ee8 27336
27337 # Check for guested configure; otherwise get Cygnus style configure.
64ff59ba 27338 if test -f "$ac_srcdir/configure.gnu"; then
27339 ac_sub_configure=$ac_srcdir/configure.gnu
27340 elif test -f "$ac_srcdir/configure"; then
27341 ac_sub_configure=$ac_srcdir/configure
27342 elif test -f "$ac_srcdir/configure.in"; then
27343 # This should be Cygnus configure.
27344 ac_sub_configure=$ac_aux_dir/configure
d9898ee8 27345 else
27346 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27347echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27348 ac_sub_configure=
27349 fi
27350
27351 # The recursion is here.
27352 if test -n "$ac_sub_configure"; then
27353 # Make the cache file name correct relative to the subdirectory.
27354 case $cache_file in
27355 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
64ff59ba 27356 *) # Relative name.
27357 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
d9898ee8 27358 esac
27359
64ff59ba 27360 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27361echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
d9898ee8 27362 # The eval makes quoting arguments work.
64ff59ba 27363 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27364 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d9898ee8 27365 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27366echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27367 { (exit 1); exit 1; }; }
27368 fi
27369
64ff59ba 27370 cd "$ac_popdir"
d9898ee8 27371 done
27372fi
27373
27374