Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for courier-authlib 0.61.0.
4 #
5 # Report bugs to <courier-imap@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if 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
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
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.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
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.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if 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; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for 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
109 do
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
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
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'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$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 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
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
234 done
235 IFS=$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
242 if 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
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
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
263 if 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
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
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+"$@"}
350 fi
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; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$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" || {
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
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.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
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
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `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';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
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 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_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.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
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
593 if test -z "$ECHO"; then
594 if 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
605 fi
606
607 if 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 :
611 else
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
691 fi
692 fi
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.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='courier-authlib'
730 PACKAGE_TARNAME='courier-authlib'
731 PACKAGE_VERSION='0.61.0'
732 PACKAGE_STRING='courier-authlib 0.61.0'
733 PACKAGE_BUGREPORT='courier-imap@lists.sourceforge.net'
734
735 ac_unique_file="courierauth.h"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 CPP
848 LN_S
849 SYSCONFTOOL_PERL
850 SYSCONFTOOL
851 build
852 build_cpu
853 build_vendor
854 build_os
855 host
856 host_cpu
857 host_vendor
858 host_os
859 SED
860 GREP
861 EGREP
862 ECHO
863 AR
864 RANLIB
865 CXX
866 CXXFLAGS
867 ac_ct_CXX
868 CXXDEPMODE
869 am__fastdepCXX_TRUE
870 am__fastdepCXX_FALSE
871 CXXCPP
872 F77
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 LTDLINCL
877 LIBLTDL
878 PERL
879 COURIERCONFIG
880 EXPECT
881 PASSWD
882 NETLIBS
883 USE_GDBM
884 USE_DB
885 dblibrary
886 LIBGDBM
887 LIBDB
888 LIBAUTHUSERDB
889 userdb
890 LIBDL
891 AUTHPAMCRYPT
892 LIBAUTHPAM
893 authldaprc
894 LDAPLIBS
895 LIBAUTHLDAP
896 HAVE_LDAP_TRUE
897 HAVE_LDAP_FALSE
898 SHADOWLIBS
899 LIBAUTHSHADOW
900 LIBAUTHPWD
901 authpgsqlrc
902 PG_CONFIG
903 PGSQL_LIBS
904 LIBAUTHPGSQL
905 HAVE_AUTHPGSQL_TRUE
906 HAVE_AUTHPGSQL_FALSE
907 authmysqlrc
908 MYSQL_CONFIG
909 LIBAUTHMYSQL
910 MYSQL_LIBS
911 HAVE_AUTHMYSQL_TRUE
912 HAVE_AUTHMYSQL_FALSE
913 HAVE_CUSTOM_TRUE
914 HAVE_CUSTOM_FALSE
915 LIBAUTHCUSTOM
916 authProg
917 HAVE_PIPE_TRUE
918 HAVE_PIPE_FALSE
919 LIBAUTHPIPE
920 CRYPTLIBS
921 authdaemonrc
922 authdaemonvar
923 LIBM
924 mailuser
925 mailgroup
926 REPOSITORY
927 HAVE_SGML_TRUE
928 HAVE_SGML_FALSE
929 subdirs
930 LIBOBJS
931 LTLIBOBJS'
932 ac_subst_files=''
933 ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 LIBS
940 CPPFLAGS
941 CPP
942 CXX
943 CXXFLAGS
944 CCC
945 CXXCPP
946 F77
947 FFLAGS'
948 ac_subdirs_all='libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog'
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_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.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
995
996 ac_prev=
997 ac_dashdash=
998 for ac_option
999 do
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1003 ac_prev=
1004 continue
1005 fi
1006
1007 case $ac_option in
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 *) ac_optarg=yes ;;
1010 esac
1011
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014 case $ac_dashdash$ac_option in
1015 --)
1016 ac_dashdash=yes ;;
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
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1042
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
1050 -disable-* | --disable-*)
1051 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055 { (exit 1); exit 1; }; }
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 ;;
1068
1069 -enable-* | --enable-*)
1070 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076 eval enable_$ac_feature=\$ac_optarg ;;
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
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
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
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1137
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
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
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
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.
1269 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273 eval with_$ac_package=\$ac_optarg ;;
1274
1275 -without-* | --without-*)
1276 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282 eval with_$ac_package=no ;;
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
1303 Try \`$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; }; }
1313 eval $ac_envvar=\$ac_optarg
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
1325 done
1326
1327 if 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; }; }
1331 fi
1332
1333 # Be sure to have absolute directory names.
1334 for 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
1338 do
1339 eval ac_val=\$$ac_var
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
1346 done
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.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if 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
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 { echo "$as_me: error: Working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377 test "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
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$0" : 'X\(//\)[^/]' \| \
1389 X"$0" : 'X\(//\)$' \| \
1390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1391 echo X"$0" |
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'`
1409 srcdir=$ac_confdir
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 srcdir=..
1412 fi
1413 else
1414 ac_srcdir_defaulted=no
1415 fi
1416 if 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
1419 { (exit 1); exit 1; }; }
1420 fi
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424 { (exit 1); exit 1; }; }
1425 pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429 fi
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.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for 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}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if 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
1450 \`configure' configures courier-authlib 0.61.0 to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
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
1470 Installation 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
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine 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]
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]
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]
1503 _ACEOF
1504
1505 cat <<\_ACEOF
1506
1507 Program 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
1512 System 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
1516 fi
1517
1518 if test -n "$ac_init_help"; then
1519 case $ac_init_help in
1520 short | recursive ) echo "Configuration of courier-authlib 0.61.0:";;
1521 esac
1522 cat <<\_ACEOF
1523
1524 Optional 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
1529 --enable-shared[=PKGS] build shared libraries [default=yes]
1530 --enable-static[=PKGS] build static libraries [default=yes]
1531 --enable-fast-install[=PKGS]
1532 optimize for fast installation [default=yes]
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534
1535 Optional 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]
1541 --with-tags[=TAGS] include additional configurations [automatic]
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
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
1576 Some 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>
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>
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
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to <courier-imap@lists.sourceforge.net>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" || continue
1603 ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
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 ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1634 esac
1635 ac_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
1645 else
1646 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 courier-authlib configure 0.61.0
1656 generated by GNU Autoconf 2.61
1657
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663 exit
1664 fi
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1668
1669 It was created by courier-authlib $as_me 0.61.0, which was
1670 generated by GNU Autoconf 2.61. Invocation command line was
1671
1672 $ $0 $@
1673
1674 _ACEOF
1675 exec 5>>config.log
1676 {
1677 cat <<_ASUNAME
1678 ## --------- ##
1679 ## Platform. ##
1680 ## --------- ##
1681
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -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`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
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
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1709
1710 } >&5
1711
1712 cat >&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.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1732 do
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 ;;
1740 *\'*)
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
1762 ac_configure_args="$ac_configure_args '$ac_arg'"
1763 ;;
1764 esac
1765 done
1766 done
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.
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.
1775 trap '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,
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
1794 echo "$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
1802 (set) 2>&1 |
1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
1805 sed -n \
1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808 ;; #(
1809 *)
1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1811 ;;
1812 esac |
1813 sort
1814 )
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
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'\''"
1830 done | sort
1831 echo
1832
1833 if test -n "$ac_subst_files"; then
1834 cat <<\_ASBOX
1835 ## ------------------- ##
1836 ## File substitutions. ##
1837 ## ------------------- ##
1838 _ASBOX
1839 echo
1840 for ac_var in $ac_subst_files
1841 do
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'\''"
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
1858 cat confdefs.h
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
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 exit $exit_status
1868 ' 0
1869 for ac_signal in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 done
1872 ac_signal=0
1873
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest* confdefs.h
1876
1877 # Predefined preprocessor variables.
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_NAME "$PACKAGE_NAME"
1881 _ACEOF
1882
1883
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 _ACEOF
1887
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_STRING "$PACKAGE_STRING"
1896 _ACEOF
1897
1898
1899 cat >>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.
1906 if test -n "$CONFIG_SITE"; then
1907 set x "$CONFIG_SITE"
1908 elif test "x$prefix" != xNONE; then
1909 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1910 else
1911 set x "$ac_default_prefix/share/config.site" \
1912 "$ac_default_prefix/etc/config.site"
1913 fi
1914 shift
1915 for ac_site_file
1916 do
1917 if test -r "$ac_site_file"; then
1918 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1921 . "$ac_site_file"
1922 fi
1923 done
1924
1925 if 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
1930 echo "$as_me: loading cache $cache_file" >&6;}
1931 case $cache_file in
1932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933 *) . "./$cache_file";;
1934 esac
1935 fi
1936 else
1937 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 echo "$as_me: creating cache $cache_file" >&6;}
1939 >$cache_file
1940 fi
1941
1942 # Check that the precious variables saved in the cache have kept the same
1943 # value.
1944 ac_cache_corrupted=false
1945 for ac_var in $ac_precious_vars; do
1946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1947 eval ac_new_set=\$ac_env_${ac_var}_set
1948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1949 eval ac_new_val=\$ac_env_${ac_var}_value
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
1953 echo "$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
1957 echo "$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
1963 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1964 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1965 echo "$as_me: former value: $ac_old_val" >&2;}
1966 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1967 echo "$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
1974 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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
1982 done
1983 if $ac_cache_corrupted; then
1984 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985 echo "$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
1987 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988 { (exit 1); exit 1; }; }
1989 fi
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020
2021
2022
2023
2024 ac_config_headers="$ac_config_headers courier_auth_config.h"
2025
2026
2027 am__api_version='1.10'
2028
2029 ac_aux_dir=
2030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2031 if test -f "$ac_dir/install-sh"; then
2032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/install-sh -c"
2034 break
2035 elif test -f "$ac_dir/install.sh"; then
2036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/install.sh -c"
2038 break
2039 elif test -f "$ac_dir/shtool"; then
2040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/shtool install -c"
2042 break
2043 fi
2044 done
2045 if test -z "$ac_aux_dir"; then
2046 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2047 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2048 { (exit 1); exit 1; }; }
2049 fi
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.
2055 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2058
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.
2073 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2075 if test -z "$INSTALL"; then
2076 if test "${ac_cv_path_install+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 # Account for people who put trailing slashes in PATH elements.
2085 case $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
2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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 ;;
2113 esac
2114 done
2115 IFS=$as_save_IFS
2116
2117
2118 fi
2119 if test "${ac_cv_path_install+set}" = set; then
2120 INSTALL=$ac_cv_path_install
2121 else
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
2124 # break other packages using the cache if that directory is
2125 # removed, or if the value is a relative name.
2126 INSTALL=$ac_install_sh
2127 fi
2128 fi
2129 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2130 echo "${ECHO_T}$INSTALL" >&6; }
2131
2132 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2133 # It thinks the first close brace ends the variable substitution.
2134 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2135
2136 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2137
2138 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2139
2140 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2141 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2142 # Just in case
2143 sleep 1
2144 echo 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).
2150 if (
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
2165 alias in your environment" >&5
2166 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2167 alias in your environment" >&2;}
2168 { (exit 1); exit 1; }; }
2169 fi
2170
2171 test "$2" = conftest.file
2172 )
2173 then
2174 # Ok.
2175 :
2176 else
2177 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2178 Check your system clock" >&5
2179 echo "$as_me: error: newly created file is older than distributed files!
2180 Check your system clock" >&2;}
2181 { (exit 1); exit 1; }; }
2182 fi
2183 { echo "$as_me:$LINENO: result: yes" >&5
2184 echo "${ECHO_T}yes" >&6; }
2185 test "$program_prefix" != NONE &&
2186 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2187 # Use a double $ so make ignores it.
2188 test "$program_suffix" != NONE &&
2189 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2190 # Double any \ or $. echo might interpret backslashes.
2191 # By default was `s,x,x', remove it if useless.
2192 cat <<\_ACEOF >conftest.sed
2193 s/[\\$]/&&/g;s/;s,x,x,$//
2194 _ACEOF
2195 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2196 rm -f conftest.sed
2197
2198 # expand $ac_aux_dir to an absolute path
2199 am_aux_dir=`cd $ac_aux_dir && pwd`
2200
2201 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2202 # Use eval to expand $SHELL
2203 if eval "$MISSING --run true"; then
2204 am_missing_run="$MISSING --run "
2205 else
2206 am_missing_run=
2207 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2208 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2209 fi
2210
2211 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2212 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2213 if test -z "$MKDIR_P"; then
2214 if test "${ac_cv_path_mkdir+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2219 do
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
2234 done
2235 IFS=$as_save_IFS
2236
2237 fi
2238
2239 if test "${ac_cv_path_mkdir+set}" = set; then
2240 MKDIR_P="$ac_cv_path_mkdir -p"
2241 else
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"
2248 fi
2249 fi
2250 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2251 echo "${ECHO_T}$MKDIR_P" >&6; }
2252
2253 mkdir_p="$MKDIR_P"
2254 case $mkdir_p in
2255 [\\/$]* | ?:[\\/]*) ;;
2256 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2257 esac
2258
2259 for ac_prog in gawk mawk nawk awk
2260 do
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2
2263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265 if test "${ac_cv_prog_AWK+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 if test -n "$AWK"; then
2269 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2282 done
2283 done
2284 IFS=$as_save_IFS
2285
2286 fi
2287 fi
2288 AWK=$ac_cv_prog_AWK
2289 if test -n "$AWK"; then
2290 { echo "$as_me:$LINENO: result: $AWK" >&5
2291 echo "${ECHO_T}$AWK" >&6; }
2292 else
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295 fi
2296
2297
2298 test -n "$AWK" && break
2299 done
2300
2301 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2302 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2303 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2304 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.make <<\_ACEOF
2308 SHELL = /bin/sh
2309 all:
2310 @echo '@@@%%%=$(MAKE)=@@@%%%'
2311 _ACEOF
2312 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2313 case `${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;;
2318 esac
2319 rm -f conftest.make
2320 fi
2321 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2322 { echo "$as_me:$LINENO: result: yes" >&5
2323 echo "${ECHO_T}yes" >&6; }
2324 SET_MAKE=
2325 else
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2328 SET_MAKE="MAKE=${MAKE-make}"
2329 fi
2330
2331 rm -rf .tst 2>/dev/null
2332 mkdir .tst 2>/dev/null
2333 if test -d .tst; then
2334 am__leading_dot=.
2335 else
2336 am__leading_dot=_
2337 fi
2338 rmdir .tst 2>/dev/null
2339
2340 if 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
2347 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2348 { (exit 1); exit 1; }; }
2349 fi
2350 fi
2351
2352 # test whether we have cygpath
2353 if 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
2359 fi
2360
2361
2362 # Define the identity of the package.
2363 PACKAGE='courier-authlib'
2364 VERSION='0.61.0'
2365
2366
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE "$PACKAGE"
2369 _ACEOF
2370
2371
2372 cat >>confdefs.h <<_ACEOF
2373 #define VERSION "$VERSION"
2374 _ACEOF
2375
2376 # Some tools Automake needs.
2377
2378 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2379
2380
2381 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2382
2383
2384 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2385
2386
2387 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2388
2389
2390 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2391
2392 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
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.
2398 if 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.
2401 set dummy ${ac_tool_prefix}strip; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_STRIP+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 if test -n "$STRIP"; then
2408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2421 done
2422 done
2423 IFS=$as_save_IFS
2424
2425 fi
2426 fi
2427 STRIP=$ac_cv_prog_STRIP
2428 if test -n "$STRIP"; then
2429 { echo "$as_me:$LINENO: result: $STRIP" >&5
2430 echo "${ECHO_T}$STRIP" >&6; }
2431 else
2432 { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2434 fi
2435
2436
2437 fi
2438 if 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.
2441 set dummy strip; ac_word=$2
2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447 if test -n "$ac_ct_STRIP"; then
2448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2461 done
2462 done
2463 IFS=$as_save_IFS
2464
2465 fi
2466 fi
2467 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2468 if test -n "$ac_ct_STRIP"; then
2469 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2470 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2471 else
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2474 fi
2475
2476 if test "x$ac_ct_STRIP" = x; then
2477 STRIP=":"
2478 else
2479 case $cross_compiling:$ac_tool_warned in
2480 yes:)
2481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet. If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&5
2484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet. If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2487 ac_tool_warned=yes ;;
2488 esac
2489 STRIP=$ac_ct_STRIP
2490 fi
2491 else
2492 STRIP="$ac_cv_prog_STRIP"
2493 fi
2494
2495 fi
2496 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
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
2502 AMTAR=${AMTAR-"${am_missing_run}tar"}
2503
2504 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2505
2506
2507
2508
2509
2510 >confdefs.h # Kill PACKAGE_ macros
2511
2512 LPATH="$PATH:/usr/local/bin"
2513
2514 for ac_prog in gawk mawk nawk awk
2515 do
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_AWK+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$AWK"; then
2524 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2537 done
2538 done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 AWK=$ac_cv_prog_AWK
2544 if test -n "$AWK"; then
2545 { echo "$as_me:$LINENO: result: $AWK" >&5
2546 echo "${ECHO_T}$AWK" >&6; }
2547 else
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2550 fi
2551
2552
2553 test -n "$AWK" && break
2554 done
2555
2556 ac_ext=c
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561 if 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.
2563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591 { echo "$as_me:$LINENO: result: $CC" >&5
2592 echo "${ECHO_T}$CC" >&6; }
2593 else
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2596 fi
2597
2598
2599 fi
2600 if 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.
2603 set dummy gcc; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 echo "${ECHO_T}$ac_ct_CC" >&6; }
2633 else
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2636 fi
2637
2638 if test "x$ac_ct_CC" = x; then
2639 CC=""
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642 yes:)
2643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2644 whose name does not start with the host triplet. If you think this
2645 configuration is useful to you, please write to autoconf@gnu.org." >&5
2646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet. If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2649 ac_tool_warned=yes ;;
2650 esac
2651 CC=$ac_ct_CC
2652 fi
2653 else
2654 CC="$ac_cv_prog_CC"
2655 fi
2656
2657 if test -z "$CC"; then
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.
2660 set dummy ${ac_tool_prefix}cc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688 { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2690 else
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2693 fi
2694
2695
2696 fi
2697 fi
2698 if test -z "$CC"; then
2699 # Extract the first word of "cc", so it can be a program name with args.
2700 set dummy cc; ac_word=$2
2701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709 ac_prog_rejected=no
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 if 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
2740 fi
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 { echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6; }
2747 else
2748 { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2750 fi
2751
2752
2753 fi
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 for ac_prog in cl.exe
2757 do
2758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2762 if test "${ac_cv_prog_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 CC=$ac_cv_prog_CC
2786 if test -n "$CC"; then
2787 { echo "$as_me:$LINENO: result: $CC" >&5
2788 echo "${ECHO_T}$CC" >&6; }
2789 else
2790 { echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6; }
2792 fi
2793
2794
2795 test -n "$CC" && break
2796 done
2797 fi
2798 if test -z "$CC"; then
2799 ac_ct_CC=$CC
2800 for ac_prog in cl.exe
2801 do
2802 # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832 echo "${ECHO_T}$ac_ct_CC" >&6; }
2833 else
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2836 fi
2837
2838
2839 test -n "$ac_ct_CC" && break
2840 done
2841
2842 if test "x$ac_ct_CC" = x; then
2843 CC=""
2844 else
2845 case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2848 whose name does not start with the host triplet. If you think this
2849 configuration is useful to you, please write to autoconf@gnu.org." >&5
2850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2851 whose name does not start with the host triplet. If you think this
2852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855 CC=$ac_ct_CC
2856 fi
2857 fi
2858
2859 fi
2860
2861
2862 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: no acceptable C compiler found in \$PATH
2865 See \`config.log' for more details." >&2;}
2866 { (exit 1); exit 1; }; }
2867
2868 # Provide some information about the compiler.
2869 echo "$as_me:$LINENO: checking for C compiler version" >&5
2870 ac_compiler=`set X $ac_compile; echo $2`
2871 { (ac_try="$ac_compiler --version >&5"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compiler --version >&5") 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881 { (ac_try="$ac_compiler -v >&5"
2882 case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler -v >&5") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891 { (ac_try="$ac_compiler -V >&5"
2892 case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -V >&5") 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2908
2909 int
2910 main ()
2911 {
2912
2913 ;
2914 return 0;
2915 }
2916 _ACEOF
2917 ac_clean_files_save=$ac_clean_files
2918 ac_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.
2922 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2923 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2924 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
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.
2929 ac_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.
2934 ac_rmfiles=
2935 for ac_file in $ac_files
2936 do
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
2941 done
2942 rm -f $ac_rmfiles
2943
2944 if { (ac_try="$ac_link_default"
2945 case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_link_default") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; then
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.
2959 for ac_file in $ac_files ''
2960 do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2964 ;;
2965 [ab].out )
2966 # We found the default executable, but exeext='' is most
2967 # certainly right.
2968 break;;
2969 *.* )
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.
2979 break;;
2980 * )
2981 break;;
2982 esac
2983 done
2984 test "$ac_cv_exeext" = no && ac_cv_exeext=
2985
2986 else
2987 ac_file=''
2988 fi
2989
2990 { echo "$as_me:$LINENO: result: $ac_file" >&5
2991 echo "${ECHO_T}$ac_file" >&6; }
2992 if test -z "$ac_file"; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2997 See \`config.log' for more details." >&5
2998 echo "$as_me: error: C compiler cannot create executables
2999 See \`config.log' for more details." >&2;}
3000 { (exit 77); exit 77; }; }
3001 fi
3002
3003 ac_exeext=$ac_cv_exeext
3004
3005 # Check that the compiler produces executables we can run. If not, either
3006 # the compiler is broken, or we cross compile.
3007 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3008 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
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.
3011 if test "$cross_compiling" != yes; then
3012 if { ac_try='./$ac_file'
3013 { (case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_try") 2>&5
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.
3028 If you meant to cross compile, use \`--host'.
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: cannot run C compiled programs.
3031 If you meant to cross compile, use \`--host'.
3032 See \`config.log' for more details." >&2;}
3033 { (exit 1); exit 1; }; }
3034 fi
3035 fi
3036 fi
3037 { echo "$as_me:$LINENO: result: yes" >&5
3038 echo "${ECHO_T}yes" >&6; }
3039
3040 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 # Check that the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3045 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3046 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3047 echo "${ECHO_T}$cross_compiling" >&6; }
3048
3049 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3050 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3051 if { (ac_try="$ac_link"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_link") 2>&5
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'.
3065 for ac_file in conftest.exe conftest conftest.*; do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 break;;
3071 * ) break;;
3072 esac
3073 done
3074 else
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3080 fi
3081
3082 rm -f conftest$ac_cv_exeext
3083 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3084 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3085
3086 rm -f conftest.$ac_ext
3087 EXEEXT=$ac_cv_exeext
3088 ac_exeext=$EXEEXT
3089 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3090 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3091 if test "${ac_cv_objext+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100
3101 int
3102 main ()
3103 {
3104
3105 ;
3106 return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.o conftest.obj
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; then
3120 for ac_file in conftest.o conftest.obj conftest.*; do
3121 test -f "$ac_file" || continue;
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125 break;;
3126 esac
3127 done
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3137 fi
3138
3139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3140 fi
3141 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3142 echo "${ECHO_T}$ac_cv_objext" >&6; }
3143 OBJEXT=$ac_cv_objext
3144 ac_objext=$OBJEXT
3145 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156
3157 int
3158 main ()
3159 {
3160 #ifndef __GNUC__
3161 choke me
3162 #endif
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
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
3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
3185 ac_compiler_gnu=yes
3186 else
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 ac_compiler_gnu=no
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195
3196 fi
3197 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3199 GCC=`test $ac_compiler_gnu = yes && echo yes`
3200 ac_test_CFLAGS=${CFLAGS+set}
3201 ac_save_CFLAGS=$CFLAGS
3202 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3203 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3204 if test "${ac_cv_prog_cc_g+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
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
3212 /* confdefs.h. */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217
3218 int
3219 main ()
3220 {
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
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
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
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 CFLAGS=""
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255
3256 int
3257 main ()
3258 {
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_compile") 2>conftest.er1
3272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } && {
3278 test -z "$ac_c_werror_flag" ||
3279 test ! -s conftest.err
3280 } && test -s conftest.$ac_objext; then
3281 :
3282 else
3283 echo "$as_me: failed program was:" >&5
3284 sed '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
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_compile") 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
3320 ac_cv_prog_cc_g=yes
3321 else
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325
3326 fi
3327
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 fi
3333
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3336 fi
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif 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
3347 else
3348 if test "$GCC" = yes; then
3349 CFLAGS="-O2"
3350 else
3351 CFLAGS=
3352 fi
3353 fi
3354 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3355 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3356 if test "${ac_cv_prog_cc_c89+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 ac_cv_prog_cc_c89=no
3360 ac_save_CC=$CC
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>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. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3375 char **p;
3376 int i;
3377 {
3378 return p[i];
3379 }
3380 static 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
3393 as 'x'. The following induces an error, until -std is added to get
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
3396 that's true only with -std. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398
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'
3402 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3403
3404 int test (int i, double x);
3405 struct s1 {int (*f) (int a);};
3406 struct s2 {int (*f) (double a);};
3407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408 int argc;
3409 char **argv;
3410 int
3411 main ()
3412 {
3413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3420 do
3421 CC="$ac_save_CC $ac_arg"
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_compile") 2>conftest.er1
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
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
3440 else
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444
3445 fi
3446
3447 rm -f core conftest.err conftest.$ac_objext
3448 test "x$ac_cv_prog_cc_c89" != "xno" && break
3449 done
3450 rm -f conftest.$ac_ext
3451 CC=$ac_save_CC
3452
3453 fi
3454 # AC_CACHE_VAL
3455 case "x$ac_cv_prog_cc_c89" in
3456 x)
3457 { echo "$as_me:$LINENO: result: none needed" >&5
3458 echo "${ECHO_T}none needed" >&6; } ;;
3459 xno)
3460 { echo "$as_me:$LINENO: result: unsupported" >&5
3461 echo "${ECHO_T}unsupported" >&6; } ;;
3462 *)
3463 CC="$CC $ac_cv_prog_cc_c89"
3464 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3466 esac
3467
3468
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 DEPDIR="${am__leading_dot}deps"
3475
3476 ac_config_commands="$ac_config_commands depfiles"
3477
3478
3479 am_make=${MAKE-make}
3480 cat > confinc << 'END'
3481 am__doit:
3482 @echo done
3483 .PHONY: am__doit
3484 END
3485 # If we don't find an include directive, just comment out the code.
3486 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3487 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3488 am__include="#"
3489 am__quote=
3490 _am_result=none
3491 # First try GNU make style include.
3492 echo "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'.
3498 if 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
3502 fi
3503 # Now try BSD make style include.
3504 if 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
3511 fi
3512
3513
3514 { echo "$as_me:$LINENO: result: $_am_result" >&5
3515 echo "${ECHO_T}$_am_result" >&6; }
3516 rm -f confinc confmf
3517
3518 # Check whether --enable-dependency-tracking was given.
3519 if test "${enable_dependency_tracking+set}" = set; then
3520 enableval=$enable_dependency_tracking;
3521 fi
3522
3523 if test "x$enable_dependency_tracking" != xno; then
3524 am_depcomp="$ac_aux_dir/depcomp"
3525 AMDEPBACKSLASH='\'
3526 fi
3527 if test "x$enable_dependency_tracking" != xno; then
3528 AMDEP_TRUE=
3529 AMDEP_FALSE='#'
3530 else
3531 AMDEP_TRUE='#'
3532 AMDEP_FALSE=
3533 fi
3534
3535
3536
3537 depcc="$CC" am_compiler_list=
3538
3539 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3541 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
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 &&
3604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
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
3625 else
3626 am_cv_CC_dependencies_compiler_type=none
3627 fi
3628
3629 fi
3630 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3631 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3632 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3633
3634 if
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='#'
3639 else
3640 am__fastdepCC_TRUE='#'
3641 am__fastdepCC_FALSE=
3642 fi
3643
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3651 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3652 # On Suns, sometimes $CPP names a directory.
3653 if test -n "$CPP" && test -d "$CPP"; then
3654 CPP=
3655 fi
3656 if test -z "$CPP"; then
3657 if test "${ac_cv_prog_CPP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
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
3664 for ac_c_preproc_warn_flag in '' yes
3665 do
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
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>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
3685 if { (ac_try="$ac_cpp conftest.$ac_ext"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
3701 :
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 # Broken: fails on valid input.
3707 continue
3708 fi
3709
3710 rm -f conftest.err conftest.$ac_ext
3711
3712 # OK, works on sane cases. Now check whether nonexistent headers
3713 # can be detected and how.
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 #include <ac_nonexistent.h>
3721 _ACEOF
3722 if { (ac_try="$ac_cpp conftest.$ac_ext"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
3738 # Broken: success on invalid input.
3739 continue
3740 else
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744 # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3747 fi
3748
3749 rm -f conftest.err conftest.$ac_ext
3750
3751 done
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.$ac_ext
3754 if $ac_preproc_ok; then
3755 break
3756 fi
3757
3758 done
3759 ac_cv_prog_CPP=$CPP
3760
3761 fi
3762 CPP=$ac_cv_prog_CPP
3763 else
3764 ac_cv_prog_CPP=$CPP
3765 fi
3766 { echo "$as_me:$LINENO: result: $CPP" >&5
3767 echo "${ECHO_T}$CPP" >&6; }
3768 ac_preproc_ok=false
3769 for ac_c_preproc_warn_flag in '' yes
3770 do
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
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>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
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
3806 :
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 # Broken: fails on valid input.
3812 continue
3813 fi
3814
3815 rm -f conftest.err conftest.$ac_ext
3816
3817 # OK, works on sane cases. Now check whether nonexistent headers
3818 # can be detected and how.
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3826 _ACEOF
3827 if { (ac_try="$ac_cpp conftest.$ac_ext"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
3843 # Broken: success on invalid input.
3844 continue
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 # Passes both tests.
3850 ac_preproc_ok=:
3851 break
3852 fi
3853
3854 rm -f conftest.err conftest.$ac_ext
3855
3856 done
3857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858 rm -f conftest.err conftest.$ac_ext
3859 if $ac_preproc_ok; then
3860 :
3861 else
3862 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3863 See \`config.log' for more details." >&5
3864 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3865 See \`config.log' for more details." >&2;}
3866 { (exit 1); exit 1; }; }
3867 fi
3868
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_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.
3888 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3889 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3890 if test -z "$INSTALL"; then
3891 if test "${ac_cv_path_install+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 # Account for people who put trailing slashes in PATH elements.
3900 case $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
3911 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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 ;;
3928 esac
3929 done
3930 IFS=$as_save_IFS
3931
3932
3933 fi
3934 if test "${ac_cv_path_install+set}" = set; then
3935 INSTALL=$ac_cv_path_install
3936 else
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
3939 # break other packages using the cache if that directory is
3940 # removed, or if the value is a relative name.
3941 INSTALL=$ac_install_sh
3942 fi
3943 fi
3944 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3945 echo "${ECHO_T}$INSTALL" >&6; }
3946
3947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3948 # It thinks the first close brace ends the variable substitution.
3949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3950
3951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3952
3953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3954
3955 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3957 LN_S=$as_ln_s
3958 if test "$LN_S" = "ln -s"; then
3959 { echo "$as_me:$LINENO: result: yes" >&5
3960 echo "${ECHO_T}yes" >&6; }
3961 else
3962 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3963 echo "${ECHO_T}no, using $LN_S" >&6; }
3964 fi
3965
3966
3967
3968 for ac_prog in perl5 perl
3969 do
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy $ac_prog; ac_word=$2
3972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
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
3983 for as_dir in $PATH
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 ;;
3998 esac
3999 fi
4000 SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
4001 if test -n "$SYSCONFTOOL_PERL"; then
4002 { echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5
4003 echo "${ECHO_T}$SYSCONFTOOL_PERL" >&6; }
4004 else
4005 { echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6; }
4007 fi
4008
4009
4010 test -n "$SYSCONFTOOL_PERL" && break
4011 done
4012 test -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
4018 echo "$as_me: error: perl not found - please install perl" >&2;}
4019 { (exit 1); exit 1; }; }
4020 fi
4021
4022 { echo "$as_me:$LINENO: checking for sysconftool..." >&5
4023 echo $ECHO_N "checking for sysconftool...... $ECHO_C" >&6; }
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
4037 echo "$as_me: error: sysconftool missing - not in the package" >&2;}
4038 { (exit 1); exit 1; }; }
4039 fi
4040
4041 { echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5
4042 echo "${ECHO_T}$SYSCONFTOOL" >&6; }
4043 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4044
4045
4046
4047
4048 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4049 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4050 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 ac_check_lib_save_LIBS=$LIBS
4054 LIBS="-lltdl $LIBS"
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061
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. */
4065 #ifdef __cplusplus
4066 extern "C"
4067 #endif
4068 char lt_dlinit ();
4069 int
4070 main ()
4071 {
4072 return lt_dlinit ();
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext conftest$ac_exeext
4078 if { (ac_try="$ac_link"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_link") 2>conftest.er1
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
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
4095 ac_cv_lib_ltdl_lt_dlinit=yes
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100 ac_cv_lib_ltdl_lt_dlinit=no
4101 fi
4102
4103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4104 conftest$ac_exeext conftest.$ac_ext
4105 LIBS=$ac_check_lib_save_LIBS
4106 fi
4107 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4108 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4109 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4110 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4111 else
4112 if test x"$enable_ltdl_install" = xno; then
4113 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4114 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4115 else
4116 enable_ltdl_install=yes
4117 fi
4118
4119 fi
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
4135 # Check whether --enable-shared was given.
4136 if test "${enable_shared+set}" = set; then
4137 enableval=$enable_shared; p=${PACKAGE-default}
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
4154 else
4155 enable_shared=yes
4156 fi
4157
4158
4159 # Check whether --enable-static was given.
4160 if test "${enable_static+set}" = set; then
4161 enableval=$enable_static; p=${PACKAGE-default}
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
4178 else
4179 enable_static=yes
4180 fi
4181
4182
4183 # Check whether --enable-fast-install was given.
4184 if test "${enable_fast_install+set}" = set; then
4185 enableval=$enable_fast_install; p=${PACKAGE-default}
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
4202 else
4203 enable_fast_install=yes
4204 fi
4205
4206
4207 # Make sure we can run config.sub.
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
4210 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4211 { (exit 1); exit 1; }; }
4212
4213 { echo "$as_me:$LINENO: checking build system type" >&5
4214 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4215 if test "${ac_cv_build+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 ac_build_alias=$build_alias
4219 test "x$ac_build_alias" = x &&
4220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4221 test "x$ac_build_alias" = x &&
4222 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4223 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4224 { (exit 1); exit 1; }; }
4225 ac_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
4227 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4228 { (exit 1); exit 1; }; }
4229
4230 fi
4231 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4232 echo "${ECHO_T}$ac_cv_build" >&6; }
4233 case $ac_cv_build in
4234 *-*-*) ;;
4235 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4236 echo "$as_me: error: invalid value of canonical build" >&2;}
4237 { (exit 1); exit 1; }; };;
4238 esac
4239 build=$ac_cv_build
4240 ac_save_IFS=$IFS; IFS='-'
4241 set x $ac_cv_build
4242 shift
4243 build_cpu=$1
4244 build_vendor=$2
4245 shift; shift
4246 # Remember, the first character of IFS is used to create $*,
4247 # except with old shells:
4248 build_os=$*
4249 IFS=$ac_save_IFS
4250 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4251
4252
4253 { echo "$as_me:$LINENO: checking host system type" >&5
4254 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4255 if test "${ac_cv_host+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 if test "x$host_alias" = x; then
4259 ac_cv_host=$ac_cv_build
4260 else
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
4263 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4264 { (exit 1); exit 1; }; }
4265 fi
4266
4267 fi
4268 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4269 echo "${ECHO_T}$ac_cv_host" >&6; }
4270 case $ac_cv_host in
4271 *-*-*) ;;
4272 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4273 echo "$as_me: error: invalid value of canonical host" >&2;}
4274 { (exit 1); exit 1; }; };;
4275 esac
4276 host=$ac_cv_host
4277 ac_save_IFS=$IFS; IFS='-'
4278 set x $ac_cv_host
4279 shift
4280 host_cpu=$1
4281 host_vendor=$2
4282 shift; shift
4283 # Remember, the first character of IFS is used to create $*,
4284 # except with old shells:
4285 host_os=$*
4286 IFS=$ac_save_IFS
4287 case $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
4291 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4292 if test "${lt_cv_path_SED+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
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.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
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
4304 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4305 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4306 fi
4307 done
4308 done
4309 done
4310 IFS=$as_save_IFS
4311 lt_ac_max=0
4312 lt_ac_count=0
4313 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4314 # along with /bin/sed that truncates output.
4315 for 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
4340 done
4341
4342 fi
4343
4344 SED=$lt_cv_path_SED
4345
4346 { echo "$as_me:$LINENO: result: $SED" >&5
4347 echo "${ECHO_T}$SED" >&6; }
4348
4349 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4350 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4351 if test "${ac_cv_path_GREP+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354 # Extract the first word of "grep ggrep" to use in msg output
4355 if test -z "$GREP"; then
4356 set dummy grep ggrep; ac_prog_name=$2
4357 if test "${ac_cv_path_GREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 ac_path_GREP_found=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4364 do
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
4373 case `"$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;;
4397 esac
4398
4399
4400 $ac_path_GREP_found && break 3
4401 done
4402 done
4403
4404 done
4405 IFS=$as_save_IFS
4406
4407
4408 fi
4409
4410 GREP="$ac_cv_path_GREP"
4411 if 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
4413 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4415 fi
4416
4417 else
4418 ac_cv_path_GREP=$GREP
4419 fi
4420
4421
4422 fi
4423 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4424 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4425 GREP="$ac_cv_path_GREP"
4426
4427
4428 { echo "$as_me:$LINENO: checking for egrep" >&5
4429 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4430 if test "${ac_cv_path_EGREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
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
4437 if test -z "$EGREP"; then
4438 set dummy egrep; ac_prog_name=$2
4439 if test "${ac_cv_path_EGREP+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 ac_path_EGREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 do
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
4455 case `"$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
4474 fi
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;;
4479 esac
4480
4481
4482 $ac_path_EGREP_found && break 3
4483 done
4484 done
4485
4486 done
4487 IFS=$as_save_IFS
4488
4489
4490 fi
4491
4492 EGREP="$ac_cv_path_EGREP"
4493 if 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
4495 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4496 { (exit 1); exit 1; }; }
4497 fi
4498
4499 else
4500 ac_cv_path_EGREP=$EGREP
4501 fi
4502
4503
4504 fi
4505 fi
4506 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4507 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4508 EGREP="$ac_cv_path_EGREP"
4509
4510
4511
4512 # Check whether --with-gnu-ld was given.
4513 if test "${with_gnu_ld+set}" = set; then
4514 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4515 else
4516 with_gnu_ld=no
4517 fi
4518
4519 ac_prog=ld
4520 if test "$GCC" = yes; then
4521 # Check if gcc -print-prog-name=ld gives a path.
4522 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4523 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
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
4551 elif test "$with_gnu_ld" = yes; then
4552 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4553 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4554 else
4555 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4556 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4557 fi
4558 if test "${lt_cv_path_LD+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
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"
4582 else
4583 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4584 fi
4585 fi
4586
4587 LD="$lt_cv_path_LD"
4588 if test -n "$LD"; then
4589 { echo "$as_me:$LINENO: result: $LD" >&5
4590 echo "${ECHO_T}$LD" >&6; }
4591 else
4592 { echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6; }
4594 fi
4595 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4596 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4597 { (exit 1); exit 1; }; }
4598 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4599 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4600 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4604 case `$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 ;;
4611 esac
4612 fi
4613 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4614 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4615 with_gnu_ld=$lt_cv_prog_gnu_ld
4616
4617
4618 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4619 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4620 if test "${lt_cv_ld_reload_flag+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 lt_cv_ld_reload_flag='-r'
4624 fi
4625 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4626 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4627 reload_flag=$lt_cv_ld_reload_flag
4628 case $reload_flag in
4629 "" | " "*) ;;
4630 *) reload_flag=" $reload_flag" ;;
4631 esac
4632 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4633 case $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 ;;
4641 esac
4642
4643 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4644 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4645 if test "${lt_cv_path_NM+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648 if test -n "$NM"; then
4649 # Let the user override the test.
4650 lt_cv_path_NM="$NM"
4651 else
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
4690 fi
4691 fi
4692 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4693 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4694 NM="$lt_cv_path_NM"
4695
4696 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4697 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4698 if test "${lt_cv_deplibs_check_method+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 lt_cv_file_magic_cmd='$MAGIC_CMD'
4702 lt_cv_file_magic_test_file=
4703 lt_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
4715 case $host_os in
4716 aix4* | aix5*)
4717 lt_cv_deplibs_check_method=pass_all
4718 ;;
4719
4720 beos*)
4721 lt_cv_deplibs_check_method=pass_all
4722 ;;
4723
4724 bsdi[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
4730 cygwin*)
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
4736 mingw* | pw32*)
4737 # Base MSYS/MinGW do not provide the 'file' command needed by
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
4747 ;;
4748
4749 darwin* | rhapsody*)
4750 lt_cv_deplibs_check_method=pass_all
4751 ;;
4752
4753 freebsd* | dragonfly*)
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
4769 gnu*)
4770 lt_cv_deplibs_check_method=pass_all
4771 ;;
4772
4773 hpux10.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
4791 interix[3-9]*)
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
4796 irix5* | 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.
4807 linux* | k*bsd*-gnu)
4808 lt_cv_deplibs_check_method=pass_all
4809 ;;
4810
4811 netbsd*)
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
4819 newos6*)
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
4825 nto-qnx*)
4826 lt_cv_deplibs_check_method=unknown
4827 ;;
4828
4829 openbsd*)
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
4837 osf3* | osf4* | osf5*)
4838 lt_cv_deplibs_check_method=pass_all
4839 ;;
4840
4841 rdos*)
4842 lt_cv_deplibs_check_method=pass_all
4843 ;;
4844
4845 solaris*)
4846 lt_cv_deplibs_check_method=pass_all
4847 ;;
4848
4849 sysv4 | 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
4876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4877 lt_cv_deplibs_check_method=pass_all
4878 ;;
4879 esac
4880
4881 fi
4882 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4883 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4884 file_magic_cmd=$lt_cv_file_magic_cmd
4885 deplibs_check_method=$lt_cv_deplibs_check_method
4886 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4887
4888
4889
4890
4891 # If no C compiler was specified, use CC.
4892 LTCC=${LTCC-"$CC"}
4893
4894 # If no C compiler flags were specified, use CFLAGS.
4895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4896
4897 # Allow CC to be a program name with arguments.
4898 compiler=$CC
4899
4900 # Check whether --enable-libtool-lock was given.
4901 if test "${enable_libtool_lock+set}" = set; then
4902 enableval=$enable_libtool_lock;
4903 fi
4904
4905 test "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.
4909 case $host in
4910 ia64-*-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.
4931 echo '#line 4931 "configure"' > conftest.$ac_ext
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
4966 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4967 s390*-*linux*|sparc*-*linux*)
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
4978 x86_64-*kfreebsd*-gnu)
4979 LD="${LD-ld} -m elf_i386_fbsd"
4980 ;;
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*)
4996 libsuff=64
4997 case $host in
4998 x86_64-*kfreebsd*-gnu)
4999 LD="${LD-ld} -m elf_x86_64_fbsd"
5000 ;;
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"
5024 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5025 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5026 if test "${lt_cv_cc_needs_belf+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029 ac_ext=c
5030 ac_cpp='$CPP $CPPFLAGS'
5031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041
5042 int
5043 main ()
5044 {
5045
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (ac_try="$ac_link"
5052 case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_link") 2>conftest.er1
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
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
5068 lt_cv_cc_needs_belf=yes
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 lt_cv_cc_needs_belf=no
5074 fi
5075
5076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5077 conftest$ac_exeext conftest.$ac_ext
5078 ac_ext=c
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084 fi
5085 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5086 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
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 ;;
5092 sparc*-*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
5113 esac
5114
5115 need_locks="$enable_libtool_lock"
5116
5117
5118
5119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5121 if test "${ac_cv_header_stdc+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>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
5135 int
5136 main ()
5137 {
5138
5139 ;
5140 return 0;
5141 }
5142 _ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (ac_try="$ac_compile"
5145 case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5148 esac
5149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150 (eval "$ac_compile") 2>conftest.er1
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
5156 (exit $ac_status); } && {
5157 test -z "$ac_c_werror_flag" ||
5158 test ! -s conftest.err
5159 } && test -s conftest.$ac_objext; then
5160 ac_cv_header_stdc=yes
5161 else
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5164
5165 ac_cv_header_stdc=no
5166 fi
5167
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169
5170 if 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
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #include <string.h>
5179
5180 _ACEOF
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "memchr" >/dev/null 2>&1; then
5183 :
5184 else
5185 ac_cv_header_stdc=no
5186 fi
5187 rm -f conftest*
5188
5189 fi
5190
5191 if 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
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 #include <stdlib.h>
5200
5201 _ACEOF
5202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5203 $EGREP "free" >/dev/null 2>&1; then
5204 :
5205 else
5206 ac_cv_header_stdc=no
5207 fi
5208 rm -f conftest*
5209
5210 fi
5211
5212 if 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 :
5216 else
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #include <ctype.h>
5224 #include <stdlib.h>
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)))
5237 int
5238 main ()
5239 {
5240 int i;
5241 for (i = 0; i < 256; i++)
5242 if (XOR (islower (i), ISLOWER (i))
5243 || toupper (i) != TOUPPER (i))
5244 return 2;
5245 return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest$ac_exeext
5249 if { (ac_try="$ac_link"
5250 case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_link") 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5259 { (case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_try") 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 :
5269 else
5270 echo "$as_me: program exited with status $ac_status" >&5
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 ( exit $ac_status )
5275 ac_cv_header_stdc=no
5276 fi
5277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5278 fi
5279
5280
5281 fi
5282 fi
5283 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5285 if test $ac_cv_header_stdc = yes; then
5286
5287 cat >>confdefs.h <<\_ACEOF
5288 #define STDC_HEADERS 1
5289 _ACEOF
5290
5291 fi
5292
5293 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5304 inttypes.h stdint.h unistd.h
5305 do
5306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 cat >conftest.$ac_ext <<_ACEOF
5313 /* confdefs.h. */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 $ac_includes_default
5319
5320 #include <$ac_header>
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (ac_try="$ac_compile"
5324 case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327 esac
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compile") 2>conftest.er1
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
5335 (exit $ac_status); } && {
5336 test -z "$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5338 } && test -s conftest.$ac_objext; then
5339 eval "$as_ac_Header=yes"
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 eval "$as_ac_Header=no"
5345 fi
5346
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 fi
5349 ac_res=`eval echo '${'$as_ac_Header'}'`
5350 { echo "$as_me:$LINENO: result: $ac_res" >&5
5351 echo "${ECHO_T}$ac_res" >&6; }
5352 if 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
5357 fi
5358
5359 done
5360
5361
5362
5363 for ac_header in dlfcn.h
5364 do
5365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 fi
5372 ac_res=`eval echo '${'$as_ac_Header'}'`
5373 { echo "$as_me:$LINENO: result: $ac_res" >&5
5374 echo "${ECHO_T}$ac_res" >&6; }
5375 else
5376 # Is the header compilable?
5377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5386 #include <$ac_header>
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
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
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5405 ac_header_compiler=yes
5406 else
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410 ac_header_compiler=no
5411 fi
5412
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5415 echo "${ECHO_T}$ac_header_compiler" >&6; }
5416
5417 # Is the header present?
5418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <$ac_header>
5427 _ACEOF
5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
5429 case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
5444 ac_header_preproc=yes
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 ac_header_preproc=no
5450 fi
5451
5452 rm -f conftest.err conftest.$ac_ext
5453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5454 echo "${ECHO_T}$ac_header_preproc" >&6; }
5455
5456 # So? What about this header?
5457 case $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
5460 echo "$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
5462 echo "$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
5467 echo "$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
5469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5471 echo "$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
5473 echo "$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
5475 echo "$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
5477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5478 ( cat <<\_ASBOX
5479 ## ------------------------------------------------- ##
5480 ## Report this to courier-imap@lists.sourceforge.net ##
5481 ## ------------------------------------------------- ##
5482 _ASBOX
5483 ) | sed "s/^/$as_me: WARNING: /" >&2
5484 ;;
5485 esac
5486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 eval "$as_ac_Header=\$ac_header_preproc"
5492 fi
5493 ac_res=`eval echo '${'$as_ac_Header'}'`
5494 { echo "$as_me:$LINENO: result: $ac_res" >&5
5495 echo "${ECHO_T}$ac_res" >&6; }
5496
5497 fi
5498 if 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
5503 fi
5504
5505 done
5506
5507 ac_ext=cpp
5508 ac_cpp='$CXXCPP $CPPFLAGS'
5509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5512 if 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
5518 do
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_CXX+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 if test -n "$CXX"; then
5527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 CXX=$ac_cv_prog_CXX
5547 if test -n "$CXX"; then
5548 { echo "$as_me:$LINENO: result: $CXX" >&5
5549 echo "${ECHO_T}$CXX" >&6; }
5550 else
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5553 fi
5554
5555
5556 test -n "$CXX" && break
5557 done
5558 fi
5559 if test -z "$CXX"; then
5560 ac_ct_CXX=$CXX
5561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5562 do
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 if test -n "$ac_ct_CXX"; then
5571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
5584 done
5585 done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5591 if test -n "$ac_ct_CXX"; then
5592 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5593 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5594 else
5595 { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5597 fi
5598
5599
5600 test -n "$ac_ct_CXX" && break
5601 done
5602
5603 if test "x$ac_ct_CXX" = x; then
5604 CXX="g++"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet. If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&5
5611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612 whose name does not start with the host triplet. If you think this
5613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 CXX=$ac_ct_CXX
5617 fi
5618 fi
5619
5620 fi
5621 fi
5622 # Provide some information about the compiler.
5623 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5624 ac_compiler=`set X $ac_compile; echo $2`
5625 { (ac_try="$ac_compiler --version >&5"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compiler --version >&5") 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }
5635 { (ac_try="$ac_compiler -v >&5"
5636 case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compiler -v >&5") 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }
5645 { (ac_try="$ac_compiler -V >&5"
5646 case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compiler -V >&5") 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }
5655
5656 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5657 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5658 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667
5668 int
5669 main ()
5670 {
5671 #ifndef __GNUC__
5672 choke me
5673 #endif
5674
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
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
5692 (exit $ac_status); } && {
5693 test -z "$ac_cxx_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_compiler_gnu=yes
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701 ac_compiler_gnu=no
5702 fi
5703
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5706
5707 fi
5708 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5709 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5710 GXX=`test $ac_compiler_gnu = yes && echo yes`
5711 ac_test_CXXFLAGS=${CXXFLAGS+set}
5712 ac_save_CXXFLAGS=$CXXFLAGS
5713 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5714 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5715 if test "${ac_cv_prog_cxx_g+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
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
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728
5729 int
5730 main ()
5731 {
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compile") 2>conftest.er1
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
5750 (exit $ac_status); } && {
5751 test -z "$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
5754 ac_cv_prog_cxx_g=yes
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 CXXFLAGS=""
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766
5767 int
5768 main ()
5769 {
5770
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
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
5788 (exit $ac_status); } && {
5789 test -z "$ac_cxx_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 :
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5798 CXXFLAGS="-g"
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805
5806 int
5807 main ()
5808 {
5809
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
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
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
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836
5837 fi
5838
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 fi
5841
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5847 fi
5848 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5849 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5850 if test "$ac_test_CXXFLAGS" = set; then
5851 CXXFLAGS=$ac_save_CXXFLAGS
5852 elif 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
5858 else
5859 if test "$GXX" = yes; then
5860 CXXFLAGS="-O2"
5861 else
5862 CXXFLAGS=
5863 fi
5864 fi
5865 ac_ext=cpp
5866 ac_cpp='$CXXCPP $CPPFLAGS'
5867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5870
5871 depcc="$CXX" am_compiler_list=
5872
5873 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5874 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5875 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
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 &&
5938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
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
5959 else
5960 am_cv_CXX_dependencies_compiler_type=none
5961 fi
5962
5963 fi
5964 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5965 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5966 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5967
5968 if
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='#'
5973 else
5974 am__fastdepCXX_TRUE='#'
5975 am__fastdepCXX_FALSE=
5976 fi
5977
5978
5979
5980
5981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5983 (test "X$CXX" != "Xg++"))) ; then
5984 ac_ext=cpp
5985 ac_cpp='$CXXCPP $CPPFLAGS'
5986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5989 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5990 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5991 if test -z "$CXXCPP"; then
5992 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 # Double quotes because CXXCPP needs to be expanded
5996 for CXXCPP in "$CXX -E" "/lib/cpp"
5997 do
5998 ac_preproc_ok=false
5999 for ac_cxx_preproc_warn_flag in '' yes
6000 do
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
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>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
6020 if { (ac_try="$ac_cpp conftest.$ac_ext"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
6036 :
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 # Broken: fails on valid input.
6042 continue
6043 fi
6044
6045 rm -f conftest.err conftest.$ac_ext
6046
6047 # OK, works on sane cases. Now check whether nonexistent headers
6048 # can be detected and how.
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <ac_nonexistent.h>
6056 _ACEOF
6057 if { (ac_try="$ac_cpp conftest.$ac_ext"
6058 case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
6073 # Broken: success on invalid input.
6074 continue
6075 else
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079 # Passes both tests.
6080 ac_preproc_ok=:
6081 break
6082 fi
6083
6084 rm -f conftest.err conftest.$ac_ext
6085
6086 done
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.$ac_ext
6089 if $ac_preproc_ok; then
6090 break
6091 fi
6092
6093 done
6094 ac_cv_prog_CXXCPP=$CXXCPP
6095
6096 fi
6097 CXXCPP=$ac_cv_prog_CXXCPP
6098 else
6099 ac_cv_prog_CXXCPP=$CXXCPP
6100 fi
6101 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6102 echo "${ECHO_T}$CXXCPP" >&6; }
6103 ac_preproc_ok=false
6104 for ac_cxx_preproc_warn_flag in '' yes
6105 do
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
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>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
6125 if { (ac_try="$ac_cpp conftest.$ac_ext"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
6141 :
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 # Broken: fails on valid input.
6147 continue
6148 fi
6149
6150 rm -f conftest.err conftest.$ac_ext
6151
6152 # OK, works on sane cases. Now check whether nonexistent headers
6153 # can be detected and how.
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h. */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 #include <ac_nonexistent.h>
6161 _ACEOF
6162 if { (ac_try="$ac_cpp conftest.$ac_ext"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
6178 # Broken: success on invalid input.
6179 continue
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 # Passes both tests.
6185 ac_preproc_ok=:
6186 break
6187 fi
6188
6189 rm -f conftest.err conftest.$ac_ext
6190
6191 done
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.err conftest.$ac_ext
6194 if $ac_preproc_ok; then
6195 :
6196 else
6197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6198 See \`config.log' for more details." >&5
6199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6200 See \`config.log' for more details." >&2;}
6201 { (exit 1); exit 1; }; }
6202 fi
6203
6204 ac_ext=cpp
6205 ac_cpp='$CXXCPP $CPPFLAGS'
6206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6209
6210 fi
6211
6212
6213 ac_ext=f
6214 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6215 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6217 if test -n "$ac_tool_prefix"; then
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
6219 do
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_prog_F77+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227 if test -n "$F77"; then
6228 ac_cv_prog_F77="$F77" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 F77=$ac_cv_prog_F77
6248 if test -n "$F77"; then
6249 { echo "$as_me:$LINENO: result: $F77" >&5
6250 echo "${ECHO_T}$F77" >&6; }
6251 else
6252 { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6254 fi
6255
6256
6257 test -n "$F77" && break
6258 done
6259 fi
6260 if test -z "$F77"; then
6261 ac_ct_F77=$F77
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
6263 do
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy $ac_prog; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 if test -n "$ac_ct_F77"; then
6272 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
6285 done
6286 done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6292 if test -n "$ac_ct_F77"; then
6293 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6294 echo "${ECHO_T}$ac_ct_F77" >&6; }
6295 else
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6298 fi
6299
6300
6301 test -n "$ac_ct_F77" && break
6302 done
6303
6304 if test "x$ac_ct_F77" = x; then
6305 F77=""
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308 yes:)
6309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6310 whose name does not start with the host triplet. If you think this
6311 configuration is useful to you, please write to autoconf@gnu.org." >&5
6312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6313 whose name does not start with the host triplet. If you think this
6314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317 F77=$ac_ct_F77
6318 fi
6319 fi
6320
6321
6322 # Provide some information about the compiler.
6323 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6324 ac_compiler=`set X $ac_compile; echo $2`
6325 { (ac_try="$ac_compiler --version >&5"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compiler --version >&5") 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
6335 { (ac_try="$ac_compiler -v >&5"
6336 case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compiler -v >&5") 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
6345 { (ac_try="$ac_compiler -V >&5"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compiler -V >&5") 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }
6355 rm -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.)
6359 ac_save_ext=$ac_ext
6360 ac_ext=F
6361 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6362 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6363 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 cat >conftest.$ac_ext <<_ACEOF
6367 program main
6368 #ifndef __GNUC__
6369 choke me
6370 #endif
6371
6372 end
6373 _ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (ac_try="$ac_compile"
6376 case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
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
6387 (exit $ac_status); } && {
6388 test -z "$ac_f77_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
6391 ac_compiler_gnu=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 ac_compiler_gnu=no
6397 fi
6398
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6401
6402 fi
6403 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6404 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6405 ac_ext=$ac_save_ext
6406 ac_test_FFLAGS=${FFLAGS+set}
6407 ac_save_FFLAGS=$FFLAGS
6408 FFLAGS=
6409 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6410 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6411 if test "${ac_cv_prog_f77_g+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 FFLAGS=-g
6415 cat >conftest.$ac_ext <<_ACEOF
6416 program main
6417
6418 end
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (ac_try="$ac_compile"
6422 case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425 esac
6426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_compile") 2>conftest.er1
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
6433 (exit $ac_status); } && {
6434 test -z "$ac_f77_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest.$ac_objext; then
6437 ac_cv_prog_f77_g=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_cv_prog_f77_g=no
6443 fi
6444
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446
6447 fi
6448 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6449 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6450 if test "$ac_test_FFLAGS" = set; then
6451 FFLAGS=$ac_save_FFLAGS
6452 elif 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
6458 else
6459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6460 FFLAGS="-O2"
6461 else
6462 FFLAGS=
6463 fi
6464 fi
6465
6466 G77=`test $ac_compiler_gnu = yes && echo yes`
6467 ac_ext=c
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_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
6478 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
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 *)
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` \
6570 = "XX$teststring") >/dev/null 2>&1 &&
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
6584 ;;
6585 esac
6586
6587 fi
6588
6589 if test -n $lt_cv_sys_max_cmd_len ; then
6590 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6591 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6592 else
6593 { echo "$as_me:$LINENO: result: none" >&5
6594 echo "${ECHO_T}none" >&6; }
6595 fi
6596
6597
6598
6599
6600
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6603 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6604 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
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.
6612 symcode='[BCDEGRST]'
6613
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6616
6617 # Transform an extracted symbol line into a proper C declaration
6618 lt_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
6621 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'"
6622
6623 # Define system-specific variables.
6624 case $host_os in
6625 aix*)
6626 symcode='[BCDT]'
6627 ;;
6628 cygwin* | mingw* | pw32*)
6629 symcode='[ABCDGISTW]'
6630 ;;
6631 hpux*) # 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 ;;
6638 linux* | k*bsd*-gnu)
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 ;;
6645 irix* | nonstopux*)
6646 symcode='[BCDEGRST]'
6647 ;;
6648 osf*)
6649 symcode='[BCDEGQRST]'
6650 ;;
6651 solaris*)
6652 symcode='[BDRT]'
6653 ;;
6654 sco3.2v5*)
6655 symcode='[DT]'
6656 ;;
6657 sysv4.2uw2*)
6658 symcode='[DT]'
6659 ;;
6660 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6661 symcode='[ABDT]'
6662 ;;
6663 sysv4)
6664 symcode='[DFNSTU]'
6665 ;;
6666 esac
6667
6668 # Handle CRLF in mingw tool chain
6669 opt_cr=
6670 case $build_os in
6671 mingw*)
6672 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6673 ;;
6674 esac
6675
6676 # If we're using GNU nm, then use its standard symbol codes.
6677 case `$NM -V 2>&1` in
6678 *GNU* | *'with BFD'*)
6679 symcode='[ABCDGIRSTW]' ;;
6680 esac
6681
6682 # Try without a prefix undercore, then with it.
6683 for 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
6697 extern "C" {
6698 #endif
6699 char nm_test_var;
6700 void nm_test_func(){}
6701 #ifdef __cplusplus
6702 }
6703 #endif
6704 int main(){nm_test_var='a';nm_test_func();return(0);}
6705 EOF
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
6731 extern "C" {
6732 #endif
6733
6734 EOF
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. */
6747 const struct {
6748 const char *name;
6749 lt_ptr_t address;
6750 }
6751 lt_preloaded_symbols[] =
6752 {
6753 EOF
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
6762 EOF
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
6799 done
6800
6801 fi
6802
6803 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6804 lt_cv_sys_global_symbol_to_cdecl=
6805 fi
6806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6807 { echo "$as_me:$LINENO: result: failed" >&5
6808 echo "${ECHO_T}failed" >&6; }
6809 else
6810 { echo "$as_me:$LINENO: result: ok" >&5
6811 echo "${ECHO_T}ok" >&6; }
6812 fi
6813
6814 { echo "$as_me:$LINENO: checking for objdir" >&5
6815 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6816 if test "${lt_cv_objdir+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 rm -f .libs 2>/dev/null
6820 mkdir .libs 2>/dev/null
6821 if test -d .libs; then
6822 lt_cv_objdir=.libs
6823 else
6824 # MS-DOS does not allow filenames that begin with a dot.
6825 lt_cv_objdir=_libs
6826 fi
6827 rmdir .libs 2>/dev/null
6828 fi
6829 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6830 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6831 objdir=$lt_cv_objdir
6832
6833
6834
6835
6836
6837 case $host_os in
6838 aix3*)
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 ;;
6847 esac
6848
6849 # Sed substitution that helps us do robust quoting. It backslashifies
6850 # metacharacters that are still active within double-quoted strings.
6851 Xsed='sed -e 1s/^X//'
6852 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6853
6854 # Same as above, but do not quote variable references.
6855 double_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.
6859 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6860
6861 # Sed substitution to avoid accidental globbing in evaled expressions
6862 no_glob_subst='s/\*/\\\*/g'
6863
6864 # Constants:
6865 rm="rm -f"
6866
6867 # Global variables:
6868 default_ofile=libtool
6869 can_build_shared=yes
6870
6871 # All known linkers require a `.a' archive for static linking (except MSVC,
6872 # which needs '.lib').
6873 libext=a
6874 ltmain="$ac_aux_dir/ltmain.sh"
6875 ofile="$default_ofile"
6876 with_gnu_ld="$lt_cv_prog_gnu_ld"
6877
6878 if 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.
6880 set dummy ${ac_tool_prefix}ar; ac_word=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_prog_AR+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 if test -n "$AR"; then
6887 ac_cv_prog_AR="$AR" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 AR=$ac_cv_prog_AR
6907 if test -n "$AR"; then
6908 { echo "$as_me:$LINENO: result: $AR" >&5
6909 echo "${ECHO_T}$AR" >&6; }
6910 else
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6913 fi
6914
6915
6916 fi
6917 if 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.
6920 set dummy ar; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 if test -n "$ac_ct_AR"; then
6927 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
6940 done
6941 done
6942 IFS=$as_save_IFS
6943
6944 fi
6945 fi
6946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6947 if test -n "$ac_ct_AR"; then
6948 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6949 echo "${ECHO_T}$ac_ct_AR" >&6; }
6950 else
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6953 fi
6954
6955 if test "x$ac_ct_AR" = x; then
6956 AR="false"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6961 whose name does not start with the host triplet. If you think this
6962 configuration is useful to you, please write to autoconf@gnu.org." >&5
6963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6964 whose name does not start with the host triplet. If you think this
6965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 AR=$ac_ct_AR
6969 fi
6970 else
6971 AR="$ac_cv_prog_AR"
6972 fi
6973
6974 if 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.
6976 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6979 if test "${ac_cv_prog_RANLIB+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 if test -n "$RANLIB"; then
6983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 RANLIB=$ac_cv_prog_RANLIB
7003 if test -n "$RANLIB"; then
7004 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7005 echo "${ECHO_T}$RANLIB" >&6; }
7006 else
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7009 fi
7010
7011
7012 fi
7013 if 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.
7016 set dummy ranlib; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 if test -n "$ac_ct_RANLIB"; then
7023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7043 if test -n "$ac_ct_RANLIB"; then
7044 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7045 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7046 else
7047 { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7049 fi
7050
7051 if test "x$ac_ct_RANLIB" = x; then
7052 RANLIB=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7057 whose name does not start with the host triplet. If you think this
7058 configuration is useful to you, please write to autoconf@gnu.org." >&5
7059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7060 whose name does not start with the host triplet. If you think this
7061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7062 ac_tool_warned=yes ;;
7063 esac
7064 RANLIB=$ac_ct_RANLIB
7065 fi
7066 else
7067 RANLIB="$ac_cv_prog_RANLIB"
7068 fi
7069
7070 if 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.
7072 set dummy ${ac_tool_prefix}strip; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_prog_STRIP+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 if test -n "$STRIP"; then
7079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 STRIP=$ac_cv_prog_STRIP
7099 if test -n "$STRIP"; then
7100 { echo "$as_me:$LINENO: result: $STRIP" >&5
7101 echo "${ECHO_T}$STRIP" >&6; }
7102 else
7103 { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7105 fi
7106
7107
7108 fi
7109 if 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.
7112 set dummy strip; ac_word=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 if test -n "$ac_ct_STRIP"; then
7119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136 fi
7137 fi
7138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7139 if test -n "$ac_ct_STRIP"; then
7140 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7141 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7142 else
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7145 fi
7146
7147 if test "x$ac_ct_STRIP" = x; then
7148 STRIP=":"
7149 else
7150 case $cross_compiling:$ac_tool_warned in
7151 yes:)
7152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7153 whose name does not start with the host triplet. If you think this
7154 configuration is useful to you, please write to autoconf@gnu.org." >&5
7155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7156 whose name does not start with the host triplet. If you think this
7157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160 STRIP=$ac_ct_STRIP
7161 fi
7162 else
7163 STRIP="$ac_cv_prog_STRIP"
7164 fi
7165
7166
7167 old_CC="$CC"
7168 old_CFLAGS="$CFLAGS"
7169
7170 # Set sane defaults for various variables
7171 test -z "$AR" && AR=ar
7172 test -z "$AR_FLAGS" && AR_FLAGS=cru
7173 test -z "$AS" && AS=as
7174 test -z "$CC" && CC=cc
7175 test -z "$LTCC" && LTCC=$CC
7176 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7177 test -z "$DLLTOOL" && DLLTOOL=dlltool
7178 test -z "$LD" && LD=ld
7179 test -z "$LN_S" && LN_S="ln -s"
7180 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7181 test -z "$NM" && NM=nm
7182 test -z "$SED" && SED=sed
7183 test -z "$OBJDUMP" && OBJDUMP=objdump
7184 test -z "$RANLIB" && RANLIB=:
7185 test -z "$STRIP" && STRIP=:
7186 test -z "$ac_objext" && ac_objext=o
7187
7188 # Determine commands to create old-style static archives.
7189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7190 old_postinstall_cmds='chmod 644 $oldlib'
7191 old_postuninstall_cmds=
7192
7193 if 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"
7203 fi
7204
7205 for 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
7212 done
7213 cc_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
7217 case $deplibs_check_method in
7218 file_magic*)
7219 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7220 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7221 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
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
7258 EOF
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 ;;
7268 esac
7269 fi
7270
7271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7272 if test -n "$MAGIC_CMD"; then
7273 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7274 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7275 else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7278 fi
7279
7280 if test -z "$lt_cv_path_MAGIC_CMD"; then
7281 if test -n "$ac_tool_prefix"; then
7282 { echo "$as_me:$LINENO: checking for file" >&5
7283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
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
7320 EOF
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 ;;
7330 esac
7331 fi
7332
7333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7334 if test -n "$MAGIC_CMD"; then
7335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7337 else
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7340 fi
7341
7342 else
7343 MAGIC_CMD=:
7344 fi
7345 fi
7346
7347 fi
7348 ;;
7349 esac
7350
7351 enable_dlopen=yes
7352 enable_win32_dll=no
7353
7354 # Check whether --enable-libtool-lock was given.
7355 if test "${enable_libtool_lock+set}" = set; then
7356 enableval=$enable_libtool_lock;
7357 fi
7358
7359 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7360
7361
7362 # Check whether --with-pic was given.
7363 if test "${with_pic+set}" = set; then
7364 withval=$with_pic; pic_mode="$withval"
7365 else
7366 pic_mode=default
7367 fi
7368
7369 test -z "$pic_mode" && pic_mode=default
7370
7371 # Use C for the default configuration in the libtool script
7372 tagname=
7373 lt_save_CC="$CC"
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380
7381 # Source file extension for C test sources.
7382 ac_ext=c
7383
7384 # Object file extension for compiled C test sources.
7385 objext=o
7386 objext=$objext
7387
7388 # Code to be used in simple compile tests
7389 lt_simple_compile_test_code="int some_variable = 0;"
7390
7391 # Code to be used in simple link tests
7392 lt_simple_link_test_code='int main(){return(0);}'
7393
7394
7395 # If no C compiler was specified, use CC.
7396 LTCC=${LTCC-"$CC"}
7397
7398 # If no C compiler flags were specified, use CFLAGS.
7399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7400
7401 # Allow CC to be a program name with arguments.
7402 compiler=$CC
7403
7404
7405 # save warnings/boilerplate of simple test code
7406 ac_outfile=conftest.$ac_objext
7407 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7408 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7409 _lt_compiler_boilerplate=`cat conftest.err`
7410 $rm conftest*
7411
7412 ac_outfile=conftest.$ac_objext
7413 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7414 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7415 _lt_linker_boilerplate=`cat conftest.err`
7416 $rm conftest*
7417
7418
7419
7420 lt_prog_compiler_no_builtin_flag=
7421
7422 if test "$GCC" = yes; then
7423 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7424
7425
7426 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7427 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7428 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 lt_cv_prog_compiler_rtti_exceptions=no
7432 ac_outfile=conftest.$ac_objext
7433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
7444 (eval echo "\"\$as_me:7444: $lt_compile\"" >&5)
7445 (eval "$lt_compile" 2>conftest.err)
7446 ac_status=$?
7447 cat conftest.err >&5
7448 echo "$as_me:7448: \$? = $ac_status" >&5
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
7460 fi
7461 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7462 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7463
7464 if 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"
7466 else
7467 :
7468 fi
7469
7470 fi
7471
7472 lt_prog_compiler_wl=
7473 lt_prog_compiler_pic=
7474 lt_prog_compiler_static=
7475
7476 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
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
7499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7500 # PIC is the default for these OSes.
7501 ;;
7502
7503 mingw* | cygwin* | pw32* | os2*)
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).
7506 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7507 # (--disable-auto-import) libraries
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
7517 interix[3-9]*)
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
7575 mingw* | cygwin* | pw32* | os2*)
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
7608 linux* | k*bsd*-gnu)
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 ;;
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 ;;
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
7652 rdos*)
7653 lt_prog_compiler_static='-non_shared'
7654 ;;
7655
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
7708 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7709 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7710
7711 #
7712 # Check to make sure the PIC flag actually works.
7713 #
7714 if test -n "$lt_prog_compiler_pic"; then
7715
7716 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7717 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7718 if test "${lt_prog_compiler_pic_works+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721 lt_prog_compiler_pic_works=no
7722 ac_outfile=conftest.$ac_objext
7723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
7734 (eval echo "\"\$as_me:7734: $lt_compile\"" >&5)
7735 (eval "$lt_compile" 2>conftest.err)
7736 ac_status=$?
7737 cat conftest.err >&5
7738 echo "$as_me:7738: \$? = $ac_status" >&5
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
7750 fi
7751 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7752 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7753
7754 if 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
7759 else
7760 lt_prog_compiler_pic=
7761 lt_prog_compiler_can_build_shared=no
7762 fi
7763
7764 fi
7765 case $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 ;;
7773 esac
7774
7775 #
7776 # Check to make sure the static flag actually works.
7777 #
7778 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7781 if test "${lt_prog_compiler_static_works+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 lt_prog_compiler_static_works=no
7785 save_LDFLAGS="$LDFLAGS"
7786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
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
7806 fi
7807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7808 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7809
7810 if test x"$lt_prog_compiler_static_works" = xyes; then
7811 :
7812 else
7813 lt_prog_compiler_static=
7814 fi
7815
7816
7817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822 lt_cv_prog_compiler_c_o=no
7823 $rm -r conftest 2>/dev/null
7824 mkdir conftest
7825 cd conftest
7826 mkdir out
7827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
7838 (eval echo "\"\$as_me:7838: $lt_compile\"" >&5)
7839 (eval "$lt_compile" 2>out/conftest.err)
7840 ac_status=$?
7841 cat out/conftest.err >&5
7842 echo "$as_me:7842: \$? = $ac_status" >&5
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
7863 fi
7864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7866
7867
7868 hard_links="nottested"
7869 if 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
7871 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
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
7879 { echo "$as_me:$LINENO: result: $hard_links" >&5
7880 echo "${ECHO_T}$hard_links" >&6; }
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
7883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7884 need_locks=warn
7885 fi
7886 else
7887 need_locks=no
7888 fi
7889
7890 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
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
7937 done
7938 cc_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
7998 EOF
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
8034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
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
8052 interix[3-9]*)
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
8067 gnu* | linux* | k*bsd*-gnu)
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
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'
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~
8100 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
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
8129 EOF
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
8259 :
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
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305
8306 int
8307 main ()
8308 {
8309
8310 ;
8311 return 0;
8312 }
8313 _ACEOF
8314 rm -f conftest.$ac_objext conftest$ac_exeext
8315 if { (ac_try="$ac_link"
8316 case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_link") 2>conftest.er1
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
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
8332
8333 lt_aix_libpath_sed='
8334 /Import File Strings/,/^$/ {
8335 /^0/ {
8336 s/^0 *\(.*\)$/\1/
8337 p
8338 }
8339 }'
8340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8341 # Check for a 64-bit object if we didn't find anything.
8342 if test -z "$aix_libpath"; then
8343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8344 fi
8345 else
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349
8350 fi
8351
8352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8353 conftest$ac_exeext conftest.$ac_ext
8354 if 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
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371
8372 int
8373 main ()
8374 {
8375
8376 ;
8377 return 0;
8378 }
8379 _ACEOF
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8382 case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
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
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
8398
8399 lt_aix_libpath_sed='
8400 /Import File Strings/,/^$/ {
8401 /^0/ {
8402 s/^0 *\(.*\)$/\1/
8403 p
8404 }
8405 }'
8406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8407 # Check for a 64-bit object if we didn't find anything.
8408 if test -z "$aix_libpath"; then
8409 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8410 fi
8411 else
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8419 conftest$ac_exeext conftest.$ac_ext
8420 if 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.
8464 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
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'
8506 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
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
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}'
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.
8549 freebsd* | dragonfly*)
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*)
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
8691 else
8692 ld_shlibs=no
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 *)
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.
8754 # Supported since Solaris 2.6 (maybe 2.5.1?)
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 ;;
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
8817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
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
8870 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8871 echo "${ECHO_T}$ld_shlibs" >&6; }
8872 test "$ld_shlibs" = no && can_build_shared=no
8873
8874 #
8875 # Do we need to explicitly link libc?
8876 #
8877 case "x$archive_cmds_need_lc" in
8878 x|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.
8891 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8893 $rm conftest*
8894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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*
8929 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8930 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8931 ;;
8932 esac
8933 fi
8934 ;;
8935 esac
8936
8937 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8939 library_names_spec=
8940 libname_spec='lib$name'
8941 soname_spec=
8942 shrext_cmds=".so"
8943 postinstall_cmds=
8944 postuninstall_cmds=
8945 finish_cmds=
8946 finish_eval=
8947 shlibpath_var=
8948 shlibpath_overrides_runpath=unknown
8949 version_type=none
8950 dynamic_linker="$host_os ld.so"
8951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8952
8953 if test "$GCC" = yes; then
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
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.
8964 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8965 else
8966 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8967 fi
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 '
8981 BEGIN {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`
9001 else
9002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9003 fi
9004 need_lib_prefix=unknown
9005 hardcode_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
9009 need_version=unknown
9010
9011 case $host_os in
9012 aix3*)
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
9021 aix4* | 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
9065 amigaos*)
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
9071 beos*)
9072 library_names_spec='${libname}${shared_ext}'
9073 dynamic_linker="$host_os ld.so"
9074 shlibpath_var=LIBRARY_PATH
9075 ;;
9076
9077 bsdi[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
9091 cygwin* | 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
9150 darwin* | 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`'
9160
9161 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9163 ;;
9164
9165 dgux*)
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
9174 freebsd1*)
9175 dynamic_linker=no
9176 ;;
9177
9178 freebsd* | 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 ;;
9215 *) # from 4.6 on, and DragonFly
9216 shlibpath_overrides_runpath=yes
9217 hardcode_into_libs=yes
9218 ;;
9219 esac
9220 ;;
9221
9222 gnu*)
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
9232 hpux9* | 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
9278 interix[3-9]*)
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
9290 irix5* | 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.
9328 linux*oldld* | linux*aout* | linux*coff*)
9329 dynamic_linker=no
9330 ;;
9331
9332 # This must be Linux ELF.
9333 linux* | k*bsd*-gnu)
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
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}"
9348
9349 # Append ld.so.conf contents to the search path
9350 if test -f /etc/ld.so.conf; then
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"
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
9364 netbsd*)
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
9382 newsos6)
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
9389 nto-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
9399 openbsd*)
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
9425 os2*)
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
9434 osf3* | 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
9445 rdos*)
9446 dynamic_linker=no
9447 ;;
9448
9449 solaris*)
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
9462 sunos4*)
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
9474 sysv4 | 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
9498 sysv4*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
9507 sysv5* | 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
9530 uts4*)
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 ;;
9540 esac
9541 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9542 echo "${ECHO_T}$dynamic_linker" >&6; }
9543 test "$dynamic_linker" = no && can_build_shared=no
9544
9545 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9546 if test "$GCC" = yes; then
9547 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9548 fi
9549
9550 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9551 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9552 hardcode_action=
9553 if 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
9570 else
9571 # We cannot hardcode anything, or else we can only hardcode existing
9572 # directories.
9573 hardcode_action=unsupported
9574 fi
9575 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9576 echo "${ECHO_T}$hardcode_action" >&6; }
9577
9578 if test "$hardcode_action" = relink; then
9579 # Fast installation is not supported
9580 enable_fast_install=no
9581 elif test "$shlibpath_overrides_runpath" = yes ||
9582 test "$enable_shared" = no; then
9583 # Fast installation is not necessary
9584 enable_fast_install=needless
9585 fi
9586
9587 striplib=
9588 old_striplib=
9589 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9590 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9591 if 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"
9594 { echo "$as_me:$LINENO: result: yes" >&5
9595 echo "${ECHO_T}yes" >&6; }
9596 else
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"
9602 old_striplib="$STRIP -S"
9603 { echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6; }
9605 else
9606 { echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6; }
9608 fi
9609 ;;
9610 *)
9611 { echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6; }
9613 ;;
9614 esac
9615 fi
9616
9617 if test "x$enable_dlopen" != xyes; then
9618 enable_dlopen=unknown
9619 enable_dlopen_self=unknown
9620 enable_dlopen_self_static=unknown
9621 else
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
9644 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-ldl $LIBS"
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657
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. */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 char dlopen ();
9665 int
9666 main ()
9667 {
9668 return dlopen ();
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
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
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
9691 ac_cv_lib_dl_dlopen=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_cv_lib_dl_dlopen=no
9697 fi
9698
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9702 fi
9703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9705 if test $ac_cv_lib_dl_dlopen = yes; then
9706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9707 else
9708
9709 lt_cv_dlopen="dyld"
9710 lt_cv_dlopen_libs=
9711 lt_cv_dlopen_self=yes
9712
9713 fi
9714
9715 ;;
9716
9717 *)
9718 { echo "$as_me:$LINENO: checking for shl_load" >&5
9719 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9720 if test "${ac_cv_func_shl_load+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>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
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. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 char 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. */
9756 #if defined __stub_shl_load || defined __stub___shl_load
9757 choke me
9758 #endif
9759
9760 int
9761 main ()
9762 {
9763 return shl_load ();
9764 ;
9765 return 0;
9766 }
9767 _ACEOF
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9770 case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
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
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
9786 ac_cv_func_shl_load=yes
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 ac_cv_func_shl_load=no
9792 fi
9793
9794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9795 conftest$ac_exeext conftest.$ac_ext
9796 fi
9797 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9798 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9799 if test $ac_cv_func_shl_load = yes; then
9800 lt_cv_dlopen="shl_load"
9801 else
9802 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9803 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807 ac_check_lib_save_LIBS=$LIBS
9808 LIBS="-ldld $LIBS"
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815
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. */
9819 #ifdef __cplusplus
9820 extern "C"
9821 #endif
9822 char shl_load ();
9823 int
9824 main ()
9825 {
9826 return shl_load ();
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (ac_try="$ac_link"
9833 case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_link") 2>conftest.er1
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
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
9849 ac_cv_lib_dld_shl_load=yes
9850 else
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 ac_cv_lib_dld_shl_load=no
9855 fi
9856
9857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9858 conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9860 fi
9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863 if test $ac_cv_lib_dld_shl_load = yes; then
9864 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9865 else
9866 { echo "$as_me:$LINENO: checking for dlopen" >&5
9867 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9868 if test "${ac_cv_func_dlopen+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h. */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>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
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. */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 char 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. */
9904 #if defined __stub_dlopen || defined __stub___dlopen
9905 choke me
9906 #endif
9907
9908 int
9909 main ()
9910 {
9911 return dlopen ();
9912 ;
9913 return 0;
9914 }
9915 _ACEOF
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (ac_try="$ac_link"
9918 case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_link") 2>conftest.er1
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
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
9934 ac_cv_func_dlopen=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_func_dlopen=no
9940 fi
9941
9942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943 conftest$ac_exeext conftest.$ac_ext
9944 fi
9945 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9946 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9947 if test $ac_cv_func_dlopen = yes; then
9948 lt_cv_dlopen="dlopen"
9949 else
9950 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 ac_check_lib_save_LIBS=$LIBS
9956 LIBS="-ldl $LIBS"
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963
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. */
9967 #ifdef __cplusplus
9968 extern "C"
9969 #endif
9970 char dlopen ();
9971 int
9972 main ()
9973 {
9974 return dlopen ();
9975 ;
9976 return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (ac_try="$ac_link"
9981 case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
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
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
9997 ac_cv_lib_dl_dlopen=yes
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 ac_cv_lib_dl_dlopen=no
10003 fi
10004
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10008 fi
10009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10011 if test $ac_cv_lib_dl_dlopen = yes; then
10012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10013 else
10014 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10015 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10016 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019 ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-lsvld $LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027
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. */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char dlopen ();
10035 int
10036 main ()
10037 {
10038 return dlopen ();
10039 ;
10040 return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
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
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
10061 ac_cv_lib_svld_dlopen=yes
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 ac_cv_lib_svld_dlopen=no
10067 fi
10068
10069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10070 conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10072 fi
10073 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10074 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10075 if test $ac_cv_lib_svld_dlopen = yes; then
10076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10077 else
10078 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10079 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10080 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083 ac_check_lib_save_LIBS=$LIBS
10084 LIBS="-ldld $LIBS"
10085 cat >conftest.$ac_ext <<_ACEOF
10086 /* confdefs.h. */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091
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. */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 char dld_link ();
10099 int
10100 main ()
10101 {
10102 return dld_link ();
10103 ;
10104 return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (ac_try="$ac_link"
10109 case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_link") 2>conftest.er1
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
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
10125 ac_cv_lib_dld_dld_link=yes
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130 ac_cv_lib_dld_dld_link=no
10131 fi
10132
10133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10136 fi
10137 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10138 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10139 if test $ac_cv_lib_dld_dld_link = yes; then
10140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10141 fi
10142
10143
10144 fi
10145
10146
10147 fi
10148
10149
10150 fi
10151
10152
10153 fi
10154
10155
10156 fi
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
10178 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10179 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10180 if test "${lt_cv_dlopen_self+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 if test "$cross_compiling" = yes; then :
10184 lt_cv_dlopen_self=cross
10185 else
10186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10187 lt_status=$lt_dlunknown
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10189 "configure"
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
10231 extern "C" void exit (int);
10232 #endif
10233
10234 void fnord() { int i=42;}
10235 int 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 }
10251 EOF
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
10268 fi
10269 rm -fr conftest*
10270
10271
10272 fi
10273 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10274 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10275
10276 if test "x$lt_cv_dlopen_self" = xyes; then
10277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10278 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10279 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10280 if test "${lt_cv_dlopen_self_static+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 if test "$cross_compiling" = yes; then :
10284 lt_cv_dlopen_self_static=cross
10285 else
10286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10287 lt_status=$lt_dlunknown
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10289 "configure"
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
10331 extern "C" void exit (int);
10332 #endif
10333
10334 void fnord() { int i=42;}
10335 int 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 }
10351 EOF
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
10368 fi
10369 rm -fr conftest*
10370
10371
10372 fi
10373 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10374 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
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
10392 fi
10393
10394
10395 # Report which library types will actually be built
10396 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10397 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10398 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10399 echo "${ECHO_T}$can_build_shared" >&6; }
10400
10401 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10402 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10403 test "$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.
10407 case $host_os in
10408 aix3*)
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
10416 aix4* | aix5*)
10417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10418 test "$enable_shared" = yes && enable_static=no
10419 fi
10420 ;;
10421 esac
10422 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10423 echo "${ECHO_T}$enable_shared" >&6; }
10424
10425 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10426 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10427 # Make sure either enable_shared or enable_static is yes.
10428 test "$enable_shared" = yes || enable_static=yes
10429 { echo "$as_me:$LINENO: result: $enable_static" >&5
10430 echo "${ECHO_T}$enable_static" >&6; }
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.
10436 if 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 \
10487 fix_srcfile_path \
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
10519 cfgfile="${ofile}T"
10520 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10521 $rm -f "$cfgfile"
10522 { echo "$as_me:$LINENO: creating $ofile" >&5
10523 echo "$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 #
10532 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
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.
10558 SED=$lt_SED
10559
10560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10561 Xsed="$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.
10568 available_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.
10575 SHELL=$lt_SHELL
10576
10577 # Whether or not to build shared libraries.
10578 build_libtool_libs=$enable_shared
10579
10580 # Whether or not to build static libraries.
10581 build_old_libs=$enable_static
10582
10583 # Whether or not to add -lc for building shared libraries.
10584 build_libtool_need_lc=$archive_cmds_need_lc
10585
10586 # Whether or not to disallow shared libs when runtime libs are static
10587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10588
10589 # Whether or not to optimize for fast installation.
10590 fast_install=$enable_fast_install
10591
10592 # The host system.
10593 host_alias=$host_alias
10594 host=$host
10595 host_os=$host_os
10596
10597 # The build system.
10598 build_alias=$build_alias
10599 build=$build
10600 build_os=$build_os
10601
10602 # An echo program that does not interpret backslashes.
10603 echo=$lt_echo
10604
10605 # The archiver.
10606 AR=$lt_AR
10607 AR_FLAGS=$lt_AR_FLAGS
10608
10609 # A C compiler.
10610 LTCC=$lt_LTCC
10611
10612 # LTCC compiler flags.
10613 LTCFLAGS=$lt_LTCFLAGS
10614
10615 # A language-specific compiler.
10616 CC=$lt_compiler
10617
10618 # Is the compiler the GNU C compiler?
10619 with_gcc=$GCC
10620
10621 # An ERE matcher.
10622 EGREP=$lt_EGREP
10623
10624 # The linker used to build libraries.
10625 LD=$lt_LD
10626
10627 # Whether we need hard or soft links.
10628 LN_S=$lt_LN_S
10629
10630 # A BSD-compatible nm program.
10631 NM=$lt_NM
10632
10633 # A symbol stripping program
10634 STRIP=$lt_STRIP
10635
10636 # Used to examine libraries when file_magic_cmd begins "file"
10637 MAGIC_CMD=$MAGIC_CMD
10638
10639 # Used on cygwin: DLL creation program.
10640 DLLTOOL="$DLLTOOL"
10641
10642 # Used on cygwin: object dumper.
10643 OBJDUMP="$OBJDUMP"
10644
10645 # Used on cygwin: assembler.
10646 AS="$AS"
10647
10648 # The name of the directory that contains temporary libtool files.
10649 objdir=$objdir
10650
10651 # How to create reloadable object files.
10652 reload_flag=$lt_reload_flag
10653 reload_cmds=$lt_reload_cmds
10654
10655 # How to pass a linker flag through the compiler.
10656 wl=$lt_lt_prog_compiler_wl
10657
10658 # Object file suffix (normally "o").
10659 objext="$ac_objext"
10660
10661 # Old archive suffix (normally "a").
10662 libext="$libext"
10663
10664 # Shared library suffix (normally ".so").
10665 shrext_cmds='$shrext_cmds'
10666
10667 # Executable file suffix (normally "").
10668 exeext="$exeext"
10669
10670 # Additional compiler flags for building library objects.
10671 pic_flag=$lt_lt_prog_compiler_pic
10672 pic_mode=$pic_mode
10673
10674 # What is the maximum length of a command?
10675 max_cmd_len=$lt_cv_sys_max_cmd_len
10676
10677 # Does compiler simultaneously support -c and -o options?
10678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10679
10680 # Must we lock files when doing compilation?
10681 need_locks=$lt_need_locks
10682
10683 # Do we need the lib prefix for modules?
10684 need_lib_prefix=$need_lib_prefix
10685
10686 # Do we need a version for libraries?
10687 need_version=$need_version
10688
10689 # Whether dlopen is supported.
10690 dlopen_support=$enable_dlopen
10691
10692 # Whether dlopen of programs is supported.
10693 dlopen_self=$enable_dlopen_self
10694
10695 # Whether dlopen of statically linked programs is supported.
10696 dlopen_self_static=$enable_dlopen_self_static
10697
10698 # Compiler flag to prevent dynamic linking.
10699 link_static_flag=$lt_lt_prog_compiler_static
10700
10701 # Compiler flag to turn off builtin functions.
10702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10703
10704 # Compiler flag to allow reflexive dlopens.
10705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10706
10707 # Compiler flag to generate shared objects directly from archives.
10708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10709
10710 # Compiler flag to generate thread-safe objects.
10711 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10712
10713 # Library versioning type.
10714 version_type=$version_type
10715
10716 # Format of library name prefix.
10717 libname_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.
10721 library_names_spec=$lt_library_names_spec
10722
10723 # The coded name of the library, if different from the real name.
10724 soname_spec=$lt_soname_spec
10725
10726 # Commands used to build and install an old-style archive.
10727 RANLIB=$lt_RANLIB
10728 old_archive_cmds=$lt_old_archive_cmds
10729 old_postinstall_cmds=$lt_old_postinstall_cmds
10730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10731
10732 # Create an old-style archive from a shared archive.
10733 old_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.
10736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10737
10738 # Commands used to build and install a shared archive.
10739 archive_cmds=$lt_archive_cmds
10740 archive_expsym_cmds=$lt_archive_expsym_cmds
10741 postinstall_cmds=$lt_postinstall_cmds
10742 postuninstall_cmds=$lt_postuninstall_cmds
10743
10744 # Commands used to build a loadable module (assumed same as above if empty)
10745 module_cmds=$lt_module_cmds
10746 module_expsym_cmds=$lt_module_expsym_cmds
10747
10748 # Commands to strip libraries.
10749 old_striplib=$lt_old_striplib
10750 striplib=$lt_striplib
10751
10752 # Dependencies to place before the objects being linked to create a
10753 # shared library.
10754 predep_objects=$lt_predep_objects
10755
10756 # Dependencies to place after the objects being linked to create a
10757 # shared library.
10758 postdep_objects=$lt_postdep_objects
10759
10760 # Dependencies to place before the objects being linked to create a
10761 # shared library.
10762 predeps=$lt_predeps
10763
10764 # Dependencies to place after the objects being linked to create a
10765 # shared library.
10766 postdeps=$lt_postdeps
10767
10768 # The library search path used internally by the compiler when linking
10769 # a shared library.
10770 compiler_lib_search_path=$lt_compiler_lib_search_path
10771
10772 # Method to check whether dependent libraries are shared objects.
10773 deplibs_check_method=$lt_deplibs_check_method
10774
10775 # Command to use when deplibs_check_method == file_magic.
10776 file_magic_cmd=$lt_file_magic_cmd
10777
10778 # Flag that allows shared libraries with undefined symbols to be built.
10779 allow_undefined_flag=$lt_allow_undefined_flag
10780
10781 # Flag that forces no undefined symbols.
10782 no_undefined_flag=$lt_no_undefined_flag
10783
10784 # Commands used to finish a libtool library installation in a directory.
10785 finish_cmds=$lt_finish_cmds
10786
10787 # Same as above, but a single script fragment to be evaled but not shown.
10788 finish_eval=$lt_finish_eval
10789
10790 # Take the output of nm and produce a listing of raw symbols and C names.
10791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10792
10793 # Transform the output of nm in a proper C declaration
10794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10795
10796 # Transform the output of nm in a C name address pair
10797 global_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.
10800 runpath_var=$runpath_var
10801
10802 # This is the shared library path variable.
10803 shlibpath_var=$shlibpath_var
10804
10805 # Is shlibpath searched before the hard-coded library search path?
10806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10807
10808 # How to hardcode a shared library path into an executable.
10809 hardcode_action=$hardcode_action
10810
10811 # Whether we should hardcode library paths into libraries.
10812 hardcode_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.
10816 hardcode_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.
10821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10822
10823 # Whether we need a single -rpath flag with a separated argument.
10824 hardcode_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.
10828 hardcode_direct=$hardcode_direct
10829
10830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10831 # resulting binary.
10832 hardcode_minus_L=$hardcode_minus_L
10833
10834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10835 # the resulting binary.
10836 hardcode_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.
10840 hardcode_automatic=$hardcode_automatic
10841
10842 # Variables whose values should be saved in libtool wrapper scripts and
10843 # restored at relink time.
10844 variables_saved_for_relink="$variables_saved_for_relink"
10845
10846 # Whether libtool must link a program against all its dependency libraries.
10847 link_all_deplibs=$link_all_deplibs
10848
10849 # Compile-time system search path for libraries
10850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10851
10852 # Run-time system search path for libraries
10853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10854
10855 # Fix the shell variable \$srcfile for the compiler.
10856 fix_srcfile_path=$lt_fix_srcfile_path
10857
10858 # Set to yes if exported symbols are required.
10859 always_export_symbols=$always_export_symbols
10860
10861 # The commands to list exported symbols.
10862 export_symbols_cmds=$lt_export_symbols_cmds
10863
10864 # The commands to extract the exported symbol list from a shared archive.
10865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10866
10867 # Symbols that should not be listed in the preloaded symbols.
10868 exclude_expsyms=$lt_exclude_expsyms
10869
10870 # Symbols that must always be exported.
10871 include_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.
10885 if test "X${COLLECT_NAMES+set}" != Xset; then
10886 COLLECT_NAMES=
10887 export COLLECT_NAMES
10888 fi
10889 EOF
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
10903 else
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
10911 fi
10912
10913
10914 ac_ext=c
10915 ac_cpp='$CPP $CPPFLAGS'
10916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10919
10920 CC="$lt_save_CC"
10921
10922
10923 # Check whether --with-tags was given.
10924 if test "${with_tags+set}" = set; then
10925 withval=$with_tags; tagnames="$withval"
10926 fi
10927
10928
10929 if 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
10932 echo "$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
10939 echo "$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
10942 echo "$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
10960 echo "$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
10968 echo "$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
10981 ac_ext=cpp
10982 ac_cpp='$CXXCPP $CPPFLAGS'
10983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10986
10987
10988
10989
10990 archive_cmds_need_lc_CXX=no
10991 allow_undefined_flag_CXX=
10992 always_export_symbols_CXX=no
10993 archive_expsym_cmds_CXX=
10994 export_dynamic_flag_spec_CXX=
10995 hardcode_direct_CXX=no
10996 hardcode_libdir_flag_spec_CXX=
10997 hardcode_libdir_flag_spec_ld_CXX=
10998 hardcode_libdir_separator_CXX=
10999 hardcode_minus_L_CXX=no
11000 hardcode_shlibpath_var_CXX=unsupported
11001 hardcode_automatic_CXX=no
11002 module_cmds_CXX=
11003 module_expsym_cmds_CXX=
11004 link_all_deplibs_CXX=unknown
11005 old_archive_cmds_CXX=$old_archive_cmds
11006 no_undefined_flag_CXX=
11007 whole_archive_flag_spec_CXX=
11008 enable_shared_with_static_runtimes_CXX=no
11009
11010 # Dependencies to place before and after the object being linked:
11011 predep_objects_CXX=
11012 postdep_objects_CXX=
11013 predeps_CXX=
11014 postdeps_CXX=
11015 compiler_lib_search_path_CXX=
11016
11017 # Source file extension for C++ test sources.
11018 ac_ext=cpp
11019
11020 # Object file extension for compiled C++ test sources.
11021 objext=o
11022 objext_CXX=$objext
11023
11024 # Code to be used in simple compile tests
11025 lt_simple_compile_test_code="int some_variable = 0;"
11026
11027 # Code to be used in simple link tests
11028 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
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.
11033 LTCC=${LTCC-"$CC"}
11034
11035 # If no C compiler flags were specified, use CFLAGS.
11036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11037
11038 # Allow CC to be a program name with arguments.
11039 compiler=$CC
11040
11041
11042 # save warnings/boilerplate of simple test code
11043 ac_outfile=conftest.$ac_objext
11044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11046 _lt_compiler_boilerplate=`cat conftest.err`
11047 $rm conftest*
11048
11049 ac_outfile=conftest.$ac_objext
11050 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11051 eval "$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.
11057 lt_save_CC=$CC
11058 lt_save_LD=$LD
11059 lt_save_GCC=$GCC
11060 GCC=$GXX
11061 lt_save_with_gnu_ld=$with_gnu_ld
11062 lt_save_path_LD=$lt_cv_path_LD
11063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11065 else
11066 $as_unset lt_cv_prog_gnu_ld
11067 fi
11068 if test -n "${lt_cv_path_LDCXX+set}"; then
11069 lt_cv_path_LD=$lt_cv_path_LDCXX
11070 else
11071 $as_unset lt_cv_path_LD
11072 fi
11073 test -z "${LDCXX+set}" || LD=$LDCXX
11074 CC=${CXX-"c++"}
11075 compiler=$CC
11076 compiler_CXX=$CC
11077 for 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
11084 done
11085 cc_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
11090 if test "$GXX" = yes; then
11091 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11092 else
11093 lt_prog_compiler_no_builtin_flag_CXX=
11094 fi
11095
11096 if test "$GXX" = yes; then
11097 # Set up default GNU C++ configuration
11098
11099
11100 # Check whether --with-gnu-ld was given.
11101 if test "${with_gnu_ld+set}" = set; then
11102 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11103 else
11104 with_gnu_ld=no
11105 fi
11106
11107 ac_prog=ld
11108 if test "$GCC" = yes; then
11109 # Check if gcc -print-prog-name=ld gives a path.
11110 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11111 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
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
11139 elif test "$with_gnu_ld" = yes; then
11140 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11141 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11142 else
11143 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11144 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11145 fi
11146 if test "${lt_cv_path_LD+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
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"
11170 else
11171 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11172 fi
11173 fi
11174
11175 LD="$lt_cv_path_LD"
11176 if test -n "$LD"; then
11177 { echo "$as_me:$LINENO: result: $LD" >&5
11178 echo "${ECHO_T}$LD" >&6; }
11179 else
11180 { echo "$as_me:$LINENO: result: no" >&5
11181 echo "${ECHO_T}no" >&6; }
11182 fi
11183 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11184 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11185 { (exit 1); exit 1; }; }
11186 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11187 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11188 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11192 case `$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 ;;
11199 esac
11200 fi
11201 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11202 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11203 with_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
11245 else
11246 GXX=no
11247 with_gnu_ld=no
11248 wlarc=
11249 fi
11250
11251 # PORTME: fill in a description of your system's C++ link characteristics
11252 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11253 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11254 ld_shlibs_CXX=yes
11255 case $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
11309 :
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
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355
11356 int
11357 main ()
11358 {
11359
11360 ;
11361 return 0;
11362 }
11363 _ACEOF
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (ac_try="$ac_link"
11366 case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_link") 2>conftest.er1
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
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
11382
11383 lt_aix_libpath_sed='
11384 /Import File Strings/,/^$/ {
11385 /^0/ {
11386 s/^0 *\(.*\)$/\1/
11387 p
11388 }
11389 }'
11390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11391 # Check for a 64-bit object if we didn't find anything.
11392 if test -z "$aix_libpath"; then
11393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11394 fi
11395 else
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399
11400 fi
11401
11402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11403 conftest$ac_exeext conftest.$ac_ext
11404 if 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
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422
11423 int
11424 main ()
11425 {
11426
11427 ;
11428 return 0;
11429 }
11430 _ACEOF
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (ac_try="$ac_link"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_link") 2>conftest.er1
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
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
11449
11450 lt_aix_libpath_sed='
11451 /Import File Strings/,/^$/ {
11452 /^0/ {
11453 s/^0 *\(.*\)$/\1/
11454 p
11455 }
11456 }'
11457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11458 # Check for a 64-bit object if we didn't find anything.
11459 if test -z "$aix_libpath"; then
11460 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11461 fi
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466
11467 fi
11468
11469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11470 conftest$ac_exeext conftest.$ac_ext
11471 if 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'
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'
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
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}'
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 ;;
11617 freebsd* | dragonfly*)
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
11666 hppa*64*|ia64*) ;;
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 ;;
11734 interix[3-9]*)
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 ;;
11774 linux* | k*bsd*-gnu)
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 ;;
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 ;;
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*)
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
11928 fi
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 *)
12090 # The compiler driver will combine and reorder linker options,
12091 # but understands `-z linker_flag'.
12092 # Supported since Solaris 2.6 (maybe 2.5.1?)
12093 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
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'
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
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 ;;
12225 esac
12226 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12227 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12228 test "$ld_shlibs_CXX" = no && can_build_shared=no
12229
12230 GCC_CXX="$GXX"
12231 LD_CXX="$LD"
12232
12233
12234 cat > conftest.$ac_ext <<EOF
12235 class Foo
12236 {
12237 public:
12238 Foo (void) { a = 0; }
12239 private:
12240 int a;
12241 };
12242 EOF
12243
12244 if { (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
12329 else
12330 echo "libtool.m4: error: problem compiling CXX test program"
12331 fi
12332
12333 $rm -f confest.$objext
12334
12335 # PORTME: override above test on systems where it is broken
12336 case $host_os in
12337 interix[3-9]*)
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
12345 linux*)
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
12366 solaris*)
12367 case $cc_basename in
12368 CC*)
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
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.
12382 if test "$solaris_use_stlport4" != yes; then
12383 postdeps_CXX='-library=Cstd -library=Crun'
12384 fi
12385 ;;
12386 esac
12387 ;;
12388 esac
12389
12390
12391 case " $postdeps_CXX " in
12392 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12393 esac
12394
12395 lt_prog_compiler_wl_CXX=
12396 lt_prog_compiler_pic_CXX=
12397 lt_prog_compiler_static_CXX=
12398
12399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
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 ;;
12421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12422 # PIC is the default for these OSes.
12423 ;;
12424 mingw* | cygwin* | os2* | pw32*)
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).
12427 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12428 # (--disable-auto-import) libraries
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 ;;
12440 interix[3-9]*)
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 ;;
12506 freebsd* | dragonfly*)
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 ;;
12549 linux* | k*bsd*-gnu)
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 *)
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
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
12683 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12684 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12685
12686 #
12687 # Check to make sure the PIC flag actually works.
12688 #
12689 if test -n "$lt_prog_compiler_pic_CXX"; then
12690
12691 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12692 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12693 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696 lt_prog_compiler_pic_works_CXX=no
12697 ac_outfile=conftest.$ac_objext
12698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
12709 (eval echo "\"\$as_me:12709: $lt_compile\"" >&5)
12710 (eval "$lt_compile" 2>conftest.err)
12711 ac_status=$?
12712 cat conftest.err >&5
12713 echo "$as_me:12713: \$? = $ac_status" >&5
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
12725 fi
12726 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12727 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12728
12729 if 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
12734 else
12735 lt_prog_compiler_pic_CXX=
12736 lt_prog_compiler_can_build_shared_CXX=no
12737 fi
12738
12739 fi
12740 case $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 ;;
12748 esac
12749
12750 #
12751 # Check to make sure the static flag actually works.
12752 #
12753 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12754 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12755 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12756 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759 lt_prog_compiler_static_works_CXX=no
12760 save_LDFLAGS="$LDFLAGS"
12761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
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
12781 fi
12782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12783 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12784
12785 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12786 :
12787 else
12788 lt_prog_compiler_static_CXX=
12789 fi
12790
12791
12792 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
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
12802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
12813 (eval echo "\"\$as_me:12813: $lt_compile\"" >&5)
12814 (eval "$lt_compile" 2>out/conftest.err)
12815 ac_status=$?
12816 cat out/conftest.err >&5
12817 echo "$as_me:12817: \$? = $ac_status" >&5
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
12838 fi
12839 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12841
12842
12843 hard_links="nottested"
12844 if 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
12846 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
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
12854 { echo "$as_me:$LINENO: result: $hard_links" >&5
12855 echo "${ECHO_T}$hard_links" >&6; }
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
12858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12859 need_locks=warn
12860 fi
12861 else
12862 need_locks=no
12863 fi
12864
12865 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
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*)
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'
12884 ;;
12885 *)
12886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12887 ;;
12888 esac
12889
12890 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12891 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12892 test "$ld_shlibs_CXX" = no && can_build_shared=no
12893
12894 #
12895 # Do we need to explicitly link libc?
12896 #
12897 case "x$archive_cmds_need_lc_CXX" in
12898 x|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.
12911 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12912 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12913 $rm conftest*
12914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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*
12949 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12950 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12951 ;;
12952 esac
12953 fi
12954 ;;
12955 esac
12956
12957 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12958 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12959 library_names_spec=
12960 libname_spec='lib$name'
12961 soname_spec=
12962 shrext_cmds=".so"
12963 postinstall_cmds=
12964 postuninstall_cmds=
12965 finish_cmds=
12966 finish_eval=
12967 shlibpath_var=
12968 shlibpath_overrides_runpath=unknown
12969 version_type=none
12970 dynamic_linker="$host_os ld.so"
12971 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12972
12973 need_lib_prefix=unknown
12974 hardcode_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
12978 need_version=unknown
12979
12980 case $host_os in
12981 aix3*)
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
12990 aix4* | 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
13034 amigaos*)
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
13040 beos*)
13041 library_names_spec='${libname}${shared_ext}'
13042 dynamic_linker="$host_os ld.so"
13043 shlibpath_var=LIBRARY_PATH
13044 ;;
13045
13046 bsdi[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
13060 cygwin* | 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
13119 darwin* | 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`'
13129
13130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13131 ;;
13132
13133 dgux*)
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
13142 freebsd1*)
13143 dynamic_linker=no
13144 ;;
13145
13146 freebsd* | 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 ;;
13183 *) # from 4.6 on, and DragonFly
13184 shlibpath_overrides_runpath=yes
13185 hardcode_into_libs=yes
13186 ;;
13187 esac
13188 ;;
13189
13190 gnu*)
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
13200 hpux9* | 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
13246 interix[3-9]*)
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
13258 irix5* | 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.
13296 linux*oldld* | linux*aout* | linux*coff*)
13297 dynamic_linker=no
13298 ;;
13299
13300 # This must be Linux ELF.
13301 linux* | k*bsd*-gnu)
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
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}"
13316
13317 # Append ld.so.conf contents to the search path
13318 if test -f /etc/ld.so.conf; then
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"
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
13332 netbsd*)
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
13350 newsos6)
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
13357 nto-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
13367 openbsd*)
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
13393 os2*)
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
13402 osf3* | 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
13413 rdos*)
13414 dynamic_linker=no
13415 ;;
13416
13417 solaris*)
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
13430 sunos4*)
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
13442 sysv4 | 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
13466 sysv4*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
13475 sysv5* | 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
13498 uts4*)
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 ;;
13508 esac
13509 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13510 echo "${ECHO_T}$dynamic_linker" >&6; }
13511 test "$dynamic_linker" = no && can_build_shared=no
13512
13513 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13514 if test "$GCC" = yes; then
13515 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13516 fi
13517
13518 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13519 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13520 hardcode_action_CXX=
13521 if 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
13538 else
13539 # We cannot hardcode anything, or else we can only hardcode existing
13540 # directories.
13541 hardcode_action_CXX=unsupported
13542 fi
13543 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13544 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13545
13546 if test "$hardcode_action_CXX" = relink; then
13547 # Fast installation is not supported
13548 enable_fast_install=no
13549 elif test "$shlibpath_overrides_runpath" = yes ||
13550 test "$enable_shared" = no; then
13551 # Fast installation is not necessary
13552 enable_fast_install=needless
13553 fi
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.
13560 if 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 \
13611 fix_srcfile_path_CXX \
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
13643 cfgfile="$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.
13651 SHELL=$lt_SHELL
13652
13653 # Whether or not to build shared libraries.
13654 build_libtool_libs=$enable_shared
13655
13656 # Whether or not to build static libraries.
13657 build_old_libs=$enable_static
13658
13659 # Whether or not to add -lc for building shared libraries.
13660 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13661
13662 # Whether or not to disallow shared libs when runtime libs are static
13663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13664
13665 # Whether or not to optimize for fast installation.
13666 fast_install=$enable_fast_install
13667
13668 # The host system.
13669 host_alias=$host_alias
13670 host=$host
13671 host_os=$host_os
13672
13673 # The build system.
13674 build_alias=$build_alias
13675 build=$build
13676 build_os=$build_os
13677
13678 # An echo program that does not interpret backslashes.
13679 echo=$lt_echo
13680
13681 # The archiver.
13682 AR=$lt_AR
13683 AR_FLAGS=$lt_AR_FLAGS
13684
13685 # A C compiler.
13686 LTCC=$lt_LTCC
13687
13688 # LTCC compiler flags.
13689 LTCFLAGS=$lt_LTCFLAGS
13690
13691 # A language-specific compiler.
13692 CC=$lt_compiler_CXX
13693
13694 # Is the compiler the GNU C compiler?
13695 with_gcc=$GCC_CXX
13696
13697 # An ERE matcher.
13698 EGREP=$lt_EGREP
13699
13700 # The linker used to build libraries.
13701 LD=$lt_LD_CXX
13702
13703 # Whether we need hard or soft links.
13704 LN_S=$lt_LN_S
13705
13706 # A BSD-compatible nm program.
13707 NM=$lt_NM
13708
13709 # A symbol stripping program
13710 STRIP=$lt_STRIP
13711
13712 # Used to examine libraries when file_magic_cmd begins "file"
13713 MAGIC_CMD=$MAGIC_CMD
13714
13715 # Used on cygwin: DLL creation program.
13716 DLLTOOL="$DLLTOOL"
13717
13718 # Used on cygwin: object dumper.
13719 OBJDUMP="$OBJDUMP"
13720
13721 # Used on cygwin: assembler.
13722 AS="$AS"
13723
13724 # The name of the directory that contains temporary libtool files.
13725 objdir=$objdir
13726
13727 # How to create reloadable object files.
13728 reload_flag=$lt_reload_flag
13729 reload_cmds=$lt_reload_cmds
13730
13731 # How to pass a linker flag through the compiler.
13732 wl=$lt_lt_prog_compiler_wl_CXX
13733
13734 # Object file suffix (normally "o").
13735 objext="$ac_objext"
13736
13737 # Old archive suffix (normally "a").
13738 libext="$libext"
13739
13740 # Shared library suffix (normally ".so").
13741 shrext_cmds='$shrext_cmds'
13742
13743 # Executable file suffix (normally "").
13744 exeext="$exeext"
13745
13746 # Additional compiler flags for building library objects.
13747 pic_flag=$lt_lt_prog_compiler_pic_CXX
13748 pic_mode=$pic_mode
13749
13750 # What is the maximum length of a command?
13751 max_cmd_len=$lt_cv_sys_max_cmd_len
13752
13753 # Does compiler simultaneously support -c and -o options?
13754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13755
13756 # Must we lock files when doing compilation?
13757 need_locks=$lt_need_locks
13758
13759 # Do we need the lib prefix for modules?
13760 need_lib_prefix=$need_lib_prefix
13761
13762 # Do we need a version for libraries?
13763 need_version=$need_version
13764
13765 # Whether dlopen is supported.
13766 dlopen_support=$enable_dlopen
13767
13768 # Whether dlopen of programs is supported.
13769 dlopen_self=$enable_dlopen_self
13770
13771 # Whether dlopen of statically linked programs is supported.
13772 dlopen_self_static=$enable_dlopen_self_static
13773
13774 # Compiler flag to prevent dynamic linking.
13775 link_static_flag=$lt_lt_prog_compiler_static_CXX
13776
13777 # Compiler flag to turn off builtin functions.
13778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13779
13780 # Compiler flag to allow reflexive dlopens.
13781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13782
13783 # Compiler flag to generate shared objects directly from archives.
13784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13785
13786 # Compiler flag to generate thread-safe objects.
13787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13788
13789 # Library versioning type.
13790 version_type=$version_type
13791
13792 # Format of library name prefix.
13793 libname_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.
13797 library_names_spec=$lt_library_names_spec
13798
13799 # The coded name of the library, if different from the real name.
13800 soname_spec=$lt_soname_spec
13801
13802 # Commands used to build and install an old-style archive.
13803 RANLIB=$lt_RANLIB
13804 old_archive_cmds=$lt_old_archive_cmds_CXX
13805 old_postinstall_cmds=$lt_old_postinstall_cmds
13806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13807
13808 # Create an old-style archive from a shared archive.
13809 old_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.
13812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13813
13814 # Commands used to build and install a shared archive.
13815 archive_cmds=$lt_archive_cmds_CXX
13816 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13817 postinstall_cmds=$lt_postinstall_cmds
13818 postuninstall_cmds=$lt_postuninstall_cmds
13819
13820 # Commands used to build a loadable module (assumed same as above if empty)
13821 module_cmds=$lt_module_cmds_CXX
13822 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13823
13824 # Commands to strip libraries.
13825 old_striplib=$lt_old_striplib
13826 striplib=$lt_striplib
13827
13828 # Dependencies to place before the objects being linked to create a
13829 # shared library.
13830 predep_objects=$lt_predep_objects_CXX
13831
13832 # Dependencies to place after the objects being linked to create a
13833 # shared library.
13834 postdep_objects=$lt_postdep_objects_CXX
13835
13836 # Dependencies to place before the objects being linked to create a
13837 # shared library.
13838 predeps=$lt_predeps_CXX
13839
13840 # Dependencies to place after the objects being linked to create a
13841 # shared library.
13842 postdeps=$lt_postdeps_CXX
13843
13844 # The library search path used internally by the compiler when linking
13845 # a shared library.
13846 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13847
13848 # Method to check whether dependent libraries are shared objects.
13849 deplibs_check_method=$lt_deplibs_check_method
13850
13851 # Command to use when deplibs_check_method == file_magic.
13852 file_magic_cmd=$lt_file_magic_cmd
13853
13854 # Flag that allows shared libraries with undefined symbols to be built.
13855 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13856
13857 # Flag that forces no undefined symbols.
13858 no_undefined_flag=$lt_no_undefined_flag_CXX
13859
13860 # Commands used to finish a libtool library installation in a directory.
13861 finish_cmds=$lt_finish_cmds
13862
13863 # Same as above, but a single script fragment to be evaled but not shown.
13864 finish_eval=$lt_finish_eval
13865
13866 # Take the output of nm and produce a listing of raw symbols and C names.
13867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13868
13869 # Transform the output of nm in a proper C declaration
13870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13871
13872 # Transform the output of nm in a C name address pair
13873 global_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.
13876 runpath_var=$runpath_var
13877
13878 # This is the shared library path variable.
13879 shlibpath_var=$shlibpath_var
13880
13881 # Is shlibpath searched before the hard-coded library search path?
13882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13883
13884 # How to hardcode a shared library path into an executable.
13885 hardcode_action=$hardcode_action_CXX
13886
13887 # Whether we should hardcode library paths into libraries.
13888 hardcode_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.
13892 hardcode_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.
13897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13898
13899 # Whether we need a single -rpath flag with a separated argument.
13900 hardcode_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.
13904 hardcode_direct=$hardcode_direct_CXX
13905
13906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13907 # resulting binary.
13908 hardcode_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.
13912 hardcode_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.
13916 hardcode_automatic=$hardcode_automatic_CXX
13917
13918 # Variables whose values should be saved in libtool wrapper scripts and
13919 # restored at relink time.
13920 variables_saved_for_relink="$variables_saved_for_relink"
13921
13922 # Whether libtool must link a program against all its dependency libraries.
13923 link_all_deplibs=$link_all_deplibs_CXX
13924
13925 # Compile-time system search path for libraries
13926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13927
13928 # Run-time system search path for libraries
13929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13930
13931 # Fix the shell variable \$srcfile for the compiler.
13932 fix_srcfile_path=$lt_fix_srcfile_path
13933
13934 # Set to yes if exported symbols are required.
13935 always_export_symbols=$always_export_symbols_CXX
13936
13937 # The commands to list exported symbols.
13938 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13939
13940 # The commands to extract the exported symbol list from a shared archive.
13941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13942
13943 # Symbols that should not be listed in the preloaded symbols.
13944 exclude_expsyms=$lt_exclude_expsyms_CXX
13945
13946 # Symbols that must always be exported.
13947 include_expsyms=$lt_include_expsyms_CXX
13948
13949 # ### END LIBTOOL TAG CONFIG: $tagname
13950
13951 __EOF__
13952
13953
13954 else
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
13962 fi
13963
13964
13965 ac_ext=c
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970
13971 CC=$lt_save_CC
13972 LDCXX=$LD
13973 LD=$lt_save_LD
13974 GCC=$lt_save_GCC
13975 with_gnu_ldcxx=$with_gnu_ld
13976 with_gnu_ld=$lt_save_with_gnu_ld
13977 lt_cv_path_LDCXX=$lt_cv_path_LD
13978 lt_cv_path_LD=$lt_save_path_LD
13979 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13980 lt_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
13990 ac_ext=f
13991 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13992 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13993 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13994
13995
13996 archive_cmds_need_lc_F77=no
13997 allow_undefined_flag_F77=
13998 always_export_symbols_F77=no
13999 archive_expsym_cmds_F77=
14000 export_dynamic_flag_spec_F77=
14001 hardcode_direct_F77=no
14002 hardcode_libdir_flag_spec_F77=
14003 hardcode_libdir_flag_spec_ld_F77=
14004 hardcode_libdir_separator_F77=
14005 hardcode_minus_L_F77=no
14006 hardcode_automatic_F77=no
14007 module_cmds_F77=
14008 module_expsym_cmds_F77=
14009 link_all_deplibs_F77=unknown
14010 old_archive_cmds_F77=$old_archive_cmds
14011 no_undefined_flag_F77=
14012 whole_archive_flag_spec_F77=
14013 enable_shared_with_static_runtimes_F77=no
14014
14015 # Source file extension for f77 test sources.
14016 ac_ext=f
14017
14018 # Object file extension for compiled f77 test sources.
14019 objext=o
14020 objext_F77=$objext
14021
14022 # Code to be used in simple compile tests
14023 lt_simple_compile_test_code="\
14024 subroutine t
14025 return
14026 end
14027 "
14028
14029 # Code to be used in simple link tests
14030 lt_simple_link_test_code="\
14031 program t
14032 end
14033 "
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.
14038 LTCC=${LTCC-"$CC"}
14039
14040 # If no C compiler flags were specified, use CFLAGS.
14041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14042
14043 # Allow CC to be a program name with arguments.
14044 compiler=$CC
14045
14046
14047 # save warnings/boilerplate of simple test code
14048 ac_outfile=conftest.$ac_objext
14049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14051 _lt_compiler_boilerplate=`cat conftest.err`
14052 $rm conftest*
14053
14054 ac_outfile=conftest.$ac_objext
14055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14056 eval "$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.
14062 lt_save_CC="$CC"
14063 CC=${F77-"f77"}
14064 compiler=$CC
14065 compiler_F77=$CC
14066 for 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
14073 done
14074 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14075
14076
14077 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14078 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14079 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14080 echo "${ECHO_T}$can_build_shared" >&6; }
14081
14082 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14083 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14084 test "$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.
14088 case $host_os in
14089 aix3*)
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 ;;
14096 aix4* | aix5*)
14097 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14098 test "$enable_shared" = yes && enable_static=no
14099 fi
14100 ;;
14101 esac
14102 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14103 echo "${ECHO_T}$enable_shared" >&6; }
14104
14105 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14106 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14107 # Make sure either enable_shared or enable_static is yes.
14108 test "$enable_shared" = yes || enable_static=yes
14109 { echo "$as_me:$LINENO: result: $enable_static" >&5
14110 echo "${ECHO_T}$enable_static" >&6; }
14111
14112 GCC_F77="$G77"
14113 LD_F77="$LD"
14114
14115 lt_prog_compiler_wl_F77=
14116 lt_prog_compiler_pic_F77=
14117 lt_prog_compiler_static_F77=
14118
14119 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14120 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
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
14142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14143 # PIC is the default for these OSes.
14144 ;;
14145
14146 mingw* | cygwin* | pw32* | os2*)
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).
14149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14150 # (--disable-auto-import) libraries
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
14160 interix[3-9]*)
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
14218 mingw* | cygwin* | pw32* | os2*)
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
14251 linux* | k*bsd*-gnu)
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 ;;
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 ;;
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
14295 rdos*)
14296 lt_prog_compiler_static_F77='-non_shared'
14297 ;;
14298
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
14351 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14352 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14353
14354 #
14355 # Check to make sure the PIC flag actually works.
14356 #
14357 if test -n "$lt_prog_compiler_pic_F77"; then
14358
14359 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14360 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14361 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364 lt_prog_compiler_pic_works_F77=no
14365 ac_outfile=conftest.$ac_objext
14366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
14377 (eval echo "\"\$as_me:14377: $lt_compile\"" >&5)
14378 (eval "$lt_compile" 2>conftest.err)
14379 ac_status=$?
14380 cat conftest.err >&5
14381 echo "$as_me:14381: \$? = $ac_status" >&5
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
14393 fi
14394 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14395 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14396
14397 if 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
14402 else
14403 lt_prog_compiler_pic_F77=
14404 lt_prog_compiler_can_build_shared_F77=no
14405 fi
14406
14407 fi
14408 case $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 ;;
14416 esac
14417
14418 #
14419 # Check to make sure the static flag actually works.
14420 #
14421 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14422 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14423 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14424 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 lt_prog_compiler_static_works_F77=no
14428 save_LDFLAGS="$LDFLAGS"
14429 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14430 echo "$lt_simple_link_test_code" > conftest.$ac_ext
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
14449 fi
14450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14451 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14452
14453 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14454 :
14455 else
14456 lt_prog_compiler_static_F77=
14457 fi
14458
14459
14460 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14461 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14462 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
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
14470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
14481 (eval echo "\"\$as_me:14481: $lt_compile\"" >&5)
14482 (eval "$lt_compile" 2>out/conftest.err)
14483 ac_status=$?
14484 cat out/conftest.err >&5
14485 echo "$as_me:14485: \$? = $ac_status" >&5
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
14506 fi
14507 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14508 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14509
14510
14511 hard_links="nottested"
14512 if 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
14514 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14515 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
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
14522 { echo "$as_me:$LINENO: result: $hard_links" >&5
14523 echo "${ECHO_T}$hard_links" >&6; }
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
14526 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14527 need_locks=warn
14528 fi
14529 else
14530 need_locks=no
14531 fi
14532
14533 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14534 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
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
14580 done
14581 cc_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
14641 EOF
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
14677 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
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
14695 interix[3-9]*)
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
14710 gnu* | linux* | k*bsd*-gnu)
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
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'
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~
14743 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
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
14772 EOF
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
14902 :
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
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (ac_try="$ac_link"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952 esac
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_link") 2>conftest.er1
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
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
14965
14966 lt_aix_libpath_sed='
14967 /Import File Strings/,/^$/ {
14968 /^0/ {
14969 s/^0 *\(.*\)$/\1/
14970 p
14971 }
14972 }'
14973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14974 # Check for a 64-bit object if we didn't find anything.
14975 if test -z "$aix_libpath"; then
14976 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14977 fi
14978 else
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982
14983 fi
14984
14985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14986 conftest$ac_exeext conftest.$ac_ext
14987 if 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
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
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
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
15021
15022 lt_aix_libpath_sed='
15023 /Import File Strings/,/^$/ {
15024 /^0/ {
15025 s/^0 *\(.*\)$/\1/
15026 p
15027 }
15028 }'
15029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15030 # Check for a 64-bit object if we didn't find anything.
15031 if test -z "$aix_libpath"; then
15032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15033 fi
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038
15039 fi
15040
15041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15042 conftest$ac_exeext conftest.$ac_ext
15043 if 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.
15087 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
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'
15129 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
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
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}'
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.
15172 freebsd* | dragonfly*)
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*)
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
15314 else
15315 ld_shlibs_F77=no
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 *)
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.
15377 # Supported since Solaris 2.6 (maybe 2.5.1?)
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 ;;
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
15440 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
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
15493 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15494 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15495 test "$ld_shlibs_F77" = no && can_build_shared=no
15496
15497 #
15498 # Do we need to explicitly link libc?
15499 #
15500 case "x$archive_cmds_need_lc_F77" in
15501 x|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.
15514 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15516 $rm conftest*
15517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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*
15552 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15553 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15554 ;;
15555 esac
15556 fi
15557 ;;
15558 esac
15559
15560 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15562 library_names_spec=
15563 libname_spec='lib$name'
15564 soname_spec=
15565 shrext_cmds=".so"
15566 postinstall_cmds=
15567 postuninstall_cmds=
15568 finish_cmds=
15569 finish_eval=
15570 shlibpath_var=
15571 shlibpath_overrides_runpath=unknown
15572 version_type=none
15573 dynamic_linker="$host_os ld.so"
15574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15575
15576 need_lib_prefix=unknown
15577 hardcode_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
15581 need_version=unknown
15582
15583 case $host_os in
15584 aix3*)
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
15593 aix4* | 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
15637 amigaos*)
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
15643 beos*)
15644 library_names_spec='${libname}${shared_ext}'
15645 dynamic_linker="$host_os ld.so"
15646 shlibpath_var=LIBRARY_PATH
15647 ;;
15648
15649 bsdi[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
15663 cygwin* | 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
15722 darwin* | 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`'
15732
15733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15734 ;;
15735
15736 dgux*)
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
15745 freebsd1*)
15746 dynamic_linker=no
15747 ;;
15748
15749 freebsd* | 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 ;;
15786 *) # from 4.6 on, and DragonFly
15787 shlibpath_overrides_runpath=yes
15788 hardcode_into_libs=yes
15789 ;;
15790 esac
15791 ;;
15792
15793 gnu*)
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
15803 hpux9* | 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
15849 interix[3-9]*)
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
15861 irix5* | 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.
15899 linux*oldld* | linux*aout* | linux*coff*)
15900 dynamic_linker=no
15901 ;;
15902
15903 # This must be Linux ELF.
15904 linux* | k*bsd*-gnu)
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
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}"
15919
15920 # Append ld.so.conf contents to the search path
15921 if test -f /etc/ld.so.conf; then
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"
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
15935 netbsd*)
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
15953 newsos6)
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
15960 nto-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
15970 openbsd*)
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
15996 os2*)
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
16005 osf3* | 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
16016 rdos*)
16017 dynamic_linker=no
16018 ;;
16019
16020 solaris*)
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
16033 sunos4*)
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
16045 sysv4 | 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
16069 sysv4*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
16078 sysv5* | 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
16101 uts4*)
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 ;;
16111 esac
16112 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16113 echo "${ECHO_T}$dynamic_linker" >&6; }
16114 test "$dynamic_linker" = no && can_build_shared=no
16115
16116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16117 if test "$GCC" = yes; then
16118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16119 fi
16120
16121 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16122 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16123 hardcode_action_F77=
16124 if 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
16141 else
16142 # We cannot hardcode anything, or else we can only hardcode existing
16143 # directories.
16144 hardcode_action_F77=unsupported
16145 fi
16146 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16147 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16148
16149 if test "$hardcode_action_F77" = relink; then
16150 # Fast installation is not supported
16151 enable_fast_install=no
16152 elif test "$shlibpath_overrides_runpath" = yes ||
16153 test "$enable_shared" = no; then
16154 # Fast installation is not necessary
16155 enable_fast_install=needless
16156 fi
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.
16163 if 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 \
16214 fix_srcfile_path_F77 \
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
16246 cfgfile="$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.
16254 SHELL=$lt_SHELL
16255
16256 # Whether or not to build shared libraries.
16257 build_libtool_libs=$enable_shared
16258
16259 # Whether or not to build static libraries.
16260 build_old_libs=$enable_static
16261
16262 # Whether or not to add -lc for building shared libraries.
16263 build_libtool_need_lc=$archive_cmds_need_lc_F77
16264
16265 # Whether or not to disallow shared libs when runtime libs are static
16266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16267
16268 # Whether or not to optimize for fast installation.
16269 fast_install=$enable_fast_install
16270
16271 # The host system.
16272 host_alias=$host_alias
16273 host=$host
16274 host_os=$host_os
16275
16276 # The build system.
16277 build_alias=$build_alias
16278 build=$build
16279 build_os=$build_os
16280
16281 # An echo program that does not interpret backslashes.
16282 echo=$lt_echo
16283
16284 # The archiver.
16285 AR=$lt_AR
16286 AR_FLAGS=$lt_AR_FLAGS
16287
16288 # A C compiler.
16289 LTCC=$lt_LTCC
16290
16291 # LTCC compiler flags.
16292 LTCFLAGS=$lt_LTCFLAGS
16293
16294 # A language-specific compiler.
16295 CC=$lt_compiler_F77
16296
16297 # Is the compiler the GNU C compiler?
16298 with_gcc=$GCC_F77
16299
16300 # An ERE matcher.
16301 EGREP=$lt_EGREP
16302
16303 # The linker used to build libraries.
16304 LD=$lt_LD_F77
16305
16306 # Whether we need hard or soft links.
16307 LN_S=$lt_LN_S
16308
16309 # A BSD-compatible nm program.
16310 NM=$lt_NM
16311
16312 # A symbol stripping program
16313 STRIP=$lt_STRIP
16314
16315 # Used to examine libraries when file_magic_cmd begins "file"
16316 MAGIC_CMD=$MAGIC_CMD
16317
16318 # Used on cygwin: DLL creation program.
16319 DLLTOOL="$DLLTOOL"
16320
16321 # Used on cygwin: object dumper.
16322 OBJDUMP="$OBJDUMP"
16323
16324 # Used on cygwin: assembler.
16325 AS="$AS"
16326
16327 # The name of the directory that contains temporary libtool files.
16328 objdir=$objdir
16329
16330 # How to create reloadable object files.
16331 reload_flag=$lt_reload_flag
16332 reload_cmds=$lt_reload_cmds
16333
16334 # How to pass a linker flag through the compiler.
16335 wl=$lt_lt_prog_compiler_wl_F77
16336
16337 # Object file suffix (normally "o").
16338 objext="$ac_objext"
16339
16340 # Old archive suffix (normally "a").
16341 libext="$libext"
16342
16343 # Shared library suffix (normally ".so").
16344 shrext_cmds='$shrext_cmds'
16345
16346 # Executable file suffix (normally "").
16347 exeext="$exeext"
16348
16349 # Additional compiler flags for building library objects.
16350 pic_flag=$lt_lt_prog_compiler_pic_F77
16351 pic_mode=$pic_mode
16352
16353 # What is the maximum length of a command?
16354 max_cmd_len=$lt_cv_sys_max_cmd_len
16355
16356 # Does compiler simultaneously support -c and -o options?
16357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16358
16359 # Must we lock files when doing compilation?
16360 need_locks=$lt_need_locks
16361
16362 # Do we need the lib prefix for modules?
16363 need_lib_prefix=$need_lib_prefix
16364
16365 # Do we need a version for libraries?
16366 need_version=$need_version
16367
16368 # Whether dlopen is supported.
16369 dlopen_support=$enable_dlopen
16370
16371 # Whether dlopen of programs is supported.
16372 dlopen_self=$enable_dlopen_self
16373
16374 # Whether dlopen of statically linked programs is supported.
16375 dlopen_self_static=$enable_dlopen_self_static
16376
16377 # Compiler flag to prevent dynamic linking.
16378 link_static_flag=$lt_lt_prog_compiler_static_F77
16379
16380 # Compiler flag to turn off builtin functions.
16381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16382
16383 # Compiler flag to allow reflexive dlopens.
16384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16385
16386 # Compiler flag to generate shared objects directly from archives.
16387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16388
16389 # Compiler flag to generate thread-safe objects.
16390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16391
16392 # Library versioning type.
16393 version_type=$version_type
16394
16395 # Format of library name prefix.
16396 libname_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.
16400 library_names_spec=$lt_library_names_spec
16401
16402 # The coded name of the library, if different from the real name.
16403 soname_spec=$lt_soname_spec
16404
16405 # Commands used to build and install an old-style archive.
16406 RANLIB=$lt_RANLIB
16407 old_archive_cmds=$lt_old_archive_cmds_F77
16408 old_postinstall_cmds=$lt_old_postinstall_cmds
16409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16410
16411 # Create an old-style archive from a shared archive.
16412 old_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.
16415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16416
16417 # Commands used to build and install a shared archive.
16418 archive_cmds=$lt_archive_cmds_F77
16419 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16420 postinstall_cmds=$lt_postinstall_cmds
16421 postuninstall_cmds=$lt_postuninstall_cmds
16422
16423 # Commands used to build a loadable module (assumed same as above if empty)
16424 module_cmds=$lt_module_cmds_F77
16425 module_expsym_cmds=$lt_module_expsym_cmds_F77
16426
16427 # Commands to strip libraries.
16428 old_striplib=$lt_old_striplib
16429 striplib=$lt_striplib
16430
16431 # Dependencies to place before the objects being linked to create a
16432 # shared library.
16433 predep_objects=$lt_predep_objects_F77
16434
16435 # Dependencies to place after the objects being linked to create a
16436 # shared library.
16437 postdep_objects=$lt_postdep_objects_F77
16438
16439 # Dependencies to place before the objects being linked to create a
16440 # shared library.
16441 predeps=$lt_predeps_F77
16442
16443 # Dependencies to place after the objects being linked to create a
16444 # shared library.
16445 postdeps=$lt_postdeps_F77
16446
16447 # The library search path used internally by the compiler when linking
16448 # a shared library.
16449 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16450
16451 # Method to check whether dependent libraries are shared objects.
16452 deplibs_check_method=$lt_deplibs_check_method
16453
16454 # Command to use when deplibs_check_method == file_magic.
16455 file_magic_cmd=$lt_file_magic_cmd
16456
16457 # Flag that allows shared libraries with undefined symbols to be built.
16458 allow_undefined_flag=$lt_allow_undefined_flag_F77
16459
16460 # Flag that forces no undefined symbols.
16461 no_undefined_flag=$lt_no_undefined_flag_F77
16462
16463 # Commands used to finish a libtool library installation in a directory.
16464 finish_cmds=$lt_finish_cmds
16465
16466 # Same as above, but a single script fragment to be evaled but not shown.
16467 finish_eval=$lt_finish_eval
16468
16469 # Take the output of nm and produce a listing of raw symbols and C names.
16470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16471
16472 # Transform the output of nm in a proper C declaration
16473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16474
16475 # Transform the output of nm in a C name address pair
16476 global_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.
16479 runpath_var=$runpath_var
16480
16481 # This is the shared library path variable.
16482 shlibpath_var=$shlibpath_var
16483
16484 # Is shlibpath searched before the hard-coded library search path?
16485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16486
16487 # How to hardcode a shared library path into an executable.
16488 hardcode_action=$hardcode_action_F77
16489
16490 # Whether we should hardcode library paths into libraries.
16491 hardcode_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.
16495 hardcode_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.
16500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16501
16502 # Whether we need a single -rpath flag with a separated argument.
16503 hardcode_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.
16507 hardcode_direct=$hardcode_direct_F77
16508
16509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16510 # resulting binary.
16511 hardcode_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.
16515 hardcode_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.
16519 hardcode_automatic=$hardcode_automatic_F77
16520
16521 # Variables whose values should be saved in libtool wrapper scripts and
16522 # restored at relink time.
16523 variables_saved_for_relink="$variables_saved_for_relink"
16524
16525 # Whether libtool must link a program against all its dependency libraries.
16526 link_all_deplibs=$link_all_deplibs_F77
16527
16528 # Compile-time system search path for libraries
16529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16530
16531 # Run-time system search path for libraries
16532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16533
16534 # Fix the shell variable \$srcfile for the compiler.
16535 fix_srcfile_path=$lt_fix_srcfile_path
16536
16537 # Set to yes if exported symbols are required.
16538 always_export_symbols=$always_export_symbols_F77
16539
16540 # The commands to list exported symbols.
16541 export_symbols_cmds=$lt_export_symbols_cmds_F77
16542
16543 # The commands to extract the exported symbol list from a shared archive.
16544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16545
16546 # Symbols that should not be listed in the preloaded symbols.
16547 exclude_expsyms=$lt_exclude_expsyms_F77
16548
16549 # Symbols that must always be exported.
16550 include_expsyms=$lt_include_expsyms_F77
16551
16552 # ### END LIBTOOL TAG CONFIG: $tagname
16553
16554 __EOF__
16555
16556
16557 else
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
16565 fi
16566
16567
16568 ac_ext=c
16569 ac_cpp='$CPP $CPPFLAGS'
16570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16573
16574 CC="$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
16585 # Source file extension for Java test sources.
16586 ac_ext=java
16587
16588 # Object file extension for compiled Java test sources.
16589 objext=o
16590 objext_GCJ=$objext
16591
16592 # Code to be used in simple compile tests
16593 lt_simple_compile_test_code="class foo {}"
16594
16595 # Code to be used in simple link tests
16596 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
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.
16601 LTCC=${LTCC-"$CC"}
16602
16603 # If no C compiler flags were specified, use CFLAGS.
16604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16605
16606 # Allow CC to be a program name with arguments.
16607 compiler=$CC
16608
16609
16610 # save warnings/boilerplate of simple test code
16611 ac_outfile=conftest.$ac_objext
16612 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16614 _lt_compiler_boilerplate=`cat conftest.err`
16615 $rm conftest*
16616
16617 ac_outfile=conftest.$ac_objext
16618 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16619 eval "$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.
16625 lt_save_CC="$CC"
16626 CC=${GCJ-"gcj"}
16627 compiler=$CC
16628 compiler_GCJ=$CC
16629 for 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
16636 done
16637 cc_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.
16641 archive_cmds_need_lc_GCJ=no
16642
16643 old_archive_cmds_GCJ=$old_archive_cmds
16644
16645
16646 lt_prog_compiler_no_builtin_flag_GCJ=
16647
16648 if test "$GCC" = yes; then
16649 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16650
16651
16652 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16653 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16654 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657 lt_cv_prog_compiler_rtti_exceptions=no
16658 ac_outfile=conftest.$ac_objext
16659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
16670 (eval echo "\"\$as_me:16670: $lt_compile\"" >&5)
16671 (eval "$lt_compile" 2>conftest.err)
16672 ac_status=$?
16673 cat conftest.err >&5
16674 echo "$as_me:16674: \$? = $ac_status" >&5
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
16686 fi
16687 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16688 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16689
16690 if 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"
16692 else
16693 :
16694 fi
16695
16696 fi
16697
16698 lt_prog_compiler_wl_GCJ=
16699 lt_prog_compiler_pic_GCJ=
16700 lt_prog_compiler_static_GCJ=
16701
16702 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16703 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
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
16725 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16726 # PIC is the default for these OSes.
16727 ;;
16728
16729 mingw* | cygwin* | pw32* | os2*)
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).
16732 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16733 # (--disable-auto-import) libraries
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
16743 interix[3-9]*)
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
16801 mingw* | cygwin* | pw32* | os2*)
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
16834 linux* | k*bsd*-gnu)
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 ;;
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 ;;
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
16878 rdos*)
16879 lt_prog_compiler_static_GCJ='-non_shared'
16880 ;;
16881
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
16934 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16935 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16936
16937 #
16938 # Check to make sure the PIC flag actually works.
16939 #
16940 if test -n "$lt_prog_compiler_pic_GCJ"; then
16941
16942 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16943 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16944 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 else
16947 lt_prog_compiler_pic_works_GCJ=no
16948 ac_outfile=conftest.$ac_objext
16949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
16960 (eval echo "\"\$as_me:16960: $lt_compile\"" >&5)
16961 (eval "$lt_compile" 2>conftest.err)
16962 ac_status=$?
16963 cat conftest.err >&5
16964 echo "$as_me:16964: \$? = $ac_status" >&5
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
16976 fi
16977 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16978 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16979
16980 if 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
16985 else
16986 lt_prog_compiler_pic_GCJ=
16987 lt_prog_compiler_can_build_shared_GCJ=no
16988 fi
16989
16990 fi
16991 case $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 ;;
16999 esac
17000
17001 #
17002 # Check to make sure the static flag actually works.
17003 #
17004 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17005 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17006 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17007 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010 lt_prog_compiler_static_works_GCJ=no
17011 save_LDFLAGS="$LDFLAGS"
17012 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17013 echo "$lt_simple_link_test_code" > conftest.$ac_ext
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
17032 fi
17033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17034 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17035
17036 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17037 :
17038 else
17039 lt_prog_compiler_static_GCJ=
17040 fi
17041
17042
17043 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17045 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
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
17053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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:'`
17064 (eval echo "\"\$as_me:17064: $lt_compile\"" >&5)
17065 (eval "$lt_compile" 2>out/conftest.err)
17066 ac_status=$?
17067 cat out/conftest.err >&5
17068 echo "$as_me:17068: \$? = $ac_status" >&5
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
17089 fi
17090 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17091 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17092
17093
17094 hard_links="nottested"
17095 if 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
17097 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17098 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
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
17105 { echo "$as_me:$LINENO: result: $hard_links" >&5
17106 echo "${ECHO_T}$hard_links" >&6; }
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
17109 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17110 need_locks=warn
17111 fi
17112 else
17113 need_locks=no
17114 fi
17115
17116 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
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
17163 done
17164 cc_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
17224 EOF
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
17260 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
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
17278 interix[3-9]*)
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
17293 gnu* | linux* | k*bsd*-gnu)
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
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'
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~
17326 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
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
17355 EOF
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
17485 :
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
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531
17532 int
17533 main ()
17534 {
17535
17536 ;
17537 return 0;
17538 }
17539 _ACEOF
17540 rm -f conftest.$ac_objext conftest$ac_exeext
17541 if { (ac_try="$ac_link"
17542 case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17545 esac
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_link") 2>conftest.er1
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
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
17558
17559 lt_aix_libpath_sed='
17560 /Import File Strings/,/^$/ {
17561 /^0/ {
17562 s/^0 *\(.*\)$/\1/
17563 p
17564 }
17565 }'
17566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17567 # Check for a 64-bit object if we didn't find anything.
17568 if test -z "$aix_libpath"; then
17569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17570 fi
17571 else
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575
17576 fi
17577
17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17579 conftest$ac_exeext conftest.$ac_ext
17580 if 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
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597
17598 int
17599 main ()
17600 {
17601
17602 ;
17603 return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
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
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
17624
17625 lt_aix_libpath_sed='
17626 /Import File Strings/,/^$/ {
17627 /^0/ {
17628 s/^0 *\(.*\)$/\1/
17629 p
17630 }
17631 }'
17632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17633 # Check for a 64-bit object if we didn't find anything.
17634 if test -z "$aix_libpath"; then
17635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17636 fi
17637 else
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641
17642 fi
17643
17644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17645 conftest$ac_exeext conftest.$ac_ext
17646 if 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.
17690 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
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'
17732 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
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
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}'
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.
17775 freebsd* | dragonfly*)
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*)
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
17917 else
17918 ld_shlibs_GCJ=no
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 *)
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.
17980 # Supported since Solaris 2.6 (maybe 2.5.1?)
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 ;;
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
18043 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
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
18096 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18097 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18098 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18099
18100 #
18101 # Do we need to explicitly link libc?
18102 #
18103 case "x$archive_cmds_need_lc_GCJ" in
18104 x|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.
18117 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18118 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18119 $rm conftest*
18120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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*
18155 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18156 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18157 ;;
18158 esac
18159 fi
18160 ;;
18161 esac
18162
18163 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18164 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18165 library_names_spec=
18166 libname_spec='lib$name'
18167 soname_spec=
18168 shrext_cmds=".so"
18169 postinstall_cmds=
18170 postuninstall_cmds=
18171 finish_cmds=
18172 finish_eval=
18173 shlibpath_var=
18174 shlibpath_overrides_runpath=unknown
18175 version_type=none
18176 dynamic_linker="$host_os ld.so"
18177 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18178
18179 need_lib_prefix=unknown
18180 hardcode_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
18184 need_version=unknown
18185
18186 case $host_os in
18187 aix3*)
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
18196 aix4* | 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
18240 amigaos*)
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
18246 beos*)
18247 library_names_spec='${libname}${shared_ext}'
18248 dynamic_linker="$host_os ld.so"
18249 shlibpath_var=LIBRARY_PATH
18250 ;;
18251
18252 bsdi[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
18266 cygwin* | 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
18325 darwin* | 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`'
18335
18336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18337 ;;
18338
18339 dgux*)
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
18348 freebsd1*)
18349 dynamic_linker=no
18350 ;;
18351
18352 freebsd* | 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 ;;
18389 *) # from 4.6 on, and DragonFly
18390 shlibpath_overrides_runpath=yes
18391 hardcode_into_libs=yes
18392 ;;
18393 esac
18394 ;;
18395
18396 gnu*)
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
18406 hpux9* | 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
18452 interix[3-9]*)
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
18464 irix5* | 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.
18502 linux*oldld* | linux*aout* | linux*coff*)
18503 dynamic_linker=no
18504 ;;
18505
18506 # This must be Linux ELF.
18507 linux* | k*bsd*-gnu)
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
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}"
18522
18523 # Append ld.so.conf contents to the search path
18524 if test -f /etc/ld.so.conf; then
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"
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
18538 netbsd*)
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
18556 newsos6)
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
18563 nto-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
18573 openbsd*)
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
18599 os2*)
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
18608 osf3* | 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
18619 rdos*)
18620 dynamic_linker=no
18621 ;;
18622
18623 solaris*)
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
18636 sunos4*)
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
18648 sysv4 | 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
18672 sysv4*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
18681 sysv5* | 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
18704 uts4*)
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 ;;
18714 esac
18715 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18716 echo "${ECHO_T}$dynamic_linker" >&6; }
18717 test "$dynamic_linker" = no && can_build_shared=no
18718
18719 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18720 if test "$GCC" = yes; then
18721 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18722 fi
18723
18724 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18725 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18726 hardcode_action_GCJ=
18727 if 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
18744 else
18745 # We cannot hardcode anything, or else we can only hardcode existing
18746 # directories.
18747 hardcode_action_GCJ=unsupported
18748 fi
18749 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18750 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18751
18752 if test "$hardcode_action_GCJ" = relink; then
18753 # Fast installation is not supported
18754 enable_fast_install=no
18755 elif test "$shlibpath_overrides_runpath" = yes ||
18756 test "$enable_shared" = no; then
18757 # Fast installation is not necessary
18758 enable_fast_install=needless
18759 fi
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.
18766 if 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 \
18817 fix_srcfile_path_GCJ \
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
18849 cfgfile="$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.
18857 SHELL=$lt_SHELL
18858
18859 # Whether or not to build shared libraries.
18860 build_libtool_libs=$enable_shared
18861
18862 # Whether or not to build static libraries.
18863 build_old_libs=$enable_static
18864
18865 # Whether or not to add -lc for building shared libraries.
18866 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18867
18868 # Whether or not to disallow shared libs when runtime libs are static
18869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18870
18871 # Whether or not to optimize for fast installation.
18872 fast_install=$enable_fast_install
18873
18874 # The host system.
18875 host_alias=$host_alias
18876 host=$host
18877 host_os=$host_os
18878
18879 # The build system.
18880 build_alias=$build_alias
18881 build=$build
18882 build_os=$build_os
18883
18884 # An echo program that does not interpret backslashes.
18885 echo=$lt_echo
18886
18887 # The archiver.
18888 AR=$lt_AR
18889 AR_FLAGS=$lt_AR_FLAGS
18890
18891 # A C compiler.
18892 LTCC=$lt_LTCC
18893
18894 # LTCC compiler flags.
18895 LTCFLAGS=$lt_LTCFLAGS
18896
18897 # A language-specific compiler.
18898 CC=$lt_compiler_GCJ
18899
18900 # Is the compiler the GNU C compiler?
18901 with_gcc=$GCC_GCJ
18902
18903 # An ERE matcher.
18904 EGREP=$lt_EGREP
18905
18906 # The linker used to build libraries.
18907 LD=$lt_LD_GCJ
18908
18909 # Whether we need hard or soft links.
18910 LN_S=$lt_LN_S
18911
18912 # A BSD-compatible nm program.
18913 NM=$lt_NM
18914
18915 # A symbol stripping program
18916 STRIP=$lt_STRIP
18917
18918 # Used to examine libraries when file_magic_cmd begins "file"
18919 MAGIC_CMD=$MAGIC_CMD
18920
18921 # Used on cygwin: DLL creation program.
18922 DLLTOOL="$DLLTOOL"
18923
18924 # Used on cygwin: object dumper.
18925 OBJDUMP="$OBJDUMP"
18926
18927 # Used on cygwin: assembler.
18928 AS="$AS"
18929
18930 # The name of the directory that contains temporary libtool files.
18931 objdir=$objdir
18932
18933 # How to create reloadable object files.
18934 reload_flag=$lt_reload_flag
18935 reload_cmds=$lt_reload_cmds
18936
18937 # How to pass a linker flag through the compiler.
18938 wl=$lt_lt_prog_compiler_wl_GCJ
18939
18940 # Object file suffix (normally "o").
18941 objext="$ac_objext"
18942
18943 # Old archive suffix (normally "a").
18944 libext="$libext"
18945
18946 # Shared library suffix (normally ".so").
18947 shrext_cmds='$shrext_cmds'
18948
18949 # Executable file suffix (normally "").
18950 exeext="$exeext"
18951
18952 # Additional compiler flags for building library objects.
18953 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18954 pic_mode=$pic_mode
18955
18956 # What is the maximum length of a command?
18957 max_cmd_len=$lt_cv_sys_max_cmd_len
18958
18959 # Does compiler simultaneously support -c and -o options?
18960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18961
18962 # Must we lock files when doing compilation?
18963 need_locks=$lt_need_locks
18964
18965 # Do we need the lib prefix for modules?
18966 need_lib_prefix=$need_lib_prefix
18967
18968 # Do we need a version for libraries?
18969 need_version=$need_version
18970
18971 # Whether dlopen is supported.
18972 dlopen_support=$enable_dlopen
18973
18974 # Whether dlopen of programs is supported.
18975 dlopen_self=$enable_dlopen_self
18976
18977 # Whether dlopen of statically linked programs is supported.
18978 dlopen_self_static=$enable_dlopen_self_static
18979
18980 # Compiler flag to prevent dynamic linking.
18981 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18982
18983 # Compiler flag to turn off builtin functions.
18984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18985
18986 # Compiler flag to allow reflexive dlopens.
18987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18988
18989 # Compiler flag to generate shared objects directly from archives.
18990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18991
18992 # Compiler flag to generate thread-safe objects.
18993 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18994
18995 # Library versioning type.
18996 version_type=$version_type
18997
18998 # Format of library name prefix.
18999 libname_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.
19003 library_names_spec=$lt_library_names_spec
19004
19005 # The coded name of the library, if different from the real name.
19006 soname_spec=$lt_soname_spec
19007
19008 # Commands used to build and install an old-style archive.
19009 RANLIB=$lt_RANLIB
19010 old_archive_cmds=$lt_old_archive_cmds_GCJ
19011 old_postinstall_cmds=$lt_old_postinstall_cmds
19012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19013
19014 # Create an old-style archive from a shared archive.
19015 old_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.
19018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19019
19020 # Commands used to build and install a shared archive.
19021 archive_cmds=$lt_archive_cmds_GCJ
19022 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19023 postinstall_cmds=$lt_postinstall_cmds
19024 postuninstall_cmds=$lt_postuninstall_cmds
19025
19026 # Commands used to build a loadable module (assumed same as above if empty)
19027 module_cmds=$lt_module_cmds_GCJ
19028 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19029
19030 # Commands to strip libraries.
19031 old_striplib=$lt_old_striplib
19032 striplib=$lt_striplib
19033
19034 # Dependencies to place before the objects being linked to create a
19035 # shared library.
19036 predep_objects=$lt_predep_objects_GCJ
19037
19038 # Dependencies to place after the objects being linked to create a
19039 # shared library.
19040 postdep_objects=$lt_postdep_objects_GCJ
19041
19042 # Dependencies to place before the objects being linked to create a
19043 # shared library.
19044 predeps=$lt_predeps_GCJ
19045
19046 # Dependencies to place after the objects being linked to create a
19047 # shared library.
19048 postdeps=$lt_postdeps_GCJ
19049
19050 # The library search path used internally by the compiler when linking
19051 # a shared library.
19052 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19053
19054 # Method to check whether dependent libraries are shared objects.
19055 deplibs_check_method=$lt_deplibs_check_method
19056
19057 # Command to use when deplibs_check_method == file_magic.
19058 file_magic_cmd=$lt_file_magic_cmd
19059
19060 # Flag that allows shared libraries with undefined symbols to be built.
19061 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19062
19063 # Flag that forces no undefined symbols.
19064 no_undefined_flag=$lt_no_undefined_flag_GCJ
19065
19066 # Commands used to finish a libtool library installation in a directory.
19067 finish_cmds=$lt_finish_cmds
19068
19069 # Same as above, but a single script fragment to be evaled but not shown.
19070 finish_eval=$lt_finish_eval
19071
19072 # Take the output of nm and produce a listing of raw symbols and C names.
19073 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19074
19075 # Transform the output of nm in a proper C declaration
19076 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19077
19078 # Transform the output of nm in a C name address pair
19079 global_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.
19082 runpath_var=$runpath_var
19083
19084 # This is the shared library path variable.
19085 shlibpath_var=$shlibpath_var
19086
19087 # Is shlibpath searched before the hard-coded library search path?
19088 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19089
19090 # How to hardcode a shared library path into an executable.
19091 hardcode_action=$hardcode_action_GCJ
19092
19093 # Whether we should hardcode library paths into libraries.
19094 hardcode_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.
19098 hardcode_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.
19103 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19104
19105 # Whether we need a single -rpath flag with a separated argument.
19106 hardcode_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.
19110 hardcode_direct=$hardcode_direct_GCJ
19111
19112 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19113 # resulting binary.
19114 hardcode_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.
19118 hardcode_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.
19122 hardcode_automatic=$hardcode_automatic_GCJ
19123
19124 # Variables whose values should be saved in libtool wrapper scripts and
19125 # restored at relink time.
19126 variables_saved_for_relink="$variables_saved_for_relink"
19127
19128 # Whether libtool must link a program against all its dependency libraries.
19129 link_all_deplibs=$link_all_deplibs_GCJ
19130
19131 # Compile-time system search path for libraries
19132 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19133
19134 # Run-time system search path for libraries
19135 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19136
19137 # Fix the shell variable \$srcfile for the compiler.
19138 fix_srcfile_path=$lt_fix_srcfile_path
19139
19140 # Set to yes if exported symbols are required.
19141 always_export_symbols=$always_export_symbols_GCJ
19142
19143 # The commands to list exported symbols.
19144 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19145
19146 # The commands to extract the exported symbol list from a shared archive.
19147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19148
19149 # Symbols that should not be listed in the preloaded symbols.
19150 exclude_expsyms=$lt_exclude_expsyms_GCJ
19151
19152 # Symbols that must always be exported.
19153 include_expsyms=$lt_include_expsyms_GCJ
19154
19155 # ### END LIBTOOL TAG CONFIG: $tagname
19156
19157 __EOF__
19158
19159
19160 else
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
19168 fi
19169
19170
19171 ac_ext=c
19172 ac_cpp='$CPP $CPPFLAGS'
19173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19176
19177 CC="$lt_save_CC"
19178
19179 else
19180 tagname=""
19181 fi
19182 ;;
19183
19184 RC)
19185
19186
19187 # Source file extension for RC test sources.
19188 ac_ext=rc
19189
19190 # Object file extension for compiled RC test sources.
19191 objext=o
19192 objext_RC=$objext
19193
19194 # Code to be used in simple compile tests
19195 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19196
19197 # Code to be used in simple link tests
19198 lt_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.
19203 LTCC=${LTCC-"$CC"}
19204
19205 # If no C compiler flags were specified, use CFLAGS.
19206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19207
19208 # Allow CC to be a program name with arguments.
19209 compiler=$CC
19210
19211
19212 # save warnings/boilerplate of simple test code
19213 ac_outfile=conftest.$ac_objext
19214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19216 _lt_compiler_boilerplate=`cat conftest.err`
19217 $rm conftest*
19218
19219 ac_outfile=conftest.$ac_objext
19220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19221 eval "$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.
19227 lt_save_CC="$CC"
19228 CC=${RC-"windres"}
19229 compiler=$CC
19230 compiler_RC=$CC
19231 for 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
19238 done
19239 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19240
19241 lt_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.
19247 if 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 \
19298 fix_srcfile_path_RC \
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
19330 cfgfile="$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.
19338 SHELL=$lt_SHELL
19339
19340 # Whether or not to build shared libraries.
19341 build_libtool_libs=$enable_shared
19342
19343 # Whether or not to build static libraries.
19344 build_old_libs=$enable_static
19345
19346 # Whether or not to add -lc for building shared libraries.
19347 build_libtool_need_lc=$archive_cmds_need_lc_RC
19348
19349 # Whether or not to disallow shared libs when runtime libs are static
19350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19351
19352 # Whether or not to optimize for fast installation.
19353 fast_install=$enable_fast_install
19354
19355 # The host system.
19356 host_alias=$host_alias
19357 host=$host
19358 host_os=$host_os
19359
19360 # The build system.
19361 build_alias=$build_alias
19362 build=$build
19363 build_os=$build_os
19364
19365 # An echo program that does not interpret backslashes.
19366 echo=$lt_echo
19367
19368 # The archiver.
19369 AR=$lt_AR
19370 AR_FLAGS=$lt_AR_FLAGS
19371
19372 # A C compiler.
19373 LTCC=$lt_LTCC
19374
19375 # LTCC compiler flags.
19376 LTCFLAGS=$lt_LTCFLAGS
19377
19378 # A language-specific compiler.
19379 CC=$lt_compiler_RC
19380
19381 # Is the compiler the GNU C compiler?
19382 with_gcc=$GCC_RC
19383
19384 # An ERE matcher.
19385 EGREP=$lt_EGREP
19386
19387 # The linker used to build libraries.
19388 LD=$lt_LD_RC
19389
19390 # Whether we need hard or soft links.
19391 LN_S=$lt_LN_S
19392
19393 # A BSD-compatible nm program.
19394 NM=$lt_NM
19395
19396 # A symbol stripping program
19397 STRIP=$lt_STRIP
19398
19399 # Used to examine libraries when file_magic_cmd begins "file"
19400 MAGIC_CMD=$MAGIC_CMD
19401
19402 # Used on cygwin: DLL creation program.
19403 DLLTOOL="$DLLTOOL"
19404
19405 # Used on cygwin: object dumper.
19406 OBJDUMP="$OBJDUMP"
19407
19408 # Used on cygwin: assembler.
19409 AS="$AS"
19410
19411 # The name of the directory that contains temporary libtool files.
19412 objdir=$objdir
19413
19414 # How to create reloadable object files.
19415 reload_flag=$lt_reload_flag
19416 reload_cmds=$lt_reload_cmds
19417
19418 # How to pass a linker flag through the compiler.
19419 wl=$lt_lt_prog_compiler_wl_RC
19420
19421 # Object file suffix (normally "o").
19422 objext="$ac_objext"
19423
19424 # Old archive suffix (normally "a").
19425 libext="$libext"
19426
19427 # Shared library suffix (normally ".so").
19428 shrext_cmds='$shrext_cmds'
19429
19430 # Executable file suffix (normally "").
19431 exeext="$exeext"
19432
19433 # Additional compiler flags for building library objects.
19434 pic_flag=$lt_lt_prog_compiler_pic_RC
19435 pic_mode=$pic_mode
19436
19437 # What is the maximum length of a command?
19438 max_cmd_len=$lt_cv_sys_max_cmd_len
19439
19440 # Does compiler simultaneously support -c and -o options?
19441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19442
19443 # Must we lock files when doing compilation?
19444 need_locks=$lt_need_locks
19445
19446 # Do we need the lib prefix for modules?
19447 need_lib_prefix=$need_lib_prefix
19448
19449 # Do we need a version for libraries?
19450 need_version=$need_version
19451
19452 # Whether dlopen is supported.
19453 dlopen_support=$enable_dlopen
19454
19455 # Whether dlopen of programs is supported.
19456 dlopen_self=$enable_dlopen_self
19457
19458 # Whether dlopen of statically linked programs is supported.
19459 dlopen_self_static=$enable_dlopen_self_static
19460
19461 # Compiler flag to prevent dynamic linking.
19462 link_static_flag=$lt_lt_prog_compiler_static_RC
19463
19464 # Compiler flag to turn off builtin functions.
19465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19466
19467 # Compiler flag to allow reflexive dlopens.
19468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19469
19470 # Compiler flag to generate shared objects directly from archives.
19471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19472
19473 # Compiler flag to generate thread-safe objects.
19474 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19475
19476 # Library versioning type.
19477 version_type=$version_type
19478
19479 # Format of library name prefix.
19480 libname_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.
19484 library_names_spec=$lt_library_names_spec
19485
19486 # The coded name of the library, if different from the real name.
19487 soname_spec=$lt_soname_spec
19488
19489 # Commands used to build and install an old-style archive.
19490 RANLIB=$lt_RANLIB
19491 old_archive_cmds=$lt_old_archive_cmds_RC
19492 old_postinstall_cmds=$lt_old_postinstall_cmds
19493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19494
19495 # Create an old-style archive from a shared archive.
19496 old_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.
19499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19500
19501 # Commands used to build and install a shared archive.
19502 archive_cmds=$lt_archive_cmds_RC
19503 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19504 postinstall_cmds=$lt_postinstall_cmds
19505 postuninstall_cmds=$lt_postuninstall_cmds
19506
19507 # Commands used to build a loadable module (assumed same as above if empty)
19508 module_cmds=$lt_module_cmds_RC
19509 module_expsym_cmds=$lt_module_expsym_cmds_RC
19510
19511 # Commands to strip libraries.
19512 old_striplib=$lt_old_striplib
19513 striplib=$lt_striplib
19514
19515 # Dependencies to place before the objects being linked to create a
19516 # shared library.
19517 predep_objects=$lt_predep_objects_RC
19518
19519 # Dependencies to place after the objects being linked to create a
19520 # shared library.
19521 postdep_objects=$lt_postdep_objects_RC
19522
19523 # Dependencies to place before the objects being linked to create a
19524 # shared library.
19525 predeps=$lt_predeps_RC
19526
19527 # Dependencies to place after the objects being linked to create a
19528 # shared library.
19529 postdeps=$lt_postdeps_RC
19530
19531 # The library search path used internally by the compiler when linking
19532 # a shared library.
19533 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19534
19535 # Method to check whether dependent libraries are shared objects.
19536 deplibs_check_method=$lt_deplibs_check_method
19537
19538 # Command to use when deplibs_check_method == file_magic.
19539 file_magic_cmd=$lt_file_magic_cmd
19540
19541 # Flag that allows shared libraries with undefined symbols to be built.
19542 allow_undefined_flag=$lt_allow_undefined_flag_RC
19543
19544 # Flag that forces no undefined symbols.
19545 no_undefined_flag=$lt_no_undefined_flag_RC
19546
19547 # Commands used to finish a libtool library installation in a directory.
19548 finish_cmds=$lt_finish_cmds
19549
19550 # Same as above, but a single script fragment to be evaled but not shown.
19551 finish_eval=$lt_finish_eval
19552
19553 # Take the output of nm and produce a listing of raw symbols and C names.
19554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19555
19556 # Transform the output of nm in a proper C declaration
19557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19558
19559 # Transform the output of nm in a C name address pair
19560 global_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.
19563 runpath_var=$runpath_var
19564
19565 # This is the shared library path variable.
19566 shlibpath_var=$shlibpath_var
19567
19568 # Is shlibpath searched before the hard-coded library search path?
19569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19570
19571 # How to hardcode a shared library path into an executable.
19572 hardcode_action=$hardcode_action_RC
19573
19574 # Whether we should hardcode library paths into libraries.
19575 hardcode_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.
19579 hardcode_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.
19584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19585
19586 # Whether we need a single -rpath flag with a separated argument.
19587 hardcode_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.
19591 hardcode_direct=$hardcode_direct_RC
19592
19593 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19594 # resulting binary.
19595 hardcode_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.
19599 hardcode_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.
19603 hardcode_automatic=$hardcode_automatic_RC
19604
19605 # Variables whose values should be saved in libtool wrapper scripts and
19606 # restored at relink time.
19607 variables_saved_for_relink="$variables_saved_for_relink"
19608
19609 # Whether libtool must link a program against all its dependency libraries.
19610 link_all_deplibs=$link_all_deplibs_RC
19611
19612 # Compile-time system search path for libraries
19613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19614
19615 # Run-time system search path for libraries
19616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19617
19618 # Fix the shell variable \$srcfile for the compiler.
19619 fix_srcfile_path=$lt_fix_srcfile_path
19620
19621 # Set to yes if exported symbols are required.
19622 always_export_symbols=$always_export_symbols_RC
19623
19624 # The commands to list exported symbols.
19625 export_symbols_cmds=$lt_export_symbols_cmds_RC
19626
19627 # The commands to extract the exported symbol list from a shared archive.
19628 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19629
19630 # Symbols that should not be listed in the preloaded symbols.
19631 exclude_expsyms=$lt_exclude_expsyms_RC
19632
19633 # Symbols that must always be exported.
19634 include_expsyms=$lt_include_expsyms_RC
19635
19636 # ### END LIBTOOL TAG CONFIG: $tagname
19637
19638 __EOF__
19639
19640
19641 else
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
19649 fi
19650
19651
19652 ac_ext=c
19653 ac_cpp='$CPP $CPPFLAGS'
19654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19657
19658 CC="$lt_save_CC"
19659
19660 ;;
19661
19662 *)
19663 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19664 echo "$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
19684 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19685 { (exit 1); exit 1; }; }
19686 fi
19687 fi
19688
19689
19690
19691 # This can be used to rebuild libtool when needed
19692 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19693
19694 # Always use our own libtool.
19695 LIBTOOL='$(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
19720 for ac_prog in perl5 perl
19721 do
19722 # Extract the first word of "$ac_prog", so it can be a program name with args.
19723 set dummy $ac_prog; ac_word=$2
19724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19726 if test "${ac_cv_path_PERL+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
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
19735 for as_dir in $LPATH
19736 do
19737 IFS=$as_save_IFS
19738 test -z "$as_dir" && as_dir=.
19739 for ac_exec_ext in '' $ac_executable_extensions; do
19740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
19745 done
19746 done
19747 IFS=$as_save_IFS
19748
19749 ;;
19750 esac
19751 fi
19752 PERL=$ac_cv_path_PERL
19753 if test -n "$PERL"; then
19754 { echo "$as_me:$LINENO: result: $PERL" >&5
19755 echo "${ECHO_T}$PERL" >&6; }
19756 else
19757 { echo "$as_me:$LINENO: result: no" >&5
19758 echo "${ECHO_T}no" >&6; }
19759 fi
19760
19761
19762 test -n "$PERL" && break
19763 done
19764 test -n "$PERL" || PERL="perl"
19765
19766 for ac_prog in courier-config
19767 do
19768 # Extract the first word of "$ac_prog", so it can be a program name with args.
19769 set dummy $ac_prog; ac_word=$2
19770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19772 if test "${ac_cv_path_COURIERCONFIG+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
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
19781 for as_dir in $LPATH
19782 do
19783 IFS=$as_save_IFS
19784 test -z "$as_dir" && as_dir=.
19785 for ac_exec_ext in '' $ac_executable_extensions; do
19786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
19791 done
19792 done
19793 IFS=$as_save_IFS
19794
19795 ;;
19796 esac
19797 fi
19798 COURIERCONFIG=$ac_cv_path_COURIERCONFIG
19799 if test -n "$COURIERCONFIG"; then
19800 { echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5
19801 echo "${ECHO_T}$COURIERCONFIG" >&6; }
19802 else
19803 { echo "$as_me:$LINENO: result: no" >&5
19804 echo "${ECHO_T}no" >&6; }
19805 fi
19806
19807
19808 test -n "$COURIERCONFIG" && break
19809 done
19810 test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
19811
19812
19813 if test "$PERL" = "perl"
19814 then
19815 { { echo "$as_me:$LINENO: error: Perl is required" >&5
19816 echo "$as_me: error: Perl is required" >&2;}
19817 { (exit 1); exit 1; }; }
19818 fi
19819
19820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19821 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19822 eval "prefix=$prefix"
19823 eval "exec_prefix=$exec_prefix"
19824 eval "sysconfdir=$sysconfdir"
19825 eval "bindir=$bindir"
19826 eval "sbindir=$sbindir"
19827 eval "localstatedir=$localstatedir"
19828 eval "libexecdir=$libexecdir"
19829
19830
19831 # Check whether --with-redhat was given.
19832 if test "${with_redhat+set}" = set; then
19833 withval=$with_redhat; redhat=$withval
19834 else
19835 redhat=no
19836 fi
19837
19838
19839 if test "$srcdir" = "."
19840 then
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
19847 echo "$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
19849 echo "$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
19851 echo "$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
19853 echo "$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
19855 echo "$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
19857 echo "$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
19859 echo "$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
19861 echo "$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
19863 echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5
19865 echo "$as_me: WARNING: === cryptic error message." >&2;}
19866 { echo "$as_me:$LINENO: WARNING: " >&5
19867 echo "$as_me: WARNING: " >&2;}
19868 { echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5
19869 echo "$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
19871 echo "$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
19873 echo "$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
19875 echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: === installed." >&5
19877 echo "$as_me: WARNING: === installed." >&2;}
19878 { echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5
19879 echo "$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
19881 echo "$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
19883 echo "$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
19885 echo "$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
19887 echo "$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
19894 fi
19895 for ac_prog in expect
19896 do
19897 # Extract the first word of "$ac_prog", so it can be a program name with args.
19898 set dummy $ac_prog; ac_word=$2
19899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19901 if test "${ac_cv_path_EXPECT+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
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
19910 for as_dir in $LPATH
19911 do
19912 IFS=$as_save_IFS
19913 test -z "$as_dir" && as_dir=.
19914 for ac_exec_ext in '' $ac_executable_extensions; do
19915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
19920 done
19921 done
19922 IFS=$as_save_IFS
19923
19924 ;;
19925 esac
19926 fi
19927 EXPECT=$ac_cv_path_EXPECT
19928 if test -n "$EXPECT"; then
19929 { echo "$as_me:$LINENO: result: $EXPECT" >&5
19930 echo "${ECHO_T}$EXPECT" >&6; }
19931 else
19932 { echo "$as_me:$LINENO: result: no" >&5
19933 echo "${ECHO_T}no" >&6; }
19934 fi
19935
19936
19937 test -n "$EXPECT" && break
19938 done
19939 test -n "$EXPECT" || EXPECT="expect"
19940
19941
19942 if test "$EXPECT" = "expect"
19943 then
19944 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19945 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5
19947 echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: in webmail" >&5
19949 echo "$as_me: WARNING: in webmail" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19951 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19952 sleep 5
19953 else
19954
19955 cat >>confdefs.h <<_ACEOF
19956 #define HAVE_EXPECT 1
19957 _ACEOF
19958
19959 fi
19960
19961 for ac_prog in passwd
19962 do
19963 # Extract the first word of "$ac_prog", so it can be a program name with args.
19964 set dummy $ac_prog; ac_word=$2
19965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19967 if test "${ac_cv_path_PASSWD+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
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
19976 for as_dir in $LPATH
19977 do
19978 IFS=$as_save_IFS
19979 test -z "$as_dir" && as_dir=.
19980 for ac_exec_ext in '' $ac_executable_extensions; do
19981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
19986 done
19987 done
19988 IFS=$as_save_IFS
19989
19990 ;;
19991 esac
19992 fi
19993 PASSWD=$ac_cv_path_PASSWD
19994 if test -n "$PASSWD"; then
19995 { echo "$as_me:$LINENO: result: $PASSWD" >&5
19996 echo "${ECHO_T}$PASSWD" >&6; }
19997 else
19998 { echo "$as_me:$LINENO: result: no" >&5
19999 echo "${ECHO_T}no" >&6; }
20000 fi
20001
20002
20003 test -n "$PASSWD" && break
20004 done
20005 test -n "$PASSWD" || PASSWD="passwd"
20006
20007
20008
20009 if test "$GCC" = "yes"
20010 then
20011 CFLAGS="$CFLAGS -Wall"
20012 fi
20013
20014 CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
20015
20016 { echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5
20017 echo $ECHO_N "checking whether -lm is needed for floor... $ECHO_C" >&6; }
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024
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. */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char floor ();
20032 int
20033 main ()
20034 {
20035 return floor ();
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
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
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
20059 echo "${ECHO_T}no" >&6; }
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 LIBM="-lm"
20065 { echo "$as_me:$LINENO: result: yes" >&5
20066 echo "${ECHO_T}yes" >&6; }
20067 fi
20068
20069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20070 conftest$ac_exeext conftest.$ac_ext
20071
20072
20073 # Check whether --with-pkgconfdir was given.
20074 if test "${with_pkgconfdir+set}" = set; then
20075 withval=$with_pkgconfdir; pkgconfdir="$withval"
20076 else
20077 pkgconfdir="$sysconfdir/authlib"
20078 fi
20079
20080
20081 saveLIBS="$LIBS"
20082 NETLIBS=""
20083 USENSL=no
20084
20085 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20086 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
20087 if test "${ac_cv_lib_socket_socket+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090 ac_check_lib_save_LIBS=$LIBS
20091 LIBS="-lsocket $LIBS"
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098
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. */
20102 #ifdef __cplusplus
20103 extern "C"
20104 #endif
20105 char socket ();
20106 int
20107 main ()
20108 {
20109 return socket ();
20110 ;
20111 return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (ac_try="$ac_link"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_link") 2>conftest.er1
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
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
20132 ac_cv_lib_socket_socket=yes
20133 else
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20136
20137 ac_cv_lib_socket_socket=no
20138 fi
20139
20140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20141 conftest$ac_exeext conftest.$ac_ext
20142 LIBS=$ac_check_lib_save_LIBS
20143 fi
20144 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20145 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20146 if test $ac_cv_lib_socket_socket = yes; then
20147 result=yes
20148 else
20149 result=no
20150 fi
20151
20152 if test $result = yes; then
20153 NETLIBS="-lsocket"
20154 else
20155 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20156 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
20157 if test "${ac_cv_lib_socket_socket+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160 ac_check_lib_save_LIBS=$LIBS
20161 LIBS="-lsocket -lnsl $LIBS"
20162 cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h. */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168
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. */
20172 #ifdef __cplusplus
20173 extern "C"
20174 #endif
20175 char socket ();
20176 int
20177 main ()
20178 {
20179 return socket ();
20180 ;
20181 return 0;
20182 }
20183 _ACEOF
20184 rm -f conftest.$ac_objext conftest$ac_exeext
20185 if { (ac_try="$ac_link"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189 esac
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_link") 2>conftest.er1
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
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
20202 ac_cv_lib_socket_socket=yes
20203 else
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 ac_cv_lib_socket_socket=no
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20211 conftest$ac_exeext conftest.$ac_ext
20212 LIBS=$ac_check_lib_save_LIBS
20213 fi
20214 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20215 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20216 if test $ac_cv_lib_socket_socket = yes; then
20217 result=yes
20218 else
20219 result=no
20220 fi
20221
20222 if test $result = yes; then
20223 NETLIBS = "-lsocket -lnsl"
20224 USENSL=yes
20225 else
20226 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20227 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20228 if test "${ac_cv_lib_socket_connect+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231 ac_check_lib_save_LIBS=$LIBS
20232 LIBS="-lsocket $LIBS"
20233 cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h. */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20239
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. */
20243 #ifdef __cplusplus
20244 extern "C"
20245 #endif
20246 char connect ();
20247 int
20248 main ()
20249 {
20250 return connect ();
20251 ;
20252 return 0;
20253 }
20254 _ACEOF
20255 rm -f conftest.$ac_objext conftest$ac_exeext
20256 if { (ac_try="$ac_link"
20257 case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20260 esac
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_link") 2>conftest.er1
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
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
20273 ac_cv_lib_socket_connect=yes
20274 else
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278 ac_cv_lib_socket_connect=no
20279 fi
20280
20281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20282 conftest$ac_exeext conftest.$ac_ext
20283 LIBS=$ac_check_lib_save_LIBS
20284 fi
20285 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20286 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20287 if test $ac_cv_lib_socket_connect = yes; then
20288 result=yes
20289 else
20290 result=no
20291 fi
20292
20293 if test $result = yes; then
20294 NETLIBS="-lsocket"
20295 else
20296 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20297 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20298 if test "${ac_cv_lib_socket_connect+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301 ac_check_lib_save_LIBS=$LIBS
20302 LIBS="-lsocket -lnsl $LIBS"
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309
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. */
20313 #ifdef __cplusplus
20314 extern "C"
20315 #endif
20316 char connect ();
20317 int
20318 main ()
20319 {
20320 return connect ();
20321 ;
20322 return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
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
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
20343 ac_cv_lib_socket_connect=yes
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 ac_cv_lib_socket_connect=no
20349 fi
20350
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20353 LIBS=$ac_check_lib_save_LIBS
20354 fi
20355 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20356 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20357 if test $ac_cv_lib_socket_connect = yes; then
20358 result=yes
20359 else
20360 result=no
20361 fi
20362
20363 if test $result = yes; then
20364 NETLIBS="-lsocket -lnsl"
20365 USENSL=yes
20366 fi
20367 fi
20368 fi
20369 fi
20370
20371 if test $USENSL != yes; then
20372 LIBS="$LIBS $NETLIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h. */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379
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. */
20383 #ifdef __cplusplus
20384 extern "C"
20385 #endif
20386 char inet_addr ();
20387 int
20388 main ()
20389 {
20390 return inet_addr ();
20391 ;
20392 return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (ac_try="$ac_link"
20397 case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20400 esac
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_link") 2>conftest.er1
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
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
20413 :
20414 else
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418
20419 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
20420 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
20421 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424 ac_check_lib_save_LIBS=$LIBS
20425 LIBS="-lnsl $LIBS"
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432
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. */
20436 #ifdef __cplusplus
20437 extern "C"
20438 #endif
20439 char inet_addr ();
20440 int
20441 main ()
20442 {
20443 return inet_addr ();
20444 ;
20445 return 0;
20446 }
20447 _ACEOF
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (ac_try="$ac_link"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_link") 2>conftest.er1
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
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
20466 ac_cv_lib_nsl_inet_addr=yes
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_cv_lib_nsl_inet_addr=no
20472 fi
20473
20474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20475 conftest$ac_exeext conftest.$ac_ext
20476 LIBS=$ac_check_lib_save_LIBS
20477 fi
20478 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
20479 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
20480 if test $ac_cv_lib_nsl_inet_addr = yes; then
20481 result=yes
20482 else
20483 result=no
20484 fi
20485
20486 if test $result = yes; then
20487 NETLIBS="$NETLIBS -lnsl"
20488 fi
20489
20490 fi
20491
20492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493 conftest$ac_exeext conftest.$ac_ext
20494 fi
20495
20496 LIBS="$saveLIBS"
20497
20498
20499
20500
20501
20502
20503
20504 # Check whether --with-db was given.
20505 if test "${with_db+set}" = set; then
20506 withval=$with_db; db="$withval"
20507 else
20508 needs_withdb=1
20509 fi
20510
20511
20512 case "$db" in
20513 gdbm)
20514 ;;
20515 db)
20516 ;;
20517 "")
20518 ;;
20519 *)
20520 { { echo "$as_me:$LINENO: error: Invalid --with-db option." >&5
20521 echo "$as_me: error: Invalid --with-db option." >&2;}
20522 { (exit 1); exit 1; }; }
20523 ;;
20524 esac
20525
20526 saveLIBS="$LIBS"
20527
20528 if test "$db" != "db"
20529 then
20530 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
20531 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
20532 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lgdbm $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h. */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543
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. */
20547 #ifdef __cplusplus
20548 extern "C"
20549 #endif
20550 char gdbm_open ();
20551 int
20552 main ()
20553 {
20554 return gdbm_open ();
20555 ;
20556 return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
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
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
20577 ac_cv_lib_gdbm_gdbm_open=yes
20578 else
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582 ac_cv_lib_gdbm_gdbm_open=no
20583 fi
20584
20585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20586 conftest$ac_exeext conftest.$ac_ext
20587 LIBS=$ac_check_lib_save_LIBS
20588 fi
20589 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
20590 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
20591 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
20592 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
20593 fi
20594
20595 { echo "$as_me:$LINENO: checking for gdbm_open" >&5
20596 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; }
20597 if test "${ac_cv_func_gdbm_open+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h. */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>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
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. */
20626 #ifdef __cplusplus
20627 extern "C"
20628 #endif
20629 char 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. */
20633 #if defined __stub_gdbm_open || defined __stub___gdbm_open
20634 choke me
20635 #endif
20636
20637 int
20638 main ()
20639 {
20640 return gdbm_open ();
20641 ;
20642 return 0;
20643 }
20644 _ACEOF
20645 rm -f conftest.$ac_objext conftest$ac_exeext
20646 if { (ac_try="$ac_link"
20647 case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650 esac
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_link") 2>conftest.er1
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
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
20663 ac_cv_func_gdbm_open=yes
20664 else
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668 ac_cv_func_gdbm_open=no
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672 conftest$ac_exeext conftest.$ac_ext
20673 fi
20674 { echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
20675 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; }
20676 if test $ac_cv_func_gdbm_open = yes; then
20677 HAVE_GDBM=y
20678 fi
20679
20680 fi
20681
20682 LIBS="$saveLIBS"
20683
20684 if test "$db" != "gdbm"
20685 then
20686 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20687 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
20688 if test "${ac_cv_lib_db_dbopen+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 else
20691 ac_check_lib_save_LIBS=$LIBS
20692 LIBS="-ldb $LIBS"
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h. */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699
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. */
20703 #ifdef __cplusplus
20704 extern "C"
20705 #endif
20706 char dbopen ();
20707 int
20708 main ()
20709 {
20710 return dbopen ();
20711 ;
20712 return 0;
20713 }
20714 _ACEOF
20715 rm -f conftest.$ac_objext conftest$ac_exeext
20716 if { (ac_try="$ac_link"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_link") 2>conftest.er1
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
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
20733 ac_cv_lib_db_dbopen=yes
20734 else
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 ac_cv_lib_db_dbopen=no
20739 fi
20740
20741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20742 conftest$ac_exeext conftest.$ac_ext
20743 LIBS=$ac_check_lib_save_LIBS
20744 fi
20745 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20746 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
20747 if test $ac_cv_lib_db_dbopen = yes; then
20748 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20749 else
20750 { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
20751 echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; }
20752 if test "${ac_cv_lib_db_db_open+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 ac_check_lib_save_LIBS=$LIBS
20756 LIBS="-ldb $LIBS"
20757 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h. */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763
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. */
20767 #ifdef __cplusplus
20768 extern "C"
20769 #endif
20770 char db_open ();
20771 int
20772 main ()
20773 {
20774 return db_open ();
20775 ;
20776 return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext conftest$ac_exeext
20780 if { (ac_try="$ac_link"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784 esac
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_link") 2>conftest.er1
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
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
20797 ac_cv_lib_db_db_open=yes
20798 else
20799 echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20801
20802 ac_cv_lib_db_db_open=no
20803 fi
20804
20805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20806 conftest$ac_exeext conftest.$ac_ext
20807 LIBS=$ac_check_lib_save_LIBS
20808 fi
20809 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
20810 echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; }
20811 if test $ac_cv_lib_db_db_open = yes; then
20812 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20813 else
20814 { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
20815 echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; }
20816 if test "${ac_cv_lib_db_db_env_create+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 ac_check_lib_save_LIBS=$LIBS
20820 LIBS="-ldb $LIBS"
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827
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. */
20831 #ifdef __cplusplus
20832 extern "C"
20833 #endif
20834 char db_env_create ();
20835 int
20836 main ()
20837 {
20838 return db_env_create ();
20839 ;
20840 return 0;
20841 }
20842 _ACEOF
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
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
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
20861 ac_cv_lib_db_db_env_create=yes
20862 else
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20865
20866 ac_cv_lib_db_db_env_create=no
20867 fi
20868
20869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20870 conftest$ac_exeext conftest.$ac_ext
20871 LIBS=$ac_check_lib_save_LIBS
20872 fi
20873 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
20874 echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; }
20875 if test $ac_cv_lib_db_db_env_create = yes; then
20876 LIBDB=-ldb; LIBS="-ldb $LIBS"
20877 fi
20878
20879
20880 fi
20881
20882 fi
20883
20884
20885 { echo "$as_me:$LINENO: checking for dbopen" >&5
20886 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
20887 if test "${ac_cv_func_dbopen+set}" = set; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 else
20890 cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h. */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>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
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. */
20916 #ifdef __cplusplus
20917 extern "C"
20918 #endif
20919 char 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. */
20923 #if defined __stub_dbopen || defined __stub___dbopen
20924 choke me
20925 #endif
20926
20927 int
20928 main ()
20929 {
20930 return dbopen ();
20931 ;
20932 return 0;
20933 }
20934 _ACEOF
20935 rm -f conftest.$ac_objext conftest$ac_exeext
20936 if { (ac_try="$ac_link"
20937 case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20940 esac
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_link") 2>conftest.er1
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
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
20953 ac_cv_func_dbopen=yes
20954 else
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 ac_cv_func_dbopen=no
20959 fi
20960
20961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20962 conftest$ac_exeext conftest.$ac_ext
20963 fi
20964 { echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
20965 echo "${ECHO_T}$ac_cv_func_dbopen" >&6; }
20966 if test $ac_cv_func_dbopen = yes; then
20967 HAVE_BDB=1
20968 fi
20969
20970 { echo "$as_me:$LINENO: checking for db_open" >&5
20971 echo $ECHO_N "checking for db_open... $ECHO_C" >&6; }
20972 if test "${ac_cv_func_db_open+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 else
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h. */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>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
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. */
21001 #ifdef __cplusplus
21002 extern "C"
21003 #endif
21004 char 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. */
21008 #if defined __stub_db_open || defined __stub___db_open
21009 choke me
21010 #endif
21011
21012 int
21013 main ()
21014 {
21015 return db_open ();
21016 ;
21017 return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_link") 2>conftest.er1
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
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
21038 ac_cv_func_db_open=yes
21039 else
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21042
21043 ac_cv_func_db_open=no
21044 fi
21045
21046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21047 conftest$ac_exeext conftest.$ac_ext
21048 fi
21049 { echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
21050 echo "${ECHO_T}$ac_cv_func_db_open" >&6; }
21051 if test $ac_cv_func_db_open = yes; then
21052 HAVE_BDB=1
21053 fi
21054
21055 { echo "$as_me:$LINENO: checking for db_env_create" >&5
21056 echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; }
21057 if test "${ac_cv_func_db_env_create+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060 cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h. */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>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
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. */
21086 #ifdef __cplusplus
21087 extern "C"
21088 #endif
21089 char 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. */
21093 #if defined __stub_db_env_create || defined __stub___db_env_create
21094 choke me
21095 #endif
21096
21097 int
21098 main ()
21099 {
21100 return db_env_create ();
21101 ;
21102 return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext conftest$ac_exeext
21106 if { (ac_try="$ac_link"
21107 case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_link") 2>conftest.er1
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
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
21123 ac_cv_func_db_env_create=yes
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_cv_func_db_env_create=no
21129 fi
21130
21131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21132 conftest$ac_exeext conftest.$ac_ext
21133 fi
21134 { echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
21135 echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; }
21136 if test $ac_cv_func_db_env_create = yes; then
21137 HAVE_BDB=1
21138 fi
21139
21140 fi
21141
21142 LIBS="$saveLIBS"
21143
21144 if test "$HAVE_GDBM$HAVE_BDB" = ""
21145 then
21146 { { echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5
21147 echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;}
21148 { (exit 1); exit 1; }; }
21149 fi
21150
21151 USE_GDBM=0
21152 USE_DB=0
21153
21154 if test "$HAVE_GDBM" = "y"
21155 then
21156 LIBDB=""
21157 USE_GDBM=1
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
21163 else
21164 LIBGDBM=""
21165 USE_DB=1
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
21171 fi
21172
21173
21174
21175
21176
21177 # Check whether --with-authuserdb was given.
21178 if test "${with_authuserdb+set}" = set; then
21179 withval=$with_authuserdb; doauthuserdb="$withval"
21180 else
21181 doauthuserdb="no"
21182 if test -d ${srcdir}/userdb
21183 then
21184 doauthuserdb="yes"
21185 fi
21186 fi
21187
21188
21189 if test "$doauthuserdb" = "no"
21190 then
21191 AUTHUSERDB=""
21192 else
21193 AUTHUSERDB="authuserdb"
21194 LIBAUTHUSERDB="libauthuserdb.la"
21195
21196 fi
21197
21198
21199 # Check whether --with-makedatprog was given.
21200 if test "${with_makedatprog+set}" = set; then
21201 withval=$with_makedatprog; :
21202 else
21203
21204 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
21205
21206 fi
21207
21208
21209 cat >dbobj.config <<EOF
21210 LIBDB=$LIBDB
21211 LIBGDBM=$LIBGDBM
21212 dblibrary=$dblibrary
21213 EOF
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223 userdb="$pkgconfdir/userdb"
21224
21225 # Check whether --with-userdb was given.
21226 if test "${with_userdb+set}" = set; then
21227 withval=$with_userdb; userdb="$withval"
21228 else
21229 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
21230 fi
21231
21232
21233
21234 cat >>confdefs.h <<_ACEOF
21235 #define USERDB "$userdb"
21236 _ACEOF
21237
21238
21239
21240
21241 for ac_header in stdio.h
21242 do
21243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 fi
21250 ac_res=`eval echo '${'$as_ac_Header'}'`
21251 { echo "$as_me:$LINENO: result: $ac_res" >&5
21252 echo "${ECHO_T}$ac_res" >&6; }
21253 else
21254 # Is the header compilable?
21255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21257 cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h. */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 $ac_includes_default
21264 #include <$ac_header>
21265 _ACEOF
21266 rm -f conftest.$ac_objext
21267 if { (ac_try="$ac_compile"
21268 case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21271 esac
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_compile") 2>conftest.er1
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
21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest.$ac_objext; then
21283 ac_header_compiler=yes
21284 else
21285 echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21287
21288 ac_header_compiler=no
21289 fi
21290
21291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21293 echo "${ECHO_T}$ac_header_compiler" >&6; }
21294
21295 # Is the header present?
21296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21298 cat >conftest.$ac_ext <<_ACEOF
21299 /* confdefs.h. */
21300 _ACEOF
21301 cat confdefs.h >>conftest.$ac_ext
21302 cat >>conftest.$ac_ext <<_ACEOF
21303 /* end confdefs.h. */
21304 #include <$ac_header>
21305 _ACEOF
21306 if { (ac_try="$ac_cpp conftest.$ac_ext"
21307 case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21310 esac
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
21322 ac_header_preproc=yes
21323 else
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21326
21327 ac_header_preproc=no
21328 fi
21329
21330 rm -f conftest.err conftest.$ac_ext
21331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21332 echo "${ECHO_T}$ac_header_preproc" >&6; }
21333
21334 # So? What about this header?
21335 case $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
21338 echo "$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
21340 echo "$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
21345 echo "$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
21347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21349 echo "$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
21351 echo "$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
21353 echo "$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
21355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21356 ( cat <<\_ASBOX
21357 ## ------------------------------------------------- ##
21358 ## Report this to courier-imap@lists.sourceforge.net ##
21359 ## ------------------------------------------------- ##
21360 _ASBOX
21361 ) | sed "s/^/$as_me: WARNING: /" >&2
21362 ;;
21363 esac
21364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369 eval "$as_ac_Header=\$ac_header_preproc"
21370 fi
21371 ac_res=`eval echo '${'$as_ac_Header'}'`
21372 { echo "$as_me:$LINENO: result: $ac_res" >&5
21373 echo "${ECHO_T}$ac_res" >&6; }
21374
21375 fi
21376 if 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
21381 fi
21382
21383 done
21384
21385
21386
21387
21388
21389
21390 # Check whether --with-authpam was given.
21391 if test "${with_authpam+set}" = set; then
21392 withval=$with_authpam; doauthpam="$withval"
21393 fi
21394
21395
21396
21397
21398 for ac_header in security/pam_appl.h Pam/pam_appl.h
21399 do
21400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406 fi
21407 ac_res=`eval echo '${'$as_ac_Header'}'`
21408 { echo "$as_me:$LINENO: result: $ac_res" >&5
21409 echo "${ECHO_T}$ac_res" >&6; }
21410 else
21411 # Is the header compilable?
21412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21414 cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h. */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 $ac_includes_default
21421 #include <$ac_header>
21422 _ACEOF
21423 rm -f conftest.$ac_objext
21424 if { (ac_try="$ac_compile"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_compile") 2>conftest.er1
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
21436 (exit $ac_status); } && {
21437 test -z "$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 } && test -s conftest.$ac_objext; then
21440 ac_header_compiler=yes
21441 else
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 ac_header_compiler=no
21446 fi
21447
21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21450 echo "${ECHO_T}$ac_header_compiler" >&6; }
21451
21452 # Is the header present?
21453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <$ac_header>
21462 _ACEOF
21463 if { (ac_try="$ac_cpp conftest.$ac_ext"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21467 esac
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
21479 ac_header_preproc=yes
21480 else
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21483
21484 ac_header_preproc=no
21485 fi
21486
21487 rm -f conftest.err conftest.$ac_ext
21488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21489 echo "${ECHO_T}$ac_header_preproc" >&6; }
21490
21491 # So? What about this header?
21492 case $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
21495 echo "$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
21497 echo "$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
21502 echo "$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
21504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21506 echo "$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
21508 echo "$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
21510 echo "$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
21512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21513 ( cat <<\_ASBOX
21514 ## ------------------------------------------------- ##
21515 ## Report this to courier-imap@lists.sourceforge.net ##
21516 ## ------------------------------------------------- ##
21517 _ASBOX
21518 ) | sed "s/^/$as_me: WARNING: /" >&2
21519 ;;
21520 esac
21521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526 eval "$as_ac_Header=\$ac_header_preproc"
21527 fi
21528 ac_res=`eval echo '${'$as_ac_Header'}'`
21529 { echo "$as_me:$LINENO: result: $ac_res" >&5
21530 echo "${ECHO_T}$ac_res" >&6; }
21531
21532 fi
21533 if 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
21538 fi
21539
21540 done
21541
21542 if test "$doauthpam" = "no"
21543 then
21544 LIBDL=""
21545 else
21546 saveLIBS="$LIBS"
21547 LIBDL=""
21548 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21549 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21550 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553 ac_check_lib_save_LIBS=$LIBS
21554 LIBS="-ldl $LIBS"
21555 cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h. */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561
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. */
21565 #ifdef __cplusplus
21566 extern "C"
21567 #endif
21568 char dlopen ();
21569 int
21570 main ()
21571 {
21572 return dlopen ();
21573 ;
21574 return 0;
21575 }
21576 _ACEOF
21577 rm -f conftest.$ac_objext conftest$ac_exeext
21578 if { (ac_try="$ac_link"
21579 case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_link") 2>conftest.er1
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
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
21595 ac_cv_lib_dl_dlopen=yes
21596 else
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 ac_cv_lib_dl_dlopen=no
21601 fi
21602
21603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21604 conftest$ac_exeext conftest.$ac_ext
21605 LIBS=$ac_check_lib_save_LIBS
21606 fi
21607 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21609 if test $ac_cv_lib_dl_dlopen = yes; then
21610 LIBDL="-ldl"
21611 fi
21612
21613 LIBS="$saveLIBS"
21614
21615 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
21616 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
21617 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 else
21620 ac_check_lib_save_LIBS=$LIBS
21621 LIBS="-lpam $LIBDL $LIBS"
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628
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. */
21632 #ifdef __cplusplus
21633 extern "C"
21634 #endif
21635 char pam_start ();
21636 int
21637 main ()
21638 {
21639 return pam_start ();
21640 ;
21641 return 0;
21642 }
21643 _ACEOF
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>conftest.er1
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
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
21662 ac_cv_lib_pam_pam_start=yes
21663 else
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21666
21667 ac_cv_lib_pam_pam_start=no
21668 fi
21669
21670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21671 conftest$ac_exeext conftest.$ac_ext
21672 LIBS=$ac_check_lib_save_LIBS
21673 fi
21674 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
21675 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
21676 if test $ac_cv_lib_pam_pam_start = yes; then
21677 HAVE_PAM=1
21678 LIBS="-lpam $LIBDL $LIBS"
21679
21680 for ac_func in pam_setcred
21681 do
21682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 else
21688 cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h. */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>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
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. */
21714 #ifdef __cplusplus
21715 extern "C"
21716 #endif
21717 char $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. */
21721 #if defined __stub_$ac_func || defined __stub___$ac_func
21722 choke me
21723 #endif
21724
21725 int
21726 main ()
21727 {
21728 return $ac_func ();
21729 ;
21730 return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_link") 2>conftest.er1
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
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
21751 eval "$as_ac_var=yes"
21752 else
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 eval "$as_ac_var=no"
21757 fi
21758
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760 conftest$ac_exeext conftest.$ac_ext
21761 fi
21762 ac_res=`eval echo '${'$as_ac_var'}'`
21763 { echo "$as_me:$LINENO: result: $ac_res" >&5
21764 echo "${ECHO_T}$ac_res" >&6; }
21765 if 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
21770 fi
21771 done
21772
21773 else
21774 HAVE_PAM=0
21775 fi
21776
21777 LIBS="$saveLIBS"
21778 fi
21779
21780
21781 LIBAUTHPAM=""
21782 if test "$HAVE_PAM" = 1
21783 then
21784 LIBAUTHPAM=libauthpam.la
21785 fi
21786
21787
21788 # Check whether --with-authpam-libraries was given.
21789 if test "${with_authpam_libraries+set}" = set; then
21790 withval=$with_authpam_libraries; authpamcrypt="$withval"
21791 fi
21792
21793
21794 AUTHPAMCRYPT="$authpamcrypt"
21795
21796
21797
21798
21799
21800
21801
21802 # Check whether --with-authldap was given.
21803 if test "${with_authldap+set}" = set; then
21804 withval=$with_authldap; doauthldap="$withval"
21805 else
21806 doauthldap="yes"
21807 fi
21808
21809
21810
21811 for ac_header in lber.h
21812 do
21813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 fi
21820 ac_res=`eval echo '${'$as_ac_Header'}'`
21821 { echo "$as_me:$LINENO: result: $ac_res" >&5
21822 echo "${ECHO_T}$ac_res" >&6; }
21823 else
21824 # Is the header compilable?
21825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h. */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 $ac_includes_default
21834 #include <$ac_header>
21835 _ACEOF
21836 rm -f conftest.$ac_objext
21837 if { (ac_try="$ac_compile"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841 esac
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_compile") 2>conftest.er1
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
21849 (exit $ac_status); } && {
21850 test -z "$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 } && test -s conftest.$ac_objext; then
21853 ac_header_compiler=yes
21854 else
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21857
21858 ac_header_compiler=no
21859 fi
21860
21861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21863 echo "${ECHO_T}$ac_header_compiler" >&6; }
21864
21865 # Is the header present?
21866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 #include <$ac_header>
21875 _ACEOF
21876 if { (ac_try="$ac_cpp conftest.$ac_ext"
21877 case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
21892 ac_header_preproc=yes
21893 else
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897 ac_header_preproc=no
21898 fi
21899
21900 rm -f conftest.err conftest.$ac_ext
21901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21902 echo "${ECHO_T}$ac_header_preproc" >&6; }
21903
21904 # So? What about this header?
21905 case $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
21908 echo "$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
21910 echo "$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
21915 echo "$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
21917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21919 echo "$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
21921 echo "$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
21923 echo "$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
21925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21926 ( cat <<\_ASBOX
21927 ## ------------------------------------------------- ##
21928 ## Report this to courier-imap@lists.sourceforge.net ##
21929 ## ------------------------------------------------- ##
21930 _ASBOX
21931 ) | sed "s/^/$as_me: WARNING: /" >&2
21932 ;;
21933 esac
21934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939 eval "$as_ac_Header=\$ac_header_preproc"
21940 fi
21941 ac_res=`eval echo '${'$as_ac_Header'}'`
21942 { echo "$as_me:$LINENO: result: $ac_res" >&5
21943 echo "${ECHO_T}$ac_res" >&6; }
21944
21945 fi
21946 if 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
21951 fi
21952
21953 done
21954
21955
21956 for ac_header in ldap.h
21957 do
21958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 fi
21965 ac_res=`eval echo '${'$as_ac_Header'}'`
21966 { echo "$as_me:$LINENO: result: $ac_res" >&5
21967 echo "${ECHO_T}$ac_res" >&6; }
21968 else
21969 # Is the header compilable?
21970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21972 cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h. */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 $ac_includes_default
21979 #include <$ac_header>
21980 _ACEOF
21981 rm -f conftest.$ac_objext
21982 if { (ac_try="$ac_compile"
21983 case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_compile") 2>conftest.er1
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
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest.$ac_objext; then
21998 ac_header_compiler=yes
21999 else
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22002
22003 ac_header_compiler=no
22004 fi
22005
22006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22008 echo "${ECHO_T}$ac_header_compiler" >&6; }
22009
22010 # Is the header present?
22011 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22013 cat >conftest.$ac_ext <<_ACEOF
22014 /* confdefs.h. */
22015 _ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 #include <$ac_header>
22020 _ACEOF
22021 if { (ac_try="$ac_cpp conftest.$ac_ext"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
22037 ac_header_preproc=yes
22038 else
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 ac_header_preproc=no
22043 fi
22044
22045 rm -f conftest.err conftest.$ac_ext
22046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22047 echo "${ECHO_T}$ac_header_preproc" >&6; }
22048
22049 # So? What about this header?
22050 case $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
22053 echo "$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
22055 echo "$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
22060 echo "$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
22062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22064 echo "$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
22066 echo "$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
22068 echo "$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
22070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22071 ( cat <<\_ASBOX
22072 ## ------------------------------------------------- ##
22073 ## Report this to courier-imap@lists.sourceforge.net ##
22074 ## ------------------------------------------------- ##
22075 _ASBOX
22076 ) | sed "s/^/$as_me: WARNING: /" >&2
22077 ;;
22078 esac
22079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 else
22084 eval "$as_ac_Header=\$ac_header_preproc"
22085 fi
22086 ac_res=`eval echo '${'$as_ac_Header'}'`
22087 { echo "$as_me:$LINENO: result: $ac_res" >&5
22088 echo "${ECHO_T}$ac_res" >&6; }
22089
22090 fi
22091 if 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
22096 fi
22097
22098 done
22099
22100
22101 for ac_header in netinet/in.h
22102 do
22103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22109 fi
22110 ac_res=`eval echo '${'$as_ac_Header'}'`
22111 { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22113 else
22114 # Is the header compilable?
22115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h. */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22124 #include <$ac_header>
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
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
22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
22143 ac_header_compiler=yes
22144 else
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148 ac_header_compiler=no
22149 fi
22150
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22153 echo "${ECHO_T}$ac_header_compiler" >&6; }
22154
22155 # Is the header present?
22156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22158 cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h. */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 #include <$ac_header>
22165 _ACEOF
22166 if { (ac_try="$ac_cpp conftest.$ac_ext"
22167 case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
22182 ac_header_preproc=yes
22183 else
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187 ac_header_preproc=no
22188 fi
22189
22190 rm -f conftest.err conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22192 echo "${ECHO_T}$ac_header_preproc" >&6; }
22193
22194 # So? What about this header?
22195 case $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
22198 echo "$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
22200 echo "$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
22205 echo "$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
22207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22209 echo "$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
22211 echo "$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
22213 echo "$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
22215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22216 ( cat <<\_ASBOX
22217 ## ------------------------------------------------- ##
22218 ## Report this to courier-imap@lists.sourceforge.net ##
22219 ## ------------------------------------------------- ##
22220 _ASBOX
22221 ) | sed "s/^/$as_me: WARNING: /" >&2
22222 ;;
22223 esac
22224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 else
22229 eval "$as_ac_Header=\$ac_header_preproc"
22230 fi
22231 ac_res=`eval echo '${'$as_ac_Header'}'`
22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22234
22235 fi
22236 if 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
22241 fi
22242
22243 done
22244
22245
22246 if test "$doauthldap" = "no"
22247 then
22248 HAVE_LDAP=0
22249 else
22250 saveLIBS="$LIBS"
22251 LIBS="$NETLIBS $LIBS"
22252 LDAPLIBS=""
22253
22254 { echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5
22255 echo $ECHO_N "checking whether -lresolv is needed for res_query... $ECHO_C" >&6; }
22256 cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h. */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>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
22269 void (*func)()= (void (*)())res_query;
22270
22271 int
22272 main ()
22273 {
22274 (*func)();
22275 ;
22276 return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext conftest$ac_exeext
22280 if { (ac_try="$ac_link"
22281 case "(($ac_try" in
22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22284 esac
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_link") 2>conftest.er1
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
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
22298 echo "${ECHO_T}no" >&6; }
22299 else
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22302
22303
22304 LIBS="-lresolv $LIBS"
22305
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h. */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>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
22319 void (*func)()= (void (*)())res_query;
22320
22321 int
22322 main ()
22323 {
22324 (*func)();
22325 ;
22326 return 0;
22327 }
22328 _ACEOF
22329 rm -f conftest.$ac_objext conftest$ac_exeext
22330 if { (ac_try="$ac_link"
22331 case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22334 esac
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_link") 2>conftest.er1
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
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
22347
22348 LDAPLIBS="-lresolv $LDAPLIBS"
22349 HAVE_LDAP=1
22350 { echo "$as_me:$LINENO: result: yes" >&5
22351 echo "${ECHO_T}yes" >&6; }
22352
22353 else
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 { { echo "$as_me:$LINENO: error: Cannot find function res_query" >&5
22358 echo "$as_me: error: Cannot find function res_query" >&2;}
22359 { (exit 1); exit 1; }; }
22360 fi
22361
22362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22363 conftest$ac_exeext conftest.$ac_ext
22364
22365 fi
22366
22367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22368 conftest$ac_exeext conftest.$ac_ext
22369
22370 { echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
22371 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6; }
22372 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375 ac_check_lib_save_LIBS=$LIBS
22376 LIBS="-llber $LIBS"
22377 cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h. */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383
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. */
22387 #ifdef __cplusplus
22388 extern "C"
22389 #endif
22390 char ber_scanf ();
22391 int
22392 main ()
22393 {
22394 return ber_scanf ();
22395 ;
22396 return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (ac_try="$ac_link"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_link") 2>conftest.er1
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
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
22417 ac_cv_lib_lber_ber_scanf=yes
22418 else
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422 ac_cv_lib_lber_ber_scanf=no
22423 fi
22424
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22427 LIBS=$ac_check_lib_save_LIBS
22428 fi
22429 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
22430 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6; }
22431 if test $ac_cv_lib_lber_ber_scanf = yes; then
22432 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
22433 fi
22434
22435 { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
22436 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; }
22437 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 else
22440 ac_check_lib_save_LIBS=$LIBS
22441 LIBS="-lldap $LIBS"
22442 cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h. */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22448
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. */
22452 #ifdef __cplusplus
22453 extern "C"
22454 #endif
22455 char ldap_open ();
22456 int
22457 main ()
22458 {
22459 return ldap_open ();
22460 ;
22461 return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (ac_try="$ac_link"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_link") 2>conftest.er1
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
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
22482 ac_cv_lib_ldap_ldap_open=yes
22483 else
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 ac_cv_lib_ldap_ldap_open=no
22488 fi
22489
22490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22491 conftest$ac_exeext conftest.$ac_ext
22492 LIBS=$ac_check_lib_save_LIBS
22493 fi
22494 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
22495 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; }
22496 if test $ac_cv_lib_ldap_ldap_open = yes; then
22497 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
22498 fi
22499
22500 { echo "$as_me:$LINENO: checking for ldap_search_st" >&5
22501 echo $ECHO_N "checking for ldap_search_st... $ECHO_C" >&6; }
22502 if test "${ac_cv_func_ldap_search_st+set}" = set; then
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
22504 else
22505 cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h. */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>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
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. */
22531 #ifdef __cplusplus
22532 extern "C"
22533 #endif
22534 char 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. */
22538 #if defined __stub_ldap_search_st || defined __stub___ldap_search_st
22539 choke me
22540 #endif
22541
22542 int
22543 main ()
22544 {
22545 return ldap_search_st ();
22546 ;
22547 return 0;
22548 }
22549 _ACEOF
22550 rm -f conftest.$ac_objext conftest$ac_exeext
22551 if { (ac_try="$ac_link"
22552 case "(($ac_try" in
22553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554 *) ac_try_echo=$ac_try;;
22555 esac
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557 (eval "$ac_link") 2>conftest.er1
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
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
22568 ac_cv_func_ldap_search_st=yes
22569 else
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22572
22573 ac_cv_func_ldap_search_st=no
22574 fi
22575
22576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22577 conftest$ac_exeext conftest.$ac_ext
22578 fi
22579 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5
22580 echo "${ECHO_T}$ac_cv_func_ldap_search_st" >&6; }
22581 if test $ac_cv_func_ldap_search_st = yes; then
22582 HAVE_LDAP=1
22583 else
22584 HAVE_LDAP=0
22585 fi
22586
22587 { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
22588 echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
22589 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22591 else
22592 cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h. */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>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
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. */
22618 #ifdef __cplusplus
22619 extern "C"
22620 #endif
22621 char 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. */
22625 #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
22626 choke me
22627 #endif
22628
22629 int
22630 main ()
22631 {
22632 return ldap_start_tls_s ();
22633 ;
22634 return 0;
22635 }
22636 _ACEOF
22637 rm -f conftest.$ac_objext conftest$ac_exeext
22638 if { (ac_try="$ac_link"
22639 case "(($ac_try" in
22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641 *) ac_try_echo=$ac_try;;
22642 esac
22643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_link") 2>conftest.er1
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
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
22655 ac_cv_func_ldap_start_tls_s=yes
22656 else
22657 echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22659
22660 ac_cv_func_ldap_start_tls_s=no
22661 fi
22662
22663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22664 conftest$ac_exeext conftest.$ac_ext
22665 fi
22666 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
22667 echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
22668 if test $ac_cv_func_ldap_start_tls_s = yes; then
22669 HAVE_LDAP_TLS=1
22670 else
22671 HAVE_LDAP_TLS=0
22672 fi
22673
22674 { echo "$as_me:$LINENO: checking for ldap_result2error" >&5
22675 echo $ECHO_N "checking for ldap_result2error... $ECHO_C" >&6; }
22676 if test "${ac_cv_func_ldap_result2error+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679 cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h. */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>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
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. */
22705 #ifdef __cplusplus
22706 extern "C"
22707 #endif
22708 char 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. */
22712 #if defined __stub_ldap_result2error || defined __stub___ldap_result2error
22713 choke me
22714 #endif
22715
22716 int
22717 main ()
22718 {
22719 return ldap_result2error ();
22720 ;
22721 return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest.$ac_objext conftest$ac_exeext
22725 if { (ac_try="$ac_link"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_link") 2>conftest.er1
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
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
22742 ac_cv_func_ldap_result2error=yes
22743 else
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_cv_func_ldap_result2error=no
22748 fi
22749
22750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22751 conftest$ac_exeext conftest.$ac_ext
22752 fi
22753 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5
22754 echo "${ECHO_T}$ac_cv_func_ldap_result2error" >&6; }
22755 if test $ac_cv_func_ldap_result2error = yes; then
22756 HAVE_LDAP_RESULT2ERROR=1
22757 else
22758 HAVE_LDAP_RESULT2ERROR=0
22759 fi
22760
22761 { echo "$as_me:$LINENO: checking for ldap_parse_result" >&5
22762 echo $ECHO_N "checking for ldap_parse_result... $ECHO_C" >&6; }
22763 if test "${ac_cv_func_ldap_parse_result+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766 cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h. */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>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
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. */
22792 #ifdef __cplusplus
22793 extern "C"
22794 #endif
22795 char 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. */
22799 #if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result
22800 choke me
22801 #endif
22802
22803 int
22804 main ()
22805 {
22806 return ldap_parse_result ();
22807 ;
22808 return 0;
22809 }
22810 _ACEOF
22811 rm -f conftest.$ac_objext conftest$ac_exeext
22812 if { (ac_try="$ac_link"
22813 case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_link") 2>conftest.er1
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
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
22829 ac_cv_func_ldap_parse_result=yes
22830 else
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834 ac_cv_func_ldap_parse_result=no
22835 fi
22836
22837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22838 conftest$ac_exeext conftest.$ac_ext
22839 fi
22840 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5
22841 echo "${ECHO_T}$ac_cv_func_ldap_parse_result" >&6; }
22842 if test $ac_cv_func_ldap_parse_result = yes; then
22843 HAVE_LDAP_PARSE_RESULT=1
22844 else
22845 HAVE_LDAP_PARSE_RESULT=0
22846 fi
22847
22848 LIBS="$saveLIBS"
22849 fi
22850
22851
22852 # Check whether --with-authldaprc was given.
22853 if test "${with_authldaprc+set}" = set; then
22854 withval=$with_authldaprc; authldaprc="$withval"
22855 else
22856 authldaprc="$pkgconfdir/authldaprc"
22857 fi
22858
22859
22860
22861 LIBAUTHLDAP=""
22862 if test "$HAVE_LDAP" = 1
22863 then
22864 LIBAUTHLDAP="libauthldap.la"
22865 else
22866 authldaprc=""
22867 fi
22868
22869
22870
22871 if test "$HAVE_LDAP" = 1; then
22872 HAVE_LDAP_TRUE=
22873 HAVE_LDAP_FALSE='#'
22874 else
22875 HAVE_LDAP_TRUE='#'
22876 HAVE_LDAP_FALSE=
22877 fi
22878
22879
22880 cat >>confdefs.h <<_ACEOF
22881 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
22882 _ACEOF
22883
22884
22885 cat >>confdefs.h <<_ACEOF
22886 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
22887 _ACEOF
22888
22889
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
22892 _ACEOF
22893
22894
22895
22896
22897
22898 # Check whether --with-authpwd was given.
22899 if test "${with_authpwd+set}" = set; then
22900 withval=$with_authpwd; doauthpwd="$withval"
22901 else
22902 doauthpwd="yes"
22903 test "$HAVE_PAM" = 1 && doauthpwd="no"
22904 test "$HAVE_LDAP" = 1 && doauthpwd="no"
22905
22906 fi
22907
22908
22909 HAVE_PWD=1
22910 if test "$doauthpwd" = "no"
22911 then
22912 HAVE_PWD=0
22913 fi
22914
22915 for ac_func in endpwent
22916 do
22917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22922 else
22923 cat >conftest.$ac_ext <<_ACEOF
22924 /* confdefs.h. */
22925 _ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>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
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. */
22949 #ifdef __cplusplus
22950 extern "C"
22951 #endif
22952 char $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. */
22956 #if defined __stub_$ac_func || defined __stub___$ac_func
22957 choke me
22958 #endif
22959
22960 int
22961 main ()
22962 {
22963 return $ac_func ();
22964 ;
22965 return 0;
22966 }
22967 _ACEOF
22968 rm -f conftest.$ac_objext conftest$ac_exeext
22969 if { (ac_try="$ac_link"
22970 case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22973 esac
22974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_link") 2>conftest.er1
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
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
22986 eval "$as_ac_var=yes"
22987 else
22988 echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22990
22991 eval "$as_ac_var=no"
22992 fi
22993
22994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22995 conftest$ac_exeext conftest.$ac_ext
22996 fi
22997 ac_res=`eval echo '${'$as_ac_var'}'`
22998 { echo "$as_me:$LINENO: result: $ac_res" >&5
22999 echo "${ECHO_T}$ac_res" >&6; }
23000 if 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
23005 fi
23006 done
23007
23008
23009
23010
23011
23012
23013 # Check whether --with-authshadow was given.
23014 if test "${with_authshadow+set}" = set; then
23015 withval=$with_authshadow; doauthshadow="$withval"
23016 else
23017 doauthshadow="yes"
23018 test "$HAVE_PAM" = 1 && doauthshadow="no"
23019 test "$HAVE_LDAP" = 1 && doauthshadow="no"
23020 fi
23021
23022
23023
23024 for ac_header in shadow.h
23025 do
23026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23032 fi
23033 ac_res=`eval echo '${'$as_ac_Header'}'`
23034 { echo "$as_me:$LINENO: result: $ac_res" >&5
23035 echo "${ECHO_T}$ac_res" >&6; }
23036 else
23037 # Is the header compilable?
23038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h. */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 $ac_includes_default
23047 #include <$ac_header>
23048 _ACEOF
23049 rm -f conftest.$ac_objext
23050 if { (ac_try="$ac_compile"
23051 case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23054 esac
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_compile") 2>conftest.er1
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
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest.$ac_objext; then
23066 ac_header_compiler=yes
23067 else
23068 echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23070
23071 ac_header_compiler=no
23072 fi
23073
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23076 echo "${ECHO_T}$ac_header_compiler" >&6; }
23077
23078 # Is the header present?
23079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h. */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23087 #include <$ac_header>
23088 _ACEOF
23089 if { (ac_try="$ac_cpp conftest.$ac_ext"
23090 case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23093 esac
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
23105 ac_header_preproc=yes
23106 else
23107 echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23109
23110 ac_header_preproc=no
23111 fi
23112
23113 rm -f conftest.err conftest.$ac_ext
23114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23115 echo "${ECHO_T}$ac_header_preproc" >&6; }
23116
23117 # So? What about this header?
23118 case $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
23121 echo "$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
23123 echo "$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
23128 echo "$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
23130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23132 echo "$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
23134 echo "$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
23136 echo "$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
23138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23139 ( cat <<\_ASBOX
23140 ## ------------------------------------------------- ##
23141 ## Report this to courier-imap@lists.sourceforge.net ##
23142 ## ------------------------------------------------- ##
23143 _ASBOX
23144 ) | sed "s/^/$as_me: WARNING: /" >&2
23145 ;;
23146 esac
23147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23151 else
23152 eval "$as_ac_Header=\$ac_header_preproc"
23153 fi
23154 ac_res=`eval echo '${'$as_ac_Header'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23157
23158 fi
23159 if 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
23164 fi
23165
23166 done
23167
23168 saveLIBS="$LIBS"
23169 SHADOWLIBS=""
23170 { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23171 echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
23172 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 else
23175 ac_check_lib_save_LIBS=$LIBS
23176 LIBS="-lshadow $LIBS"
23177 cat >conftest.$ac_ext <<_ACEOF
23178 /* confdefs.h. */
23179 _ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23183
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. */
23187 #ifdef __cplusplus
23188 extern "C"
23189 #endif
23190 char getspent ();
23191 int
23192 main ()
23193 {
23194 return getspent ();
23195 ;
23196 return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23204 esac
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_link") 2>conftest.er1
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
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
23217 ac_cv_lib_shadow_getspent=yes
23218 else
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222 ac_cv_lib_shadow_getspent=no
23223 fi
23224
23225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23226 conftest$ac_exeext conftest.$ac_ext
23227 LIBS=$ac_check_lib_save_LIBS
23228 fi
23229 { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23230 echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
23231 if test $ac_cv_lib_shadow_getspent = yes; then
23232 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
23233 fi
23234
23235
23236
23237 for ac_func in endspent getspent
23238 do
23239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23243 echo $ECHO_N "(cached) $ECHO_C" >&6
23244 else
23245 cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h. */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>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
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. */
23271 #ifdef __cplusplus
23272 extern "C"
23273 #endif
23274 char $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. */
23278 #if defined __stub_$ac_func || defined __stub___$ac_func
23279 choke me
23280 #endif
23281
23282 int
23283 main ()
23284 {
23285 return $ac_func ();
23286 ;
23287 return 0;
23288 }
23289 _ACEOF
23290 rm -f conftest.$ac_objext conftest$ac_exeext
23291 if { (ac_try="$ac_link"
23292 case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23295 esac
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_link") 2>conftest.er1
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
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
23308 eval "$as_ac_var=yes"
23309 else
23310 echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23312
23313 eval "$as_ac_var=no"
23314 fi
23315
23316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23317 conftest$ac_exeext conftest.$ac_ext
23318 fi
23319 ac_res=`eval echo '${'$as_ac_var'}'`
23320 { echo "$as_me:$LINENO: result: $ac_res" >&5
23321 echo "${ECHO_T}$ac_res" >&6; }
23322 if 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
23327 fi
23328 done
23329
23330 LIBS="$saveLIBS"
23331
23332 if test "$doauthshadow" = "no"
23333 then
23334 HAVE_SHADOW=0
23335 else
23336
23337 saveLIBS="$LIBS"
23338
23339 { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23340 echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
23341 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23342 echo $ECHO_N "(cached) $ECHO_C" >&6
23343 else
23344 ac_check_lib_save_LIBS=$LIBS
23345 LIBS="-lshadow $LIBS"
23346 cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h. */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23352
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. */
23356 #ifdef __cplusplus
23357 extern "C"
23358 #endif
23359 char getspent ();
23360 int
23361 main ()
23362 {
23363 return getspent ();
23364 ;
23365 return 0;
23366 }
23367 _ACEOF
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (ac_try="$ac_link"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23373 esac
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_link") 2>conftest.er1
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
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
23386 ac_cv_lib_shadow_getspent=yes
23387 else
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23390
23391 ac_cv_lib_shadow_getspent=no
23392 fi
23393
23394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23395 conftest$ac_exeext conftest.$ac_ext
23396 LIBS=$ac_check_lib_save_LIBS
23397 fi
23398 { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23399 echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
23400 if 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
23407 fi
23408
23409 { echo "$as_me:$LINENO: checking for getspent" >&5
23410 echo $ECHO_N "checking for getspent... $ECHO_C" >&6; }
23411 if test "${ac_cv_func_getspent+set}" = set; then
23412 echo $ECHO_N "(cached) $ECHO_C" >&6
23413 else
23414 cat >conftest.$ac_ext <<_ACEOF
23415 /* confdefs.h. */
23416 _ACEOF
23417 cat confdefs.h >>conftest.$ac_ext
23418 cat >>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
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. */
23440 #ifdef __cplusplus
23441 extern "C"
23442 #endif
23443 char 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. */
23447 #if defined __stub_getspent || defined __stub___getspent
23448 choke me
23449 #endif
23450
23451 int
23452 main ()
23453 {
23454 return getspent ();
23455 ;
23456 return 0;
23457 }
23458 _ACEOF
23459 rm -f conftest.$ac_objext conftest$ac_exeext
23460 if { (ac_try="$ac_link"
23461 case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23464 esac
23465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23466 (eval "$ac_link") 2>conftest.er1
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
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
23477 ac_cv_func_getspent=yes
23478 else
23479 echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23481
23482 ac_cv_func_getspent=no
23483 fi
23484
23485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23486 conftest$ac_exeext conftest.$ac_ext
23487 fi
23488 { echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5
23489 echo "${ECHO_T}$ac_cv_func_getspent" >&6; }
23490 if test $ac_cv_func_getspent = yes; then
23491 HAVE_SHADOW=1
23492 else
23493 HAVE_SHADOW=0
23494 fi
23495
23496 LIBS="$saveLIBS"
23497 fi
23498
23499 LIBAUTHSHADOW=""
23500 if test "$HAVE_SHADOW" = 1
23501 then
23502 LIBAUTHSHADOW="libauthshadow.la"
23503 fi
23504
23505
23506
23507 LIBAUTHPWD=""
23508 if test "$HAVE_PWD" = 1
23509 then
23510 LIBAUTHPWD="libauthpwd.la"
23511 fi
23512
23513
23514
23515
23516
23517
23518 # Check whether --with-authpgsqlrc was given.
23519 if test "${with_authpgsqlrc+set}" = set; then
23520 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
23521 else
23522 authpgsqlrc="$pkgconfdir/authpgsqlrc"
23523 fi
23524
23525
23526
23527
23528 # Check whether --with-authpgsql was given.
23529 if test "${with_authpgsql+set}" = set; then
23530 withval=$with_authpgsql; doauthpgsql="$withval"
23531 fi
23532
23533
23534 for ac_prog in pg_config
23535 do
23536 # Extract the first word of "$ac_prog", so it can be a program name with args.
23537 set dummy $ac_prog; ac_word=$2
23538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23540 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23541 echo $ECHO_N "(cached) $ECHO_C" >&6
23542 else
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
23549 for as_dir in $LPATH
23550 do
23551 IFS=$as_save_IFS
23552 test -z "$as_dir" && as_dir=.
23553 for ac_exec_ext in '' $ac_executable_extensions; do
23554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
23559 done
23560 done
23561 IFS=$as_save_IFS
23562
23563 ;;
23564 esac
23565 fi
23566 PG_CONFIG=$ac_cv_path_PG_CONFIG
23567 if test -n "$PG_CONFIG"; then
23568 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23569 echo "${ECHO_T}$PG_CONFIG" >&6; }
23570 else
23571 { echo "$as_me:$LINENO: result: no" >&5
23572 echo "${ECHO_T}no" >&6; }
23573 fi
23574
23575
23576 test -n "$PG_CONFIG" && break
23577 done
23578 test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
23579
23580
23581 PGSQL_LIBS="-lpq"
23582
23583 # Check whether --with-pgsql-libs was given.
23584 if test "${with_pgsql_libs+set}" = set; then
23585 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
23586 else
23587 if test -x $PG_CONFIG
23588 then
23589 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
23590 fi
23591
23592 fi
23593
23594
23595 # Check whether --with-pgsql-includes was given.
23596 if test "${with_pgsql_includes+set}" = set; then
23597 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
23598 else
23599 if test -x $PG_CONFIG
23600 then
23601 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
23602 fi
23603
23604 fi
23605
23606
23607 if test "$doauthpgsql" = ""
23608 then
23609 LIBS="$PGSQL_LIBS $LIBS"
23610 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23611 echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
23612 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 else
23615 cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h. */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>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
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. */
23641 #ifdef __cplusplus
23642 extern "C"
23643 #endif
23644 char 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. */
23648 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
23649 choke me
23650 #endif
23651
23652 int
23653 main ()
23654 {
23655 return PQsetdbLogin ();
23656 ;
23657 return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext conftest$ac_exeext
23661 if { (ac_try="$ac_link"
23662 case "(($ac_try" in
23663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664 *) ac_try_echo=$ac_try;;
23665 esac
23666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667 (eval "$ac_link") 2>conftest.er1
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
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
23678 ac_cv_func_PQsetdbLogin=yes
23679 else
23680 echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23682
23683 ac_cv_func_PQsetdbLogin=no
23684 fi
23685
23686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23687 conftest$ac_exeext conftest.$ac_ext
23688 fi
23689 { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23690 echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
23691 if test $ac_cv_func_PQsetdbLogin = yes; then
23692 doauthpgsql="yes"
23693
23694 fi
23695
23696 LIBS="$saveLIBS"
23697 fi
23698
23699 if test "$doauthpgsql" != "yes"
23700 then
23701 LIBAUTHPGSQL=""
23702 HAVE_AUTHPGSQL=0
23703 else
23704 saveLIBS="$LIBS"
23705 LIBS="$PGSQL_LIBS $LIBS"
23706 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23707 echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
23708 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23710 else
23711 cat >conftest.$ac_ext <<_ACEOF
23712 /* confdefs.h. */
23713 _ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>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
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. */
23737 #ifdef __cplusplus
23738 extern "C"
23739 #endif
23740 char 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. */
23744 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
23745 choke me
23746 #endif
23747
23748 int
23749 main ()
23750 {
23751 return PQsetdbLogin ();
23752 ;
23753 return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext conftest$ac_exeext
23757 if { (ac_try="$ac_link"
23758 case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_link") 2>conftest.er1
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
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
23774 ac_cv_func_PQsetdbLogin=yes
23775 else
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23778
23779 ac_cv_func_PQsetdbLogin=no
23780 fi
23781
23782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23783 conftest$ac_exeext conftest.$ac_ext
23784 fi
23785 { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23786 echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
23787 if test $ac_cv_func_PQsetdbLogin = yes; then
23788 AUTHPGSQL="authpgsql"
23789 HAVE_AUTHPGSQL=1
23790 else
23791 { { echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5
23792 echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;}
23793 { (exit 1); exit 1; }; }
23794 fi
23795
23796 LIBS="$saveLIBS"
23797 HAVE_AUTHPGSQL=1
23798 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
23799 LIBAUTHPGSQL="libauthpgsql.la"
23800 fi
23801
23802
23803
23804 if test "$HAVE_AUTHPGSQL" = 1; then
23805 HAVE_AUTHPGSQL_TRUE=
23806 HAVE_AUTHPGSQL_FALSE='#'
23807 else
23808 HAVE_AUTHPGSQL_TRUE='#'
23809 HAVE_AUTHPGSQL_FALSE=
23810 fi
23811
23812
23813
23814
23815
23816
23817 # Check whether --with-authmysqlrc was given.
23818 if test "${with_authmysqlrc+set}" = set; then
23819 withval=$with_authmysqlrc; authmysqlrc="$withval"
23820 else
23821 authmysqlrc="$pkgconfdir/authmysqlrc"
23822 fi
23823
23824
23825
23826
23827 # Check whether --with-authmysql was given.
23828 if test "${with_authmysql+set}" = set; then
23829 withval=$with_authmysql; doauthmysql="$withval"
23830 fi
23831
23832
23833 # Check whether --with-mysql-libs was given.
23834 if test "${with_mysql_libs+set}" = set; then
23835 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
23836
23837 fi
23838
23839
23840 # Check whether --with-mysql-includes was given.
23841 if test "${with_mysql_includes+set}" = set; then
23842 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
23843
23844 fi
23845
23846
23847 for ac_prog in mysql_config
23848 do
23849 # Extract the first word of "$ac_prog", so it can be a program name with args.
23850 set dummy $ac_prog; ac_word=$2
23851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23853 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
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
23862 for as_dir in $LPATH
23863 do
23864 IFS=$as_save_IFS
23865 test -z "$as_dir" && as_dir=.
23866 for ac_exec_ext in '' $ac_executable_extensions; do
23867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
23872 done
23873 done
23874 IFS=$as_save_IFS
23875
23876 ;;
23877 esac
23878 fi
23879 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
23880 if test -n "$MYSQL_CONFIG"; then
23881 { echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
23882 echo "${ECHO_T}$MYSQL_CONFIG" >&6; }
23883 else
23884 { echo "$as_me:$LINENO: result: no" >&5
23885 echo "${ECHO_T}no" >&6; }
23886 fi
23887
23888
23889 test -n "$MYSQL_CONFIG" && break
23890 done
23891 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
23892
23893
23894 if test -x "$MYSQL_CONFIG"
23895 then
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\`\""
23901 fi
23902
23903 if test "$doauthmysql" = ""
23904 then
23905 LIBS="$MYSQL_LIBS $LIBS"
23906 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
23907 echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
23908 if test "${ac_cv_func_mysql_connect+set}" = set; then
23909 echo $ECHO_N "(cached) $ECHO_C" >&6
23910 else
23911 cat >conftest.$ac_ext <<_ACEOF
23912 /* confdefs.h. */
23913 _ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>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
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. */
23937 #ifdef __cplusplus
23938 extern "C"
23939 #endif
23940 char 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. */
23944 #if defined __stub_mysql_connect || defined __stub___mysql_connect
23945 choke me
23946 #endif
23947
23948 int
23949 main ()
23950 {
23951 return mysql_connect ();
23952 ;
23953 return 0;
23954 }
23955 _ACEOF
23956 rm -f conftest.$ac_objext conftest$ac_exeext
23957 if { (ac_try="$ac_link"
23958 case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23961 esac
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_link") 2>conftest.er1
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
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
23974 ac_cv_func_mysql_connect=yes
23975 else
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23978
23979 ac_cv_func_mysql_connect=no
23980 fi
23981
23982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23983 conftest$ac_exeext conftest.$ac_ext
23984 fi
23985 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
23986 echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
23987 if test $ac_cv_func_mysql_connect = yes; then
23988 doauthmysql="yes"
23989
23990 fi
23991
23992 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
23993 echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
23994 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
23995 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997 cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h. */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>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
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. */
24023 #ifdef __cplusplus
24024 extern "C"
24025 #endif
24026 char 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. */
24030 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
24031 choke me
24032 #endif
24033
24034 int
24035 main ()
24036 {
24037 return mysql_real_connect ();
24038 ;
24039 return 0;
24040 }
24041 _ACEOF
24042 rm -f conftest.$ac_objext conftest$ac_exeext
24043 if { (ac_try="$ac_link"
24044 case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24047 esac
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_link") 2>conftest.er1
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
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
24060 ac_cv_func_mysql_real_connect=yes
24061 else
24062 echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24064
24065 ac_cv_func_mysql_real_connect=no
24066 fi
24067
24068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24069 conftest$ac_exeext conftest.$ac_ext
24070 fi
24071 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24072 echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
24073 if test $ac_cv_func_mysql_real_connect = yes; then
24074 doauthmysql="yes"
24075
24076 fi
24077
24078 LIBS="$saveLIBS"
24079 fi
24080
24081 if test "$doauthmysql" != "yes"
24082 then
24083 LIBAUTHMYSQL=""
24084 HAVE_AUTHMYSQL=0
24085 else
24086 saveLIBS="$LIBS"
24087 LIBS="$MYSQL_LIBS $LIBS"
24088 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
24089 echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
24090 if test "${ac_cv_func_mysql_connect+set}" = set; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24092 else
24093 cat >conftest.$ac_ext <<_ACEOF
24094 /* confdefs.h. */
24095 _ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>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
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. */
24119 #ifdef __cplusplus
24120 extern "C"
24121 #endif
24122 char 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. */
24126 #if defined __stub_mysql_connect || defined __stub___mysql_connect
24127 choke me
24128 #endif
24129
24130 int
24131 main ()
24132 {
24133 return mysql_connect ();
24134 ;
24135 return 0;
24136 }
24137 _ACEOF
24138 rm -f conftest.$ac_objext conftest$ac_exeext
24139 if { (ac_try="$ac_link"
24140 case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_link") 2>conftest.er1
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
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
24156 ac_cv_func_mysql_connect=yes
24157 else
24158 echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.$ac_ext >&5
24160
24161 ac_cv_func_mysql_connect=no
24162 fi
24163
24164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24165 conftest$ac_exeext conftest.$ac_ext
24166 fi
24167 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24168 echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
24169 if test $ac_cv_func_mysql_connect = yes; then
24170 LIBAUTHMYSQL="libauthmysql.la"
24171 HAVE_AUTHMYSQL=1
24172 else
24173
24174 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24175 echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
24176 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24177 echo $ECHO_N "(cached) $ECHO_C" >&6
24178 else
24179 cat >conftest.$ac_ext <<_ACEOF
24180 /* confdefs.h. */
24181 _ACEOF
24182 cat confdefs.h >>conftest.$ac_ext
24183 cat >>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
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. */
24205 #ifdef __cplusplus
24206 extern "C"
24207 #endif
24208 char 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. */
24212 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
24213 choke me
24214 #endif
24215
24216 int
24217 main ()
24218 {
24219 return mysql_real_connect ();
24220 ;
24221 return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest.$ac_objext conftest$ac_exeext
24225 if { (ac_try="$ac_link"
24226 case "(($ac_try" in
24227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 (eval "$ac_link") 2>conftest.er1
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
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
24242 ac_cv_func_mysql_real_connect=yes
24243 else
24244 echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24246
24247 ac_cv_func_mysql_real_connect=no
24248 fi
24249
24250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24251 conftest$ac_exeext conftest.$ac_ext
24252 fi
24253 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24254 echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
24255 if test $ac_cv_func_mysql_real_connect = yes; then
24256 LIBAUTHMYSQL="libauthmysql.la"
24257 HAVE_AUTHMYSQL=1
24258 else
24259 { { echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5
24260 echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;}
24261 { (exit 1); exit 1; }; }
24262
24263 fi
24264
24265
24266
24267 fi
24268
24269 LIBS="$saveLIBS"
24270 HAVE_AUTHMYSQL=1
24271 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
24272 fi
24273
24274
24275 if test "$HAVE_AUTHMYSQL" = 1; then
24276 HAVE_AUTHMYSQL_TRUE=
24277 HAVE_AUTHMYSQL_FALSE='#'
24278 else
24279 HAVE_AUTHMYSQL_TRUE='#'
24280 HAVE_AUTHMYSQL_FALSE=
24281 fi
24282
24283
24284
24285
24286
24287
24288
24289
24290 # Check whether --with-authcustom was given.
24291 if test "${with_authcustom+set}" = set; then
24292 withval=$with_authcustom; doauthcustom="$withval"
24293 else
24294 doauthcustom=yes
24295 fi
24296
24297
24298 LIBAUTHCUSTOM=""
24299
24300 if test "$doauthcustom" = "yes"
24301 then
24302 LIBAUTHCUSTOM="libauthcustom.la"
24303 fi
24304
24305 if test "$AUTHCUSTOM" != ""; then
24306 HAVE_CUSTOM_TRUE=
24307 HAVE_CUSTOM_FALSE='#'
24308 else
24309 HAVE_CUSTOM_TRUE='#'
24310 HAVE_CUSTOM_FALSE=
24311 fi
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321 # Check whether --with-pipeprog was given.
24322 if test "${with_pipeprog+set}" = set; then
24323 withval=$with_pipeprog; authProg="$withval"
24324 else
24325 authProg="$pkgconfdir/authProg"
24326 fi
24327
24328
24329
24330
24331 # Check whether --with-authpipe was given.
24332 if test "${with_authpipe+set}" = set; then
24333 withval=$with_authpipe; doauthpipe="$withval"
24334 else
24335 doauthpipe=yes
24336 fi
24337
24338
24339 LIBAUTHPIPE=""
24340
24341 if test "$doauthpipe" = "yes"
24342 then
24343 LIBAUTHPIPE="libauthpipe.la"
24344 fi
24345
24346 if test "$AUTHPIPE" != ""; then
24347 HAVE_PIPE_TRUE=
24348 HAVE_PIPE_FALSE='#'
24349 else
24350 HAVE_PIPE_TRUE='#'
24351 HAVE_PIPE_FALSE=
24352 fi
24353
24354
24355
24356
24357
24358 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24359 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24360 if test "${ac_cv_header_stdc+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24362 else
24363 cat >conftest.$ac_ext <<_ACEOF
24364 /* confdefs.h. */
24365 _ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>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
24374 int
24375 main ()
24376 {
24377
24378 ;
24379 return 0;
24380 }
24381 _ACEOF
24382 rm -f conftest.$ac_objext
24383 if { (ac_try="$ac_compile"
24384 case "(($ac_try" in
24385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386 *) ac_try_echo=$ac_try;;
24387 esac
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389 (eval "$ac_compile") 2>conftest.er1
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
24395 (exit $ac_status); } && {
24396 test -z "$ac_c_werror_flag" ||
24397 test ! -s conftest.err
24398 } && test -s conftest.$ac_objext; then
24399 ac_cv_header_stdc=yes
24400 else
24401 echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24403
24404 ac_cv_header_stdc=no
24405 fi
24406
24407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408
24409 if 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
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 #include <string.h>
24418
24419 _ACEOF
24420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24421 $EGREP "memchr" >/dev/null 2>&1; then
24422 :
24423 else
24424 ac_cv_header_stdc=no
24425 fi
24426 rm -f conftest*
24427
24428 fi
24429
24430 if 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
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h. */
24438 #include <stdlib.h>
24439
24440 _ACEOF
24441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24442 $EGREP "free" >/dev/null 2>&1; then
24443 :
24444 else
24445 ac_cv_header_stdc=no
24446 fi
24447 rm -f conftest*
24448
24449 fi
24450
24451 if 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 :
24455 else
24456 cat >conftest.$ac_ext <<_ACEOF
24457 /* confdefs.h. */
24458 _ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24462 #include <ctype.h>
24463 #include <stdlib.h>
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)))
24476 int
24477 main ()
24478 {
24479 int i;
24480 for (i = 0; i < 256; i++)
24481 if (XOR (islower (i), ISLOWER (i))
24482 || toupper (i) != TOUPPER (i))
24483 return 2;
24484 return 0;
24485 }
24486 _ACEOF
24487 rm -f conftest$ac_exeext
24488 if { (ac_try="$ac_link"
24489 case "(($ac_try" in
24490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24491 *) ac_try_echo=$ac_try;;
24492 esac
24493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494 (eval "$ac_link") 2>&5
24495 ac_status=$?
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24498 { (case "(($ac_try" in
24499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500 *) ac_try_echo=$ac_try;;
24501 esac
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503 (eval "$ac_try") 2>&5
24504 ac_status=$?
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24507 :
24508 else
24509 echo "$as_me: program exited with status $ac_status" >&5
24510 echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24512
24513 ( exit $ac_status )
24514 ac_cv_header_stdc=no
24515 fi
24516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24517 fi
24518
24519
24520 fi
24521 fi
24522 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24523 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24524 if test $ac_cv_header_stdc = yes; then
24525
24526 cat >>confdefs.h <<\_ACEOF
24527 #define STDC_HEADERS 1
24528 _ACEOF
24529
24530 fi
24531
24532 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24533 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
24534 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24535 echo $ECHO_N "(cached) $ECHO_C" >&6
24536 else
24537 cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h. */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24543 #include <sys/types.h>
24544 #include <sys/wait.h>
24545 #ifndef WEXITSTATUS
24546 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
24547 #endif
24548 #ifndef WIFEXITED
24549 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24550 #endif
24551
24552 int
24553 main ()
24554 {
24555 int s;
24556 wait (&s);
24557 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24558 ;
24559 return 0;
24560 }
24561 _ACEOF
24562 rm -f conftest.$ac_objext
24563 if { (ac_try="$ac_compile"
24564 case "(($ac_try" in
24565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24567 esac
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_compile") 2>conftest.er1
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
24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest.$ac_objext; then
24579 ac_cv_header_sys_wait_h=yes
24580 else
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24583
24584 ac_cv_header_sys_wait_h=no
24585 fi
24586
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24588 fi
24589 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24590 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
24591 if test $ac_cv_header_sys_wait_h = yes; then
24592
24593 cat >>confdefs.h <<\_ACEOF
24594 #define HAVE_SYS_WAIT_H 1
24595 _ACEOF
24596
24597 fi
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607 for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
24608 do
24609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 fi
24616 ac_res=`eval echo '${'$as_ac_Header'}'`
24617 { echo "$as_me:$LINENO: result: $ac_res" >&5
24618 echo "${ECHO_T}$ac_res" >&6; }
24619 else
24620 # Is the header compilable?
24621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24623 cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h. */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 $ac_includes_default
24630 #include <$ac_header>
24631 _ACEOF
24632 rm -f conftest.$ac_objext
24633 if { (ac_try="$ac_compile"
24634 case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24637 esac
24638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639 (eval "$ac_compile") 2>conftest.er1
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
24645 (exit $ac_status); } && {
24646 test -z "$ac_c_werror_flag" ||
24647 test ! -s conftest.err
24648 } && test -s conftest.$ac_objext; then
24649 ac_header_compiler=yes
24650 else
24651 echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24653
24654 ac_header_compiler=no
24655 fi
24656
24657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24659 echo "${ECHO_T}$ac_header_compiler" >&6; }
24660
24661 # Is the header present?
24662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24664 cat >conftest.$ac_ext <<_ACEOF
24665 /* confdefs.h. */
24666 _ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h. */
24670 #include <$ac_header>
24671 _ACEOF
24672 if { (ac_try="$ac_cpp conftest.$ac_ext"
24673 case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
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
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
24688 ac_header_preproc=yes
24689 else
24690 echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24692
24693 ac_header_preproc=no
24694 fi
24695
24696 rm -f conftest.err conftest.$ac_ext
24697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24698 echo "${ECHO_T}$ac_header_preproc" >&6; }
24699
24700 # So? What about this header?
24701 case $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
24704 echo "$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
24706 echo "$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
24711 echo "$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
24713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24715 echo "$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
24717 echo "$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
24719 echo "$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
24721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24722 ( cat <<\_ASBOX
24723 ## ------------------------------------------------- ##
24724 ## Report this to courier-imap@lists.sourceforge.net ##
24725 ## ------------------------------------------------- ##
24726 _ASBOX
24727 ) | sed "s/^/$as_me: WARNING: /" >&2
24728 ;;
24729 esac
24730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24734 else
24735 eval "$as_ac_Header=\$ac_header_preproc"
24736 fi
24737 ac_res=`eval echo '${'$as_ac_Header'}'`
24738 { echo "$as_me:$LINENO: result: $ac_res" >&5
24739 echo "${ECHO_T}$ac_res" >&6; }
24740
24741 fi
24742 if 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
24747 fi
24748
24749 done
24750
24751
24752 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24753 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24754 if test "${ac_cv_c_const+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24756 else
24757 cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h. */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24763
24764 int
24765 main ()
24766 {
24767 /* FIXME: Include the comments suggested by Paul. */
24768 #ifndef __cplusplus
24769 /* Ultrix mips cc rejects this. */
24770 typedef int charset[2];
24771 const charset cs;
24772 /* SunOS 4.1.1 cc rejects this. */
24773 char const *const *pcpcc;
24774 char **ppc;
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";
24783 pcpcc = &g + (g ? g-g : 0);
24784 /* HPUX 7.0 cc rejects these. */
24785 ++pcpcc;
24786 ppc = (char**) pcpcc;
24787 pcpcc = (char const *const *) ppc;
24788 { /* SCO 3.2v4 cc rejects this. */
24789 char *t;
24790 char const *s = 0 ? (char *) 0 : (char const *) 0;
24791
24792 *t++ = 0;
24793 if (s) return 0;
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;
24812 if (!foo) return 0;
24813 }
24814 return !cs[0] && !zero.x;
24815 #endif
24816
24817 ;
24818 return 0;
24819 }
24820 _ACEOF
24821 rm -f conftest.$ac_objext
24822 if { (ac_try="$ac_compile"
24823 case "(($ac_try" in
24824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24826 esac
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828 (eval "$ac_compile") 2>conftest.er1
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
24834 (exit $ac_status); } && {
24835 test -z "$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 } && test -s conftest.$ac_objext; then
24838 ac_cv_c_const=yes
24839 else
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24842
24843 ac_cv_c_const=no
24844 fi
24845
24846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24847 fi
24848 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24849 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24850 if test $ac_cv_c_const = no; then
24851
24852 cat >>confdefs.h <<\_ACEOF
24853 #define const
24854 _ACEOF
24855
24856 fi
24857
24858 { echo "$as_me:$LINENO: checking for pid_t" >&5
24859 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24860 if test "${ac_cv_type_pid_t+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863 cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h. */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 $ac_includes_default
24870 typedef pid_t ac__type_new_;
24871 int
24872 main ()
24873 {
24874 if ((ac__type_new_ *) 0)
24875 return 0;
24876 if (sizeof (ac__type_new_))
24877 return 0;
24878 ;
24879 return 0;
24880 }
24881 _ACEOF
24882 rm -f conftest.$ac_objext
24883 if { (ac_try="$ac_compile"
24884 case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24887 esac
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_compile") 2>conftest.er1
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
24895 (exit $ac_status); } && {
24896 test -z "$ac_c_werror_flag" ||
24897 test ! -s conftest.err
24898 } && test -s conftest.$ac_objext; then
24899 ac_cv_type_pid_t=yes
24900 else
24901 echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24903
24904 ac_cv_type_pid_t=no
24905 fi
24906
24907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24908 fi
24909 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24910 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24911 if test $ac_cv_type_pid_t = yes; then
24912 :
24913 else
24914
24915 cat >>confdefs.h <<_ACEOF
24916 #define pid_t int
24917 _ACEOF
24918
24919 fi
24920
24921 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24922 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24923 if test "${ac_cv_type_uid_t+set}" = set; then
24924 echo $ECHO_N "(cached) $ECHO_C" >&6
24925 else
24926 cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h. */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24932 #include <sys/types.h>
24933
24934 _ACEOF
24935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24936 $EGREP "uid_t" >/dev/null 2>&1; then
24937 ac_cv_type_uid_t=yes
24938 else
24939 ac_cv_type_uid_t=no
24940 fi
24941 rm -f conftest*
24942
24943 fi
24944 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24945 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24946 if test $ac_cv_type_uid_t = no; then
24947
24948 cat >>confdefs.h <<\_ACEOF
24949 #define uid_t int
24950 _ACEOF
24951
24952
24953 cat >>confdefs.h <<\_ACEOF
24954 #define gid_t int
24955 _ACEOF
24956
24957 fi
24958
24959 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24960 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24961 if test "${ac_cv_type_signal+set}" = set; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24963 else
24964 cat >conftest.$ac_ext <<_ACEOF
24965 /* confdefs.h. */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24970 #include <sys/types.h>
24971 #include <signal.h>
24972
24973 int
24974 main ()
24975 {
24976 return *(signal (0, 0)) (0) == 1;
24977 ;
24978 return 0;
24979 }
24980 _ACEOF
24981 rm -f conftest.$ac_objext
24982 if { (ac_try="$ac_compile"
24983 case "(($ac_try" in
24984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985 *) ac_try_echo=$ac_try;;
24986 esac
24987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988 (eval "$ac_compile") 2>conftest.er1
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
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
24999 else
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25002
25003 ac_cv_type_signal=void
25004 fi
25005
25006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25007 fi
25008 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25009 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
25010
25011 cat >>confdefs.h <<_ACEOF
25012 #define RETSIGTYPE $ac_cv_type_signal
25013 _ACEOF
25014
25015
25016
25017
25018
25019 for ac_func in setsid setlogin
25020 do
25021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25026 else
25027 cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h. */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>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
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. */
25053 #ifdef __cplusplus
25054 extern "C"
25055 #endif
25056 char $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. */
25060 #if defined __stub_$ac_func || defined __stub___$ac_func
25061 choke me
25062 #endif
25063
25064 int
25065 main ()
25066 {
25067 return $ac_func ();
25068 ;
25069 return 0;
25070 }
25071 _ACEOF
25072 rm -f conftest.$ac_objext conftest$ac_exeext
25073 if { (ac_try="$ac_link"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077 esac
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_link") 2>conftest.er1
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
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
25090 eval "$as_ac_var=yes"
25091 else
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25094
25095 eval "$as_ac_var=no"
25096 fi
25097
25098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25099 conftest$ac_exeext conftest.$ac_ext
25100 fi
25101 ac_res=`eval echo '${'$as_ac_var'}'`
25102 { echo "$as_me:$LINENO: result: $ac_res" >&5
25103 echo "${ECHO_T}$ac_res" >&6; }
25104 if 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
25109 fi
25110 done
25111
25112 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25113 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25114 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25116 else
25117 ac_check_lib_save_LIBS=$LIBS
25118 LIBS="-lcrypt $LIBS"
25119 cat >conftest.$ac_ext <<_ACEOF
25120 /* confdefs.h. */
25121 _ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25125
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. */
25129 #ifdef __cplusplus
25130 extern "C"
25131 #endif
25132 char crypt ();
25133 int
25134 main ()
25135 {
25136 return crypt ();
25137 ;
25138 return 0;
25139 }
25140 _ACEOF
25141 rm -f conftest.$ac_objext conftest$ac_exeext
25142 if { (ac_try="$ac_link"
25143 case "(($ac_try" in
25144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145 *) ac_try_echo=$ac_try;;
25146 esac
25147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148 (eval "$ac_link") 2>conftest.er1
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
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
25159 ac_cv_lib_crypt_crypt=yes
25160 else
25161 echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25163
25164 ac_cv_lib_crypt_crypt=no
25165 fi
25166
25167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25168 conftest$ac_exeext conftest.$ac_ext
25169 LIBS=$ac_check_lib_save_LIBS
25170 fi
25171 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25172 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25173 if test $ac_cv_lib_crypt_crypt = yes; then
25174 CRYPTLIBS="-lcrypt"
25175 fi
25176
25177 saveLIBS="$LIBS"
25178 LIBS="$CRYPTLIBS $LIBS"
25179 { echo "$as_me:$LINENO: checking for crypt" >&5
25180 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25181 if test "${ac_cv_func_crypt+set}" = set; then
25182 echo $ECHO_N "(cached) $ECHO_C" >&6
25183 else
25184 cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h. */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>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
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. */
25210 #ifdef __cplusplus
25211 extern "C"
25212 #endif
25213 char 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. */
25217 #if defined __stub_crypt || defined __stub___crypt
25218 choke me
25219 #endif
25220
25221 int
25222 main ()
25223 {
25224 return crypt ();
25225 ;
25226 return 0;
25227 }
25228 _ACEOF
25229 rm -f conftest.$ac_objext conftest$ac_exeext
25230 if { (ac_try="$ac_link"
25231 case "(($ac_try" in
25232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233 *) ac_try_echo=$ac_try;;
25234 esac
25235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236 (eval "$ac_link") 2>conftest.er1
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
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
25247 ac_cv_func_crypt=yes
25248 else
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25251
25252 ac_cv_func_crypt=no
25253 fi
25254
25255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25256 conftest$ac_exeext conftest.$ac_ext
25257 fi
25258 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25259 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25260 if test $ac_cv_func_crypt = yes; then
25261
25262 cat >>confdefs.h <<_ACEOF
25263 #define HAVE_CRYPT 1
25264 _ACEOF
25265
25266 fi
25267
25268 LIBS="$saveLIBS"
25269 { echo "$as_me:$LINENO: checking for crypt() prototype" >&5
25270 echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
25271 if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 else
25274 cat >conftest.$ac_ext <<_ACEOF
25275 /* confdefs.h. */
25276 _ACEOF
25277 cat confdefs.h >>conftest.$ac_ext
25278 cat >>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
25290 int
25291 main ()
25292 {
25293
25294 ;
25295 return 0;
25296 }
25297 _ACEOF
25298 rm -f conftest.$ac_objext
25299 if { (ac_try="$ac_compile"
25300 case "(($ac_try" in
25301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25302 *) ac_try_echo=$ac_try;;
25303 esac
25304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25305 (eval "$ac_compile") 2>conftest.er1
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
25311 (exit $ac_status); } && {
25312 test -z "$ac_c_werror_flag" ||
25313 test ! -s conftest.err
25314 } && test -s conftest.$ac_objext; then
25315 userdb_cv_NEED_CRYPT_PROTOTYPE=1
25316 else
25317 echo "$as_me: failed program was:" >&5
25318 sed 's/^/| /' conftest.$ac_ext >&5
25319
25320 userdb_cv_NEED_CRYPT_PROTOTYPE=0
25321 fi
25322
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25324
25325
25326 fi
25327 { echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
25328 echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
25329
25330
25331 cat >>confdefs.h <<_ACEOF
25332 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
25333 _ACEOF
25334
25335
25336
25337
25338
25339
25340
25341 # Check whether --with-authdaemonrc was given.
25342 if test "${with_authdaemonrc+set}" = set; then
25343 withval=$with_authdaemonrc; authdaemonrc="$withval"
25344 else
25345 authdaemonrc="$pkgconfdir/authdaemonrc"
25346 fi
25347
25348
25349
25350
25351 # Check whether --with-authdaemonvar was given.
25352 if test "${with_authdaemonvar+set}" = set; then
25353 withval=$with_authdaemonvar; authdaemonvar="$withval"
25354 else
25355 authdaemonvar="$localstatedir/spool/authdaemon"
25356 fi
25357
25358
25359
25360
25361
25362
25363 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
25364
25365
25366 result=""
25367
25368 if test -x "$COURIERCONFIG"
25369 then
25370 $COURIERCONFIG >conftest.out || exit 1
25371 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
25372 . ./conftest2.out
25373 rm -f conftest.out conftest2.out
25374
25375 cmailuser="$mailuser"
25376 cmailgroup="$mailgroup"
25377 result=" (from courier-config)"
25378 fi
25379
25380 if test -x "$bindir/courierauthconfig"
25381 then
25382 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
25383 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
25384 . ./conftest2.out
25385 rm -f conftest.out conftest2.out
25386
25387 cmailuser="$mailuser"
25388 cmailgroup="$mailgroup"
25389 result=" (from previous courierauthconfig)"
25390 fi
25391
25392
25393
25394 LB='['
25395 RB=']'
25396
25397
25398
25399 { echo "$as_me:$LINENO: checking for mail userid" >&5
25400 echo $ECHO_N "checking for mail userid... $ECHO_C" >&6; }
25401
25402
25403 # Check whether --with-mailuser was given.
25404 if test "${with_mailuser+set}" = set; then
25405 withval=$with_mailuser; mailuser="$withval"
25406 else
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
25411 echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;}
25412 { (exit 1); exit 1; }; }
25413 else
25414 cat >conftest.$ac_ext <<_ACEOF
25415 /* confdefs.h. */
25416 _ACEOF
25417 cat confdefs.h >>conftest.$ac_ext
25418 cat >>conftest.$ac_ext <<_ACEOF
25419 /* end confdefs.h. */
25420
25421 #include <stdio.h>
25422 #include <pwd.h>
25423 #include <stdlib.h>
25424
25425 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
25426
25427 int main()
25428 {
25429 int i;
25430 FILE *f;
25431 char *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
25449 rm -f conftest$ac_exeext
25450 if { (ac_try="$ac_link"
25451 case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25454 esac
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_link") 2>&5
25457 ac_status=$?
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25460 { (case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25463 esac
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_try") 2>&5
25466 ac_status=$?
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
25469 mailuser=`cat conftest.out`
25470 else
25471 echo "$as_me: program exited with status $ac_status" >&5
25472 echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25474
25475 ( exit $ac_status )
25476 { { echo "$as_me:$LINENO: error: Cannot determine mail user" >&5
25477 echo "$as_me: error: Cannot determine mail user" >&2;}
25478 { (exit use --with-mailuser.); exit use --with-mailuser.; }; }
25479 fi
25480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25481 fi
25482
25483
25484 else
25485 mailuser="$cmailuser"
25486 fi
25487 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
25488 fi
25489
25490
25491 { echo "$as_me:$LINENO: result: $mailuser $result" >&5
25492 echo "${ECHO_T}$mailuser $result" >&6; }
25493
25494 { echo "$as_me:$LINENO: checking for mail group id" >&5
25495 echo $ECHO_N "checking for mail group id... $ECHO_C" >&6; }
25496
25497
25498 # Check whether --with-mailgroup was given.
25499 if test "${with_mailgroup+set}" = set; then
25500 withval=$with_mailgroup; mailgroup="$withval"
25501 else
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
25506 echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;}
25507 { (exit 1); exit 1; }; }
25508 else
25509 cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h. */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515
25516 #include <stdio.h>
25517 #include <grp.h>
25518 #include <stdlib.h>
25519
25520 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
25521
25522 int main()
25523 {
25524 int i;
25525 FILE *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
25543 rm -f conftest$ac_exeext
25544 if { (ac_try="$ac_link"
25545 case "(($ac_try" in
25546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25548 esac
25549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550 (eval "$ac_link") 2>&5
25551 ac_status=$?
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25554 { (case "(($ac_try" in
25555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556 *) ac_try_echo=$ac_try;;
25557 esac
25558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559 (eval "$ac_try") 2>&5
25560 ac_status=$?
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); }; }; then
25563 mailgroup=`cat conftest.out`
25564 else
25565 echo "$as_me: program exited with status $ac_status" >&5
25566 echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25568
25569 ( exit $ac_status )
25570 { { echo "$as_me:$LINENO: error: Cannot determine mail group" >&5
25571 echo "$as_me: error: Cannot determine mail group" >&2;}
25572 { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; }
25573 fi
25574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25575 fi
25576
25577
25578 else
25579 mailgroup="$cmailgroup"
25580 fi
25581 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
25582
25583 fi
25584
25585 { echo "$as_me:$LINENO: result: $mailgroup $result" >&5
25586 echo "${ECHO_T}$mailgroup $result" >&6; }
25587
25588
25589 rm -f conftest.out
25590
25591
25592 # Check whether --with-stdheaderdir was given.
25593 if test "${with_stdheaderdir+set}" = set; then
25594 withval=$with_stdheaderdir;
25595 if test "$withval" = "no"
25596 then
25597
25598 cat >>confdefs.h <<_ACEOF
25599 #define HAVE_NOSTDHEADERDIR 1
25600 _ACEOF
25601
25602 fi
25603
25604 fi
25605
25606
25607 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25608 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25609 if test "${authlib_cv_hassocklen_t+set}" = set; then
25610 echo $ECHO_N "(cached) $ECHO_C" >&6
25611 else
25612 cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h. */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618
25619 #include <sys/types.h>
25620 #include <sys/socket.h>
25621
25622 socklen_t sl_t;
25623
25624 _ACEOF
25625 rm -f conftest.$ac_objext
25626 if { (ac_try="$ac_compile"
25627 case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_compile") 2>conftest.er1
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
25638 (exit $ac_status); } && {
25639 test -z "$ac_c_werror_flag" ||
25640 test ! -s conftest.err
25641 } && test -s conftest.$ac_objext; then
25642 authlib_cv_hassocklen_t=yes
25643 else
25644 echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25646
25647 authlib_cv_hassocklen_t=no
25648 fi
25649
25650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25651
25652 fi
25653 { echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5
25654 echo "${ECHO_T}$authlib_cv_hassocklen_t" >&6; }
25655
25656 socklen_t="int"
25657
25658 if test $authlib_cv_hassocklen_t = yes
25659 then
25660 :
25661 else
25662
25663 cat >>confdefs.h <<_ACEOF
25664 #define socklen_t int
25665 _ACEOF
25666
25667 fi
25668
25669
25670 # Check whether --with-repository was given.
25671 if test "${with_repository+set}" = set; then
25672 withval=$with_repository; REPOSITORY="$withval"
25673 fi
25674
25675
25676
25677 if test -d ${srcdir}/docbook; then
25678 HAVE_SGML_TRUE=
25679 HAVE_SGML_FALSE='#'
25680 else
25681 HAVE_SGML_TRUE='#'
25682 HAVE_SGML_FALSE=
25683 fi
25684
25685 subdirs="$subdirs libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog"
25686
25687
25688 ac_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"
25689
25690 cat >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.
25708 # So, we kill variables containing newlines.
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.
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
25718 echo "$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
25727 (set) 2>&1 |
25728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25729 *${as_nl}ac_space=\ *)
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"
25735 ;; #(
25736 *)
25737 # `set' quotes correctly as required by POSIX, so do not add quotes.
25738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25739 ;;
25740 esac |
25741 sort
25742 ) |
25743 sed '
25744 /^ac_cv_env_/b end
25745 t clear
25746 :clear
25747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25748 t end
25749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25750 :end' >>confcache
25751 if 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
25755 echo "$as_me: updating cache $cache_file" >&6;}
25756 cat confcache >$cache_file
25757 else
25758 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25759 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25760 fi
25761 fi
25762 rm -f confcache
25763
25764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25765 # Let make expand exec_prefix.
25766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25767
25768 DEFS=-DHAVE_CONFIG_H
25769
25770 ac_libobjs=
25771 ac_ltlibobjs=
25772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25773 # 1. Remove the extension, and $U if already installed.
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'
25780 done
25781 LIBOBJS=$ac_libobjs
25782
25783 LTLIBOBJS=$ac_ltlibobjs
25784
25785
25786 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25787 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25788 Usually this means the macro was only invoked conditionally." >&5
25789 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25790 Usually this means the macro was only invoked conditionally." >&2;}
25791 { (exit 1); exit 1; }; }
25792 fi
25793 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25795 Usually this means the macro was only invoked conditionally." >&5
25796 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25797 Usually this means the macro was only invoked conditionally." >&2;}
25798 { (exit 1); exit 1; }; }
25799 fi
25800 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25801 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25802 Usually this means the macro was only invoked conditionally." >&5
25803 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25804 Usually this means the macro was only invoked conditionally." >&2;}
25805 { (exit 1); exit 1; }; }
25806 fi
25807 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
25808 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
25809 Usually this means the macro was only invoked conditionally." >&5
25810 echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
25811 Usually this means the macro was only invoked conditionally." >&2;}
25812 { (exit 1); exit 1; }; }
25813 fi
25814 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
25815 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25816 Usually this means the macro was only invoked conditionally." >&5
25817 echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25818 Usually this means the macro was only invoked conditionally." >&2;}
25819 { (exit 1); exit 1; }; }
25820 fi
25821 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
25822 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25823 Usually this means the macro was only invoked conditionally." >&5
25824 echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25825 Usually this means the macro was only invoked conditionally." >&2;}
25826 { (exit 1); exit 1; }; }
25827 fi
25828 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
25829 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined.
25830 Usually this means the macro was only invoked conditionally." >&5
25831 echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined.
25832 Usually this means the macro was only invoked conditionally." >&2;}
25833 { (exit 1); exit 1; }; }
25834 fi
25835 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
25836 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined.
25837 Usually this means the macro was only invoked conditionally." >&5
25838 echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined.
25839 Usually this means the macro was only invoked conditionally." >&2;}
25840 { (exit 1); exit 1; }; }
25841 fi
25842 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
25843 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
25844 Usually this means the macro was only invoked conditionally." >&5
25845 echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
25846 Usually this means the macro was only invoked conditionally." >&2;}
25847 { (exit 1); exit 1; }; }
25848 fi
25849
25850 : ${CONFIG_STATUS=./config.status}
25851 ac_clean_files_save=$ac_clean_files
25852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25853 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25854 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25855 cat >$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
25862 debug=false
25863 ac_cs_recheck=false
25864 ac_cs_silent=false
25865 SHELL=\${CONFIG_SHELL-$SHELL}
25866 _ACEOF
25867
25868 cat >>$CONFIG_STATUS <<\_ACEOF
25869 ## --------------------- ##
25870 ## M4sh Initialization. ##
25871 ## --------------------- ##
25872
25873 # Be more Bourne compatible
25874 DUALCASE=1; export DUALCASE # for MKS sh
25875 if 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+"$@"}'='"$@"'
25881 setopt NO_GLOB_SUBST
25882 else
25883 case `(set -o) 2>/dev/null` in
25884 *posix*) set -o posix ;;
25885 esac
25886
25887 fi
25888
25889
25890
25891
25892 # PATH needs CR
25893 # Avoid depending upon Character Ranges.
25894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25897 as_cr_digits='0123456789'
25898 as_cr_alnum=$as_cr_Letters$as_cr_digits
25899
25900 # The user is always right.
25901 if 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
25911 fi
25912
25913 # Support unset when possible.
25914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25915 as_unset=unset
25916 else
25917 as_unset=false
25918 fi
25919
25920
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.)
25926 as_nl='
25927 '
25928 IFS=" "" $as_nl"
25929
25930 # Find who we are. Look in the path if we contain no directory separator.
25931 case $0 in
25932 *[\\/]* ) as_myself=$0 ;;
25933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25934 for as_dir in $PATH
25935 do
25936 IFS=$as_save_IFS
25937 test -z "$as_dir" && as_dir=.
25938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25939 done
25940 IFS=$as_save_IFS
25941
25942 ;;
25943 esac
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.
25946 if test "x$as_myself" = x; then
25947 as_myself=$0
25948 fi
25949 if 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; }
25952 fi
25953
25954 # Work around bugs in pre-3.0 UWIN ksh.
25955 for as_var in ENV MAIL MAILPATH
25956 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25957 done
25958 PS1='$ '
25959 PS2='> '
25960 PS4='+ '
25961
25962 # NLS nuisances.
25963 for 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
25967 do
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
25971 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25972 fi
25973 done
25974
25975 # Required to use basename.
25976 if expr a : '\(a\)' >/dev/null 2>&1 &&
25977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25978 as_expr=expr
25979 else
25980 as_expr=false
25981 fi
25982
25983 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25984 as_basename=basename
25985 else
25986 as_basename=false
25987 fi
25988
25989
25990 # Name of the executable.
25991 as_me=`$as_basename -- "$0" ||
25992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25993 X"$0" : 'X\(//\)$' \| \
25994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25995 echo X/"$0" |
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'`
26009
26010 # CDPATH.
26011 $as_unset CDPATH
26012
26013
26014
26015 as_lineno_1=$LINENO
26016 as_lineno_2=$LINENO
26017 test "x$as_lineno_1" != "x$as_lineno_2" &&
26018 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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.
26027 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
26034 sed '
26035 s/[$]LINENO.*/&-/
26036 t lineno
26037 b
26038 :lineno
26039 N
26040 :loop
26041 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26042 t loop
26043 s/-\n.*//
26044 ' >$as_me.lineno &&
26045 chmod +x "$as_me.lineno" ||
26046 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
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
26051 # original and so on. Autoconf is especially sensitive to this).
26052 . "./$as_me.lineno"
26053 # Exit status is that of the last command.
26054 exit
26055 }
26056
26057
26058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26059 as_dirname=dirname
26060 else
26061 as_dirname=false
26062 fi
26063
26064 ECHO_C= ECHO_N= ECHO_T=
26065 case `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';;
26073 esac
26074
26075 if expr a : '\(a\)' >/dev/null 2>&1 &&
26076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26077 as_expr=expr
26078 else
26079 as_expr=false
26080 fi
26081
26082 rm -f conf$$ conf$$.exe conf$$.file
26083 if test -d conf$$.dir; then
26084 rm -f conf$$.dir/conf$$.file
26085 else
26086 rm -f conf$$.dir
26087 mkdir conf$$.dir
26088 fi
26089 echo >conf$$.file
26090 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
26097 as_ln_s='cp -p'
26098 elif ln conf$$.file conf$$ 2>/dev/null; then
26099 as_ln_s=ln
26100 else
26101 as_ln_s='cp -p'
26102 fi
26103 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26104 rmdir conf$$.dir 2>/dev/null
26105
26106 if mkdir -p . 2>/dev/null; then
26107 as_mkdir_p=:
26108 else
26109 test -d ./-p && rmdir ./-p
26110 as_mkdir_p=false
26111 fi
26112
26113 if test -x / >/dev/null 2>&1; then
26114 as_test_x='test -x'
26115 else
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 '
26133 fi
26134 as_executable_p=$as_test_x
26135
26136 # Sed expression to map a string onto a valid CPP name.
26137 as_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.
26140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26141
26142
26143 exec 6>&1
26144
26145 # Save the log message, to keep $[0] and so on meaningful, and to
26146 # report actual input values of CONFIG_FILES etc. instead of their
26147 # values after options handling.
26148 ac_log="
26149 This file was extended by courier-authlib $as_me 0.61.0, which was
26150 generated by GNU Autoconf 2.61. Invocation command line was
26151
26152 CONFIG_FILES = $CONFIG_FILES
26153 CONFIG_HEADERS = $CONFIG_HEADERS
26154 CONFIG_LINKS = $CONFIG_LINKS
26155 CONFIG_COMMANDS = $CONFIG_COMMANDS
26156 $ $0 $@
26157
26158 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26159 "
26160
26161 _ACEOF
26162
26163 cat >>$CONFIG_STATUS <<_ACEOF
26164 # Files that config.status was made for.
26165 config_files="$ac_config_files"
26166 config_headers="$ac_config_headers"
26167 config_commands="$ac_config_commands"
26168
26169 _ACEOF
26170
26171 cat >>$CONFIG_STATUS <<\_ACEOF
26172 ac_cs_usage="\
26173 \`$as_me' instantiates files from templates according to the
26174 current configuration.
26175
26176 Usage: $0 [OPTIONS] [FILE]...
26177
26178 -h, --help print this help, then exit
26179 -V, --version print version number and configuration settings, then exit
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
26188 Configuration files:
26189 $config_files
26190
26191 Configuration headers:
26192 $config_headers
26193
26194 Configuration commands:
26195 $config_commands
26196
26197 Report bugs to <bug-autoconf@gnu.org>."
26198
26199 _ACEOF
26200 cat >>$CONFIG_STATUS <<_ACEOF
26201 ac_cs_version="\\
26202 courier-authlib config.status 0.61.0
26203 configured by $0, generated by GNU Autoconf 2.61,
26204 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26205
26206 Copyright (C) 2006 Free Software Foundation, Inc.
26207 This config.status script is free software; the Free Software Foundation
26208 gives unlimited permission to copy, distribute and modify it."
26209
26210 ac_pwd='$ac_pwd'
26211 srcdir='$srcdir'
26212 INSTALL='$INSTALL'
26213 MKDIR_P='$MKDIR_P'
26214 _ACEOF
26215
26216 cat >>$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.
26219 ac_need_defaults=:
26220 while test $# != 0
26221 do
26222 case $1 in
26223 --*=*)
26224 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26225 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26226 ac_shift=:
26227 ;;
26228 *)
26229 ac_option=$1
26230 ac_optarg=$2
26231 ac_shift=shift
26232 ;;
26233 esac
26234
26235 case $ac_option in
26236 # Handling of the options.
26237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26238 ac_cs_recheck=: ;;
26239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26240 echo "$ac_cs_version"; exit ;;
26241 --debug | --debu | --deb | --de | --d | -d )
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;;
26251 --he | --h)
26252 # Conflict between --help and --header
26253 { echo "$as_me: error: ambiguous option: $1
26254 Try \`$0 --help' for more information." >&2
26255 { (exit 1); exit 1; }; };;
26256 --help | --hel | -h )
26257 echo "$ac_cs_usage"; exit ;;
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.
26263 -*) { echo "$as_me: error: unrecognized option: $1
26264 Try \`$0 --help' for more information." >&2
26265 { (exit 1); exit 1; }; } ;;
26266
26267 *) ac_config_targets="$ac_config_targets $1"
26268 ac_need_defaults=false ;;
26269
26270 esac
26271 shift
26272 done
26273
26274 ac_configure_extra_args=
26275
26276 if $ac_cs_silent; then
26277 exec 6>/dev/null
26278 ac_configure_extra_args="$ac_configure_extra_args --silent"
26279 fi
26280
26281 _ACEOF
26282 cat >>$CONFIG_STATUS <<_ACEOF
26283 if \$ac_cs_recheck; then
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
26288 fi
26289
26290 _ACEOF
26291 cat >>$CONFIG_STATUS <<\_ACEOF
26292 exec 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
26300
26301 _ACEOF
26302 cat >>$CONFIG_STATUS <<_ACEOF
26303 #
26304 # INIT-COMMANDS
26305 #
26306 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26307
26308 _ACEOF
26309
26310 cat >>$CONFIG_STATUS <<\_ACEOF
26311
26312 # Handling of arguments.
26313 for ac_config_target in $ac_config_targets
26314 do
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" ;;
26323 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;;
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
26331 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26332 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26333 { (exit 1); exit 1; }; };;
26334 esac
26335 done
26336
26337
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.
26342 if $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
26346 fi
26347
26348 # Have a temporary directory for convenience. Make it in the build tree
26349 # simply because there is no reason against having it here, and in addition,
26350 # creating and moving files from /tmp can sometimes cause problems.
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'.
26354 $debug ||
26355 {
26356 tmp=
26357 trap 'exit_status=$?
26358 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26359 ' 0
26360 trap '{ (exit 1); exit 1; }' 1 2 13 15
26361 }
26362 # Create a (secure) tmp directory for tmp files.
26363
26364 {
26365 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26366 test -n "$tmp" && test -d "$tmp"
26367 } ||
26368 {
26369 tmp=./conf$$-$RANDOM
26370 (umask 077 && mkdir "$tmp")
26371 } ||
26372 {
26373 echo "$me: cannot create a temporary directory in ." >&2
26374 { (exit 1); exit 1; }
26375 }
26376
26377 #
26378 # Set up the sed scripts for CONFIG_FILES section.
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
26383 if test -n "$CONFIG_FILES"; then
26384
26385 _ACEOF
26386
26387
26388
26389 ac_delim='%!_!# '
26390 for ac_last_try in false false false false false :; do
26391 cat >conf$$subs.sed <<_ACEOF
26392 SHELL!$SHELL$ac_delim
26393 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26394 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26395 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26396 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26397 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26398 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26399 exec_prefix!$exec_prefix$ac_delim
26400 prefix!$prefix$ac_delim
26401 program_transform_name!$program_transform_name$ac_delim
26402 bindir!$bindir$ac_delim
26403 sbindir!$sbindir$ac_delim
26404 libexecdir!$libexecdir$ac_delim
26405 datarootdir!$datarootdir$ac_delim
26406 datadir!$datadir$ac_delim
26407 sysconfdir!$sysconfdir$ac_delim
26408 sharedstatedir!$sharedstatedir$ac_delim
26409 localstatedir!$localstatedir$ac_delim
26410 includedir!$includedir$ac_delim
26411 oldincludedir!$oldincludedir$ac_delim
26412 docdir!$docdir$ac_delim
26413 infodir!$infodir$ac_delim
26414 htmldir!$htmldir$ac_delim
26415 dvidir!$dvidir$ac_delim
26416 pdfdir!$pdfdir$ac_delim
26417 psdir!$psdir$ac_delim
26418 libdir!$libdir$ac_delim
26419 localedir!$localedir$ac_delim
26420 mandir!$mandir$ac_delim
26421 DEFS!$DEFS$ac_delim
26422 ECHO_C!$ECHO_C$ac_delim
26423 ECHO_N!$ECHO_N$ac_delim
26424 ECHO_T!$ECHO_T$ac_delim
26425 LIBS!$LIBS$ac_delim
26426 build_alias!$build_alias$ac_delim
26427 host_alias!$host_alias$ac_delim
26428 target_alias!$target_alias$ac_delim
26429 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26430 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26431 INSTALL_DATA!$INSTALL_DATA$ac_delim
26432 am__isrc!$am__isrc$ac_delim
26433 CYGPATH_W!$CYGPATH_W$ac_delim
26434 PACKAGE!$PACKAGE$ac_delim
26435 VERSION!$VERSION$ac_delim
26436 ACLOCAL!$ACLOCAL$ac_delim
26437 AUTOCONF!$AUTOCONF$ac_delim
26438 AUTOMAKE!$AUTOMAKE$ac_delim
26439 AUTOHEADER!$AUTOHEADER$ac_delim
26440 MAKEINFO!$MAKEINFO$ac_delim
26441 install_sh!$install_sh$ac_delim
26442 STRIP!$STRIP$ac_delim
26443 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26444 mkdir_p!$mkdir_p$ac_delim
26445 AWK!$AWK$ac_delim
26446 SET_MAKE!$SET_MAKE$ac_delim
26447 am__leading_dot!$am__leading_dot$ac_delim
26448 AMTAR!$AMTAR$ac_delim
26449 am__tar!$am__tar$ac_delim
26450 am__untar!$am__untar$ac_delim
26451 CC!$CC$ac_delim
26452 CFLAGS!$CFLAGS$ac_delim
26453 LDFLAGS!$LDFLAGS$ac_delim
26454 CPPFLAGS!$CPPFLAGS$ac_delim
26455 ac_ct_CC!$ac_ct_CC$ac_delim
26456 EXEEXT!$EXEEXT$ac_delim
26457 OBJEXT!$OBJEXT$ac_delim
26458 DEPDIR!$DEPDIR$ac_delim
26459 am__include!$am__include$ac_delim
26460 am__quote!$am__quote$ac_delim
26461 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26462 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26463 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26464 CCDEPMODE!$CCDEPMODE$ac_delim
26465 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26466 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26467 CPP!$CPP$ac_delim
26468 LN_S!$LN_S$ac_delim
26469 SYSCONFTOOL_PERL!$SYSCONFTOOL_PERL$ac_delim
26470 SYSCONFTOOL!$SYSCONFTOOL$ac_delim
26471 build!$build$ac_delim
26472 build_cpu!$build_cpu$ac_delim
26473 build_vendor!$build_vendor$ac_delim
26474 build_os!$build_os$ac_delim
26475 host!$host$ac_delim
26476 host_cpu!$host_cpu$ac_delim
26477 host_vendor!$host_vendor$ac_delim
26478 host_os!$host_os$ac_delim
26479 SED!$SED$ac_delim
26480 GREP!$GREP$ac_delim
26481 EGREP!$EGREP$ac_delim
26482 ECHO!$ECHO$ac_delim
26483 AR!$AR$ac_delim
26484 RANLIB!$RANLIB$ac_delim
26485 CXX!$CXX$ac_delim
26486 CXXFLAGS!$CXXFLAGS$ac_delim
26487 ac_ct_CXX!$ac_ct_CXX$ac_delim
26488 CXXDEPMODE!$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
26495 echo "$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!! "
26499 fi
26500 done
26501
26502 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26503 if test -n "$ac_eof"; then
26504 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26505 ac_eof=`expr $ac_eof + 1`
26506 fi
26507
26508 cat >>$CONFIG_STATUS <<_ACEOF
26509 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26511 _ACEOF
26512 sed '
26513 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26514 s/^/s,@/; s/!/@,|#_!!_#|/
26515 :n
26516 t n
26517 s/'"$ac_delim"'$/,g/; t
26518 s/$/\\/; p
26519 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26520 ' >>$CONFIG_STATUS <conf$$subs.sed
26521 rm -f conf$$subs.sed
26522 cat >>$CONFIG_STATUS <<_ACEOF
26523 CEOF$ac_eof
26524 _ACEOF
26525
26526
26527 ac_delim='%!_!# '
26528 for ac_last_try in false false false false false :; do
26529 cat >conf$$subs.sed <<_ACEOF
26530 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26531 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26532 CXXCPP!$CXXCPP$ac_delim
26533 F77!$F77$ac_delim
26534 FFLAGS!$FFLAGS$ac_delim
26535 ac_ct_F77!$ac_ct_F77$ac_delim
26536 LIBTOOL!$LIBTOOL$ac_delim
26537 LTDLINCL!$LTDLINCL$ac_delim
26538 LIBLTDL!$LIBLTDL$ac_delim
26539 PERL!$PERL$ac_delim
26540 COURIERCONFIG!$COURIERCONFIG$ac_delim
26541 EXPECT!$EXPECT$ac_delim
26542 PASSWD!$PASSWD$ac_delim
26543 NETLIBS!$NETLIBS$ac_delim
26544 USE_GDBM!$USE_GDBM$ac_delim
26545 USE_DB!$USE_DB$ac_delim
26546 dblibrary!$dblibrary$ac_delim
26547 LIBGDBM!$LIBGDBM$ac_delim
26548 LIBDB!$LIBDB$ac_delim
26549 LIBAUTHUSERDB!$LIBAUTHUSERDB$ac_delim
26550 userdb!$userdb$ac_delim
26551 LIBDL!$LIBDL$ac_delim
26552 AUTHPAMCRYPT!$AUTHPAMCRYPT$ac_delim
26553 LIBAUTHPAM!$LIBAUTHPAM$ac_delim
26554 authldaprc!$authldaprc$ac_delim
26555 LDAPLIBS!$LDAPLIBS$ac_delim
26556 LIBAUTHLDAP!$LIBAUTHLDAP$ac_delim
26557 HAVE_LDAP_TRUE!$HAVE_LDAP_TRUE$ac_delim
26558 HAVE_LDAP_FALSE!$HAVE_LDAP_FALSE$ac_delim
26559 SHADOWLIBS!$SHADOWLIBS$ac_delim
26560 LIBAUTHSHADOW!$LIBAUTHSHADOW$ac_delim
26561 LIBAUTHPWD!$LIBAUTHPWD$ac_delim
26562 authpgsqlrc!$authpgsqlrc$ac_delim
26563 PG_CONFIG!$PG_CONFIG$ac_delim
26564 PGSQL_LIBS!$PGSQL_LIBS$ac_delim
26565 LIBAUTHPGSQL!$LIBAUTHPGSQL$ac_delim
26566 HAVE_AUTHPGSQL_TRUE!$HAVE_AUTHPGSQL_TRUE$ac_delim
26567 HAVE_AUTHPGSQL_FALSE!$HAVE_AUTHPGSQL_FALSE$ac_delim
26568 authmysqlrc!$authmysqlrc$ac_delim
26569 MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim
26570 LIBAUTHMYSQL!$LIBAUTHMYSQL$ac_delim
26571 MYSQL_LIBS!$MYSQL_LIBS$ac_delim
26572 HAVE_AUTHMYSQL_TRUE!$HAVE_AUTHMYSQL_TRUE$ac_delim
26573 HAVE_AUTHMYSQL_FALSE!$HAVE_AUTHMYSQL_FALSE$ac_delim
26574 HAVE_CUSTOM_TRUE!$HAVE_CUSTOM_TRUE$ac_delim
26575 HAVE_CUSTOM_FALSE!$HAVE_CUSTOM_FALSE$ac_delim
26576 LIBAUTHCUSTOM!$LIBAUTHCUSTOM$ac_delim
26577 authProg!$authProg$ac_delim
26578 HAVE_PIPE_TRUE!$HAVE_PIPE_TRUE$ac_delim
26579 HAVE_PIPE_FALSE!$HAVE_PIPE_FALSE$ac_delim
26580 LIBAUTHPIPE!$LIBAUTHPIPE$ac_delim
26581 CRYPTLIBS!$CRYPTLIBS$ac_delim
26582 authdaemonrc!$authdaemonrc$ac_delim
26583 authdaemonvar!$authdaemonvar$ac_delim
26584 LIBM!$LIBM$ac_delim
26585 mailuser!$mailuser$ac_delim
26586 mailgroup!$mailgroup$ac_delim
26587 REPOSITORY!$REPOSITORY$ac_delim
26588 HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
26589 HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
26590 subdirs!$subdirs$ac_delim
26591 LIBOBJS!$LIBOBJS$ac_delim
26592 LTLIBOBJS!$LTLIBOBJS$ac_delim
26593 _ACEOF
26594
26595 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
26596 break
26597 elif $ac_last_try; then
26598 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26599 echo "$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
26604 done
26605
26606 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26607 if test -n "$ac_eof"; then
26608 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26609 ac_eof=`expr $ac_eof + 1`
26610 fi
26611
26612 cat >>$CONFIG_STATUS <<_ACEOF
26613 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26615 _ACEOF
26616 sed '
26617 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26618 s/^/s,@/; s/!/@,|#_!!_#|/
26619 :n
26620 t n
26621 s/'"$ac_delim"'$/,g/; t
26622 s/$/\\/; p
26623 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26624 ' >>$CONFIG_STATUS <conf$$subs.sed
26625 rm -f conf$$subs.sed
26626 cat >>$CONFIG_STATUS <<_ACEOF
26627 :end
26628 s/|#_!!_#|//g
26629 CEOF$ac_eof
26630 _ACEOF
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).
26637 if test "x$srcdir" = x.; then
26638 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26639 s/:*\$(srcdir):*/:/
26640 s/:*\${srcdir}:*/:/
26641 s/:*@srcdir@:*/:/
26642 s/^\([^=]*=[ ]*\):*/\1/
26643 s/:*$//
26644 s/^[^=]*=[ ]*$//
26645 }'
26646 fi
26647
26648 cat >>$CONFIG_STATUS <<\_ACEOF
26649 fi # test -n "$CONFIG_FILES"
26650
26651
26652 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26653 do
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
26660 echo "$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
26690 echo "$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
26704 echo "$as_me: creating $ac_file" >&6;}
26705 fi
26706
26707 case $ac_tag in
26708 *:-:* | *:-) cat >"$tmp/stdin";;
26709 esac
26710 ;;
26711 esac
26712
26713 ac_dir=`$as_dirname -- "$ac_file" ||
26714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26715 X"$ac_file" : 'X\(//\)[^/]' \| \
26716 X"$ac_file" : 'X\(//\)$' \| \
26717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26718 echo X"$ac_file" |
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"; } || {
26741 as_dirs=
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" ||
26749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26750 X"$as_dir" : 'X\(//\)[^/]' \| \
26751 X"$as_dir" : 'X\(//\)$' \| \
26752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26753 echo X"$as_dir" |
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
26772 done
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
26775 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26776 { (exit 1); exit 1; }; }; }
26777 ac_builddir=.
26778
26779 case "$ac_dir" in
26780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26781 *)
26782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
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 ;;
26789 esac
26790 ac_abs_top_builddir=$ac_pwd
26791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26792 # for backward compatibility:
26793 ac_top_builddir=$ac_top_build_prefix
26794
26795 case $srcdir in
26796 .) # We are building in place.
26797 ac_srcdir=.
26798 ac_top_srcdir=$ac_top_builddir_sub
26799 ac_abs_top_srcdir=$ac_pwd ;;
26800 [\\/]* | ?:[\\/]* ) # Absolute name.
26801 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
26808 esac
26809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26810
26811
26812 case $ac_mode in
26813 :F)
26814 #
26815 # CONFIG_FILE
26816 #
26817
26818 case $INSTALL in
26819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26821 esac
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
26828
26829 cat >>$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.
26832 ac_datarootdir_hack=; ac_datarootdir_seen=
26833
26834 case `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
26847 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26848 _ACEOF
26849 cat >>$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' ;;
26857 esac
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?
26863 cat >>$CONFIG_STATUS <<_ACEOF
26864 sed "$ac_vpsub
26865 $extrasub
26866 _ACEOF
26867 cat >>$CONFIG_STATUS <<\_ACEOF
26868 :t
26869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26870 s&@configure_input@&$configure_input&;t t
26871 s&@top_builddir@&$ac_top_builddir_sub&;t t
26872 s&@srcdir@&$ac_srcdir&;t t
26873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26874 s&@top_srcdir@&$ac_top_srcdir&;t t
26875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26876 s&@builddir@&$ac_builddir&;t t
26877 s&@abs_builddir@&$ac_abs_builddir&;t t
26878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26879 s&@INSTALL@&$ac_INSTALL&;t t
26880 s&@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
26884 test -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'
26888 which seems to be undefined. Please make sure it is defined." >&5
26889 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26890 which seems to be undefined. Please make sure it is defined." >&2;}
26891
26892 rm -f "$tmp/stdin"
26893 case $ac_file in
26894 -) cat "$tmp/out"; rm -f "$tmp/out";;
26895 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26896 esac
26897 ;;
26898 :H)
26899 #
26900 # CONFIG_HEADER
26901 #
26902 _ACEOF
26903
26904 # Transform confdefs.h into a sed script `conftest.defines', that
26905 # substitutes the proper values into config.h.in to produce config.h.
26906 rm -f conftest.defines conftest.tail
26907 # First, append a space to every undef/define line, to ease matching.
26908 echo '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.
26914 ac_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.
26919 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26920 ac_dB='\\)[ (].*,\\1define\\2'
26921 ac_dC=' '
26922 ac_dD=' ,'
26923
26924 uniq 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
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.
26941 # (The regexp can be short, since the line contains either #define or #undef.)
26942 echo 's/ $//
26943 s,^[ #]*u.*,/* & */,' >>conftest.defines
26944
26945 # Break up conftest.defines:
26946 ac_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.
26952 ac_in='$ac_file_inputs'
26953 ac_out='"$tmp/out1"'
26954 ac_nxt='"$tmp/out2"'
26955
26956 while :
26957 do
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
26964 b
26965 :def
26966 _ACEOF
26967 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26968 echo 'CEOF
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
26973 rm -f conftest.defines
26974 mv conftest.tail conftest.defines
26975 done
26976 rm -f conftest.defines conftest.tail
26977
26978 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26979 cat >>$CONFIG_STATUS <<\_ACEOF
26980 if test x"$ac_file" != x-; then
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
26984 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26985 echo "$as_me: $ac_file is unchanged" >&6;}
26986 else
26987 rm -f $ac_file
26988 mv "$tmp/config.h" $ac_file
26989 fi
26990 else
26991 echo "/* $configure_input */"
26992 cat "$ac_result"
26993 fi
26994 rm -f "$tmp/out12"
26995 # Compute $ac_file's index in $config_headers.
26996 _am_arg=$ac_file
26997 _am_stamp_count=1
26998 for _am_header in $config_headers :; do
26999 case $_am_header in
27000 $_am_arg | $_am_arg:* )
27001 break ;;
27002 * )
27003 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27004 esac
27005 done
27006 echo "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 ||
27011 echo X"$_am_arg" |
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 ;;
27030
27031 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27032 echo "$as_me: executing $ac_file commands" >&6;}
27033 ;;
27034 esac
27035
27036
27037 case $ac_file$ac_mode in
27038 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
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.
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.
27048 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27049 dirpart=`$as_dirname -- "$mf" ||
27050 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27051 X"$mf" : 'X\(//\)[^/]' \| \
27052 X"$mf" : 'X\(//\)$' \| \
27053 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27054 echo X"$mf" |
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'`
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
27093 fdir=`$as_dirname -- "$file" ||
27094 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27095 X"$file" : 'X\(//\)[^/]' \| \
27096 X"$file" : 'X\(//\)$' \| \
27097 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27098 echo X"$file" |
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"; } || {
27121 as_dirs=
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" ||
27129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27130 X"$as_dir" : 'X\(//\)[^/]' \| \
27131 X"$as_dir" : 'X\(//\)$' \| \
27132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27133 echo X"$as_dir" |
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
27152 done
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
27155 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27156 { (exit 1); exit 1; }; }; }
27157 # echo "creating $dirpart/$file"
27158 echo '# dummy' > "$dirpart/$file"
27159 done
27160 done
27161 ;;
27162
27163 esac
27164 done # for ac_tag
27165
27166
27167 { (exit 0); exit 0; }
27168 _ACEOF
27169 chmod +x $CONFIG_STATUS
27170 ac_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.
27181 if 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; }
27192 fi
27193
27194 #
27195 # CONFIG_SUBDIRS section.
27196 #
27197 if 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=
27202 eval "set x $ac_configure_args"
27203 shift
27204 for ac_arg
27205 do
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 ;;
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'" ;;
27233 esac
27234 done
27235
27236 # Always prepend --prefix to ensure using the same prefix
27237 # in subdir configurations.
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
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.
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"; } || {
27264 as_dirs=
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" ||
27272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27273 X"$as_dir" : 'X\(//\)[^/]' \| \
27274 X"$as_dir" : 'X\(//\)$' \| \
27275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27276 echo X"$as_dir" |
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
27295 done
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
27298 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27299 { (exit 1); exit 1; }; }; }
27300 ac_builddir=.
27301
27302 case "$ac_dir" in
27303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27304 *)
27305 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
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 ;;
27312 esac
27313 ac_abs_top_builddir=$ac_pwd
27314 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27315 # for backward compatibility:
27316 ac_top_builddir=$ac_top_build_prefix
27317
27318 case $srcdir in
27319 .) # We are building in place.
27320 ac_srcdir=.
27321 ac_top_srcdir=$ac_top_builddir_sub
27322 ac_abs_top_srcdir=$ac_pwd ;;
27323 [\\/]* | ?:[\\/]* ) # Absolute name.
27324 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
27331 esac
27332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27333
27334
27335 cd "$ac_dir"
27336
27337 # Check for guested configure; otherwise get Cygnus style configure.
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
27345 else
27346 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27347 echo "$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 ;;
27356 *) # Relative name.
27357 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27358 esac
27359
27360 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27361 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27362 # The eval makes quoting arguments work.
27363 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27364 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27365 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27366 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27367 { (exit 1); exit 1; }; }
27368 fi
27369
27370 cd "$ac_popdir"
27371 done
27372 fi
27373
27374